/* AI Accountant: public landing. Deep night panels with a colour aurora, large rounded surfaces, tinted icons; type and easing come
   from the AI CFO landing. Scrolling stays cheap: the aurora is painted once and moved on the compositor, nothing blurs a large area,
   looping motion rests off screen, reveals run once. */
:root {
  --ink: #0a0a0b;
  --ink-2: #3a3a3c;
  --mut: #6e6e73;
  --soft: #f5f5f7;
  --line: #e8e8ed;
  --blue: #0a84ff;
  --green-bg: #e3f4ea;
  --night: #0a0a0b;
  --night-card: #1c1c1e;
  --night-line: #2c2c2e;
  --night-mut: #a1a1a6;
  --spectrum: linear-gradient(90deg, #0894ff, #c959dd 40%, #ff2e54 70%, #ff9004);
  --aurora:
    radial-gradient(46% 52% at 82% 6%, rgba(8, 148, 255, .42), transparent 70%),
    radial-gradient(38% 46% at 102% 42%, rgba(201, 89, 221, .36), transparent 70%),
    radial-gradient(36% 42% at 88% 92%, rgba(255, 46, 84, .24), transparent 70%),
    radial-gradient(40% 44% at 2% 100%, rgba(255, 144, 4, .22), transparent 70%);
  --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;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: .35s var(--ease);
  --wrap: 1180px;
  --gutter: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #fff; scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.47;
  -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(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: #cfe4ff; }
.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: 10px; background: var(--ink); color: #fff; }
.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: #fff; }
.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; }
.spectrum { color: transparent; background: linear-gradient(90deg, #0894ff, #c959dd 45%, #ff2e54 80%, #ff9004); -webkit-background-clip: text; background-clip: text; }

/* 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; }

/* Painted once, moved only by transform: no blur filter, no repaint while it drifts. */
.aurora { position: absolute; inset: -12%; z-index: 0; background: var(--aurora); pointer-events: none; }
.hero > .aurora { will-change: transform; animation: aurora-drift 24s ease-in-out infinite alternate; }
.hero.is-off > .aurora { animation-play-state: paused; }
@keyframes aurora-drift { to { transform: translate3d(-5%, 4%, 0) scale(1.06); } }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 14px; background: var(--ink); color: #fff; 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: 10px; font-size: 14px; }
.button-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #0000001f; }
.button-soft { background: var(--soft); color: var(--ink); }
.hero .button, .is-dark .button { background: #fff; color: var(--ink); }
.hero .button-quiet { background: #ffffff14; color: #fff; box-shadow: inset 0 0 0 1px #ffffff38; }
@media (hover: hover) {
  .button:hover { background: #2a2a2d; }
  .button:hover .ic { transform: translateX(3px); }
  .button-quiet:hover { background: #0000000a; }
  .button-soft:hover { background: var(--line); }
  .hero .button:hover, .is-dark .button:hover { background: var(--line); }
  .hero .button-quiet:hover { background: #ffffff26; }
  .abtn:hover { background: #0000000a; }
  .abtn.go:hover { background: #2a2a2d; }
  .header-nav a:hover { color: var(--ink); }
  .hero-page .header:not(.is-island) .header-nav a:hover, .footer-nav a:hover, .footer-legal a:hover { color: #fff; }
  .pain:hover, .plan:not(.is-dark):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(--ink); }
}
.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: 14px; background: var(--soft); color: var(--ink); transition: transform var(--t), background-color var(--t), color var(--t); }
.t-blue { background: #e4f1ff; color: #0a6fd6; }
.t-violet { background: #f1e9fd; color: #7f3fd6; }
.t-pink { background: #fce8f6; color: #c22f97; }
.t-red { background: #ffe8ec; color: #d8254a; }
.t-orange { background: #fff0dd; color: #d26400; }
.t-night { background: #ffffff1f; color: #fff; }

/* ---------- Mascot: the AI CFO face with one eye closed on a tick ---------- */
.mascot { --size: 32px; display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--size) * .1); width: var(--size); height: var(--size); flex: none; border-radius: 31%; background: var(--ink); transition: background .3s; }
.mascot i { width: calc(var(--size) * .12); height: calc(var(--size) * .25); border-radius: 99px; background: #fff; transition: background .3s; animation: mascot-blink 7s linear infinite; }
.mascot svg { width: calc(var(--size) * .36); height: calc(var(--size) * .36); }
@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: 700; letter-spacing: -0.01em; white-space: nowrap; transition: color .3s; }
.footer .mascot, .hero-page .header:not(.is-island) .mascot { background: #fff; }
.footer .mascot i, .hero-page .header:not(.is-island) .mascot i { background: var(--ink); }

/* ---------- 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: #fff; border-bottom: 1px solid #0000000d; 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: 30px; 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: #fffffff5; box-shadow: 0 0 0 1px #0000000f, 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: 999px; 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: 999px; background: #ececf0; 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: 999px; }
.hero-page .header:not(.is-island) .logo b { color: #fff; }
.hero-page .header:not(.is-island) .header-nav { color: #ffffffd9; }
.hero-page .header:not(.is-island) .header-end .button { background: #fff; color: var(--ink); }
.hero-page .header:not(.is-island) .menu-button span { background: #fff; }
.menu-button { display: none; width: 36px; height: 36px; border-radius: 999px; 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: 24px; background: #fff; box-shadow: 0 0 0 1px #0000000f, 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: 16px; 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(--night); color: #fff; border-radius: 0 0 clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px); }
.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: #d1d1d6; text-wrap: pretty; }
.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: #fff; color: var(--ink); border-radius: 28px; box-shadow: 0 32px 90px #00000080; }
.statement-scan { position: absolute; left: 0; right: 0; top: 0; height: 90px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(8, 148, 255, .08) 60%, rgba(201, 89, 221, .18) 100%); border-bottom: 2px solid; border-image: var(--spectrum) 1; 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: 99px; 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(--spectrum); 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: 99px; font-size: 12.5px; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip.posted { color: #16753f; background: var(--green-bg); }
.chip.draft { color: #3c5a8a; background: #eef1f6; }
.chip.disputed { color: #a85a00; background: #fff4e0; }
.chip.skipped, .chip.undone { color: var(--mut); background: #f0f0f2; }
.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: #16753f; }
.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: 12px; 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: 10px; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px #0000001f; cursor: pointer; transition: background-color .2s, transform .18s var(--ease); }
.abtn:active { transform: scale(.97); }
.abtn.go { background: var(--ink); color: #fff; 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: #fff; border-radius: 28px; 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 { isolation: isolate; background: var(--night); color: #fff; box-shadow: var(--card-lift); grid-template-rows: 1fr auto auto; min-height: 280px; }
.pain-lead::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--aurora); }
.pain-lead h3 { font-size: clamp(24px, 2.4vw, 32px); }
.pain-lead p { color: #d1d1d6; 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: 36px; position: relative; isolation: isolate; overflow: hidden; padding: var(--pad); background: var(--night); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--aurora); }
.window { overflow: hidden; background: #fff; 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: #f5f5f7; --card: #fff; --uink: #1d1d1f; --usoft: #6e6e73; --uline: #e8e8ed; --accent: #0a0a0b; 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: 12px 12px 2px 12px; background: var(--accent); color: #fff; }
.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: 16px; }
.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: 99px; font-size: 12.5px; white-space: nowrap; }
.u-chip.posted { color: #16753f; background: var(--green-bg); }
.u-chip.draft { color: #3c5a8a; background: #eef1f6; }
.u-chip.disputed { color: #a85a00; background: #fff4e0; }
.u-chip.skipped { color: #6e6e73; background: #f0f0f2; }
.u-chip.new { color: #0a0a0b; background: #f0f0f2; }
.u-bar { height: 4px; border-radius: 2px; background: var(--uline); overflow: hidden; }
.u-bar i { display: block; height: 100%; background: var(--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: #16753f; }
.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: 8px; color: #a85a00; background: #fff4e0; font-size: 13px; }
.u-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.u-btn { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--uline); background: #fff; font-size: 13.5px; line-height: 1; }
.u-btn.go { background: var(--accent); border-color: var(--accent); color: #fff; }
.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: #fff; border: 1px solid #d9d9df; border-radius: 16px; }
.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: #fff; 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, because a gradient cannot transition; the button's white fill leaves two pixels of it showing. */
.tour-step { position: relative; isolation: isolate; padding: 2px; border-radius: 22px; background: #fff; 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(--spectrum); opacity: 0; transition: opacity var(--t); }
.tour-step.is-active { box-shadow: var(--shadow-lg); }
.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: #fff; border-radius: 20px; }
.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 and its colours stay 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(--spectrum); 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: #f5f5f7; }
.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: 22px; background: #fff; 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"] { background: var(--night); color: #fff; box-shadow: var(--card-lift); }
.doc-tabs [aria-selected="true"] small { color: #d1d1d6; }
.doc-tabs [aria-selected="true"] .tile-ic { background: #ffffff1f; color: #fff; }
.docs-stage { max-width: 900px; margin: 0 auto; }
.docs-view { display: grid; background: #f5f5f7; }
.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: 32px; 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: #fff; width: 40px; height: 40px; border-radius: 12px; }
.compare-col dl > div { padding: 15px 0; border-top: 1px solid #dcdce1; }
.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: #a1a1a6; }
.compare-col.is-dark, .plan.is-dark { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #f5f5f7; box-shadow: var(--shadow-lg); }
.compare-col.is-dark::before, .plan.is-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--aurora); opacity: .6; }
.is-dark dl > div { border-top-color: #ffffff24; }
.is-dark dt { color: var(--night-mut); }
.is-dark .icon { --tick: #fff; color: var(--blue); }
.compare-col h3 .mascot { background: #fff; --size: 40px; }
.compare-col h3 .mascot i { background: var(--ink); }

/* ---------- Unattended work: a rounded night panel ---------- */
.inset { margin: 0 10px; }
.sec.dark { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #f5f5f7; border-radius: clamp(28px, 4vw, 48px); }
.sec.dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--aurora); opacity: .8; }
.dark .sec-intro { color: #d1d1d6; }
.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: 22px; background: #ffffff14; box-shadow: inset 0 0 0 1px #ffffff1a; 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: #fff; 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 { border: 1.5px solid transparent; background: linear-gradient(#1c1c1e, #1c1c1e) padding-box, var(--spectrum) border-box; box-shadow: none; }
.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: 28px; background: #ffffff14; box-shadow: inset 0 0 0 1px #ffffff1a; color: #d1d1d6; 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: #f5f5f7; }
.night-card h3 .ic { color: #5ab0ff; }
.night-card b { padding: 16px 18px; border-radius: 18px; background: #ffffff14; font-size: 17px; font-weight: 500; line-height: 1.42; letter-spacing: -0.01em; color: #f5f5f7; }
.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: 32px; background: #fff; 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-dark { margin-block: -14px; padding-top: calc(clamp(24px, 2.6vw, 32px) + 14px); padding-bottom: calc(clamp(24px, 2.6vw, 32px) + 14px); border-radius: 36px; }
.plan.is-dark h3 { color: #fff; }
.plan.is-dark .plan-desc { color: #d1d1d6; border-top-color: #ffffff24; }

/* ---------- 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: #fff; border-radius: 20px; 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: 20px; }
.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(--ink); transform: rotate(135deg); }
[aria-expanded="true"] .faq-mark::before, [aria-expanded="true"] .faq-mark::after { background: #fff; }
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(--night); color: #fff; border-radius: 40px; box-shadow: var(--shadow-lg); }
.request-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--aurora); }
.request-text .title { margin-bottom: clamp(16px, 2vw, 24px); }
.request-text p { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.42; color: #d1d1d6; text-wrap: pretty; }
.form-card { padding: clamp(20px, 2.6vw, 32px); background: #fff; color: var(--ink); border-radius: 28px; 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: 14px; background: var(--soft); 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(--soft) 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: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
.form [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #e5484d; }
.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 #e5484d; 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: #d13438; }
.form-msg.ok { color: #16753f; 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(--night); color: #f5f5f7; 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: #d1d1d6; }
.footer-legal { color: var(--night-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, .hero > .aurora { 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: 24px; padding: 22px 18px; }
  .inset { margin: 0 6px; }
  .stage { --pad: 8px; --r: 26px; }
  .statement { border-radius: 24px; }
  .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: 20px; }
  .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: 28px; padding: 28px 14px 14px; }
  .request-text { padding: 0 8px; }
  .form-card { border-radius: 22px; padding: 18px 14px; }
  .plan.is-dark { margin-block: 0; padding-top: 22px; padding-bottom: 22px; border-radius: 24px; }
}
@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; }
}
