/* Volt Graphite — values match src/theme/colors.ts in the app. Dark-only, like the app. */
:root {
  color-scheme: dark;
  --bg: #14171c;
  --surface: #1c2028;
  --surface-alt: #20262e;
  --border: #2a2f37;
  --text: #f3f5f0;
  --text-muted: #8a9296;
  --accent: #c6ff3d;
  --on-accent: #14171c;
  --max-width: 1080px;
  --radius: 14px;
  --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 24px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.wordmark img { width: 32px; height: 32px; border-radius: 8px; }

.site-nav { display: flex; gap: 20px; font-size: 14px; }

.site-nav a { color: var(--text-muted); text-decoration: none; }

.site-nav a:hover { color: var(--accent); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-block: 40px 72px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

h1 .accent { color: var(--accent); }

.lead {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 34ch;
  margin: 0 0 32px;
}

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.store-btn:hover { transform: translateY(-2px); }

.store-btn svg { width: 22px; height: 22px; flex: none; }

.store-btn.is-disabled {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  cursor: default;
}

.store-btn.is-disabled:hover { transform: none; }

.store-btn .soon {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 1px 8px;
}

.price-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Phone frame around screenshots */

.phone {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  padding: 10px;
  border-radius: 38px;
  background: #0b0d10;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(198, 255, 61, 0.06);
}

/* Each img carries width/height attributes, so the browser reserves the right space per screenshot. */
.phone img { border-radius: 28px; }

.hero .phone { max-width: 320px; position: relative; }

.hero-visual { position: relative; }

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 0;
  background: radial-gradient(closest-side, rgba(198, 255, 61, 0.16), transparent);
  pointer-events: none;
}

/* Promo reel
   Five beats over an 18s loop. Beat 2 runs longer (6s) because it scrolls the full-length
   play builder capture, so each beat carries its own explicit keyframes rather than sharing
   one set with staggered delays. Generated from beats = [3, 6, 3, 3, 3].
   Frames, captions and pips all run on the same 18s timeline. */

.reel { --reel-loop: 18s; position: relative; }

.reel-screen {
  position: relative;
  aspect-ratio: 540 / 1142;
  border-radius: 28px;
  overflow: hidden;
  /* Shows below the shorter final-summary screenshot, matching the app's own background. */
  background: var(--bg);
}

.reel-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
  border-radius: 0;
  opacity: 0;
  animation-duration: var(--reel-loop);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

/* The full-length capture keeps its natural height and slides up inside the frame. */
.reel-frame--scroll {
  inset: 0 0 auto 0;
  height: auto;
  object-fit: fill;
}

.reel-captions {
  position: relative;
  height: 1.6em;
  margin: 24px 0 14px;
  padding: 0;
  list-style: none;
  text-align: center;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}

.reel-captions li {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation-duration: var(--reel-loop);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.reel-pips { display: flex; justify-content: center; gap: 8px; }

.reel-pips span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  animation-duration: var(--reel-loop);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

/* Hovering pauses it, so a frame can actually be read. */
.reel:hover .reel-frame,
.reel:hover .reel-captions li,
.reel:hover .reel-pips span { animation-play-state: paused; }

.reel-frame:nth-child(1) { animation-name: reel-frame-1; }
.reel-captions li:nth-child(1) { animation-name: reel-caption-1; }
.reel-pips span:nth-child(1) { animation-name: reel-pip-1; }
.reel-frame:nth-child(2) { animation-name: reel-frame-2, reel-scroll; }
.reel-captions li:nth-child(2) { animation-name: reel-caption-2; }
.reel-pips span:nth-child(2) { animation-name: reel-pip-2; }
.reel-frame:nth-child(3) { animation-name: reel-frame-3; }
.reel-captions li:nth-child(3) { animation-name: reel-caption-3; }
.reel-pips span:nth-child(3) { animation-name: reel-pip-3; }
.reel-frame:nth-child(4) { animation-name: reel-frame-4; }
.reel-captions li:nth-child(4) { animation-name: reel-caption-4; }
.reel-pips span:nth-child(4) { animation-name: reel-pip-4; }
.reel-frame:nth-child(5) { animation-name: reel-frame-5; }
.reel-captions li:nth-child(5) { animation-name: reel-caption-5; }
.reel-pips span:nth-child(5) { animation-name: reel-pip-5; }

@keyframes reel-frame-1 {
  0% { opacity: 1 }
  16.667% { opacity: 1 }
  19.167% { opacity: 0 }
  98.333% { opacity: 0 }
  100% { opacity: 1 }
}

@keyframes reel-caption-1 {
  0% { opacity: 1; transform: translateY(0) }
  16.667% { opacity: 1; transform: translateY(0) }
  19.167% { opacity: 0; transform: translateY(-6px) }
  98.333% { opacity: 0; transform: translateY(10px) }
  100% { opacity: 1; transform: translateY(0) }
}

@keyframes reel-pip-1 {
  0% { width: 24px; background: var(--accent) }
  16.667% { width: 24px; background: var(--accent) }
  19.167% { width: 8px; background: var(--border) }
  98.333% { width: 8px; background: var(--border) }
  100% { width: 24px; background: var(--accent) }
}

@keyframes reel-frame-2 {
  0% { opacity: 0 }
  16.667% { opacity: 0 }
  18.333% { opacity: 1 }
  50.0% { opacity: 1 }
  52.5% { opacity: 0 }
  100% { opacity: 0 }
}

@keyframes reel-caption-2 {
  0% { opacity: 0; transform: translateY(10px) }
  16.667% { opacity: 0; transform: translateY(10px) }
  18.333% { opacity: 1; transform: translateY(0) }
  50.0% { opacity: 1; transform: translateY(0) }
  52.5% { opacity: 0; transform: translateY(-6px) }
  100% { opacity: 0; transform: translateY(-6px) }
}

@keyframes reel-pip-2 {
  0% { width: 8px; background: var(--border) }
  16.667% { width: 8px; background: var(--border) }
  18.333% { width: 24px; background: var(--accent) }
  50.0% { width: 24px; background: var(--accent) }
  52.5% { width: 8px; background: var(--border) }
  100% { width: 8px; background: var(--border) }
}

@keyframes reel-frame-3 {
  0% { opacity: 0 }
  50.0% { opacity: 0 }
  51.667% { opacity: 1 }
  66.667% { opacity: 1 }
  69.167% { opacity: 0 }
  100% { opacity: 0 }
}

@keyframes reel-caption-3 {
  0% { opacity: 0; transform: translateY(10px) }
  50.0% { opacity: 0; transform: translateY(10px) }
  51.667% { opacity: 1; transform: translateY(0) }
  66.667% { opacity: 1; transform: translateY(0) }
  69.167% { opacity: 0; transform: translateY(-6px) }
  100% { opacity: 0; transform: translateY(-6px) }
}

@keyframes reel-pip-3 {
  0% { width: 8px; background: var(--border) }
  50.0% { width: 8px; background: var(--border) }
  51.667% { width: 24px; background: var(--accent) }
  66.667% { width: 24px; background: var(--accent) }
  69.167% { width: 8px; background: var(--border) }
  100% { width: 8px; background: var(--border) }
}

@keyframes reel-frame-4 {
  0% { opacity: 0 }
  66.667% { opacity: 0 }
  68.333% { opacity: 1 }
  83.333% { opacity: 1 }
  85.833% { opacity: 0 }
  100% { opacity: 0 }
}

@keyframes reel-caption-4 {
  0% { opacity: 0; transform: translateY(10px) }
  66.667% { opacity: 0; transform: translateY(10px) }
  68.333% { opacity: 1; transform: translateY(0) }
  83.333% { opacity: 1; transform: translateY(0) }
  85.833% { opacity: 0; transform: translateY(-6px) }
  100% { opacity: 0; transform: translateY(-6px) }
}

@keyframes reel-pip-4 {
  0% { width: 8px; background: var(--border) }
  66.667% { width: 8px; background: var(--border) }
  68.333% { width: 24px; background: var(--accent) }
  83.333% { width: 24px; background: var(--accent) }
  85.833% { width: 8px; background: var(--border) }
  100% { width: 8px; background: var(--border) }
}

@keyframes reel-frame-5 {
  0% { opacity: 0 }
  83.333% { opacity: 0 }
  85.0% { opacity: 1 }
  97.5% { opacity: 1 }
  100% { opacity: 0 }
}

@keyframes reel-caption-5 {
  0% { opacity: 0; transform: translateY(10px) }
  83.333% { opacity: 0; transform: translateY(10px) }
  85.0% { opacity: 1; transform: translateY(0) }
  97.5% { opacity: 1; transform: translateY(0) }
  100% { opacity: 0; transform: translateY(-6px) }
}

@keyframes reel-pip-5 {
  0% { width: 8px; background: var(--border) }
  83.333% { width: 8px; background: var(--border) }
  85.0% { width: 24px; background: var(--accent) }
  97.5% { width: 24px; background: var(--accent) }
  100% { width: 8px; background: var(--border) }
}

@keyframes reel-scroll {
  0% { transform: translateY(0); }
  20.0% { transform: translateY(0); }
  46.667% { transform: translateY(-42.642%); }
  52.5% { transform: translateY(-42.642%); }
  53.056% { transform: translateY(0); }
  100% { transform: translateY(0); }
}

/* No motion: freeze on the first beat, with the capture at the top of the page. */
@media (prefers-reduced-motion: reduce) {
  .reel-frame,
  .reel-captions li,
  .reel-pips span { animation: none; }

  .reel-frame:first-child,
  .reel-captions li:first-child { opacity: 1; transform: none; }

  .reel-frame--scroll { transform: translateY(0); }

  .reel-pips span:first-child { width: 24px; background: var(--accent); }
}

/* Sections */

section { padding-block: 72px; }

section + section { border-top: 1px solid var(--border); }

h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.section-intro {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 56ch;
  margin: 0 0 48px;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step h3 { font-size: 20px; margin: 24px 0 8px; }

.step p { color: var(--text-muted); margin: 0; }

.step-number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 15px;
  margin-right: 10px;
  vertical-align: middle;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature h3 { font-size: 17px; margin: 0 0 8px; }

.feature p { color: var(--text-muted); font-size: 15px; margin: 0; }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feature-icon svg { width: 20px; height: 20px; stroke: var(--accent); }

/* Split: text beside a screenshot */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.split p { color: var(--text-muted); font-size: 17px; }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; }

.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text); }

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314171c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Privacy callout */

