/* ══════════════════════════════════════════════════════════════════════
   Stitchy: Direction A palette and type, lifted from the app's own
   design system (video-to-image ReefPalette / ReefTypography).
   Light first with a lime accent on near-black ink, true-black dark mode.
     Display · Space Grotesk   Body · Hanken Grotesk   Numeric · JetBrains Mono
   Shared by the landing page, privacy policy and terms.
   ══════════════════════════════════════════════════════════════════════ */
:root {
  --st-primary:       #c7f231;  /* Reef.primary (constant)   */
  --st-on-accent:     #0a0a0a;  /* Reef.onAccent (constant)  */
  --st-bg:            #ffffff;  /* Reef.background           */
  --st-sunken:        #f4f4f5;  /* Reef.backgroundSunken     */
  --st-card:          #f4f4f5;  /* Reef.card                 */
  --st-card-hi:       #ededf0;  /* Reef.cardHi               */
  --st-ink:           #0a0a0a;  /* Reef.ink                  */
  --st-ink2:          #52525b;  /* Reef.ink2                 */
  --st-ink3:          #8e8e93;  /* Reef.ink3                 */
  --st-line:          #e4e4e9;  /* Reef.line                 */
  --st-readable:      #5f7a0a;  /* Reef.primaryReadable      */
  --st-ok:            #2e7d52;  /* Reef.ok                   */
  --st-danger:        #ff6b6b;  /* Reef.danger               */
  --st-primary-soft:  rgba(199, 242, 49, 0.28);
  --st-header:        rgba(255, 255, 255, 0.82);
  --st-shadow:        0 18px 44px rgba(10, 10, 10, 0.14), 0 3px 10px rgba(10, 10, 10, 0.06);

  --st-display: "Space Grotesk", system-ui, sans-serif;
  --st-body:    "Hanken Grotesk", system-ui, sans-serif;
  --st-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Remap the site-wide tokens so the shared header / footer follow Stitchy */
  --bg: var(--st-bg);
  --bg-elevated: var(--st-sunken);
  --text: var(--st-ink);
  --text-muted: var(--st-ink2);
  --text-faint: var(--st-ink3);
  --border: var(--st-line);
  --border-hover: var(--st-ink3);
  --accent: var(--st-readable);
  --font-sans: var(--st-body);
  --radius: 24px;           /* ReefRadius.xl */
  --radius-sm: 14px;        /* ReefRadius.md */
}

@media (prefers-color-scheme: dark) {
  :root {
    --st-bg:           #0a0a0a;
    --st-sunken:       #050505;
    --st-card:         #161618;
    --st-card-hi:      #26262a;
    --st-ink:          #fafafa;
    --st-ink2:         #a1a1aa;
    --st-ink3:         #71717a;
    --st-line:         #2a2a2e;
    --st-readable:     #c7f231;
    --st-ok:           #7bd9a5;
    --st-primary-soft: rgba(199, 242, 49, 0.14);
    --st-header:       rgba(10, 10, 10, 0.78);
    --st-shadow:       0 18px 44px rgba(0, 0, 0, 0.55), 0 3px 10px rgba(0, 0, 0, 0.4);
  }
}

body {
  font-family: var(--st-body);
  color: var(--st-ink);
  background:
    radial-gradient(900px 560px at 50% -12%, rgba(199, 242, 49, 0.30), transparent 66%),
    var(--st-bg);
}
@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(900px 560px at 50% -12%, rgba(199, 242, 49, 0.14), transparent 66%),
      var(--st-bg);
  }
}

/* ── Shared chrome ────────────────────────────────────────────────────── */
.site-header { background: var(--st-header); border-bottom-color: var(--st-line); }
.site-header .logo,
.site-footer .logo {
  font-family: var(--st-display); font-weight: 700;
  background: none; -webkit-text-fill-color: var(--st-ink); color: var(--st-ink);
}
.nav-link:hover { color: var(--st-ink); background: var(--st-card); }
.site-footer { background: var(--st-sunken); border-top: 1px solid var(--st-line); }
.footer-col h4 { font-family: var(--st-mono); font-weight: 500; letter-spacing: 0.12em; }
.footer-col a:hover { color: var(--st-readable); }

