/* =========================================================================
   reelee.org — marketing site styles
   Built on the reelee app design tokens (round-02). Dark-first, editorial.
   ========================================================================= */

/* ---- tokens: dark (default) ------------------------------------------- */
:root {
  --bg-base: #0B0C0E;
  --bg-raised: #131518;
  --bg-card: #1C1E21;
  --bg-elevated: #25282C;
  --bg-input: #15171A;

  --fg: #F3F1EF;
  --fg-secondary: #C6C4C0;
  --fg-muted: #ADAAA7;
  --fg-subtle: #8A8E92;   /* lifted for WCAG AA on card/raised surfaces */
  --fg-on-accent: #0B1220;

  --border-subtle: #303337;
  --border: #44484C;
  --border-strong: #65696F;

  --accent: #60AAF3;
  --accent-hover: #73BDFF;
  --accent-active: #4D97DE;
  --accent-wash: rgba(96, 170, 243, 0.14);

  --stale: #F0A646;
  --approved: #5EC386;
  --coral: #FF7F6C;

  --font-serif: "Instrument Serif", "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-sans: "Geist", "Söhne", "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --tracking-overline: 0.16em;
  --tracking-mono: 0.06em;
  --tracking-display: -0.02em;

  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;

  --shadow-low: 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-subtle);
  --shadow-mid: 0 4px 14px -2px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
  --shadow-high: 0 18px 50px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border-default, var(--border));
  --shadow-focus: 0 0 0 3px var(--accent-wash), 0 0 0 1px var(--accent);

  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  --maxw: 1160px;
  --nav-h: 62px;
}

/* ---- tokens: light ---------------------------------------------------- */
:root[data-theme="light"] {
  --bg-base: #FBFAF9;
  --bg-raised: #F4F3F1;
  --bg-card: #FFFFFF;
  --bg-elevated: #EEECEA;
  --bg-input: #FFFFFF;

  --fg: #0E1216;
  --fg-secondary: #2F3338;
  --fg-muted: #44484D;
  --fg-subtle: #6B6F74;
  --fg-on-accent: #FFFFFF;

  --border-subtle: #E6E4E2;
  --border: #CCCAC7;
  --border-strong: #AEACA9;

  --accent: #0065B4;
  --accent-hover: #0053A0;
  --accent-active: #00478C;
  --accent-wash: rgba(0, 101, 180, 0.10);

  --stale: #BB7400;
  --approved: #007840;
  --coral: #C43728;   /* darkened for WCAG AA on the light raised surface */

  --shadow-low: 0 1px 2px rgba(20, 22, 28, 0.08), 0 0 0 1px var(--border-subtle);
  --shadow-mid: 0 6px 18px -4px rgba(20, 22, 28, 0.14), 0 0 0 1px var(--border-subtle);
  --shadow-high: 0 24px 60px -12px rgba(20, 22, 28, 0.20), 0 0 0 1px var(--border);
}

/* ---- reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--fg);
  font: 400 1rem/1.6 var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-xs); }
::selection { background: var(--accent); color: var(--fg-on-accent); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--fg-on-accent);
  padding: 10px 16px; border-radius: var(--radius-sm); font: 500 0.85rem var(--font-sans);
  transition: top 0.16s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---- typography helpers ---------------------------------------------- */
.eyebrow {
  font: 500 0.72rem/1.4 var(--font-mono);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.mono { font-family: var(--font-mono); letter-spacing: var(--tracking-mono); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; letter-spacing: var(--tracking-display); margin: 0; }
h2.section-title { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.04; margin-bottom: 18px; }
.section-lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--fg-secondary); max-width: 60ch; line-height: 1.55; }

section { padding-block: clamp(64px, 11vw, 132px); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }

/* ---- buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 0.9rem var(--font-sans);
  padding: 13px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.16s var(--ease-out), border-color 0.16s var(--ease-out),
              transform 0.16s var(--ease-out), color 0.16s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--fg-on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--fg-on-accent); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--bg-card); color: var(--fg); }
.btn svg { width: 16px; height: 16px; }

/* ---- header / nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in oklab, var(--bg-base) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.site-header.scrolled { border-bottom-color: var(--border-subtle); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 26px; height: 26px; }
.brand .wordmark {
  font: 600 0.98rem var(--font-sans); letter-spacing: var(--tracking-mono);
  text-transform: uppercase; color: var(--fg);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--fg-secondary); font: 500 0.87rem var(--font-sans);
  transition: color 0.14s var(--ease-out);
}
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; color: var(--fg-secondary); cursor: pointer;
  transition: border-color 0.14s var(--ease-out), color 0.14s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--fg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; }

/* ---- hero ------------------------------------------------------------- */
.hero { padding-top: clamp(48px, 8vw, 92px); padding-bottom: 0; overflow: hidden; }
.hero-inner { text-align: center; max-width: 940px; margin-inline: auto; }
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.4rem); line-height: 0.98;
  margin-bottom: 26px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(1.1rem, 2.3vw, 1.45rem); color: var(--fg-secondary);
  max-width: 40ch; margin: 0 auto 34px; line-height: 1.5;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; color: var(--fg-subtle); font: 500 0.76rem var(--font-mono); letter-spacing: var(--tracking-mono); }

