/* REVV landing. Dark-only on purpose: the app itself is dark-only, the page matches it. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c0c0e;
  --surface: #141418;
  --surface-2: #1b1b20;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.14);
  --text: #efeff1;
  --muted: #a1a1aa;
  --accent: #ff5b1f;
  --accent-soft: rgb(255 91 31 / 0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Display type: wide, heavy, slightly italic like a dash cluster. */
.display {
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
.lead { color: var(--muted); font-size: 1.125rem; max-width: 60ch; margin: 18px 0 0; text-wrap: pretty; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgb(12 12 14 / 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-stretch: 125%; font-style: italic; letter-spacing: 0.06em; font-size: 20px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a { text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.badge-link { display: inline-block; line-height: 0; border-radius: 9px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.badge-link img { height: 44px; width: auto; }
.badge-link:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgb(255 91 31 / 0.18); }
.badge-link:active { transform: translateY(0) scale(0.98); }
.nav .badge-link img { height: 40px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav .badge-link { margin-left: auto; } }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgb(255 91 31 / 0.22), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; min-height: min(760px, calc(100dvh - 68px)); }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); }
.hero h1 em { font-style: italic; color: var(--accent); padding-right: 0.06em; }
.hero .lead { font-size: 1.2rem; max-width: 34ch; }
.hero-cta { display: flex; align-items: center; gap: 20px; margin-top: 34px; flex-wrap: wrap; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 0; }
.text-link .icon { color: var(--accent); }
.text-link:hover { color: var(--accent); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(340px, 78vw);
  border-radius: 48px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2a30, #0f0f12 60%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 40px 120px rgb(255 91 31 / 0.16), 0 30px 60px rgb(0 0 0 / 0.5);
}
.phone img { border-radius: 39px; width: 100%; }
.hero .phone { transform: rotate(4deg); }
.phone-shadow { position: absolute; left: -12%; top: 12%; width: 74%; opacity: 0.55; transform: rotate(-7deg); filter: saturate(0.8); z-index: -1; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; gap: 56px; }
  .hero .lead { max-width: 46ch; }
  .phone-shadow { display: none; }
}

/* Sounds */
.section { padding: 112px 0; }
.section-head { max-width: 760px; }
.section h2 { font-size: clamp(34px, 4.4vw, 56px); }
.sounds-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr);
  gap: 14px; margin-top: 44px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: none;
}
.sounds-row::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  .sounds-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
}
.sound {
  scroll-snap-align: start;
  position: relative; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; color: var(--text); font: inherit; min-height: 188px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}
.sound:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.sound:active { transform: translateY(0) scale(0.99); }
.sound:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sound .engine { color: var(--muted); font-size: 14px; }
.sound .name { font-weight: 800; font-stretch: 112%; font-size: 21px; line-height: 1.15; margin-top: 4px; }
.sound .bottom { display: flex; align-items: center; gap: 14px; }
.play {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text);
  transition: background 0.2s, color 0.2s;
}
.play .icon { width: 18px; height: 18px; }
.play .i-pause { display: none; }
.sound.is-playing { border-color: rgb(255 91 31 / 0.55); background: linear-gradient(160deg, rgb(255 91 31 / 0.12), var(--surface) 60%); }
.sound.is-playing .play { background: var(--accent); color: #140700; border-color: transparent; }
.sound.is-playing .i-play { display: none; }
.sound.is-playing .i-pause { display: block; }
.meter { flex: 1; height: 3px; border-radius: 3px; background: transparent; position: relative; overflow: hidden; }
.meter span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); border-radius: 3px; }
.hint { color: var(--muted); font-size: 14px; margin-top: 18px; display: flex; gap: 8px; align-items: center; }

