/* ============================================================
   YappRoom 5.0 — Brand stylesheet
   Dark + gold "product-match" system. Serif display (Playfair),
   mono labels (Space Mono), clean sans body (Hanken Grotesk).
   ============================================================ */

:root {
  --gold:   #ffc130;
  --gold-2: #ffd877;
  --coral:  #ff5070;
  --mint:   #36d399;
  --purple: #a78bfa;
  --orange: #ff8a3c;

  --ink:    #0a0a0f;   /* base background */
  --ink-2:  #08080c;   /* deepest */
  --panel:  #100d16;   /* elevated panel */
  --card:   #16131e;   /* card surface */
  --line:   rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.13);

  --text:   #f3eee6;
  --muted:  #b6b0bf;
  --dim:    #837d8c;
  --cream:  #f4ede1;

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --wrap: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.serif { font-family: 'Playfair Display', Georgia, serif; }
.mono  { font-family: 'Space Mono', ui-monospace, monospace; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }

/* ---------- mono eyebrow / labels ---------- */
.eyebrow {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: .55; }
.eyebrow.center { justify-content: center; }
.eyebrow.plain::before { display: none; }

/* ---------- display type ---------- */
.display {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--gold); }
h1.display { font-size: clamp(46px, 7vw, 92px); }
h2.display { font-size: clamp(38px, 5vw, 64px); }
h3.display { font-size: clamp(26px, 3vw, 38px); }

.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform .16s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn.fill { background: var(--gold); color: var(--ink); }
.btn.fill:hover { box-shadow: 0 12px 30px rgba(255,193,48,.28); }
.btn.ghost { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--line-2); }
.btn.ghost:hover { background: rgba(255,255,255,.09); }
.btn.lg { padding: 17px 30px; font-size: 16.5px; }
.btn.coral { background: var(--coral); color: #fff; }
.btn.coral:hover { box-shadow: 0 12px 30px rgba(255,80,112,.3); }

/* ---------- app store badges ---------- */
.stores { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px; border-radius: 15px;
  transition: transform .16s ease, box-shadow .2s ease;
}
.store:hover { transform: translateY(-2px); }
.store small { display: block; font-family: 'Space Mono', monospace; font-size: 9.5px; font-weight: 400; opacity: .72; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; }
.store b { font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; }
.store svg { width: 22px; height: 22px; flex: none; }
.store.light { background: #fff; color: var(--ink); }
.store.light:hover { box-shadow: 0 12px 30px rgba(255,255,255,.18); }
.store.dark { background: rgba(255,255,255,.05); color: #fff; border: 1px solid var(--line-2); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10,10,15,.78); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav .inner { max-width: var(--wrap); margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand svg { width: 34px; height: 34px; display: block; }
.brand .wm { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 23px; letter-spacing: -0.01em; }
.navlinks { display: flex; align-items: center; gap: 32px; font-family: 'Space Mono', monospace; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.navlinks a { opacity: .76; transition: opacity .18s ease, color .18s ease; }
.navlinks a:hover { opacity: 1; color: var(--gold); }
.navcta { display: flex; align-items: center; gap: 12px; }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.section.alt { background: var(--ink-2); }
.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .lead { margin-top: 20px; }
.section-head h2 { margin-top: 18px; color: #fff; }

/* ---------- phone frame ---------- */
.phone { border-radius: 42px; padding: 9px; position: relative; background: linear-gradient(165deg, #2a2433, #131019); box-shadow: 0 40px 90px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.07); }
.phone img { border-radius: 34px; }
.phone.flat { background: #1a1622; box-shadow: 0 30px 70px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.06); }

/* ---------- generic card ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }

/* room-tinted accent helpers */
.t-gold   { --accent: var(--gold); }
.t-coral  { --accent: var(--coral); }
.t-mint   { --accent: var(--mint); }
.t-purple { --accent: var(--purple); }
.t-orange { --accent: var(--orange); }

/* pills / chips */
.chip { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.chip.accent { color: var(--accent, var(--gold)); border-color: color-mix(in oklab, var(--accent, var(--gold)) 45%, transparent); background: color-mix(in oklab, var(--accent, var(--gold)) 10%, transparent); }

/* coin token glyph */
.coin { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold)); color: #7a5600; font-size: 10px; font-weight: 800; font-family: 'Space Mono', monospace; }

/* ---------- glow blobs ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(110px); z-index: 0; pointer-events: none; }

/* ---------- footer ---------- */
.footer { background: var(--ink-2); border-top: 1px solid var(--line); padding: 70px 0 40px; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.footer a.fl { display: block; color: var(--muted); font-size: 15px; padding: 6px 0; transition: color .16s ease; }
.footer a.fl:hover { color: var(--gold); }
.footer .tagline { color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 16px; max-width: 280px; }
.footer .legal { margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--dim); font-size: 13px; font-family: 'Space Mono', monospace; letter-spacing: .03em; }

/* ---------- scroll reveal (subtle, reduced-motion safe, no-JS safe) ---------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  body.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
  body.js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .navlinks { display: none; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  .nav { padding: 14px 22px; }
  .footer .cols { grid-template-columns: 1fr; gap: 28px; }
}

/* clickable room card overlay */
.room-link { position: absolute; inset: 0; z-index: 6; border-radius: inherit; }

/* FAYR coin image */
.coinimg { display:inline-block; width:1.05em; height:1.05em; object-fit:contain; vertical-align:-0.18em; }
