/* accountinginexcel.com — design system.
   Self-hosted Inter, no third-party requests (keeps the site GDPR-simple and inside the CSP). */

@font-face { font-family: "Inter var"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter var"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --navy: #0a2540;
  --slate: #425466;
  --slate-light: #6b7c93;
  --slate-faint: #8898aa;
  --line: #e3e8ee;
  --line-soft: #eef2f6;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --accent: #635bff;
  --accent-dark: #4b45d6;
  --accent-tint: #f0efff;
  --accent-ring: rgba(99, 91, 255, .22);
  --cyan: #00d4ff;
  --emerald: #12c99b;
  --emerald-dark: #0a8f6c;
  --emerald-tint: #e3f9f2;
  --amber: #ffcb57;
  --amber-dark: #8a5a00;
  --amber-tint: #fff6df;
  --red: #df1b41;
  --red-tint: #fff1f3;
  /* account types */
  --t-asset: #635bff;
  --t-liability: #0ea5e9;
  --t-equity: #12c99b;
  --t-revenue: #f5a524;
  --t-expense: #fa6f5a;
  --radius: 10px;
  --shadow-xs: 0 1px 2px rgba(10, 37, 64, .06);
  --shadow-sm: 0 2px 5px -1px rgba(50, 50, 93, .12), 0 1px 3px -1px rgba(0, 0, 0, .14);
  --shadow-md: 0 13px 27px -5px rgba(50, 50, 93, .16), 0 8px 16px -8px rgba(0, 0, 0, .18);
  --shadow-lg: 0 50px 100px -20px rgba(50, 50, 93, .25), 0 30px 60px -30px rgba(0, 0, 0, .3);
  --ring: 0 0 0 1px rgba(10, 37, 64, .05);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--slate); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss01"; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -.025em; }
h3 { font-size: 1.12rem; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: rgba(99, 91, 255, .18); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; position: relative; }
.narrow { width: min(720px, 100% - 48px); margin-inline: auto; position: relative; }
.muted { color: var(--slate-light); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.i-sm { width: 16px; height: 16px; }
.i-xs { width: 13px; height: 13px; stroke-width: 2.2; }
@media (max-width: 600px) { .wrap, .narrow { width: calc(100% - 32px); } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .25s, box-shadow .25s; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 1px 0 rgba(10, 37, 64, .07), 0 6px 24px -12px rgba(10, 37, 64, .12); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; transition: height .25s var(--ease); }
.site-header.is-scrolled .wrap { height: 62px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.06rem; color: var(--navy); letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: var(--navy); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--emerald) 0%, var(--accent) 100%); display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 2.5px; padding: 7px; box-shadow: var(--shadow-sm); transition: transform .4s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-mark i { background: #fff; border-radius: 1.5px; }
.brand-mark i:nth-child(4) { opacity: .5; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--navy); font-weight: 550; font-size: .94rem; padding: 7px 12px; border-radius: 999px; opacity: .82; transition: opacity .15s, background .15s; }
.nav a:not(.btn):hover { opacity: 1; background: rgba(10, 37, 64, .05); }
.nav .btn { margin-left: 10px; }
.btn .short { display: none; }
@media (max-width: 680px) { .nav a.hide-sm { display: none; } }
@media (max-width: 520px) { .nav a:not(.btn) { display: none; } .brand { font-size: 1rem; } .btn .long { display: none; } .btn .short { display: inline; } }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.3; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate; transition: background .2s, color .2s, box-shadow .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .arr { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; margin-top: 1px; }
.btn .arr .shaft, .link-arrow .arr .shaft { opacity: 0; transition: opacity .15s; }
.btn .arr .tip, .link-arrow .arr .tip { transition: transform .15s; }
.btn:hover .arr .shaft, .link-arrow:hover .arr .shaft, .card:hover .link-arrow .arr .shaft { opacity: 1; }
.btn:hover .arr .tip, .link-arrow:hover .arr .tip, .card:hover .link-arrow .arr .tip { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .72); color: var(--navy); box-shadow: inset 0 0 0 1px rgba(10, 37, 64, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1px rgba(99, 91, 255, .45); }
.btn-soft { background: var(--accent-tint); color: var(--accent); }
.btn-soft:hover { background: #e4e2ff; color: var(--accent-dark); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 8px 15px; font-size: .86rem; }
.btn-xs { padding: 5px 11px; font-size: .8rem; gap: 6px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; border-color: rgba(255, 255, 255, .35); border-top-color: #fff; margin: 0; }
.kbd { display: inline-flex; align-items: center; gap: 2px; font-family: var(--mono); font-size: .72rem; font-weight: 600; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .9); margin-left: 6px; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.link-arrow .arr { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 0 118px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0 0 auto 0; height: calc(100% - 40px); transform: skewY(-7deg); transform-origin: 0 0; overflow: hidden; background: var(--bg-soft); z-index: -2; }
.hero-bg::before { content: ""; position: absolute; inset: -25% -10% -10% 20%; transform: skewY(7deg);
  background:
    radial-gradient(38% 48% at 62% 22%, rgba(196, 139, 255, .95) 0%, transparent 62%),
    radial-gradient(34% 46% at 88% 18%, rgba(255, 203, 87, .95) 0%, transparent 60%),
    radial-gradient(40% 52% at 78% 52%, rgba(99, 91, 255, .95) 0%, transparent 62%),
    radial-gradient(36% 48% at 100% 78%, rgba(0, 212, 255, .9) 0%, transparent 60%),
    radial-gradient(40% 50% at 56% 84%, rgba(18, 201, 155, .9) 0%, transparent 62%);
  filter: blur(36px) saturate(1.15); animation: drift 16s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--bg-soft) 0%, rgba(246, 249, 252, .92) 30%, rgba(246, 249, 252, 0) 62%); }
@keyframes drift { 0% { transform: skewY(7deg) translate3d(0, 0, 0) scale(1); } 100% { transform: skewY(7deg) translate3d(-4%, 3%, 0) scale(1.08); } }
.guides { position: absolute; inset: 0; width: min(1120px, 100% - 48px); margin-inline: auto; pointer-events: none; z-index: -1; background: linear-gradient(to right, rgba(66, 84, 102, .09) 1px, transparent 1px) 0 0 / 25% 100%; border-right: 1px solid rgba(66, 84, 102, .09); -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.guides.light { background-image: linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px); border-right-color: rgba(255, 255, 255, .07); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .lead { font-size: 1.2rem; line-height: 1.6; max-width: 32em; color: var(--slate); margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 650; color: var(--accent); background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px rgba(99, 91, 255, .22); padding: 6px 13px; border-radius: 999px; margin-bottom: 26px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 3px rgba(18, 201, 155, .22); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(18, 201, 155, 0); } }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 28px 0 0; font-size: .92rem; font-weight: 550; color: var(--navy); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .i { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--emerald-tint); color: var(--emerald-dark); stroke-width: 2.6; }
.hero-tool { padding: 150px 0 160px; }
.hero-tool h1 { max-width: 16ch; font-size: clamp(2.3rem, 5vw, 3.6rem); }
.hero-tool .lead { max-width: 40em; }
@media (max-width: 960px) { .hero { padding: 124px 0 70px; } .hero-inner { grid-template-columns: minmax(0, 1fr); } .hero h1 { max-width: none; } .hero-tool { padding-bottom: 140px; } }

