/* Aestar marketing site — one stylesheet for every public page.
   Pages are generated by scripts/build-site.mjs from site/*.mjs. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/PlusJakartaSans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
}

:root {
  --night: #070f1f;
  --navy: #0a1128;
  --navy-2: #0f1d3a;
  --navy-3: #16284a;
  --ink: #0c1b2e;
  --slate: #43546a;
  --mute: #66768c;
  --line: #e1e7ef;
  --line-dark: rgba(255, 255, 255, 0.1);
  --paper: #f4f7fb;
  --white: #ffffff;
  --orange: #ff6a1a;
  --orange-hover: #ff8133;
  --orange-deep: #c94f0c;
  --orange-soft: #fff0e6;
  --green: #138a5c;
  --green-soft: #e1f5ec;
  --amber: #8a5a00;
  --amber-soft: #fdf1d6;
  --sky: #2f74f0;
  --on-dark: #c3cedd;
  --on-dark-mute: #8d9db3;
  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --wrap: 1180px;
  --shadow: 0 30px 60px -36px rgba(7, 15, 31, 0.45);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); }
p { margin: 0; }
ul { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.wrap-narrow { max-width: 820px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.center { text-align: center; }

.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}
.eyebrow {
  font: 700 12.5px/1.2 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.dark .eyebrow, .hero .eyebrow { color: #ff9a5c; }
.lede { font-size: 19px; line-height: 1.6; color: var(--slate); max-width: 60ch; text-wrap: pretty; }
.dark .lede, .hero .lede, .page-hero .lede { color: var(--on-dark); }
.fine { font-size: 14px; line-height: 1.55; color: var(--mute); }
.dark .fine { color: var(--on-dark-mute); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 650 16px/1 var(--body); text-decoration: none; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--orange); color: #1b0a00; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.32); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); }
.btn-line { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: #b9c5d4; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--navy-3); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.link { color: var(--orange-deep); font-weight: 650; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.dark .link { color: #ff9a5c; }

/* Tags */
.tag {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 10px;
  border-radius: 999px; font: 650 12px/1.2 var(--body); letter-spacing: 0.01em; white-space: nowrap;
}
.tag-green { background: var(--green-soft); color: #0b6443; }
.tag-amber { background: var(--amber-soft); color: #6d4700; }
.tag-orange { background: var(--orange-soft); color: #8f3606; }
.tag-slate { background: #e8edf4; color: #3a4a5f; }
.tag-dark { background: rgba(255, 255, 255, 0.1); color: #dbe4ef; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(7, 15, 31, 0.94); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line-dark); color: var(--white); }
.site-head .wrap { display: flex; align-items: center; gap: 26px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font: 800 17px/1 var(--display); letter-spacing: 0.12em; }
.logo img { width: 24px; height: 24px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.nav > a, .nav-item > button {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px;
  color: var(--on-dark); text-decoration: none; font: 550 15px/1 var(--body); background: none; border: 0; cursor: pointer;
}
.nav > a:hover, .nav-item > button:hover, .nav-item.open > button, .nav > a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.nav-item { position: relative; }
.nav-item > button::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); opacity: 0.7; }
.menu-panel {
  position: absolute; top: calc(100% + 8px); left: -12px; min-width: 560px; padding: 14px;
  background: var(--white); color: var(--ink); border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(7, 15, 31, 0.55); display: none;
}
.menu-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item.open .menu-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.menu-panel.narrow { min-width: 300px; }
.nav-item.open .menu-panel.narrow { grid-template-columns: 1fr; }
.menu-link { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 12px; text-decoration: none; }
.menu-link:hover, .menu-link:focus-visible { background: var(--paper); }
.menu-link .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--orange-soft); color: var(--orange-deep); display: grid; place-items: center; }
.menu-link .ico svg { width: 19px; height: 19px; }
.menu-link b { display: block; font: 650 15px/1.3 var(--body); }
.menu-link span { display: block; font-size: 13.5px; line-height: 1.4; color: var(--mute); margin-top: 2px; }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.head-right .signin { color: var(--on-dark); text-decoration: none; font: 550 15px/1 var(--body); padding: 0 10px; }
.head-right .signin:hover { color: var(--white); }
.head-right .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }
.menu-toggle { display: none; margin-left: auto; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.28); background: none; color: var(--white); font: 600 15px/1 var(--body); cursor: pointer; }
.mobile-nav { display: none; }

