/* =========================================================================
   PickUp Play — consumer site
   Brand tokens pulled from the app DesignSystem (Tokens.swift) via pickup-intro.html
   Aesthetic: dark charcoal + single green accent (Whoop/Oura family), big Satoshi type,
   app screenshots in CSS device frames. No photography.
   ========================================================================= */

:root {
  /* brand */
  --charcoal:   #1C1C1E;
  --charcoal-2: #232327;
  --ink:        #0B0B0D;
  --green-1:    #7FE04B;   /* primary accent / wordmark */
  --green-2:    #ACEB8A;
  --green-3:    #CCF3B7;
  --green-deep: #0F3A18;
  --green-mid:  #1C5A28;
  --orange:     #F26B21;

  /* text */
  --text:        #FFFFFF;
  --text-dim:    rgba(255,255,255,0.66);
  --text-faint:  rgba(255,255,255,0.45);
  --border:      rgba(255,255,255,0.10);
  --border-soft: rgba(255,255,255,0.06);

  /* type scale (fluid) */
  --fs-display: clamp(2.6rem, 6.5vw, 5.25rem);
  --fs-h2:      clamp(2rem, 4.2vw, 3.25rem);
  --fs-h3:      clamp(1.3rem, 2.2vw, 1.85rem);
  --fs-lead:    clamp(1.1rem, 1.6vw, 1.4rem);
  --fs-body:    1.05rem;
  --fs-small:   0.9rem;

  --maxw: 1180px;
  --radius: 20px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* , *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

/* faint grain overlay kills gradient banding (print-grade feel), pure SVG */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .045;
  mix-blend-mode: overlay;
  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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
section { position: relative; padding-block: clamp(72px, 11vw, 140px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-1); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--green-1); border-radius: 2px; }

h1, h2, h3, .brandmark .word, .card .num, .btn-store strong {
  font-family: 'Satoshi', system-ui, sans-serif;
}
h1, h2, h3 { font-weight: 900; letter-spacing: -0.025em; line-height: 1.02; margin: 0; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; }
.lead { font-size: var(--fs-lead); color: var(--text-dim); max-width: 56ch; }
.accent { color: var(--green-1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--green-1); color: #07270a; }
.btn-primary:hover { background: #93ec61; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--green-1); color: var(--green-1); }

/* app-store style button */
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #07270a; padding: 13px 22px; border-radius: 16px; font-weight: 700;
  transition: transform .2s var(--ease); border: 0;
}
.btn-store:hover { transform: translateY(-2px); }
.btn-store small { display:block; font-size: .68rem; font-weight: 600; opacity:.7; letter-spacing: .02em; }
.btn-store strong { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.btn-store svg { width: 26px; height: 26px; }
.btn-store.soon { background: rgba(255,255,255,.08); color: #fff; border: 1px solid var(--border); }

/* ---------- podium logo (from app brand) ---------- */
.podium { display: inline-flex; align-items: flex-end; gap: 3px; }
.podium .bar { width: 7px; border-radius: 2px; }
.podium .bar.first  { height: 24px; background: var(--green-1); }
.podium .bar.second { height: 17px; background: var(--green-2); }
.podium .bar.third  { height: 12px; background: var(--green-3); }
.brandmark { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; }
.brandmark .word { font-size: 1.32rem; letter-spacing: -0.03em; }
.brandmark .word b { color: var(--green-1); font-weight: 900; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--charcoal) 78%, transparent);
  border-bottom: 1px solid var(--border-soft);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-dim); font-weight: 600; font-size: .98rem; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border); color: var(--text);
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: var(--fs-display); }
.hero .lead { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.hero-note { margin-top: 18px; color: var(--text-faint); font-size: .9rem; }

/* glows / backgrounds */
.glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, var(--green-mid), transparent 70%);
}
.bg-deep { background:
  radial-gradient(1100px 700px at 80% -5%, rgba(127,224,75,.10), transparent 60%),
  radial-gradient(900px 600px at -10% 30%, rgba(28,90,40,.35), transparent 60%),
  var(--charcoal); }
.bg-band { background: linear-gradient(180deg, var(--ink), var(--charcoal)); }

/* ---------- device frame (CSS phone holding a screenshot) ---------- */
.device {
  position: relative; z-index: 1;
  width: min(330px, 78vw); aspect-ratio: 760 / 1651; margin-inline: auto;
  background: #0a0a0b; border-radius: 44px; padding: 10px;
  box-shadow: 0 2px 0 rgba(255,255,255,.06) inset, 0 40px 80px -30px rgba(0,0,0,.75), 0 0 0 1px var(--border);
}
.device::before { /* dynamic island */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #0a0a0b; border-radius: 14px; z-index: 3;
}
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 35px; }
.device.tall { aspect-ratio: 760 / 1558; }
.device.compact { aspect-ratio: 760 / 1567; }
.device-stack { display: grid; place-items: center; position: relative; }