.callout {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px;
}

.callout h2 { margin-bottom: 12px; }

.callout p { color: var(--text-muted); font-size: 17px; margin: 0; max-width: 64ch; }

/* Pricing */

.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 16px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.plan h3 { margin: 0 0 4px; font-size: 18px; }

.plan .price { font-size: 34px; font-weight: 700; margin: 12px 0 0; }

.plan .price span { font-size: 16px; font-weight: 600; color: var(--text-muted); }

.plan .trial { color: var(--accent); font-weight: 600; font-size: 14px; margin: 0; }

.fine-print { color: var(--text-muted); font-size: 14px; margin: 24px 0 0; }

/* Final call to action */

.cta { text-align: center; }

.cta .section-intro { margin-inline: auto; }

.cta .store-row { justify-content: center; }

/* Manual (manual.html) — documentation-style layout, distinct from the marketing sections above */

.doc-header { padding-block: 8px 8px; }

.doc-title { font-size: clamp(30px, 5vw, 44px); margin: 8px 0 12px; }

.doc-lead { color: var(--text-muted); font-size: 17px; max-width: 60ch; margin: 0; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0 8px;
}

.toc h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 0 0 14px; }

.toc ol { columns: 2; column-gap: 32px; margin: 0; padding: 0 0 0 22px; }