/* ---------- Window chrome (shared by demo + preview) ---------- */
.window { position: relative; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fbfcfe; font-size: .8rem; font-weight: 600; color: var(--navy); min-width: 0; }
.window-bar .file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.xl { flex: none; width: 20px; height: 20px; border-radius: 5px; background: linear-gradient(135deg, #1f9d63, #12c99b); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; }
.xl.lg { width: 44px; height: 44px; border-radius: 11px; font-size: 1.05rem; box-shadow: var(--shadow-sm); }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; flex: none; font-size: .72rem; font-weight: 650; color: var(--emerald-dark); background: var(--emerald-tint); padding: 3px 9px; border-radius: 999px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: pulse 2s ease-in-out infinite; }
.live.busy { color: var(--accent); background: var(--accent-tint); }
.live.busy i { background: var(--accent); }
.tabs { display: flex; gap: 2px; padding: 7px 10px 0; background: var(--bg-soft); border-top: 1px solid var(--line); font-size: .74rem; font-weight: 600; color: var(--slate-light); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs > * { padding: 7px 12px; border-radius: 7px 7px 0 0; white-space: nowrap; border: 0; background: none; font: inherit; color: inherit; }
.tabs .on, .tabs [aria-selected="true"] { background: #fff; color: var(--emerald-dark); box-shadow: 0 -1px 0 var(--line), 1px 0 0 var(--line), -1px 0 0 var(--line); }
.tabs button { cursor: pointer; transition: color .15s, background .15s; }
.tabs button:hover { color: var(--navy); }
.chip { display: inline-flex; align-items: center; gap: 3px; font-size: .6rem; font-weight: 750; letter-spacing: .05em; padding: 2px 6px; border-radius: 5px; background: linear-gradient(135deg, var(--accent), #8b5cf6); color: #fff; margin-left: 7px; vertical-align: 1px; line-height: 1.4; }
.chip .i { width: 9px; height: 9px; stroke-width: 2.4; }
.chip.chip-sys { background: var(--bg-soft); color: var(--slate); box-shadow: inset 0 0 0 1px var(--line); text-transform: uppercase; }
.cc { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-size: .68rem; font-weight: 750; letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, hsl(var(--h, 244) 85% 62%), hsl(calc(var(--h, 244) + 40) 85% 58%)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.cc.lg { width: 40px; height: 40px; border-radius: 11px; font-size: .8rem; }
.cc.empty { background: var(--line-soft); color: var(--slate-faint); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Home: animated demo ---------- */
.mock { position: relative; padding: 0 0 132px; }
.demo-window .sheet-head, .srow { display: grid; grid-template-columns: 64px minmax(0, 1fr) 82px; }
.demo-window .sheet-head { font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; color: var(--slate-light); font-weight: 650; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.demo-window .sheet-head span, .srow > span { padding: 8px 14px; }
.sheet-rows { height: 324px; overflow: hidden; }
.srow { position: relative; font-size: .8rem; color: var(--navy); border-bottom: 1px solid var(--line-soft); opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.srow.in { opacity: 1; transform: none; }
.srow > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow > span:first-child { font-family: var(--mono); font-size: .75rem; color: var(--slate); }
.srow > span:last-child { color: var(--slate-light); }
.srow.ghost { opacity: 1; transform: none; }
.srow.ghost > span { color: transparent; background: linear-gradient(#e9eef4, #e9eef4) content-box no-repeat; background-size: var(--gw, 70%) 8px; background-position: 0 50%; animation: ghostPulse 1.4s ease-in-out infinite; }
.srow.ghost:nth-child(odd) > span { animation-delay: -.7s; }
@keyframes ghostPulse { 50% { opacity: .45; } }
.srow.ghost > span:first-child { --gw: 80%; }
.srow.ghost > span:nth-child(2) { --gw: 62%; }
.srow.ghost:nth-child(3n) > span:nth-child(2) { --gw: 48%; }
.srow.ghost:nth-child(3n+1) > span:nth-child(2) { --gw: 74%; }
.srow.ghost > span:last-child { --gw: 58%; }
.srow.ghost .chip { visibility: hidden; }
.srow.in > span { animation: textIn .45s var(--ease); }
@keyframes textIn { from { color: transparent; } }
.srow.ai { background: linear-gradient(90deg, var(--accent-tint), #fff 85%); }
.srow.ai.ghost { background: none; }
.srow.ai::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .85) 50%, transparent 80%); transform: translateX(-100%); pointer-events: none; }
.srow.ai.in::after { animation: sweep 1.1s .1s var(--ease) both; }
@keyframes sweep { to { transform: translateX(100%); } }
.float-card { position: absolute; background: #fff; border-radius: 12px; box-shadow: var(--shadow-md), var(--ring); padding: 14px 16px; font-size: .84rem; color: var(--navy); }
.float-card.prompt { left: -40px; top: 398px; width: 300px; animation: bob 7s ease-in-out infinite alternate; }
.float-card.prompt p { margin: 0; min-height: 3.1em; line-height: 1.5; }
.float-card .label { display: flex; align-items: center; gap: 6px; font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.float-card .label .i { width: 13px; height: 13px; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.float-card.done { right: -20px; top: 408px; display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .4s var(--ease), transform .5s var(--spring); }
.float-card.done.show { opacity: 1; transform: none; }
.float-card .tick { width: 32px; height: 32px; border-radius: 50%; background: var(--emerald-tint); color: var(--emerald-dark); display: grid; place-items: center; }
.float-card .tick .i { width: 17px; height: 17px; stroke-width: 2.6; }
.float-card strong { font-variant-numeric: tabular-nums; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.demo-switch { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 8px; }
.demo-switch button { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600; color: var(--slate); background: rgba(255, 255, 255, .8); padding: 5px 12px 5px 5px; border-radius: 999px; box-shadow: var(--shadow-xs), inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: color .2s, box-shadow .2s, background .2s; }
.demo-switch button .cc { width: 22px; height: 22px; border-radius: 50%; font-size: .56rem; }
.demo-switch button:hover { color: var(--navy); }
.demo-switch button[aria-pressed="true"] { color: var(--navy); background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1.5px var(--accent); }
@media (max-width: 960px) { .float-card.prompt { left: 8px; top: 398px; width: min(300px, 78%); } .float-card.done { right: 8px; top: 470px; } .mock { padding-bottom: 170px; } .demo-switch { flex-wrap: wrap; } }

/* ---------- Standards marquee ---------- */
.standards { padding: 12px 0 36px; }
.standards-title { text-align: center; font-size: .86rem; font-weight: 600; color: var(--slate-light); margin-bottom: 20px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 110s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
.std { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-xs), inset 0 0 0 1px var(--line); font-size: .9rem; font-weight: 650; color: var(--navy); white-space: nowrap; }
.std small { font-weight: 500; color: var(--slate-light); font-size: .8rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 30px 26px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.04em; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .num span { background: linear-gradient(135deg, var(--accent), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { margin: 10px 0 0; font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px 0; }
.section.tight { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head p { font-size: 1.12rem; }
.kicker { font-size: .92rem; font-weight: 650; color: var(--accent); margin-bottom: 14px; letter-spacing: -.005em; }
.on-dark { position: relative; background: var(--navy); color: #adbdcc; clip-path: polygon(0 7vw, 100% 0, 100% calc(100% - 7vw), 0 100%); padding: calc(110px + 7vw) 0; margin: -1px 0; isolation: isolate; overflow: hidden; }
.on-dark::before { content: ""; position: absolute; inset: auto -10% -30% 40%; height: 70%; background: radial-gradient(50% 60% at 60% 60%, rgba(99, 91, 255, .38), transparent 70%), radial-gradient(40% 50% at 90% 40%, rgba(0, 212, 255, .22), transparent 70%); filter: blur(30px); z-index: -2; }
.on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .kicker { color: var(--cyan); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 16px; padding: 30px; box-shadow: var(--shadow-sm), var(--ring); transition: transform .3s var(--ease), box-shadow .3s; overflow: hidden; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(99, 91, 255, .09), transparent 45%); }
.spot:hover::before { opacity: 1; }
a.card { color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), var(--ring); color: inherit; }
.card p { font-size: .98rem; }
.card .card-foot { margin-top: auto; padding-top: 12px; }
.card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; padding: 44px; }
.card.featured h3 { font-size: 1.6rem; letter-spacing: -.02em; }
.card.featured p { font-size: 1.05rem; }
@media (max-width: 820px) { .card.featured { grid-template-columns: minmax(0, 1fr); padding: 30px; } }
.card.soon { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--cyan)); box-shadow: var(--shadow-sm); }
.icon.g2 { background: linear-gradient(135deg, var(--emerald), var(--cyan)); }
.icon.g3 { background: linear-gradient(135deg, #ff7a59, var(--amber)); }
.icon.g4 { background: linear-gradient(135deg, #c48bff, var(--accent)); }
.icon .i { width: 22px; height: 22px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; align-self: flex-start; }
.badge-live { background: var(--emerald-tint); color: var(--emerald-dark); }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: pulse 2s ease-in-out infinite; }
.badge-soon { background: #eef1f6; color: var(--slate-light); }
.mini-window { border-radius: 12px; box-shadow: var(--shadow-md), var(--ring); overflow: hidden; background: #fff; transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); transform-origin: left center; transition: transform .5s var(--ease); }
.card.featured:hover .mini-window { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.mini-window .srow { opacity: 1; transform: none; grid-template-columns: 58px minmax(0, 1fr) 112px; }
.mini-window .srow > span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--navy); font-family: var(--mono); font-size: .74rem; }
.mini-window .sheet-head { display: grid; grid-template-columns: 58px minmax(0, 1fr) 112px; font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; color: var(--slate-light); font-weight: 650; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.mini-window .sheet-head span { padding: 8px 14px; }
.mini-window .sheet-head span:last-child { text-align: right; }
@media (max-width: 820px) { .mini-window { transform: none; } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.bento .card { padding: 0; }
.bento .b-wide { grid-column: span 4; }
.bento .b-narrow { grid-column: span 2; }
.bento .b-half { grid-column: span 3; }
.b-copy { padding: 28px 30px 30px; }
.b-copy h3 { font-size: 1.14rem; }
.b-copy p { margin: 0; font-size: .96rem; }
.b-visual { position: relative; height: 200px; background: linear-gradient(180deg, var(--bg-soft), #fff); border-bottom: 1px solid var(--line-soft); overflow: hidden; display: grid; place-items: center; }
@media (max-width: 900px) { .bento .b-wide, .bento .b-narrow, .bento .b-half { grid-column: span 6; } }
.v-ledger { width: min(420px, 86%); background: #fff; border-radius: 10px; box-shadow: var(--shadow-md), var(--ring); overflow: hidden; font-size: .78rem; }
.v-ledger div { display: grid; grid-template-columns: 22px 54px minmax(0, 1fr); align-items: center; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--line-soft); color: var(--navy); white-space: nowrap; }
.v-ledger div:last-child { border-bottom: 0; }
.v-ledger b { font-family: var(--mono); font-weight: 500; color: var(--slate); font-size: .74rem; }
.v-ledger .i { width: 13px; height: 13px; color: var(--slate-faint); }
.v-ledger span { overflow: hidden; text-overflow: ellipsis; }
.v-ai { width: min(300px, 86%); display: grid; gap: 10px; }
.v-ai .row { display: flex; align-items: center; gap: 8px; background: linear-gradient(90deg, var(--accent-tint), #fff); border-radius: 9px; padding: 9px 12px; font-size: .78rem; color: var(--navy); box-shadow: var(--shadow-xs), inset 0 0 0 1px rgba(99, 91, 255, .18); }
.v-ai .row b { font-family: var(--mono); font-weight: 500; font-size: .74rem; color: var(--slate); }
.v-ai .note { font-size: .74rem; color: var(--slate); background: #fff; border-radius: 9px; padding: 9px 12px; box-shadow: var(--shadow-sm), var(--ring); margin-left: 18px; position: relative; }
.v-ai .note::before { content: ""; position: absolute; left: 16px; top: -5px; width: 10px; height: 10px; background: #fff; transform: rotate(45deg); box-shadow: -1px -1px 0 rgba(10, 37, 64, .05); }
.v-formula { width: min(320px, 86%); background: #fff; border-radius: 10px; box-shadow: var(--shadow-md), var(--ring); overflow: hidden; font-size: .76rem; }
.v-formula .fbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-family: var(--mono); color: var(--navy); white-space: nowrap; overflow: hidden; }
.v-formula .fbar em { font-style: italic; font-family: Georgia, serif; color: var(--slate-light); font-weight: 600; }
.v-formula .fbar span { overflow: hidden; text-overflow: ellipsis; }
.v-formula .fbar i { color: var(--accent); font-style: normal; }
.v-formula .cells { display: grid; grid-template-columns: 1fr 1fr; }
.v-formula .cells span { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); color: var(--navy); text-align: right; }
.v-formula .cells span:nth-child(odd) { text-align: left; font-family: var(--font); color: var(--slate); border-right: 1px solid var(--line-soft); }
.v-formula .ok { color: var(--emerald-dark) !important; font-weight: 700; background: var(--emerald-tint); }
.v-private { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: min(420px, 90%); }
.v-private span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm), var(--ring); font-size: .82rem; font-weight: 600; color: var(--navy); }
.v-private .i { width: 16px; height: 16px; color: var(--emerald-dark); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.step { padding: 34px 32px 8px 0; position: relative; }
.step + .step { padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, .12); }
.step .n { font-family: var(--mono); font-size: .8rem; color: var(--cyan); letter-spacing: .08em; margin-bottom: 18px; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--accent)); transform-origin: left; transition: transform 1s var(--ease); }
.step + .step::before { left: 32px; }
.js [data-reveal]:not(.is-visible) .step::before { transform: scaleX(0); }
@media (max-width: 860px) { .step + .step { padding-left: 0; border-left: 0; } .step + .step::before { left: 0; } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Generator: builder form ---------- */
.panel { background: #fff; border-radius: 18px; box-shadow: var(--shadow-md), var(--ring); padding: 38px; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: start; margin-top: -118px; z-index: 2; }
@media (max-width: 1000px) { .tool-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .panel { padding: 26px 20px; border-radius: 16px; } }
.step-set { position: relative; border: 0; padding: 0 0 0 44px; margin: 0 0 8px; min-width: 0; }
.step-set::before { content: ""; position: absolute; left: 13px; top: 34px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--line-soft); }
.step-set::after { content: ""; position: absolute; left: 13px; top: 34px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent), var(--emerald)); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease); }
.step-set.is-complete::after { transform: scaleY(1); }
.step-set:last-of-type::before, .step-set:last-of-type::after { display: none; }
.step-set + .step-set { padding-top: 22px; }
.step-set legend { float: left; width: calc(100% + 44px); display: flex; align-items: center; gap: 12px; padding: 0; margin: 0 0 20px -44px; font-size: 1.14rem; font-weight: 650; color: var(--navy); letter-spacing: -.01em; }
.step-set > :not(legend) { clear: both; }
.step-set legend .opt { margin-left: auto; font-size: .78rem; font-weight: 550; color: var(--slate-faint); }
.bubble { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-size: .8rem; font-weight: 700; display: grid; place-items: center; transition: background .3s, color .3s, box-shadow .3s; }
.bubble .i { position: absolute; width: 15px; height: 15px; stroke-width: 2.8; opacity: 0; transform: scale(.4) rotate(-20deg); transition: opacity .25s, transform .4s var(--spring); }
.bubble span { transition: opacity .2s, transform .3s; }
.step-set.is-complete .bubble { background: var(--emerald); color: #fff; box-shadow: 0 0 0 4px rgba(18, 201, 155, .16); }
.step-set.is-complete .bubble .i { opacity: 1; transform: none; }
.step-set.is-complete .bubble span { opacity: 0; transform: scale(.4); }
@media (max-width: 600px) { .step-set { padding-left: 0; } .step-set legend { margin-left: 0; width: 100%; } .step-set::before, .step-set::after { display: none; } }

.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.field-row .seg { display: grid; width: 100%; }
.field-row .seg label { padding-inline: 10px; }
@media (max-width: 600px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.lbl { display: block; font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 8px; }
.lbl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.lbl-row .lbl { margin: 0; }
.lbl-row .aside { font-size: .78rem; color: var(--slate-faint); }
.hint { font-size: .82rem; color: var(--slate-light); margin: 8px 0 0; line-height: 1.5; }
.control { width: 100%; font: inherit; font-size: .96rem; color: var(--navy); background: #fff; border: 0; border-radius: 9px; padding: 11px 13px; box-shadow: 0 0 0 1px #dfe5eb, 0 2px 4px 0 rgba(0, 0, 0, .04), 0 1px 1.5px 0 rgba(0, 0, 0, .03); transition: box-shadow .15s; appearance: none; -webkit-appearance: none; }
input[type="text"], input[type="email"], input[type="search"], textarea { font: inherit; }
textarea.control { min-height: 116px; resize: vertical; line-height: 1.55; display: block; }
::placeholder { color: #a3acb9; }
.control:hover { box-shadow: 0 0 0 1px #c9d2dc, 0 2px 4px 0 rgba(0, 0, 0, .05); }
.control:focus { outline: 0; box-shadow: 0 0 0 1px rgba(99, 91, 255, .7), 0 0 0 4px var(--accent-ring); }
.field.has-error .control { box-shadow: 0 0 0 1px rgba(223, 27, 65, .7), 0 0 0 4px rgba(223, 27, 65, .14); }
.field-msg { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--red); margin: 8px 0 0; font-weight: 550; }
.field-msg .i { width: 15px; height: 15px; }
.input-wrap { position: relative; }
.input-wrap .valid { position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--emerald); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--spring); pointer-events: none; }
.input-wrap .valid .i { width: 12px; height: 12px; stroke-width: 3; }
.input-wrap.is-valid .valid { opacity: 1; transform: none; }
.input-wrap.is-valid .control { padding-right: 42px; }
.shake { animation: shake .45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* Combobox (country picker) */
.combo { position: relative; }
.combo-trigger { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; padding: 9px 12px 9px 9px; }
.combo-trigger .cc { width: 34px; height: 34px; border-radius: 9px; font-size: .72rem; }
.combo-text { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.combo-text strong { font-weight: 600; font-size: .96rem; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-text small { font-size: .8rem; color: var(--slate-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-trigger .chev { color: var(--slate-light); transition: transform .25s var(--ease); }
.combo.is-open .combo-trigger .chev { transform: rotate(180deg); }
.combo.is-open .combo-trigger { box-shadow: 0 0 0 1px rgba(99, 91, 255, .7), 0 0 0 4px var(--accent-ring); }
.combo-pop { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(10, 37, 64, .07); overflow: hidden; transform-origin: top center; animation: popIn .22s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.combo-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--slate-light); }
.combo-search input { flex: 1; border: 0; outline: 0; font-size: .95rem; color: var(--navy); background: none; min-width: 0; }
.combo-search input::-webkit-search-cancel-button { display: none; }
.combo-list { list-style: none; margin: 0; padding: 6px; max-height: 320px; overflow: auto; scrollbar-width: thin; }
.combo-group { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--slate-faint); padding: 10px 10px 6px; }
.combo-opt { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.combo-opt .combo-text strong { font-size: .92rem; }
.combo-opt .meta { font-size: .74rem; color: var(--slate-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.combo-opt .tick { width: 18px; height: 18px; color: var(--accent); opacity: 0; stroke-width: 2.4; }
.combo-opt[aria-selected="true"] .tick { opacity: 1; }
.combo-opt.is-active { background: var(--accent-tint); }
.combo-opt mark { background: rgba(255, 203, 87, .45); color: inherit; border-radius: 3px; }
.combo-empty { padding: 22px 16px; text-align: center; font-size: .9rem; color: var(--slate-light); }
.combo-foot { display: flex; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--line); background: var(--bg-soft); font-size: .72rem; color: var(--slate-faint); }
.combo-foot kbd { font-family: var(--mono); font-size: .68rem; padding: 1px 5px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 var(--line); color: var(--slate); }
@media (max-width: 600px) { .combo-foot { display: none; } }

.fw-info { margin-top: 12px; border-radius: 11px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line-soft); padding: 14px 16px; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } }
.fw-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pill-meta { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; color: var(--slate); background: #fff; padding: 3px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.fw-info p { margin: 0; font-size: .84rem; line-height: 1.55; }
#framework-status { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.fw-info:has(details[open]) #framework-status { -webkit-line-clamp: unset; line-clamp: none; }
.fw-info details { margin-top: 10px; border: 0; padding: 0; }
.fw-info summary { display: inline-flex; font-size: .82rem; font-weight: 600; color: var(--accent); cursor: pointer; list-style: none; }
.fw-info summary::-webkit-details-marker { display: none; }
.fw-info summary::after { display: none; }
.fw-info details p { margin-top: 8px; font-size: .8rem; color: var(--slate-light); max-height: 180px; overflow: auto; }

/* Segmented control with sliding thumb */
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 10px; background: #eef1f6; isolation: isolate; }
.seg-thumb { position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n, 2)); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .35s var(--spring); }
.seg:has(label:nth-of-type(2) input:checked) .seg-thumb { transform: translateX(100%); }
.seg:has(label:nth-of-type(3) input:checked) .seg-thumb { transform: translateX(200%); }
.seg:has(label:nth-of-type(4) input:checked) .seg-thumb { transform: translateX(300%); }
.seg:has(label:nth-of-type(5) input:checked) .seg-thumb { transform: translateX(400%); }
.seg-full { display: grid; width: 100%; }
.seg-full label { padding-inline: 8px; }
.numlen-hint { display: block; }
.numlen-hint .mono { font-family: var(--mono); font-size: .78rem; color: var(--navy); font-weight: 600; }
#numlen label { padding-inline: 14px; }
.numx { font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--navy); background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); padding: 1px 7px; border-radius: 6px; }
.numx b { color: var(--accent); font-weight: 700; }
.numlen-hint .i { width: 14px; height: 14px; color: var(--slate-faint); }
.numlen-note { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); color: var(--slate); }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--slate); transition: color .2s; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { color: var(--navy); }
.seg label:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--accent); }
.seg .ct { font-size: .72rem; font-weight: 650; color: var(--slate-faint); font-variant-numeric: tabular-nums; }
.seg label:has(input:checked) .ct { color: var(--accent); }

/* Industry pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; cursor: pointer; font-size: .88rem; font-weight: 550; color: var(--navy); background: #fff; box-shadow: inset 0 0 0 1px #dfe5eb, var(--shadow-xs); transition: box-shadow .15s, background .15s, color .15s, transform .15s var(--ease); user-select: none; }
.pill .i { width: 18px; height: 18px; color: var(--slate-light); transition: color .15s; }
.pill:hover { box-shadow: inset 0 0 0 1px #c3ccd6, var(--shadow-sm); }
.pill:active { transform: scale(.97); }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:has(input:checked) { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.pill:has(input:checked) .i { color: var(--cyan); }
.pill:has(input:focus-visible) { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.preset-note { display: flex; align-items: center; gap: 6px; min-height: 1.4em; }
.preset-note .i { width: 14px; height: 14px; color: var(--accent); }

/* Option tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; }
.tile { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px 10px 10px; border-radius: 11px; font-size: .88rem; font-weight: 550; line-height: 1.3; color: var(--navy); cursor: pointer; background: #fff; box-shadow: inset 0 0 0 1px #dfe5eb, var(--shadow-xs); transition: box-shadow .18s, background .18s; user-select: none; }
.tile:hover { box-shadow: inset 0 0 0 1px #c3ccd6, var(--shadow-sm); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile-ico { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-soft); color: var(--slate-light); box-shadow: inset 0 0 0 1px var(--line-soft); transition: background .2s, color .2s, box-shadow .2s, transform .35s var(--spring); }
.tile-ico .i { width: 17px; height: 17px; }
.tile-text { flex: 1; min-width: 0; }
.delta { flex: none; font-size: .72rem; font-weight: 650; color: var(--slate-faint); font-variant-numeric: tabular-nums; padding: 2px 7px; border-radius: 999px; background: var(--bg-soft); transition: color .2s, background .2s; }
.delta:empty { display: none; }
.tile:has(input:checked) { background: linear-gradient(180deg, #f7f6ff, #fff); box-shadow: inset 0 0 0 1.5px var(--accent), 0 4px 12px -6px rgba(99, 91, 255, .45); }
.tile:has(input:checked) .tile-ico { background: var(--accent); color: #fff; box-shadow: none; transform: scale(1.04); }
.tile:has(input:checked) .delta { color: var(--accent); background: #fff; }
.tile:has(input:focus-visible) { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-ring); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.choice-grid .option-card .tile-text { font-size: .86rem; }
.kind-tag { display: inline-block; margin-top: 5px; font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--slate-faint); }
.option-card:has(input:checked) .kind-tag { color: var(--accent); }
.lf-note { display: flex; gap: 10px; margin-top: 10px; padding: 11px 13px; border-radius: 10px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line-soft); font-size: .82rem; line-height: 1.5; color: var(--slate); animation: fadeUp .3s var(--ease); }
.lf-note .i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.lf-note strong { color: var(--navy); }
.choice-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .choice-2 { grid-template-columns: minmax(0, 1fr); } }
.option-card { align-items: flex-start; padding: 13px 14px 13px 12px; }
.option-card .tile-ico { width: 36px; height: 36px; }
.option-card .tile-text { font-weight: 600; line-height: 1.35; }
.option-card .tile-text small { display: block; margin-top: 3px; font-size: .78rem; font-weight: 500; color: var(--slate-light); }
.option-card:has(input:checked) .tile-text small { color: var(--slate); }
.tile.flash { animation: tileFlash .9s var(--ease); }
@keyframes tileFlash { 0% { transform: scale(1); } 30% { transform: scale(1.03); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 6px var(--accent-ring); } 100% { transform: scale(1); } }

/* Textarea tools */
.ta-wrap { position: relative; }
.ta-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.counter { font-size: .78rem; color: var(--slate-faint); font-variant-numeric: tabular-nums; }
.counter.warn { color: var(--amber-dark); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; line-height: 1.5; cursor: pointer; padding: 12px 14px; border-radius: 11px; background: var(--bg-soft); transition: background .2s, box-shadow .2s; }
.consent:hover { background: #eff3f8; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.checkmark { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px #c4ccd6; display: grid; place-items: center; transition: background .15s, box-shadow .15s; }
.checkmark .i { width: 13px; height: 13px; stroke: #fff; stroke-width: 3; opacity: 0; transform: scale(.5); transition: opacity .15s, transform .3s var(--spring); }
.consent:has(input:checked) .checkmark { background: var(--accent); box-shadow: none; }
.consent:has(input:checked) .checkmark .i { opacity: 1; transform: none; }
.consent:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--accent); }
.consent.has-error { box-shadow: inset 0 0 0 1px rgba(223, 27, 65, .5); background: var(--red-tint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: flex; gap: 10px; align-items: flex-start; background: var(--red-tint); color: var(--red); box-shadow: inset 0 0 0 1px rgba(223, 27, 65, .25); padding: 12px 15px; border-radius: 10px; font-size: .9rem; font-weight: 550; margin-bottom: 18px; }
.submit-zone { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.btn-block { width: 100%; padding: 16px 24px; font-size: 1.03rem; border-radius: 12px; }
.submit-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; font-size: .8rem; color: var(--slate-light); }
.submit-meta span { display: inline-flex; align-items: center; gap: 6px; }
.submit-meta .i { width: 14px; height: 14px; color: var(--emerald-dark); stroke-width: 2.4; }

/* ---------- Generator: live preview ---------- */
.preview-col { position: sticky; top: 84px; }
@media (max-width: 1000px) { .preview-col { position: static; } }
.preview { box-shadow: var(--shadow-lg), var(--ring); border-radius: 18px; }
.pv-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px 14px; }
.pv-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pv-id h3 { margin: 0; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-id > div { min-width: 0; }
.pv-id .small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-count { text-align: right; flex: none; }
.count { position: relative; font-size: 2.2rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.count-label { font-size: .68rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--slate-light); margin-top: 4px; }
.count-delta { position: absolute; right: 100%; top: 2px; margin-right: 8px; font-size: .76rem; font-weight: 700; letter-spacing: 0; padding: 2px 7px; border-radius: 999px; white-space: nowrap; opacity: 0; transform: translateY(4px); }
.count-delta.up { color: var(--emerald-dark); background: var(--emerald-tint); }
.count-delta.down { color: #b4232f; background: var(--red-tint); }
.count-delta.show { animation: deltaPop 1.6s var(--ease) forwards; }
@keyframes deltaPop { 0% { opacity: 0; transform: translateY(6px); } 15%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
.compbar { display: flex; height: 8px; gap: 2px; margin: 0 20px; border-radius: 999px; overflow: hidden; background: var(--line-soft); }
.compbar span { display: block; height: 100%; width: 0; transition: width .6s var(--ease); }
.compbar [data-type="asset"] { background: var(--t-asset); }
.compbar [data-type="liability"] { background: var(--t-liability); }
.compbar [data-type="equity"] { background: var(--t-equity); }
.compbar [data-type="revenue"] { background: var(--t-revenue); }
.compbar [data-type="expense"] { background: var(--t-expense); }
.pv-tools { position: relative; display: flex; align-items: center; padding: 12px 20px 10px; border-bottom: 1px solid var(--line); min-height: 52px; }
.filters { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; min-width: 0; padding-right: 40px; transition: opacity .2s; }
.pv-tools:has(.pv-search.open) .filters { opacity: 0; pointer-events: none; }
.fbtn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; font: inherit; font-size: .76rem; font-weight: 600; color: var(--slate); padding: 5px 9px; border-radius: 999px; transition: background .15s, color .15s, box-shadow .15s; }
.fbtn:hover { background: var(--bg-soft); color: var(--navy); }
.fbtn .dot { width: 7px; height: 7px; border-radius: 50%; }
.fbtn b { font-weight: 650; color: var(--slate-faint); font-variant-numeric: tabular-nums; }
.fbtn[aria-pressed="true"] { background: var(--navy); color: #fff; }
.fbtn[aria-pressed="true"] b { color: rgba(255, 255, 255, .65); }
.fbtn.ai-f { color: var(--accent); }
.fbtn.ai-f .i { width: 12px; height: 12px; }
.fbtn.ai-f[aria-pressed="true"] { background: var(--accent); color: #fff; }
.pv-search { position: absolute; right: 16px; top: 10px; display: flex; align-items: center; width: 32px; height: 32px; transition: width .35s var(--ease); z-index: 3; }
.pv-search.open { width: calc(100% - 32px); }
.pv-search .i { position: absolute; left: 9px; width: 15px; height: 15px; color: var(--slate-light); pointer-events: none; }
.pv-search input { width: 100%; height: 100%; font-size: .84rem; color: var(--navy); border: 0; border-radius: 9px; padding: 0 30px 0 31px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line-soft); cursor: pointer; transition: box-shadow .15s, background .15s; }
.pv-search input::placeholder { opacity: 0; transition: opacity .2s; }
.pv-search.open input { cursor: text; background: #fff; box-shadow: inset 0 0 0 1px rgba(99, 91, 255, .6), 0 0 0 3px var(--accent-ring); }
.pv-search.open input::placeholder { opacity: 1; }
.pv-search input:focus { outline: 0; }
.pv-search input::-webkit-search-cancel-button { display: none; }
.pv-search .clear { position: absolute; right: 5px; width: 22px; height: 22px; border: 0; border-radius: 6px; background: none; color: var(--slate-light); cursor: pointer; display: none; place-items: center; padding: 0; }
.pv-search .clear:hover { background: var(--bg-soft); color: var(--navy); }
.pv-search.open .clear { display: grid; }
.pv-search .clear .i { position: static; width: 14px; height: 14px; }
.pv-tools.is-off .filters, .pv-tools.is-off .pv-search { opacity: .35; pointer-events: none; }
.panes { position: relative; height: 452px; }
.pane { position: absolute; inset: 0; overflow: auto; scrollbar-width: thin; visibility: hidden; background: #fff; }
.pane.is-active { visibility: visible; animation: paneIn .28s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(4px); } }
@media (max-width: 1000px) { .panes { height: 420px; } }
table.coa { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .82rem; }
table.coa th { position: sticky; top: 0; z-index: 2; text-align: left; font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; color: var(--slate-light); font-weight: 650; padding: 9px 14px; background: var(--bg-soft); box-shadow: inset 0 -1px 0 var(--line); height: 34px; }
table.coa th.r, table.coa td.r { text-align: right; }
table.coa td { padding: 8px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--navy); background: #fff; }
table.coa td.no { font-family: var(--mono); font-size: .76rem; color: var(--slate); white-space: nowrap; width: 76px; }
table.coa td .en { display: block; font-size: .74rem; line-height: 1.35; color: var(--slate-light); margin-top: 1px; }
table.coa td.type { width: 96px; white-space: nowrap; }
.tdot { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 550; color: var(--slate); }
.tdot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--slate-faint)); }
table.coa tr.ai td { background: #f8f7ff; }
table.coa tr.ai td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
table.coa tr.cls td { position: sticky; top: 34px; z-index: 1; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-weight: 700; font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); padding-top: 12px; padding-bottom: 7px; }
table.coa tr.cls td span { color: var(--slate-faint); font-weight: 600; margin-left: 6px; }
table.coa tr.is-new td { animation: rowNew 1.6s var(--ease); }
@keyframes rowNew { 0% { background: #e6fbf4; } 100% { background: #fff; } }
table.coa tr.has-guide { cursor: pointer; }
table.coa tr.has-guide:hover td { background: #fafbfd; }
table.coa tr.has-guide:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
table.coa tr.has-guide[aria-expanded="true"] td { background: #fafbfd; border-bottom-color: transparent; }
table.coa td.type { position: relative; padding-right: 26px; }
.row-chev { position: absolute; right: 8px; top: 9px; width: 14px; height: 14px; color: var(--slate-faint); opacity: 0; transition: opacity .15s, transform .25s var(--ease); }
table.coa tr.has-guide:hover .row-chev, table.coa tr.has-guide:focus-visible .row-chev, table.coa tr[aria-expanded="true"] .row-chev { opacity: 1; }
table.coa tr[aria-expanded="true"] .row-chev { transform: rotate(180deg); color: var(--accent); }
table.coa tr.guide-row td { padding: 0 14px 12px; background: #fafbfd; }
.guide { padding: 12px 14px 10px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .79rem; line-height: 1.5; color: var(--slate); animation: fadeUp .25s var(--ease); white-space: normal; }
.guide-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 8px; }
.guide-head strong { font-size: .86rem; color: var(--navy); }
.guide-ref { margin-left: auto; font-family: var(--mono); font-size: .68rem; color: var(--slate-light); background: var(--bg-soft); padding: 1px 7px; border-radius: 5px; }
.el-badge { font-size: .64rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--slate-light); cursor: help; }
.el-asset { background: var(--t-asset); }
.el-liability { background: var(--t-liability); }
.el-equity { background: var(--t-equity); }
.el-revenue { background: var(--t-revenue); }
.el-expense { background: var(--t-expense); }
.el-technical { background: var(--slate-faint); }
.el-local { background: #b7791f; }
.guide-grid { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 5px 12px; margin: 0; }
.guide-grid dt { font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--slate-faint); padding-top: 2px; }
.guide-grid dd { margin: 0; }
.guide-grid dd.book { color: var(--navy); font-weight: 550; background: var(--accent-tint); margin: -2px -6px; padding: 2px 6px; border-radius: 6px; }
.guide-grid dd.local { color: #7a5600; }
.guide-basis { margin: -2px 0 10px; font-size: .74rem; color: var(--slate-faint); }
.acc-ref {font-variant-numeric: tabular-nums; white-space: nowrap; }
.acc-ref.missing { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.acc-ref small { font-size: .72em; font-weight: 600; color: var(--slate-faint); letter-spacing: .01em; }
@media (max-width: 520px) { .guide-grid { grid-template-columns: minmax(0, 1fr); } .guide-grid dt { padding-top: 6px; } }
.guide-meta { margin: 8px 0 0; padding-top: 7px; border-top: 1px solid var(--line-soft); font-size: .7rem; font-weight: 600; color: var(--slate-faint); }
table.coa.compact { table-layout: fixed; }
table.coa.compact td, table.coa.compact th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 10px; padding-right: 10px; }
table.coa.compact td.no { width: auto; }
table.coa mark { background: rgba(255, 203, 87, .5); color: inherit; border-radius: 3px; padding: 0 1px; }
.note-line { display: block; font-size: .72rem; color: var(--accent); margin-top: 3px; line-height: 1.4; }
.pv-empty { padding: 26px 20px; }
.skel { display: grid; grid-template-columns: 52px 1fr 70px; gap: 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.skel i { display: block; height: 9px; border-radius: 5px; background: linear-gradient(90deg, var(--line-soft) 0%, #f7f9fc 50%, var(--line-soft) 100%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.skel i:nth-child(2) { width: var(--w, 70%); }
@keyframes shimmer { to { background-position: -200% 0; } }
.pv-empty-msg { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 20px 8px; }
.pv-empty-msg .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); }
.pv-empty-msg .ic .i { width: 22px; height: 22px; }
.pv-empty-msg strong { color: var(--navy); font-size: .98rem; }
.pv-empty-msg p { margin: 0; font-size: .86rem; max-width: 28em; }
.pv-nomatch { padding: 40px 20px; text-align: center; font-size: .88rem; color: var(--slate-light); }
.sample-note { display: flex; align-items: center; gap: 8px; margin: 14px 16px 4px; padding: 9px 12px; border-radius: 9px; background: var(--amber-tint); color: var(--amber-dark); font-size: .78rem; font-weight: 550; }
.sample-note .i { width: 15px; height: 15px; }
.dd { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: .76rem; padding: 2px 4px 2px 7px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line); color: var(--navy); }
.dd .i { width: 12px; height: 12px; color: var(--slate-faint); }
.auto { color: var(--slate-light); font-style: italic; }
.num { font-family: var(--mono); font-size: .76rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { font-weight: 700; border-top: 1px solid var(--navy); border-bottom: 0; background: var(--bg-soft); }
.okpill { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; color: var(--emerald-dark); background: var(--emerald-tint); padding: 3px 9px; border-radius: 999px; font-family: var(--font); }
.okpill .i { width: 12px; height: 12px; stroke-width: 2.8; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); margin: 6px 0; font-size: .84rem; }
.kv dt, .kv dd { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
.kv dt { font-weight: 600; color: var(--navy); }
.kv dd { color: var(--slate); }
.tb-summary { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); background: #fff; }
.tb-summary span { font-size: .76rem; font-weight: 600; color: var(--slate); background: var(--bg-soft); padding: 4px 10px; border-radius: 999px; }

.pv-ready { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); background: linear-gradient(90deg, var(--emerald-tint), #fff); font-size: .82rem; font-weight: 600; color: #07624a; animation: fadeUp .4s var(--ease); }
.pv-ready .i { width: 16px; height: 16px; }
.pv-ready .file { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Generation overlay */
.gen { position: absolute; inset: 44px 0 0 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 26px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); animation: fadeIn .3s var(--ease); overflow: auto; }
@keyframes fadeIn { from { opacity: 0; } }
.gen-card { width: 100%; max-width: 400px; }
.gen h3 { font-size: 1.2rem; margin-bottom: 4px; }
.gen-steps { list-style: none; padding: 0; margin: 22px 0 18px; display: grid; gap: 4px; }
.gen-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 10px; border-radius: 10px; font-size: .9rem; color: var(--slate-faint); transition: color .3s, background .3s; }
.gen-steps li small { display: block; font-size: .78rem; color: var(--slate-light); margin-top: 1px; }
.gen-steps .st { position: relative; flex: none; width: 22px; height: 22px; margin-top: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; transition: background .3s, box-shadow .3s; }
.gen-steps .st .i { width: 13px; height: 13px; stroke: #fff; stroke-width: 3; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--spring); }
.gen-steps li.is-active { color: var(--navy); background: var(--bg-soft); font-weight: 600; }
.gen-steps li.is-active .st { box-shadow: none; }
.gen-steps li.is-active .st::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent-ring); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.gen-steps li.is-done { color: var(--navy); }
.gen-steps li.is-done .st { background: var(--emerald); box-shadow: none; }
.gen-steps li.is-done .st .i { opacity: 1; transform: none; }
.gen-steps .elapsed { margin-left: auto; font-family: var(--mono); font-size: .76rem; color: var(--slate-light); font-weight: 500; }
.progress { height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--cyan), var(--emerald)); background-size: 200% 100%; animation: flow 2.5s linear infinite; transition: width .6s var(--ease); }
@keyframes flow { to { background-position: -200% 0; } }
.gen-foot { margin: 12px 0 0; font-size: .8rem; color: var(--slate-light); text-align: center; }
.gen-result { text-align: center; }
.done-mark { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-tint); box-shadow: 0 0 0 10px rgba(18, 201, 155, .08); animation: popIn2 .5s var(--spring); }
.done-mark svg { width: 34px; height: 34px; fill: none; stroke: var(--emerald-dark); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done-mark path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .5s .2s var(--ease) forwards; }
.done-mark.warn { background: var(--amber-tint); box-shadow: 0 0 0 10px rgba(255, 203, 87, .14); }
.done-mark.warn svg { stroke: var(--amber-dark); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes popIn2 { from { transform: scale(.5); opacity: 0; } }
.gen-result > p { margin: 0 auto; font-size: .92rem; max-width: 30em; }
.file-card { display: flex; align-items: center; gap: 14px; text-align: left; margin: 22px 0 16px; padding: 12px 12px 12px 14px; border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm), var(--ring); }
.file-card div { flex: 1; min-width: 0; }
.file-card strong { display: block; font-size: .88rem; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card div span { font-size: .78rem; color: var(--slate-light); }
.icon-btn { flex: none; width: 38px; height: 38px; border: 0; border-radius: 10px; display: grid; place-items: center; cursor: pointer; background: var(--accent-tint); color: var(--accent); transition: background .15s, color .15s, transform .15s; }
.icon-btn:hover { background: var(--accent); color: #fff; }
.icon-btn:active { transform: scale(.95); }
.gen-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.advice { text-align: left; margin-top: 22px; padding: 16px 18px; border-radius: 13px; background: linear-gradient(180deg, var(--accent-tint), #fff); box-shadow: inset 0 0 0 1px rgba(99, 91, 255, .14); }
.advice h4 { display: flex; align-items: center; gap: 8px; font-size: .86rem; margin: 0 0 10px; color: var(--accent-dark); }
.advice h4 .i { width: 16px; height: 16px; }
.advice ul { margin: 0; padding-left: 18px; font-size: .84rem; line-height: 1.55; }
.advice li { margin-bottom: 7px; }
.advice li::marker { color: var(--accent); }

/* Mobile action bar */
.mobile-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px; background: rgba(10, 37, 64, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .4s var(--ease); }
.mobile-bar.show { transform: none; }
.mobile-bar div { flex: 1; min-width: 0; line-height: 1.25; }
.mobile-bar strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.mobile-bar small { display: block; font-size: .74rem; color: #adbdcc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1000px) { .mobile-bar { display: flex; } }

/* Toast */
.toasts { position: fixed; z-index: 80; right: 20px; bottom: 20px; display: grid; gap: 10px; max-width: min(380px, calc(100% - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px 13px 16px; border-radius: 13px; background: var(--navy); color: #fff; font-size: .88rem; line-height: 1.45; box-shadow: var(--shadow-lg); animation: toastIn .4s var(--spring); }
.toast .i { width: 18px; height: 18px; margin-top: 1px; color: #ff9db0; }
.toast.ok .i { color: #7ef0cf; }
.toast button { margin-left: auto; border: 0; background: none; color: #adbdcc; cursor: pointer; padding: 0 0 0 6px; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
@media (max-width: 1000px) { .toasts { bottom: 90px; left: 20px; right: 20px; max-width: none; } }

/* ---------- FAQ, prose, signup, footer ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 600; font-size: 1.05rem; color: var(--navy); cursor: pointer; list-style: none; transition: color .15s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); transition: background .2s, transform .3s var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; border-radius: 2px; background: var(--accent); transition: transform .3s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm { background: var(--accent-tint); transform: rotate(180deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq .ans { overflow: hidden; }
.faq .ans p { margin: 0 0 22px; max-width: 62ch; }
.prose { padding: 150px 0 90px; }
.prose h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.prose h2 { margin-top: 1.8em; font-size: 1.4rem; letter-spacing: -.015em; }
.prose .todo { background: var(--amber-tint); color: var(--amber-dark); padding: 1px 7px; border-radius: 5px; font-weight: 550; }
.cta-card { border-radius: 22px; padding: 60px; background: var(--navy); color: #adbdcc; position: relative; overflow: hidden; isolation: isolate; box-shadow: var(--shadow-lg); }
.cta-card::before { content: ""; position: absolute; inset: -40% -10% -40% 35%; background: radial-gradient(45% 55% at 40% 50%, rgba(99, 91, 255, .7), transparent 70%), radial-gradient(40% 50% at 80% 30%, rgba(0, 212, 255, .45), transparent 70%), radial-gradient(40% 50% at 75% 85%, rgba(18, 201, 155, .45), transparent 70%); filter: blur(34px); z-index: -1; animation: drift2 14s ease-in-out infinite alternate; }
@keyframes drift2 { to { transform: translate3d(-6%, 4%, 0) scale(1.1); } }
.cta-card h2 { color: #fff; }
.cta-card p { max-width: 34em; }
.cta-card a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .cta-card { padding: 36px 24px; } }
.signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 540px; margin-top: 26px; }
.signup input[type="email"] { flex: 1 1 240px; border: 0; border-radius: 999px; padding: 12px 20px; font-size: .96rem; color: var(--navy); }
.signup input[type="email"]:focus { outline: 0; box-shadow: 0 0 0 4px rgba(0, 212, 255, .35); }
.signup .consent { flex-basis: 100%; color: #adbdcc; margin-top: 6px; background: rgba(255, 255, 255, .06); }
.signup .consent:hover { background: rgba(255, 255, 255, .1); }
.signup .checkmark { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
#signup-msg { margin-top: 14px; font-weight: 550; }
.site-footer { background: var(--bg-soft); padding: 60px 0 46px; font-size: .9rem; color: var(--slate-light); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: flex-start; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 28px 64px; }
.site-footer h4 { font-size: .8rem; font-weight: 650; color: var(--navy); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--slate); }
.site-footer a:hover { color: var(--accent); }

.spinner { width: 17px; height: 17px; border: 2.5px solid rgba(10, 143, 108, .25); border-top-color: var(--emerald-dark); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
