@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* The app's tokens (app/src/app.css, dark theme, TikTok Pink accent). */
:root {
  --bg: #16161c;
  --card: #1e1e26;
  --raise: #272731;
  --line: #34343f;
  --hover-line: #44444f;
  --text: #ededf0;
  --muted: #a6a6b0;
  --faint: #8e8e99;
  --placeholder: #80808b;
  --accent: #fe2c55;
  --accent-text: #ff6582;
  --primary: #e3184a;
  --primary-hover: #cc1442;
  --primary-text: #ffffff;
  --highlight: #25f4ee;
  --doc-text: #c8c8d0;
  --ok: #3dd68c;
  --danger: #ff6a45;
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--primary); color: var(--primary-text); padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.01em; text-decoration: none; }
.mark { width: 28px; height: 28px; }
.top-nav { display: flex; align-items: center; gap: 4px; }
.top-nav a, .top-cta { display: inline-flex; align-items: center; min-height: 44px; }
.top-nav a:not(.top-cta) { font-size: 0.875rem; color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; transition: color 150ms; }
.top-nav a:not(.top-cta):hover { color: var(--text); }
.top-cta {
  font-size: 0.875rem; font-weight: 550; text-decoration: none; color: var(--muted);
  padding: 8px 12px; border-radius: 8px; transition: color 150ms, background-color 150ms;
}
.top-cta:hover { color: var(--text); background: var(--raise); }

/* Hero */
.hero { padding-top: clamp(40px, 9vw, 104px); text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 10px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1 {
  margin: 22px auto 0; max-width: 15ch;
  font-size: clamp(2.5rem, 7vw, 4.75rem); line-height: 1.02; font-weight: 680; letter-spacing: -0.04em;
  text-wrap: balance;
}
.lede { margin: 20px auto 0; max-width: 34ch; font-size: clamp(1.0625rem, 2.2vw, 1.25rem); color: var(--muted); text-wrap: balance; }

/* Waitlist */
.join { margin: 36px auto 0; max-width: 640px; text-align: left; }
.join:focus { outline: none; }
.fields {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px;
}
.field { display: grid; gap: 4px; min-width: 0; }
.field > label { font-size: 0.75rem; font-weight: 500; color: var(--muted); padding-left: 4px; }
.field em { font-style: normal; color: var(--faint); font-weight: 400; margin-left: 4px; }
input, select, textarea {
  width: 100%; height: 44px; padding: 0 12px;
  font: inherit; font-size: 0.9375rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  transition: border-color 150ms, box-shadow 150ms;
}
input::placeholder { color: var(--placeholder); }
textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--hover-line); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent); }
input[aria-invalid="true"] { border-color: var(--danger); }
.at-wrap { position: relative; display: block; }
.at { position: absolute; left: 12px; top: 50%; translate: 0 -50%; color: var(--faint); font-size: 0.9375rem; pointer-events: none; }
.at-wrap input { padding-left: 26px; }
/* /agencies: "List your agency" */
#agency-form { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
#agency-form button { justify-self: start; }
#agency-form .pick { display: flex; gap: 8px; }
#agency-form .pick button { flex: none; background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.chips:empty { display: none; }
.chips li { display: inline-flex; align-items: center; gap: 4px; padding-left: 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.875rem; }
#agency-form .chips button { height: 28px; padding: 0 10px; background: transparent; color: var(--muted); box-shadow: none; border-radius: 999px; }
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; opacity: 0; pointer-events: none; }

