/* AI Accountant: public landing. It wears the family identity shared with Meridian (decision 0033): web/family.css, copied from the
   hub by ops/identity.py, brings the worlds Night and Paper, the green, the glow, Onest and the radii as --f-*; this file names roles
   on top of them and lays the page out. Paper is the default and Night a choice (the toggle in the header, kept in localStorage).
   Scrolling stays cheap (0009): nothing blurs a large area, the stage light is a painted gradient, looping motion rests off screen,
   reveals run once, and the green glow sits on one phrase per screen. */
@font-face { font-family: Onest; src: url('/web/assets/Onest-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Roles resolve on every element that names a world, so a part kept on Paper (the chat's own window) reads Paper's values. */
:root, [data-world] {
  --page: var(--f-bg);
  --ink: var(--f-ink);
  --ink-2: var(--f-ink-soft);
  --mut: var(--f-muted);
  --line: var(--f-line);
  --line-strong: var(--f-line-strong);
  --good: var(--f-accent-deep);
  --on-ink: var(--f-bg);
  --soft: var(--f-surface);
  --card: var(--f-bg);
  --field: var(--f-surface);
  --island: rgba(255, 255, 255, .96);
  --shadow: 0 1px 2px #0000000a, 0 8px 24px #0000000f;
  --shadow-lg: 0 2px 6px #0000000f, 0 28px 64px #00000029;
  /* One shape at rest and lifted, so the browser can animate between them: an inset and an outer shadow do not interpolate */
  --card-rest: inset 0 0 0 1px var(--line), 0 2px 6px #0000, 0 28px 64px #0000;
  --card-lift: inset 0 0 0 1px #0000, 0 2px 6px #0000000f, 0 28px 64px #00000029;
  /* The one lit card of a group: the green ring, and on Night its glow */
  --lit: inset 0 0 0 1.5px var(--f-accent), var(--f-shadow);
}
[data-world="night"] {
  --good: var(--f-accent);
  --soft: var(--f-bg);
  --card: var(--f-surface);
  --field: var(--f-raised);
  --island: rgba(20, 23, 22, .94);
  --shadow: 0 0 0 1px var(--f-line), 0 8px 24px #00000040;
  --shadow-lg: 0 0 0 1px var(--f-line), 0 28px 64px #00000080;
  --card-lift: inset 0 0 0 1px var(--f-line-strong), 0 2px 6px #00000040, 0 28px 64px #00000080;
  --lit: var(--f-glow), var(--f-shadow);
}
:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: .35s var(--ease);
  --wrap: 1180px;
  --gutter: 24px;
  --font: var(--f-font);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.47; font-weight: var(--f-weight-body);
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; overflow-x: clip;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--f-accent); outline-offset: 3px; border-radius: var(--f-radius-chip); }
::selection { background: var(--f-accent-bg); }
.icon { width: 1em; height: 1em; flex: none; }
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: var(--f-radius-control); background: var(--ink); color: var(--on-ink); }
.skip-link:focus { top: 12px; }
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }

/* ---------- Sections and titles ---------- */
.sec { padding: clamp(72px, 9vw, 128px) 0; background: var(--page); }
.sec.soft { background: var(--soft); }
.flush-top { padding-top: 0; }
.title { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.06; font-weight: 700; letter-spacing: -0.035em; margin-bottom: clamp(36px, 4.5vw, 64px); text-wrap: balance; }
.title > span { display: inline-block; text-wrap: balance; }
.title.center { text-align: center; }
.title:has(+ .sec-intro) { margin-bottom: clamp(16px, 2vw, 24px); }
.sec-intro { max-width: 36em; margin-bottom: clamp(36px, 4.5vw, 56px); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.42; letter-spacing: -0.01em; color: var(--ink-2); text-wrap: pretty; }

/* An animation, not a transition: a card keeps its own transition list for hover. */
html.js .reveal:not(.is-visible) { opacity: 0; translate: 0 28px; }
html.js .reveal.is-visible { animation: reveal .8s var(--ease) var(--d, 0s) backwards; }
@keyframes reveal { from { opacity: 0; translate: 0 28px; } }

