/* Repvana — landing page (index.html). Subpages (privacy, terms, support) keep styles.css.
   Brand: AppStore/BRAND.md — accent #33EE8F on ink #0A0D0D, teal #19C6C6, rounded-heavy type. */
:root {
  --ink: #0a0d0d;
  --ink-2: #0d1211;
  --surface: #121918;
  --surface-2: #172120;
  --line: #22302c;
  --line-2: #2c3d38;
  --text: #ecf3ef;
  --muted: #9fb2a9;
  --accent: #33ee8f;
  --accent-ink: #04130b;
  --teal: #19c6c6;
  --caution: #f5b300;
  --danger: #f25252;
  --radius: 22px;
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --glow: 0 0 32px rgba(51, 238, 143, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.accent { color: var(--accent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.wordmark { font-weight: 800; letter-spacing: -0.03em; }
.wordmark .v { color: var(--accent); text-shadow: 0 0 18px rgba(51, 238, 143, 0.55); }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 13, 13, 0.74);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav .links { display: flex; gap: 24px; align-items: center; }
.nav .links a.l { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav .links a.l:hover { color: var(--text); text-decoration: none; }
.lang-btn {
  background: transparent; border: 1px solid var(--line-2); color: var(--text);
  font: 600 14px var(--font); border-radius: 999px; padding: 7px 13px; cursor: pointer; line-height: 1;
}
.lang-btn:hover { border-color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 15px; padding: 12px 18px; border-radius: 14px;
  box-shadow: var(--glow); border: 0;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); }
.btn.sm { padding: 9px 14px; font-size: 14px; border-radius: 12px; white-space: nowrap; }

/* Store badges: honest status, not working download links (yet). */
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
  min-width: 200px;
}
.store svg { width: 26px; height: 26px; flex: 0 0 auto; }
.store small { display: block; font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.store b { display: block; font-size: 17px; line-height: 1.15; }

/* ── Phone frames ────────────────────────────────────────────────────── */
.phone {
  position: relative; width: 280px; max-width: 72vw;
  padding: 9px; border-radius: 44px;
  background: linear-gradient(160deg, #26332f, #0b0f0e 60%);
  box-shadow: 0 0 0 1px #2d3b36, 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 90px rgba(51, 238, 143, 0.10);
}
.phone .screen { border-radius: 36px; overflow: hidden; background: var(--ink-2); aspect-ratio: 1320 / 2868; }
.phone .screen img, .phone .screen video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.cam .screen { aspect-ratio: 1320 / 2398; }
.phone.reel .screen { aspect-ratio: 9 / 16; }
.phone.sm { width: 230px; border-radius: 38px; padding: 8px; }
.phone.sm .screen { border-radius: 31px; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 90%;
  background:
    radial-gradient(45% 60% at 70% 30%, rgba(51, 238, 143, 0.16), transparent 70%),
    radial-gradient(35% 50% at 20% 10%, rgba(25, 198, 198, 0.10), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 72px 22px 84px; }
.hero h1 { font-size: clamp(42px, 6.6vw, 76px); margin-bottom: 20px; }
.hero .lead { max-width: 33ch; margin-bottom: 30px; }
.hero .stores { margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(18, 25, 24, 0.6);
}
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .phone.reel { z-index: 2; width: 300px; }
.hero-visual .phone.back {
  position: absolute; z-index: 1; width: 230px; right: -6%; top: 12%;
  transform: rotate(7deg); opacity: 0.55; filter: saturate(0.9);
}
.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: rgba(18, 25, 24, 0.9); border: 1px solid var(--line-2); border-radius: 16px;
  padding: 10px 14px; font-size: 14px; font-weight: 700;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.float .dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(51, 238, 143, 0.14); color: var(--accent); }
.float .dot svg { width: 18px; height: 18px; }
.float small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.float.f1 { left: -2%; top: 18%; }
.float.f2 { left: 2%; bottom: 14%; }
.float.f3 { right: -4%; bottom: 30%; }

/* ── Stat strip ──────────────────────────────────────────────────────── */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 18px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.stat b .accent { text-shadow: 0 0 22px rgba(51, 238, 143, 0.45); }
.stat > span { color: var(--muted); font-size: 14px; }

/* ── Sections ────────────────────────────────────────────────────────── */
section { padding: 104px 0; }
section + section { border-top: 1px solid var(--line); }
.head { max-width: 680px; margin-bottom: 52px; }
.head.center { text-align: center; margin-left: auto; margin-right: auto; }
.head h2 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 16px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; margin-bottom: 18px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 18px; box-shadow: var(--glow);
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step q { color: var(--text); font-weight: 600; }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip .copy { order: 2; }
.split .media { display: flex; justify-content: center; gap: 18px; position: relative; }
.split .media .phone:nth-child(2) { margin-top: 56px; }
.split h2 { font-size: clamp(30px, 4.2vw, 46px); margin-bottom: 16px; }
.split .lead { margin-bottom: 26px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--muted); font-size: 16px; }
.ticks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px;
  background: rgba(51, 238, 143, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333ee8f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks li b { color: var(--text); font-weight: 700; }
.note {
  margin-top: 26px; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 16px; font-size: 14.5px; color: var(--muted);
  background: rgba(51, 238, 143, 0.06); border: 1px solid rgba(51, 238, 143, 0.25);
}
.note svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--accent); margin-top: 1px; }
.note b { color: var(--text); }

/* Rank */
.rank-band { background: radial-gradient(60% 70% at 50% 0%, rgba(25, 198, 198, 0.10), transparent 70%), var(--ink); }
.tiers { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 28px; }
.tier {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px 7px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px;
}
.tier i { width: 20px; height: 22px; display: block; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--c); }
.tier small { color: var(--muted); font-weight: 600; font-size: 12px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.pillar b { display: block; font-size: 15px; margin-bottom: 4px; }
.pillar span { color: var(--muted); font-size: 14px; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden; grid-column: span 2;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 0;
  display: flex; flex-direction: column;
}
.tile.wide { grid-column: span 3; }
.tile h3 { font-size: 21px; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.tile .shot {
  margin: auto auto 0; width: 78%; max-width: 300px;
  border-radius: 26px 26px 0 0; overflow: hidden; border: 1px solid var(--line-2); border-bottom: 0;
  aspect-ratio: 1320 / 1500;
}
.tile .shot img { width: 100%; height: auto; }

/* Icon card grid */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(51, 238, 143, 0.12); border: 1px solid rgba(51, 238, 143, 0.28); color: var(--accent);
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.card code { font-family: inherit; color: var(--text); font-weight: 600; }

/* Platforms */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.platform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.platform .top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.platform .top svg { width: 30px; height: 30px; }
.platform h3 { font-size: 22px; }
.platform .status { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--accent); padding: 5px 10px; border-radius: 999px; background: rgba(51, 238, 143, 0.1); border: 1px solid rgba(51, 238, 143, 0.3); white-space: nowrap; }
.platform p { color: var(--muted); font-size: 15.5px; }
.bridge {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(51, 238, 143, 0.10), rgba(25, 198, 198, 0.08)); border: 1px solid rgba(51, 238, 143, 0.3);
}
.bridge svg { width: 28px; height: 28px; color: var(--accent); flex: 0 0 auto; }
.bridge p { color: var(--text); font-weight: 600; }
.bridge p span { color: var(--muted); font-weight: 500; }

/* Privacy */
.privacy { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.privacy .cards .card { background: transparent; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 60px rgba(51, 238, 143, 0.14); }
.plan .tag {
  position: absolute; top: -12px; left: 26px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink); padding: 4px 10px; border-radius: 999px;
}
.plan h3 { font-size: 18px; color: var(--muted); font-weight: 700; }
.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 0; }
.plan .per { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.plan .ticks li { font-size: 15px; }
.fine { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 22px; }

/* Referral */
.refer { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.reward { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin-top: 12px; }
.reward b { font-size: 28px; color: var(--accent); min-width: 54px; text-align: center; letter-spacing: -0.03em; }
.reward span { color: var(--muted); }
.reward span strong { color: var(--text); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; font-weight: 500; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; font-size: 15.5px; }

/* Final CTA */
.final { text-align: center; position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(40% 70% at 50% 100%, rgba(51, 238, 143, 0.16), transparent 70%);
  pointer-events: none;
}
.final .wrap { position: relative; }
.final h2 { font-size: clamp(36px, 5.6vw, 64px); margin-bottom: 18px; }
.final .lead { margin: 0 auto 30px; max-width: 46ch; }
.final .stores { justify-content: center; }
.final .icon { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 26px; box-shadow: 0 0 60px rgba(51, 238, 143, 0.3); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .brand { font-size: 18px; }
footer .brand img { width: 26px; height: 26px; border-radius: 7px; }
footer .flinks { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* Reveal on scroll (progressive: content is visible without JS). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav .links a.l { display: none; }
  .hero .wrap { grid-template-columns: 1fr; text-align: left; padding-top: 48px; }
  .hero-visual { margin-top: 12px; }
  .split, .refer { grid-template-columns: 1fr; gap: 44px; }
  .split.flip .copy { order: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.wide { grid-column: span 1; }
  .cards { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 460px; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav .links .btn { display: none; }
  section { padding: 72px 0; }
  .wrap { padding: 0 16px; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps, .cards, .bento, .platforms { grid-template-columns: 1fr; }
  .split .media .phone { width: 46%; max-width: 230px; padding: 6px; border-radius: 30px; }
  .split .media .phone .screen { border-radius: 25px; }
  .split .media .phone:nth-child(2) { margin-top: 36px; }
  .hero-visual .phone.reel { width: 250px; }
  .hero-visual .phone.back { display: none; }
  .float { font-size: 13px; padding: 8px 11px; }
  .float.f1 { left: 0; top: 8%; }
  .float.f2 { left: 0; bottom: 8%; }
  .float.f3 { right: 0; bottom: 34%; }
  .store { min-width: 0; flex: 1 1 180px; }
  .bridge { flex-direction: column; align-items: flex-start; }
}

/* Launch waitlist form (hero + final CTA). */
.notify { margin-top: 26px; max-width: 470px; }
.notify.center { margin: 30px auto 0; }
.notify-t { font-weight: 700; margin-bottom: 12px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg input:checked + span { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.notify-row { display: flex; gap: 10px; }
.notify-row input {
  flex: 1 1 auto; min-width: 0; font: 500 16px var(--font); color: var(--text);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px;
}
.notify-row input::placeholder { color: #6f837a; }
.notify-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(51, 238, 143, 0.18); }
.notify-row .btn { flex: 0 0 auto; cursor: pointer; font-family: var(--font); }
.notify-row .btn:disabled { opacity: 0.6; cursor: default; }
.notify-msg { margin-top: 10px; font-size: 13.5px; color: var(--muted); min-height: 1.4em; }
.notify-msg.ok { color: var(--accent); font-weight: 700; }
.notify-msg.err { color: var(--danger); font-weight: 600; }
.notify.done .seg, .notify.done .notify-row { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 420px) { .notify-row { flex-direction: column; } .notify-row .btn { justify-content: center; } }
