/* ViewNext site: the warm darkroom palette shared with the studio (studio/style.css). Amber marks the
   main action and the camera path, blue the keyframes. One display face (Archivo Expanded, uppercase) for headings, one
   pill family for every button and field. */
@font-face { font-family: "Archivo Expanded"; font-weight: 800; font-display: swap;
  src: url(/static/fonts/archivo-expanded-800.woff2) format("woff2"); }
:root {
  --ground: #121110;
  --surface: #1b1917;
  --surface-2: #24211e;
  --well: #0c0b0a;
  --line: #2c2825;
  --line-2: #3a3530;
  --text: #ece6dc;
  --text-2: #d6cfc3;
  --muted: #a39a8d;
  --dim: #857d72;
  --amber: #f2b441;
  --amber-hover: #ffc65c;
  --amber-ink: #1a1305;
  --blue: #8db8ff;
  --red: #ff7a66;
  --green: #9fd38a;
  --sans: Inter, "Segoe UI Variable Text", "Segoe UI", "SF Pro Text", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --display: "Archivo Expanded", var(--sans);
  --r-card: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ground); scroll-padding-top: 80px; }
body { margin: 0; color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--amber-hover); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 3px; }
img, video, svg { display: block; max-width: 100%; }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.display { font: 800 clamp(34px, 4.2vw, 58px)/.98 var(--display); text-transform: uppercase; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.eyebrow { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; }

/* ---------------------------------------------------------------- header */
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(18, 17, 16, .72); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(58, 53, 48, .6); }
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.wordmark { font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.wordmark::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.wordmark:hover { color: var(--text); }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; padding: 0; place-items: center; }
.menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* the header's backdrop-filter makes it the containing block of this fixed sheet, so size it explicitly */
.nav-sheet { position: fixed; top: 64px; left: 0; right: 0; height: calc(100dvh - 64px); overflow-y: auto; z-index: 19; background: var(--ground);
  padding: 16px 24px 32px; display: flex; flex-direction: column; }
.nav-sheet .pill { flex: none; }
.nav-sheet a:not(.pill) { color: var(--text); text-decoration: none; font: 700 26px/1 var(--sans); padding: 15px 0; border-bottom: 1px solid var(--line); }
.nav-sheet .pill { margin-top: 24px; }
body.sheet-open { overflow: hidden; }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 48px 0 56px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin: 12px 0 0; max-width: 36ch; }
.foot-brand .small { font-size: 13px; color: var(--dim); }
.site-foot h4 { margin: 0 0 12px; font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.site-foot nav { display: flex; flex-direction: column; gap: 9px; }
.site-foot nav a { color: var(--muted); text-decoration: none; }
.site-foot nav a:hover { color: var(--text); }

/* ---------------------------------------------------------------- buttons: one pill family everywhere (.btn is an alias) */
.pill, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent; font: 600 16px/1 var(--sans); color: var(--text); background: transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.pill:active, .btn:active { transform: scale(.985); }
.pill:disabled, .btn:disabled { opacity: .55; cursor: progress; }
.pill svg { width: 20px; height: 20px; flex: none; }
.pill.primary, .btn.primary { background: var(--amber); color: var(--amber-ink); }
.pill.primary:hover, .btn.primary:hover { background: var(--amber-hover); color: var(--amber-ink); }
.pill.soft { background: var(--surface-2); color: var(--text); }
.pill.soft:hover { background: #2f2b27; }
.pill.ghost, .btn:not(.primary) { background: transparent; border-color: var(--line-2); color: var(--text); }
.pill.ghost:hover, .btn:not(.primary):hover { border-color: var(--muted); color: var(--text); }
.pill.glass { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); }
.pill.glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.pill.small { height: 36px; padding: 0 16px; font-size: 14px; }

/* ---------------------------------------------------------------- hero: one photo, filmed along a path */
.hero { padding: 20px 20px 0; }
.hero-frame { position: relative; height: min(78vh, 760px); min-height: 520px; border-radius: 24px; overflow: hidden; background: #000; }
.hero-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .35) 45%, transparent 70%),
  linear-gradient(transparent 55%, rgba(0, 0, 0, .6)); }