.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: var(--f-radius-control); background: var(--ink); color: var(--on-ink); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer; transition: transform .18s var(--ease), background-color var(--t), color var(--t), box-shadow var(--t); }
.button:active { transform: scale(.97); }
.button:disabled { opacity: .6; cursor: progress; }
.button .ic { width: 20px; height: 20px; transition: transform var(--t); }
.button-small { height: 36px; padding: 0 16px; border-radius: var(--f-radius-control); font-size: 14px; }
.button-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.button-soft { background: var(--soft); color: var(--ink); }
@media (hover: hover) {
  .button:hover { background: var(--f-accent); }
  .button:hover .ic { transform: translateX(3px); }
  .button-quiet:hover { background: var(--f-surface); box-shadow: inset 0 0 0 1px var(--f-accent); }
  .button-soft:hover { background: var(--line); }
  .abtn:hover { background: var(--soft); }
  .abtn.go:hover { background: var(--f-accent); }
  .header-nav a:hover { color: var(--ink); }
  .footer-nav a:hover, .footer-legal a:hover { color: var(--ink); }
  .pain:not(.pain-lead):hover, .plan:not(.is-lit):hover, .doc-tabs button:not([aria-selected="true"]):hover { transform: translateY(-4px); box-shadow: var(--card-lift); }
  .tour-step:not(.is-active):hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  /* The card rises from under the pointer at its lower edge: this strip keeps it hovered, so it does not shake */
  .pain:hover::after, .plan:hover::after, .doc-tabs button:hover::after, .tour-step:hover::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 6px; }
  .menu a:hover { background: var(--soft); }
  .pain:hover .tile-ic { transform: scale(1.08) rotate(-6deg); }
  .faq-item button:hover .faq-mark { background: var(--line); }
  .faq-item button[aria-expanded="true"]:hover .faq-mark { background: var(--f-accent); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Icon tiles ---------- */
.tile-ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--f-radius-control); background: var(--soft); color: var(--ink); transition: transform var(--t), background-color var(--t), color var(--t); }
.tile-ic.on { background: var(--f-accent-bg); color: var(--good); }

/* ---------- Mascot: the family's body, the accountant's face: one eye and a tick ---------- */
.mascot { --size: 32px; display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--size) * .09); width: var(--size); height: var(--size); flex: none; border-radius: var(--f-radius-mascot); background: var(--f-mark-body); box-shadow: inset 0 0 0 calc(var(--size) * .02) var(--f-mark-ring); filter: var(--f-mark-halo); }
.mascot i { width: calc(var(--size) * .125); height: calc(var(--size) * .28); border-radius: var(--f-radius-pill); background: var(--f-mark-face); animation: mascot-blink 7s linear infinite; }
.mascot svg { width: calc(var(--size) * .3); height: calc(var(--size) * .3); stroke: var(--f-mark-tick); }
@keyframes mascot-blink { 0%, 44%, 47%, 100% { scale: 1 1; } 45%, 46% { scale: 1 .12; } }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo b { font-size: 18px; font-weight: var(--f-weight-heading); letter-spacing: -0.01em; white-space: nowrap; }