/* filmstrip marquee */
.filmstrip { margin-top: clamp(48px, 8vw, 84px); position: relative; }
.filmstrip::before, .filmstrip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 14vw; max-width: 200px; z-index: 2; pointer-events: none;
}
.filmstrip::before { left: 0; background: linear-gradient(90deg, var(--bg-base), transparent); }
.filmstrip::after { right: 0; background: linear-gradient(270deg, var(--bg-base), transparent); }
.filmstrip-track {
  display: flex; gap: 16px; width: max-content;
  animation: marquee 46s linear infinite;
}
.filmstrip:hover .filmstrip-track { animation-play-state: paused; }
.filmstrip figure { margin: 0; flex: 0 0 auto; width: clamp(240px, 30vw, 380px); }
.filmstrip .frame { aspect-ratio: 16 / 9; }
.filmstrip figcaption {
  margin-top: 8px; font: 400 0.72rem var(--font-mono); letter-spacing: var(--tracking-mono);
  text-transform: uppercase; color: var(--fg-subtle); display: flex; gap: 8px; align-items: center;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .filmstrip-track { animation: none; overflow-x: auto; padding-bottom: 12px; }
}

/* ---- matte frame (app's signature image treatment) ------------------- */
.frame {
  position: relative; border-radius: var(--radius-xs); overflow: hidden;
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--border), inset 0 0 0 4px var(--bg-raised), inset 0 0 0 5px var(--border-subtle);
}
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.28);
}

/* ---- the wall (problem) ---------------------------------------------- */
.wall { background: var(--bg-raised); }
.wall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pain {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 30px 30px 32px;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.pain:hover { border-color: var(--border); transform: translateY(-3px); box-shadow: var(--shadow-mid); }
.pain .num {
  font: 500 0.72rem var(--font-mono); letter-spacing: var(--tracking-overline);
  text-transform: uppercase; color: var(--coral); margin-bottom: 16px; display: block;
}
.pain h3 { font-size: 1.55rem; line-height: 1.12; margin-bottom: 12px; }
.pain p { margin: 0; color: var(--fg-muted); font-size: 0.97rem; }

/* ---- the turn (solution) --------------------------------------------- */
.turn-lede { max-width: 820px; }
.turn-lede .big {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.1;
  margin-bottom: 20px; letter-spacing: var(--tracking-display);
}
.promises { margin-top: clamp(48px, 7vw, 80px); display: grid; gap: clamp(40px, 6vw, 72px); }
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.promise:nth-child(even) .promise-media { order: -1; }
.promise-body h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.08; margin-bottom: 14px; }
.promise-body p { color: var(--fg-secondary); font-size: 1.02rem; margin: 0; max-width: 46ch; }
.promise-body .tag {
  display: inline-block; margin-bottom: 16px;
  font: 500 0.7rem var(--font-mono); letter-spacing: var(--tracking-overline); text-transform: uppercase;
  color: var(--accent); padding: 5px 10px; border: 1px solid var(--accent-wash); border-radius: var(--radius-xs);
  background: var(--accent-wash);
}
.promise-media .frame { aspect-ratio: 16 / 9; }
.consistency-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.consistency-strip .frame { aspect-ratio: 16 / 9; }

/* ---- how it works ----------------------------------------------------- */
.how-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 64px); align-items: center; }
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pipeline li {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--border-subtle);
}
.pipeline li:last-child { border-bottom: 0; }
.pipeline .step-n { font: 500 0.72rem var(--font-mono); color: var(--fg-subtle); letter-spacing: var(--tracking-mono); }
.pipeline .step-name { font-family: var(--font-serif); font-size: 1.28rem; color: var(--fg); }
.pipeline .step-name small { display: block; font: 400 0.86rem/1.4 var(--font-sans); color: var(--fg-muted); margin-top: 3px; letter-spacing: 0; }
.pipeline li.is-out .step-name { color: var(--accent); }

.how-media { display: grid; gap: 14px; }
.how-media .frame { aspect-ratio: 16 / 9; }
.how-caption { font: 400 0.8rem var(--font-mono); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--fg-subtle); }

/* ---- features grid ---------------------------------------------------- */
.features { background: var(--bg-raised); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 26px 24px 28px;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.feature:hover { border-color: var(--border); transform: translateY(-3px); box-shadow: var(--shadow-mid); }
.feature .ficon {
  width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 18px;
  border-radius: var(--radius-sm); background: var(--accent-wash); color: var(--accent);
}
.feature .ficon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 1.3rem; line-height: 1.14; margin-bottom: 9px; }
.feature p { margin: 0; color: var(--fg-muted); font-size: 0.93rem; line-height: 1.5; }

.features-shots { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.features-shots .frame { aspect-ratio: 16 / 10; }
.features-shots figcaption { margin-top: 10px; font: 400 0.78rem var(--font-mono); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--fg-subtle); }
.features-shots figure { margin: 0; }

