/* Raved — landing styles. Neo-brutalist: paper, ink, flame, hard offset shadows. */

@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@600;700;800;900&family=Inter:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* Saira Condensed is Raved's official display font — the SAME family is bundled
   in the iOS and Android apps, so the brand reads identically everywhere. */
:root {
  --display: 'Saira Condensed', system-ui, sans-serif;
  --paper: #f6f1e6;
  --surface: #ffffff;
  --ink: #131211;
  --flame: #ff4a00;
  --muted: rgba(19, 18, 17, 0.55);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 14px;
  --maxw: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle paper grain — premium texture, sits above everything but ignores input. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll progress bar (flame). */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--flame); z-index: 100; transition: width .08s linear;
}

.display {
  font-family: var(--display), 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: 0.004em;
  text-transform: uppercase;
  line-height: 1.0;
}

/* Weight + breathing room for every display heading (Archivo / custom font). */
.brand, .hero h1, .phone .logo, .section-head h2, .marquee .track,
.card h3, .step .num, .step h3, .price h3, .price .amt,
.cta-band h2, .legal h1, .legal h2 {
  font-weight: 800;
  letter-spacing: 0.004em;
}
.hero h1, .cta-band h2, .legal h1, .section-head h2 {
  font-weight: 900;
  line-height: 1.03;
}

.mono { font-family: 'Space Mono', monospace; }