/* ---------- Header: over the hero at the top, a floating island once the page moves ---------- */
.header { position: sticky; top: 0; z-index: 50; height: 61px; background: var(--page); border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s, padding-top .55s var(--ease); }
.hero-page .header { margin-bottom: -61px; background: transparent; border-color: transparent; }
.header.is-island { padding-top: 8px; background: transparent; border-color: transparent; }
.header-row { position: relative; height: 60px; display: flex; align-items: center; gap: 32px; border-radius: var(--f-radius-stage); transition: max-width .55s var(--ease), height .55s var(--ease), padding .55s var(--ease), background .3s, box-shadow .3s; }
.is-island .header-row { max-width: var(--island, 100%); height: 52px; padding: 0 8px 0 14px; gap: 20px; background: var(--island); box-shadow: 0 0 0 1px var(--line), 0 10px 32px #0000001a; }
.header-nav { position: relative; display: flex; gap: 2px; margin-left: auto; font-size: 14px; color: var(--ink-2); transition: color .3s; }
.is-island .header-nav { margin-left: 0; }
.header-nav a { position: relative; display: block; padding: 7px 13px; border-radius: var(--f-radius-pill); white-space: nowrap; transition: color .2s; }
.header-nav a[aria-current] { color: var(--ink); }
.nav-pill { position: absolute; left: 0; top: 0; height: 100%; width: var(--w, 0); border-radius: var(--f-radius-pill); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; transform: translateX(var(--x, 0)); transition: transform .45s var(--ease), width .45s var(--ease), opacity .25s; }
.nav-pill.is-on { opacity: 1; }
.header-end { display: flex; align-items: center; gap: 8px; }
.logo + .header-end { margin-left: auto; }
.header-end .button { transition: border-radius .3s, transform .18s var(--ease), background .3s, color .3s; }
.is-island .header-end .button { border-radius: var(--f-radius-pill); }
/* The world toggle, as on Meridian's landing: a moon on Paper, a sun on Night */
.world-toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--f-radius-pill); color: var(--mut); transition: color .2s, background-color .2s; }
.world-toggle:hover { color: var(--ink); background: var(--soft); }
.world-toggle .i-sun, [data-world="night"] .world-toggle .i-moon { display: none; }
[data-world="night"] .world-toggle .i-sun { display: block; }
.menu-button { display: none; width: 36px; height: 36px; border-radius: var(--f-radius-pill); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-button span { width: 16px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform .3s var(--ease), background .3s; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter); display: grid; padding: 8px; border-radius: var(--f-radius-card); background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 16px 40px #0000001f; transform-origin: top right; opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.is-island .menu { left: 0; right: 0; }
.menu a { padding: 13px 16px; border-radius: var(--f-radius-control); font-size: 17px; font-weight: 500; color: var(--ink); transition: background-color .2s; }
@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-end { margin-left: auto; }
  .menu-button { display: flex; }
  .is-island .header-row { max-width: calc(100% - 16px); padding-left: 12px; }
}
@media (min-width: 901px) { .menu { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 100svh; padding: calc(61px + clamp(32px, 6vh, 72px)) 0 clamp(48px, 8vh, 96px); background: var(--f-stage); color: var(--ink); }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: clamp(26px, 3vw, 40px); justify-items: start; }
.hero h1 { font-size: clamp(44px, 6.2vw, 84px); line-height: 1.01; font-weight: 700; letter-spacing: -0.045em; }
.hero-intro { max-width: 30em; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4; letter-spacing: -0.01em; color: var(--ink-2); text-wrap: pretty; }
.glow.is-off, .glow.is-off::before { animation-play-state: paused; }
.rise { animation: rise .9s var(--ease) var(--d, 0s) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* The live statement */
.statement { position: relative; overflow: hidden; background: var(--card); color: var(--ink); border-radius: var(--f-radius-card); box-shadow: var(--shadow-lg); }
.statement-scan { position: absolute; left: 0; right: 0; top: 0; height: 90px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent, var(--f-accent-bg)); border-bottom: 2px solid var(--f-accent); opacity: 0; transform: translateY(-100%); }
.statement.is-scanning .statement-scan { opacity: 1; animation: scan 6s linear forwards; }
@keyframes scan { from { transform: translateY(40px); } to { transform: translateY(520px); opacity: 0; } }
.statement-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px 14px; }
.statement-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.statement-id img { flex: none; width: 36px; }
.statement-title { font-weight: 600; font-size: 15px; line-height: 1.3; letter-spacing: -0.01em; }
.statement-sub, .statement-count { font-size: 13px; color: var(--mut); }
.statement-count { white-space: nowrap; padding: 4px 11px; border-radius: var(--f-radius-pill); background: var(--soft); }
.statement-count span { color: var(--ink); font-weight: 600; }
.statement-bar { height: 3px; margin: 0 22px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.statement-bar span { display: block; height: 100%; width: 100%; border-radius: 3px; background: var(--f-accent); transition: width .6s var(--ease); }
.statement-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 22px 4px; min-height: 46px; }
.chip { display: inline-block; padding: 2px 10px; border-radius: var(--f-radius-pill); font-size: 12.5px; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip.posted { color: var(--good); background: var(--f-accent-bg); }
.chip.draft { color: var(--f-info); background: var(--f-info-bg); }
.chip.disputed { color: var(--f-warn); background: var(--f-warn-bg); }
.chip.skipped, .chip.undone { color: var(--mut); background: var(--soft); }
.statement-chips .chip { animation: pop .45s var(--ease) both; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.ops { padding: 4px 10px 6px; }
.op { display: grid; grid-template-columns: minmax(0, 1fr) auto 96px; gap: 4px 12px; align-items: center; padding: 10px 12px; transition: opacity .4s ease, background-color .45s ease, transform .45s var(--ease); }
.op + .op { border-top: 1px solid var(--line); }
.op-who { font-size: 14.5px; line-height: 1.35; font-weight: 500; min-width: 0; letter-spacing: -0.005em; }
.op-who small { display: block; font-size: 12.5px; font-weight: 400; color: var(--mut); overflow-wrap: anywhere; }
.op-sum { font-size: 13.5px; font-weight: 500; line-height: 1.4; white-space: nowrap; text-align: right; }
.op-sum.in { color: var(--good); }
.op-state { position: relative; display: flex; justify-content: flex-end; align-items: center; min-height: 26px; }
.op-wait { position: absolute; right: 0; color: var(--ink-2); font-size: 12.5px; opacity: 0; white-space: nowrap; transition: opacity .3s ease; }
.op-wait::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -1px; }
.op[data-state="work"] .op-wait::after { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.op .chip { transition: opacity .35s ease, transform .45s var(--ease); }
.op[data-state="idle"] { opacity: .5; }
.op[data-state="idle"] .chip, .op[data-state="work"] .chip { opacity: 0; transform: scale(.7); }
.op[data-state="work"] { border-radius: var(--f-radius-control); background: var(--soft); transform: scale(1.012); }
.op[data-state="work"] .op-wait { opacity: 1; }
.statement-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 22px 20px; min-height: 58px; }
.abtn { min-height: 36px; padding: 0 15px; border-radius: var(--f-radius-control); font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; transition: background-color .2s, transform .18s var(--ease); }
.abtn:active { transform: scale(.97); }
.abtn.go { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.statement[data-phase="working"] .statement-actions { visibility: hidden; }
.statement[data-phase="undone"] .abtn[data-act="post"], .statement[data-phase="undone"] .abtn[data-act="undo"] { display: none; }
.statement:not([data-phase="undone"]) .abtn[data-act="replay"] { display: none; }
.statement[data-nodraft="1"] .abtn[data-act="post"] { display: none; }

/* ---------- Pains: a bento of rounded cards ---------- */
.pains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pain { position: relative; display: grid; gap: 14px; align-content: start; min-width: 0; padding: clamp(22px, 2.2vw, 28px); background: var(--card); border-radius: var(--f-radius-card); box-shadow: var(--card-rest); transition: transform var(--t), box-shadow var(--t); }
.pain h3 { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.pain p { color: var(--ink-2); font-size: 16px; line-height: 1.42; text-wrap: pretty; }
.pain-lead, .pain-wide { grid-column: span 2; }
.pain-lead { background: var(--f-stage); box-shadow: var(--lit); grid-template-rows: 1fr auto auto; min-height: 280px; }
.pain-lead h3 { font-size: clamp(24px, 2.4vw, 32px); }
.pain-lead p { font-size: 17px; }
.pain-wide { grid-template-columns: auto minmax(0, 1fr); align-content: center; row-gap: 6px; column-gap: 20px; }
.pain-wide .tile-ic { grid-row: 1 / 3; align-self: center; }

/* ---------- Product frame ---------- */
.stage { --pad: clamp(10px, 1.8vw, 22px); --r: var(--f-radius-stage); position: relative; isolation: isolate; overflow: hidden; padding: var(--pad); background: var(--f-stage); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.window { overflow: hidden; background: var(--card); border-radius: calc(var(--r) - var(--pad)); }
.window-bar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.window-bar img { width: 24px; }
@supports (animation-timeline: view()) {
  @media (min-width: 768px) {
    .lift { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; transform-origin: 50% 100%; }
  }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes lift { from { transform: translateY(48px) scale(.95); opacity: .4; } to { transform: none; opacity: 1; } }

/* The assistant's own look: the same tokens as the chat inside 1C */
.ui { --bg: var(--f-surface); --uink: var(--ink); --usoft: var(--mut); --uline: var(--line); --accent: var(--ink); font: 14px/1.45 var(--font); color: var(--uink); background: var(--bg); }
.u-feed { display: flex; flex-direction: column; gap: 12px; }
.u-me { align-self: flex-end; display: flex; align-items: center; gap: 8px; max-width: 75%; padding: 8px 12px; border-radius: var(--f-radius-control) 12px 2px 12px; background: var(--accent); color: var(--on-ink); }
.u-bot { align-self: flex-start; max-width: 100%; }
.u-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--uline); border-radius: var(--f-radius-control); }
.u-card h3 { margin: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.u-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.u-chip { display: inline-block; padding: 2px 9px; border-radius: var(--f-radius-pill); font-size: 12.5px; white-space: nowrap; }
.u-chip.posted { color: var(--good); background: var(--f-accent-bg); }
.u-chip.draft { color: var(--f-info); background: var(--f-info-bg); }
.u-chip.disputed { color: var(--f-warn); background: var(--f-warn-bg); }
.u-chip.skipped { color: var(--mut); background: var(--soft); }
.u-chip.new { color: var(--ink); background: var(--soft); }
.u-bar { height: 4px; border-radius: 2px; background: var(--uline); overflow: hidden; }
.u-bar i { display: block; height: 100%; background: var(--f-accent); }
.u-lines { display: flex; flex-direction: column; }
.u-line { display: grid; grid-template-columns: 46px 1fr auto 82px; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--uline); font-size: 13px; align-items: baseline; }
.u-line:last-child { border-bottom: 0; }
.u-sum { text-align: right; white-space: nowrap; }
.u-sum.in { color: var(--good); }
.u-line small { display: block; color: var(--usoft); font-size: 12px; }
.u-line .u-chip { justify-self: end; }
.u-note { padding: 6px 10px; border-radius: var(--f-radius-chip); color: var(--f-warn); background: var(--f-warn-bg); font-size: 13px; }
.u-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.u-btn { padding: 8px 14px; border-radius: var(--f-radius-control); border: 1px solid var(--uline); background: var(--card); font-size: 13.5px; line-height: 1; }
.u-btn.go { background: var(--accent); border-color: var(--accent); color: var(--on-ink); }
.u-field { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: baseline; font-size: 13px; }
.u-field label { color: var(--usoft); }
.u-table { overflow-x: auto; }
.u-card table { border-collapse: collapse; width: 100%; font-size: 13px; }
.u-card td, .u-card th { padding: 4px 12px 4px 0; border-bottom: 1px solid var(--uline); text-align: left; vertical-align: baseline; }
.u-card th { color: var(--usoft); font-weight: 400; font-size: 12px; }
.u-card td.n, .u-card th.n { text-align: right; white-space: nowrap; padding-right: 0; }
.u-card td.n + td.n, .u-card th.n + th.n { padding-left: 12px; }
.u-card tr:last-child td { border-bottom: 0; }
.u-card tr.total td { font-weight: 600; border-top: 1px solid var(--uline); }
.u-compose { padding: 10px 360px 14px; background: var(--bg); }
.u-box { display: flex; align-items: center; padding: 5px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--f-radius-control); }
.u-attach { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--usoft); font-size: 20px; }
.u-input { flex: 1; padding: 0 8px; color: var(--usoft); }
.u-send { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-ink); font-size: 18px; }

