/* ==========================================================================
   HomeZero shared design system (business + consumer)
   Sections: 1 Tokens | 2 Base | 3 Layout | 4 Header | 5 Buttons | 6 Hero
   7 Section heads | 8 Cards, badges, features | 9 Steps | 10 Roadmap
   11 FAQ | 12 Form | 13 CTA panel | 14 Footer | 15 Motion + print
   Theme: <body class="theme-business"> or <body class="theme-consumer">
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------
   Dark is the default. Light follows prefers-color-scheme, or :root[data-theme="light"|"dark"] (set by theme.js). */
:root {
  color-scheme: dark light;
  --bg: #020617;
  --bg-alt: #0a1226;
  --surface: rgba(15, 23, 42, .62);
  --surface-solid: #0f172a;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .18);
  --text: #f8fafc;
  --text-dim: #a5b2c6;          /* 8:1 on --bg */
  --brand: #4f46e5;             /* button fill, white text 6.3:1 */
  --brand-2: #7c3aed;           /* gradient end, white text 5.7:1 */
  --accent: #22d3ee;            /* accent text on dark, 11:1 */
  --glow-1: rgba(99, 102, 241, .20);
  --glow-2: rgba(168, 85, 247, .16);
  --ok: #6ee7b7;  --warn: #fca5a5;
  --focus: #67e8f9;
  --shadow: 0 24px 48px -24px rgba(0, 0, 0, .7);
  --shadow-brand: 0 16px 36px -12px rgba(79, 70, 229, .55);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-sm: .875rem; --fs-base: 1rem; --fs-lg: 1.125rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --fs-h1: clamp(2.25rem, 1.4rem + 4.4vw, 4.5rem);
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6rem;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --gutter: 16px;
  --maxw: 1160px;
}
/* Theme accents: same family, different hue emphasis */
.theme-business { --brand: #4f46e5; --brand-2: #7c3aed; --accent: #22d3ee; }
.theme-consumer {
  --brand: #7c3aed; --brand-2: #c026d3; --accent: #c4b5fd;
  --glow-1: rgba(168, 85, 247, .22); --glow-2: rgba(232, 121, 249, .12);
  --shadow-brand: 0 16px 36px -12px rgba(124, 58, 237, .55);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --bg: #f8fafc; --bg-alt: #eef2f9; --surface: rgba(255, 255, 255, .82); --surface-solid: #fff; --border: rgba(15, 23, 42, .12); --border-strong: rgba(15, 23, 42, .28); --text: #0f172a; --text-dim: #475569; --accent: #0e7490; --glow-1: rgba(99, 102, 241, .14); --glow-2: rgba(168, 85, 247, .10); --ok: #047857; --warn: #b91c1c; --focus: #4338ca; --shadow: 0 20px 40px -24px rgba(15, 23, 42, .25); --shadow-brand: 0 14px 30px -12px rgba(79, 70, 229, .45); }
  :root:not([data-theme="dark"]) .theme-business { --accent: #0e7490; }
  :root:not([data-theme="dark"]) .theme-consumer { --accent: #6d28d9; --glow-1: rgba(168, 85, 247, .16); --glow-2: rgba(232, 121, 249, .10); }
}
:root[data-theme="light"] { --bg: #f8fafc; --bg-alt: #eef2f9; --surface: rgba(255, 255, 255, .82); --surface-solid: #fff; --border: rgba(15, 23, 42, .12); --border-strong: rgba(15, 23, 42, .28); --text: #0f172a; --text-dim: #475569; --accent: #0e7490; --glow-1: rgba(99, 102, 241, .14); --glow-2: rgba(168, 85, 247, .10); --ok: #047857; --warn: #b91c1c; --focus: #4338ca; --shadow: 0 20px 40px -24px rgba(15, 23, 42, .25); --shadow-brand: 0 14px 30px -12px rgba(79, 70, 229, .45); }
:root[data-theme="light"] .theme-business { --accent: #0e7490; }
:root[data-theme="light"] .theme-consumer { --accent: #6d28d9; --glow-1: rgba(168, 85, 247, .16); --glow-2: rgba(232, 121, 249, .10); }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
@media (min-width: 820px) { html { scroll-padding-top: 96px; } }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: 1.6;
  background: var(--bg); color: var(--text); overflow-x: hidden;
  background-image: radial-gradient(60rem 40rem at 8% -10%, var(--glow-1), transparent 60%),
                    radial-gradient(50rem 36rem at 100% 30%, var(--glow-2), transparent 60%);
  background-repeat: no-repeat;
}
h1, h2, h3, h4 { margin: 0 0 var(--s-3); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; }
h3 { font-size: var(--fs-h3); letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 var(--s-4); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 200; padding: var(--s-3) var(--s-4);
  background: var(--surface-solid); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--r-sm); }
.skip-link:focus { top: var(--s-3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gradient-text { background: linear-gradient(100deg, var(--accent), var(--brand-2) 70%); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; color: var(--accent); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .gradient-text { background-image: linear-gradient(100deg, var(--brand), var(--brand-2)); }
}
:root[data-theme="light"] .gradient-text { background-image: linear-gradient(100deg, var(--brand), var(--brand-2)); }

/* 3. LAYOUT --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s-8); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
.stack > * + * { margin-top: var(--s-4); }
@media (min-width: 640px) { :root { --gutter: 24px; } .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { :root { --gutter: 32px; } .section { padding-block: var(--s-9); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* 4. HEADER --------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-2) var(--s-4); padding-block: var(--s-3); }
.brand { font-weight: 800; font-size: 1.35rem; letter-spacing: -.04em; text-decoration: none;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand { background-image: linear-gradient(90deg, #818cf8, #c084fc); } }
:root[data-theme="dark"] .brand { background-image: linear-gradient(90deg, #818cf8, #c084fc); }
.site-nav { order: 3; width: 100%; display: flex; gap: var(--s-1); justify-content: space-between; }
.site-nav a { padding: var(--s-2) var(--s-3); min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--r-pill);
  color: var(--text-dim); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); }
.site-switch { display: inline-flex; padding: 3px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); background: var(--surface); }
.site-switch a { padding: 6px 14px; min-height: 36px; display: inline-flex; align-items: center; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-dim); text-decoration: none; }
.site-switch a[aria-current="true"] { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; }
@media (min-width: 820px) {
  .site-header__inner { flex-wrap: nowrap; }
  .site-nav { order: 0; width: auto; margin-inline: auto; gap: var(--s-2); }
  .site-nav a { font-size: .95rem; }
}

/* 5. BUTTONS -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 12px 28px;
  border: 1px solid transparent; border-radius: var(--r-md); font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.btn--primary { background: linear-gradient(100deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: wait; transform: none; }

/* 6. HERO ----------------------------------------------------------------- */
.hero { padding-block: var(--s-8) var(--s-7); }
.hero__inner { display: grid; gap: var(--s-7); align-items: center; }
.hero h1 { font-size: var(--fs-h1); letter-spacing: -.05em; line-height: 1.04; margin-bottom: var(--s-5); }
.hero__lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); color: var(--text-dim); max-width: 38em; margin-bottom: var(--s-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__actions .btn { flex: 1 1 100%; }
.hero__meta { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--text-dim); }
@media (min-width: 640px) { .hero__actions .btn { flex: 0 0 auto; } }
@media (min-width: 960px) { .hero { padding-block: var(--s-9) var(--s-8); } .hero__inner { grid-template-columns: 1.15fr .85fr; } }
/* CSS-only visual: concentric rings with floating chips. Decorative: add aria-hidden="true". */
.hero-visual { position: relative; aspect-ratio: 1; width: min(100%, 420px); margin-inline: auto; display: grid; place-items: center; }
.hero-visual::before, .hero-visual::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--border-strong); }
.hero-visual::before { inset: 4%; background: radial-gradient(circle, var(--glow-1), transparent 70%); }
.hero-visual::after { inset: 24%; border-style: dashed; animation: hz-spin 40s linear infinite; }
.hero-visual__core { width: 28%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--brand-2));
  box-shadow: 0 0 60px var(--glow-1), 0 0 0 10px var(--glow-2); animation: hz-pulse 5s ease-in-out infinite; }
.hero-visual__chip { position: absolute; padding: 6px 14px; border-radius: var(--r-pill); background: var(--surface-solid);
  border: 1px solid var(--border-strong); font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--shadow); }
