/* Fivelabs: marketing site styles. No build step. */

/* ---------- Fonts (self-hosted, OFL; see assets/fonts/OFL-*.txt) ---------- */
@font-face { font-family: "Anek Condensed"; src: url("../fonts/anek-condensed-720.woff2") format("woff2"); font-weight: 720; font-style: normal; font-display: swap; }
@font-face { font-family: "Anek"; src: url("../fonts/anek-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("../fonts/mukta-regular-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("../fonts/mukta-semibold-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("../fonts/mukta-regular-deva.woff2") format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }

/* ---------- Tokens ---------- */
:root {
  --night: #17153F;
  --night-2: #221F55;
  --night-3: #2E2A6B;
  --marigold: #F5A524;
  --marigold-deep: #8F5300;
  --paper: #F7F7FB;
  --paper-2: #ECECF5;
  --white: #FFFFFF;
  --ink: #17153F;
  --slate: #4E5070;
  --line: #D9D9E7;
  --mist: #B8B6D9;
  --moon: #F1F0FA;

  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --surface: var(--white);
  --fg: var(--ink);
  --fg-2: var(--slate);
  --rule: var(--line);
  --accent-text: var(--marigold-deep);
  --mark: #E8930C;
  --focus: #17153F;
  --band: var(--night);
  --band-2: var(--night-2);
  --band-rule: var(--night-3);
  --band-fg: var(--moon);
  --band-fg-2: var(--mist);

  --display: "Anek Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --ui: "Anek", "Mukta", system-ui, sans-serif;
  --body: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 76rem;
  --radius-media: 0.875rem;
  --radius-ui: 0.625rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0C2B;
    --bg-2: #141238;
    --surface: #1A1844;
    --fg: var(--moon);
    --fg-2: var(--mist);
    --rule: #2E2A6B;
    --accent-text: var(--marigold);
    --mark: var(--marigold);
    --focus: var(--marigold);
    --band: #1B1948;
    --band-2: #221F55;
    --band-rule: #35317A;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.125rem/1.6 var(--body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; text-decoration-color: var(--marigold); }
a:hover { text-decoration-thickness: 2.5px; }
p, ul, ol, dl, figure, blockquote, h1, h2, h3, h4 { margin: 0; }
:where(ul, ol)[role="list"] { list-style: none; padding: 0; }
:lang(hi) { font-family: "Mukta", system-ui, sans-serif; }
code, pre { font-family: var(--code); font-size: 0.875rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .code :focus-visible { outline-color: var(--marigold); }
::selection { background: var(--marigold); color: var(--night); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--marigold); color: var(--night); padding: 0.6rem 1rem; border-radius: var(--radius-ui); font: 600 1rem/1 var(--ui); text-decoration: none; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.h1, .h2 { font-family: var(--display); font-weight: 720; letter-spacing: -0.005em; text-wrap: balance; }
.h1 { font-size: clamp(3rem, 1.4rem + 6.4vw, 6.9rem); line-height: 0.9; }
.h2 { font-size: clamp(2.35rem, 1.5rem + 3.4vw, 4rem); line-height: 0.95; }
.h3 { font: 600 1.375rem/1.2 var(--ui); letter-spacing: -0.005em; }
.lede { font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem); line-height: 1.5; color: var(--fg-2); max-width: 40em; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.prose p, .prose li { max-width: 66ch; }
.muted { color: var(--fg-2); }
.small { font-size: 0.9375rem; line-height: 1.55; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.25rem 0.6rem;
  border-radius: var(--radius-ui); border: 1.5px solid transparent;
  font: 600 1.0625rem/1 var(--ui); text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--marigold); color: var(--night); }
.btn-primary:hover { background: #FFB83F; }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); color: var(--moon); border-bottom: 1px solid var(--night-3); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; color: var(--moon); text-decoration: none; flex: none; }
.brand svg { height: 1.6rem; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 0.55rem 0.7rem 0.45rem; border-radius: 0.5rem; font: 600 1rem/1 var(--ui); color: var(--mist); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--moon); background: var(--night-2); }
.header-cta { flex: none; }
.header-cta .btn { min-height: 2.6rem; padding-block: 0.55rem 0.45rem; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--night-3); color: var(--moon); border-radius: 0.5rem; min-height: 2.75rem; padding: 0 0.9rem; font: 600 1rem/1 var(--ui); cursor: pointer; }

@media (max-width: 1020px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0.75rem; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .header-cta { order: 2; }
  .menu-toggle { order: 3; margin-left: 0; }
  .brand { margin-right: auto; }
  .nav { order: 4; flex-basis: 100%; margin-left: 0; display: none; padding-bottom: 0.75rem; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 0.85rem 0.5rem; font-size: 1.125rem; }
}
@media (max-width: 420px) {
  .header-cta { display: none; }
}

/* ---------- Bands ---------- */
.band { background: var(--band); color: var(--band-fg); }
.band .lede, .band .muted { color: var(--band-fg-2); }
.band a { text-decoration-color: var(--marigold); }
.alt { background: var(--bg-2); }
.section { padding-block: clamp(4.5rem, 3rem + 6vw, 8.5rem); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); max-width: 52rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.75rem, 1.5rem + 4vw, 5rem) clamp(3.5rem, 2rem + 5vw, 6rem); overflow: hidden; }
.hero-copy { display: grid; gap: 1.5rem; max-width: 60rem; }
.hero .h1 { max-width: 11.5ch; }
.hero-def { font-size: clamp(1.125rem, 1rem + 0.55vw, 1.4rem); line-height: 1.5; color: var(--mist); max-width: 36em; }
.hero-def strong { color: var(--moon); font-weight: 600; }
.hero .btn-row { margin-top: 0.5rem; }

.reel-wrap { margin-top: clamp(2.75rem, 2rem + 3vw, 4.5rem); }
.reel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(0.625rem, 0.4rem + 0.9vw, 1.125rem); list-style: none; margin: 0; padding: 0; }
.shot { display: grid; gap: 0.7rem; align-content: start; }
.shot-frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius-media); overflow: hidden; background: var(--night-2); outline: 1px solid var(--night-3); outline-offset: -1px; }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; }
.shot-n { font: 600 0.875rem/1 var(--ui); color: var(--marigold); font-variant-numeric: tabular-nums; }
.shot-hi { font-size: 1rem; line-height: 1.45; color: var(--moon); }
.shot-en { font-size: 0.875rem; line-height: 1.45; color: var(--mist); }
.reel-caption { margin-top: 1.5rem; font-size: 0.9375rem; color: var(--mist); max-width: 60ch; }
.reel-caption a { color: var(--moon); }