.hero-copy { position: absolute; left: clamp(24px, 5vw, 64px); bottom: clamp(28px, 6vh, 64px); max-width: 620px; color: #fff; }
.hero-copy .display { font-size: clamp(40px, 5vw, 76px); color: #fff; }
.hero-copy .display span { color: rgba(255, 255, 255, .62); }
.hero-copy .lede { font-size: 19px; color: rgba(255, 255, 255, .86); max-width: 40ch; margin: 22px 0 28px; }
.hero-copy .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-copy .fine { margin: 22px 0 0; font-size: 13px; color: rgba(255, 255, 255, .6); max-width: 52ch; }
.hero-input { position: absolute; top: 20px; right: 20px; margin: 0; width: 168px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); background: #000; }
.hero-input img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-input figcaption { position: absolute; left: 8px; bottom: 8px; white-space: nowrap; font: 600 11px var(--sans); color: #fff; background: rgba(0, 0, 0, .55); padding: 3px 8px; border-radius: 999px; }
.hero-instruments { position: absolute; right: 20px; bottom: 20px; width: 300px; display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px;
  border-radius: 14px; background: rgba(18, 17, 16, .6); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .12); }
.hero-dots { position: absolute; right: 20px; bottom: 156px; display: flex; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .4); cursor: pointer;
  transition: width .2s, background .2s; }
.hero-dots button[aria-current="true"] { width: 26px; border-radius: 999px; background: var(--amber); }
.map { background: rgba(0, 0, 0, .35); border-radius: 8px; aspect-ratio: 1; }
.map .grid line { stroke: rgba(255, 255, 255, .08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map .path { fill: none; stroke: var(--amber); stroke-width: 2; vector-effect: non-scaling-stroke; }
.map .travelled { fill: none; stroke: var(--amber); stroke-width: 4; vector-effect: non-scaling-stroke; opacity: .35; }
.map .photo { fill: var(--blue); }
.map .cone { fill: rgba(242, 180, 65, .22); stroke: var(--amber); stroke-width: 1; vector-effect: non-scaling-stroke; }
.readout { font: 12px/1.7 var(--sans); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .7); display: flex; flex-direction: column; justify-content: space-between; }
.readout b { color: #fff; font-weight: 600; }
.readout .scrub { appearance: none; -webkit-appearance: none; width: 100%; height: 22px; background: transparent; }
.readout .scrub::-webkit-slider-runnable-track { height: 3px; background: rgba(255, 255, 255, .2); border-radius: 2px; }
.readout .scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%; background: var(--amber); border: 2px solid #111; }
.readout .scrub::-moz-range-track { height: 3px; background: rgba(255, 255, 255, .2); }
.readout .scrub::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--amber); border: 2px solid #111; }

/* ---------------------------------------------------------------- the studio walk-through */
.filters.flow-tabs { margin: 28px 0 0; }
.flow { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: 40px; align-items: center; margin-top: 24px; }
.flow-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 6px; }
.flow-steps li.flow-cta { counter-increment: none; cursor: default; padding: 16px 0 0; }
.flow-steps li.flow-cta::before { content: none; }
.flow-steps li { counter-increment: step; position: relative; padding: 10px 14px 10px 50px; border-radius: 12px; cursor: pointer;
  color: var(--muted); font-size: 14px; line-height: 1.45; transition: background .2s, color .2s; }
.flow-steps li::before { content: counter(step); position: absolute; left: 14px; top: 11px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font: 600 12px var(--sans); border: 1px solid rgba(255, 255, 255, .25); }
.flow-steps li b { display: block; font-size: 16px; color: var(--text); margin-bottom: 2px; }
.flow-steps li.on { background: var(--surface-2); color: var(--text-2); }
.flow-steps li.on::before { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.flow-media { margin: 0; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid rgba(255, 255, 255, .1); aspect-ratio: 16 / 9; }
.flow-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } .flow-media { order: -1; } }