/* ---- why / moat ------------------------------------------------------- */
.moat-quote {
  font-family: var(--font-serif); font-size: clamp(1.9rem, 4.5vw, 3.1rem); line-height: 1.08;
  letter-spacing: var(--tracking-display); max-width: 20ch; margin: 0 0 26px;
}
.moat-quote em { color: var(--accent); font-style: italic; }
.moat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.moat-col h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.02rem; letter-spacing: 0; margin-bottom: 8px; color: var(--fg); }
.moat-col p { margin: 0; color: var(--fg-muted); font-size: 0.95rem; }
.moat-col .k { color: var(--accent); }
.logos-line {
  margin-top: clamp(40px, 6vw, 60px); padding-top: 28px; border-top: 1px solid var(--border-subtle);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
}
.logos-line .label { font: 500 0.72rem var(--font-mono); letter-spacing: var(--tracking-overline); text-transform: uppercase; color: var(--fg-subtle); }
.logos-line .name { font: 500 0.95rem var(--font-sans); color: var(--fg-secondary); }
.logos-line .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

/* ---- audiences -------------------------------------------------------- */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aud {
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 28px 26px 30px; background: var(--bg-card);
}
.aud .who { font: 500 0.72rem var(--font-mono); letter-spacing: var(--tracking-overline); text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.aud h3 { font-size: 1.4rem; margin-bottom: 10px; line-height: 1.12; }
.aud p { margin: 0; color: var(--fg-muted); font-size: 0.95rem; }
.usecases { margin-top: clamp(36px, 5vw, 52px); display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: 500 0.82rem var(--font-sans); color: var(--fg-secondary);
  padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-card);
}
.chip::before { content: "▸ "; color: var(--accent); }

/* ---- proof ------------------------------------------------------------ */
.proof { background: var(--bg-raised); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: clamp(36px, 5vw, 52px); }
.stat { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 24px; background: var(--bg-card); }
.stat .n { font-family: var(--font-serif); font-size: clamp(2.1rem, 4vw, 2.9rem); line-height: 1; color: var(--fg); }
.stat .n .accent { color: var(--accent); }
.stat .l { margin-top: 10px; font: 400 0.82rem/1.4 var(--font-sans); color: var(--fg-muted); }
.proof-note {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 22px 24px;
  background: var(--accent-wash); color: var(--fg-secondary); font-size: 0.96rem; max-width: 820px;
}
.proof-note .live { display: inline-flex; align-items: center; gap: 7px; color: var(--approved); font: 500 0.78rem var(--font-mono); letter-spacing: var(--tracking-mono); text-transform: uppercase; white-space: nowrap; }
.proof-note .live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--approved); box-shadow: 0 0 0 0 var(--approved); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94,195,134,0.5); } 70% { box-shadow: 0 0 0 8px rgba(94,195,134,0); } 100% { box-shadow: 0 0 0 0 rgba(94,195,134,0); } }
@media (prefers-reduced-motion: reduce) { .proof-note .live .pulse { animation: none; } }

/* ---- contact / CTA ---------------------------------------------------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.0; margin-bottom: 20px; }
.cta p { color: var(--fg-secondary); font-size: 1.1rem; max-width: 48ch; margin: 0 auto 36px; }
.contact-card {
  display: inline-flex; flex-direction: column; align-items: center; gap: 22px;
  padding: clamp(30px, 5vw, 46px); border-radius: var(--radius-lg);
  background: var(--bg-card); box-shadow: var(--shadow-high);
}
.contact-email { display: inline-flex; align-items: center; }
.contact-email img { height: 46px; width: auto; border-radius: var(--radius-sm); }
.contact-email .fallback { font: 500 0.78rem var(--font-mono); color: var(--fg-subtle); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.contact-hint { color: var(--fg-subtle); font: 400 0.8rem var(--font-mono); letter-spacing: var(--tracking-mono); }

/* ---- footer ----------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border-subtle); padding-block: 52px; background: var(--bg-base); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand { max-width: 340px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--fg-muted); font-size: 0.9rem; margin: 0; }
.footer-meta { text-align: right; color: var(--fg-subtle); font-size: 0.84rem; }
.footer-meta .mono { display: block; margin-top: 8px; font-size: 0.76rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.footer-links a { color: var(--fg-secondary); font: 500 0.85rem var(--font-sans); }
.footer-links a:hover { color: var(--fg); }

/* ---- scroll reveal ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 38px; height: 38px;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent;
    color: var(--fg); cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-raised); border-bottom: 1px solid var(--border-subtle);
    padding: 16px clamp(20px, 5vw, 40px) 22px;
  }
  .nav.open .nav-links a { padding: 10px 0; width: 100%; font-size: 1rem; }
  .promise, .how-layout { grid-template-columns: 1fr; }
  .promise:nth-child(even) .promise-media { order: 0; }
  .feature-grid, .moat-grid, .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .features-shots { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}
@media (max-width: 560px) {
  .wall-grid, .feature-grid, .moat-grid, .aud-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  .proof-note { flex-direction: column; }
}
