/* HomewardText site styles. Tokens from the HomewardText brand kit (tokens.json v1). */

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: #faf4ec; --surface: #fffbf6; --surface-sunken: #f1e7d9;
  --ink: #2e2420; --ink-muted: #685649; --line: #e6d9c8; --border: #958070;
  --accent: #a9472a; --accent-hover: #8c3920; --on-accent: #fffaf4; --accent-soft: #f7e1d4;
  --sage: #4d6a4c; --sage-soft: #e3ebdd; --focus: #a9472a;
  --success: #2f6b55; --warning: #8a5508; --error: #a3241f; --link: var(--accent);
  --shadow-sm: 0 1px 2px #2e24200f, 0 1px 3px #2e242014;
  --shadow-md: 0 2px 6px #2e24200d, 0 10px 24px -6px #2e24201f;
  --focus-ring: 0 0 0 2px #fffbf6, 0 0 0 4px #a9472a;
  --font-heading: "Nunito", "Nunito Sans", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-full: 9999px;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1815; --surface: #272019; --surface-sunken: #15110f;
    --ink: #f4ebe1; --ink-muted: #c4b3a4; --line: #3a3029; --border: #86746a;
    --accent: #e58c66; --accent-hover: #f0a584; --on-accent: #1d1815; --accent-soft: #4a2b1e;
    --sage: #a3bb9f; --sage-soft: #28322a; --focus: #f0a584;
    --success: #7fc7a9; --warning: #e2b56c; --error: #f3958b;
    --shadow-sm: 0 1px 3px #000000a6; --shadow-md: 0 10px 24px -6px #000000cc;
    --focus-ring: 0 0 0 2px #1d1815, 0 0 0 4px #f0a584;
  }
}
:root[data-theme="dark"] {
  --bg: #1d1815; --surface: #272019; --surface-sunken: #15110f;
  --ink: #f4ebe1; --ink-muted: #c4b3a4; --line: #3a3029; --border: #86746a;
  --accent: #e58c66; --accent-hover: #f0a584; --on-accent: #1d1815; --accent-soft: #4a2b1e;
  --sage: #a3bb9f; --sage-soft: #28322a; --focus: #f0a584;
  --success: #7fc7a9; --warning: #e2b56c; --error: #f3958b;
  --shadow-sm: 0 1px 3px #000000a6; --shadow-md: 0 10px 24px -6px #000000cc;
  --focus-ring: 0 0 0 2px #1d1815, 0 0 0 4px #f0a584;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 26px; background: var(--bg); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: 32px; line-height: 40px; font-weight: 800; letter-spacing: -0.005em; }
h2 { font-size: 24px; line-height: 32px; font-weight: 700; }
h3 { font-size: 20px; line-height: 28px; font-weight: 700; }
h4 { font-size: 17px; line-height: 26px; font-weight: 700; }
p { margin: 0; }
p + p { margin-top: var(--space-3); }
a { color: var(--link); font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.lede { font-size: 18px; line-height: 28px; color: var(--ink); max-width: 38em; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 20px; }
.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; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-4); }
.narrow { max-width: 720px; }
.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-8); }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 12px 20px; border-radius: var(--radius-full); text-decoration: none; }
.skip-link:focus { top: var(--space-3); }

/* ---------- Logo swap (follows OS theme and an explicit data-theme) ---------- */
:root { --logo-light: inline; --logo-dark: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --logo-light: none; --logo-dark: inline; } }
:root[data-theme="dark"] { --logo-light: none; --logo-dark: inline; }
.logo-light { display: var(--logo-light); }
.logo-dark { display: var(--logo-dark); }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 68px; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-4); }
.logo-link { display: inline-flex; align-items: center; padding: 11px 0; border-radius: var(--radius-sm); }
.logo-link img { height: 30px; width: auto; }
@media (min-width: 900px) { .logo-link img { height: 34px; } }
.main-nav { display: flex; align-items: center; gap: var(--space-2); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-1); }
.main-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; border-radius: var(--radius-full); }
.main-nav a:not(.btn):hover { color: var(--accent-hover); background: var(--accent-soft); }
.main-nav a[aria-current="page"]:not(.btn) { color: var(--accent); background: var(--accent-soft); }
.nav-toggle { display: none; }
.nav-cta { margin-left: var(--space-2); }

