/* DebtShield website — design system. One stylesheet, no framework.
   Vibrant but calm; WCAG-AA in light and dark; fast, semantic, depth-rich. */

:root {
  --brand: #1d4ed8;
  --brand-2: #6d28d9;      /* violet, for gradients */
  --brand-strong: #1b3f8f;
  --accent: #e0a32e;
  --ok: #14602f;
  --bg: #ffffff;
  --bg-soft: #f4f6fc;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e6ebf5;
  --text: #0f172a;
  --muted: #4b5563;
  --radius: 20px;
  --maxw: 1080px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(29, 78, 216, 0.16);
  --grad: linear-gradient(120deg, #1d4ed8, #6d28d9 60%, #db2777);
  --grad-soft: linear-gradient(120deg, rgba(29,78,216,.14), rgba(109,40,217,.12) 55%, rgba(219,39,119,.10));
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #93c5fd;
    --brand-2: #c4b5fd;
    --brand-strong: #bcd6ff;
    --accent: #fbd24d;
    --ok: #6ee7a0;
    --bg: #0a0f1c;
    --bg-soft: #0e1424;
    --surface: #121a2c;
    --surface-2: #0f1626;
    --border: #223049;
    --text: #e9eefb;
    --muted: #c2cad8;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
    --grad: linear-gradient(120deg, #60a5fa, #a78bfa 60%, #f472b6);
    --grad-soft: linear-gradient(120deg, rgba(96,165,250,.16), rgba(167,139,250,.14) 55%, rgba(244,114,182,.10));
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  /* soft ambient color, top of page */
  background-image:
    radial-gradient(1200px 500px at 12% -8%, rgba(29,78,216,.10), transparent 60%),
    radial-gradient(1000px 460px at 100% -6%, rgba(109,40,217,.10), transparent 55%);
  background-repeat: no-repeat;
}

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 12px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }

a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.2) blur(12px);
}
.nav { display: flex; align-items: center; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand .mark { width: 30px; height: 30px; filter: drop-shadow(0 3px 6px rgba(29,78,216,.35)); }
.nav-links { display: flex; gap: 6px 18px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 6px 2px; position: relative; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--grad); border-radius: 2px; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 76px 0 44px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); line-height: 1.06; margin: 0 0 18px; letter-spacing: -0.03em; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 46ch; margin: 0 0 28px; }
.eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  font-size: 0.8rem; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* App mock card in the hero */
.hero-visual { display: flex; justify-content: center; }
.app-card {
  width: 100%; max-width: 360px; border-radius: 26px; padding: 22px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ok) 14%, var(--surface)), var(--surface));
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.app-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent); padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; }
.app-amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 2px; }
.app-sub { color: var(--muted); margin: 0 0 16px; }
.app-bar { height: 22px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 18%, transparent); overflow: hidden; display: flex; }
.app-bar span { display: block; height: 100%; }
.s-rent { width: 46%; background: linear-gradient(180deg, #3b82f6, #2563eb); }
.s-food { width: 12%; background: #0f766e; }
.s-energy { width: 8%; background: #7e22ce; }
.s-debt { width: 6%; background: #4338ca; }
.app-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: 0.82rem; }
.app-legend b { color: var(--text); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); color: #fff; text-decoration: none;
  font-weight: 700; padding: 14px 24px; border-radius: 999px; border: 0;
  cursor: pointer; font-size: 1rem; box-shadow: 0 10px 24px rgba(29,78,216,.30);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(29,78,216,.38); }
.btn.secondary { background: transparent; color: var(--brand); border: 2px solid color-mix(in srgb, var(--brand) 45%, transparent); padding: 12px 22px; box-shadow: none; }
.btn.secondary:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sections & type */
section { padding: 44px 0; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); margin: 0 0 14px; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; margin: 0 0 8px; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.narrow { max-width: 44rem; }

/* Cards */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.card h3 { margin-top: 0; }

/* Gradient icon tile (like the app's app-icon badges) */
.tile {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 14px; color: #fff;
  background: var(--grad); box-shadow: 0 8px 18px rgba(29,78,216,.30);
}
.tile.teal { background: linear-gradient(135deg, #0ea5a5, #0f766e); box-shadow: 0 8px 18px rgba(15,118,110,.30); }
.tile.violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 8px 18px rgba(109,40,217,.30); }
.tile.amber { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 8px 18px rgba(217,119,6,.30); }

.callout {
  background: var(--grad-soft); border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  border-radius: 16px; padding: 20px 22px; margin: 22px 0;
}
.pill { display: inline-block; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: 0.85rem; }

ul.checks, ul.crosses { list-style: none; padding: 0; margin: 0; }
ul.checks li, ul.crosses li { padding: 9px 0 9px 34px; position: relative; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: #fff; background: var(--ok); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
ul.crosses li::before { content: "✕"; position: absolute; left: 0; top: 8px; color: var(--muted); border: 1.5px solid var(--border); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }

dl.sources dt { font-weight: 700; margin-top: 14px; }
dl.sources dd { margin: 4px 0 0; color: var(--muted); }

table { width: 100%; border-collapse: collapse; margin: 18px 0; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); font-size: 0.9rem; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }

label { display: block; font-weight: 600; margin: 14px 0 6px; }
input, textarea, select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--brand); }
textarea { min-height: 120px; }

/* Forms */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 4px 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.req { color: var(--brand); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 6px; }
.consent input { width: auto; margin-top: 5px; }
.consent label { margin: 0; font-weight: 500; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 18px; }
.field-note { color: var(--muted); font-size: 0.85rem; margin: 4px 0 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: 56px; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); padding: 44px 0 26px; }
.footer-grid h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 12px; }
.footer-grid a { display: block; color: var(--text); text-decoration: none; padding: 5px 0; font-size: 0.97rem; }
.footer-grid a:hover { color: var(--brand); }
.footer-legal { padding: 18px 0 44px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--border); }

/* A theme-independent strong gradient — guarantees white-on-gradient contrast. */
:root { --grad-strong: linear-gradient(120deg, #1d4ed8, #6d28d9 58%, #db2777); }

/* Trust band (pills under the hero) */
.trust { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 8px 0; }
.trust span { font-size: 0.92rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 9px 15px; box-shadow: var(--shadow); }
.trust b { color: var(--text); }

/* Numbered steps */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.step-num { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad-strong); margin-bottom: 14px; box-shadow: 0 8px 18px rgba(29,78,216,.32); }

/* Two-column contrast (why it's different) */
.contrast { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contrast .card h3 { margin-top: 0; }

/* FAQ (native <details>, no JS) */
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin: 12px 0; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; color: var(--brand); font-size: 1.35rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .answer { padding: 16px 20px; color: var(--muted); }
.faq .answer p { margin: 0; }

/* Closing call-to-action band */
.cta-band { background: var(--grad-strong); border-radius: 24px; padding: 46px 28px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); margin: 8px 0 24px; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 46ch; margin: 0 auto 24px; }
.cta-band .btn { background: #fff; color: var(--brand); box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.cta-band .btn:hover { background: #fff; transform: translateY(-2px); }