h1, h2, h3 { font-family: var(--st-display); letter-spacing: -0.02em; }

/* Mono uppercase label, as in the app's section headers */
.st-label {
  font-family: var(--st-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--st-ink3);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.st-hero {
  text-align: center; display: flex; flex-direction: column; align-items: center;
  gap: 20px; padding: 88px 24px 48px; max-width: 780px; margin: 0 auto;
}
.st-hero-icon {
  width: 120px; height: 120px; border-radius: 27px;
  box-shadow: 0 22px 54px rgba(120, 150, 20, 0.35);
}
/* Black tag with lime text, the "Video → Image" mark from the store art */
.st-tag {
  display: inline-block; padding: 4px 12px; border-radius: 6px;
  background: var(--st-on-accent); color: var(--st-primary);
  font-family: var(--st-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
}
@media (prefers-color-scheme: dark) {
  .st-tag { background: var(--st-primary); color: var(--st-on-accent); }
}
.st-hero h1 {
  margin: 0; font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 700; line-height: 1.02;
  color: var(--st-ink);
}
.st-hero h1 mark {
  color: inherit; padding: 0 0.08em;
  background: linear-gradient(transparent 58%, var(--st-primary) 58%, var(--st-primary) 92%, transparent 92%);
}
@media (prefers-color-scheme: dark) {
  .st-hero h1 mark { color: var(--st-primary); background: none; }
}
.st-hero .st-lead {
  margin: 0; max-width: 560px; font-size: 1.125rem; line-height: 1.65; color: var(--st-ink2);
}
.st-hero .store-links { justify-content: center; padding-top: 8px; }

/* Store buttons on a light page: near-black pill, like the app's dark controls */
.st-hero .store-btn {
  background: var(--st-on-accent); border-color: var(--st-on-accent); color: #fff;
  border-radius: 14px; padding: 10px 18px;
}
.st-hero .store-btn:hover { background: #26262a; border-color: #26262a; }
@media (prefers-color-scheme: dark) {
  .st-hero .store-btn { background: var(--st-card-hi); border-color: var(--st-line); }
  .st-hero .store-btn:hover { background: #323237; }
}

/* ── Stat chips ───────────────────────────────────────────────────────── */
.st-stats {
  max-width: 820px; margin: 0 auto; padding: 0 24px 8px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.st-stat {
  background: var(--st-card); border: 1px solid var(--st-line); border-radius: 999px;
  padding: 7px 16px; font-size: 14px; color: var(--st-ink2);
}
.st-stat strong { font-family: var(--st-mono); font-weight: 600; color: var(--st-ink); }

/* ── Section heads ────────────────────────────────────────────────────── */
.st-section-head { max-width: var(--max-width); margin: 0 auto; padding: 56px 24px 22px; text-align: center; }
.st-section-head .st-label { display: block; margin-bottom: 10px; }
.st-section-head h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; margin: 0 0 8px; color: var(--st-ink); }
.st-section-head p { margin: 0 auto; max-width: 560px; color: var(--st-ink2); }

/* ── Screenshots ──────────────────────────────────────────────────────── */
.st-shots {
  max-width: var(--max-width); margin: 0 auto; padding: 4px 24px 24px;
  display: flex; gap: 20px; overflow-x: auto; justify-content: safe center;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.st-shot { flex: 0 0 auto; width: 200px; margin: 0; scroll-snap-align: center; }
.st-shot img {
  width: 100%; height: auto; display: block; border-radius: 20px;
  border: 1px solid var(--st-line); box-shadow: var(--st-shadow);
}
.st-shots::-webkit-scrollbar { height: 8px; }
.st-shots::-webkit-scrollbar-track { background: var(--st-card); border-radius: 999px; }
.st-shots::-webkit-scrollbar-thumb { background: var(--st-primary); border-radius: 999px; }

/* ── How it works: numbered steps, like the How to record sheet ──────── */
.st-steps {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px;
  counter-reset: step;
}
.st-step {
  background: var(--st-card); border-radius: var(--radius); padding: 24px;
  counter-increment: step;
}
.st-step::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; margin-bottom: 14px;
  background: var(--st-primary); color: var(--st-on-accent);
  font-family: var(--st-mono); font-weight: 600; font-size: 14px;
}
.st-step h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--st-ink); }
.st-step p { margin: 0; font-size: 15px; color: var(--st-ink2); }

/* "What breaks a stitch" tip card */
.st-tips {
  max-width: 760px; margin: 16px auto 0; padding: 22px 24px;
  background: var(--st-card); border-radius: var(--radius);
}
.st-tips-wrap { padding: 0 24px; }
.st-tips .st-label { display: block; margin-bottom: 12px; }
.st-tips ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 24px; }
.st-tips li { position: relative; padding-left: 24px; font-size: 15px; color: var(--st-ink2); }
.st-tips li::before { content: "✕"; position: absolute; left: 0; color: var(--st-danger); font-weight: 700; }
.st-tips .st-note { margin: 14px 0 0; font-size: 14px; color: var(--st-ink3); }

/* ── Features ─────────────────────────────────────────────────────────── */
.st-features {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px;
}
.st-feature {
  background: var(--st-bg); border: 1px solid var(--st-line); border-radius: var(--radius); padding: 24px;
}
.st-feature h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--st-ink); }
.st-feature p { margin: 0; font-size: 15px; color: var(--st-ink2); }
.st-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 14px;
  background: var(--st-primary-soft); color: var(--st-readable);
}
.st-icon svg { width: 22px; height: 22px; }

