/* ==========================================================================
   My Mail Hub — styles
   Mobile-first. Breakpoints: 768px (tablet), 1024px (desktop).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --primary: #2F5BEA;
  --primary-dark: #1E3FB0;
  --primary-soft: #EAF0FE;
  --link: #2F5BEA;
  --on-primary: #FFFFFF;
  --ink: #0F172A;
  --muted: #5B6B82;            /* spec #64748B, darkened slightly to keep AA on --bg */
  --surface: #FFFFFF;
  --bg: #F6F8FC;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --success: #16A34A;          /* borders, icons */
  --success-text: #15803D;     /* text on light surfaces (AA) */
  --success-soft: #DCFCE7;
  --error: #DC2626;
  --error-soft: #FEF2F2;
  --warning: #D97706;
  --focus-ring: 0 0 0 3px rgba(47, 91, 234, .35);

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-h1: 36px;  --lh-h1: 44px;
  --fs-h2: 28px;  --lh-h2: 36px;
  --fs-h3: 18px;  --lh-h3: 26px;
  --fs-body: 16px; --lh-body: 24px;
  --fs-sm: 14px;  --lh-sm: 20px;
  --fs-xs: 13px;  --lh-xs: 18px;

  /* Shape */
  --radius-control: 10px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, .05), 0 20px 48px rgba(15, 23, 42, .10);

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --gutter: 16px;
  --container: 1200px;
  --header-h: 64px;
  --control-h: 48px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #3B66F5;
    --primary-dark: #2F5BEA;
    --primary-soft: #1B2A55;
    --link: #8FA8FF;
    --ink: #E5EAF3;
    --muted: #9AA8BD;
    --surface: #131C2E;
    --bg: #0B1220;
    --border: #253148;
    --border-strong: #34425E;
    --success: #22C55E;
    --success-text: #4ADE80;
    --success-soft: #12301F;
    --error: #F87171;
    --error-soft: #3A1717;
    --focus-ring: 0 0 0 3px rgba(143, 168, 255, .45);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 20px 48px rgba(0, 0, 0, .35);
  }
}

@media (min-width: 1024px) {
  :root {
    --fs-h1: 56px; --lh-h1: 64px;
    --fs-h2: 36px; --lh-h2: 44px;
    --fs-h3: 20px; --lh-h3: 28px;
    --gutter: 24px;
    --header-h: 72px;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }

a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }
@media (prefers-color-scheme: dark) { a:hover { color: #B4C4FF; } }

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { :focus-visible { outline-color: var(--link); } }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 16px; background: var(--surface); color: var(--ink);
  border-radius: var(--radius-control); box-shadow: var(--shadow-lift);
}
.skip-link:focus { top: 12px; }

.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon-16 { width: 16px; height: 16px; }
.icon-20 { width: 20px; height: 20px; }
.icon-24 { width: 24px; height: 24px; }
.icon-32 { width: 32px; height: 32px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow { max-width: calc(800px + var(--gutter) * 2); }

.eyebrow {
  font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: 600;
  color: var(--link); letter-spacing: .02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--control-h); padding: 0 var(--space-5);
  border: 1px solid transparent; border-radius: var(--radius-control);
  font-size: var(--fs-body); font-weight: 600; line-height: 1; text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); color: var(--on-primary); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--primary); color: var(--ink); }
.btn-light { background: #FFFFFF; color: #1E3FB0; }
.btn-light:hover { background: #EAF0FE; color: #1E3FB0; }
.btn-light:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .6); }
.btn-block { width: 100%; }
.btn[disabled] { cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block of the fixed mobile menu and clip it. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
body.menu-open .site-header::before { background: var(--bg); }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 8px rgba(15, 23, 42, .04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--space-5); }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 32px; height: 32px; flex: none; }

.nav-desktop, .header-actions { display: none; }
.nav-desktop ul { display: flex; gap: var(--space-6); }
.nav-desktop a, .link-signin {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 2px; border-radius: 6px;
}
.nav-desktop a:hover, .link-signin:hover { color: var(--link); }
.header-actions { align-items: center; gap: var(--space-5); }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; border-radius: var(--radius-control); color: var(--ink);
}
.burger .burger-close { display: none; }
.burger[aria-expanded="true"] .burger-open { display: none; }
.burger[aria-expanded="true"] .burger-close { display: block; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--space-5) var(--gutter) calc(var(--space-5) + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
}
.mobile-menu-links li { border-bottom: 1px solid var(--border); }
.mobile-menu-links a {
  display: flex; align-items: center; min-height: 56px;
  font-size: 20px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.mobile-menu-actions { display: grid; gap: var(--space-3); padding-top: var(--space-5); }

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .header-actions { display: flex; }
  .burger, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { padding: var(--space-6) 0 var(--space-7); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -200px -10% auto; height: 600px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 14%, transparent), transparent);
  z-index: -1;
}
.hero-grid {
  display: grid; gap: var(--space-5);
  grid-template-areas: "intro" "form" "extras";
}
.hero-intro { grid-area: intro; display: grid; gap: var(--space-3); }
.hero-extras { grid-area: extras; display: grid; gap: var(--space-5); padding-top: var(--space-2); }
.signup-card { grid-area: form; }
.hero-sub { color: var(--muted); font-size: 17px; line-height: 26px; }

.checklist { display: grid; gap: var(--space-3); }
.checklist li { display: flex; align-items: center; gap: var(--space-3); font-weight: 500; }
.check-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--success-soft); color: var(--success-text);
}
.check-badge .icon { width: 14px; height: 14px; stroke-width: 3; }

.social-proof { display: flex; align-items: center; gap: var(--space-4); }
.avatars { display: flex; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--av); color: #fff; font-size: 13px; font-weight: 600;
  border: 2px solid var(--bg); margin-left: -10px;
}
.avatar:first-child { margin-left: 0; }
.stars { display: flex; gap: 2px; color: #F59E0B; }
.stars .icon { fill: currentColor; stroke: none; }
.social-text { font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--muted); }
.social-text strong { color: var(--ink); }

@media (min-width: 768px) {
  .hero { padding: var(--space-7) 0 var(--space-8); }
  .hero-intro, .hero-extras { text-align: center; justify-items: center; max-width: 600px; margin: 0 auto; }
  .signup-card { width: 100%; max-width: 480px; margin: 0 auto; }
}
@media (min-width: 1024px) {
  .hero { padding: var(--space-8) 0 var(--space-9); }
  .hero-grid {
    grid-template-columns: 1fr 480px;
    grid-template-areas: "intro form" "extras form";
    grid-template-rows: auto 1fr;
    column-gap: var(--space-8); row-gap: var(--space-6);
    align-items: start;
  }
  .hero-intro { gap: var(--space-5); padding-top: var(--space-7); }
  .hero-intro, .hero-extras { text-align: left; justify-items: start; max-width: 600px; margin: 0; }
  .hero-sub { font-size: 18px; line-height: 28px; }
  .hero-extras { gap: var(--space-6); padding-top: 0; }
  .signup-card { margin: 0; }
}

/* ---------- Signup card ---------- */
.signup-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-lift);
  padding: var(--space-5) var(--space-4);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.signup-card:focus { outline: none; }
@media (min-width: 768px) { .signup-card { padding: var(--space-6); } }

.card-title { font-size: 24px; line-height: 32px; }
.card-sub { color: var(--muted); margin-top: var(--space-1); }
.signup-form { margin-top: var(--space-5); }
.form-fields { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--space-4); }

.form-banner {
  display: flex; align-items: flex-start; gap: var(--space-2);
  margin-bottom: var(--space-4); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-control);
  background: var(--error-soft); color: var(--error);
  border: 1px solid color-mix(in srgb, var(--error) 30%, transparent);
  font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: 500;
}
.form-banner .icon { margin-top: 0; }

.field { display: grid; gap: 6px; }
.label { font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: 500; }
.label-optional { color: var(--muted); font-weight: 400; }

.input {
  width: 100%; height: var(--control-h); padding: 0 14px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border-strong); border-radius: var(--radius-control);
  font-size: 16px; /* >= 16px prevents iOS zoom */
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.input:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border-strong)); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-ring); }
.input[aria-invalid="true"] { border-color: var(--error); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 30%, transparent); }
.field.is-valid .input { border-color: var(--success); }
.input:disabled { opacity: .6; cursor: not-allowed; }

/* Input with a fixed suffix or inline action: the wrapper draws the border */
.input-group {
  display: flex; align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-control);
  transition: border-color .15s, box-shadow .15s;
  overflow: hidden;
}
.input-group .input { border: 0; box-shadow: none; min-width: 0; flex: 1; border-radius: 0; }
.input-group:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border-strong)); }
.input-group:focus-within { border-color: var(--primary); box-shadow: var(--focus-ring); }
.input-group:has(.input[aria-invalid="true"]) { border-color: var(--error); }
.field.is-valid .input-group { border-color: var(--success); }
.input-group:has(.input:disabled) { opacity: .6; }

.input-suffix {
  display: flex; align-items: center; padding: 0 14px 0 2px;
  color: var(--muted); font-size: 16px; white-space: nowrap; user-select: none;
}
.input-action {
  min-width: 64px; padding: 0 14px; border: 0; background: none;
  color: var(--link); font-size: var(--fs-sm); font-weight: 600;
  border-left: 1px solid var(--border);
}
.input-action:hover { background: var(--primary-soft); }
.input-action:focus-visible { outline: 2px solid var(--primary); outline-offset: -4px; border-radius: 8px; }

.field-error {
  display: flex; gap: 6px; align-items: flex-start;
  font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--error); font-weight: 500;
}
.field-error:empty { display: none; }
.field-error::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Address availability */
.address-status { font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: 500; }
.address-status:empty { display: none; }
.status-line { display: flex; align-items: center; gap: 6px; }
.status-checking { color: var(--muted); }
.status-available { color: var(--success-text); }
.status-taken { color: var(--error); }
.status-available .icon, .status-taken .icon { width: 16px; height: 16px; }
.suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.suggestions-label { color: var(--muted); font-weight: 400; }
.chip {
  min-height: 36px; padding: 0 12px; position: relative;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink); font-size: var(--fs-sm); font-weight: 500;
}
.chip::after { content: ""; position: absolute; inset: -4px 0; } /* 44px touch target */
.chip:hover { border-color: var(--primary); color: var(--link); background: var(--primary-soft); }
.chip:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--primary); }

/* Password strength */
.strength { display: grid; gap: 6px; }
.strength-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strength-bar span { height: 4px; border-radius: 2px; background: var(--border); transition: background-color .2s; }
.strength-label { font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--muted); }
.strength[data-score="1"] .strength-bar span:nth-child(-n+1) { background: var(--error); }
.strength[data-score="2"] .strength-bar span:nth-child(-n+2) { background: var(--warning); }
.strength[data-score="3"] .strength-bar span:nth-child(-n+3) { background: #65A30D; }
.strength[data-score="4"] .strength-bar span:nth-child(-n+4) { background: var(--success); }
.strength[data-score="1"] .strength-label { color: var(--error); font-weight: 500; }
.strength[data-score="4"] .strength-label { color: var(--success-text); font-weight: 500; }

/* Checkbox */
.checkbox { display: flex; gap: var(--space-3); align-items: flex-start; cursor: pointer; font-size: var(--fs-sm); line-height: var(--lh-sm); }
.checkbox input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.checkbox-box {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-top: -1px;
  border: 1.5px solid var(--border-strong); border-radius: 6px; background: var(--surface);
  color: transparent; transition: background-color .15s, border-color .15s;
}
.checkbox-box .icon { stroke-width: 3; width: 14px; height: 14px; }
.checkbox input:checked + .checkbox-box { background: var(--primary); border-color: var(--primary); color: #fff; }
.checkbox input:focus-visible + .checkbox-box { box-shadow: var(--focus-ring); border-color: var(--primary); }
.checkbox input[aria-invalid="true"] + .checkbox-box { border-color: var(--error); }
.checkbox input:disabled + .checkbox-box { opacity: .6; }
.field-check { padding-top: var(--space-1); }
/* Expand the clickable area of the whole row to >= 44px tall */
.field-check .checkbox { min-height: 44px; padding: 11px 0; margin: -11px 0; }

/* Honeypot */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Submit */
.btn-submit { margin-top: var(--space-5); position: relative; }
.btn-submit .spinner { display: none; }
.btn-submit.is-loading .spinner { display: inline-block; }
.btn-submit.is-loading, .btn-submit:disabled { background: var(--primary); opacity: .85; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
.status-checking .spinner { width: 14px; height: 14px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 1.6s; } }

.form-footnote { margin-top: var(--space-4); text-align: center; font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--muted); }

/* Success */
.success-view { text-align: center; display: grid; gap: var(--space-3); justify-items: center; padding: var(--space-5) 0 var(--space-2); }
.success-view:focus, .success-view .card-title:focus { outline: none; }
.success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%; margin-bottom: var(--space-2);
  background: var(--success-soft); color: var(--success-text);
  animation: pop .35s cubic-bezier(.2, .9, .3, 1.3);
}
.success-icon .icon { stroke-width: 2.5; }
.success-view .card-sub { margin: 0 0 var(--space-4); overflow-wrap: anywhere; }
.success-view .card-sub strong { color: var(--ink); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .success-icon { animation: none; } }

