/* Flash VDO web kit: the brand's tokens and the components flashvdo.com's pages and the dashboard share.
   Source of the values: brand/flash-vdo/tokens/tokens.json. Dark first (Storm night). What is here, and how to
   use it, is in README.md beside this file. Keep the names stable: the dashboard is built on them. */

/* ------------------------------------------------ fonts (self-hosted, SIL OFL: the OFL-*.txt files beside this) */
@font-face { font-family: "Archivo"; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("archivo-italic-vf.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; src: url("instrumentsans-vf.woff2") format("woff2"); }
@font-face { font-family: "Martian Mono"; font-style: normal; font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; src: url("martianmono-vf.woff2") format("woff2"); }
/* Devanagari only, so the file is fetched on the pages that set Nepali or Hindi and nowhere else. */
@font-face { font-family: "Anek Devanagari"; font-style: normal; font-weight: 100 800; font-stretch: 75% 125%; font-display: swap; src: url("anekdevanagari-vf.woff2") format("woff2"); 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 {
  color-scheme: dark;
  /* brand */
  --storm: #1B1452; --flash: #FFD23F; --flash-light: #FFF3B8; --cut: #FF4F3D; --magnesium: #F4F4F8;
  /* surfaces, from the edge of the night inwards */
  --night: #0A0722; --night-2: #100C33; --panel: #151046; --panel-2: #1C1657; --panel-3: #261D66;
  --line: rgba(220, 217, 240, .10); --line-2: rgba(220, 217, 240, .18); --line-flash: rgba(255, 210, 63, .45);
  /* text: all three pass AA on every surface above */
  --fg: #F4F4F8; --fg-2: #B6B0E0; --fg-3: #8F86CC;
  /* meaning */
  --ok: #3DDC97; --warn: #FFD23F; --danger: #FF4F3D; --info: #6E9BFF;
  /* the team, one colour each (broadcast colour bars) */
  --a-editor: #FFD23F; --a-assistant: #C3BFE0; --a-story: #FF7AB6; --a-colorist: #43D9FF; --a-sound: #3DDC97;
  --a-motion: #8C7BFF; --a-finishing: #FF6A4D; --a-reference: #6E9BFF; --a-critic: #FFB347; --a-animator: #D98BFF; --a-vfx: #2FE6C8;
  /* tracks on a timeline */
  --t-video: #6E9BFF; --t-audio: #3DDC97; --t-title: #FF7AB6; --t-effect: #8C7BFF;
  /* type */
  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-deva: "Anek Devanagari", "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", sans-serif;
  /* the scale: ratio 1.25 from 16 px. Pick from the ladder. */
  --s-12: .75rem; --s-14: .875rem; --s-16: 1rem; --s-20: 1.25rem; --s-25: 1.5625rem; --s-31: 1.953rem;
  --s-39: 2.441rem; --s-49: 3.052rem; --s-61: 3.815rem; --s-76: 4.768rem; --s-95: 5.96rem;
  /* spacing, a 4 px grid */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
  --gutter: clamp(16px, 4vw, 40px); --maxw: 1200px; --bar-h: 64px;
  /* radii */
  --r-s: 4px; --r-m: 8px; --r-l: 14px; --r-xl: 22px; --r-pill: 999px;
  /* motion: counted in frames at 60 fps, the way an editor counts */
  --f4: 67ms; --f8: 133ms; --f12: 200ms; --f18: 300ms; --f30: 500ms; --f48: 800ms;
  --ease-flash: cubic-bezier(.16, 1, .3, 1);   /* arrive at once, settle */
  --ease-snap: cubic-bezier(.34, 1.56, .64, 1); /* overshoot and land */
  --ease-strike: cubic-bezier(.7, 0, .84, 0);   /* accelerate into a cut */
  --ease-glide: cubic-bezier(.65, 0, .35, 1);   /* a move that has to be seen */
  --angle: 10deg; --skew: -10deg;               /* the Flash Angle: every wipe, slide and playhead leans this way */
  /* light */
  --glow: 0 0 0 1px rgba(255, 210, 63, .35), 0 10px 50px -12px rgba(255, 210, 63, .35);
  --shadow: 0 40px 120px -40px rgba(0, 0, 0, .8);
}
/* A number 0..1 that CSS can animate: the rings, the meters, anything that fills. */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }

/* ------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 24px); }
body { margin: 0; background: var(--night); color: var(--fg); font: 400 var(--s-16)/1.6 var(--f-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
a { color: var(--flash); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--flash-light); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--flash); outline-offset: 3px; border-radius: var(--r-s); }
::selection { background: var(--flash); color: var(--storm); }
[hidden] { display: none !important; }
:lang(ne), :lang(hi), .deva { font-family: var(--f-deva); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 820px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--flash); color: var(--storm); font-weight: 600; border-radius: var(--r-m); text-decoration: none; transition: top var(--f12) var(--ease-flash); }
.skip:focus { top: 12px; color: var(--storm); }

/* type */
.display { min-width: 0; overflow-wrap: break-word; font-family: var(--f-display); font-style: italic; font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -.01em; line-height: .95; text-wrap: balance; }
.display em, .hot { font-style: inherit; color: var(--flash); }
.h1 { font-size: clamp(var(--s-39), 7.4vw, var(--s-95)); }
.h2 { font-size: clamp(1.5rem, min(8vw, 2rem + 2.6vw), var(--s-61)); }   /* the longest word still fits a 320 px phone */
.h3 { font: 600 var(--s-20)/1.3 var(--f-text); }
.mono { font-family: var(--f-mono); font-stretch: 87.5%; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.deva { font-stretch: 125%; font-weight: 800; line-height: 1.25; }
.lede { color: var(--fg-2); font-size: clamp(var(--s-16), 1.6vw, var(--s-20)); line-height: 1.55; max-width: 60ch; }
.note { color: var(--fg-2); font-size: var(--s-14); }
.dim { color: var(--fg-3); }
.eyebrow { font: 500 var(--s-12)/1.4 var(--f-mono); font-stretch: 87.5%; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }

/* the slug: a skewed label that names a section, a plan, a state */
.slug { display: inline-block; padding: 4px 12px; background: var(--flash); color: var(--storm); font: 600 var(--s-12)/1.4 var(--f-text); letter-spacing: .12em; text-transform: uppercase; transform: skewX(var(--skew)); white-space: nowrap; }
.slug { justify-self: start; }
.slug > span { display: inline-block; transform: skewX(var(--angle)); }
.slug.cut { background: var(--cut); color: var(--night); }
.slug.quiet { background: var(--panel-3); color: var(--fg); }
.slug.line { background: transparent; color: var(--flash); box-shadow: inset 0 0 0 1px var(--line-flash); }
.slug:lang(ne), .slug:lang(hi) { letter-spacing: 0; text-transform: none; font-family: var(--f-deva); font-size: var(--s-14); line-height: 1.5; }

/* layout */
.section { padding-block: clamp(72px, 10vw, 136px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.sec-h { display: grid; gap: 16px; justify-items: start; max-width: 780px; margin-bottom: clamp(32px, 5vw, 60px); }
.sec-h.center { justify-items: center; text-align: center; margin-inline: auto; }
.sec-h.center .slug { justify-self: center; }
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.row.between { justify-content: space-between; }
.row.center { justify-content: center; }
.stack { display: grid; gap: var(--sp-4); align-content: start; }
.stack.tight { gap: var(--sp-2); }
.stack.loose { gap: var(--sp-6); }
.grow { flex: 1; min-width: 0; }

/* ------------------------------------------------ top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(10, 7, 34, .78); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); height: var(--bar-h); }
.brand { display: inline-flex; align-items: center; flex: none; color: var(--fg); text-decoration: none; }
.brand svg, .brand img { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: var(--r-pill); color: var(--fg-2); font-size: var(--s-14); text-decoration: none; transition: color var(--f8), background var(--f8); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: var(--panel-2); }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
/* the bar as a timeline: clips are the page's sections, the playhead follows the scroll, the timecode counts */
.tl-track { position: relative; flex: 1; min-width: 0; height: 32px; display: flex; gap: 3px; align-items: stretch; }
.tl-clip { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 10px 0 12px; border-radius: 5px; background: var(--panel-2); color: var(--fg-2); font-size: var(--s-12); text-decoration: none; white-space: nowrap; overflow: hidden; transition: background var(--f12), color var(--f12); }
.tl-clip > span { overflow: hidden; text-overflow: ellipsis; }
.tl-clip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--flash)); }
.tl-clip:hover, .tl-clip[aria-current="true"] { background: var(--panel-3); color: var(--fg); }
.tl-head { position: absolute; top: -7px; bottom: -7px; left: 0; width: 2px; background: var(--fg); transform: translateX(var(--x, 0px)) skewX(var(--skew)); pointer-events: none; box-shadow: 0 0 10px rgba(255, 243, 184, .8); will-change: transform; }
.tl-head::before { content: ""; position: absolute; left: -6px; top: -2px; width: 14px; height: 10px; background: var(--fg); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.tl-tc { flex: none; min-width: 8.4em; text-align: right; font-size: var(--s-12); color: var(--fg-2); }
/* narrow: the track is a progress strip, not a row of targets; its links keep their names for a screen reader */
@media (max-width: 860px) { .tl-track { pointer-events: none; } .tl-clip > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .tl-clip { padding: 0; } .tl-tc { display: none; } .nav.collapse { display: none; } }
@media (max-width: 520px) { .brand svg, .brand img { height: 18px; } }

/* ------------------------------------------------ buttons */
.btn { --btn-bg: var(--panel-2); --btn-fg: var(--fg); --btn-bd: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 18px; border: 1px solid var(--btn-bd); border-radius: var(--r-pill); background: var(--btn-bg); color: var(--btn-fg); font: 600 var(--s-14)/1.2 var(--f-text); text-decoration: none; white-space: nowrap; user-select: none; overflow: hidden; isolation: isolate;
  transition: background var(--f12), border-color var(--f12), color var(--f12), transform var(--f12) var(--ease-snap), box-shadow var(--f18); }
.btn:hover { --btn-bg: var(--panel-3); --btn-bd: var(--fg-3); color: var(--btn-fg); }
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; flex: none; }
/* primary: Flash yellow on Storm, with a light that sweeps across on the Flash Angle */
.btn.primary { --btn-bg: var(--flash); --btn-fg: var(--storm); --btn-bd: var(--flash); }
.btn.primary:hover { --btn-bg: var(--flash-light); --btn-bd: var(--flash-light); box-shadow: 0 8px 36px -10px rgba(255, 210, 63, .6); }
.btn.primary::after { content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%; left: -40%; width: 28%; background: rgba(255, 255, 255, .7); transform: skewX(var(--skew)) translateX(0); opacity: 0; }
.btn.primary:hover::after { animation: fv-sheen var(--f30) var(--ease-glide); }
@keyframes fv-sheen { 0% { opacity: .9; transform: skewX(-10deg) translateX(0); } 100% { opacity: 0; transform: skewX(-10deg) translateX(620%); } }
.btn.ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--fg-2); }
.btn.ghost:hover { --btn-bg: var(--panel-2); --btn-bd: transparent; --btn-fg: var(--fg); }
.btn.outline { --btn-bg: transparent; --btn-bd: var(--line-flash); --btn-fg: var(--flash); }
.btn.outline:hover { --btn-bg: rgba(255, 210, 63, .1); --btn-bd: var(--flash); }
.btn.danger { --btn-bg: transparent; --btn-bd: rgba(255, 79, 61, .5); --btn-fg: #FF8A7D; }
.btn.danger:hover { --btn-bg: rgba(255, 79, 61, .14); --btn-bd: var(--cut); }
.btn.lg { min-height: 52px; padding: 12px 26px; font-size: var(--s-16); }
.btn.sm { min-height: 32px; padding: 4px 12px; font-size: var(--s-12); }
.btn.block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::before { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--btn-fg); border-right-color: transparent; animation: fv-spin var(--f48) linear infinite; }
@keyframes fv-spin { to { transform: rotate(360deg); } }
.linkbtn { background: none; border: 0; padding: 0; color: var(--flash); text-decoration: underline; text-underline-offset: 3px; }

