/* Outformat design system: black and warm white. The real Shorts carry the color; a white caption box marks what wins.
   Mona Sans everywhere: expanded black caps for headlines, normal width for reading. No gradients, no glass, no glow. */
@font-face {
  font-family: "Mona Sans";
  src: url("/assets/fonts/mona-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #0b0b0a;
  --paper-2: #111110;
  --card: #141413;
  --card-2: #1b1b19;
  --card-3: #24241f;
  --ink: #f4f3ee;
  --ink-2: #a8a7a2;
  --ink-3: #77766f;
  --line: rgba(244, 243, 238, 0.09);
  --line-2: rgba(244, 243, 238, 0.16);
  --hi: #f4f3ee;
  --hi-ink: #0b0b0a;
  --hi-soft: rgba(244, 243, 238, 0.1);
  --hi-line: rgba(244, 243, 238, 0.6);
  --rec: #ff3b2f;
  --bad: #ff6b5b;

  /* older names, kept so every page reads the new palette */
  --signal: var(--hi);
  --signal-2: var(--hi);
  --signal-ink: var(--hi);
  --signal-soft: var(--hi-soft);
  --go: var(--hi);
  --grad: var(--hi);
  --studio: var(--paper-2);
  --studio-2: var(--card);
  --studio-3: var(--card-2);
  --studio-line: var(--line);
  --studio-ink: var(--ink);
  --studio-ink-2: var(--ink-2);
  --studio-ink-3: var(--ink-3);

  --display: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "Mona Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Mona Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 22px;
  --gutter: clamp(16px, 4vw, 44px);
  --max: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-1: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --shadow-2: 0 40px 90px -30px rgba(0, 0, 0, 0.95);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
b, strong { font-weight: 700; }
::selection { background: var(--hi); color: var(--hi-ink); }
:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.no-ai [data-ai] { display: none !important; }

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

/* type: headlines in expanded black caps, the caption highlight marks what wins */
.h-xl, .h-l, .h-m, .h-s { font-family: var(--display); margin: 0; text-wrap: balance; color: var(--ink); }
.h-xl, .h-l { font-stretch: 125%; font-weight: 900; text-transform: uppercase; }
.h-xl { font-size: clamp(42px, 7.1vw, 106px); line-height: 0.92; letter-spacing: -0.012em; }
.h-l { font-size: clamp(32px, 4.5vw, 64px); line-height: 0.95; letter-spacing: -0.01em; }
.h-m { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.12; font-weight: 800; letter-spacing: -0.025em; }
.h-s { font-size: 18.5px; line-height: 1.28; font-weight: 750; letter-spacing: -0.015em; }
mark, .hl {
  /* the box covers cap height plus a little air and stays inside the line, so stacked lines never collide */
  color: var(--hi-ink); background: linear-gradient(var(--hi), var(--hi)) 0 54% / 100% 65% no-repeat;
  padding: 0 0.12em; margin: 0 -0.02em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.grad-text { color: var(--hi); }
.dim { color: var(--ink-3); }
.lede { font-size: clamp(18px, 1.5vw, 20.5px); line-height: 1.5; color: var(--ink-2); max-width: 60ch; margin: 0; text-wrap: pretty; letter-spacing: -0.005em; }
.lede b { color: var(--ink); font-weight: 650; }
.kicker { font-family: var(--display); font-stretch: 112%; font-size: 12px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
.kicker .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); margin-right: 10px; vertical-align: 1px; }
.mono, .num { font-variant-numeric: tabular-nums; }
.x { color: var(--hi); font-weight: 800; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
p { margin: 0; }

/* buttons: yellow for the one action, white for the second, outline for the rest */
.btn {
  --bg: var(--ink); --fg: var(--hi-ink); --bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--r-m);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-family: var(--body); font-weight: 750; font-size: 16.5px; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
  transition: transform 0.18s var(--ease), background-color 0.18s, border-color 0.18s, opacity 0.2s, box-shadow 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.16); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-signal { --bg: var(--hi); --fg: var(--hi-ink); }
.btn-signal:hover { --bg: #ffffff; }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); box-shadow: none; }
.btn-ghost:hover { --bg: rgba(244, 243, 238, 0.06); --bd: rgba(244, 243, 238, 0.3); }
.btn-studio { --bg: var(--ink); --fg: var(--hi-ink); }
.btn-sm { min-height: 40px; padding: 0 15px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.5; pointer-events: none; }
.link { color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-color: var(--line-2); }
.link:hover { text-decoration-color: var(--hi); }

/* the niche input: one field, one yellow button */
.ask {
  position: relative; display: flex; align-items: stretch; gap: 6px; padding: 6px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 16px;
  max-width: 600px; transition: border-color 0.2s, box-shadow 0.2s;
}
.ask:focus-within { border-color: var(--hi-line); box-shadow: 0 0 0 4px var(--hi-soft); }
.ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17.5px; font-weight: 500; padding: 0 12px 0 16px; min-height: 54px; color: var(--ink); }
.ask input::placeholder { color: var(--ink-3); font-weight: 420; }
.ask .btn { flex: 0 0 auto; }
@media (max-width: 520px) { .ask { flex-direction: column; } .ask input { min-height: 54px; } .ask .btn { width: 100%; min-height: 54px; } }
.ask-note { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ask-note span { display: inline-flex; align-items: center; gap: 7px; }
.ask-note svg { flex: 0 0 auto; color: var(--hi); }

.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 650; color: var(--ink-2); }
.input {
  width: 100%; min-height: 52px; padding: 0 15px; border-radius: var(--r-m);
  background: var(--card); border: 1px solid var(--line-2); font-size: 16.5px; font-weight: 500; outline: none; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.2s;
}
.input::placeholder { color: var(--ink-3); font-weight: 420; }
.input:focus { border-color: var(--hi-line); box-shadow: 0 0 0 4px var(--hi-soft); }
textarea.input { padding: 12px 15px; min-height: 96px; resize: vertical; line-height: 1.45; }

/* nav: solid, no blur, a hairline once you scroll */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(11, 11, 10, 0.94); border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 26px; height: 26px; flex: 0 0 auto; }
.brand b { font-family: var(--display); font-stretch: 125%; font-size: 17px; font-weight: 900; letter-spacing: -0.01em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: var(--hi-ink); }
@media (max-width: 760px) { .nav-links .hide-s { display: none; } .nav-links { gap: 16px; font-size: 15px; } .nav-links a { white-space: nowrap; } .nav-links .btn-sm { min-height: 38px; padding: 0 13px; font-size: 14.5px; } .brand b { font-size: 15.5px; } }
@media (max-width: 370px) { .nav-links .btn-sm { display: none; } }

/* panel: anything that shows data */
.studio { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-xl); position: relative; overflow: hidden; isolation: isolate; }
.studio .kicker { color: var(--ink-2); }
.studio .muted { color: var(--ink-2); }

