:root {
  /* Edit brand colors here */
  --navy-950: #061525;
  --navy-900: #0b1f36;
  --navy-800: #102a46;
  --navy-700: #143a60;
  --blue-500: #0ea5e9;
  --cyan-400: #22d3ee;
  --red-600: #b91c1c;
  --red-700: #991b1b;
  --ink: #132033;
  --muted: #64748b;
  --line: #d9e2ee;
  --paper: #ffffff;
  --soft: #f4f8fc;
  --soft-blue: #e6f7ff;
  --success: #0f766e;
  --warning: #a16207;
  --danger: #b91c1c;
  --shadow: 0 24px 80px rgba(8, 28, 51, 0.14);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.13), transparent 34rem),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 38%, #f6f9fc 100%);
  line-height: 1.55;
}

a { color: inherit; }
code {
  padding: .12rem .35rem;
  border-radius: .4rem;
  background: #eaf1f8;
  color: var(--navy-800);
  font-size: .95em;
}

.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy-900); color: white; padding: .75rem 1rem; z-index: 10;
}
.skip-link:focus { left: .75rem; top: .75rem; }

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217,226,238,.9);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; }
.brand-logo { width: 56px; height: 56px; object-fit: cover; border-radius: 16px; box-shadow: 0 8px 22px rgba(15,23,42,.18); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 900; color: var(--navy-900); letter-spacing: -.025em; }
.brand-subtitle { font-size: .79rem; color: var(--muted); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-link { font-weight: 700; color: var(--navy-700); text-decoration: none; }

.button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .86rem 1.18rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-600), #e11d48);
  color: white;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(185, 28, 28, .21);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-1px); box-shadow: 0 20px 42px rgba(185, 28, 28, .27); }
.button-small { min-height: 38px; padding: .62rem .85rem; font-size: .88rem; }
.button-outline {
  color: var(--navy-800);
  background: rgba(255,255,255,.8);
  border: 1px solid var(--line);
  box-shadow: none;
}
.button-ghost {
  color: var(--navy-800);
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(14, 165, 233, .25);
  box-shadow: none;
}
.button-submit { background: linear-gradient(135deg, var(--navy-800), var(--blue-500)); box-shadow: 0 16px 30px rgba(14, 165, 233, .18); }

.hero { padding: 5rem 0 3.3rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 2rem; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--red-700);
  background: rgba(185,28,28,.08);
  border: 1px solid rgba(185,28,28,.13);
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .38rem .64rem;
  margin-bottom: 1rem;
}
h1, h2, h3 { color: var(--navy-900); line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.35rem, 6vw, 5.2rem); letter-spacing: -.07em; max-width: 930px; }
h2 { font-size: clamp(1.75rem, 3vw, 2.8rem); letter-spacing: -.045em; }
h3 { font-size: 1.1rem; }
.hero-lede { font-size: 1.17rem; color: #40526b; max-width: 760px; margin: 1.35rem 0 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.25rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.trust-row span {
  font-size: .82rem;
  font-weight: 800;
  color: var(--navy-700);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem .68rem;
}
.hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.93), rgba(255,255,255,.82));
  border: 1px solid rgba(217,226,238,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}
.card-glow { position: absolute; inset: -15% -20% auto auto; width: 220px; height: 220px; border-radius: 50%; background: rgba(34,211,238,.24); filter: blur(30px); }
.hero-logo { width: 112px; height: 112px; object-fit: cover; border-radius: 26px; box-shadow: 0 14px 36px rgba(5, 15, 32, .2); position: relative; }
.hero-card h2 { font-size: 1.45rem; margin: 1rem 0 .4rem; }
.hero-card ul { margin: .75rem 0 1rem; padding-left: 1.2rem; color: #334155; }
.hero-card li { margin: .5rem 0; }
.microcopy { color: var(--muted); font-size: .94rem; }

.section { padding: 3.75rem 0; }
.section-muted { background: rgba(230, 247, 255, .52); border-block: 1px solid rgba(217,226,238,.75); }
.steps-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 2rem; align-items: center; }
.steps-grid p { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step-card { background: white; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; box-shadow: 0 10px 35px rgba(15,23,42,.06); }
.step-card span { display: inline-flex; font-weight: 900; color: var(--blue-500); margin-bottom: .5rem; }
.step-card p { margin-bottom: 0; font-size: .92rem; }

.form-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.form-intro {
  position: sticky; top: 98px;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: white;
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.form-intro .eyebrow { background: rgba(255,255,255,.11); color: #d9f5ff; border-color: rgba(255,255,255,.15); }
.form-intro h2 { color: white; }
.form-intro p { color: #cbd5e1; }
.progress-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: .9rem; }
.progress-label { display: flex; justify-content: space-between; gap: .75rem; font-size: .88rem; font-weight: 800; margin-bottom: .6rem; }
.progress-track { height: 10px; background: rgba(255,255,255,.16); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 14%; background: linear-gradient(90deg, var(--cyan-400), #ffffff); border-radius: inherit; transition: width .24s ease; }

.intake-form {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(217,226,238,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}
.form-step { border: 0; padding: 0; margin: 0; display: none; }
.form-step.active { display: block; animation: fadeUp .22s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
legend { font-size: clamp(1.6rem, 3vw, 2.35rem); color: var(--navy-900); font-weight: 900; letter-spacing: -.045em; margin-bottom: 1.2rem; }
.field-grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label, .block-label { display: block; font-weight: 800; color: var(--navy-800); margin-bottom: 1rem; }
input, select, textarea {
  width: 100%;
  margin-top: .38rem;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: .86rem .95rem;
  background: white;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(14, 165, 233, .13); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--danger); }
.help-text { display: block; margin-top: .35rem; color: var(--muted); font-weight: 500; font-size: .88rem; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-bottom: 1.15rem; }
.check-grid label, .consent {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .75rem;
  margin: 0;
  font-weight: 700;
  color: #263851;
}
.check-grid input, .consent input { width: auto; margin-top: .2rem; accent-color: var(--red-600); }
.hidden { display: none !important; }
.hp-field { display: none !important; }
.score-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin-bottom: 1.1rem;
}
.score-preview div {
  background: linear-gradient(180deg, #f8fbff, #eef7fd);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}
.score-preview span { display: block; color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.score-preview strong { display: block; color: var(--navy-900); font-size: 1.12rem; margin-top: .2rem; }
.notice { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; border-radius: 16px; padding: .9rem; font-size: .94rem; }
.form-actions { display: flex; gap: .75rem; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.3rem; }
.form-status { min-height: 1.4rem; color: var(--navy-700); font-weight: 800; }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--success); }

.site-footer { background: var(--navy-950); color: white; padding: 2rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 1.25rem; }
.site-footer p { color: #cbd5e1; margin: .25rem 0; font-size: .92rem; }
.site-footer a { color: #e0f7ff; }

@media (max-width: 920px) {
  .hero-grid, .steps-grid, .form-shell, .footer-grid { grid-template-columns: 1fr; }
  .form-intro { position: relative; top: auto; }
  .steps { grid-template-columns: 1fr; }
  .nav-actions { display: none; }
}
@media (max-width: 680px) {
  .hero { padding-top: 3rem; }
  .field-grid.two, .check-grid, .score-preview { grid-template-columns: 1fr; }
  .brand-subtitle { display: none; }
  .intake-form, .form-intro { padding: 1rem; }
  .form-actions { justify-content: stretch; flex-direction: column; }
  .button { width: 100%; }
}
