/* Reels Autopilot. Desktop grey, slate ink, one record-red. The timeline in the hero is the only loud thing. */
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-var.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-var.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --desk: #e9ecef;      /* page: a desktop wallpaper grey */
  --panel: #f7f8fa;     /* lighter surface */
  --ink: #1d2433;       /* slate text */
  --soft: #4f5869;      /* secondary text */
  --rec: #d92d20;       /* record red: buttons, kept footage */
  --dot: #f2382f;       /* the REC dot */
  --fast: #7e8796;      /* sped-up footage */
  --idle: #c3c8cf;      /* dead time */
  --phone: #000000;

  /* scale: 15 / 18 / 21 / 28 / 40 / 64 */
  --t-small: 0.9375rem;
  --t-body: 1.125rem;
  --t-h3: 1.3125rem;
  --t-lead: clamp(1.1875rem, 1rem + 0.6vw, 1.3125rem);
  --t-h2: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  --t-h1: clamp(2.375rem, 1.4rem + 3vw, 3.5rem);

  --m: clamp(20px, 4vw, 56px);
  --max: 1200px;
  --radius-phone: 34px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--desk); color: var(--ink);
  font-family: "Figtree", system-ui, sans-serif; font-size: var(--t-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: "Unbounded", system-ui, sans-serif; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: var(--t-h1); font-weight: 700; line-height: 1.05; }
h2 { font-size: var(--t-h2); font-weight: 600; line-height: 1.12; }
h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[data-mode="sales"] [data-show="waitlist"], html[data-mode="waitlist"] [data-show="sales"] { display: none !important; }

section { padding: clamp(72px, 9vw, 128px) var(--m); }
section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px;
  border-radius: 999px; font-weight: 700; font-size: var(--t-body); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, transform .12s;
}
.btn:active { transform: scale(.98); }
.btn-rec { background: var(--rec); color: #fff; }
.btn-rec:hover { background: #b42318; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--desk); }

/* nav */
.nav { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--m); max-width: calc(var(--max) + 2 * var(--m)); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 1rem; text-decoration: none; letter-spacing: -0.01em; }
.rec { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); flex: none; }
.nav nav { display: flex; gap: 28px; font-weight: 500; }
.nav nav a { text-decoration: none; }
.nav nav a:hover { text-decoration: underline; }

/* HERO */
.hero { padding-top: clamp(24px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); grid-template-areas: "copy phone" "tl phone"; gap: 40px clamp(32px, 6vw, 96px); max-width: calc(var(--max) + 2 * var(--m)); margin: 0 auto; align-items: start; }
.hero > * { max-width: none; margin: 0; }
.hero-copy { grid-area: copy; padding-top: clamp(8px, 4vw, 56px); display: grid; gap: 24px; }
.hero h1 { max-width: 20ch; }
.lead { font-size: var(--t-lead); color: var(--soft); max-width: 46ch; }
.actions { display: grid; gap: 10px; justify-items: start; }
.fine { font-size: var(--t-small); color: var(--soft); }
.phone {
  grid-area: phone; justify-self: center; width: min(100%, 340px); aspect-ratio: 9 / 16; background: var(--phone);
  border-radius: var(--radius-phone); padding: 10px; overflow: hidden;
}
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-phone) - 10px); }