/* strip frames: 4 frames of 150x266 tiled in one 600x266 JPEG; show one, flip through on hover */
.frame {
  position: relative; aspect-ratio: 150 / 266; width: 100%; max-width: 100%; border-radius: 10px; overflow: hidden;
  background-color: var(--card-2); background-size: 400% 100%; background-position: 0% 0; background-repeat: no-repeat;
}
.frame.play { animation: flip 1s steps(1) infinite; }
@keyframes flip { 0% { background-position: 0% 0; } 25% { background-position: 33.333% 0; } 50% { background-position: 66.666% 0; } 75% { background-position: 100% 0; } }
.frame .sec { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, 0.66); padding: 2px 6px; border-radius: 4px; opacity: 0; transition: opacity 0.2s; font-variant-numeric: tabular-nums; }
.frame.play .sec { opacity: 1; }
.frame-ph { display: flex; align-items: flex-end; padding: 10px; font-size: 13px; font-weight: 650; line-height: 1.25; color: var(--ink); background: var(--card-2); }

/* reveal on scroll: rise into place */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .frame.play { animation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* toast + sheet */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; z-index: 90; background: var(--ink); color: var(--hi-ink); padding: 12px 16px; border-radius: 12px; font-size: 15px; font-weight: 600; box-shadow: var(--shadow-2); transition: opacity 0.25s, transform 0.35s var(--ease-out); max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.sheet-back { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.72); opacity: 0; transition: opacity 0.3s; }
.sheet-back.on { opacity: 1; }
.sheet { position: fixed; z-index: 81; left: 50%; bottom: 0; width: min(980px, 100%); max-height: min(92vh, 900px); overflow: auto; transform: translate(-50%, 100%); background: var(--paper-2); border: 1px solid var(--line-2); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-2); transition: transform 0.5s var(--ease-out); padding-bottom: env(safe-area-inset-bottom, 0px); overscroll-behavior: contain; }
.sheet.on { transform: translate(-50%, 0); }
@media (min-width: 900px) { .sheet { bottom: auto; top: 50%; border-radius: var(--r-xl); transform: translate(-50%, -46%) scale(0.98); opacity: 0; transition: transform 0.45s var(--ease-out), opacity 0.3s; } .sheet.on { transform: translate(-50%, -50%); opacity: 1; } }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center; z-index: 2; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 48px 64px; font-size: 14.5px; color: var(--ink-2); }
.foot-in { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .small { margin-top: 12px; max-width: 46ch; color: var(--ink-3); font-size: 13.5px; }

/* consent card */
.consent { position: fixed; z-index: 70; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(380px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 16px; box-shadow: var(--shadow-2); font-size: 14.5px; display: grid; gap: 12px; color: var(--ink); }
.consent .row { display: flex; gap: 8px; }
.consent .btn { flex: 1; min-height: 42px; font-size: 14.5px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--ink); color: var(--hi-ink); padding: 8px 12px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* billing period switch (landing pricing and the checkout sheet) */
.bill-toggle { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); gap: 2px; }
.bill-toggle button { border: 0; background: transparent; padding: 9px 16px; border-radius: 9px; font-weight: 700; font-size: 14.5px; cursor: pointer; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.bill-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--hi-ink); }
.bill-toggle .save { margin-left: 8px; font-size: 12px; color: var(--ink); font-weight: 750; }
.bill-toggle button[aria-pressed="true"] .save { color: #55544e; }