@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; min-width: 44px; padding: 0 14px; font: 600 16px/24px var(--font-body); color: var(--ink); background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-full); cursor: pointer; }
  .nav-toggle svg { width: 20px; height: 20px; }
  .js .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: var(--space-3) var(--space-4) var(--space-6); display: none; flex-direction: column; align-items: stretch; }
  .js .main-nav.is-open { display: flex; }
  .js .main-nav ul { flex-direction: column; }
  .js .main-nav a:not(.btn) { min-height: 48px; font-size: 18px; padding: 0 var(--space-3); }
  .js .nav-cta { margin: var(--space-3) 0 0; }
  /* No-JS: the menu wraps under the logo. */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: var(--space-2); }
  html:not(.js) .main-nav { flex-wrap: wrap; }
  html:not(.js) .main-nav ul { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn { font: 700 16px/24px var(--font-body); min-height: 48px; padding: 12px var(--space-6); border-radius: var(--radius-full); border: 2px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); text-decoration: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease; text-align: center; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-hover); text-decoration: none; }
.btn-quiet { background: transparent; border-color: transparent; color: var(--accent); padding-left: var(--space3, 12px); padding-right: 12px; }
.btn-quiet:hover { color: var(--accent-hover); text-decoration: underline; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Sections ---------- */
.section { padding: var(--space-12) 0; }
.section-sunken { background: var(--surface-sunken); }
@media (min-width: 900px) { .section { padding: var(--space-16) 0; } }
.section-head { max-width: 40em; margin-bottom: var(--space-8); }
.section-head p { margin-top: var(--space-3); }
.page-head { padding-top: var(--space-12); padding-bottom: var(--space-8); }
.page-head h1 { max-width: 18em; }
.page-head .lede { margin-top: var(--space-3); }
@media (min-width: 900px) { .page-head { padding-top: var(--space-16); } h1 { font-size: 40px; line-height: 48px; } }

/* ---------- Hero ---------- */
.hero { padding: var(--space-8) 0 var(--space-12); overflow: hidden; }
.hero-grid { display: grid; gap: var(--space-8); align-items: center; }
.hero h1 { font-size: 40px; line-height: 46px; font-weight: 800; letter-spacing: -0.01em; max-width: 11em; }
.hero .lede { margin-top: var(--space-4); }
.hero .btn-row { margin-top: var(--space-6); }
.hero-note { margin-top: var(--space-4); color: var(--ink-muted); font-size: 14px; line-height: 20px; max-width: 34em; }
@media (min-width: 900px) {
  .hero { padding: var(--space-16) 0; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: var(--space-12); }
  .hero h1 { font-size: 56px; line-height: 60px; }
}

/* ---------- Phone demo (the one bold thing) ---------- */
.demo { position: relative; justify-self: center; width: 100%; max-width: 340px; }
.demo-backdrop { position: absolute; inset: 8% -14% -6% -14%; z-index: 0; color: var(--accent-soft); }
.demo-backdrop svg { width: 100%; height: 100%; }
.phone { position: relative; z-index: 1; background: #2e2420; border: 1px solid var(--line); border-radius: 44px; padding: 12px; box-shadow: var(--shadow-md); }
.phone-screen { background: var(--surface); border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; min-height: 500px; }
.phone-top { display: flex; align-items: center; gap: var(--space-3); padding: 20px 18px 12px; border-bottom: 1px solid var(--line); }
.phone-top img { width: 34px; height: 34px; }
.phone-top strong { display: block; font-family: var(--font-heading); font-size: 16px; line-height: 20px; }
.phone-top span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.phone-top div { min-width: 0; }
.example-tag { margin-left: auto; font: 700 13px/18px var(--font-body); color: var(--sage); background: var(--sage-soft); padding: 3px 10px; border-radius: var(--radius-full); }
.thread { list-style: none; margin: 0; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: flex-start; min-height: 380px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 21px; }
.bubble-in { align-self: flex-start; background: var(--surface-sunken); color: var(--ink); border-bottom-left-radius: 6px; }
.bubble-out { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.bubble-meta { align-self: center; font-size: 13px; line-height: 18px; color: var(--ink-muted); padding: 2px 0; }
.bubble-from { display: block; font-size: 13px; font-weight: 700; color: var(--ink-muted); margin-bottom: 2px; }
.typing { align-self: flex-start; background: var(--surface-sunken); border-radius: 20px; border-bottom-left-radius: 6px; padding: 12px 14px; display: inline-flex; gap: 5px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.js .thread .is-pending { display: none; }
.thread .is-new { animation: pop .35s ease-out both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.phone-compose { display: flex; align-items: center; gap: 8px; padding: 10px 12px 16px; border-top: 1px solid var(--line); }
.phone-compose span { flex: 1; border: 1.5px solid var(--line); border-radius: var(--radius-full); padding: 8px 14px; font-size: 14px; color: var(--ink-muted); }
.phone-compose b { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--on-accent); }
.phone-compose b svg { width: 16px; height: 16px; }
.demo-controls { position: relative; z-index: 1; display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-4); }
.demo-caption { position: relative; z-index: 1; text-align: center; margin-top: var(--space-2); font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* ---------- Stepper ---------- */
.stepper { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .stepper { grid-template-columns: 300px 1fr; gap: var(--space-12); align-items: start; } }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); counter-reset: step; position: relative; }
.step-tab { width: 100%; text-align: left; display: grid; grid-template-columns: 40px 1fr; gap: var(--space-3); align-items: center; min-height: 56px; padding: 8px 14px 8px 8px; background: transparent; border: 2px solid transparent; border-radius: var(--radius-full); font: 700 17px/24px var(--font-heading); color: var(--ink); cursor: pointer; position: relative; overflow: hidden; }
.step-tab:hover { background: var(--surface); }
.step-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border); font: 800 17px/1 var(--font-heading); color: var(--ink); }
.step-tab[aria-selected="true"] { background: var(--surface); border-color: var(--accent); }
.step-tab[aria-selected="true"] .step-num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step-tab .step-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.step-tab.is-running .step-timer { animation: fill var(--step-ms, 6000ms) linear forwards; }
@keyframes fill { to { width: 100%; } }
.step-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .step-panel { padding: var(--space-8); grid-template-columns: 1fr 180px; align-items: center; min-height: 260px; } }
.step-panel h3 { font-size: 24px; line-height: 32px; }
.step-panel p { margin-top: var(--space-3); max-width: 34em; }
.step-art { width: 140px; height: 140px; color: var(--accent); justify-self: start; }
@media (min-width: 900px) { .step-art { width: 180px; height: 180px; justify-self: end; } }
.step-art .sage { color: var(--sage); }
.step-panel.is-entering { animation: pop .3s ease-out; }
.stepper-controls { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
html:not(.js) .step-tabs-wrap { display: none; }
html:not(.js) .step-panel[hidden] { display: grid !important; }
html:not(.js) .step-panels { display: grid; gap: var(--space-4); }

/* Static numbered steps (no tabs) */
.steps-static { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); counter-reset: s; }
.steps-static li { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); align-items: start; }
.steps-static li::before { counter-increment: s; content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 800 18px/1 var(--font-heading); }
.steps-static h3 { font-size: 18px; line-height: 26px; }
.steps-static p { margin-top: 2px; }