/* Sections */
section { padding-block: 96px; }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 780px; }
.section-head.center { margin-inline: auto; justify-items: center; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); }
.dark { background: var(--night); color: var(--white); }
.paper { background: var(--paper); }
.band-tight { padding-block: 64px; }

/* Hero */
.hero { background: radial-gradient(1100px 520px at 80% 0%, rgba(255, 106, 26, 0.16), transparent 62%), var(--night); color: var(--white); padding-block: 72px 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 68px); margin-top: 18px; }
.hero h1 .l { display: block; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lede { margin-top: 22px; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-call { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); max-width: 560px; }
.hero-call b { font: 700 20px/1.2 var(--mono); color: var(--white); letter-spacing: -0.01em; }
.hero-call span { color: var(--on-dark); font-size: 15px; }
.checks { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--on-dark-mute); font-size: 14.5px; }
.checks span::before { content: "✓"; color: var(--orange); margin-right: 7px; font-weight: 800; }
.page-hero { background: var(--night); color: var(--white); padding-block: 72px 80px; }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 58px); margin-top: 16px; max-width: 20ch; }
.page-hero .lede { margin-top: 20px; }
.page-hero.center h1, .page-hero.center .lede { margin-inline: auto; text-align: center; }
.page-hero.center { text-align: center; }
.page-hero .hero-actions { justify-content: flex-start; }
.page-hero.center .hero-actions { justify-content: center; }