/* The one orchestrated moment: frames render in order, top to bottom, like a GPU finishing each shot. */
@media (prefers-reduced-motion: no-preference) {
  /* An overlay is uncovered instead of hiding the image, so the frames still count as painted for LCP. */
  .reel .shot-frame::before {
    content: ""; position: absolute; inset: 0; z-index: 1; background: var(--night-2);
    transform-origin: 50% 100%; animation: uncover 0.9s cubic-bezier(.2,.7,.2,1) both;
  }
  .reel .shot-frame::after {
    content: ""; position: absolute; z-index: 2; inset: 0;
    background: linear-gradient(var(--marigold), var(--marigold)) 0 0 / 100% 2px no-repeat;
    animation: scan 0.9s cubic-bezier(.2,.7,.2,1) both;
  }
  .reel .shot:nth-child(1) .shot-frame::before, .reel .shot:nth-child(1) .shot-frame::after { animation-delay: .15s; }
  .reel .shot:nth-child(2) .shot-frame::before, .reel .shot:nth-child(2) .shot-frame::after { animation-delay: .35s; }
  .reel .shot:nth-child(3) .shot-frame::before, .reel .shot:nth-child(3) .shot-frame::after { animation-delay: .55s; }
  .reel .shot:nth-child(4) .shot-frame::before, .reel .shot:nth-child(4) .shot-frame::after { animation-delay: .75s; }
  .reel .shot:nth-child(5) .shot-frame::before, .reel .shot:nth-child(5) .shot-frame::after { animation-delay: .95s; }
}
@keyframes uncover { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes scan { 0% { transform: translateY(0); opacity: 1; } 92% { transform: translateY(calc(100% - 2px)); opacity: 1; } 100% { transform: translateY(calc(100% - 2px)); opacity: 0; } }

@media (max-width: 760px) {
  .reel-wrap { margin-inline: calc(var(--gutter) * -1); }
  .reel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 0.75rem; scrollbar-width: thin; scrollbar-color: var(--night-3) transparent; }
  .shot { flex: 0 0 58vw; max-width: 15rem; scroll-snap-align: start; }
  .reel-caption { padding-inline: var(--gutter); }
}