/* ---------- Cards and grids ---------- */
.grid-2, .grid-3 { display: grid; gap: var(--space-6); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.card h3 + p, .card h2 + p { margin-top: var(--space-2); }
.icon-badge { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hover); margin-bottom: var(--space-4); }
.icon-badge svg { width: 26px; height: 26px; }
.tip { background: var(--sage-soft); border-radius: var(--radius-md); padding: var(--space-4) var(--space-6); display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); color: var(--ink); }
.tip svg { width: 24px; height: 24px; color: var(--sage); margin-top: 1px; }
.tip-warm { background: var(--accent-soft); }
.tip-warm svg { color: var(--accent-hover); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); align-items: start; }
.check-list svg { width: 22px; height: 22px; color: var(--sage); margin-top: 2px; }
.x-list svg { color: var(--ink-muted); }

/* Split promo band with bubble shape */
.band { background: var(--surface); border: 1px solid var(--line); border-radius: 28px 28px 28px 8px; padding: var(--space-8) var(--space-6); display: grid; gap: var(--space-6); align-items: center; position: relative; }
@media (min-width: 900px) { .band { grid-template-columns: 1fr auto; padding: var(--space-12); } }
.band::after { content: ""; position: absolute; left: -1px; bottom: -22px; width: 30px; height: 24px; background: var(--surface); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); border-bottom-left-radius: 26px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.band h2 { font-size: 28px; line-height: 36px; }
.band p { margin-top: var(--space-2); }