/* How it works */
.how .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: center; }
.how .phone { width: min(320px, 74vw); margin: 0 auto; transform: rotate(-3deg); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 30px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.steps .icon-tile { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.steps .icon-tile .icon { width: 22px; height: 22px; }
.steps h3 { margin: 0; font-size: 20px; font-weight: 750; font-stretch: 108%; }
.steps p { margin: 4px 0 0; color: var(--muted); max-width: 48ch; }
@media (max-width: 900px) { .how .wrap { grid-template-columns: 1fr; gap: 56px; } .how .phone { order: 2; } }

/* Sound stage band */
.stage { background: linear-gradient(180deg, transparent, var(--surface) 30%, var(--surface) 70%, transparent); text-align: center; }
.stage .section-head { margin: 0 auto; }
.stage .lead { margin-left: auto; margin-right: auto; }
.stage-visual { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; margin-top: 56px; }
.stage-visual .phone { width: min(320px, 72vw); }
.side { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; text-align: right; }
.side.right { align-items: flex-start; text-align: left; }
.side .label { font-weight: 800; font-stretch: 115%; font-size: 28px; line-height: 1.1; }
.side p { margin: 0; color: var(--muted); max-width: 26ch; }
.side .speaker { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-strong); margin-bottom: 6px; }
.side .speaker .icon { width: 26px; height: 26px; }
.side.right .speaker .icon { transform: scaleX(-1); }
.stage-play { margin-top: 44px; display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 999px; background: var(--accent); color: #140700; font: inherit; font-weight: 750; border: 0; cursor: pointer; transition: transform 0.25s var(--ease); }
.stage-play:hover { transform: translateY(-2px); }
.stage-play:active { transform: scale(0.98); }
.stage-play .icon { width: 18px; height: 18px; }
.stage-play .i-pause { display: none; }
.stage-play.is-playing .i-play { display: none; }
.stage-play.is-playing .i-pause { display: block; }
.stage .fineprint { color: var(--muted); font-size: 14px; margin-top: 14px; }
@media (max-width: 860px) {
  .stage-visual { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stage-visual .phone { grid-column: 1 / -1; grid-row: 1; margin: 0 auto; }
  .side, .side.right { align-items: flex-start; text-align: left; }
}

/* Feature bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 48px; }
.cell { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 28px; overflow: hidden; position: relative; min-height: 230px; }
.cell h3 { margin: 0; font-size: 22px; font-weight: 800; font-stretch: 110%; line-height: 1.2; }
.cell p { margin: 8px 0 0; color: var(--muted); max-width: 40ch; }
.cell .icon-big { width: 30px; height: 30px; color: var(--accent); margin-bottom: 18px; }
.c-exhaust { grid-column: span 4; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; padding-bottom: 0; }
.c-exhaust img { border-radius: 22px 22px 0 0; border: 1px solid var(--line-strong); border-bottom: 0; align-self: end; max-height: 300px; object-fit: cover; object-position: top; width: 100%; }
.modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; }
.modes span { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.modes span:nth-child(3) { background: var(--accent); color: #140700; border-color: transparent; }
.c-pops { grid-column: span 2; background: radial-gradient(120% 90% at 100% 100%, rgb(255 91 31 / 0.5), rgb(255 160 40 / 0.12) 45%, var(--surface) 75%); }
.c-match { grid-column: span 2; }
.c-gears { grid-column: span 2; }
.c-demo { grid-column: span 2; background: linear-gradient(150deg, var(--surface-2), var(--surface)); }
.rev-scale { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rev-scale .bar { flex: 1; height: 2px; background: linear-gradient(90deg, var(--line-strong), var(--accent)); }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .c-exhaust { grid-column: 1 / -1; }
  .c-pops, .c-match, .c-gears, .c-demo { grid-column: span 1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .c-exhaust { grid-template-columns: 1fr; }
  .c-exhaust img { max-height: 260px; }
  .c-pops, .c-match, .c-gears, .c-demo { grid-column: 1 / -1; min-height: 0; }
}

/* FAQ */
.faq .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
.faq-list { display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; transition: border-color 0.2s; }
details[open] { border-color: var(--line-strong); }
summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 24px; line-height: 1; transition: transform 0.25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; color: var(--muted); }
@media (max-width: 900px) { .faq .wrap { grid-template-columns: 1fr; gap: 36px; } }

/* Final CTA */
.final { text-align: left; }
.final .panel {
  border-radius: 28px; padding: 64px; position: relative; overflow: hidden;
  background: radial-gradient(90% 140% at 100% 0%, rgb(255 91 31 / 0.35), transparent 60%), var(--surface);
  border: 1px solid var(--line-strong);
  display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center;
}
.final .panel img.app-icon { width: 108px; height: 108px; border-radius: 24px; box-shadow: 0 20px 50px rgb(0 0 0 / 0.5); }
.final h2 { font-size: clamp(30px, 3.6vw, 46px); }
.final p { color: var(--muted); margin: 10px 0 0; }
@media (max-width: 860px) { .final .panel { grid-template-columns: 1fr; padding: 40px 28px; } }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--text); }
footer .legal { grid-column: 1 / -1; max-width: 80ch; margin: 0; font-size: 13px; }
@media (max-width: 640px) { footer .wrap { grid-template-columns: 1fr; } }

/* Doc pages (privacy, support) */
.doc { padding: 72px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); }
.doc h2 { font-size: 22px; font-weight: 800; font-stretch: 108%; margin: 44px 0 8px; }
.doc p, .doc li { color: #c9c9d0; }
.doc .updated { color: var(--muted); margin-top: 14px; }
.doc ul { padding-left: 20px; }
.contact-card { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-strong); text-decoration: none; transition: border-color 0.2s, transform 0.25s var(--ease); }
.contact-card:hover { border-color: rgb(255 91 31 / 0.6); transform: translateY(-2px); }
.contact-card .icon-tile { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.contact-card .icon { width: 24px; height: 24px; }
.contact-card strong { display: block; font-size: 18px; }
.contact-card span { color: var(--muted); font-size: 15px; }

/* Motion: entry and reveal. Everything is static under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.9s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-visual { animation: rise 1.1s 0.15s var(--ease) both; }
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