/* ---------- Definitions strip ---------- */
.defs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.defs dt { font: 600 1.25rem/1.2 var(--ui); margin-bottom: 0.5rem; }
.defs dd { margin: 0; color: var(--fg-2); }
@media (max-width: 860px) { .defs { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Formats ---------- */
.formats { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: start; }
.format { display: grid; gap: 1.5rem; }
.format-media-short { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.5rem; align-items: end; }
.player { border-radius: var(--radius-media); overflow: hidden; background: var(--night); aspect-ratio: 9 / 16; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.format-facts { display: grid; gap: 0.6rem; padding: 0; list-style: none; }
.format-facts li { padding-left: 1.1rem; position: relative; color: var(--fg-2); }
.format-facts li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.45rem; height: 0.45rem; background: var(--mark); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.format-facts strong { color: var(--fg); font-weight: 600; }
.long-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.long-grid .lead { grid-column: 1 / -1; }
.long-grid img { width: 100%; border-radius: calc(var(--radius-media) - 0.25rem); aspect-ratio: 16 / 9; object-fit: cover; background: var(--night); }
.long-grid .lead img { border-radius: var(--radius-media); }
.figcap { font-size: 0.9375rem; color: var(--fg-2); margin-top: 0.75rem; }
@media (max-width: 960px) { .formats { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .format-media-short { grid-template-columns: minmax(0, 1fr); } .format-media-short .player { max-width: 17rem; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); list-style: none; padding: 0; counter-reset: step; }
.step { border-top: 2px solid var(--fg); padding-top: 1.25rem; display: grid; gap: 0.6rem; align-content: start; }
.step-n { font: 720 3.25rem/0.9 var(--display); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.step p { color: var(--fg-2); }
.after-steps { margin-top: 2.5rem; color: var(--fg-2); max-width: 66ch; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Story engine (script document) ---------- */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: start; }
.story-copy { display: grid; gap: 1.5rem; position: sticky; top: 6rem; }
.arc { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; }
.arc li { font: 600 0.9375rem/1 var(--ui); padding: 0.5rem 0.7rem 0.4rem; border-radius: 0.4rem; background: var(--surface); border: 1px solid var(--rule); }
.arc li:first-child, .arc li:last-child { background: var(--night); color: var(--moon); border-color: var(--night); }
.doc { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-media); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.doc-title { font: 720 1.9rem/1 var(--display); margin-bottom: 0.4rem; }
.doc-meta { font-size: 0.9375rem; color: var(--fg-2); margin-bottom: 1.5rem; }
.beats { list-style: none; padding: 0; display: grid; }
.beat { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding-block: 0.85rem; border-top: 1px solid var(--rule); }
.beat-role { font: 600 0.9375rem/1.5 var(--ui); color: var(--accent-text); padding-top: 0.1rem; }
.beat-en { line-height: 1.5; }
.beat-hi { font-size: 0.9375rem; color: var(--fg-2); margin-top: 0.2rem; }
.notes { margin-top: 1.25rem; padding: 1.25rem; border-radius: var(--radius-ui); background: var(--bg-2); display: grid; gap: 0.85rem; }
.notes-title { font: 600 1.0625rem/1.2 var(--ui); }
.notes dl { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.5rem 1rem; font-size: 0.9375rem; }
.notes dt { font-weight: 600; }
.notes dd { margin: 0; color: var(--fg-2); }
.signoff { margin-top: 1rem; display: flex; gap: 0.6rem; align-items: center; font: 600 0.9375rem/1.3 var(--ui); }
.signoff::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--mark); flex: none; }
@media (max-width: 960px) { .story { grid-template-columns: minmax(0, 1fr); } .story-copy { position: static; } }
@media (max-width: 520px) { .beat { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; } .notes dl { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; } .notes dd { margin-bottom: 0.5rem; } }

/* ---------- Spec sheet ---------- */
.spec { display: grid; border-top: 2px solid var(--fg); }
.spec-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1rem, 0.5rem + 2vw, 3rem); padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); border-bottom: 1px solid var(--rule); }
.spec-row .h3 { padding-top: 0.15rem; }
.spec-row .h3 small { display: block; font: 400 1rem/1.4 var(--body); color: var(--fg-2); margin-top: 0.4rem; }
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 2rem; list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.1rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.45rem; height: 0.45rem; background: var(--mark); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ticks li span { color: var(--fg-2); }
.styles { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin-top: 1.25rem; }
.styles li { font-size: 0.9375rem; padding: 0.25rem 0.65rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--fg-2); }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin-top: 1.5rem; max-width: 34rem; }
.thumbs img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 0.5rem; }
@media (max-width: 820px) { .spec-row { grid-template-columns: minmax(0, 1fr); } .ticks { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Gallery ---------- */
.gallery { max-width: 60rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.6rem, 0.4rem + 0.8vw, 1rem); list-style: none; padding: 0; }
.gallery img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius-media); background: var(--night); }
.gallery figcaption { font-size: 0.9375rem; color: var(--fg-2); margin-top: 0.6rem; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Cost ---------- */
.cost { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: start; }
.chart { background: var(--band-2); border: 1px solid var(--band-rule); border-radius: var(--radius-media); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.chart-title { font: 600 1.125rem/1.3 var(--ui); color: var(--moon); }
.chart-sub { font-size: 0.9375rem; color: var(--mist); margin-top: 0.25rem; }
.bars { list-style: none; padding: 0; margin-top: 1.75rem; display: grid; gap: 1.5rem; }
.bar-label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.5rem; }
.bar-name { font: 600 1rem/1.3 var(--ui); }
.bar-value { font: 720 1.75rem/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-track { height: 1.25rem; border-radius: 4px; position: relative; }
.bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 0 4px 4px 0; }
.bar-api .bar-fill { width: 100%; background: #8C89BD; }
.bar-ours .bar-fill { width: 3.125%; min-width: 6px; background: var(--marigold); }
.bar-note { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--mist); }
.ratio { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--band-rule); display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.ratio-n { font: 720 clamp(3rem, 2rem + 3vw, 4.5rem)/0.9 var(--display); color: var(--marigold); }
.ratio-t { color: var(--mist); max-width: 26ch; }
.examples { width: 100%; border-collapse: collapse; margin-top: 1.75rem; font-size: 0.9375rem; }
.examples caption { text-align: left; font: 600 1rem/1.3 var(--ui); color: var(--moon); padding-bottom: 0.5rem; }
.examples th, .examples td { text-align: left; padding: 0.6rem 0.5rem 0.5rem 0; border-top: 1px solid var(--band-rule); vertical-align: top; }
.examples thead th { color: var(--mist); font-weight: 400; }
.examples td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.examples td.ours { color: var(--marigold); font-weight: 600; }
.cost-copy { display: grid; gap: 1.5rem; }
.method { font-size: 0.9375rem; color: var(--mist); display: grid; gap: 0.5rem; padding-left: 1.1rem; margin: 0; }
.cost-points { display: grid; gap: 1.25rem; list-style: none; padding: 0; }
.cost-points li { border-top: 1px solid var(--band-rule); padding-top: 1rem; }
.cost-points h3 { font: 600 1.125rem/1.3 var(--ui); color: var(--moon); margin-bottom: 0.3rem; }
.cost-points p { color: var(--mist); }
@media (max-width: 960px) { .cost { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .examples td { white-space: normal; } .examples { font-size: 0.875rem; } }

/* ---------- Developers ---------- */
.dev { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: start; }
.dev-list { display: grid; gap: 1.25rem; list-style: none; padding: 0; margin-top: 2rem; }
.dev-list li { display: grid; gap: 0.25rem; }
.dev-list h3 { font: 600 1.125rem/1.3 var(--ui); }
.dev-list p { color: var(--fg-2); }
.code { background: var(--night); color: var(--moon); border-radius: var(--radius-media); overflow: hidden; border: 1px solid var(--night-3); }
.code-head { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 1.1rem; border-bottom: 1px solid var(--night-3); font: 600 0.9375rem/1.3 var(--ui); color: var(--mist); }
.code pre { margin: 0; padding: 1.1rem; overflow-x: auto; line-height: 1.65; tab-size: 2; }
.code .c { color: #9C99C8; }
.code .s { color: #FFD08A; }
.code .k { color: var(--marigold); }
.code + .code { margin-top: 1rem; }
.code pre code { background: none; padding: 0; border-radius: 0; font-size: inherit; color: inherit; }
@media (max-width: 960px) { .dev { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Trust ---------- */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; border-top: 2px solid var(--fg); }
.trust li { padding: 1.5rem 1.5rem 1.75rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: 0.4rem; align-content: start; }
.trust li:not(:nth-child(3n+1)) { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.trust h3 { font: 600 1.125rem/1.3 var(--ui); }
.trust p { color: var(--fg-2); font-size: 1rem; }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; } .trust li:nth-child(2n) { padding-left: 1.5rem; border-left: 1px solid var(--rule); } }
@media (max-width: 600px) { .trust { grid-template-columns: minmax(0, 1fr); } .trust li:nth-child(2n) { padding-left: 0; border-left: 0; } .trust li { padding-right: 0; } }

/* ---------- Investors ---------- */
.inv { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: start; }
.inv-facts { display: grid; gap: 0; border-top: 2px solid var(--fg); margin: 0; }
.inv-facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.inv-facts dt { font: 600 1rem/1.5 var(--ui); }
.inv-facts dd { margin: 0; color: var(--fg-2); }
@media (max-width: 960px) { .inv { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .inv-facts div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 1.5rem + 3vw, 5rem); align-items: start; }
.faq-list { border-top: 2px solid var(--fg); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 1.15rem; font: 600 1.1875rem/1.35 var(--ui); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 0.75rem; height: 0.75rem; margin-top: 0.4rem; background: var(--mark); clip-path: polygon(0 0, 100% 50%, 0 100%); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(90deg); }
.faq-list .answer { padding-bottom: 1.4rem; color: var(--fg-2); display: grid; gap: 0.75rem; max-width: 66ch; }
@media (max-width: 960px) { .faq { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .faq-list summary::after { transition: none; } html { scroll-behavior: auto; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--band-rule); margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); list-style: none; padding: 0; }
.contact-grid li { padding: 1.75rem 1.75rem 0 0; display: grid; gap: 0.6rem; align-content: start; }
.contact-grid li + li { padding-left: 1.75rem; border-left: 1px solid var(--band-rule); }
.contact-grid h3 { font: 720 2rem/1 var(--display); color: var(--moon); }
.contact-grid p { color: var(--mist); }
.contact-grid .btn { justify-self: start; margin-top: 0.5rem; }
.email-line { margin-top: 2.5rem; color: var(--mist); }
.email-line a { color: var(--moon); font-weight: 600; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } .contact-grid li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--band-rule); margin-top: 1.75rem; } .contact-grid li { padding-right: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--mist); padding-block: 3.5rem 2.5rem; border-top: 1px solid var(--night-3); font-size: 0.9375rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; }
.footer-top .brand svg { height: 1.75rem; }
.footer-tag { margin-top: 1rem; max-width: 34ch; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.footer-nav h2 { font: 600 1rem/1.3 var(--ui); color: var(--moon); margin-bottom: 0.6rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.footer-nav a { color: var(--mist); text-decoration: none; }
.footer-nav a:hover { color: var(--moon); text-decoration: underline; }
.footer-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--night-3); display: grid; gap: 0.4rem; color: #9C99C8; }
@media (max-width: 760px) { .footer-top { grid-template-columns: minmax(0, 1fr); } .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Sub pages ---------- */
.page-hero { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.page-hero .h1 { font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem); max-width: 14ch; }
.page-hero .lede { margin-top: 1.5rem; color: var(--mist); }
.doc-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(2rem, 1rem + 3vw, 4rem); }
.toc { position: sticky; top: 6rem; align-self: start; font-size: 0.9375rem; }
.toc h2 { font: 600 1rem/1.3 var(--ui); margin-bottom: 0.6rem; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.toc a { color: var(--fg-2); text-decoration: none; }
.toc a:hover { color: var(--fg); text-decoration: underline; }
.article { display: grid; gap: clamp(3rem, 2rem + 2vw, 4.5rem); }
.article section { display: grid; gap: 1rem; }
.article .h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); }
.article ul:not([role]), .article ol:not([role]) { padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.article li { max-width: 66ch; }
.article li::marker { color: var(--mark); }
.article p { max-width: 66ch; }
.table-scroll { overflow-x: auto; border-top: 2px solid var(--fg); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td { text-align: left; padding: 0.65rem 1rem 0.6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table th { font: 600 0.9375rem/1.4 var(--ui); }
.table td code, .article code { background: var(--bg-2); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.85em; overflow-wrap: anywhere; }
.tools { columns: 2; column-gap: 2rem; list-style: none; padding: 0; font-size: 0.9375rem; }
.tools li { break-inside: avoid; padding-block: 0.25rem; }
.callout { border-left: 3px solid var(--mark); padding: 0.25rem 0 0.25rem 1.1rem; color: var(--fg-2); }
@media (max-width: 860px) { .doc-body { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } .tools { columns: 1; } }

.notfound { min-height: 70vh; display: grid; align-content: center; }
@media (prefers-color-scheme: dark) {
  .arc li:first-child, .arc li:last-child { background: var(--marigold); color: var(--night); border-color: var(--marigold); }
  .table td code, .article code { background: var(--surface); }
}