.hero-visual__chip:nth-child(2) { top: 8%; left: 6%; } .hero-visual__chip:nth-child(3) { top: 22%; right: 0; }
.hero-visual__chip:nth-child(4) { bottom: 10%; left: 12%; } .hero-visual__chip:nth-child(5) { bottom: 24%; right: 4%; }
@keyframes hz-spin { to { transform: rotate(360deg); } }
@keyframes hz-pulse { 50% { transform: scale(1.08); } }

/* 7. SECTION HEADS -------------------------------------------------------- */
.section-head { max-width: 44rem; margin: 0 auto var(--s-7); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--text-dim); font-size: var(--fs-lg); margin: 0; }
.eyebrow { display: inline-block; margin-bottom: var(--s-3); font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); }

/* 8. CARDS, BADGES, FEATURES ---------------------------------------------- */
.card { position: relative; padding: var(--s-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .25s ease, transform .25s ease; }
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card p:last-child { margin-bottom: 0; }
.card--highlight { border-color: color-mix(in srgb, var(--brand) 55%, transparent); box-shadow: var(--shadow); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 700;
  letter-spacing: .04em; white-space: nowrap; color: var(--text-dim); border: 1px solid var(--border-strong); background: var(--surface); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--available { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.badge--next { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.badge--planned { color: var(--text-dim); border-style: dashed; }
.badge--plain::before { display: none; }
.feature { display: flex; flex-direction: column; gap: var(--s-3); }
.feature__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.feature__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3, .feature p { margin: 0; }
.feature p { color: var(--text-dim); }

/* 9. STEPS ("How it works") ----------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); counter-reset: step; grid-template-columns: 1fr; }
.steps > li { position: relative; padding: var(--s-5) var(--s-5) var(--s-5) 4.5rem; counter-increment: step; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); }
.steps > li::before { content: counter(step); position: absolute; left: var(--s-5); top: var(--s-5); width: 2.5rem; height: 2.5rem; display: grid;
  place-items: center; border-radius: 50%; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.steps h3 { margin-bottom: var(--s-2); }
.steps p { margin: 0; color: var(--text-dim); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps > li { padding: 4.5rem var(--s-5) var(--s-5); }
  .steps > li::before { left: var(--s-5); top: var(--s-5); } }

/* 10. ROADMAP (Now / Next / Later) ---------------------------------------- */
/* Mobile: one column with a vertical timeline line and dots. Desktop: three columns on a horizontal line. */
.roadmap { display: grid; gap: var(--s-6); grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.roadmap__col { position: relative; padding-left: var(--s-6); border-left: 2px solid var(--border-strong); }
.roadmap__col::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--text-dim); }
.roadmap__col--now::before { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 22%, transparent); }
.roadmap__col--next::before { border-color: var(--accent); }
.roadmap__col--later::before { border-style: dashed; }
.roadmap__label { display: flex; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-4); }
.roadmap__label h3 { margin: 0; font-size: 1.5rem; }
.roadmap__label span { color: var(--text-dim); font-size: var(--fs-sm); }
.roadmap__items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.roadmap__item { padding: var(--s-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.roadmap__item h4 { margin: 0 0 var(--s-1); font-size: 1rem; letter-spacing: -.01em; }
.roadmap__item p { margin: 0; color: var(--text-dim); font-size: var(--fs-sm); }
@media (min-width: 820px) {
  .roadmap { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
  .roadmap__col { padding: var(--s-6) 0 0; border-left: 0; border-top: 2px solid var(--border-strong); }
  .roadmap__col::before { left: 0; top: -9px; }
}

/* 11. FAQ ----------------------------------------------------------------- */
.faq { max-width: 46rem; margin-inline: auto; display: grid; gap: var(--s-3); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 56px; padding: var(--s-3) var(--s-5);
  font-weight: 600; cursor: pointer; list-style: none; border-radius: var(--r-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq__body { padding: 0 var(--s-5) var(--s-5); color: var(--text-dim); }
.faq__body p:last-child { margin-bottom: 0; }

/* 12. FORM ---------------------------------------------------------------- */
.form { display: grid; gap: var(--s-4); text-align: left; }
.field { display: grid; gap: var(--s-2); }
.field label, .field legend, .form__label { font-size: var(--fs-sm); font-weight: 600; }
.field legend { padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 14px 18px; font: inherit; font-size: 1rem; /* 16px stops iOS zoom */
  color: var(--text); background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: var(--r-md); }
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-dim); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--accent); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field-hint { font-size: var(--fs-sm); color: var(--text-dim); margin: 0; }
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--warn); }
.field-error { display: none; font-size: var(--fs-sm); font-weight: 600; color: var(--warn); margin: 0; }
.field--error .field-error { display: block; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: .95rem; line-height: 1.45; cursor: pointer; padding-block: var(--s-1); }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); cursor: pointer; }
.check--consent { font-size: var(--fs-sm); color: var(--text-dim); }
.checks { display: grid; gap: var(--s-2); }
/* Honeypot: invisible to people, still in the DOM for bots. Add tabindex="-1" aria-hidden="true" autocomplete="off". */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.alert { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); border: 1px solid; font-weight: 600; text-align: left; }
.alert--error { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.alert--success { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 55%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }

/* 13. CTA PANEL (wraps the sign-up form) ---------------------------------- */
.cta-panel { max-width: 44rem; margin-inline: auto; padding: var(--s-6) var(--s-5); text-align: center; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--brand), var(--brand-2)); }
.cta-panel h2 { font-size: var(--fs-h2); }
.cta-panel > p { color: var(--text-dim); font-size: var(--fs-lg); }
.cta-panel .form { max-width: 32rem; margin: var(--s-6) auto 0; }
@media (min-width: 640px) { .cta-panel { padding: var(--s-7) var(--s-7); } }

/* 14. FOOTER -------------------------------------------------------------- */
.site-footer { padding-block: var(--s-7); border-top: 1px solid var(--border); color: var(--text-dim); font-size: var(--fs-sm); }
.site-footer__inner { display: grid; gap: var(--s-4); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.site-footer a { color: var(--text-dim); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }
@media (min-width: 820px) { .site-footer__inner { grid-template-columns: 1fr auto; align-items: center; } }

/* 15. MOTION + PRINT ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn--primary:hover, .btn--secondary:hover, .card:hover { transform: none; }
}
@media print { .site-header, .hero-visual, .cta-panel .form { display: none; } body { background: #fff; color: #000; } }