/* ── Export demo strip: mono spec readout from the Export screen ─────── */
.st-spec {
  max-width: 760px; margin: 16px auto 0; padding: 0 24px;
}
.st-spec-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--st-card); border-radius: var(--radius); padding: 18px 22px;
  font-family: var(--st-mono); font-size: 14px; color: var(--st-ink2);
}
.st-spec-card b { color: var(--st-ink); font-weight: 600; }
.st-chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--st-primary); color: var(--st-on-accent); font-weight: 600;
}

/* ── Pro card ─────────────────────────────────────────────────────────── */
.st-pro { max-width: 600px; margin: 0 auto; padding: 0 24px 96px; }
.st-pro-card {
  background: var(--st-card); border-radius: var(--radius); padding: 32px 28px; text-align: center;
}
.st-pro-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 12px;
  background: var(--st-primary-soft); color: var(--st-readable);
}
.st-pro-badge svg { width: 30px; height: 30px; }
.st-pro-card h3 { margin: 0 0 4px; font-size: 26px; font-weight: 700; color: var(--st-ink); }
.st-pro-card .st-sub { margin: 0; color: var(--st-ink2); font-size: 15px; }
.st-perks { list-style: none; margin: 22px auto 0; padding: 0; max-width: 360px; text-align: left; }
.st-perks li { padding: 8px 0 8px 32px; position: relative; font-size: 15px; color: var(--st-ink2); }
.st-perks li strong { display: block; color: var(--st-ink); font-weight: 600; }
.st-perks li::before {
  content: "✓"; position: absolute; left: 0; top: 10px;
  width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--st-primary); color: var(--st-on-accent); font-size: 12px; font-weight: 700;
}
.st-price-btn {
  display: block; margin: 24px auto 0; max-width: 360px; padding: 15px 20px; border-radius: 18px;
  background: var(--st-primary); color: var(--st-on-accent); font-weight: 700; font-size: 16px;
}
.st-fine { margin: 12px 0 0; font-family: var(--st-mono); font-size: 12.5px; color: var(--st-ink3); }
.st-free {
  max-width: 600px; margin: 0 auto 16px; padding: 0 24px; text-align: center;
  font-size: 15px; color: var(--st-ink2);
}

/* ── Legal pages ──────────────────────────────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: 88px 24px 96px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 2.8rem); font-weight: 700; margin: 0 0 8px; }
.legal .legal-updated { font-family: var(--st-mono); font-size: 13px; color: var(--st-ink3); margin: 0 0 40px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--st-ink2); font-size: 15.5px; line-height: 1.75; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--st-readable); text-decoration: underline; }

@media (max-width: 640px) {
  .st-hero { padding-top: 64px; }
  .st-shot { width: 190px; }
  .nav-link { padding: 6px 8px; }
}
