/* ReelEarn — static site styles.
   Palette follows the app's own tokens: accent #27D2F8 (home_accent),
   page #151515 (home_page_bg), surface #161717 (bottom_nav_bg). */

:root {
  --accent: #27d2f8;
  --accent-soft: #c1fbf9;
  --bg: #151515;
  --surface: #161717;
  --surface-2: #1c1d1e;
  --line: rgba(255, 255, 255, 0.10);
  --text: #ffffff;
  --muted: #9e9e9e;
  --dim: #888888;
  --on-accent: #0e0e0e;
  --wrap: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 40px, 760px); }
.center { text-align: center; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.06rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { color: var(--muted); font-size: 1.05rem; }
.accent { color: var(--accent); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 21, 21, .82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.05rem; text-decoration: none; letter-spacing: -.01em;
}
.brand img { border-radius: 8px; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .94rem; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }
.site-nav .btn { color: var(--on-accent); }

.nav-toggle {
  margin-left: auto; display: none; width: 42px; height: 42px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; padding: 11px 9px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
.nav-toggle span + span { margin-top: 5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  color: var(--on-accent);
}
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: .9rem; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 5px 13px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--accent); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 20px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; color: var(--dim); font-size: .9rem; }
.hero-meta li { position: relative; padding-left: 18px; }
.hero-meta li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

.hero-art { position: relative; min-height: 460px; }
.hero-art .phone {
  position: absolute; border-radius: 20px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.phone-front { width: 60%; left: 8%; top: 0; z-index: 2; }
.phone-back { width: 52%; right: 4%; top: 12%; opacity: .72; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section h2 { margin-bottom: .7em; }

.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px;
}
.card h3 { color: var(--text); }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.step-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px;
  border-radius: 50%; background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  color: var(--on-accent); font-weight: 800;
}
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.shots figure { margin: 0; }
.shots img { border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.shots figcaption { margin-top: 10px; color: var(--dim); font-size: .84rem; text-align: center; }

/* FAQ */
details {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2); padding: 16px 18px; margin-bottom: 12px;
}
details[open] { border-color: rgba(39, 210, 248, .35); }
summary { cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 12px 0 0; font-size: .95rem; }

/* CTA */
.cta { background: linear-gradient(180deg, var(--surface), var(--bg)); border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.footer-brand img { border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: var(--accent); }
.copyright { width: 100%; margin: 0; color: var(--dim); font-size: .82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }

  /* Below the hero the two phones stop being an absolutely-positioned collage — that only works
     while the art column has a width to anchor to. Lay them out in normal flow instead, otherwise
     the container collapses and the screenshots disappear entirely. */
  .hero-art {
    display: flex; justify-content: center; align-items: flex-start; gap: 16px;
    min-height: 0; max-width: 460px; margin-inline: auto;
  }
  .hero-art .phone { position: static; width: 46%; }
  .phone-back { margin-top: 26px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; inset: 64px 0 auto; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 20px 18px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; text-align: center; border-bottom: none; }
  .features, .steps { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .hero-art { min-height: 340px; }
}
