/* Public pages (home, pricing, docs, terms, privacy) and the left panel of the auth pages.
   Hand-written on purpose: app.css is a prebuilt Tailwind bundle that only carries the classes
   the auth forms use.
   Direction: restrained. Neutral greys, generous space, one accent used sparingly (logo, prices). */
:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ededef;
  --text-2: #b4b4b8;
  --muted: #7d7d83;
  --accent: #f5a524;
  /* motion: one long, decelerating curve for reveals; a short one for hover/press feedback */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: .18s;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.site {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.site a { color: inherit; }
.site img, .site video { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.nw { white-space: nowrap; }
.logo { display: block; border-radius: 6px; }
.i, .i-check { flex: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 12, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid transparent; transition: transform .45s var(--ease-out), border-color .3s var(--ease), background-color .3s var(--ease); }
.nav.nav-scrolled { border-bottom-color: var(--line); background: rgba(11, 11, 12, .82); }
.nav.nav-hidden { transform: translateY(-100%); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: .08em; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 36px; height: 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 16px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease-out), opacity .2s var(--ease); }
.menu[open] summary span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.menu[open] .menu-panel { animation: menu-in .22s var(--ease-out); transform-origin: top right; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.menu-panel { position: absolute; right: 0; top: 44px; min-width: 180px; padding: 6px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; }
.menu-panel a { padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; color: var(--text-2); }
.menu-panel a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; border: 1px solid var(--line-2); color: var(--text); background: transparent; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn:hover { border-color: rgba(255, 255, 255, .3); }
.btn-primary { background: var(--text); color: #0b0b0c !important; border-color: var(--text); }
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn-ghost { border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); border-color: transparent; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-sm { padding: 7px 15px; font-size: 13px; }
.link { position: relative; display: inline-block; margin-top: 28px; font-size: 15px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero ---------- */
.hero { padding: 120px 0 0; text-align: center; }
.eyebrow { margin: 0; font-size: 13px; color: var(--muted); letter-spacing: .12em; }
.hero h1 { margin: 22px auto 0; font-size: clamp(32px, 5.6vw, 64px); line-height: 1.12; letter-spacing: -.03em; font-weight: 600; }
.hero .lead { margin: 26px auto 0; max-width: 560px; font-size: clamp(15px, 1.8vw, 18px); color: var(--muted); }
.hero .lead b { color: var(--text); font-weight: 500; }
.hero .cta { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.showcase { margin: 88px auto 0; max-width: 560px; }
.showcase video { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.showcase figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 140px 0 0; }
.section h2 { margin: 0; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
.section .sub { margin: 14px 0 0; color: var(--muted); max-width: 560px; font-size: 16px; }
.note { margin-top: 16px; font-size: 13px; color: var(--muted); }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 12px; margin-top: 56px; }
.bento figure { margin: 0; overflow: hidden; border-radius: 16px; background: var(--bg-2); }
.bento .b-big { grid-column: span 2; grid-row: span 2; }
.bento .b-tall { grid-row: span 2; }
.bento .b-wide { grid-column: span 2; }
.bento img { width: 100%; height: 100%; object-fit: cover; display: block; }

.split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 56px; border-top: 1px solid var(--line); }
.pane { padding: 40px 48px 8px 0; }
.pane + .pane { padding: 40px 0 8px 48px; border-left: 1px solid var(--line); }
.pane-label { margin: 0; font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.pane h3 { margin: 12px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.list { list-style: none; margin: 22px 0 0; padding: 0; }
.list li { position: relative; padding-left: 18px; margin: 10px 0; color: var(--text-2); font-size: 15px; }
.list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 1px; background: var(--muted); }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 0; border-top: 1px solid var(--line); }
.figures > div { padding: 28px 24px 0 0; }
.figures > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.figures dt { font-size: 13px; color: var(--muted); }
.figures dd em, .stat .num em { font-style: normal; }
.figures dd { margin: 8px 0 0; font-size: 34px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.figures dd span { margin-left: 6px; font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.figures > div:first-child dd { color: var(--accent); }

.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 15px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--text-2); transition: color var(--t-fast) var(--ease); }
.faq summary:hover, .faq details[open] summary { color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 300; font-size: 20px; line-height: 1; transition: transform .4s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.faq a, .doc a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.faq code, .doc :not(pre) > code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .88em; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .06); color: var(--text); }

.closing { padding: 160px 0 140px; text-align: center; }
.closing h2 { margin: 0 0 32px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; letter-spacing: -.025em; }

/* ---------- pricing / long-form pages ---------- */
.page-head { padding: 96px 24px 0; }
.page-head::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: 48px; }
.page-head h1 { margin: 0; font-size: clamp(36px, 6.4vw, 84px); line-height: 1.05; letter-spacing: -.045em; font-weight: 600; }
.page-head p { margin: 14px 0 0; color: var(--muted); font-size: 16px; max-width: 600px; }
.page-hero .hero-bg { display: none; }
.grid { display: grid; gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card.stat { padding: 28px 24px 0 0; }
.card.stat + .card.stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat .num { font-size: 34px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .num small { margin-left: 6px; font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.stat .label { margin-top: 6px; font-size: 13px; color: var(--muted); }
.stat-hl .num { color: var(--accent); }
.price-group { margin-top: 72px; }
.price-group h3 { margin: 0 0 16px; font-size: 18px; font-weight: 600; }
.table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 16px 16px 16px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 400; font-size: 13px; border-top: 1px solid var(--line); }
.table th:nth-child(1) { width: 44%; }
.table th:nth-child(2) { width: 24%; }
.table tbody tr { transition: background-color var(--t-fast) var(--ease); }
@media (hover: hover) { .table tbody tr:hover { background: rgba(255, 255, 255, .025); } }
.table td.price { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.table code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; color: var(--text); }
.table .note { color: var(--muted); font-size: 13px; margin: 0; }
.callout { margin-top: 56px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.callout b { color: var(--text-2); font-weight: 500; }
main .band { padding: 120px 0; text-align: center; }
main .band h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
main .band p { margin: 12px 0 28px; color: var(--muted); }
.doc { padding-bottom: 120px; }
.doc h2 { margin: 64px 0 14px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.doc h3 { margin: 32px 0 10px; font-size: 17px; font-weight: 600; }
.doc p, .doc li { color: var(--text-2); font-size: 15px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc b { color: var(--text); font-weight: 500; }
.doc pre { margin: 16px 0; padding: 20px; overflow-x: auto; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; line-height: 1.7; color: #d6d6da; }
.doc .meta { color: var(--muted); font-size: 13px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand { color: var(--text); }
.footer-brand p { margin: 12px 0 0; font-size: 13px; }
.footer h4 { margin: 2px 0 14px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.footer-grid > div:not(.footer-brand) a { display: block; margin: 9px 0; text-decoration: none; font-size: 14px; }
.footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; }

/* ---------- auth pages (login / register / password) ---------- */
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { position: relative; overflow: hidden; background: #111; }
.auth-aside-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.auth-aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%, transparent 55%, rgba(0, 0, 0, .65)); }
.auth-aside-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 44px; color: #f4f4f5; font-family: Inter, ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif; }
.auth-aside-inner .brand { color: #f4f4f5; }
.auth-aside-title { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.auth-aside-foot { margin: 10px 0 0; font-size: 12px; color: rgba(255, 255, 255, .6); }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; }
.auth-mobile-brand { display: none; margin-bottom: 32px; color: #f4f4f5; }
/* Quiet the Tailwind form card from app.css: no card chrome, a neutral primary button. */
.auth-main .rounded-2xl { background: transparent; border-color: transparent; box-shadow: none; }
.auth-main .bg-accent { background-color: #ededef; border-radius: 999px; }
.auth-main .bg-accent:hover { background-color: #fff; filter: none; }
.auth-main a.rounded-lg, .auth-main input { border-radius: 10px; }
.auth-main a.rounded-lg.border { border-radius: 999px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .pane, .pane + .pane { padding: 36px 0 0; border-left: 0; }
  .pane + .pane { margin-top: 36px; border-top: 1px solid var(--line); }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .figures > div:nth-child(n+3) { margin-top: 28px; border-top: 1px solid var(--line); }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-brand { display: inline-flex; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  .menu { display: block; }
  .nav-actions .btn-ghost { display: none; }
  .hero { padding-top: 72px; }
  .showcase { margin-top: 56px; }
  .showcase video { border-radius: 14px; }
  .section { padding-top: 96px; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; margin-top: 40px; }
  .bento figure { border-radius: 12px; }
  .figures dd, .stat .num { font-size: 28px; }
  .grid-3 { grid-template-columns: 1fr; }
  .card.stat, .card.stat + .card.stat { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .table th, .table td { padding: 14px 10px 14px 0; }
  .table .hide-sm { display: none; }
  .table th:nth-child(1) { width: 60%; }
  .table th:nth-child(2) { width: 40%; }
  .table code { word-break: break-all; }
  .closing { padding: 112px 0 96px; }
  .page-head { padding: 64px 20px 0; }
}

/* ---------- editorial home (2026-10-19) ----------
   Patterns borrowed from product sites designers often cite (Apple product pages, Linear, Vercel):
   oversized type on a strict left edge, numbered section heads in mono, a spec sheet beside the
   media, a quiet marquee of work, a sticky title beside scrolling steps, a large footer wordmark. */
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.ed-hero { padding: 96px 0 0; }
.meta-row { position: relative; display: flex; flex-wrap: wrap; gap: 8px 0; border-top: 1px solid var(--line); padding-top: 14px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.meta-row span { flex: 1 1 0; min-width: 140px; }
.display { margin: 56px 0 0; font-size: clamp(28px, 6.2vw, 92px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; }
.display .dim { color: var(--muted); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-top: 48px; }
.hero-foot .lead { margin: 0; max-width: 480px; color: var(--text-2); font-size: 17px; }
.hero-foot .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stage { display: grid; grid-template-columns: 7fr 5fr; gap: 0; margin-top: 88px; border-top: 1px solid var(--line); }
.stage-media { margin: 0; padding: 32px 32px 0 0; }
.stage-media { overflow: hidden; }
.stage-media video { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; background: var(--bg-2); }
.spec { margin: 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.spec > div { padding: 22px 0 22px 32px; border-bottom: 1px solid var(--line); }
.spec dt { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.spec dd { margin: 6px 0 0; font-size: 18px; color: var(--text); letter-spacing: -.01em; }
.spec > div:last-child dd { font-size: 14px; color: var(--muted); }

.ed-section { padding: 160px 0 0; }
.sec-head { position: relative; display: flex; gap: 18px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 40px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.sec-head .idx { color: var(--text); }
.h-xl { margin: 0; font-size: clamp(28px, 4.6vw, 60px); line-height: 1.14; letter-spacing: -.028em; font-weight: 600; text-wrap: balance; }
.ed-section .sub { margin: 18px 0 0; color: var(--muted); max-width: 640px; font-size: 17px; }
.ed-section .split, .ed-section .figures { margin-top: 64px; }

.marquee { margin-top: 64px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 380px; width: auto; display: block; border-radius: 6px; background: var(--bg-2); transition: opacity .5s var(--ease); }
/* hovering the strip pauses it and quietly spotlights the image under the pointer */
@media (hover: hover) {
  .marquee:hover img { opacity: .42; }
  .marquee:hover img:hover { opacity: 1; }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }

.sticky-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.sticky-col { position: sticky; top: 108px; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.step-no { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; color: var(--muted); padding-top: 6px; }
.steps h3 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.steps p { margin: 10px 0 0; color: var(--muted); font-size: 16px; max-width: 460px; }

.ed-closing { padding: 200px 0 160px; }
.display-sm { margin: 0 0 40px; font-size: clamp(34px, 6vw, 84px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }

.wordmark { margin-top: 64px; font-size: clamp(72px, 21.5vw, 290px); line-height: .78; font-weight: 700; letter-spacing: -.065em; color: rgba(255, 255, 255, .045); user-select: none; white-space: nowrap; overflow: hidden; }


@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; }
  .stage-media { padding: 24px 0 0; }
  .spec { border-left: 0; margin-top: 24px; border-top: 1px solid var(--line); }
  .spec > div { padding: 18px 0; }
  .sticky-grid { grid-template-columns: 1fr; gap: 40px; }
  .sticky-col { position: static; }
}
@media (max-width: 640px) {
  .ed-hero { padding-top: 48px; }
  .display { margin-top: 40px; }
  .meta-row span { flex: 0 0 auto; min-width: 0; margin-right: 16px; }
  .ed-section { padding-top: 112px; }
  .marquee img { height: 220px; }
  .steps li { grid-template-columns: 48px 1fr; padding: 32px 0; }
  .steps h3 { font-size: 20px; }
  .ed-closing { padding: 128px 0 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .marquee .dup { display: none; }
}

/* ---------- motion & micro-interaction layer (2026-10-28) ----------
   Still restrained: no glows or colour washes. Motion only carries hierarchy — type rises line
   by line, hairlines draw themselves, media opens from a slight inset, numbers settle. Every
   hidden state sits under .reveal-on, which site.js adds only when it can undo it, and only for
   visitors who have not asked for reduced motion. */
.site ::selection { background: rgba(245, 165, 36, .28); color: #fff; }
.site :focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.site .link:focus-visible { outline: none; }

/* reading progress: a hairline under the nav, scroll-driven where the browser supports it */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: rgba(237, 237, 239, .55); transform-origin: left; transform: scaleX(0); animation: progress linear both; animation-timeline: scroll(root); }
    @keyframes progress { to { transform: scaleX(1); } }
  }
}

/* generic reveal: fade + rise, staggered by --d (set by site.js for items entering together) */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }

/* headlines: each line slides up out of its own mask */
.reveal-on .display[data-reveal], .reveal-on .display-sm[data-reveal] { opacity: 1; transform: none; }
.reveal-on [data-reveal] .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
.reveal-on [data-reveal] .line:nth-child(2) > span { transition-delay: .12s; }
.reveal-on [data-reveal].in .line > span { transform: none; }

/* section heads and the hero meta row: the top hairline draws from the left */
.reveal-on .sec-head[data-reveal], .reveal-on .meta-row[data-reveal] { border-top-color: transparent; }
.reveal-on .sec-head[data-reveal]::before, .reveal-on .meta-row[data-reveal]::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line-2); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out); }
.reveal-on .sec-head[data-reveal].in::before, .reveal-on .meta-row[data-reveal].in::before { transform: scaleX(1); }

/* hero media opens from a slight inset; the spec sheet follows row by row */
.reveal-on .stage[data-reveal] { transform: none; }
.reveal-on .stage[data-reveal] .stage-media video { clip-path: inset(6% 6% 6% 6% round 6px); transform: scale(1.06); transition: clip-path 1.6s var(--ease-out), transform 1.8s var(--ease-out); }
.reveal-on .stage[data-reveal].in .stage-media video { clip-path: inset(0 0 0 0 round 6px); transform: none; }
.reveal-on .stage[data-reveal] .spec > div { opacity: 0; transform: translateX(-8px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
.reveal-on .stage[data-reveal].in .spec > div { opacity: 1; transform: none; }
.reveal-on .stage[data-reveal].in .spec > div:nth-child(1) { transition-delay: .35s; }
.reveal-on .stage[data-reveal].in .spec > div:nth-child(2) { transition-delay: .45s; }
.reveal-on .stage[data-reveal].in .spec > div:nth-child(3) { transition-delay: .55s; }
.reveal-on .stage[data-reveal].in .spec > div:nth-child(4) { transition-delay: .65s; }

/* price figures: columns settle one after another */
.reveal-on .figures[data-reveal] > div, .reveal-on .grid-3[data-reveal] > div { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
.reveal-on .figures[data-reveal].in > div, .reveal-on .grid-3[data-reveal].in > div { opacity: 1; transform: none; }
.reveal-on .figures[data-reveal] > div:nth-child(2), .reveal-on .grid-3[data-reveal] > div:nth-child(2) { transition-delay: .08s; }
.reveal-on .figures[data-reveal] > div:nth-child(3), .reveal-on .grid-3[data-reveal] > div:nth-child(3) { transition-delay: .16s; }
.reveal-on .figures[data-reveal] > div:nth-child(4) { transition-delay: .24s; }

/* how-it-works: the step at the middle of the viewport is lit, its rule draws underneath */
.steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.steps li > * { transition: opacity .5s var(--ease); }
.steps-live:has(.is-active) li:not(.is-active) > * { opacity: .32; }
.steps-live li.is-active::after { transform: scaleX(1); }
.steps-live li.is-active .step-no { color: var(--text); }

/* footer wordmark rises out of the page edge */
.reveal-on .wordmark[data-reveal] { opacity: 1; transform: translateY(28%); transition: transform 1.8s var(--ease-out); }
.reveal-on .wordmark[data-reveal].in { transform: none; }

/* FAQ answers ease open where the browser can animate to auto height */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: hidden; opacity: 0; transition: height .45s var(--ease-out), opacity .35s var(--ease), content-visibility .45s allow-discrete; }
  .faq details[open]::details-content { height: auto; opacity: 1; }
}

/* pricing / docs / terms / privacy: the page title rises out of its mask under a drawn rule */
.reveal-on .page-head[data-reveal] { opacity: 1; transform: none; }
.reveal-on .page-head[data-reveal]::before { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out); }
.reveal-on .page-head[data-reveal].in::before { transform: none; }
.reveal-on .page-head[data-reveal] p { opacity: 0; transform: translateY(10px); transition: opacity .9s var(--ease-out) .25s, transform 1s var(--ease-out) .25s; }
.reveal-on .page-head[data-reveal].in p { opacity: 1; transform: none; }

/* code samples: a quiet copy button, always visible on touch screens */
.doc pre { position: relative; }
.copy-btn { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); font: 500 12px/1.4 Inter, ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif; cursor: pointer; opacity: 0; transition: opacity var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.doc pre:hover .copy-btn, .copy-btn:focus-visible, .copy-btn.is-copied { opacity: 1; }
.copy-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.copy-btn:active { transform: scale(.95); }
.copy-btn.is-copied { color: var(--text); }
@media (hover: none) { .copy-btn { opacity: 1; } }
.table code.copyable { cursor: copy; border-radius: 4px; transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.table code.copyable:hover { background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); }
.table code.is-copied { background: rgba(245, 165, 36, .16); box-shadow: 0 0 0 4px rgba(245, 165, 36, .16); }

/* long pages: the h2 index sits in the left margin on wide screens only */
.toc { display: none; }
@media (min-width: 1280px) {
  .toc { display: flex; flex-direction: column; position: fixed; top: 140px; left: calc(50% - 410px - 220px); width: 176px; padding-left: 14px; border-left: 1px solid var(--line); font-size: 13px; }
  .toc a { position: relative; padding: 5px 0; color: var(--muted); text-decoration: none; line-height: 1.5; transition: color var(--t-fast) var(--ease); }
  .toc a:hover, .toc a.on { color: var(--text); }
  .toc a::before { content: ""; position: absolute; left: -15px; top: 6px; bottom: 6px; width: 1px; background: var(--text); transform: scaleY(0); transition: transform .4s var(--ease-out); }
  .toc a.on::before { transform: none; }
  .doc h2 { scroll-margin-top: 96px; }
}

/* auth pages: calm focus, neutral hovers instead of orange, a slow settle on load */
.auth-main input:focus { border-color: rgba(255, 255, 255, .36); box-shadow: 0 0 0 3px rgba(255, 255, 255, .06); }
.auth-main a.rounded-lg.border:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
.auth-main p a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }
.auth-main .bg-accent { transition: background-color .18s, transform .18s; }
.auth-main .bg-accent:active { transform: scale(.98); }
@media (prefers-reduced-motion: no-preference) {
  .auth-aside-img { animation: aside-in 2.4s var(--ease-out) both; }
  .auth-aside-title { animation: rise-in 1s var(--ease-out) .35s both; }
  .auth-main > * { animation: rise-in .9s var(--ease-out) .1s both; }
  @keyframes aside-in { from { opacity: 0; transform: scale(1.08); } }
  @keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
}

@media (prefers-reduced-motion: reduce) {
  .nav, .btn, .link::after, .steps li::after { transition: none; }
  .nav.nav-hidden { transform: none; }
  .btn:active { transform: none; }
}