.toc li { margin-bottom: 8px; break-inside: avoid; }

.toc a { color: var(--text); text-decoration: none; }

.toc a:hover { color: var(--accent); }

.doc-section { padding-block: 48px; border-top: 1px solid var(--border); scroll-margin-top: 24px; }

.doc-section:first-of-type { border-top: none; }

.doc-section h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 6px; }

.doc-number { color: var(--accent); font-weight: 700; margin-right: 10px; }

.doc-back { display: inline-block; font-size: 13px; color: var(--text-muted); text-decoration: none; margin-bottom: 8px; }

.doc-back:hover { color: var(--accent); }

.doc-body { display: flex; gap: 40px; align-items: flex-start; margin-top: 20px; }

.doc-body.doc-body--reverse { flex-direction: row-reverse; }

.doc-text { flex: 1.3; min-width: 0; }

.doc-text p { color: var(--text-muted); font-size: 16px; margin: 0 0 16px; }

.doc-text p:last-child { margin-bottom: 0; }

.doc-text strong { color: var(--text); }

.doc-callout {
  border: 1px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 4px 0 16px;
}

.doc-callout p { color: var(--text); margin: 0; }

.doc-callout p + p { margin-top: 10px; }

.doc-shots { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.doc-shots.doc-shots--row { flex-direction: row; flex-wrap: wrap; }

.doc-shot {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.doc-shot img { border-radius: 0; }

.doc-shot figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.doc-shot--wide { max-width: 340px; margin-inline: auto; }

.doc-shot--landscape { max-width: 100%; }

.doc-steps { list-style: none; margin: 0; padding: 0; }

.doc-steps li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 16px;
}

.doc-steps li strong { color: var(--text); }

.doc-steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.doc-steps { counter-reset: step; }

.doc-faq dt { color: var(--text); font-weight: 700; font-size: 16px; margin-top: 20px; }

.doc-faq dt:first-child { margin-top: 0; }

.doc-faq dd { color: var(--text-muted); font-size: 15px; margin: 6px 0 0; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 32px 48px;
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

.site-footer a { color: var(--text-muted); text-decoration: none; }

.site-footer a:hover { color: var(--accent); }

/* Narrow screens */

@media (max-width: 860px) {
  .hero,
  .split { grid-template-columns: 1fr; gap: 40px; }

  .toc ol { columns: 1; }

  .doc-body,
  .doc-body.doc-body--reverse { flex-direction: column; gap: 20px; }

  .doc-shots.doc-shots--row { flex-direction: column; }

  .doc-shot--wide { max-width: 280px; }

  .hero { padding-block: 16px 56px; text-align: center; }

  .hero .lead { margin-inline: auto; }

  .hero .store-row { justify-content: center; }

  .steps,
  .features { grid-template-columns: 1fr; }

  .steps { gap: 56px; }

  .steps .phone { max-width: 240px; }

  .split .phone { order: 2; }

  .pricing { grid-template-columns: 1fr; }

  section { padding-block: 56px; }

  .callout { padding: 28px; }
}

@media (min-width: 861px) and (max-width: 1040px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
