/* ============================================================
   Commity — marketing site
   Dark theme lifted straight from the app:
     gold  #FFD046   bg #111   surface #1A1A1A   border #2C2C2C
     headings → Space Grotesk   body → Plus Jakarta Sans
   ============================================================ */

:root {
  /* Surfaces */
  --bg:          #0E0E0E;
  --bg-2:        #111111;
  --surface:     #1A1A1A;
  --surface-2:   #202020;
  --border:      #2C2C2C;
  --border-soft: #232323;

  /* Text */
  --text:        #F0EFE9;
  --text-muted:  #9A968C;
  --text-dim:    #6A675F;

  /* Accent (identical in both app themes) */
  --gold:        #FFD046;
  --gold-dark:   #B89200;
  --gold-soft:   rgba(255, 208, 70, 0.14);
  --gold-line:   rgba(255, 208, 70, 0.30);
  --on-gold:     #1E1E1E;

  --danger:      #FF6B6B;

  /* Geometry */
  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 28px;
  --maxw:      1120px;

  --font-head: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--on-gold); }

/* Ambient gold glow that sits behind the whole page (like the app's onboarding) */
body::before {
  content: "";
  position: fixed;
  top: -20vh; left: 50%;
  width: 90vw; max-width: 1000px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, var(--gold-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }
.section { padding-top: clamp(72px, 12vw, 140px); padding-bottom: clamp(72px, 12vw, 140px); position: relative; z-index: 1; }
.center { text-align: center; }

.kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 16px;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2.6rem, 7.2vw, 5.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; line-height: 1.25; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--text-muted); line-height: 1.6; }
.muted { color: var(--text-muted); }
.tnum { font-variant-numeric: tabular-nums; }
.gold-text { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--gold); color: var(--on-gold); box-shadow: 0 8px 30px -8px rgba(255,208,70,0.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(255,208,70,0.65); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold-line); background: rgba(255,255,255,0.02); transform: translateY(-2px); }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  background: rgba(14,14,14,0.62);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border-soft); background: rgba(14,14,14,0.82); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; color: var(--text); }
.brand .logo { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.93rem; font-weight: 600; color: var(--text-muted); transition: color .2s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 20px; margin-left: 24px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }

@media (max-width: 820px) {
  .nav-links { position: fixed; inset: 66px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(14,14,14,0.96); backdrop-filter: blur(22px); border-bottom: 1px solid var(--border);
    padding: 8px 0 16px; transform: translateY(-130%); transition: transform .35s var(--ease); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 24px; font-size: 1.05rem; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(40px, 7vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy { max-width: 600px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 0.85rem; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

.badge-row { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  font-size: 0.8rem; font-weight: 600; color: var(--gold);
}

@media (max-width: 900px) {
  /* Mobile-first hero: lead with the message + CTA, show the product below it. */
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { order: 1; margin: 0 auto; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .badge-row, .hero-note { justify-content: center; }
  .lottie-stage { order: 2; }
}

/* ---------- Phone mockup ---------- */
.phone-stage { display: flex; justify-content: center; perspective: 1600px; }
.phone {
  position: relative; width: 300px; height: 612px;
  background: linear-gradient(160deg, #2a2a2a, #161616);
  border-radius: 46px; padding: 11px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.9), 0 0 0 1.5px rgba(255,255,255,0.05), inset 0 0 0 2px rgba(0,0,0,0.6);
  transform: rotateY(-12deg) rotateX(4deg);
  transition: transform .6s var(--ease);
}
.phone:hover { transform: rotateY(-4deg) rotateX(2deg); }
.phone-screen {
  position: relative; width: 100%; height: 100%;
  background: var(--bg-2); border-radius: 36px; overflow: hidden;
  display: flex; flex-direction: column;
}
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 130px; height: 26px; background: #000; border-radius: 0 0 16px 16px; z-index: 5; }
.screen-inner { padding: 40px 20px 20px; flex: 1; display: flex; flex-direction: column; }

.scr-chip { font-family: var(--font-head); font-size: 10px; font-weight: 700; letter-spacing: 2.2px; color: var(--gold-dark); margin-bottom: 4px; }
.scr-greet { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 20px; }

.ring-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; margin-bottom: 14px;
}
.ring { width: 168px; height: 168px; margin: 0 auto 6px; }
.ring-num { font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.ring-num small { font-size: 1rem; color: var(--text-muted); font-weight: 700; }
.ring-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.scr-loc { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 0.82rem; font-weight: 700; font-family: var(--font-head); }
.scr-loc svg { width: 15px; height: 15px; color: var(--gold); }

.scr-row { display: flex; gap: 10px; }
.scr-stat { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.scr-stat .v { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.scr-stat .v.gold { color: var(--gold); }
.scr-stat .l { font-size: 0.62rem; letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-dim); margin-top: 2px; }

.scr-nav { margin-top: auto; display: flex; justify-content: space-around; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 11px 8px; }
.scr-nav i { width: 19px; height: 19px; border-radius: 5px; background: var(--text-dim); opacity: 0.5; display: block; }
.scr-nav i.on { background: var(--gold); opacity: 1; }
.scr-nav .add { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); opacity: 1; box-shadow: 0 0 16px rgba(255,208,70,0.5); }

/* ---------- Logos / trust strip ---------- */
.trust { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); padding: 28px 0; }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 60px); flex-wrap: wrap; color: var(--text-dim); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.4px; }
.trust-inner b { color: var(--text); font-family: var(--font-head); }

/* ---------- Steps (How it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; position: relative; overflow: hidden;
}
.step::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% -10%, var(--gold-soft), transparent 60%); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.step:hover::after { opacity: 1; }
.step-n { font-family: var(--font-head); font-weight: 800; font-size: 0.85rem; letter-spacing: 2px; color: var(--gold); margin-bottom: 18px; }
.step-icon { width: 56px; height: 56px; margin-bottom: 18px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.96rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--gold-line); }
.feature .fi { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold-line); display: grid; place-items: center; margin-bottom: 16px; }
.feature .fi svg { width: 22px; height: 22px; color: var(--gold); }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 0.92rem; }
.feature.wide { grid-column: span 2; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } .feature.wide { grid-column: auto; } }

/* ---------- Split / showcase ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3.4; display: grid; place-items: center; overflow: hidden; position: relative;
}
.split h2 { margin-bottom: 16px; }
.split p { color: var(--text-muted); margin-bottom: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; color: var(--text); font-size: 0.98rem; }
.check-list li svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 1px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.rev .split-media { order: 0; } }

/* ---------- Stat band ---------- */
.statband { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.statband .s { padding: 12px; }
.statband .n { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: -0.03em; color: var(--gold); }
.statband .c { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; }
@media (max-width: 620px) { .statband { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- CTA ---------- */
.cta-card {
  background: linear-gradient(160deg, rgba(255,208,70,0.10), rgba(255,208,70,0.02));
  border: 1px solid var(--gold-line); border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 72px); text-align: center; position: relative; overflow: hidden;
}
.cta-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 120% at 50% -20%, var(--gold-soft), transparent 60%); pointer-events: none; }
.cta-card h2 { margin-bottom: 14px; position: relative; }
.cta-card p { color: var(--text-muted); max-width: 520px; margin: 0 auto 28px; position: relative; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 48px auto 0; }
.qa { border-bottom: 1px solid var(--border); }
.qa summary { cursor: pointer; list-style: none; padding: 22px 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic { width: 22px; height: 22px; flex-shrink: 0; transition: transform .3s var(--ease); color: var(--gold); }
.qa[open] summary .ic { transform: rotate(45deg); }
.qa p { padding: 0 4px 22px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 56px 0 40px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer-grid a { display: block; color: var(--text-muted); font-size: 0.92rem; padding: 5px 0; transition: color .2s var(--ease); }
.footer-grid a:hover { color: var(--gold); }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 260px; margin-top: 12px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-soft); color: var(--text-dim); font-size: 0.82rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } .footer-brand { grid-column: span 2; } }

/* ============================================================
   Blog
   ============================================================ */
.page-head { padding-top: clamp(56px, 9vw, 100px); padding-bottom: 28px; text-align: center; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 14px; }
.page-head .lead { max-width: 600px; margin: 0 auto; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.post-card:hover { transform: translateY(-5px); border-color: var(--gold-line); }
.post-thumb { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(150deg, var(--surface-2), #141414); border-bottom: 1px solid var(--border); }
.post-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 0.76rem; color: var(--text-dim); margin-bottom: 12px; }
.tag { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.4px; }
.post-card h3 { font-size: 1.18rem; margin-bottom: 10px; line-height: 1.3; }
.post-card p { color: var(--text-muted); font-size: 0.9rem; flex: 1; }
.post-card .read { margin-top: 16px; color: var(--gold); font-weight: 700; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; }
.post-card.featured { grid-column: span 3; flex-direction: row; }
.post-card.featured .post-thumb { aspect-ratio: auto; width: 50%; border-bottom: 0; border-right: 1px solid var(--border); }
.post-card.featured .post-body { justify-content: center; padding: 40px; }
.post-card.featured h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.post-card.featured p { flex: none; font-size: 1rem; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } .post-card.featured { grid-column: span 2; } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } .post-card.featured { grid-column: auto; flex-direction: column; } .post-card.featured .post-thumb { width: 100%; aspect-ratio: 16/9; border-right: 0; border-bottom: 1px solid var(--border); } }

/* ---------- Article ---------- */
.article { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 72px) 28px 40px; }
.article .back { color: var(--text-muted); font-size: 0.88rem; font-weight: 600; display: inline-flex; gap: 7px; align-items: center; margin-bottom: 28px; }
.article .back:hover { color: var(--gold); }
.article .a-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 0.84rem; color: var(--text-dim); }
.article h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; margin-bottom: 20px; }
.article .a-hero { aspect-ratio: 16/8; border-radius: var(--radius-lg); border: 1px solid var(--border); margin: 28px 0 40px; display: grid; place-items: center; background: linear-gradient(150deg, var(--surface-2), #141414); overflow: hidden; }
.article-body { font-size: 1.08rem; line-height: 1.8; color: #D9D6CD; }
.article-body h2 { font-size: 1.7rem; margin: 44px 0 16px; }
.article-body h3 { font-size: 1.3rem; margin: 32px 0 12px; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { border-left: 3px solid var(--gold); padding: 4px 0 4px 22px; margin: 28px 0; color: var(--text); font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.article-body code { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; font-size: 0.9em; }
.article-cta { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); text-align: center; }

/* ---------- Legal pages (terms / privacy) ---------- */
.legal-updated { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 6px; }
.legal-intro { color: var(--text-muted); font-size: 1.05rem; margin: 14px 0 8px; }
.legal-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin: 32px 0 44px; }
.legal-toc h2 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-dim); margin: 0 0 14px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.legal-toc li { margin-bottom: 8px; break-inside: avoid; }
.legal-toc a { color: var(--text-muted); font-size: 0.92rem; text-decoration: none; }
.legal-toc a:hover { color: var(--gold); }
.article-body h2[id] { scroll-margin-top: 90px; }
.legal-note { background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: var(--radius-sm); padding: 16px 20px; margin: 28px 0; font-size: 0.95rem; color: var(--text); }
@media (max-width: 620px) { .legal-toc ol { columns: 1; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone { transform: none; }
}

/* ---------- Ring animation (geofence + winback) ---------- */
@keyframes ringPulse {
  0%   { r: 46px; opacity: 0.55; }
  100% { r: 80px; opacity: 0; }
}
.geo-ring { transform-box: fill-box; transform-origin: center; }
.geo-ring.r1 { animation: ringPulse 2.6s linear infinite; }
.geo-ring.r2 { animation: ringPulse 2.6s linear infinite 0.86s; }
.geo-ring.r3 { animation: ringPulse 2.6s linear infinite 1.72s; }

/* ============================================================
   Mobile-first refinements — the primary audience is on phones
   ============================================================ */

/* Persistent bottom call-to-action, phones only */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  padding: 12px 32px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(14, 14, 14, 0.86);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--border-soft);
  transform: translateY(120%);
  transition: transform .35s var(--ease);
}
.mobile-cta .btn { width: 100%; max-width: 540px; margin: 0 auto; justify-content: center; }
.mobile-cta.show { transform: translateY(0); }

@media (max-width: 820px) {
  .mobile-cta { display: block; }
  body:has(.mobile-cta) { padding-bottom: 80px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 24px; }
  .section { padding-top: 64px; padding-bottom: 64px; }

  /* Hero leads with copy; type sized for a narrow column */
  h1 { font-size: clamp(2.15rem, 11vw, 3rem); }
  h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero { padding-top: 18px; }
  .hero .lead { font-size: 1.08rem; line-height: 1.7; }

  /* Full-width, easy-to-tap CTAs */
  .hero-actions { width: 100%; flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-note { font-size: 0.8rem; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Smaller nav CTA so the top bar never crowds on narrow screens */
  .nav-cta .btn-primary { padding: 9px 16px; font-size: 0.9rem; }

  /* Hero animation sizing on phones */
  .hero-grid { gap: 34px; }
  .lottie-stage { min-height: 260px; padding: 0 8px; }
  .lottie-stage lottie-player, .lottie-stage > svg { max-width: 300px; }

  /* Section artwork shouldn't swallow the whole screen */
  .split-media { aspect-ratio: 16 / 12; }
  .split-media > svg { width: 70%; height: auto; }

  /* Trust strip reads as a tidy centred stack */
  .trust-inner { gap: 12px 20px; }
}

@media (max-width: 360px) {
  .wrap { padding: 0 20px; }
  .brand { font-size: 1.05rem; }
  .nav-cta .btn-primary { padding: 8px 13px; font-size: 0.85rem; }
}

/* ============================================================
   Hero Lottie animation
   ============================================================ */
.lottie-stage {
  display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 380px;
}
.lottie-stage::before {
  content: ""; position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, var(--gold-soft), transparent 70%);
  z-index: 0; pointer-events: none;
}
.lottie-stage lottie-player,
.lottie-stage > svg { width: 100%; max-width: 440px; position: relative; z-index: 1; }

/* ============================================================
   Grit / rewards section (mirrors the app's Grit card + badges)
   ============================================================ */
.grit-intro { max-width: 620px; margin-left: auto; margin-right: auto; }
.grit-showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  margin-top: 52px; align-items: stretch;
}
.grit-card, .badges-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}