/* ---------- Trust bar ---------- */
.trust { padding: var(--space-6) 0; border-block: 1px solid var(--border); background: var(--surface); }
.trust-inner { display: grid; gap: var(--space-4); justify-items: center; }
.trust-label { font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.trust-logos li {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 var(--space-4); min-width: 132px;
  border-radius: 8px; background: var(--bg); border: 1px dashed var(--border-strong);
  color: var(--muted); font-weight: 600; font-size: var(--fs-sm); letter-spacing: .01em;
}
@media (min-width: 1024px) {
  .trust-inner { grid-template-columns: auto 1fr; align-items: center; gap: var(--space-7); }
  .trust-logos { justify-content: space-between; flex-wrap: nowrap; }
  .trust-logos li { min-width: 160px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--space-8) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { display: grid; gap: var(--space-2); text-align: center; max-width: 720px; margin: 0 auto var(--space-6); }
@media (min-width: 1024px) {
  .section { padding: var(--space-9) 0; }
  .section-head { margin-bottom: var(--space-7); }
}

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.section-alt .card { background: var(--bg); }

/* Features */
.feature-grid { display: grid; gap: var(--space-4); }
.feature { padding: var(--space-5); display: grid; gap: var(--space-2); align-content: start; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: var(--space-2);
  background: var(--primary-soft); color: var(--link);
}
.feature p { color: var(--muted); }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } .feature { padding: var(--space-6); } }
@media (prefers-reduced-motion: reduce) { .feature:hover { transform: none; } }

/* How it works — vertical stepper on mobile, horizontal on desktop */
.steps { display: grid; gap: var(--space-6); position: relative; max-width: 560px; margin: 0 auto; counter-reset: none; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-4); position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 23px; top: 56px; bottom: calc(-1 * var(--space-6) + 8px);
  width: 2px; background: var(--border-strong);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 18px;
  box-shadow: 0 0 0 6px var(--surface); position: relative; z-index: 1;
}
.step h3 { margin: 10px 0 var(--space-1); }
.step p { color: var(--muted); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); max-width: none; gap: var(--space-6); }
  .step { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0 var(--space-4); }
  .step h3 { margin-top: var(--space-2); }
  .step:not(:last-child)::after { display: none; }
  /* One connector line from the first circle's centre to the last one's */
  .steps::before {
    content: ""; position: absolute; top: 23px; height: 2px;
    left: calc((100% - 2 * var(--space-6)) / 6); right: calc((100% - 2 * var(--space-6)) / 6);
    background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 14px);
  }
}