button, .button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px; border: 0; border-radius: 8px;
  font: inherit; font-size: 0.9375rem; font-weight: 600; white-space: nowrap; text-decoration: none;
  color: var(--primary-text); background: var(--primary); cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16);
  transition: background-color 150ms, transform 150ms var(--ease);
}
button:hover, .button:hover { background: var(--primary-hover); }
/* Secondary: never competes with "Join the waitlist". */
.button.secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.button.secondary:hover { background: var(--raise); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
button:active, .button:active { transform: translateY(1px); }
button[disabled] { opacity: 0.7; cursor: progress; }

.field-error { margin-top: 10px; padding-left: 4px; font-size: 0.8125rem; color: var(--danger); }
.field-error::before { content: "! "; font-weight: 700; }
.hint { margin-top: 10px; padding-left: 4px; font-size: 0.8125rem; color: var(--muted); }
.hint.error { color: var(--danger); }

.thanks {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  animation: pop 400ms var(--ease) both;
}
.thanks svg { width: 28px; height: 28px; flex: none; margin-top: 2px; }
.thanks-title { font-weight: 620; font-size: 1.0625rem; }
.thanks p + p { color: var(--muted); margin-top: 2px; }

/* Screenshots */
.shot {
  margin: 0; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 24px 60px -20px rgb(0 0 0 / 0.7);
}
.shot-hero {
  position: relative; margin-top: clamp(48px, 8vw, 80px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 40px 80px -30px rgb(0 0 0 / 0.9);
}

/* Features */
.features { margin-top: clamp(64px, 10vw, 112px); }
.features ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.features li { padding: 24px 24px 0 0; }
.features li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.features h2 { font-size: 1rem; font-weight: 620; letter-spacing: -0.01em; }
.features p { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }

/* Tour */
.tour { margin-top: clamp(80px, 12vw, 144px); display: grid; gap: clamp(64px, 10vw, 120px); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.row:nth-child(even) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.row:nth-child(even) .copy { order: 2; }
.copy h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; font-weight: 650; letter-spacing: -0.03em; text-wrap: balance; }
.copy p { margin-top: 12px; color: var(--muted); max-width: 36ch; }

/* Closer */
.closer { margin-top: clamp(96px, 14vw, 160px); text-align: center; display: grid; justify-items: center; gap: 24px; }
.closer h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 660; letter-spacing: -0.035em; }

/* Footer */
.foot {
  margin-top: clamp(96px, 14vw, 160px); padding-block: 28px 40px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  font-size: 0.875rem; color: var(--muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Plain text pages */
.doc { max-width: 680px; padding-top: clamp(32px, 6vw, 72px); }
.doc h1 { margin: 0; font-size: clamp(2rem, 5vw, 2.75rem); max-width: none; text-align: left; }
.doc .updated { margin-top: 8px; color: var(--muted); font-size: 0.875rem; }
.doc h2 { margin-top: 36px; font-size: 1.125rem; font-weight: 620; }
.doc p, .doc li { color: var(--doc-text); overflow-wrap: anywhere; }
.doc p { margin-top: 10px; }
.doc ul { padding-left: 20px; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent-text); text-underline-offset: 3px; }
.doc a.button { color: var(--primary-text); }
.doc pre { margin: 12px 0 0; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 8px; font-size: 0.8125rem; line-height: 1.5; color: var(--doc-text); }
.doc a.button.secondary { color: var(--text); }
.doc .eyebrow + h1 { margin-top: 16px; }
.doc .steps { padding-left: 22px; margin: 14px 0 0; }
.doc .steps li { padding-left: 4px; }
.doc .steps li + li { margin-top: 18px; }
.doc .steps li::marker { color: var(--accent-text); font-weight: 650; }
.shot-step { margin-top: 12px; width: 100%; max-width: 560px; border-radius: var(--radius); border: 1px solid var(--line); }

/* Motion: a short rise on load, a fade as rows scroll in. Only with JS and motion allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { animation: rise 700ms var(--ease) both; }
  .js .rise:nth-child(2) { animation-delay: 60ms; }
  .js .rise:nth-child(3) { animation-delay: 120ms; }
  .js .rise:nth-child(4) { animation-delay: 180ms; }
  .js .rise:nth-child(5) { animation-delay: 260ms; }
  .js .reveal { opacity: 0; translate: 0 16px; transition: opacity 700ms var(--ease), translate 700ms var(--ease); }
  .js .reveal.in { opacity: 1; translate: 0 0; }
}
@keyframes rise { from { opacity: 0; translate: 0 12px; } }
@keyframes pop { from { opacity: 0; scale: 0.98; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .thanks { animation: none; }
}

/* Phones and small tablets */
@media (max-width: 860px) {
  .features ul { grid-template-columns: 1fr 1fr; }
  .features li:nth-child(3) { padding-left: 0; border-left: 0; }
  .features li:nth-child(n + 3) { padding-top: 24px; }
  .row, .row:nth-child(even) { grid-template-columns: 1fr; }
  .row:nth-child(even) .copy { order: 0; }
}
@media (max-width: 640px) {
  .top-nav a:not(.top-cta) { display: none; }
  .fields { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
  button { width: 100%; }
  .features ul { grid-template-columns: 1fr; }
  .features li, .features li + li { padding: 20px 0 0; border-left: 0; }
  .features li + li { margin-top: 20px; border-top: 1px solid var(--line); }
  .shot, .shot-hero { border-radius: 10px; }
}
.thanks:focus { outline: none; }

/* Consent: an unticked box the person ticks themselves (CASL, Law 25). */
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding-left: 4px; font-size: 0.875rem; color: var(--text); }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; padding: 0; accent-color: var(--primary); cursor: pointer; }
.consent label { cursor: pointer; padding-block: 2px; min-height: 24px; }
.consent input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.hint a { color: var(--accent-text); text-underline-offset: 3px; }
.hint.ok { color: var(--ok); }

/* Footer: who we are on the left, the pages on the right. */
.foot-id { display: grid; gap: 4px; }
.foot-id p { margin: 0; }
.foot-id strong { color: var(--text); font-weight: 600; }

/* Legal and form pages */
.doc .lead { margin-top: 16px; font-size: 1.0625rem; color: var(--text); }
.doc ol.points { padding-left: 22px; margin: 16px 0 0; }
.doc ol.points li + li { margin-top: 10px; }
.stack-form { margin-top: 24px; max-width: 420px; }
.stack-form .field-error { padding-left: 0; }
.stack-form .hint, .hint:not([role]) { padding-left: 0; }

/* Blurred placeholders: a 24 px version of each screenshot, shown until the real one loads. */
.ph-home { background-image: url("data:image/webp;base64,UklGRkQAAABXRUJQVlA4IDgAAADwAgCdASoYAA8APu1iqk2ppaQiMAgBMB2JaQDImDLxQAD+7+OONYVJ6L3qNInQu5zvIA1cVeAAAA=="); }
.ph-sounds { background-image: url("data:image/webp;base64,UklGRmYAAABXRUJQVlA4IFoAAADQAwCdASoYAA8APu1kqk4ppaQiMAgBMB2JYwCsACHfsaJ1P0XAAAAA/un3eOHAism187w+kCdpte7h26tJHMFsVgFObA2pHpKg+Y5T4HEIfJrEu+wFAagAAAA="); }
.ph-analytics { background-image: url("data:image/webp;base64,UklGRkQAAABXRUJQVlA4IDgAAAAQAwCdASoYAA8APu1iqU2ppaOiMAgBMB2JaQAAidoJVQAA/u9/MGLGQResGgoeMyq6AP7GEAAAAA=="); }
.ph-rules { background-image: url("data:image/webp;base64,UklGRkYAAABXRUJQVlA4IDoAAABQAwCdASoYAAkAPu1kqU2ppaOiMAgBMB2JZwDGfDKK0RKgAAD+7+YAHWmsOtJfWEPjI5lp5BycsAAA"); }
.shot picture { background-size: cover; background-position: center; }
/* The picture fades in over its blurred placeholder once loaded (app.js marks it). */
.js .shot img { transition: opacity 320ms var(--ease); }
.js .shot img:not(.loaded) { opacity: 0; animation: ph-fallback 0s 2.5s forwards; }
/* If the script never runs, the picture still shows after a moment. */
@keyframes ph-fallback { to { opacity: 1; } }

/* Type and shape: balanced headings, steady numbers, smooth squircle corners where supported. */
h1, h2, h3 { text-wrap: balance; }
.doc p, .copy p, .lede { text-wrap: pretty; }
body { font-variant-numeric: tabular-nums; }
@supports (corner-shape: squircle) {
  .shot, .fields, .thanks, button, .button, input, .eyebrow, .skip { corner-shape: squircle; }
}

/* Moving between pages: the browser cross-fades (same-site View Transitions). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: 120ms; }
::view-transition-new(root) { animation-duration: 200ms; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js .shot img { transition: none; }
}

/* Pricing (/pricing) */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 16px; margin-top: 28px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px 16px; }
.plan.featured { border-color: color-mix(in oklab, var(--accent) 55%, var(--line)); }
.plan h2 { margin-top: 16px; }
.plan .price { margin: 4px 0 0; }
.plan .price strong { font-size: 1.75rem; color: var(--text); }
.plan.founding { margin-top: 16px; }
.plan ul { padding-left: 1.1em; }
.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.compare th, .compare td { padding: 9px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { background: var(--card); color: var(--text); font-weight: 620; }
.compare tbody th { font-weight: 450; color: var(--doc-text); }
.compare td { width: 7.5rem; color: var(--text); font-variant-numeric: tabular-nums; }

/* Launch mode (/launch/, shown at / when the switch in _redirects is on): screenshots of 0.4.33. */
.ph-live-b33 { background-image: url("data:image/webp;base64,UklGRmAAAABXRUJQVlA4IFQAAAAwAwCdASoYAA8APu1iqU2ppaOiMAgBMB2JZwAAVGONfDHAAP7se/QwaJEUaNmIXG9KlbrBzPDxkZ/SFIScU1s4g5BWE4M3JnhO3O8zDmYL5biAAAA="); }
.ph-overlays-b33 { background-image: url("data:image/webp;base64,UklGRlIAAABXRUJQVlA4IEYAAABwAwCdASoYAA8APu1kqk4ppaQiMAgBMB2JaV2AWmSV7f/L4AAA/u97NmHqU27GgjyBh+WIS4Gd9nDk/Z0SsLadb4icV94A"); }
.ph-sounds-b33 { background-image: url("data:image/webp;base64,UklGRp4AAABXRUJQVlA4IJIAAACwBACdASoYAA8APu1iqU2ppaQiMAgBMB2JYgAFhBs3feteADJb17JLM71kuiQAAP7se3ihRdQhN76F3+nCWs1yXXKLA8+XsF0L0u9JX0romh34J0kK6bPB/C2/CCz3IAAJWwB1GPpgV4zoxAAMH5/KZqQb4UtC0P6EkLMxFCISbwKdE1ipr6fZvdognn7QLTtAAA=="); }
.ph-rules-b33 { background-image: url("data:image/webp;base64,UklGRkwAAABXRUJQVlA4IEAAAADwAgCdASoYAA8APu1iqU2ppaOiMAgBMB2JaWR5ADdYAAD+71pZ6d4rfhMiJonKKm+M1r1hmOYwhI/Zq/2ycAAA"); }
.ph-analytics-b33 { background-image: url("data:image/webp;base64,UklGRlYAAABXRUJQVlA4IEoAAAAwAwCdASoYAA8APu1iqk2ppaQiMAgBMB2JaQAAid2zhb8wAP7vfyzwl7pp/p4ZI93SbcMDlavLH3CtpCppH8OVpKlMHgg/YoUAAA=="); }
.hero .actions { justify-content: center; }
.hero .hint { padding-left: 0; }
.block { margin-top: clamp(80px, 12vw, 144px); }
.block > h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; font-weight: 660; letter-spacing: -0.035em; }
.block > p { margin-top: 12px; color: var(--muted); max-width: 60ch; }
.how { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: how; }
.how li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; counter-increment: how; }
.how li::before { content: counter(how); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--raise); color: var(--accent-text); font-weight: 650; }
.how h3 { margin: 14px 0 0; font-size: 1.25rem; font-weight: 640; letter-spacing: -0.01em; }
.how p { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }
.block .plan p, .block .plan li { color: var(--doc-text); }
.block .plan p { margin-top: 8px; }
.block .plan li + li { margin-top: 6px; }
.block a:not(.button) { color: var(--accent-text); text-underline-offset: 3px; }
.faq { margin-top: 20px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; font-weight: 600; list-style-position: inside; }
.faq details > div { padding-bottom: 18px; color: var(--doc-text); max-width: 70ch; }
.faq details p + p, .faq details ul { margin-top: 10px; }
.limits { margin: 20px 0 0; padding-left: 20px; color: var(--doc-text); max-width: 70ch; }
.limits li + li { margin-top: 8px; }
.waitlist-block .join { margin-left: 0; }
.changes h2 { margin-top: 40px; }
.changes h2 span { color: var(--muted); font-weight: 400; font-size: 0.9375rem; margin-left: 8px; }
.changes .change-pic { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }
