:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #e9edf5;
  --ink: #15171c;
  --muted: #727d8c;
  --soft: #8993a1;
  --line: rgba(21, 23, 28, 0.12);
  --line-strong: rgba(21, 23, 28, 0.2);
  --accent: #ff5a3d;
  --accent-2: #df3f25;
  --accent-soft: rgba(255, 90, 61, 0.12);
  --dark: #1c1813;
  --dark-2: #231f16;
  --dark-3: #2e2b1f;
  --dark-text: #f5f7fb;
  --dark-muted: #a8b1bf;
  --hook: #ff5a3d;
  --peak: #bd5fff;
  --thought: #1aa37a;
  --quote: #2f7cf6;
  --maxw: 1180px;
  --radius: 14px;
  --font: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Unbounded", var(--font);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
p, h1, h2, h3 { margin: 0; }
h1, h2 {
  font-family: var(--display);
  letter-spacing: -0.01em;
  line-height: 1.06;
  text-wrap: balance;
}
h3 {
  letter-spacing: 0;
  line-height: 1.1;
  text-wrap: balance;
}

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 56px);
  padding: 0 28px;
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 250, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 10px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.02em;
}
.mark {
  width: 36px;
  height: 36px;
  background: url("icon.png") center / contain no-repeat;
  display: inline-block;
  flex: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color 0.16s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.lang-toggle:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 22px -18px rgba(21, 23, 28, 0.75);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 18px 30px -20px rgba(21, 23, 28, 0.85);
}
.btn:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 6px rgba(21, 23, 28, 0.22), 0 7px 16px -16px rgba(21, 23, 28, 0.65);
}
.btn:focus-visible,
.chip:focus-visible,
.step:focus-visible,
.zone:focus-visible,
.clip-card:focus-visible,
.word:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent) 34%, white);
  outline-offset: 3px;
}
.btn-primary {
  background: linear-gradient(180deg, #ff7058 0%, var(--accent) 56%, var(--accent-2) 100%);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 16px 32px -18px rgba(255, 90, 61, 0.85);
}
.btn-primary:hover { background: linear-gradient(180deg, #ff806b 0%, #ff5f45 56%, var(--accent-2) 100%); }
.btn-secondary {
  background: linear-gradient(180deg, white 0%, #f8fafc 100%);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  border-color: color-mix(in oklab, var(--ink) 42%, var(--line-strong));
  background: white;
}
.btn-lg { min-height: 52px; padding: 14px 22px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 8px 12px; font-size: 13px; }

.hero {
  padding: 72px 0 70px;
  background:
    radial-gradient(ellipse at 72% 48%, rgba(255, 90, 61, 0.055) 0%, transparent 52%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
  gap: 42px;
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero-copy,
.sim,
.source-panel,
.insight-panel,
.clips-panel,
.plan,
.pain-card,
.feature-list article {
  min-width: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 22px;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
}
.hero-sub {
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  max-width: 590px;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-proof {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-proof span {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-proof span::before {
  content: "✓";
  color: var(--thought);
  font-weight: 900;
  font-size: 12px;
}

/* ── Reason chip (hero + simulator + future) ─────────── */
.reason-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--c);
  background: color-mix(in oklab, var(--c) 16%, transparent);
  border: 1px solid color-mix(in oklab, var(--c) 45%, transparent);
}
.reason-chip.hook   { --c: var(--hook); }
.reason-chip.peak   { --c: var(--peak); }
.reason-chip.thought { --c: var(--thought); }
.reason-chip.quote  { --c: var(--quote); }

/* ── Hero clip result card ───────────────────────────── */
.hero-clip {
  display: flex;
  justify-content: center;
}
.hero-clip-card {
  width: 100%;
  max-width: 300px;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 34px 80px -42px rgba(12, 16, 24, 0.75);
  color: var(--dark-text);
}
.hero-clip-frame {
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  /* Photo layer on top of the gradient fallback. If the file is missing,
     the url() layer fails silently and the gradient below shows through. */
  background-image:
    var(--shot, url("uploads/hero-clip.webp")),
    radial-gradient(ellipse at 50% 26%, rgba(255, 90, 61, 0.32) 0%, transparent 46%),
    radial-gradient(ellipse at 50% 26%, rgba(255, 180, 120, 0.09) 0%, transparent 32%),
    linear-gradient(160deg, #2a3344, #0f1318);
  background-size: cover, auto, auto, auto;
  background-position: center top, center, center, center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.hero-clip-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.045) 0px,
    rgba(0, 0, 0, 0.045) 1px,
    transparent 1px,
    transparent 4px
  );
  border-radius: 14px;
  pointer-events: none;
}
.hero-clip-cap {
  text-align: center;
  text-transform: uppercase;
  font-weight: 900;
  font-size: clamp(14px, 1.9vw, 19px);
  line-height: 1.2;
  color: white;
  position: relative;
  z-index: 1;
  background: rgba(255, 90, 61, 0.92);
  border-radius: 8px;
  padding: 10px 16px;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  box-shadow: 0 4px 18px rgba(255, 90, 61, 0.45);
}
.hero-clip-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--dark-muted);
  font-size: 12px;
  font-weight: 600;
}
.mono-text {
  font-family: var(--mono);
  font-size: 12px;
}

/* ── Demo section wrapper ────────────────────────────── */
.demo-section {
  padding: 80px 0 64px;
  background: var(--bg);
  overflow-x: clip;
}
.demo-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.demo-header h2 { margin-bottom: 10px; }
.demo-sub {
  color: var(--muted);
  font-size: 17px;
  margin-top: 12px;
}
.demo-studio-wrap {
  max-width: 1100px;
}

.sim {
  background: var(--dark);
  color: var(--dark-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px 20px 16px;
  box-shadow: 0 34px 80px -42px rgba(12, 16, 24, 0.8);
}
.sim-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.sim-kicker,
.panel-label,
.field-label {
  display: block;
  font-family: var(--font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--dark-muted);
}
.sim-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  font-family: var(--font);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  border-radius: 999px;
  padding: 2px 8px;
}
.sim-state {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dark-muted);
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 7px 10px;
}

.sample-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  color: var(--dark-muted);
  border-radius: 999px;
  padding: 8px 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.chip.active,
.chip:hover {
  color: var(--dark-text);
  border-color: rgba(255, 90, 61, 0.65);
  background: linear-gradient(180deg, rgba(255, 90, 61, 0.18), rgba(255, 90, 61, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 24px -18px rgba(255, 90, 61, 0.8);
}
.chip:hover { transform: translateY(-1px); }
.chip:active { transform: translateY(0); }

.studio { display: grid; gap: 16px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.step {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
  border-radius: 11px;
  color: var(--dark-muted);
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.step span {
  width: 21px;
  height: 21px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 11px;
}
.step.active {
  color: var(--dark-text);
  border-color: rgba(255, 90, 61, 0.55);
  background: linear-gradient(180deg, rgba(255, 90, 61, 0.18), rgba(255, 90, 61, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 26px -22px rgba(255, 90, 61, 0.85);
}
.step:hover {
  transform: translateY(-1px);
  color: var(--dark-text);
  border-color: rgba(255, 255, 255, 0.2);
}
.step:active { transform: translateY(0); }
.step.done span { background: rgba(26, 163, 122, 0.2); color: #7df0c3; }

.studio-top {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.studio-top .video-frame {
  aspect-ratio: unset;
  height: 160px;
}
.source-panel,
.insight-panel,
.clips-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--dark-2);
  border-radius: 16px;
  padding: 14px;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.panel-head.compact { margin-bottom: 10px; }
.panel-head h3 {
  font-size: 15px;
  margin-top: 3px;
}
.duration {
  font-family: var(--mono);
  color: var(--dark-muted);
  font-size: 12px;
}

/* ── Video frame (real-video treatment, no CSS face) ─── */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  /* Real video still on top, gradient fallback underneath. JS may override
     --shot per sample; the CSS default picks up uploads/demo-frame.jpg. */
  background-image:
    var(--shot, url("uploads/demo-frame.webp")),
    radial-gradient(ellipse at 50% 30%, rgba(47, 124, 246, 0.28), transparent 55%),
    linear-gradient(160deg, #243044, #0d1118);
  background-size: cover, auto, auto;
  background-position: center, center, center;
  background-repeat: no-repeat;
  background-color: #141921;
  border: 1px solid rgba(255, 255, 255, 0.11);
}
/* Dark tint overlay to keep text readable over any photo */
.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 14, 22, 0.38) 0%,
    rgba(10, 14, 22, 0.0) 40%,
    rgba(10, 14, 22, 0.62) 100%);
}
/* Bottom progress bar */
.vf-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 2;
}
.vf-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 2.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.caption-preview {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  text-align: center;
  text-transform: uppercase;
  font-weight: 900;
  font-size: clamp(16px, 2.2vw, 22px);
  line-height: 1.05;
  z-index: 2;
  /* Brand-driven (Act 5): font + caption pill restyle live */
  font-family: var(--brand-font, inherit);
  color: var(--brand-fg, #fff);
  background: var(--brand-bg, transparent);
  padding: var(--brand-pad, 0);
  border-radius: 9px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6);
  transition: background 0.18s ease, color 0.18s ease, padding 0.18s ease;
}

.timeline {
  position: relative;
  margin-top: 12px;
  height: 76px;
  background: rgba(5, 8, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  overflow: hidden;
}
.wave {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 9px;
  opacity: 0.35;
}
.wave i {
  flex: 1;
  border-radius: 99px;
  background: var(--dark-muted);
}
.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4%;
  width: 2px;
  background: white;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.9);
  opacity: 0;
}
.zone {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: var(--left);
  width: var(--width);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 5px 6px;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.zone span {
  font-family: var(--font);
  font-weight: 700;
  color: var(--dark-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.zone.active,
.zone:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 18%, transparent);
}
.zone.active span,
.zone:hover span { color: #fff; }
.zone.linked {
  border-color: color-mix(in oklab, var(--accent) 70%, transparent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
}
.zone.linked span { color: var(--dark-text); }
.time-row {
  display: flex;
  justify-content: space-between;
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 7px;
}

.thought-log {
  display: grid;
  gap: 9px;
  min-height: 60px;
}
.thought {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 12px;
  padding: 11px;
  opacity: 0;
  transform: translateY(8px);
  animation: thoughtIn 0.35s ease forwards;
}
@keyframes thoughtIn {
  to { opacity: 1; transform: none; }
}
.thought b {
  color: var(--dark-text);
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.thought p {
  color: var(--dark-muted);
  font-size: 13px;
  line-height: 1.45;
}
.thought .score {
  display: inline-flex;
  margin-top: 9px;
  color: var(--color);
  font-family: var(--mono);
  font-size: 11px;
}

.clip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 auto;
}
.clip-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
  border-radius: 13px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  animation: flyOut 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
@keyframes flyOut {
  from { opacity: 0; transform: translate(var(--fromx, 0), -210px) scale(0.55); }
  to   { opacity: 1; transform: translate(0, 0) scale(1); }
}
.clip-grid.instant .clip-card {
  animation: none;
  opacity: 1;
}
.clip-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 30px -24px rgba(0, 0, 0, 0.85);
}
.clip-card:active { transform: translateY(-1px); }
/* linked = the single interaction feedback (clip ↔ its spot on the timeline) */
.clip-card.linked {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.clip-thumb {
  aspect-ratio: 9 / 16;
  /* Per-clip still set via inline --shot in app.js; gradient fallback. */
  background-image:
    var(--shot, none),
    linear-gradient(180deg, #20283a 0%, #11151c 60%, #0a0d14 100%);
  background-size: cover, auto;
  background-position: center top, center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
}
/* Light top tint + stronger bottom scrim — keeps the face bright, caption legible */
.clip-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.16) 0%, transparent 28%, transparent 52%, rgba(0,0,0,0.82) 100%);
  pointer-events: none;
}
.clip-thumb .reason-chip {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  font-size: 11px;
  padding: 4px 9px;
  color: #fff;
  background: color-mix(in oklab, var(--c) 30%, rgba(8, 10, 14, 0.55));
  border-color: color-mix(in oklab, var(--c) 60%, transparent);
}
.clip-cap {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.12;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}
.clip-foot { padding: 12px 14px 14px; }
.clip-time { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.clip-foot p {
  margin-top: 6px;
  color: var(--dark-muted);
  font-size: 12.5px;
  line-height: 1.42;
}

/* ── Simplified studio: source line, helper, footer ───── */
.src-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.src-line h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-text);
  font-family: var(--mono);
}
.src-line .duration {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dark-muted);
}
.sim-help {
  margin: 16px 0 18px;
  font-size: 13px;
  color: var(--dark-muted);
}
.sim-foot {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
/* ── Act 3: transcript-word editor — full-width strip below clips ── */
.clip-editor-strip {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.clip-editor-strip:empty { display: none; }
.editor-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.editor-label {
  font-family: var(--font);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark-muted);
}
.editor-label b { color: var(--dark-text); text-transform: none; letter-spacing: 0; }
.editor-time { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.editor-hint {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--dark-muted);
  margin-bottom: 12px;
}
.words {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 6px;
}
.word {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.15;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 0.13s ease, color 0.13s ease, border-color 0.13s ease;
}
/* Words outside the clip — available to pull in */
.word.out { color: color-mix(in oklab, var(--dark-muted) 62%, transparent); }
.word.out:hover {
  color: var(--dark-text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}
/* Words inside the selected clip */
.word.in {
  color: var(--dark-text);
  background: rgba(255, 255, 255, 0.06);
}
/* The two boundary words — the draggable edges */
.word.edge {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.word.edge:hover { background: var(--accent-2); }
/* Subtle pulse on the timeline zone when a word edit moves its boundary */
.zone.nudged {
  box-shadow: 0 0 0 1px var(--accent);
}

/* ── Act 1: source transcript ─────────────────────────── */
.source-transcript {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--dark-muted);
}
.t-word {
  opacity: 0;
  animation: tWordIn 0.4s ease forwards;
  animation-delay: var(--d, 0ms);
}
.source-transcript.instant .t-word { opacity: 1; animation: none; }
@keyframes tWordIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Act 5: brand toolbar ─────────────────────────────── */
.brand-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 16px;
}
.brand-tools:empty { display: none; }
.tools-label {
  font-family: var(--font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: var(--dark-muted);
}
.brand-fonts { display: flex; gap: 6px; }
.brand-font {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--dark-text);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.brand-font:hover { border-color: rgba(255, 255, 255, 0.3); }
.brand-font.active { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 18%, transparent); }
.brand-colors { display: flex; gap: 6px; }
.brand-color {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.brand-color:hover { transform: scale(1.08); }
.brand-color.active { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }

/* ── Act 4: compact ranked spectrum ("why these, not others") ── */
.candidates { margin-top: 18px; }
.candidates:empty { display: none; }
.cand-head {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--dark-muted);
  margin-bottom: 10px;
}
.cand-strip { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.cchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font);
  font-size: 12px;
  color: var(--dark-muted);
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}
.cchip b { font-family: var(--mono); font-weight: 600; color: var(--dark-text); }
.cchip.rejected {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease;
}
.cchip.rejected:hover { border-color: var(--accent); color: var(--dark-text); }
.cchip-add { color: var(--accent); font-weight: 600; }
/* Muted reason dots — small, low-key (anti-AI-slop: colour as accent, not noise) */
.cand-dot { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--dark-muted); }
.cand-dot.hook { background: color-mix(in oklab, var(--hook) 78%, #5a5048); }
.cand-dot.peak { background: color-mix(in oklab, var(--peak) 70%, #4a4660); }
.cand-dot.thought { background: color-mix(in oklab, var(--thought) 74%, #3a4a44); }
.cand-dot.quote { background: color-mix(in oklab, var(--quote) 72%, #3a4256); }

.section { padding: 88px 0; }
.section.muted { background: var(--surface-2); }
.proof-strip   { background: var(--dark); padding: 52px 0; }
.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}
.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 13px;
  font-weight: 700;
}
.section h2 {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.16;
}
.section p {
  color: var(--muted);
  font-size: 17px;
  margin-top: 14px;
}
.section-grid,
.brand-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 46px;
  align-items: center;
}
.section-copy p,
.brand-grid p { max-width: 560px; }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.proof-grid div {
  background: none;
  border: none;
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 36px;
}
.proof-grid div:last-child {
  border-right: none;
  background: none;
}
.metric {
  display: block;
  color: var(--dark-text);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.metric.accent { color: var(--accent); }
.proof-grid p {
  margin-top: 8px;
  color: var(--dark-muted);
  font-size: 14px;
}

/* ── Flow section (connected pipeline) ──────────────── */
.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
  isolation: isolate;
}
.flow-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 40px;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 90, 61, 0.32), rgba(255, 90, 61, 0.18) 50%, rgba(255, 90, 61, 0.32)),
    var(--dark-3);
  border: 1px solid rgba(255, 90, 61, 0.14);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 30px -25px rgba(255, 90, 61, 0.25);
  overflow: hidden;
  z-index: 0;
}
.flow-pulse {
  position: absolute;
  top: -1px;
  left: -8%;
  height: 100%;
  width: 18%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), var(--accent), transparent);
  filter: blur(0.2px);
  animation: flowPulse 3.2s ease-in-out infinite;
}
@keyframes flowPulse {
  0%   { transform: translateX(-30%); }
  100% { transform: translateX(620%); }
}
@keyframes flowPulseV {
  0%   { transform: translateY(-30%); }
  100% { transform: translateY(450%); }
}
.flow-node {
  position: relative;
  padding: 30px 22px 24px;
  background:
    radial-gradient(circle at 30px 28px, rgba(255, 90, 61, 0.1) 0 40px, transparent 80px),
    var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 34px -28px rgba(0, 0, 0, 0.65);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  z-index: 1;
  color: var(--dark-text);
}
.flow-node:nth-of-type(1) { --node-accent: var(--accent); }
.flow-node:nth-of-type(2) { --node-accent: var(--accent); }
.flow-node:nth-of-type(3) { --node-accent: var(--accent); }
.flow-node:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 61, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 46px -30px rgba(255, 90, 61, 0.35);
}
.flow-node:not(:last-of-type)::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -18px;
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(255, 90, 61, 0.6);
  border-right: 2px solid rgba(255, 90, 61, 0.6);
  transform: rotate(45deg);
  background: var(--bg);
  z-index: 2;
}
.flow-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, color-mix(in oklab, var(--node-accent, var(--accent)) 86%, white), var(--node-accent, var(--accent)));
  color: white;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 8px color-mix(in oklab, var(--node-accent, var(--accent)) 12%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 24px -16px color-mix(in oklab, var(--node-accent, var(--accent)) 75%, black);
}
.flow-node h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark-text);
}
.flow-node p {
  color: var(--dark-muted);
  font-size: 14px;
  line-height: 1.5;
}

.plan,
details {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(21, 23, 28, 0.08);
}
.pain-card {
  --pain-accent: var(--accent);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 34px -30px rgba(21, 23, 28, 0.55);
  padding: 28px 26px;
  outline: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pain-card:nth-child(2) { --pain-accent: var(--quote); }
.pain-card:nth-child(3) { --pain-accent: var(--thought); }
/* left accent bar — fades in on reveal */
.pain-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--pain-accent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
/* problem → solution mark */
.pain-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  background: color-mix(in oklab, var(--muted) 10%, var(--surface));
  border: 1px solid var(--line);
  color: var(--soft);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.pain-mark span {
  grid-area: 1 / 1;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.pain-mark .mark-check {
  opacity: 0;
  transform: scale(0.6) rotate(-12deg);
}
.pain-problem h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.plan h3 {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 700;
}
.pain-problem p {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.pain-solution {
  align-self: start;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: baseline;
  gap: 8px;
  opacity: 0.6;
  transition: opacity 0.25s ease;
}
.pain-solution-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soft);
  transition: color 0.25s ease;
}
.pain-solution strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  transition: color 0.25s ease;
}
/* reveal on hover / keyboard focus */
.pain-card:hover,
.pain-card:focus-visible,
.pain-card:focus-within {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--pain-accent) 42%, var(--line));
  box-shadow: 0 24px 46px -30px color-mix(in oklab, var(--pain-accent) 38%, rgba(21, 23, 28, 0.62));
}
.pain-card:hover::before,
.pain-card:focus-within::before { opacity: 1; }
.pain-card:hover .pain-mark,
.pain-card:focus-within .pain-mark {
  background: color-mix(in oklab, var(--pain-accent) 14%, var(--surface));
  border-color: color-mix(in oklab, var(--pain-accent) 38%, var(--line));
  color: var(--pain-accent);
}
.pain-card:hover .pain-mark .mark-x,
.pain-card:focus-within .pain-mark .mark-x { opacity: 0; transform: scale(0.6) rotate(12deg); }
.pain-card:hover .pain-mark .mark-check,
.pain-card:focus-within .pain-mark .mark-check { opacity: 1; transform: none; }
.pain-card:hover .pain-solution,
.pain-card:focus-within .pain-solution { opacity: 1; }
.pain-card:hover .pain-solution-label,
.pain-card:focus-within .pain-solution-label,
.pain-card:hover .pain-solution strong,
.pain-card:focus-within .pain-solution strong { color: var(--pain-accent); }
/* touch devices (no hover): show the resolved state by default */
@media (hover: none) {
  .pain-card::before { opacity: 1; }
  .pain-mark {
    color: var(--pain-accent);
    background: color-mix(in oklab, var(--pain-accent) 14%, var(--surface));
    border-color: color-mix(in oklab, var(--pain-accent) 30%, var(--line));
  }
  .pain-mark .mark-x { opacity: 0; }
  .pain-mark .mark-check { opacity: 1; transform: none; }
  .pain-solution { opacity: 1; }
  .pain-solution-label,
  .pain-solution strong { color: var(--pain-accent); }
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  column-gap: 20px;
  row-gap: 14px;
  margin-top: 10px;
}

/* ── Comparison table ────────────────────────────────── */
.compare-wrap {
  overflow-x: auto;
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table thead tr {
  border-bottom: 2px solid var(--line);
}
.compare-table th {
  padding: 14px 16px;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.compare-table th:first-child { text-align: left; }
.compare-table th.own {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  border-radius: 12px 12px 0 0;
}
.compare-table td {
  padding: 13px 16px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.compare-table td:first-child {
  text-align: left;
  color: var(--muted);
  font-size: 14px;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td.own { background: var(--accent-soft); }
.compare-table td.yes  { color: var(--thought); font-weight: 800; font-size: 16px; }
.compare-table td.no   { color: var(--soft); font-size: 16px; }
.compare-table td.part { color: var(--muted); font-size: 13px; }
.compare-table td.dim  { color: var(--soft); font-size: 12px; font-style: italic; }

.tag,
.plan-tag {
  color: var(--soft);
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.brand-preview {
  background: var(--dark);
  border-radius: 18px;
  padding: 18px;
  color: var(--dark-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.brand-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}
.brand-toolbar span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--dark-muted);
  font-family: var(--font);
  font-weight: 600;
  font-size: 11px;
}
.brand-toolbar i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}
.phone-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.phone-card {
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  /* Same clip still in three brand styles. Reuses the first clip frame;
     gradient fallback when the file is missing. */
  background-image:
    var(--shot, url("uploads/clip-1.webp")),
    linear-gradient(180deg, #313947, #11151c);
  background-size: cover, auto;
  background-position: center top, center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
}
/* Bottom scrim so the styled caption stays legible over the photo */
.phone-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, transparent 55%);
  pointer-events: none;
}
.phone-card b {
  position: relative;
  z-index: 1;
}
.phone-card b {
  display: block;
  width: 100%;
  background: var(--accent);
  color: white;
  text-align: center;
  border-radius: 7px;
  padding: 6px;
  font-size: 13px;
}
.phone-card.alt b { background: white; color: var(--ink); }
.phone-card.cool b { background: #2f7cf6; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan {
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.plan:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--accent) 24%, var(--line-strong));
  box-shadow: 0 24px 46px -32px rgba(21, 23, 28, 0.75);
}
.plan.featured {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 90, 61, 0.18) 0%, transparent 56%),
    var(--dark);
  color: var(--dark-text);
  border-color: rgba(255, 90, 61, 0.3);
  box-shadow: 0 24px 48px -30px rgba(12, 16, 24, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.plan.featured:hover {
  border-color: rgba(255, 90, 61, 0.52);
  box-shadow: 0 30px 56px -32px rgba(12, 16, 24, 0.88), 0 0 32px -12px rgba(255, 90, 61, 0.18);
}
.plan.featured p,
.plan.featured li { color: #b8c3d4; }
.ribbon {
  position: absolute;
  right: 20px;
  top: 18px;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.price {
  margin-top: 16px;
  font-size: 42px;
  font-weight: 900;
}
.price s {
  color: var(--soft);
  font-size: 22px;
  font-weight: 600;
}
.plan p {
  color: var(--muted);
  margin-top: 12px;
  min-height: 74px;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  gap: 9px;
  color: var(--muted);
  flex: 1;
}
.plan li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
  font-size: 13px;
  display: inline-block;
  margin-right: 9px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  transform: none;
}

.faq-wrap {
  max-width: 820px;
}
details {
  padding: 0;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
details + details { margin-top: 10px; }
details:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--accent) 20%, var(--line-strong));
  box-shadow: 0 18px 32px -28px rgba(21, 23, 28, 0.7);
}
details[open] {
  border-color: color-mix(in oklab, var(--accent) 28%, var(--line-strong));
}
summary {
  cursor: pointer;
  padding: 19px 22px;
  font-weight: 850;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: color 0.16s ease, background 0.16s ease;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--soft);
  border-bottom: 2px solid var(--soft);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.16s ease, border-color 0.16s ease;
  flex: 0 0 auto;
}
summary:hover {
  color: var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent 48%);
}
details[open] summary::after {
  border-color: var(--accent);
  transform: rotate(225deg) translate(-2px, -1px);
}
details p {
  color: var(--muted);
  padding: 0 22px 20px;
  margin-top: 0;
}

.final-cta {
  background: var(--dark);
  color: var(--dark-text);
  padding: 74px 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 320px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 90, 61, 0.15), transparent 68%);
  pointer-events: none;
}
.final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.final-inner h2 {
  max-width: 720px;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .section-grid,
  .brand-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy { max-width: 760px; }
  .hero-clip { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .wrap { padding: 0 14px; }
  .nav-links { display: none; }
  .nav-inner { gap: 12px; }
  .nav .btn {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 13px;
  }
  .logo { font-size: 17px; }
  .hero { padding-top: 46px; }
  .studio-top,
  .pain-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }
  .pain-grid { row-gap: 20px; }
  .pain-card {
    grid-row: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .proof-grid {
    grid-template-columns: 1fr;
    border-left: none;
  }
  .proof-grid div {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 16px;
  }
  .proof-grid div:last-child {
    border-bottom: none;
  }
  .clip-grid {
    max-width: none;
    grid-template-columns: repeat(2, 1fr);
  }
  .flow {
    grid-template-columns: 1fr;
    padding-left: 46px;
    gap: 18px;
  }
  .flow-line {
    left: 17px;
    right: auto;
    top: 18px;
    bottom: 18px;
    width: 8px;
    height: auto;
    border-radius: 999px;
    overflow: visible;
  }
  .flow-pulse {
    top: -8%;
    left: -1px;
    width: 100%;
    height: 18%;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    animation: flowPulseV 2.8s ease-in-out infinite;
  }
  .flow-node:not(:last-of-type)::after { display: none; }
  .phone-row { grid-template-columns: 1fr; }
  .phone-card { aspect-ratio: 16 / 9; }
  .final-inner {
    display: grid;
    justify-items: start;
  }
}

@media (max-width: 520px) {
  .nav .btn { display: none; }
  .steps { grid-template-columns: 1fr; }
  .clip-grid { grid-template-columns: 1fr; }
  .sim { padding: 14px; border-radius: 16px; }
  .section { padding: 64px 0; }
  .pain-card { padding: 24px 20px; }
  .btn { width: 100%; }
  .nav .btn { width: auto; }
}

/* ── Founding / early-access block ────────────────────── */
.founding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.founding-lead h2 { margin: 10px 0 14px; }
.founding-lead p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 46ch;
}
.founding-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.founding-perks li {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 20px 44px -40px rgba(12, 16, 24, 0.5);
}
.founding-perk-mark {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 4px;
  background: linear-gradient(150deg, #ff7058, var(--accent-2));
}
.founding-perks b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.founding-perks span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }

@media (max-width: 820px) {
  .founding-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Waitlist modal ────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 17, 22, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modal-fade-in 0.2s ease;
}
.modal-overlay[hidden] { display: none !important; }

@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  position: relative;
  background: var(--surface);
  border-radius: 20px;
  padding: 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.4);
  animation: modal-slide-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modal-slide-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.modal-close:hover { background: var(--surface-2); color: var(--ink); }

.modal-step h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}
.modal-step > p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 20px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
}
.modal-form input[type="email"]::placeholder { color: var(--soft); }
.modal-form input[type="email"]:focus { border-color: var(--accent); }
.modal-form .btn { width: 100%; }

.modal-fine {
  font-size: 12.5px;
  color: var(--soft);
  text-align: center;
  margin: 10px 0 0;
}

.modal-success { text-align: center; }
.modal-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(26, 163, 122, 0.12);
  color: #1aa37a;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}
.modal-success .btn { width: 100%; margin-bottom: 10px; }
.modal-success .btn-secondary { background: transparent; }

@media (max-width: 480px) {
  .modal-card { padding: 24px 20px; }
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.footer-x {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  transition: color 0.16s ease;
}
.footer-x:hover { color: var(--ink); }