/* a segmented switch: plan terms, tabs of two or three */
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--night-2); }
.seg button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 7px 14px; font-size: var(--s-14); color: var(--fg-2); white-space: nowrap; transition: background var(--f12), color var(--f12); }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"], .seg button[aria-checked="true"] { background: var(--flash); color: var(--storm); font-weight: 600; }
.seg button small { font: 500 11px var(--f-mono); font-stretch: 87.5%; opacity: .8; margin-left: 4px; }
@media (max-width: 400px) { .seg button { padding: 6px 10px; font-size: var(--s-12); } .seg button small { display: block; margin: 2px 0 0; } }

/* ------------------------------------------------ cards, panels, chips */
.card { position: relative; min-width: 0; padding: clamp(18px, 2.4vw, 28px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); }
.card.lift { transition: transform var(--f18) var(--ease-flash), border-color var(--f12), background var(--f12); }
.card.lift:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--panel-2); }
.card.hot { border-color: var(--line-flash); box-shadow: var(--glow); color: var(--fg); }
.card.flat { background: var(--night-2); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--sp-4); }
.card-h h2, .card-h h3 { font: 600 var(--s-16)/1.3 var(--f-text); }
.panel { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.stage { position: relative; overflow: hidden; background: var(--night-2); border-radius: var(--r-xl); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
hr, .rule { border: 0; border-top: 1px solid var(--line); margin: var(--sp-5) 0; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--night-2); color: var(--fg-2); font: 500 var(--s-12)/1.5 var(--f-text); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--fg-3)); }
.chip.plain::before { display: none; }
.chip.ok { --c: var(--ok); color: #9BEFCB; border-color: rgba(61, 220, 151, .35); }
.chip.warn { --c: var(--warn); color: var(--flash-light); border-color: var(--line-flash); }
.chip.bad { --c: var(--danger); color: #FFA79D; border-color: rgba(255, 79, 61, .45); }
.chip.info { --c: var(--info); color: #B9CDFF; border-color: rgba(110, 155, 255, .4); }
.chip.live::before { animation: fv-pulse 1.2s var(--ease-glide) infinite; }
@keyframes fv-pulse { 50% { transform: scale(.55); opacity: .5; } }

/* an icon from icons.svg: <svg class="ico"><use href="/site/icons.svg#fv-cut"/></svg>; one Flash accent each */
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; overflow: visible; --fv-accent: var(--flash); --fv-accent-2: var(--cut); }
.ico.sm { width: 18px; height: 18px; } .ico.lg { width: 32px; height: 32px; } .ico.xl { width: 48px; height: 48px; }
.ico .a { fill: var(--fv-accent); stroke: none; } .ico .as { stroke: var(--fv-accent); } .ico .a2 { fill: var(--fv-accent-2); stroke: none; }
.ico-box { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--r-m); background: var(--panel-2); border: 1px solid var(--line); color: var(--fg); }

/* a notice: a renewal reminder, a usage warning. Closable with a button.notice-x */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-l); border: 1px solid var(--line-2); background: var(--panel); font-size: var(--s-14); }
.notice > .grow b { display: block; font-weight: 600; }
.notice.warn { border-color: var(--line-flash); background: linear-gradient(100deg, rgba(255, 210, 63, .12), rgba(255, 210, 63, 0) 60%), var(--panel); }
.notice.bad { border-color: rgba(255, 79, 61, .5); background: linear-gradient(100deg, rgba(255, 79, 61, .14), rgba(255, 79, 61, 0) 60%), var(--panel); }
.notice.ok { border-color: rgba(61, 220, 151, .4); }
.notice-x { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--fg-3); }
.notice-x:hover { background: var(--panel-3); color: var(--fg); }

/* ------------------------------------------------ forms */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .label { font: 500 var(--s-14)/1.4 var(--f-text); color: var(--fg-2); }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--night-2); color: var(--fg); font-size: var(--s-16); transition: border-color var(--f8), box-shadow var(--f12), background var(--f8); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B6B0E0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 20px; }
.input::placeholder, .textarea::placeholder { color: var(--fg-3); opacity: .8; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--fg-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--flash); box-shadow: 0 0 0 3px rgba(255, 210, 63, .22); background: var(--night); }
.input[aria-invalid="true"], .input.is-invalid, .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--cut); box-shadow: 0 0 0 3px rgba(255, 79, 61, .18); }
.input.is-valid { border-color: rgba(61, 220, 151, .7); }
.input:disabled, .select:disabled, .textarea:disabled { opacity: .5; cursor: not-allowed; }
.input:-webkit-autofill { -webkit-text-fill-color: var(--fg); box-shadow: 0 0 0 100px var(--night-2) inset; caret-color: var(--fg); }
.field-hint { font-size: var(--s-12); color: var(--fg-3); }
.field-error { font-size: var(--s-12); color: #FF8A7D; }
.field-error:empty { display: none; }
.field.shake { animation: fv-shake var(--f18) 2; }
@keyframes fv-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.input-group { position: relative; display: flex; }
.input-group .input { padding-right: 52px; }
.input-group > button { position: absolute; right: 4px; top: 4px; bottom: 4px; min-width: 40px; border: 0; border-radius: 6px; background: transparent; color: var(--fg-2); font-size: var(--s-12); }
.input-group > button:hover { background: var(--panel-2); color: var(--fg); }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: var(--s-14); color: var(--fg-2); cursor: pointer; }
.check input { appearance: none; width: 20px; height: 20px; margin: 0; flex: none; border: 1px solid var(--line-2); border-radius: 5px; background: var(--night-2); display: grid; place-items: center; transition: background var(--f8), border-color var(--f8); }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--storm); border-bottom: 2px solid var(--storm); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform var(--f12) var(--ease-snap); }
.check input:checked { background: var(--flash); border-color: var(--flash); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.form { display: grid; gap: var(--sp-4); }
.form-error { padding: 10px 14px; border-radius: var(--r-m); border: 1px solid rgba(255, 79, 61, .5); background: rgba(255, 79, 61, .1); color: #FFB3AA; font-size: var(--s-14); }
.form-error:empty { display: none; }
/* a card centred on the page: sign in, sign up */
.auth { min-height: calc(100vh - var(--bar-h)); min-height: calc(100dvh - var(--bar-h)); display: grid; place-items: center; padding: var(--sp-7) var(--gutter); }
.auth-card { width: min(100%, 440px); padding: clamp(22px, 4vw, 36px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); }

/* ------------------------------------------------ modal */
dialog.modal { padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--panel); color: var(--fg); width: min(calc(100vw - 32px), 520px); max-height: calc(100dvh - 32px); box-shadow: var(--shadow); overflow: hidden; }
dialog.modal.wide { width: min(calc(100vw - 32px), 760px); }
dialog.modal::backdrop { background: rgba(5, 3, 20, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.modal[open] { display: flex; flex-direction: column; animation: fv-snap var(--f18) var(--ease-snap); }
dialog.modal[open]::backdrop { animation: fv-fade var(--f12) linear; }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-h h2 { font: 600 var(--s-20)/1.3 var(--f-text); }
.modal-b { padding: 22px; overflow: auto; display: grid; gap: var(--sp-4); }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--night-2); }
@keyframes fv-fade { from { opacity: 0; } }
@keyframes fv-snap { from { opacity: 0; transform: scale(.92) skewX(-4deg); } }

/* ------------------------------------------------ tables */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--panel); }
.table { width: 100%; border-collapse: collapse; font-size: var(--s-14); }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--fg-3); font: 500 var(--s-12)/1.4 var(--f-text); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; background: var(--night-2); }
.table tbody th { background: transparent; color: var(--fg); font: 600 var(--s-14)/1.4 var(--f-text); letter-spacing: 0; text-transform: none; vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--f8); }
.table tbody tr:hover { background: rgba(220, 217, 240, .04); }
.table .num { text-align: right; font-family: var(--f-mono); font-stretch: 87.5%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td.actions { text-align: right; white-space: nowrap; }

/* ------------------------------------------------ toast */
.toasts { position: fixed; z-index: 90; right: 16px; bottom: 16px; display: grid; gap: 8px; justify-items: end; pointer-events: none; max-width: calc(100vw - 32px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-l); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--fg); font-size: var(--s-14); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .9); animation: fv-toast-in var(--f18) var(--ease-flash) both; }
.toast::before { content: ""; width: 4px; align-self: stretch; border-radius: 2px; background: var(--c, var(--flash)); transform: skewX(var(--skew)); }
.toast.ok { --c: var(--ok); } .toast.bad { --c: var(--cut); } .toast.info { --c: var(--info); }
.toast.is-out { animation: fv-toast-out var(--f12) var(--ease-strike) both; }
@keyframes fv-toast-in { from { opacity: 0; transform: translateX(40px) skewX(-10deg); } }
@keyframes fv-toast-out { to { opacity: 0; transform: translateX(40px) skewX(-10deg); } }