/* ---------- Pricing ---------- */
.price-wrap { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 900px) { .price-wrap { grid-template-columns: 400px 1fr; } }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-6); display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .price-card { padding: var(--space-8); } }
.badge svg { width: 18px; height: 18px; flex: none; }
.badge { display: inline-flex; width: max-content; align-items: center; gap: var(--space-1); font: 700 14px/20px var(--font-body); background: var(--accent-soft); color: var(--accent-hover); padding: 4px 12px; border-radius: var(--radius-full); }
.price { font-family: var(--font-heading); font-weight: 800; font-size: 48px; line-height: 52px; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
.price small { font-family: var(--font-body); font-size: 16px; font-weight: 400; color: var(--ink-muted); letter-spacing: 0; }
.renewal { font-size: 14px; line-height: 20px; color: var(--ink); background: var(--surface-sunken); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.renewal strong { font-weight: 700; }
.coming-soon { border: 2px dashed var(--line); border-radius: var(--radius-lg); padding: var(--space-6); color: var(--ink-muted); }
.coming-soon h3 { color: var(--ink); font-size: 18px; }

/* Trial timeline */
.timeline { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); position: relative; padding-bottom: var(--space-6); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.tl-dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border); color: var(--ink); }
.tl-dot svg { width: 22px; height: 22px; }
.timeline li.is-active .tl-dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.timeline h3 { font-size: 18px; line-height: 26px; padding-top: 8px; }
.timeline p { margin-top: 2px; }
.tl-when { font-size: 14px; line-height: 20px; color: var(--ink-muted); font-weight: 700; }
.timeline-picker { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.chip { min-height: 44px; padding: 0 16px; border-radius: var(--radius-full); border: 2px solid var(--border); background: var(--surface); color: var(--ink); font: 600 15px/1 var(--font-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.timeline-says { margin-top: var(--space-4); min-height: 52px; }

/* ---------- FAQ ---------- */
.faq-search { position: relative; max-width: 520px; margin-bottom: var(--space-6); }
.faq-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-muted); pointer-events: none; }
.faq-search .input { padding-left: 46px; }
.faq-group + .faq-group { margin-top: var(--space-8); }
.faq-group h2 { margin-bottom: var(--space-3); font-size: 22px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.faq-item + .faq-item { margin-top: var(--space-2); }
.faq-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: var(--space-3); align-items: center; padding: 14px var(--space-4); min-height: 56px; font: 700 17px/24px var(--font-heading); border-radius: var(--radius-md); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 22px; height: 22px; color: var(--accent); transition: transform .2s ease; }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-answer { padding: 0 var(--space-4) var(--space-4); max-width: 44em; }
.faq-answer ul { margin: var(--space-2) 0 0; padding-left: 1.2em; }
.faq-empty { padding: var(--space-6); background: var(--surface); border-radius: var(--radius-md); border: 1px solid var(--line); }
mark { background: var(--accent-soft); color: var(--ink); border-radius: 3px; padding: 0 1px; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-4); }
@media (min-width: 600px) { .form-card { padding: var(--space-8); } }
.form-grid { display: grid; gap: var(--space-6); }
.form-row { display: grid; gap: var(--space-6); }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-family: var(--font-heading); font-size: 22px; line-height: 30px; font-weight: 700; color: var(--ink); margin-bottom: var(--space-2); }
.legend-help { color: var(--ink-muted); margin-bottom: var(--space-6); }
.field { display: grid; gap: var(--space-2); align-content: start; }
.label { font: 600 16px/24px var(--font-body); color: var(--ink); }
.label .opt { font-weight: 400; color: var(--ink-muted); }
.help { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin: 0; }
.input, select.input, textarea.input { font: 400 16px/24px var(--font-body); color: var(--ink); background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-md); min-height: 48px; padding: 10px 14px; width: 100%; }
textarea.input { min-height: 128px; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23958070' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
.input::placeholder { color: var(--ink-muted); opacity: 1; }
.input:focus-visible { border-color: var(--focus); box-shadow: var(--focus-ring); border-radius: var(--radius-md); }
.field.has-error .input, .input[aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: 14px; line-height: 20px; color: var(--error); margin: 0; display: flex; gap: var(--space-1); align-items: flex-start; font-weight: 700; }
.field-error svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.phone-input { display: flex; align-items: stretch; border: 2px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.phone-input:focus-within { border-color: var(--focus); box-shadow: var(--focus-ring); }
.field.has-error .phone-input { border-color: var(--error); }
.phone-input .prefix { display: flex; align-items: center; padding: 0 12px; background: var(--surface-sunken); color: var(--ink); font-weight: 600; border-right: 2px solid var(--line); }
.phone-input .input { border: 0; border-radius: 0; box-shadow: none; }
.phone-input .input:focus-visible { box-shadow: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Help popover for register number */
.helptip { position: relative; display: inline-block; }
.helptip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--accent); font: 600 14px/20px var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.helptip-btn svg { width: 18px; height: 18px; }
.helptip-panel { margin-top: var(--space-1); background: var(--sage-soft); color: var(--ink); border-radius: var(--radius-md); padding: var(--space-4); font-size: 15px; line-height: 22px; max-width: 30em; }
.helptip-panel ul { margin: var(--space-2) 0 0; padding-left: 1.2em; }

/* Consent block */
.consent { background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); }
.check { appearance: none; -webkit-appearance: none; width: 28px; height: 28px; margin: 0; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; display: grid; place-content: center; position: relative; }
.check::before { content: ""; position: absolute; inset: -9px; }
.check:checked { background: var(--accent); border-color: var(--accent); }
.check:checked::after { content: ""; width: 13px; height: 7px; border-left: 3px solid var(--on-accent); border-bottom: 3px solid var(--on-accent); transform: translateY(-2px) rotate(-45deg); }
.check:focus-visible { box-shadow: var(--focus-ring); }
.consent-text { font-size: 15px; line-height: 22px; color: var(--ink); cursor: pointer; }
.consent-links { grid-column: 2; font-size: 14px; line-height: 20px; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.consent-links a { display: inline-flex; min-height: 32px; align-items: center; }
.check-row { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; }

/* Wizard */
.progress { margin-bottom: var(--space-6); }
.progress-steps { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.progress-steps li { font-size: 14px; line-height: 20px; color: var(--ink-muted); font-weight: 600; }
.progress-steps li[aria-current="step"] { color: var(--ink); font-weight: 700; }
.progress-steps li.is-done { color: var(--sage); }
.progress-bar { height: 8px; border-radius: var(--radius-full); background: var(--surface-sunken); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 33.34%; background: var(--accent); border-radius: var(--radius-full); transition: width .35s ease; }
html:not(.js) .progress { display: none; }
.wizard-nav { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: center; margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.wizard-nav .btn-primary { margin-left: auto; }
html:not(.js) .wizard-nav .js-only { display: none; }
.js .wizard-step[hidden] { display: none; }
html:not(.js) .wizard-step + .wizard-step { margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid var(--line); }
.review { display: grid; gap: var(--space-4); margin-bottom: var(--space-6); }
.review-block { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); }
.review-block h3 { font-size: 17px; line-height: 24px; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.review-block dl { margin: var(--space-2) 0 0; display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 4px var(--space-4); }
.review-block dt { color: var(--ink-muted); }
.review-block dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.review-block button { min-height: 44px; }
html:not(.js) .review { display: none; }
.billing-note { font-size: 14px; line-height: 20px; margin-top: var(--space-3); }

/* Status messages */
.status { border-radius: var(--radius-md); padding: var(--space-4); display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); margin-top: var(--space-4); }
.status svg { width: 24px; height: 24px; }
.status-ok { background: var(--sage-soft); color: var(--ink); }
.status-ok svg { color: var(--success); }
.status-warn { background: var(--accent-soft); color: var(--ink); }
.status-warn svg { color: var(--warning); }
.status-err { background: var(--surface-sunken); color: var(--ink); border: 2px solid var(--error); }
.status-err svg { color: var(--error); }
.status strong { display: block; }
.status:focus { outline: none; }

/* Tabs (account) */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.tab { min-height: 48px; padding: 0 var(--space-6); border-radius: var(--radius-full); border: 2px solid var(--border); background: var(--surface); color: var(--ink); font: 700 16px/1 var(--font-body); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
html:not(.js) .tabs { display: none; }
html:not(.js) .tab-panel[hidden] { display: block !important; }
html:not(.js) .tab-panel + .tab-panel { margin-top: var(--space-8); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: var(--space-12); font-size: 24px; }
.prose h3 { margin-top: var(--space-6); font-size: 19px; }
.prose p, .prose ul, .prose ol, .prose table { margin-top: var(--space-3); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: var(--space-1); }
.prose .quote { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-md); padding: var(--space-4); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 22px; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px 10px 0; vertical-align: top; }
.prose th { font-weight: 700; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4) var(--space-6); }
.toc ol { margin: var(--space-2) 0 0; padding-left: 1.3em; columns: 2 220px; }
.updated { color: var(--ink-muted); font-size: 14px; }
.table-scroll { overflow-x: auto; }

/* SMS consent replica */
.replica { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: var(--space-4); background: var(--bg); }
.replica-label { font: 700 14px/20px var(--font-body); color: var(--sage); background: var(--sage-soft); border-radius: var(--radius-full); padding: 4px 12px; display: inline-block; margin-bottom: var(--space-4); }
.replica .input[readonly] { background: var(--surface); }
.replica-step + .replica-step { margin-top: var(--space-8); padding-top: var(--space-8); border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-sunken); border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 14px; line-height: 20px; margin-top: auto; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: var(--space-12) var(--space-4) var(--space-8); display: grid; gap: var(--space-8); }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1.2fr 2fr; } }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin-top: var(--space-3); max-width: 26em; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-6); }
.footer-cols h2 { font-family: var(--font-body); font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); margin-bottom: var(--space-2); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols a { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.footer-cols a:hover { color: var(--accent-hover); text-decoration: underline; }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: var(--space-6); display: grid; gap: var(--space-2); }
.footer-legal p + p { margin-top: 0; }