/* ---------------------------------------------------------------- landing sections */
.band { padding: 112px 0; }
.band.surface { background: var(--surface); }
.band h2 { margin: 0 0 16px; max-width: 22ch; }
.intro { color: var(--text-2); max-width: 60ch; margin: 0 0 44px; font-size: 18px; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* example gallery: clips that open in the studio */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #000; color: #fff; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); color: #fff; }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-shade { position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0, 0, 0, .78)); }
.tile-cap { position: absolute; left: 16px; right: 84px; bottom: 14px; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.tile-cap b { display: block; font-size: 16px; color: #fff; margin-bottom: 2px; }
.tile-input { position: absolute; right: 12px; bottom: 12px; width: 60px; height: 45px; object-fit: cover; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .5); }
.tile-open { position: absolute; top: 12px; right: 12px; font: 600 12px var(--sans); padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px); opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.tile:hover .tile-open, .tile:focus-visible .tile-open { opacity: 1; transform: none; }

/* how it works: photo, path, video */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.how img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; border: 1px solid var(--line-2); margin-bottom: 20px; }
.how h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 20px; }
.how h3 span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--sans); background: var(--amber); color: var(--amber-ink); }
.how p { margin: 0; color: var(--muted); max-width: 34ch; }

/* pricing */
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.price-card.featured { border: 2px solid var(--amber); }
.price-card.start { background: linear-gradient(160deg, rgba(242, 180, 65, .12), var(--surface) 60%); }
.price-card h3 { margin: 0; font: 600 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price-card .price { margin: 6px 0 4px; font: 800 44px/1 var(--display); font-variant-numeric: tabular-nums; }
.price-card .price span { margin-left: 8px; font: 500 15px var(--sans); color: var(--muted); }
.price-card .muted { margin: 0; font-size: 15px; }
.price-card .example { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.price-card .pill { margin-top: auto; }
.fine-print { margin: 22px 0 0; font-size: 14px; color: var(--muted); max-width: 90ch; }

/* API */
.api { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
pre { margin: 0; padding: 22px 24px; background: var(--well); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; font: 14px/1.65 var(--mono); color: var(--text-2); }
pre .c { color: var(--muted); }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.facts li:last-child { border: 0; padding-top: 20px; }
.facts li b { display: block; color: var(--text); font-weight: 600; font-size: 16px; }

/* closing call to action and the rules note */
.cta-band { position: relative; overflow: hidden; padding: 120px 0; text-align: center; background: #000; }
.cta-band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.cta-band .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-band h2 { margin: 0; color: #fff; }
.cta-band p { margin: 0 0 8px; color: rgba(255, 255, 255, .8); }
.note-band { padding: 40px 0 0; }
.rules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.rules p { margin: 0; color: var(--muted); font-size: 14px; }
.rules b { color: var(--text-2); }

/* plain pages (terms, privacy, report, checkout results, errors) */
.doc { max-width: 72ch; padding: 48px 0 0; }
.doc h1 { font: 800 clamp(30px, 3.4vw, 44px)/1.02 var(--display); text-transform: uppercase; margin: 0 0 22px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc pre { white-space: pre-wrap; word-break: break-all; }
.doc pre.licence { word-break: normal; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.6; max-height: none; }
.doc .btn, .doc .pill { margin: 4px 8px 4px 0; }
.doc .authors { color: var(--text); font-size: 17px; line-height: 1.7; }
.doc .authors sup, .doc ol.affiliations { color: var(--muted); }
.doc ol.affiliations { font-size: 14px; padding-left: 22px; columns: 2; }
form.report { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
form.report label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
form.report input, form.report select, form.report textarea { width: 100%; font: 16px var(--sans); color: var(--text); background: var(--well);
  border: 1px solid var(--line-2); border-radius: 14px; padding: 13px 16px; transition: border-color .15s, box-shadow .15s; }
form.report input, form.report select { height: 52px; border-radius: 999px; padding: 0 20px; }
form.report textarea { resize: vertical; min-height: 120px; }
form.report :is(input, select, textarea):focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(242, 180, 65, .14); }
form.report .trap { position: absolute; left: -9999px; }
form.report button { align-self: flex-start; }

@media (max-width: 900px) {
  .api, .rules, .how, .price-cards { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .gallery { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .band { padding: 80px 0; }
  .hero { padding: 12px 12px 0; }
  .hero-frame { height: auto; min-height: 0; aspect-ratio: auto; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 58vh; }
  .hero-copy { position: relative; left: 0; bottom: 0; padding: 0 22px 26px; }
  .hero-instruments { display: none; }
  .hero-input { width: 112px; top: 12px; right: 12px; }
  .hero-dots { top: 104px; bottom: auto; right: 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links, .nav-actions .pill { display: none; }
  .menu-toggle { display: grid; }
  .wrap { width: min(1200px, 100% - 32px); }
}
@media (max-width: 520px) { .gallery { grid-template-columns: minmax(0, 1fr); } .tile { aspect-ratio: 16 / 11; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- account: sign-in split screen and dashboard */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* fields */
.fields { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.fields input:not([type=checkbox]), .fields select, .inline-form input {
  height: 52px; width: 100%; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--well); color: var(--text); font: 16px var(--sans); transition: border-color .15s, box-shadow .15s; }
.fields select { appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--well) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9184' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center / 18px; }
.fields input::placeholder, .inline-form input::placeholder { color: var(--dim); }
.fields input:focus, .fields select:focus, .inline-form input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(242, 180, 65, .14); }
.fields input.otp { text-align: center; font: 600 26px var(--mono); letter-spacing: .5em; padding-left: calc(20px + .5em); }
.fields .pill { width: 100%; margin-top: 4px; }
.field-label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); padding: 2px 6px; }
.consent input { margin: 2px 0 0; width: 17px; height: 17px; flex: none; accent-color: var(--amber); }
.aside-link { align-self: flex-end; font-size: 14px; color: var(--muted); text-decoration: none; margin: -2px 8px 0; }
.aside-link:hover { color: var(--text); }
.switch { text-align: center; color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.switch a { font-weight: 600; text-decoration: none; }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.note { font-size: 14px; text-align: center; margin: 16px 0 0; color: var(--text); }
.note.error { color: var(--red); }
.loading { position: fixed; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: 15px; }

/* signed out: media on the left, sign-in on the right */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 24px; min-height: 100vh; min-height: 100dvh; padding: 24px; }
.auth-media { position: sticky; top: 24px; height: calc(100vh - 48px); height: calc(100dvh - 48px); margin: 0; border-radius: 22px; overflow: hidden; background: #000; }
.auth-media .reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.auth-media .reel.on { opacity: 1; }
.auth-media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; pointer-events: none;
  background: linear-gradient(transparent, rgba(0, 0, 0, .62)); }
.back { position: absolute; top: 18px; left: 18px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(18, 17, 16, .55); backdrop-filter: blur(10px); color: var(--text); }
.back:hover { background: rgba(18, 17, 16, .8); color: var(--text); }
.back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reel-caption { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; margin: 0; display: flex; gap: 12px; align-items: baseline;
  font-size: 14px; line-height: 1.45; color: rgba(236, 230, 220, .78); }
.reel-caption b { display: block; color: #fff; font-weight: 600; font-size: 15px; }
.reel-caption .rec { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); flex: none; transform: translateY(-1px); }
.auth-panel { min-height: calc(100vh - 48px); min-height: calc(100dvh - 48px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 0; }
.auth-inner { width: min(440px, 100%); margin: auto 0; display: flex; flex-direction: column; }
.auth-inner .wordmark { align-self: center; margin-bottom: 28px; font-size: 17px; }
.auth-inner .display { text-align: center; }
.auth-lede { text-align: center; color: var(--muted); margin: 16px auto 32px; max-width: 42ch; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
#socialBlock .pill { width: 100%; }
.auth-fine { margin: 32px 0 0; text-align: center; font-size: 12.5px; color: var(--dim); }
.auth-fine a { color: var(--muted); font-weight: 600; text-decoration: none; }
.auth-fine a:hover { color: var(--text); }
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .auth-media { display: none; }
  .auth-panel { padding: 40px 20px 24px; min-height: 100dvh; }
}

/* signed in */
.acct-page .site-foot { margin-top: 64px; }
.dash { padding: 24px 0 0; }
.dash > .card { margin-bottom: 20px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin: 8px 0 36px; }
.dash-head .display { font-size: clamp(30px, 3.6vw, 48px); }
.dash-head .muted { margin: 12px 0 0; }
.dash-actions { display: flex; gap: 10px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 20px; margin-bottom: 20px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.card h2 { font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; max-width: none; }
.card > .muted.small { margin: 0 0 18px; }
.balance { font: 800 56px/1 "Archivo Expanded", var(--sans); letter-spacing: -.02em; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.credits .fields { margin-top: 22px; }
.inline-form { display: flex; gap: 10px; margin: 0 0 14px; }
.inline-form input { flex: 1; }
.inline-form .pill { flex: none; }
.newkey { background: rgba(242, 180, 65, .07); border: 1px solid rgba(242, 180, 65, .55); border-radius: 16px; padding: 14px 16px; margin: 0 0 14px; }
.newkey p { margin: 0 0 10px; }
.newkey-row { display: flex; gap: 10px; align-items: center; }
.newkey code { flex: 1; word-break: break-all; font: 14px var(--mono); color: var(--text); }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.list td { padding: 12px 8px; border-top: 1px solid var(--line); }
.list td:first-child { padding-left: 0; }
.list td.end { text-align: right; padding-right: 0; }
.list th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 0 8px 10px; }
.list th:first-child { padding-left: 0; }
.list .num { text-align: right; }
.list code { font: 14px var(--mono); }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); vertical-align: 1px; }
.pill.danger { border-color: rgba(255, 122, 102, .45); color: var(--red); }
.pill.danger:hover { background: rgba(255, 122, 102, .1); border-color: var(--red); color: var(--red); }
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .inline-form { flex-direction: column; }
  .inline-form input { flex: none; min-height: 52px; }
  .key-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .key-row td { border-top: 0; padding: 4px 0; }
  .key-row td:first-child { border-top: 1px solid var(--line); padding-top: 12px; grid-column: 1 / -1; }
  .key-row td.end { align-self: center; }
  .card { padding: 22px 18px; }
  .list { font-size: 14px; }
}

/* ---------------------------------------------------------------- account: packs, renders, keys (UI audit 12, 13, 21) */
fieldset.packs { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
fieldset.packs legend { margin-bottom: 8px; }
.pack { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; border-radius: 16px; border: 1px solid var(--line-2);
  background: var(--well); cursor: pointer; transition: border-color .15s, background .15s; }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack:has(input:checked) { border: 2px solid var(--amber); padding: 13px 11px; background: rgba(242, 180, 65, .07); }
.pack:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 2px; }
.pack-amount { font: 800 24px/1.1 var(--display); }
.pack-note { font-size: 12px; color: var(--muted); }
.pack-tag { position: absolute; top: -9px; right: 10px; font: 700 10px var(--sans); letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px;
  border-radius: 999px; background: var(--amber); color: var(--amber-ink); }
.center { text-align: center; }
.card h2 .count { margin-left: 8px; font: 600 12px var(--mono); color: var(--dim); letter-spacing: 0; }
.render-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.render-card { margin: 0; border-radius: 14px; overflow: hidden; background: var(--well); border: 1px solid var(--line); }
.rc-media { position: relative; aspect-ratio: 16 / 9; background: repeating-linear-gradient(135deg, #15130f 0 10px, #191714 10px 20px); }
.rc-media video, .rc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rc-badge { position: absolute; right: 8px; bottom: 8px; font: 600 11px var(--sans); padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; }
.rc-state { position: absolute; left: 8px; top: 8px; font: 600 11px var(--sans); padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: var(--text); }
.rc-state.done { color: var(--green); }
.rc-state.err { color: var(--red); }
.rc-state.gone { color: var(--dim); }
.rc-state.busy::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--amber); vertical-align: 1px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.render-card.gone .rc-media { opacity: .5; }
.render-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.rc-error { margin: 0; padding: 0 12px 12px; font-size: 12px; color: var(--red); }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line-2); background: transparent;
  color: var(--muted); cursor: pointer; padding: 0; flex: none; }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { color: var(--text); border-color: var(--muted); }
.icon-btn.danger:hover, .icon-btn.armed { color: var(--red); border-color: var(--red); background: rgba(255, 122, 102, .1); }
.list.keys code { font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.list.keys td { white-space: nowrap; }
.list.keys td:first-child { white-space: normal; }

/* auth: a one-line heading, visible field labels, legal text under the form (UI audit 22) */
.auth-inner .display { font-size: clamp(28px, 2.6vw, 38px); }
.auth .fields label.sr { position: static; width: auto; height: auto; clip-path: none; white-space: normal; font-size: 13px; color: var(--muted); margin: 6px 0 -6px 14px; }
.auth-inner .auth-fine { margin: 20px 0 0; }
@media (max-width: 900px) {
  .auth-media { display: block; position: relative; top: 0; height: 180px; margin: 12px 12px 0; }
  .auth-panel { min-height: 0; padding-top: 28px; }
  .auth-inner { margin: 0; }
  .auth-media .reel-caption, .auth-media .back { display: none; }
  fieldset.packs { grid-template-columns: minmax(0, 1fr); }
  .list.keys thead { display: none; }
}

/* ---------------------------------------------------------------- positioning: modes, several photos, tagged examples */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mode-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 16px 26px; }
.mode-media { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #000; margin-bottom: 20px; }
.mode-media video { width: 100%; height: 100%; object-fit: cover; }
.stills-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3px; height: 100%; }
.stills-grid img { width: 100%; height: 100%; object-fit: cover; }
.mode-badge { position: absolute; left: 12px; top: 12px; font: 700 12px var(--sans); padding: 4px 10px; border-radius: 999px; background: var(--amber); color: var(--amber-ink); }
.mode-card h3 { margin: 0 10px 8px; font: 800 26px var(--display); text-transform: uppercase; }
.mode-card h3 span { margin-left: 8px; font: 500 15px var(--sans); text-transform: none; color: var(--muted); }
.mode-card p { margin: 0 10px 14px; color: var(--text-2); }
.ticks { list-style: none; margin: 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 15px; }
.ticks li::before { content: "✓"; color: var(--amber); font-weight: 700; margin-right: 10px; }
.multi { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.multi-copy .ticks { margin: 0 0 28px; }
.multi-demo { margin: 0; display: grid; grid-template-columns: 120px 28px minmax(0, 1fr); gap: 12px; align-items: center; }
.multi-inputs { display: flex; flex-direction: column; gap: 8px; }
.multi-inputs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); }
.multi-arrow { font-size: 26px; color: var(--amber); text-align: center; }
.multi-output { border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 10; }
.multi-output video { width: 100%; height: 100%; object-fit: cover; }
.multi-demo figcaption { grid-column: 1 / -1; font-size: 13px; color: var(--dim); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: -20px 0 24px; }
.chip { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 600 14px var(--sans); cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--text); color: var(--ground); border-color: var(--text); }
.tile .tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.tile .tags span { font: 600 11px var(--sans); padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); color: #fff; }
.tile .tags span:last-child { background: var(--amber); color: var(--amber-ink); }
.tile-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 2px; }
.tile-grid img { width: 100%; height: 100%; object-fit: cover; }
.price-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .modes, .multi { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .multi-demo { grid-template-columns: 84px 20px minmax(0, 1fr); }
}
@media (max-width: 520px) { .price-cards { grid-template-columns: minmax(0, 1fr); } }