.dot { color: var(--flame); font-style: normal; }

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Mono', monospace; font-weight: 700;
  font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 14px 22px; border: 2px solid var(--ink); border-radius: 12px;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn.flame { background: var(--flame); color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 230, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-family: 'Space Mono'; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
.nav-links a:hover { color: var(--flame); }
.nav .pill { font-size: 11px; padding: 7px 12px; border: 2px solid var(--ink); border-radius: 999px; }
@media (max-width: 760px) { .nav-links a:not(.pill) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 80px 0 70px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; perspective: 1200px; }
.hero h1 { font-family: var(--display); font-size: clamp(44px, 7vw, 88px); line-height: 1.04; text-transform: uppercase; margin: 18px 0; }
.hero p.lede { font-size: 18px; color: var(--muted); max-width: 30ch; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.chip {
  font-family: 'Space Mono'; font-weight: 700; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 8px 12px; background: var(--surface);
  border: 2px solid var(--ink); border-radius: 999px;
}
.blob { position: absolute; border-radius: 50%; filter: blur(64px); z-index: 0; pointer-events: none; will-change: transform; }
.blob.a { width: 320px; height: 320px; background: var(--flame); opacity: 0.20; top: -90px; right: 4%; animation: float-a 16s ease-in-out infinite; }
.blob.b { width: 260px; height: 260px; background: var(--ink); opacity: 0.07; bottom: -90px; left: -60px; animation: float-b 21s ease-in-out infinite; }
.blob.c { width: 200px; height: 200px; background: var(--flame); opacity: 0.10; top: 34%; left: 14%; animation: float-a 24s ease-in-out infinite reverse; }
@keyframes float-a { 50% { transform: translate(-26px, 32px) scale(1.08); } }
@keyframes float-b { 50% { transform: translate(34px, -26px) scale(1.1); } }
.hero-grid, .hero .wrap { position: relative; z-index: 1; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- phone mockup ---------- */
.phone {
  width: 290px; margin: 0 auto; background: var(--paper);
  border: 3px solid var(--ink); border-radius: 38px; padding: 14px 12px 18px;
  box-shadow: 10px 12px 0 var(--ink); transform: rotate(-2deg);
  transition: transform .2s ease;
}
.phone .notch { width: 110px; height: 22px; background: var(--ink); border-radius: 0 0 16px 16px; margin: 0 auto 14px; }
.phone .logo { font-family: var(--display); font-size: 30px; text-align: left; padding: 0 8px; }
.phone .sub { font-family: 'Space Mono'; font-weight: 700; font-size: 8px; letter-spacing: 0.12em; color: var(--muted); padding: 2px 8px 14px; }
.rave {
  display: flex; gap: 10px; align-items: center; background: var(--surface);
  border: 2px solid var(--ink); border-radius: 12px; padding: 9px; margin: 0 8px 10px;
  box-shadow: 3px 3px 0 var(--ink);
}
.rave:nth-child(odd) { transform: rotate(-1deg); }
.rave:nth-child(even) { transform: rotate(1deg); }
.rave .ico { width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 8px; display: grid; place-items: center; font-size: 20px; }
.rave .meta strong { font-size: 14px; font-weight: 800; display: block; }
.rave .meta span { font-family: 'Space Mono'; font-weight: 700; font-size: 8px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- sections ---------- */
section { padding: 76px 0; border-top: 2px solid var(--ink); scroll-margin-top: 72px; }
.section-head { max-width: 46ch; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-family: var(--display); font-size: clamp(30px, 5vw, 50px); text-transform: uppercase; line-height: 1.04; margin: 10px 0; }
.section-head p { color: var(--muted); font-size: 17px; }

/* marquee — seamless infinite (two identical groups; each carries its own trailing
   gap so translateX(-50%) lands exactly one group over, no jump). */
.marquee {
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  background: var(--ink); color: var(--paper); overflow: hidden; padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-inner { display: flex; width: max-content; animation: marquee 32s linear infinite; will-change: transform; }
.marquee:hover .marquee-inner { animation-play-state: paused; }
.marquee-group {
  display: flex; align-items: center; gap: 52px; padding-right: 52px; flex-shrink: 0;
  font-family: var(--display); font-size: 24px; letter-spacing: 0.02em; text-transform: uppercase;
}
.marquee-group span { display: inline-flex; align-items: center; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: transform .14s ease, box-shadow .14s ease;
  position: relative; overflow: hidden;
}
.card::after {
  content: ''; position: absolute; left: 0; top: 0; height: 5px; width: 100%;
  background: var(--flame); transform: scaleX(0); transform-origin: left;
  transition: transform .24s cubic-bezier(.2,.7,.2,1);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.card:hover::after { transform: scaleX(1); }
.card .emoji { font-size: 30px; display: block; margin-bottom: 12px; }
.card h3 { font-family: var(--display); font-size: 22px; text-transform: uppercase; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step .num { font-family: var(--display); font-size: 52px; color: var(--flame); line-height: 1; }
.step h3 { font-family: var(--display); font-size: 22px; text-transform: uppercase; margin: 6px 0 8px; }
.step p { color: var(--muted); }

/* pricing */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 760px; margin: 0 auto; }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } }
.price { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.price.pro { background: var(--ink); color: var(--paper); }
.price.pro .amt, .price.pro h3 { color: var(--paper); }
.price h3 { font-family: var(--display); font-size: 26px; text-transform: uppercase; }
.price .amt { font-family: var(--display); font-size: 40px; margin: 8px 0 16px; }
.price ul { list-style: none; display: grid; gap: 9px; }
.price li { font-size: 15px; padding-left: 24px; position: relative; }
.price li::before { content: '✓'; position: absolute; left: 0; color: var(--flame); font-weight: 800; }
.price.pro li::before { color: var(--flame); }

/* faq */
.faq { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
details { background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 4px 18px; }
details summary { font-weight: 800; font-size: 17px; padding: 14px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-family: var(--display); font-size: 26px; color: var(--flame); }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); padding: 0 0 16px; }

/* cta band */
.cta-band { background: var(--flame); color: #fff; text-align: center; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.cta-band h2 { font-family: var(--display); font-size: clamp(32px, 6vw, 64px); text-transform: uppercase; }
.cta-band .btn { background: #fff; }

/* official store badges */
.stores { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.badge { display: inline-block; transition: transform .14s ease; }
.badge img { height: 52px; width: auto; display: block; }
.badge:hover { transform: translateY(-3px); }

/* footer */
footer { background: var(--ink); color: var(--paper); padding: 60px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
footer .brand { color: var(--paper); }
footer h4 { font-family: 'Space Mono'; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(246,241,230,0.5); margin-bottom: 14px; }
footer ul { list-style: none; display: grid; gap: 9px; }
footer a:hover { color: var(--flame); }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(246,241,230,0.18); font-size: 12px; color: rgba(246,241,230,0.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot-tagline { color: rgba(246,241,230,0.7); max-width: 30ch; margin: 14px 0 0; font-size: 15px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-inner, .blob { animation: none; }
}

/* legal pages */
.legal { padding: 60px 0 80px; }
.legal h1 { font-family: var(--display); font-size: clamp(36px, 6vw, 64px); text-transform: uppercase; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-family: 'Space Mono'; font-size: 13px; margin-bottom: 30px; }
.legal h2 { font-family: var(--display); font-size: 24px; text-transform: uppercase; margin: 30px 0 10px; }
.legal p, .legal li { color: rgba(19,18,17,0.78); margin-bottom: 12px; max-width: 70ch; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--flame); font-weight: 700; }
.back { font-family: 'Space Mono'; font-weight: 700; font-size: 13px; text-transform: uppercase; }
