/* ── Peakio marketing site ─────────────────────────────────────────────
   Tokens mirror the app: bg #0F1115, surface #171A20, primary #FF5A2C,
   gold #FFB020, text #F4F5F7 / #9AA0AB. Display: Bricolage Grotesque.
------------------------------------------------------------------------ */
:root {
  --bg: #0F1115;
  --bg-deep: #0A0C0F;
  --surface: #171A20;
  --surface-2: #1F232B;
  --line: rgba(244, 245, 247, 0.08);
  --text: #F4F5F7;
  --text-2: #9AA0AB;
  --primary: #FF5A2C;
  --primary-deep: #D93E12;
  --gold: #FFB020;
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--primary); color: #fff; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* grain + glow atmosphere */
.atmosphere {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.atmosphere::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 600px at 78% -10%, rgba(255, 90, 44, 0.14), transparent 60%),
    radial-gradient(700px 500px at -10% 40%, rgba(255, 176, 32, 0.06), transparent 60%);
}
.atmosphere::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header.site, footer.site { position: relative; z-index: 1; }

/* ── nav ── */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo svg { width: 34px; height: 34px; border-radius: 9px; }
.logo span {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px; letter-spacing: -0.02em;
}
nav.main-nav { display: flex; gap: 28px; align-items: center; }
nav.main-nav a {
  color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color 0.2s;
}
nav.main-nav a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff !important;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  border: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.2s;
}
.btn:hover { background: var(--primary-deep); transform: translateY(-1px); }
.btn.ghost {
  background: transparent; border: 1px solid var(--line); color: var(--text) !important;
}
.btn.ghost:hover { background: var(--surface); }

/* ── hero ── */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px;
  align-items: center; padding: 70px 0 40px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 78px);
  font-weight: 800; line-height: 0.98; letter-spacing: -0.03em;
}
h1 .accent {
  background: linear-gradient(100deg, var(--primary) 20%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede {
  color: var(--text-2); font-size: 19px; max-width: 46ch; margin: 26px 0 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-note { font-size: 13px; color: var(--text-2); margin-top: 14px; }

/* staggered load-in */
.rise { opacity: 0; transform: translateY(18px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.rise.d1 { animation-delay: 0.08s; } .rise.d2 { animation-delay: 0.18s; }
.rise.d3 { animation-delay: 0.28s; } .rise.d4 { animation-delay: 0.4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── phone mockup (CSS-built Explore screen) ── */
.phone-col { display: flex; justify-content: center; }
.phone {
  width: 320px; aspect-ratio: 320 / 660;
  background: var(--bg-deep);
  border: 1px solid rgba(244,245,247,0.12);
  border-radius: 44px; padding: 14px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.55),
    0 0 0 8px rgba(23,26,32,0.6),
    0 0 120px rgba(255,90,44,0.12);
  transform: rotate(2.5deg);
}
.screen {
  background: var(--bg); border-radius: 32px; height: 100%;
  padding: 20px 16px; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
}
.screen .s-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.screen .s-sub { font-size: 12px; color: var(--text-2); margin-top: -10px; }
.chips { display: flex; gap: 8px; }
.chip {
  font-size: 11px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-2); white-space: nowrap;
}
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.a-card {
  background: var(--surface); border-radius: 16px; padding: 13px 14px;
  display: flex; flex-direction: column; gap: 7px;
}
.a-card .row { display: flex; justify-content: space-between; align-items: center; }
.a-card .name { font-weight: 600; font-size: 14px; }
.a-card .meta { font-size: 11px; color: var(--text-2); }
.badge-free {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--gold); border: 1px solid rgba(255,176,32,0.4);
  padding: 3px 8px; border-radius: 999px;
}
.a-card .bar { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.a-card .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--gold)); }
.rsvp {
  margin-top: auto; background: var(--primary); color: #fff; text-align: center;
  font-weight: 700; font-size: 14px; padding: 13px; border-radius: 999px;
}

/* ── category marquee ── */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; margin: 50px 0 0; overflow: hidden; white-space: nowrap;
}
.marquee .track { display: inline-block; animation: scroll 36s linear infinite; }
.marquee span {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: var(--text-2); margin-right: 18px;
}
.marquee span::after { content: "◆"; color: var(--primary); font-size: 10px; margin-left: 18px; vertical-align: 2px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── sections ── */
section { padding: 90px 0; }
.kicker {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.02em; line-height: 1.05;
  max-width: 22ch;
}
.kicker em { font-style: normal; color: var(--primary); }
.section-lede { color: var(--text-2); max-width: 56ch; margin-top: 16px; }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px;
}
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(255,90,44,0.35); }
.feature .glyph {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255,90,44,0.18), rgba(255,176,32,0.1));
  color: var(--primary); font-size: 20px; margin-bottom: 18px;
}
.feature h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--text-2); }
.feature.wide { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.feature.wide .stats { display: flex; gap: 36px; }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 38px;
  background: linear-gradient(100deg, var(--primary), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 13px; color: var(--text-2); }

/* how it works */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.step { position: relative; border-top: 1px solid var(--line); padding-top: 22px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--primary);
  position: absolute; top: -11px; left: 0; background: var(--bg); padding-right: 12px;
}
.step h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--text-2); }

/* CTA band */
.cta-band {
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(255,176,32,0.18), transparent 60%),
    linear-gradient(120deg, var(--primary-deep), var(--primary));
  border-radius: 28px; padding: 64px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  overflow: hidden; position: relative;
}
.cta-band::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 340px; height: 340px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 108 108'%3E%3Cpath fill='rgba(15,17,21,0.25)' d='M28 72 L46 40 L58 58 L68 42 L82 72 Z'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(-8deg);
}
.cta-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.02em; color: #fff; max-width: 18ch; line-height: 1.05; }
.cta-band .btn { background: #0F1115; }
.cta-band .btn:hover { background: #000; }

/* footer */
footer.site {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 44px 0 60px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 30px;
  font-size: 14px; color: var(--text-2);
}
footer .cols { display: flex; gap: 60px; }
footer h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
footer a { display: block; color: var(--text-2); text-decoration: none; margin-bottom: 8px; }
footer a:hover { color: var(--primary); }

/* legal / support pages */
.page { max-width: 760px; margin: 0 auto; padding: 40px 24px 100px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 10px; }
.page .updated { color: var(--text-2); font-size: 14px; margin-bottom: 40px; }
.page h2 { font-family: var(--font-display); font-size: 22px; margin: 40px 0 12px; }
.page p, .page li { color: var(--text-2); }
.page ul { padding-left: 22px; margin: 12px 0; }
.page strong { color: var(--text); }
.card-list { display: grid; gap: 14px; margin-top: 30px; }
.card-list .item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px 22px;
}
.card-list .item h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 6px; }
.card-list .item p { font-size: 15px; }
.card-list .item a { color: var(--primary); text-decoration: none; }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .phone-col { order: -1; }
  .phone { width: 260px; transform: rotate(0); }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .feature.wide { grid-column: span 1; grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 48px 28px; }
  nav.main-nav a:not(.btn) { display: none; }
  footer.site { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  .marquee .track { animation: none; }
}