/* — progress card — */
.grit-head { display: flex; align-items: center; gap: 16px; }
.grit-emblem {
  width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold); color: var(--on-gold);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.7rem;
  box-shadow: 0 0 24px rgba(255, 208, 70, 0.45);
}
.grit-rankwrap { line-height: 1.2; }
.grit-rank { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.grit-level { color: var(--text-muted); font-size: 0.85rem; }
.grit-total { margin-left: auto; text-align: right; }
.grit-total-n { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--gold); letter-spacing: -0.02em; line-height: 1; }
.grit-total-l { color: var(--text-dim); font-size: 0.66rem; letter-spacing: 0.6px; text-transform: uppercase; margin-top: 3px; }

.grit-bar { height: 10px; border-radius: 999px; background: #232323; overflow: hidden; margin: 26px 0 10px; }
.grit-bar span { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  box-shadow: 0 0 12px rgba(255, 208, 70, 0.5); }
.grit-next { color: var(--text-muted); font-size: 0.86rem; margin-bottom: 22px; }

.grit-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 20px; border-top: 1px solid var(--border); }
.grit-mini > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.gm-emoji { font-size: 1.05rem; }
.gm-n { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.gm-l { color: var(--text-dim); font-size: 0.66rem; }

.rank-ladder { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.rank-ladder span { font-size: 0.66rem; font-weight: 600; color: var(--text-dim); padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap; }
.rank-ladder span.on { color: var(--on-gold); background: var(--gold); border-color: var(--gold); }

/* — badges card — */
.badges-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.badges-head h3 { font-size: 1.2rem; }
.badges-count { color: var(--gold); font-weight: 700; font-size: 0.8rem; background: var(--gold-soft); border: 1px solid var(--gold-line); padding: 5px 12px; border-radius: 999px; }
.badges-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.badge { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 8px; text-align: center; transition: transform .25s var(--ease); }
.badge .b-emoji { font-size: 1.7rem; line-height: 1; filter: grayscale(1); opacity: 0.4; }
.badge .b-label { font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; margin-top: 9px; color: var(--text-muted); }
.badge .b-hint { font-size: 0.64rem; color: var(--text-dim); margin-top: 3px; line-height: 1.3; }
.badge.got { border-color: var(--gold-line); background: var(--gold-soft); }
.badge.got .b-emoji { filter: none; opacity: 1; }
.badge.got .b-label { color: var(--text); }
.badge.got:hover { transform: translateY(-3px); }

@media (max-width: 860px) { .grit-showcase { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .grit-card, .badges-card { padding: 22px; }
  .grit-total-n { font-size: 1.5rem; }
  .grit-emblem { width: 54px; height: 54px; font-size: 1.45rem; }
}
@media (max-width: 400px) {
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
  .grit-mini { gap: 6px; }
}

/* Anchored sections clear the sticky header when jumped to */
section[id] { scroll-margin-top: 80px; }

/* ============================================================
   v5 — Live-demo hero, marquee, texture & micro-polish
   ============================================================ */

/* Film-grain texture over the whole page — kills the "flat" feel */
body::after {
  content: "";
  position: fixed; inset: 0;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 2;
}

/* Visible keyboard focus everywhere */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Headline underline mark ---------- */
.hl-mark { position: relative; display: inline-block; font-style: normal; color: var(--gold); }
.hl-stroke { position: absolute; left: -2%; bottom: -0.12em; width: 104%; height: 0.22em; overflow: visible; }
.hl-stroke path {
  stroke-dasharray: 230; stroke-dashoffset: 230; opacity: 0.85;
  animation: hlDraw 0.9s var(--ease) 0.5s forwards;
}
@keyframes hlDraw { to { stroke-dashoffset: 0; } }

/* ---------- Primary button shine sweep ---------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 36%;
  left: -50%; transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transition: left 0.7s var(--ease);
}
.btn-primary:hover::after { left: 130%; }

/* ============================================================
   Hero live-tracking demo
   ============================================================ */
.demo-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 420px;
}
.demo-orbit { position: absolute; inset: -10%; display: grid; place-items: center; pointer-events: none; }
.demo-orbit svg { width: 130%; max-width: 640px; opacity: 0.55; }

.demo-card {
  position: relative; z-index: 1;
  width: min(360px, 100%);
  background: linear-gradient(165deg, #1d1d1d, #141414);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.03),
              0 0 60px -20px rgba(255,208,70,0.18);
}
.demo-card.done { border-color: var(--gold-line); box-shadow: 0 40px 90px -30px rgba(0,0,0,0.85), 0 0 70px -16px rgba(255,208,70,0.4); }

.demo-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.demo-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-size: 0.66rem; font-weight: 700; letter-spacing: 2.4px;
  color: var(--gold);
}
.demo-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: demoBlink 1.4s ease-in-out infinite; }
@keyframes demoBlink { 50% { opacity: 0.25; } }
.demo-spot {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; color: var(--text);
  padding: 6px 12px; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
}
.demo-spot svg { color: var(--gold); flex-shrink: 0; }

.demo-ringwrap { position: relative; width: 196px; height: 196px; margin: 8px auto 10px; }
.demo-ringsvg { width: 100%; height: 100%; }
#demoRing { transition: stroke-dashoffset 0.35s linear; filter: drop-shadow(0 0 8px rgba(255,208,70,0.45)); }
.demo-ringtxt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.demo-min { font-family: var(--font-head); font-weight: 800; font-size: 2.7rem; letter-spacing: -0.04em; line-height: 1; color: var(--text); }
.demo-min small { font-size: 0.95rem; font-weight: 700; color: var(--text-muted); margin-left: 3px; }
.demo-goal { font-size: 0.74rem; color: var(--text-muted); margin-top: 5px; }

.demo-status {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.84rem; font-weight: 600; color: var(--text-muted);
  min-height: 22px; margin-bottom: 16px;
}
.ds-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); flex-shrink: 0; transition: background .3s, box-shadow .3s; }
.demo-card.done .ds-dot { background: #7DDB8A; box-shadow: 0 0 8px #7DDB8A; }
.demo-card.done .demo-status { color: var(--text); }

.demo-foot {
  display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; gap: 8px;
  border-top: 1px solid var(--border); padding-top: 14px;
}
.demo-foot > div { display: flex; flex-direction: column; gap: 2px; }
.demo-foot > div + div { border-left: 1px solid var(--border-soft); padding-left: 12px; }
.df-l { font-size: 0.6rem; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-dim); }
.df-v { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--text); }
.df-v.gold { color: var(--gold); }
.df-v.bump { animation: dfBump 0.5s var(--ease); }
@keyframes dfBump { 30% { transform: scale(1.22); } }