/* ---------- How it works: cards on the left, the camera zooms to the step ---------- */
.tour { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3.4vw, 48px); align-items: center; }
.tour-steps { display: grid; gap: 12px; }
/* The outline is a layer of its own that fades in; the button's fill leaves two pixels of it showing. */
.tour-step { position: relative; isolation: isolate; padding: 2px; border-radius: var(--f-radius-card); background: var(--card); box-shadow: var(--shadow); transition: transform var(--t), box-shadow var(--t); }
.tour-step::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--f-accent); opacity: 0; transition: opacity var(--t); }
.tour-step.is-active { box-shadow: var(--lit); }
.tour-step.is-active::before { opacity: 1; }
.tour-step button { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; width: 100%; padding: 16px 18px 22px; text-align: left; background: var(--card); border-radius: var(--f-radius-card); }
.tour-step b { display: block; margin-bottom: 3px; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.tour-step small { display: block; font-size: 15px; line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
/* The timeline: a track, and the fill sliding along it so its round end stays true. */
.tour-bar { position: absolute; left: 20px; right: 20px; bottom: 9px; height: 4px; overflow: hidden; border-radius: 2px; background: var(--line); opacity: 0; pointer-events: none; transition: opacity var(--t); }
.tour-bar::before { content: ""; display: block; height: 100%; border-radius: inherit; background: var(--f-accent); transform: translateX(-100%); }
.tour.is-playing .tour-step.is-active .tour-bar { opacity: 1; }
.tour.is-playing .tour-step.is-active .tour-bar::before { animation: tour-fill 4s linear forwards; }
.tour.is-playing .tour-step:not(.is-active) .tour-bar::before { animation: tour-hold .35s; }
.tour.is-playing:focus-within .tour-step.is-active .tour-bar::before, .tour.is-playing.is-away .tour-step.is-active .tour-bar::before { animation-play-state: paused; }
@keyframes tour-fill { to { transform: none; } }
@keyframes tour-hold { from, to { transform: none; } }
.screen-view { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--f-surface); }
.shot { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; width: 1340px; height: 690px; overflow: hidden; opacity: 0; transform-origin: 0 0; transition: transform .9s var(--ease), opacity .45s ease; }
.shot.is-active { opacity: 1; }
.shot .u-feed { flex: 1; padding: 22px 360px 0; overflow: hidden; }
.shot .u-line { grid-template-columns: 56px 1fr auto 92px; font-size: 13.5px; padding: 6px 0; }

/* ---------- Other documents: card tabs ---------- */
.doc-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: clamp(20px, 2.4vw, 28px); }
.doc-tabs button { position: relative; display: grid; gap: 10px; align-content: start; min-width: 0; padding: 18px; text-align: left; border-radius: var(--f-radius-card); background: var(--card); box-shadow: var(--card-rest); transition: background-color var(--t), color var(--t), transform var(--t), box-shadow var(--t); }
.doc-tabs b { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.doc-tabs small { font-size: 14.5px; line-height: 1.38; color: var(--mut); transition: color var(--t); text-wrap: pretty; }
.doc-tabs [aria-selected="true"] { box-shadow: var(--lit); }
.doc-tabs [aria-selected="true"] small { color: var(--ink-2); }
.docs-stage { max-width: 900px; margin: 0 auto; }
.docs-view { display: grid; background: var(--f-surface); }
.docs-panel { grid-area: 1 / 1; min-width: 0; padding: clamp(10px, 2vw, 22px) clamp(10px, 3vw, 32px); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
.docs-panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.docs-panel .u-field { grid-template-columns: 120px 1fr; }

/* ---------- Compare ---------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.compare-col { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 2.8vw, 36px); border-radius: var(--f-radius-stage); background: var(--soft); min-width: 0; }
.compare-col h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: clamp(20px, 1.9vw, 25px); font-weight: 700; letter-spacing: -0.02em; }
.compare-col h3 .tile-ic { background: var(--card); width: 40px; height: 40px; border-radius: var(--f-radius-control); }
.compare-col dl > div { padding: 15px 0; border-top: 1px solid var(--line-strong); }
.compare-col dt { margin-bottom: 3px; font-size: 13px; color: var(--mut); }
.compare-col dd { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; line-height: 1.4; }
.compare-col .icon { margin-top: 2px; font-size: 20px; color: var(--mut); }
.compare-col.is-lit { background: var(--f-stage); box-shadow: var(--lit); }
.is-lit dl > div { border-top-color: var(--line); }
.is-lit .icon { --tick: var(--on-ink); color: var(--f-accent); }
.compare-col h3 .mascot { --size: 40px; }

/* ---------- Unattended work: a rounded night panel ---------- */
.inset { margin: 0 10px; }
.sec.dark { position: relative; overflow: hidden; background: var(--f-stage); border-radius: var(--f-radius-stage); box-shadow: inset 0 0 0 1px var(--line); }
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.flow li { --i: 0; position: relative; display: grid; justify-items: center; align-content: start; gap: 12px; padding: 24px 12px; text-align: center; border-radius: var(--f-radius-card); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.flow li + li::before { content: ""; position: absolute; left: -20px; top: 50%; width: 20px; height: 2px; background: var(--f-accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); transition-delay: calc(.2s + var(--i) * .25s); }
.flow.is-visible li + li::before { transform: none; }
.flow li:nth-child(3) { --i: 1; } .flow li:nth-child(4) { --i: 2; } .flow li:nth-child(5) { --i: 3; }
.flow .is-ai { box-shadow: var(--lit); }
.auto-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; }
.night-card { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 2.6vw, 32px); border-radius: var(--f-radius-card); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); min-width: 0; }
.night-card h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(20px, 1.9vw, 25px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.night-card h3 .ic { color: var(--good); }
.night-card b { padding: 16px 18px; border-radius: var(--f-radius-card); background: var(--soft); font-size: 17px; font-weight: 500; line-height: 1.42; letter-spacing: -0.01em; color: var(--ink); }
.outcomes { display: grid; gap: 12px; }
.outcomes li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.outcomes .chip { justify-self: start; font-size: 13px; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 2.6vw, 32px); border-radius: var(--f-radius-stage); background: var(--card); box-shadow: var(--card-rest); min-width: 0; transition: transform var(--t), box-shadow var(--t); }
.plan h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); margin-top: 6px; }
.plan-price { font-size: clamp(26px, 2.5vw, 32px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
.plan-desc { flex: 1; color: var(--ink-2); padding: 12px 0 8px; border-top: 1px solid var(--line); text-wrap: pretty; }
.plan.is-lit { background: var(--f-stage); box-shadow: var(--lit); margin-block: -14px; padding-top: calc(clamp(24px, 2.6vw, 32px) + 14px); padding-bottom: calc(clamp(24px, 2.6vw, 32px) + 14px); border-radius: var(--f-radius-stage); }

/* ---------- FAQ: rounded cards, the answer opens in height ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-side { position: sticky; top: 96px; display: grid; gap: 24px; justify-items: start; }
.faq-side .title { margin-bottom: 0; }
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--card); border-radius: var(--f-radius-card); box-shadow: var(--shadow); }
.faq-item h3 { font-size: inherit; }
.faq-item button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 16px 16px 24px; text-align: left; font-size: clamp(17px, 1.5vw, 19px); font-weight: 600; letter-spacing: -0.015em; border-radius: var(--f-radius-card); }
.faq-mark { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--soft); transition: background .3s, transform .35s var(--ease); }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; left: 11px; right: 11px; top: 17px; height: 2px; border-radius: 1px; background: var(--ink); transition: background .3s; }
.faq-mark::after { transform: rotate(90deg); }
[aria-expanded="true"] .faq-mark { background: var(--f-accent); transform: rotate(135deg); }
[aria-expanded="true"] .faq-mark::before, [aria-expanded="true"] .faq-mark::after { background: var(--on-ink); }
html.js .faq-answer { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .4s var(--ease), opacity .4s var(--ease), visibility 0s .4s; }
html.js [aria-expanded="true"] + .faq-answer, html.js .faq-item.is-open .faq-answer { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s; }
.faq-answer > div { min-height: 0; overflow: hidden; }
.faq-answer p { padding: 0 64px 22px 24px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

/* ---------- Request: a night panel with the form on a white card ---------- */
.request-sec { padding-bottom: clamp(48px, 6vw, 80px); }
.request-card { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(24px, 5vw, 64px); background: var(--f-stage); color: var(--ink); border-radius: var(--f-radius-stage); box-shadow: var(--shadow-lg); }
.request-text .title { margin-bottom: clamp(16px, 2vw, 24px); }
.request-text p { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }
.form-card { padding: clamp(20px, 2.6vw, 32px); background: var(--card); box-shadow: var(--shadow); color: var(--ink); border-radius: var(--f-radius-card); min-width: 0; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.form label em { font-style: normal; font-weight: 400; color: var(--mut); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select { width: 100%; height: 50px; padding: 0 16px; border: 0; border-radius: var(--f-radius-control); background: var(--field); color: var(--ink); font: 400 16px var(--font); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background-color .2s; }
.form select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
.form input:focus-visible, .form select:focus-visible { outline: none; background-color: var(--card); box-shadow: inset 0 0 0 2px var(--f-accent); }
.form [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--f-danger); }
.form .check { grid-template-columns: 22px 1fr; align-items: start; gap: 10px; font-weight: 400; color: var(--mut); font-size: 13.5px; line-height: 1.45; }
.form .check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.form .check input[aria-invalid="true"] { outline: 2px solid var(--f-danger); outline-offset: 2px; }
.form .check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.form-msg { font-size: 14.5px; }
.form-msg:empty { display: none; }
.form-msg.err { color: var(--f-danger-soft); }
.form-msg.ok { color: var(--good); font-weight: 500; }
.form .button { width: 100%; margin-top: 4px; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--soft); color: var(--ink); border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--ink-2); }
.footer-legal { color: var(--mut); }
.footer-nav a, .footer-legal a { transition: color .2s; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 8vw, 104px); color: var(--ink-2); }
.legal h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.legal-meta { margin: 14px 0 32px; color: var(--mut); font-size: 15px; }
.legal h2 { margin: 40px 0 14px; font-size: clamp(20px, 2.2vw, 25px); letter-spacing: -0.015em; color: var(--ink); }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--mut); }
.legal strong { color: var(--ink); font-weight: 600; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html.js .reveal:not(.is-visible) { opacity: 1; translate: none; }
  .lift { animation: none !important; }
  .tour-bar, .statement-scan { display: none; }
}