/* Call card (example call) */
.call { background: #0e1b33; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; padding: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); color: var(--white); }
.call-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), #ffa15f); display: grid; place-items: center; color: #1b0a00; font: 800 15px/1 var(--display); flex: none; }
.call-top b { display: block; font-size: 15px; line-height: 1.3; }
.call-top small { color: var(--on-dark-mute); font-size: 13px; }
.call-top .tag { margin-left: auto; }
.bubbles { display: grid; gap: 10px; padding-block: 16px 6px; }
.b { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.b-caller { background: #1c2d4b; color: #dde6f2; border-bottom-left-radius: 6px; }
.b-ava { background: #f5f8fc; color: var(--ink); margin-left: auto; border-bottom-right-radius: 6px; }
.b .who { display: block; font: 700 11px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.62; margin-bottom: 5px; }
.result-card { margin-top: 14px; background: var(--white); color: var(--ink); border-radius: 16px; padding: 16px; display: grid; gap: 12px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.result-head b { font: 750 17px/1.25 var(--display); }
.kv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kv { background: var(--paper); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.kv span { display: block; font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 650; }
.kv b { display: block; font: 600 14px/1.3 var(--mono); overflow-wrap: anywhere; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.example-note { margin-top: 10px; font-size: 12.5px; color: var(--on-dark-mute); text-align: center; }

/* Timeline strip */
.strip { background: #0a1426; color: var(--on-dark); border-top: 1px solid var(--line-dark); padding: 0; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 24px 22px 26px 0; }
.strip-item + .strip-item { padding-left: 22px; border-left: 1px solid var(--line-dark); }
.strip-item .mono { color: #ff9a5c; font-size: 13px; }
.strip-item p { margin-top: 6px; font-size: 15px; line-height: 1.45; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--white); display: grid; place-items: center; font: 800 18px/1 var(--display); }
.dark .step::before { background: var(--orange); color: #1b0a00; }
.step h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; }
.step p { margin-top: 10px; color: var(--slate); }
.dark .step p { color: var(--on-dark); }
.step .detail { margin-top: 14px; font: 500 13.5px/1.5 var(--mono); color: var(--slate); background: var(--paper); border-radius: 10px; padding: 10px 12px; }

/* Trade tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tabs button { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: 650 15px/1 var(--body); color: var(--slate); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tab-panel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.tab-panel[hidden] { display: none; }
.transcript { display: grid; gap: 14px; font-size: 16px; align-content: start; }
.transcript p b { font: 700 12px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); display: block; margin-bottom: 5px; }
.did { background: var(--night); color: #dfe7f1; border-radius: var(--r-md); padding: 22px; display: grid; gap: 12px; align-content: start; }
.did h4 { font: 700 12.5px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: #ff9a5c; }
.did ul { padding: 0; list-style: none; display: grid; gap: 10px; }
.did li { padding-left: 24px; position: relative; line-height: 1.45; font-size: 15.5px; }
.did li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 3px; background: var(--orange); }
.did .link { margin-top: 4px; }

/* Feature cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; display: grid; gap: 10px; align-content: start; }
.paper .card { border-color: #dde4ee; }
.card h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
.card p { color: var(--slate); font-size: 15.5px; }
.card .mini { margin-top: 4px; background: var(--paper); border-radius: 10px; padding: 12px; font: 500 13px/1.55 var(--mono); color: var(--ink); }
.paper .card .mini { background: #f4f7fb; }
.card .link { margin-top: 4px; font-size: 15px; }
.card .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-deep); display: grid; place-items: center; }
.card .ico svg { width: 21px; height: 21px; }
.card-dark { background: var(--navy-2); border-color: rgba(255, 255, 255, 0.08); color: var(--white); }
.card-dark p { color: var(--on-dark); }
.kind { font: 700 12px/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; }
.k-red { color: #b3261e; } .k-orange { color: var(--orange-deep); } .k-blue { color: var(--sky); } .k-green { color: var(--green); }
.rule { font: 500 13px/1.5 var(--mono); background: var(--paper); border-radius: 10px; padding: 10px 12px; color: var(--ink); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.top { align-items: start; }
.bullets { padding: 0; list-style: none; display: grid; gap: 12px; }
.bullets li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; line-height: 1.5; }
.bullets li::before { content: "✓"; color: var(--green); font-weight: 800; }
.dark .bullets li::before { color: #4fd1a0; }

/* Proposals */
.proposals { display: grid; gap: 12px; }
.pcard { background: var(--navy-2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.pcard small { color: var(--on-dark-mute); font: 700 12px/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; }
.pcard p { margin-top: 5px; color: #eef3f9; font-size: 16px; line-height: 1.4; }
.pcard .acts { display: flex; gap: 8px; }

/* Screens (product screenshots) */
.screen { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--navy); }
.dark .screen { border-color: rgba(255, 255, 255, 0.12); }
.screen img { width: 100%; }
.screen-cap { margin-top: 10px; font-size: 13px; color: var(--mute); text-align: center; }
.dark .screen-cap { color: var(--on-dark-mute); }

/* Pricing */
.price-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px; }
.amount { font: 800 84px/0.95 var(--display); letter-spacing: -0.04em; }
.amount small { font: 650 18px/1 var(--body); color: var(--mute); letter-spacing: 0; }
.plans { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; display: grid; gap: 18px; align-content: start; box-shadow: var(--shadow); }
.plan.main { border: 2px solid var(--orange); }
.plan h2 { font-size: 26px; letter-spacing: -0.02em; }
.plan .amount { font-size: 72px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; }
.calc label { font: 650 16px/1.4 var(--body); display: block; margin-bottom: 14px; }
.calc input[type="range"] { width: 100%; accent-color: var(--orange); height: 28px; }
.scale { display: flex; justify-content: space-between; font: 500 13px var(--mono); color: var(--mute); margin-top: 4px; }
.calc-result { background: var(--night); color: var(--white); border-radius: var(--r-md); padding: 26px; display: grid; gap: 12px; }
.calc-result .total { font: 800 54px/1 var(--display); letter-spacing: -0.03em; }
.calc-row { display: flex; justify-content: space-between; gap: 12px; font: 500 15px var(--mono); color: var(--on-dark); border-top: 1px solid var(--line-dark); padding-top: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { font: 700 12.5px/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); background: var(--paper); }
.table td:first-child { font-weight: 650; }
.table .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.status-live { color: #0b6443; font-weight: 650; white-space: nowrap; }
.status-next { color: #6d4700; font-weight: 650; white-space: nowrap; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 18px; }
.faq summary { cursor: pointer; font: 650 17.5px/1.4 var(--body); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--body); color: var(--mute); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--slate); }

/* CTA band */
.cta { text-align: center; }
.cta h2 { font-size: clamp(32px, 4.6vw, 56px); max-width: 18ch; margin: 0 auto; }
.cta .lede { margin: 18px auto 0; }
.cta .hero-actions { justify-content: center; }

/* Forms (signup, contact) */
.form-shell { min-height: calc(100vh - 68px); background: var(--paper); padding-block: 48px 72px; }
.form-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow); }
.form-card h1, .form-card .step-title { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.03em; line-height: 1.1; }
.form-card .sub { margin-top: 10px; color: var(--slate); }
.progress { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; font: 600 13px/1 var(--body); color: var(--mute); }
.progress-bars { display: flex; gap: 6px; margin-left: auto; }
.progress-bars i { width: 34px; height: 5px; border-radius: 99px; background: var(--line); display: block; }
.progress-bars i.on { background: var(--orange); }
.field { display: grid; gap: 7px; margin-top: 18px; }
.field label, .field .label { font: 650 14.5px/1.3 var(--body); color: var(--ink); }
.field .hint { font-size: 13.5px; color: var(--mute); line-height: 1.45; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid #cfd8e4; background: var(--white);
  padding: 0 14px; font: 500 16px/1.3 var(--body); color: var(--ink);
}
.textarea { padding: 12px 14px; min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(47, 116, 240, 0.18); }
.input[aria-invalid="true"] { border-color: #c2361f; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid #cfd8e4; background: var(--white); font: 600 15px/1 var(--body); color: var(--slate); cursor: pointer; }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 72px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 34px; padding: 0 10px; border-radius: 8px; border: 0; background: var(--paper); font: 600 13px/1 var(--body); color: var(--slate); cursor: pointer; }
.check-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin-top: 18px; font-size: 14.5px; color: var(--slate); }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); }
.form-actions { margin-top: 26px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form-actions .btn-primary { min-width: 180px; }
.back-link { background: none; border: 0; color: var(--slate); font: 600 15px/1 var(--body); cursor: pointer; padding: 10px 4px; }
.form-error { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #fdecea; color: #8c2415; font-size: 14.5px; line-height: 1.45; }
.form-error[hidden] { display: none; }
.aside-card { background: var(--night); color: var(--white); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 16px; position: sticky; top: 92px; }
.aside-card h2 { font-size: 20px; letter-spacing: -0.02em; }
.aside-card .bullets li { color: var(--on-dark); font-size: 15px; }
.aside-card .quote { border-top: 1px solid var(--line-dark); padding-top: 16px; color: var(--on-dark); font-size: 14.5px; }
.done-list { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 20px; }
.done-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.done-list .n { width: 30px; height: 30px; border-radius: 9px; background: var(--orange-soft); color: var(--orange-deep); display: grid; place-items: center; font: 800 14px/1 var(--display); }
.done-list b { display: block; font-size: 15.5px; }
.done-list span { display: block; color: var(--mute); font-size: 14px; margin-top: 2px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(27, 10, 0, 0.25); border-top-color: #1b0a00; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-foot { background: var(--night); color: var(--on-dark-mute); padding-block: 64px 40px; font-size: 14.5px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-cols h4 { margin: 0 0 12px; color: var(--white); font: 700 12.5px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; }
.foot-cols ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--white); }
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; }

/* Prose (articles, legal-style pages) */
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; letter-spacing: -0.02em; margin: 44px 0 12px; line-height: 1.2; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--slate); font-size: 17.5px; line-height: 1.7; }
.prose p + p { margin-top: 16px; }
.prose ul, .prose ol { padding-left: 22px; margin-top: 12px; display: grid; gap: 8px; }
.prose .callout { margin-top: 24px; background: var(--paper); border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; padding: 16px 18px; }

/* Legal documents (exact wording lives in site/legal/*.html) */
.legal-doc { max-width: 780px; }
.legal-doc h2 { font-size: 22px; letter-spacing: -0.01em; margin: 36px 0 10px; line-height: 1.3; }
.legal-doc h3 { font-size: 18px; margin: 24px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--slate); font-size: 16.5px; line-height: 1.7; }
.legal-doc p + p { margin-top: 12px; }
.legal-doc ul, .legal-doc ol { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.legal-doc a { color: var(--orange-deep); }
.legal-doc article.block { margin-top: 8px; }
.legal-doc article.block h2 { margin-top: 32px; }

/* Ask AI launcher */
.ask-launch { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--orange); color: #1b0a00; font: 700 15px/1 var(--body); box-shadow: 0 18px 40px -16px rgba(7, 15, 31, 0.6); cursor: pointer; }
.ask-launch svg { width: 18px; height: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ask-panel { position: fixed; right: 20px; bottom: 80px; z-index: 60; width: min(400px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 40px 90px -30px rgba(7, 15, 31, 0.6); overflow: hidden; }
.ask-panel[hidden] { display: none; }
.ask-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--night); color: var(--white); }
.ask-head b { font-size: 15px; }
.ask-head small { display: block; color: var(--on-dark-mute); font-size: 12.5px; }
.ask-close { margin-left: auto; background: rgba(255, 255, 255, 0.1); color: var(--white); border: 0; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 18px; line-height: 1; }
.ask-log { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; background: var(--paper); }
.ask-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.ask-msg.ava { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.ask-msg.me { background: var(--ink); color: var(--white); margin-left: auto; border-bottom-right-radius: 5px; }
.ask-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; background: var(--paper); }
.ask-suggest button { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 12px; font: 600 13px/1.2 var(--body); color: var(--slate); cursor: pointer; }
.ask-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.ask-form input { flex: 1; min-width: 0; min-height: 44px; border-radius: 12px; border: 1px solid #cfd8e4; padding: 0 12px; font-size: 15px; }
.ask-form button { min-height: 44px; }

/* Signup header: only a sign-in link, shown at every width */
.site-head .head-signin { display: flex; }
.head-signin .signin-q { padding: 0; }

/* Responsive */
@media (max-width: 1080px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav, .head-right { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .mobile-nav { display: block; position: fixed; inset: 68px 0 0 0; z-index: 39; background: var(--night); color: var(--white); overflow-y: auto; padding: 18px 24px 40px; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav h4 { font: 700 12px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-mute); margin: 22px 0 10px; }
  .mobile-nav a { display: block; padding: 11px 0; color: var(--white); text-decoration: none; font-size: 17px; border-bottom: 1px solid var(--line-dark); }
  .mobile-nav .btn { display: flex; margin-top: 22px; border-bottom: 0; }
  .hero-grid, .tab-panel, .split, .price-panel, .plans, .calc, .form-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .cards-3, .steps { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; }
  section { padding-block: 68px; }
  .hero { padding-block: 52px 64px; }
}
@media (max-width: 640px) {
  .head-signin .signin-q { display: none; }
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .lede { font-size: 17px; }
  .cards-3, .cards-2, .cards-4, .steps, .two, .field-row { grid-template-columns: 1fr; }
  .kv-grid { grid-template-columns: 1fr 1fr; }
  .strip .wrap { grid-template-columns: 1fr; }
  .strip-item, .strip-item + .strip-item { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .price-panel, .plan, .calc, .form-card { padding: 24px; }
  .amount, .plan .amount { font-size: 60px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .pcard { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .ask-launch { right: 14px; bottom: 14px; width: 52px; min-height: 52px; padding: 0; justify-content: center; }
  .ask-launch .ask-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ask-launch svg { width: 22px; height: 22px; }
  .ask-panel { right: 12px; bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