/* the timeline: raw length, then squeezed to the Reel length */
.timeline { grid-area: tl; align-self: end; background: var(--panel); border-radius: 18px; padding: 22px 24px 20px; display: grid; gap: 14px; }
.tl-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.tl-clock { font-family: "Unbounded", sans-serif; font-size: var(--t-h2); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; position: relative; }
.tl-out { position: absolute; right: 0; top: 0; opacity: 0; color: var(--rec); }
.tl-track { background: var(--desk); border-radius: 8px; }
.tl-bar { display: flex; gap: 3px; height: 44px; width: 100%; transition: width 1.4s var(--ease); }
.seg { flex: var(--raw) 1 0; border-radius: 6px; min-width: 4px; transition: flex-grow 1.4s var(--ease); }
.keep { background: var(--rec); }
.fast { background: var(--fast); }
.idle { background: var(--idle); }
.tl-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: var(--t-small); color: var(--soft); }
.tl-key li { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
/* squeezed state (added by script once, on load) */
.squeezed .seg { flex-grow: var(--out); }
.squeezed .tl-bar { width: 65.8%; }
.squeezed .tl-raw { opacity: 0; transition: opacity .3s .9s; }
.squeezed .tl-out { opacity: 1; transition: opacity .3s 1.1s; }

/* PROBLEM */
.problem { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 6vw, 96px); max-width: calc(var(--max) + 2 * var(--m)); margin: 0 auto; }
.problem > * { max-width: none; margin: 0; }
.problem-body { display: grid; gap: 18px; max-width: 60ch; }
.quotes { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.quotes li { padding-left: 18px; border-left: 4px solid var(--idle); font-size: var(--t-lead); line-height: 1.4; }
.quotes q { font-weight: 600; }
.quotes a { display: block; font-size: var(--t-small); color: var(--soft); margin-top: 2px; }

/* HOW IT WORKS */
.workflow { background: var(--panel); }
.workflow h2 { margin-bottom: 48px; }
.steps { list-style: none; counter-reset: s; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: s; display: grid; gap: 12px; align-content: start; }
.steps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; border-radius: 12px; background: var(--desk); }
.steps h3::before { content: counter(s) ". "; color: var(--rec); }
.steps p { color: var(--soft); }
.local { margin-top: 40px; font-weight: 600; }

/* STYLES */
.styles { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 6vw, 96px); max-width: calc(var(--max) + 2 * var(--m)); margin: 0 auto; align-items: center; }
.styles > * { max-width: none; margin: 0; }
.styles-copy { display: grid; gap: 18px; }
.styles-copy > p { color: var(--soft); }
.style-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.style-list button {
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; cursor: pointer;
  font-weight: 600; transition: background-color .15s, color .15s;
}
.style-list button small { font-size: .8em; font-weight: 500; color: var(--soft); margin-left: 4px; }
.style-list button:hover { background: var(--panel); }
.style-list button[aria-pressed="true"] { background: var(--ink); color: var(--desk); }
.style-list button[aria-pressed="true"] small { color: var(--idle); }
.style-note { font-size: var(--t-small); }
.phone-styles { grid-area: auto; width: min(100%, 300px); }
.phone-styles figcaption { display: none; }