/* ---------- Narrower screens ---------- */
@media (max-width: 1080px) {
  .hero { min-height: auto; padding: calc(61px + 48px) 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(40px, calc((100vw - 2 * var(--gutter)) / 7), 94px); }
  .hero-intro { font-size: clamp(19px, 2.6vw, 24px); }
  .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour { grid-template-columns: minmax(0, 1fr); }
  .tour .stage { order: -1; }
  .doc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-stage { max-width: none; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .flow li { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; padding: 14px 16px; text-align: left; }
  .flow li + li::before { left: 39px; top: -14px; width: 2px; height: 14px; transform: scaleY(0); transform-origin: top; }
  .flow.is-visible li + li::before { transform: none; }
  .auto-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .compare, .plans, .faq-wrap, .request-card { grid-template-columns: minmax(0, 1fr); }
  .faq-side { position: static; }
  .faq-answer p { padding: 0 20px 20px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .header-row { gap: 12px; }
  .hero { padding: calc(61px + 28px) 0 40px; }
  .pains { grid-template-columns: minmax(0, 1fr); }
  .pain-lead, .pain-wide { grid-column: auto; }
  .pain-lead { min-height: 0; }
  .pain, .compare-col, .plan, .night-card { border-radius: var(--f-radius-card); padding: 22px 18px; }
  .inset { margin: 0 6px; }
  .stage { --pad: 8px; --r: var(--f-radius-card); }
  .statement { border-radius: var(--f-radius-card); }
  .statement-head { padding: 16px 14px 12px; }
  .statement-bar { margin: 0 14px; }
  .statement-chips { padding: 12px 14px 2px; }
  .statement-actions { padding: 6px 14px 16px; }
  .ops { padding: 2px 4px 6px; }
  .op { grid-template-columns: minmax(0, 1fr) auto; padding: 10px; }
  .op-who { grid-row: 1 / 3; }
  .op-sum { grid-column: 2; grid-row: 1; }
  .op-state { grid-column: 2; grid-row: 2; min-height: 24px; }
  .screen-view { aspect-ratio: 1 / 1; }
  .shot .u-feed, .u-compose { padding-left: 430px; padding-right: 430px; }
  .tour-step b { font-size: 17px; }
  .doc-tabs button { padding: 14px; border-radius: var(--f-radius-card); }
  .docs-panel .u-field { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs-view { display: block; }
  .docs-panel { display: none; transition: none; transform: none; }
  .docs-panel.is-active { display: block; animation: panel-in .3s var(--ease); }
  .outcomes li { grid-template-columns: 86px minmax(0, 1fr); }
  .faq-item button { padding-left: 18px; }
  .faq-answer p { padding: 0 18px 18px; }
  .request-card { border-radius: var(--f-radius-card); padding: 28px 14px 14px; }
  .request-text { padding: 0 8px; }
  .form-card { border-radius: var(--f-radius-card); padding: 18px 14px; }
  .plan.is-lit { margin-block: 0; padding-top: 22px; padding-bottom: 22px; border-radius: var(--f-radius-card); }
}
@media (max-width: 480px) {
  .logo b { font-size: 17px; }
  .header-end .button { display: none; }
  .statement-chips { min-height: 74px; align-content: flex-start; }
  .actions .button { flex: 1 1 100%; }
  .doc-tabs small { font-size: 13.5px; }
  .docs-panel { padding: 8px; }
  .docs-panel .u-card { padding: 12px; }
  .docs-panel .u-card table { font-size: 12px; }
  .docs-panel .u-card td, .docs-panel .u-card th { padding-right: 6px; }
  .docs-panel .u-card td.n + td.n, .docs-panel .u-card th.n + th.n { padding-left: 4px; }
}
@media (max-width: 374px) {
  .statement-head { flex-wrap: wrap; }
  .docs-panel { padding: 2px; }
  .docs-panel .u-card { padding: 8px; }
  .docs-panel .u-card table { font-size: 10.5px; }
  .docs-panel .u-card td, .docs-panel .u-card th { padding-right: 3px; }
}
/* A phone on its side: the headline leaves room for the rest */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: calc(61px + 20px); padding-bottom: 40px; }
  .hero h1 { font-size: clamp(40px, 7vw, 60px); }
}
/* Fingers need room */
@media (pointer: coarse) {
  .abtn { min-height: 44px; }
  .button-small { height: 40px; }
  .menu-button { width: 44px; height: 44px; }
  .footer-nav a, .footer-legal a { display: inline-block; padding: 8px 0; }
}