.demo-toast {
  position: absolute; left: 16px; right: 16px; bottom: -18px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold); color: var(--on-gold);
  font-family: var(--font-head); font-weight: 700; font-size: 0.84rem;
  padding: 11px 14px; border-radius: 14px;
  box-shadow: 0 14px 36px -10px rgba(255,208,70,0.55);
  opacity: 0; transform: translateY(10px) scale(0.96);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}
.demo-toast.show { opacity: 1; transform: translateY(0) scale(1); }

/* ============================================================
   Spots marquee
   ============================================================ */
.marquee {
  overflow: hidden; position: relative; z-index: 1;
  border-bottom: 1px solid var(--border-soft);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 34px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim); white-space: nowrap;
  transition: color .3s var(--ease);
}
.marquee-track i { color: var(--gold); font-style: normal; font-size: 0.8rem; opacity: 0.8; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee:hover span { color: var(--text-muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Section micro-polish
   ============================================================ */
/* Staggered reveals inside grids */
.steps .reveal:nth-child(2), .features .reveal:nth-child(2), .statband .reveal:nth-child(2) { transition-delay: 0.12s; }
.steps .reveal:nth-child(3), .features .reveal:nth-child(3), .statband .reveal:nth-child(3) { transition-delay: 0.24s; }
.features .reveal:nth-child(4) { transition-delay: 0.1s; }
.features .reveal:nth-child(5) { transition-delay: 0.22s; }

/* FAQ rows feel alive */
.qa { transition: background .25s var(--ease); }
.qa summary:hover { color: var(--gold); }
.qa summary { transition: color .25s var(--ease); }

/* Feature icons glow on hover */
.feature:hover .fi { box-shadow: 0 0 22px -4px rgba(255,208,70,0.5); }
.feature .fi { transition: box-shadow .3s var(--ease); }

/* Step cards: gold number ticks */
.step { transition: transform .3s var(--ease), border-color .3s var(--ease); }
.step:hover { transform: translateY(-4px); border-color: var(--gold-line); }

/* ---------- Mobile sizing for the new pieces ---------- */
@media (max-width: 900px) {
  .demo-stage { order: 2; min-height: 0; padding: 10px 0 26px; }
  .demo-orbit svg { max-width: 480px; }
}
@media (max-width: 600px) {
  .demo-card { width: min(330px, 100%); padding: 18px 18px 16px; }
  .demo-ringwrap { width: 172px; height: 172px; }
  .demo-min { font-size: 2.3rem; }
  .marquee { padding: 14px 0; }
  .marquee-track { gap: 24px; }
  .marquee-track span { font-size: 0.9rem; }
  .demo-toast { font-size: 0.78rem; }
}

/* ---------- Reduced motion: everything settles, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .demo-live i { animation: none; }
  .hl-stroke path { animation: none; stroke-dashoffset: 0; }
  .btn-primary::after { display: none; }
  #demoRing { transition: none; }
  .demo-toast { transition: none; }
}

/* Hero orbit rings: larger pulse so they peek out from behind the demo card */
@keyframes heroRingPulse {
  0%   { r: 150px; opacity: 0.4; }
  100% { r: 245px; opacity: 0; }
}
.demo-orbit .geo-ring.r1 { animation: heroRingPulse 3.4s linear infinite; }
.demo-orbit .geo-ring.r2 { animation: heroRingPulse 3.4s linear infinite 1.13s; }
.demo-orbit .geo-ring.r3 { animation: heroRingPulse 3.4s linear infinite 2.26s; }
@media (prefers-reduced-motion: reduce) {
  .demo-orbit .geo-ring { animation: none !important; opacity: 0.18; }
}