/* ---------- feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 130px); }
.feature.reverse .feature-media { order: -1; }
.feature-copy h2 { margin-bottom: 18px; }
.feature-copy .lead { font-size: var(--fs-body); }
.feature-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); }
.feature-list svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; color: var(--green-1); }

/* ---------- bento / how-it-works ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--charcoal-2); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--border); transform: translateY(-3px); }
.card .num { font-weight: 900; font-size: 2.2rem; color: var(--green-1); letter-spacing: -.04em; line-height: 1; }
.card h3 { margin: 14px 0 8px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--text-dim); font-size: .98rem; }
.icon-chip {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(127,224,75,.12); color: var(--green-1); margin-bottom: 16px;
}
.icon-chip svg { width: 24px; height: 24px; }

/* section heading block */
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head .lead { margin-inline: auto; margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--border-soft); padding: 22px 4px;
}
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.12rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green-1); font-size: 1.6rem; font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-dim); margin: 14px 0 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-card {
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(127,224,75,.16), transparent 70%),
    linear-gradient(180deg, var(--green-deep), var(--ink));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(48px, 8vw, 88px) 24px;
}
.cta-card h2 { font-size: var(--fs-h2); }
.cta-card .lead { margin: 18px auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { background: var(--ink); border-top: 1px solid var(--border-soft); padding-block: 64px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 16px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer a { color: var(--text-dim); font-size: .95rem; }
.footer a:hover { color: var(--green-1); }
.footer-tagline { color: var(--text-dim); margin: 16px 0 0; max-width: 30ch; font-size: .95rem; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-faint); font-size: .85rem;
}

/* ---------- chips (honest location/feature labels, NOT metrics) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  color: var(--green-1); border: 1px solid rgba(127,224,75,.35); background: rgba(127,224,75,.07);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-1); }

/* honest callout line under a feature */
.note-honest {
  margin-top: 22px; padding: 14px 18px; border-left: 2px solid var(--green-1);
  background: rgba(127,224,75,.06); border-radius: 0 12px 12px 0;
  color: var(--text-dim); font-size: .98rem;
}
.note-honest b { color: var(--text); font-weight: 600; }

/* ---------- dual device (routes: map + benchmark) ---------- */
.device-pair { display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.device-pair .device { width: min(250px, 60vw); }
.device-pair .device:first-child { transform: rotate(-4deg) translateX(14px); z-index: 2; }
.device-pair .device:last-child { transform: rotate(4deg) translateX(-14px); margin-bottom: 26px; z-index: 1; }

/* ---------- PickUp Score ring (streak section brand object) ---------- */
.ring-band { text-align: center; }
.ring-wrap { display: grid; place-items: center; margin: 0 auto clamp(28px,5vw,44px); width: min(320px, 70vw); }
.ring-wrap svg { width: 100%; height: auto; transform: rotate(-90deg); }
.ring-wrap .ring-track { fill: none; stroke: rgba(250,247,240,.08); }
.ring-wrap .ring-prog { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.ring-center {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
}
.ring-center .big { font-family: 'Satoshi', sans-serif; font-weight: 900; font-size: 2.6rem; line-height: 1; }
.ring-center .lbl { color: var(--text-dim); font-size: .8rem; margin-top: 4px; letter-spacing: .03em; white-space: nowrap; }
.ring-stack { position: relative; display: grid; place-items: center; }
.ring-caption { text-align: center; color: var(--text-dim); font-weight: 600; margin: 4px 0 0; }

/* ---------- legal / support prose pages ---------- */
.legal { max-width: 760px; margin-inline: auto; padding-block: clamp(56px, 9vw, 110px); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); margin-bottom: 10px; }
.legal .updated { color: var(--text-faint); font-size: .9rem; margin: 0 0 40px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text-dim); font-size: 1.02rem; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--green-1); text-decoration: underline; text-underline-offset: 3px; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); margin-bottom: 32px; font-weight: 600; }
.legal .back:hover { color: var(--green-1); }
.legal .callout { background: rgba(127,224,75,.06); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin: 28px 0; }
.legal .callout p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* ---------- reveal animation ---------- */
.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) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-grid .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .feature, .feature.reverse { grid-template-columns: 1fr; text-align: center; }
  .feature.reverse .feature-media { order: 0; }
  .feature-list { text-align: left; max-width: 420px; margin-inline: auto; }
  .bento { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--charcoal);
    border-bottom: 1px solid var(--border); padding: 8px 24px 16px;
    box-shadow: 0 24px 40px -20px rgba(0,0,0,.8);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .25s var(--ease);
  }
  .nav-links.open { max-height: 320px; visibility: visible; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--border-soft); }
  .device-pair { transform: scale(.92); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .nav .container { padding-inline: 16px; }
  .nav-actions { gap: 8px; }
  .nav .btn-primary { padding: 11px 16px; font-size: .92rem; }
  .brandmark .word { font-size: 1.08rem; }
  .brandmark { gap: 8px; }
  h1 { font-size: clamp(2.4rem, 12vw, 3.2rem); }
}