/* Thanks / message pages */
.big-check { width: 64px; height: 64px; border-radius: 20px; background: var(--sage-soft); color: var(--success); display: grid; place-items: center; margin-bottom: var(--space-6); }
.big-check svg { width: 34px; height: 34px; }
.big-check.warm { background: var(--accent-soft); color: var(--accent-hover); }
.text-preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); max-width: 420px; }
.text-preview .bubble { max-width: 100%; }
.not-found-art { width: 120px; height: 120px; color: var(--accent); margin-bottom: var(--space-6); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .site-footer, .demo, .btn { display: none !important; } body { background: #fff; color: #000; } }

/* Spacing utilities (inline styles are converted to these at build time) */
.mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); } .mb-2 { margin-bottom: var(--space-2); }
.section.pt-0, .pt-0 { padding-top: 0; } .w-full { width: 100%; }
.form-msg { display: none; }
.form-msg.is-shown, .form-msg:target { display: grid; }
.step-panel h2.h3 { font-size: 24px; line-height: 32px; }
.steps-static h2.h4 { font-size: 18px; line-height: 26px; }

/* ---------- Plans ---------- */
.plan-grid { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 900px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-grid .price-card { box-shadow: none; align-content: start; }
.plan-grid .price-card.is-featured { box-shadow: var(--shadow-md); border: 2px solid var(--accent); }
.plan-grid .price-card h2 { font-size: 26px; line-height: 32px; }
.plan-grid .price-card .btn { margin-top: auto; }
.compare table { border-collapse: collapse; width: 100%; min-width: 620px; margin-top: var(--space-6); font-size: 15px; line-height: 22px; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-heading); font-size: 18px; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 34%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.addon-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.addon-list li { display: flex; justify-content: space-between; gap: var(--space-4); padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.addon-list li:last-child { border-bottom: 0; }
.addon-list strong { font-variant-numeric: tabular-nums; margin-left: auto; text-align: right; }
.js .nojs-note { display: none; }

/* Plan choice in the sign-up form */
.plan-pick legend { font: 600 16px/24px var(--font-body); margin-bottom: 0; }
.plan-pick .help { margin-bottom: var(--space-1); }
.plan-options { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
.plan-option { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); align-items: start; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; min-height: 48px; }
.plan-option input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 2px 0 0; border: 2px solid var(--border); border-radius: 50%; background: var(--surface); display: grid; place-content: center; cursor: pointer; }
.plan-option input:checked { border-color: var(--accent); }
.plan-option input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.plan-option input:focus-visible { box-shadow: var(--focus-ring); }
.plan-option:has(input:checked), .plan-option.is-checked { border-color: var(--accent); background: var(--accent-soft); }
.plan-option-body { display: grid; gap: 2px; min-width: 0; }
.plan-option-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); font-size: 17px; }
.plan-option-head strong { font-family: var(--font-heading); }
.plan-option-head span { font-weight: 700; }
.plan-option-lines { font-size: 14px; line-height: 20px; color: var(--ink); }
.radio-dot { width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 50%; margin-top: 2px; display: grid; place-content: center; }
.plan-option.is-checked .radio-dot { border-color: var(--accent); }
.plan-option.is-checked .radio-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