/* ------------------------------------------------ progress ring: set --p from 0 to 1 and it fills
   <div class="ring" style="--p:.42" role="img" aria-label="42% used">
     <svg viewBox="0 0 120 120"><circle class="ring-track" cx="60" cy="60" r="52" pathLength="1"/>
       <circle class="ring-fill" cx="60" cy="60" r="52" pathLength="1"/></svg>
     <div class="ring-in"><b class="ring-num">42%</b><span>used</span></div></div> */
.ring { --p: 0; --ring-c: var(--flash); position: relative; width: var(--ring-size, 132px); aspect-ratio: 1; flex: none; transition: --p var(--f48) var(--ease-flash); }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-width: var(--ring-w, 9); }
.ring-track { stroke: var(--panel-3); }
.ring-fill { stroke: var(--ring-c); stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--p)); transition: stroke-dashoffset var(--f48) var(--ease-flash), stroke var(--f18); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--ring-c) 55%, transparent)); }
.ring-in { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 2px; }
.ring-num { font: 500 var(--s-25)/1 var(--f-mono); font-stretch: 87.5%; font-variant-numeric: tabular-nums; }
.ring-in span { font-size: var(--s-12); color: var(--fg-3); }
.ring.sm { --ring-size: 44px; --ring-w: 12; } .ring.sm .ring-in { display: none; }
.ring.lg { --ring-size: 180px; --ring-w: 8; } .ring.lg .ring-num { font-size: var(--s-39); }
.ring.other { --ring-c: var(--a-colorist); }
.ring.warn { --ring-c: var(--a-critic); }
.ring.full { --ring-c: var(--cut); }
/* a straight meter, for the same number */
.meter { --p: 0; height: 8px; border-radius: var(--r-pill); background: var(--panel-3); overflow: hidden; }
.meter::before { content: ""; display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--c, var(--flash)); border-radius: inherit; transition: width var(--f48) var(--ease-flash); }

/* ------------------------------------------------ tabs */
.tabs { position: relative; display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 12px 16px; border: 0; background: transparent; color: var(--fg-2); font: 500 var(--s-14)/1.2 var(--f-text); white-space: nowrap; text-decoration: none; transition: color var(--f8); }
.tab:hover { color: var(--fg); }
.tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; background: var(--flash); transform: skewX(var(--skew)) scaleX(0); transform-origin: left; transition: transform var(--f18) var(--ease-flash); }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--fg); font-weight: 600; }
.tab[aria-selected="true"]::after, .tab[aria-current="page"]::after { transform: skewX(var(--skew)) scaleX(1); }
.tabpanel { padding-top: var(--sp-5); }
.tabpanel:not([hidden]) { animation: fv-rise var(--f18) var(--ease-flash); }
@keyframes fv-rise { from { opacity: 0; transform: translateY(10px); } }

/* ------------------------------------------------ stat tile: a number that counts up (motion.js countUp) */
.stat { display: grid; gap: 6px; align-content: start; padding: clamp(16px, 2vw, 24px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); min-width: 0; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--flash)); }
.stat-label { font-size: var(--s-12); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.stat-num { font: 500 clamp(var(--s-31), 4vw, var(--s-49))/1 var(--f-mono); font-stretch: 87.5%; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-num small { font-size: .45em; color: var(--fg-2); margin-left: 4px; letter-spacing: 0; }
.stat-note { font-size: var(--s-12); color: var(--fg-2); }
.stat-note.up { color: var(--ok); } .stat-note.down { color: #FF8A7D; }

/* ------------------------------------------------ empty state */
.empty { display: grid; justify-items: center; gap: 10px; padding: clamp(32px, 6vw, 64px) 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-l); color: var(--fg-2); }
.empty .ico { width: 40px; height: 40px; color: var(--fg-3); }
.empty b, .empty h3 { color: var(--fg); font: 600 var(--s-16)/1.3 var(--f-text); }
.empty p { max-width: 44ch; font-size: var(--s-14); }
.skeleton { border-radius: var(--r-s); background: linear-gradient(100deg, var(--panel-2) 30%, var(--panel-3) 50%, var(--panel-2) 70%) 0 0 / 300% 100%; animation: fv-shimmer 1.4s linear infinite; color: transparent !important; }
@keyframes fv-shimmer { to { background-position: -150% 0; } }

/* ------------------------------------------------ plans, questions, the terminal line */
.plan { display: grid; gap: var(--sp-4); align-content: start; }
.plan > * { min-width: 0; }
.plan-name { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
.plan-name h3 { font-family: var(--f-display); font-style: italic; font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(var(--s-20), 2.3vw, var(--s-25)); line-height: 1; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.price .cur { font: 500 var(--s-14) var(--f-mono); font-stretch: 87.5%; color: var(--fg-2); }
.price .amt { font: 500 clamp(var(--s-31), 3.6vw, var(--s-39))/1 var(--f-mono); font-stretch: 87.5%; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.price .per { font-size: var(--s-14); color: var(--fg-2); }
.plan.hot .plan-name h3, .plan.hot .price .amt { color: var(--flash); }
.price s { color: var(--fg-3); font: 400 var(--s-14) var(--f-mono); font-stretch: 87.5%; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: var(--s-14); color: var(--fg-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px; border-left: 2px solid var(--flash); border-bottom: 2px solid var(--flash); transform: rotate(-45deg); }
.ticks li b { color: var(--fg); font-weight: 600; }

details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font: 600 var(--s-20)/1.35 var(--f-text); cursor: pointer; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--flash); border-bottom: 2px solid var(--flash); transform: translateY(-3px) rotate(45deg); transition: transform var(--f18) var(--ease-snap); }
details.faq[open] summary::after { transform: translateY(3px) rotate(-135deg); }
details.faq summary:hover { color: var(--flash-light); }
details.faq > div { padding: 0 0 22px; color: var(--fg-2); max-width: 68ch; }
details.faq[open] > div { animation: fv-rise var(--f18) var(--ease-flash); }

.term { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-radius: var(--r-l); border: 1px solid var(--line-2); background: #06041A; font: 400 var(--s-14)/1.5 var(--f-mono); font-stretch: 87.5%; min-width: 0; }
.term code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: var(--fg); scrollbar-width: thin; padding-block: 4px; font: inherit; }
.term code::before { content: "$ "; color: var(--flash); }
.copy { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: var(--r-m); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--fg); font: 600 var(--s-12)/1 var(--f-text); transition: background var(--f8), border-color var(--f8), transform var(--f12) var(--ease-snap); }
.copy:hover { background: var(--panel-3); border-color: var(--fg-3); }
.copy:active { transform: scale(.94); }
.copy.is-done { background: var(--flash); border-color: var(--flash); color: var(--storm); animation: fv-snap var(--f18) var(--ease-snap); }
kbd { font: 500 .85em var(--f-mono); font-stretch: 87.5%; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--panel-2); }
code { font-family: var(--f-mono); font-stretch: 87.5%; font-size: .9em; }

/* ------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); padding-block: 44px 56px; color: var(--fg-3); font-size: var(--s-14); }
.footer-in { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; align-items: flex-start; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--fg-2); text-decoration: none; }
.footer a:hover { color: var(--flash); }
.footer .brand svg { height: 20px; }

/* ------------------------------------------------ motion utilities
   Nothing is hidden unless scripts run: <html class="js"> is set by a one-line script in the head. */
/* reveal on scroll: add .reveal; motion.js adds .is-in when it comes into view */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--f30) var(--ease-flash), transform var(--f30) var(--ease-flash); transition-delay: calc(var(--i, 0) * var(--f4)); }
.js .reveal.from-left { transform: translateX(-36px) skewX(var(--skew)); }
.js .reveal.from-right { transform: translateX(36px) skewX(var(--skew)); }
.js .reveal.snap { transform: scale(.86); transition-timing-function: linear, var(--ease-snap); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* on a phone the gutter is narrower than the slide: arrive from below, so nothing reaches past the edge */
@media (max-width: 720px) { .js .reveal.from-right:not(.is-in) { transform: translateY(22px); } }
/* a slug keeps its lean while it arrives and after */
.js .slug.reveal { transform: translateX(-36px) skewX(var(--skew)); }
.js .slug.reveal.is-in { transform: skewX(var(--skew)); }
/* stagger: a parent with data-stagger gives its children --i (motion.js), or set --i yourself */
/* the bolt wipe: the element arrives along the cut's own zig-zag */
.bolt-wipe { clip-path: polygon(0 0, 130% 0, 110% 45%, 125% 45%, 105% 100%, 0 100%); }
.js .bolt-wipe:not(.is-in) { clip-path: polygon(0 0, 0 0, 0 45%, 0 45%, 0 100%, 0 100%); }
.js .bolt-wipe.is-in { animation: fv-boltwipe var(--f30) var(--ease-strike) both; }
@keyframes fv-boltwipe { from { clip-path: polygon(0 0, 0 0, 0 45%, 0 45%, 0 100%, 0 100%); } to { clip-path: polygon(0 0, 130% 0, 110% 45%, 125% 45%, 105% 100%, 0 100%); } }
/* the flash frame: two white frames over an element when something finished. Add .flash-frame, then .is-on */
.flash-frame { position: relative; }
.flash-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; opacity: 0; pointer-events: none; z-index: 5; }
.flash-frame.is-on::after { animation: fv-flashframe var(--f12) steps(1) both; }
@keyframes fv-flashframe { 0% { opacity: 1; } 34% { opacity: .85; } 67% { opacity: 0; } 100% { opacity: 0; } }
/* the slide with skew: travels on the 10 degree lean and settles square */
.slide-skew.is-in, .slide-skew.run { animation: fv-slideskew var(--f30) var(--ease-flash) both; }
@keyframes fv-slideskew { from { opacity: 0; transform: translateX(60px) skewX(-10deg); } }
/* the snap: overshoot and land, the way a clip lands on the playhead */
.snap-in.is-in, .snap-in.run { animation: fv-snapin var(--f30) var(--ease-snap) both; }
@keyframes fv-snapin { from { opacity: 0; transform: scale(.7) rotate(-4deg); } 30% { opacity: 1; } }
/* a caret for typed text (motion.js typed) */
.caret::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.16em; background: var(--flash); animation: fv-blink 1s steps(1) infinite; }
@keyframes fv-blink { 50% { opacity: 0; } }
/* the bolt that strikes (motion.js boltStrike draws it; this is its look) */
.bolt-svg { position: absolute; pointer-events: none; overflow: visible; z-index: 6; }
.bolt-svg path { fill: none; stroke: var(--flash-light); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255, 210, 63, .9)); }
/* shards for a paid order (motion.js shards) */
.shard { position: fixed; left: 0; top: 0; width: 14px; height: 18px; pointer-events: none; z-index: 95; will-change: transform, opacity; clip-path: polygon(50% 0, 100% 38%, 62% 100%, 0 70%); }

/* ------------------------------------------------ reduced motion: every animation is its end state */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal, .js .bolt-wipe:not(.is-in) { opacity: 1; transform: none; clip-path: none; }
  .js .slug.reveal { transform: skewX(var(--skew)); }
  .flash-frame::after, .btn.primary::after, .shard, .bolt-svg { display: none; }
  .caret::after { animation: none; }
  .skeleton { animation: none; }
}
@media print { .topbar, .toasts, .footer nav { display: none; } body { background: #fff; color: #000; } }