/* Pricing */
.pricing-grid { display: grid; gap: var(--space-5); max-width: 880px; margin: 0 auto; }
.plan-featured { order: -1; } /* Plus first on mobile */
.plan { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-5); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.plan-name { font-size: 20px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.price { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.per { color: var(--muted); }
.plan-list { display: grid; gap: var(--space-3); flex: 1; }
.plan-list li { display: flex; gap: var(--space-3); align-items: center; }
.plan-list .icon { color: var(--success); }
.plan-featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lift); }
.badge {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: var(--radius-pill); background: var(--primary-soft); color: var(--link);
  font-size: var(--fs-xs); font-weight: 600;
}
@media (min-width: 768px) {
  .plan { padding: var(--space-6); }
}
@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .plan-featured { order: 0; }
  .plan .btn-block { width: auto; align-self: flex-start; }
}

/* FAQ accordion */
.accordion { display: grid; gap: var(--space-3); }
.acc-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-card); }
.acc-heading { font-size: inherit; line-height: inherit; }
.acc-trigger {
  width: 100%; min-height: 60px; padding: var(--space-4) var(--space-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  background: none; border: 0; border-radius: var(--radius-card);
  text-align: left; font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink);
}
.acc-trigger:hover { color: var(--link); }
.acc-trigger:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.acc-chevron { transition: transform .2s; color: var(--muted); }
.acc-trigger[aria-expanded="true"] .acc-chevron { transform: rotate(180deg); }
.acc-panel { padding: 0 var(--space-5) var(--space-5); color: var(--muted); }

/* Final CTA */
.final-cta { padding: var(--space-8) 0; }
.cta-banner {
  background: linear-gradient(135deg, #2F5BEA, #1E3FB0);
  color: #fff; border-radius: 24px; padding: var(--space-7) var(--space-5);
  display: grid; gap: var(--space-5); justify-items: center; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); pointer-events: none;
}
.cta-form { display: grid; gap: var(--space-3); width: 100%; max-width: 560px; position: relative; z-index: 1; }
.cta-input-group { border-color: transparent; background: #fff; }
.cta-input-group .input { background: #fff; color: #0F172A; }
.cta-input-group .input::placeholder { color: #64748B; }
.cta-input-group .input-suffix { color: #475569; }
.cta-input-group:focus-within { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.cta-form .btn { width: 100%; }
@media (min-width: 768px) {
  .cta-form { grid-template-columns: 1fr auto; }
  .cta-form .btn { width: auto; }
}
@media (min-width: 1024px) {
  .final-cta { padding: var(--space-9) 0; }
  .cta-banner { padding: var(--space-8); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: var(--space-7) 0 var(--space-5); }
.footer-grid { display: grid; gap: 0; }
.footer-brand { display: grid; gap: var(--space-3); padding-bottom: var(--space-5); }
.footer-brand p { color: var(--muted); }
.footer-col { border-top: 1px solid var(--border); }
.footer-col:last-of-type { border-bottom: 1px solid var(--border); }
.footer-col summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; font-weight: 600; cursor: pointer; list-style: none;
}
.footer-col summary::-webkit-details-marker { display: none; }
.footer-col summary .icon { color: var(--muted); transition: transform .2s; }
.footer-col[open] summary .icon { transform: rotate(180deg); }
.footer-col ul { display: grid; gap: var(--space-1); padding-bottom: var(--space-4); }
.footer-col a, .footer-bottom a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--muted); text-decoration: none;
}
.footer-col a:hover, .footer-bottom a:hover { color: var(--link); }
.footer-bottom {
  display: flex; flex-direction: column; gap: var(--space-2);
  margin-top: var(--space-5); font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--muted);
}
.footer-bottom ul { display: flex; gap: var(--space-5); }
@media (max-width: 1023px) {
  /* leave room for the sticky CTA */
  .site-footer { padding-bottom: calc(var(--space-5) + 80px); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-6); }
  .footer-brand { padding-bottom: 0; align-content: start; }
  .footer-col, .footer-col:last-of-type { border: 0; }
  .footer-col summary { min-height: auto; margin-bottom: var(--space-3); cursor: default; pointer-events: none; }
  .footer-col summary .icon { display: none; }
  .footer-bottom {
    flex-direction: row; justify-content: space-between; align-items: center;
    margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--border);
  }
}

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: none; }
@media (min-width: 768px) and (max-width: 1023px) {
  .sticky-cta .btn { max-width: 480px; margin: 0 auto; display: flex; }
}
@media (min-width: 1024px) { .sticky-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