/* FEATURES */
.features h2 { margin-bottom: 40px; }
.feat { margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.feat dt { font-family: "Unbounded", sans-serif; font-weight: 600; font-size: var(--t-h3); letter-spacing: -0.01em; margin-bottom: 8px; }
.feat dt small { font-family: "Figtree", sans-serif; font-size: .7em; font-weight: 600; color: var(--rec); margin-left: 6px; letter-spacing: 0; }
.feat dd { margin: 0; color: var(--soft); max-width: 36ch; }

/* PRICING */
.pricing { background: var(--panel); display: grid; gap: 28px; }
.pricing h2 { width: 100%; }
.wave, .counter, .needs { width: 100%; max-width: var(--max); }
.wave { color: var(--soft); max-width: var(--max); }
.counter { font-weight: 700; font-size: var(--t-lead); }
.counter-left { color: var(--rec); font-family: "Unbounded", sans-serif; }
.plans { width: 100%; display: grid; grid-template-columns: 7fr 5fr; gap: 20px; align-items: stretch; }
.plan { border-radius: 24px; padding: clamp(28px, 3.5vw, 44px); display: grid; gap: 16px; align-content: start; }
.plan-pro { background: var(--ink); color: var(--desk); }
.plan-starter { background: var(--desk); }
.plan h3 { font-size: var(--t-h2); }
.price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.now { font-family: "Unbounded", sans-serif; font-size: var(--t-h1); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.later { font-size: var(--t-small); text-decoration: line-through; opacity: .8; }
.plan-for { font-weight: 600; }
.plan ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.plan-pro ul li::marker { color: var(--dot); }
.plan .btn { justify-self: start; margin-top: 8px; }
.needs { font-size: var(--t-small); color: var(--soft); }
.join { width: 100%; max-width: var(--max); background: var(--desk); border-radius: 24px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; }
.join-row { display: flex; flex-wrap: wrap; gap: 10px; }
.join-row input { flex: 1 1 260px; min-height: 56px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-small); color: var(--soft); max-width: 70ch; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.join-msg { font-weight: 600; min-height: 1.5em; }

/* WHAT YOU DOWNLOAD */
.inside h2 { margin-bottom: 36px; }
.inside-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.inside-grid > div { display: grid; gap: 14px; }
.inside-grid p { color: var(--soft); max-width: 50ch; }
pre { margin: 0; overflow-x: auto; }
.tree, .script { background: var(--ink); color: #e6e9ee; border-radius: 16px; padding: 24px; font-size: .9375rem; line-height: 1.6; }
.tree code, .script code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* GUARANTEE */
.guarantee { text-align: center; display: grid; gap: 16px; justify-items: center; }
.guarantee h2 { max-width: 22ch; }
.guarantee p { color: var(--soft); max-width: 48ch; }

/* FAQ */
.faq { background: var(--panel); }
.faq h2 { margin-bottom: 28px; max-width: 760px; }
.faq details { max-width: 760px; border-top: 2px solid var(--desk); }
.faq details:last-child { border-bottom: 2px solid var(--desk); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: var(--t-lead); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: "Unbounded", sans-serif; font-size: 1.5rem; color: var(--rec); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--soft); max-width: 62ch; }

/* CLOSE */
.close { text-align: center; display: grid; gap: 28px; justify-items: center; }
.close h2 { font-size: var(--t-h1); font-weight: 700; max-width: 16ch; }

/* FOOTER */
.footer { padding: 40px var(--m) 48px; max-width: calc(var(--max) + 2 * var(--m)); margin: 0 auto; display: grid; gap: 18px; }
.f-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.f-links a { text-decoration: none; }
.f-links a:hover { text-decoration: underline; }
.f-note { font-size: var(--t-small); color: var(--soft); max-width: 80ch; }

/* reduced motion: show the final, squeezed timeline straight away */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seg, .tl-raw, .tl-out { transition: none !important; }
}

/* TABLET */
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .problem, .styles { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "tl" "phone"; }
  .phone { width: min(60vw, 320px); }
}

/* PHONE */
@media (max-width: 720px) {
  .nav nav { display: none; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "tl" "phone"; gap: 24px; padding-top: 8px; }
  .hero-copy { padding-top: 0; gap: 18px; }
  .actions { justify-items: stretch; }
  .actions .btn { width: 100%; }
  .phone { width: 62vw; }
  .timeline { padding: 18px; }
  .problem, .styles { grid-template-columns: 1fr; }
  .steps, .feat, .inside-grid { grid-template-columns: 1fr; }
  .phone-styles { width: 64vw; justify-self: center; order: -1; }
  .plan .btn, .close .btn { width: 100%; justify-self: stretch; }
  .guarantee, .close { text-align: left; justify-items: start; }
}

/* LEGAL + THANKS pages */
.page { padding: 40px var(--m) 96px; max-width: 820px; margin: 0 auto; }
.page h1 { font-size: var(--t-h2); margin-bottom: 28px; }
.page h2 { font-size: var(--t-h3); margin: 36px 0 10px; }
.page p, .page li { max-width: 68ch; }
.page p + p { margin-top: 14px; }
.page ul, .page ol { padding-left: 1.3em; display: grid; gap: 6px; }
.page .updated { font-size: var(--t-small); color: var(--soft); margin-bottom: 20px; }
.page-nav { padding: 20px var(--m); display: flex; justify-content: space-between; max-width: 820px; margin: 0 auto; }
.page-nav .wordmark { font-family: "Unbounded", sans-serif; font-weight: 600; text-decoration: none; }
.thanks-video { width: min(100%, 720px); aspect-ratio: 16 / 9; background: var(--ink); color: var(--desk); border-radius: 18px; margin: 28px 0; display: grid; place-items: center; padding: 20px; text-align: center; }
