/* ============================================================
   CHIRPSTR — home page v2
   Design tokens per handoff: Chirpstr Home v2.dc.html / README.md
   ============================================================ */

* { box-sizing: border-box; }

:root {
  --bone: #F3F3EE;
  --ink: #0B0B0B;
  --purple: #6E36D3;
  --purple-hover: #5628ad;
  --lime: #C0F505;
  --lime-hover: #d0ff33;
  --green: #90C01D;
  --panel: #151515;
  --panel-2: #1C1C1C;
  --panel-3: #242422;
  --muted-dark: #A8A8A2;
  --muted-dark-label: #8E8E88;
  --muted-dark-faint: #6E6E68;
  --muted-light: #55554F;
  --muted-light-body: #44443F;
  --hairline-dark: #FFFFFF1A;
  --hairline-dark-2: #FFFFFF14;
  --hairline-dark-3: #FFFFFF2E;
  --hairline-light: #0B0B0B14;
  --hairline-light-2: #0B0B0B1F;
  --lime-fill: #C0F5051A;
  --lime-border: #C0F50540;
  --lime-glow: #C0F5051F;
  --sender-mom: #6E36D3;
  --sender-mike: #90C01D;
  --sender-hubby: #2F6FE4;
  --sender-jessica: #D4145A;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-hover); }

p, .pretty { text-wrap: pretty; }

.display {
  font-family: Archivo, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

/* keyframes */
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes popin { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 #C0F50566; } 70% { box-shadow: 0 0 0 16px #C0F50500; } 100% { box-shadow: 0 0 0 0 #C0F50500; } }
@keyframes floatin { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- layout helpers ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }
.dark { background: var(--ink); color: var(--bone); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--hairline-light-2); border-radius: 999px; padding: 6px 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #3C3C37;
}
.eyebrow-dark { color: var(--lime); border: none; padding: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--lime); animation: pulse 2s ease-in-out infinite; }

h2.section-title {
  font-family: Archivo, sans-serif; font-weight: 800; font-variation-settings: 'wdth' 116;
  font-size: clamp(36px, 4.8vw, 62px); line-height: .96; letter-spacing: -.015em;
  margin: 14px 0 0; text-transform: uppercase;
}

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 40;
  background: #F3F3EEF2; backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-light);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: clamp(10px, 1.4vw, 14px) clamp(14px, 3vw, 32px);
  display: flex; align-items: center; gap: clamp(12px, 3vw, 32px);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.brand span {
  font-family: Archivo, sans-serif; font-weight: 800; font-variation-settings: 'wdth' 118;
  font-size: 21px; letter-spacing: .02em;
}
nav.mainnav {
  margin-left: auto; display: flex; align-items: center; gap: clamp(12px, 2.4vw, 30px);
  font-size: clamp(13px, 1.6vw, 15.5px); font-weight: 500; white-space: nowrap; min-width: 0; overflow-x: auto;
}
nav.mainnav a { color: var(--muted-light); }
nav.mainnav a:hover { color: var(--ink); }
#navpill { background: var(--ink); color: var(--bone); padding: 11px 20px; border-radius: 999px; font-weight: 700; }
#navpill:hover { background: var(--purple); color: #fff; }
@media (max-width: 620px) { #navpill { display: none; } }

/* ---------- mobile hamburger nav ---------- */
.nav-hamburger {
  display: none; margin-left: auto; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--hairline-light-2);
  background: transparent; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-hamburger span {
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 220ms ease, opacity 220ms ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-dropdown-backdrop {
  display: none; position: fixed; inset: 0; z-index: 39;
  background: #0B0B0B4D; opacity: 0; transition: opacity 220ms ease;
}
.nav-dropdown-backdrop.open { display: block; opacity: 1; }

.nav-dropdown {
  display: none; position: absolute; top: 100%; right: 20px; z-index: 41;
  min-width: 220px; margin-top: 8px; padding: 8px;
  background: var(--bone); border: 1px solid var(--hairline-light-2); border-radius: 16px;
  box-shadow: 0 16px 40px #0000001F;
  flex-direction: column;
  opacity: 0; transform: translateY(-8px) scale(.98);
  transition: opacity 200ms ease, transform 200ms cubic-bezier(.3,1,.35,1);
}
.nav-dropdown.open { display: flex; opacity: 1; transform: none; }
.nav-dropdown-link {
  padding: 12px 14px; border-radius: 10px; color: var(--ink); font-size: 15.5px; font-weight: 600;
}
.nav-dropdown-link:hover { background: var(--hairline-light); color: var(--ink); }
.nav-dropdown-cta {
  margin: 6px 4px 4px; padding: 13px; border-radius: 999px; text-align: center;
  background: var(--lime); color: var(--ink); font-weight: 800;
}
.nav-dropdown-cta:hover { background: var(--lime-hover); color: var(--ink); }

@media (max-width: 640px) {
  nav.mainnav { display: none; }
  .nav-hamburger { display: flex; }
}

/* ---------- buttons ---------- */
.btn-lime {
  display: inline-flex; align-items: center; gap: 10px; background: var(--lime); color: var(--ink);
  padding: 16px 28px; border-radius: 999px; font-size: 17px; font-weight: 800; border: none; cursor: pointer;
}
.btn-lime:hover { background: var(--lime-hover); color: var(--ink); }
.btn-outline {
  padding: 16px 24px; border-radius: 999px; border: 1px solid #0B0B0B26; color: var(--ink);
  font-size: 17px; font-weight: 600; background: none; cursor: pointer;
}
.btn-outline:hover { border-color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(44px, 6vw, 84px); padding-bottom: clamp(44px, 6vw, 84px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(32px, 4vw, 56px); align-items: center;
}
.hero h1 {
  font-family: Archivo, sans-serif; font-weight: 800; font-variation-settings: 'wdth' 118;
  font-size: clamp(56px, 7.6vw, 104px); line-height: .92; letter-spacing: -.02em;
  margin: 20px 0 0; text-transform: uppercase;
}
.hero h1 span { color: var(--purple); }
.hero-sub { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.5; max-width: 32ch; color: var(--muted-light-body); margin: 20px 0 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }

.hero-card-wrap { position: relative; display: grid; place-items: center; }
.hero-glow {
  position: absolute; width: 74%; aspect-ratio: 1; border-radius: 999px;
  background: #6E36D31F; filter: blur(52px);
}
.hero-card {
  position: relative; width: 100%; max-width: 352px; border-radius: 34px;
  background: var(--ink); color: var(--bone); padding: 26px 24px 24px;
  box-shadow: 0 34px 70px #0B0B0B33; display: flex; flex-direction: column; gap: 22px;
}
.hero-card-header { display: flex; align-items: center; gap: 9px; }
.hero-card-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--lime); animation: pulse 1.6s ease-in-out infinite; }
.hero-card-status { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.hero-card-symbol { margin-left: auto; font-size: 15px; color: var(--muted-dark-faint); }

.hero-miles {
  font-family: Archivo, sans-serif; font-weight: 800; font-variation-settings: 'wdth' 112;
  font-size: 66px; line-height: .9; letter-spacing: -.02em;
}
.hero-miles-label { font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-dark-label); margin-top: 8px; }

.hero-stats {
  display: flex; gap: 26px; padding: 16px 0;
  border-top: 1px solid var(--hairline-dark-2); border-bottom: 1px solid var(--hairline-dark-2);
}
.hero-stat-label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark-faint); }
.hero-stat-value { font-family: ui-monospace, monospace; font-size: 22px; margin-top: 5px; }

.hero-slot { min-height: 172px; display: flex; flex-direction: column; justify-content: flex-end; }

.chirp-firing {
  border-radius: 20px; background: var(--lime-fill); border: 1px solid var(--lime-border);
  padding: 18px; animation: popin 420ms cubic-bezier(.2, .9, .3, 1) both;
}
.chirp-firing-top { display: flex; align-items: center; gap: 13px; }
.chirp-avatar {
  width: 42px; height: 42px; border-radius: 99px; background: var(--purple);
  display: grid; place-items: center; font-family: Archivo, sans-serif; font-weight: 800;
  font-size: 17px; color: #fff; animation: ring 1.8s ease-out infinite; flex: 0 0 auto;
}
.chirp-from { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.chirp-playing-now { font-size: 16px; font-weight: 700; margin-top: 3px; }
.wave-row { display: flex; align-items: center; gap: 3px; height: 34px; margin: 16px 0 12px; }
.wave-bar { flex: 1; background: var(--lime); border-radius: 2px; animation: wave 900ms ease-in-out infinite; }
.chirp-progress-row { display: flex; align-items: center; gap: 12px; }
.chirp-progress-track { flex: 1; height: 4px; border-radius: 99px; background: #FFFFFF26; overflow: hidden; }
.chirp-progress-fill { height: 4px; border-radius: 99px; background: var(--lime); }
.chirp-progress-time { font-family: ui-monospace, monospace; font-size: 12px; color: #C4C4BE; }

.chirp-waiting {
  border-radius: 20px; border: 1px dashed var(--hairline-dark-3); padding: 18px;
  display: flex; align-items: center; gap: 13px;
}
.chirp-waiting-icon {
  width: 42px; height: 42px; border-radius: 99px; background: var(--panel-2);
  display: grid; place-items: center; font-size: 17px; color: var(--muted-dark-label); flex: 0 0 auto;
}
.chirp-waiting-label { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark-label); }
.chirp-waiting-next { font-size: 16px; font-weight: 700; margin-top: 3px; }

/* ---------- marquee ---------- */
.marquee-section {
  border-top: 1px solid var(--hairline-light); border-bottom: 1px solid var(--hairline-light);
  padding: 16px 0; overflow: hidden; background: #EFEFE8;
}
.marquee-track { display: flex; width: max-content; animation: tick 36s linear infinite; }
.marquee-group { display: flex; align-items: center; }
.marquee-item {
  font-family: Archivo, sans-serif; font-weight: 700; font-variation-settings: 'wdth' 112;
  font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: #3C3C37; padding: 0 22px;
}
.marquee-dot { color: var(--lime); font-size: 20px; }

/* ---------- finish line toggle ---------- */
.finish-section { padding-top: clamp(60px, 8vw, 104px); }
.finish-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.finish-toggle-row { display: flex; align-items: center; gap: 14px; }
.finish-toggle-label { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark-label); }
.finish-switch {
  border: 0; cursor: pointer; padding: 5px; width: 82px; height: 42px; border-radius: 999px;
  display: flex; align-items: center; transition: background 280ms ease; background: #2A2A28;
}
.finish-switch.on { background: var(--lime); }
.finish-knob { width: 32px; height: 32px; border-radius: 99px; background: var(--ink); transition: transform 280ms cubic-bezier(.3, 1.4, .4, 1); }
.finish-switch.on .finish-knob { transform: translateX(40px); }
.finish-state {
  font-family: Archivo, sans-serif; font-weight: 800; font-variation-settings: 'wdth' 112;
  font-size: 18px; text-transform: uppercase; min-width: 38px; color: var(--muted-dark-faint);
}
.finish-state.on { color: var(--lime); }

.finish-frame {
  position: relative; margin-top: 34px; border-radius: 24px; overflow: hidden;
  aspect-ratio: 1380 / 752; cursor: pointer; background: #111;
}
.finish-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.finish-frame img.on-photo { transition: opacity 700ms ease; opacity: 0; }
.finish-frame.on img.on-photo { opacity: 1; }

.finish-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 34px);
  background: linear-gradient(180deg, transparent, #0B0B0BE6);
}
.finish-overlay-title {
  font-family: Archivo, sans-serif; font-weight: 800; font-variation-settings: 'wdth' 112;
  font-size: clamp(20px, 2.6vw, 32px); text-transform: uppercase; letter-spacing: .01em;
}
.finish-overlay-body { font-size: 16px; color: var(--muted-dark); margin-top: 8px; }
.finish-overlay-body.loud { color: #C4C4BE; }

.finish-loud-layer { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 1ms; }
.finish-frame.on .finish-loud-layer { opacity: 1; pointer-events: auto; }
.finish-quiet-layer { position: absolute; left: 0; right: 0; bottom: 0; }
.finish-frame.on .finish-quiet-layer { display: none; }

.finish-bubble {
  position: absolute; max-width: clamp(122px, 26vw, 230px);
  background: var(--bone); color: var(--ink); border-radius: 16px 16px 16px 5px;
  padding: clamp(8px, 1.3vw, 13px) clamp(10px, 1.6vw, 16px); box-shadow: 0 14px 34px #0000005C;
  animation: floatin 460ms cubic-bezier(.2, .9, .3, 1) both;
}
.finish-bubble-label { font-size: clamp(8.5px, 1.1vw, 11px); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.finish-bubble-text { font-size: clamp(11px, 1.5vw, 15px); font-weight: 600; margin-top: 4px; line-height: 1.35; }
.bubble-mom { left: 4%; top: 9%; animation-delay: 80ms; }
.bubble-mom .finish-bubble-label { color: var(--purple); }
.bubble-mike { right: 4%; top: 27%; border-radius: 16px 16px 5px 16px; max-width: clamp(126px, 27vw, 240px); animation-delay: 260ms; }
.bubble-mike .finish-bubble-label { color: var(--green); }
.bubble-hubby { left: 7%; bottom: 31%; max-width: clamp(118px, 25vw, 220px); background: var(--lime); animation-delay: 440ms; }
.bubble-hubby .finish-bubble-text { font-weight: 700; }

/* ---------- how it works ---------- */
.how-section { padding-top: clamp(60px, 8vw, 104px); padding-bottom: clamp(40px, 5vw, 56px); }
.how-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.how-header p { font-size: 17px; line-height: 1.55; max-width: 34ch; color: var(--muted-dark); margin: 0; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(262px, 1fr)); gap: 20px; margin-top: 44px; }
.step-card {
  border: 1px solid var(--hairline-dark); border-radius: 22px; padding: 26px; background: var(--panel);
  display: flex; flex-direction: column; gap: 18px;
}
.step-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.step-num { font-family: Archivo, sans-serif; font-weight: 800; font-variation-settings: 'wdth' 112; font-size: 30px; color: var(--lime); line-height: 1; }
.step-card h3 {
  font-family: Archivo, sans-serif; font-weight: 800; font-variation-settings: 'wdth' 108;
  font-size: clamp(19px, 2vw, 23px); letter-spacing: .01em; text-transform: uppercase; margin: 0; line-height: 1.05;
}
.step-card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted-dark); }
.step-card img { width: 100%; border-radius: 14px; display: block; margin-top: auto; }

/* ---------- app tour ---------- */
.tour-section { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 104px); }
.tour-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; flex-wrap: wrap; margin: 14px 0 34px; }
.tour-header h2 { max-width: 15ch; margin: 0; }
.tour-header p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted-dark); max-width: 38ch; }

.tour-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tour-tab {
  flex: 0 0 auto; display: flex; align-items: center; gap: 9px; border: 1px solid var(--hairline-dark-3);
  background: transparent; color: #C4C4BE; font-family: Archivo, sans-serif; font-weight: 800;
  font-variation-settings: 'wdth' 108; font-size: 14.5px; letter-spacing: .02em; text-transform: uppercase;
  padding: 11px 17px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.tour-tab.active { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.tour-tab-num { font-family: ui-monospace, monospace; font-size: 11.5px; font-weight: 400; opacity: .62; }

.tour-rail { height: 2px; background: var(--hairline-dark-2); margin-top: 18px; position: relative; overflow: hidden; }
.tour-rail-fill { position: absolute; top: 0; bottom: 0; background: var(--lime); transition: left 420ms cubic-bezier(.3, 1, .35, 1), width 420ms cubic-bezier(.3, 1, .35, 1); width: 20%; left: 0%; }

.tour-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 36px; }
.tour-left { display: flex; flex-direction: column; gap: 20px; }
.tour-meta { display: flex; align-items: center; gap: 11px; }
.tour-tier { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.tour-tier.free { background: #FFFFFF1F; color: var(--bone); }
.tour-tier.pro { background: var(--lime); color: var(--ink); }
.tour-tier.upgrade { background: var(--purple); color: var(--bone); }
.tour-count { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted-dark-faint); }
.tour-left h3 {
  font-family: Archivo, sans-serif; font-weight: 800; font-variation-settings: 'wdth' 112;
  font-size: clamp(28px, 3.6vw, 44px); text-transform: uppercase; margin: 0; line-height: .99; letter-spacing: -.012em;
}
.tour-left > p { margin: 0; font-size: 17.5px; line-height: 1.55; color: var(--muted-dark); max-width: 46ch; }
.tour-points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.tour-points li { display: flex; gap: 13px; font-size: 16.5px; line-height: 1.45; color: #E4E4DE; animation: floatin 380ms cubic-bezier(.2, .9, .3, 1) both; }
.tour-points li::before { content: ''; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 99px; background: var(--lime); margin-top: 8px; }
.tour-arrows { display: flex; gap: 12px; margin-top: 6px; }
.tour-arrow {
  width: 46px; height: 46px; border-radius: 99px; border: 1px solid var(--hairline-dark-3);
  background: transparent; color: var(--bone); font-size: 17px; cursor: pointer;
}
.tour-arrow:hover { border-color: var(--lime); color: var(--lime); }

.tour-media { position: relative; display: grid; place-items: center; min-height: 520px; }
.tour-media-glow { position: absolute; width: 66%; aspect-ratio: 1; border-radius: 999px; background: #6E36D333; filter: blur(60px); }
.tour-media img { position: relative; width: 100%; max-width: 330px; border-radius: 30px; display: block; box-shadow: 0 30px 64px #00000059; }

.kick-card {
  position: relative; width: 100%; max-width: 340px; border-radius: 32px; background: var(--ink);
  border: 1px solid var(--hairline-dark-2); padding: 26px 24px; display: flex; flex-direction: column;
  gap: 18px; box-shadow: 0 30px 64px #00000066;
}
.kick-head { display: flex; align-items: center; gap: 10px; }
.kick-bolt {
  width: 34px; height: 34px; border-radius: 99px; background: var(--lime); color: var(--ink);
  display: grid; place-items: center; font-size: 16px; animation: ring 1.6s ease-out infinite;
}
.kick-title { font-family: Archivo, sans-serif; font-weight: 800; font-variation-settings: 'wdth' 110; font-size: 19px; text-transform: uppercase; color: var(--lime); }
.kick-clock { margin-left: auto; font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted-dark-label); }
.kick-quotes { display: flex; flex-direction: column; gap: 11px; }
.kick-quote {
  border: 1px solid var(--hairline-dark); background: transparent; color: var(--muted-dark-label);
  border-radius: 14px; padding: 14px 16px; font-size: 15.5px; line-height: 1.35;
  transition: background 260ms ease, border-color 260ms ease, color 260ms ease, transform 260ms ease;
}
.kick-quote.active { border-color: #C0F50573; background: var(--lime-fill); color: var(--bone); transform: translateX(4px); }
.kick-progress-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted-dark-label); }
.kick-progress-track { flex: 1; height: 3px; border-radius: 99px; background: #FFFFFF1F; overflow: hidden; }
.kick-progress-fill { height: 3px; background: var(--lime); width: 0%; }

.fact-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 18px; margin-top: clamp(40px, 5vw, 64px); }
.fact { border-top: 2px solid var(--lime); padding-top: 14px; }
.fact-title { font-family: Archivo, sans-serif; font-weight: 800; font-variation-settings: 'wdth' 108; font-size: 17px; text-transform: uppercase; }
.fact p { margin: 7px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted-dark); }

/* ---------- pricing ---------- */
.pricing-section { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.pricing-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.pricing-header .eyebrow-dark { color: var(--purple); }
.referral-note { border: 1px solid #6E36D340; background: #6E36D30F; border-radius: 16px; padding: 16px 20px; max-width: 34ch; }
.referral-title { font-family: Archivo, sans-serif; font-weight: 800; font-variation-settings: 'wdth' 108; font-size: 16px; text-transform: uppercase; color: var(--purple); }
.referral-note p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted-light-body); }

.plan-toggle-row { display: flex; align-items: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.plan-toggle { display: inline-flex; padding: 4px; background: #0B0B0B0D; border-radius: 999px; gap: 4px; }
.plan-btn { border: 0; cursor: pointer; font-family: Manrope, sans-serif; font-size: 14px; font-weight: 700; padding: 9px 18px; border-radius: 999px; background: transparent; color: var(--muted-light); }
.plan-btn.active { background: var(--ink); color: var(--bone); }
.save-note { font-size: 14px; font-weight: 700; color: var(--purple); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 26px; }
.plan-card { border: 1px solid var(--hairline-light-2); border-radius: 22px; padding: 30px; background: #FFFFFF; }
.plan-card.pro { background: var(--ink); color: var(--bone); position: relative; border: none; }
.plan-badge { position: absolute; top: -13px; left: 30px; background: var(--lime); color: var(--ink); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.plan-name { font-family: Archivo, sans-serif; font-weight: 800; font-variation-settings: 'wdth' 110; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.plan-card.pro .plan-name { color: var(--lime); }
.plan-price-row { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 4px; flex-wrap: wrap; }
.plan-price { font-family: Archivo, sans-serif; font-weight: 800; font-variation-settings: 'wdth' 112; font-size: 54px; line-height: 1; }
.plan-price-sub { font-size: 16px; color: var(--muted-light); }
.plan-card.pro .plan-price-sub { color: var(--muted-dark); }
.plan-card p.plan-desc { margin: 14px 0 20px; font-size: 16px; color: var(--muted-light); }
.plan-card.pro p.plan-desc { color: var(--muted-dark); }
.plan-features { display: flex; flex-direction: column; gap: 11px; font-size: 16px; line-height: 1.5; }
.plan-cta { display: block; text-align: center; margin-top: 24px; padding: 15px; border-radius: 999px; border: 1px solid #0B0B0B26; color: var(--ink); font-weight: 700; }
.plan-cta:hover { border-color: var(--ink); color: var(--ink); }
.plan-cta.lime { background: var(--lime); color: var(--ink); border: none; font-weight: 800; }
.plan-cta.lime:hover { background: var(--lime-hover); color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-section { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(30px, 4vw, 44px); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 56px); }
.faq-header .eyebrow-dark { color: var(--purple); }
.faq-header h2 { font-size: clamp(34px, 4.2vw, 56px); margin: 14px 0 14px; }
.faq-header p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted-light); }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--hairline-light-2); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: Manrope, sans-serif; font-size: 17.5px; font-weight: 700; color: var(--ink);
}
.faq-sign { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 99px; background: #6E36D314; display: grid; place-items: center; font-size: 16px; color: var(--purple); }
.faq-a { margin: 0; padding: 0 0 20px; font-size: 16px; line-height: 1.6; color: #4A4A45; max-width: 62ch; display: none; }
.faq-item.open .faq-a { display: block; }

/* ---------- closing CTA ---------- */
.cta-section { padding-top: clamp(30px, 4vw, 48px); padding-bottom: clamp(56px, 7vw, 88px); }
.cta-block {
  border-radius: 28px; background: var(--lime); color: var(--ink); padding: clamp(36px, 5vw, 64px) clamp(26px, 4vw, 56px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px; align-items: center;
}
.cta-block h2 { font-size: clamp(38px, 5vw, 68px); line-height: .94; margin: 0; }
.cta-block p { margin: 16px 0 0; font-size: 19px; line-height: 1.5; max-width: 44ch; color: #2C3300; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-actions .btn-lime { background: var(--ink); color: var(--bone); }
.cta-actions .btn-lime:hover { background: var(--purple); color: #fff; }
.cta-note { font-size: 14.5px; color: #2C3300; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: var(--bone); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 32px clamp(20px, 4vw, 32px); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.footer-brand span { font-family: Archivo, sans-serif; font-weight: 800; font-variation-settings: 'wdth' 116; font-size: 16px; letter-spacing: .02em; }
.footer-copy { font-size: 14px; color: var(--muted-dark-label); }
.footer-nav { margin-left: auto; display: flex; gap: 20px; font-size: 14px; flex-wrap: wrap; }
.footer-nav a { color: #C4C4BE; }
.footer-nav a:hover { color: var(--lime); }

/* ---------- mobile sticky bar ---------- */
#mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #0B0B0BF5; backdrop-filter: blur(14px);
  padding: 12px 18px; display: flex; align-items: center; gap: 16px; color: var(--bone);
}
.mobilebar-title { font-family: Archivo, sans-serif; font-weight: 800; font-variation-settings: 'wdth' 112; font-size: 16px; text-transform: uppercase; }
.mobilebar-sub { font-size: 13px; color: var(--muted-dark); }
.mobilebar-cta { margin-left: auto; flex: 0 0 auto; background: var(--lime); color: var(--ink); padding: 13px 22px; border-radius: 999px; font-weight: 800; font-size: 16px; }
.mobilebar-cta:hover { background: var(--lime-hover); color: var(--ink); }
@media (min-width: 900px) { #mobilebar { display: none !important; } }

/* ---------- mobile tightening ---------- */
@media (max-width: 640px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .header-inner { padding-left: 20px; padding-right: 20px; }

  /* the finish-line before/after toggle is a desktop-only showcase piece —
     it doesn't scale down well and just eats mobile scroll space */
  .finish-section { display: none; }

  /* every one of these grids used minmax(<floor>px, 1fr), and on narrower
     phones (esp. 320–375px wide, after side padding) the floor doesn't
     fit — it was forcing the whole row wider than the screen and pushing
     content off the right edge with no visible scrollbar. A bare `1fr`
     track is short for minmax(auto, 1fr) — it still won't shrink below
     its item's natural content width, so it has to be minmax(0, 1fr) or
     the same overflow happens again with a single column. */
  .hero,
  .tour-body,
  .faq-section,
  .cta-block {
    grid-template-columns: minmax(0, 1fr);
  }

  /* h1 clamp floor (56px) plus the expanded font-variation-settings runs
     "LOUDER." right up against the viewport edge on narrow phones with no
     breathing room. Give it a smaller, purely viewport-based size instead
     of the desktop clamp's fixed floor. */
  .hero h1 { font-size: 15vw; }

  /* hero run card reads oversized at phone width — scale its internals down */
  .hero-card { padding: 20px 18px 18px; gap: 18px; }
  .hero-miles { font-size: 48px; }
  .hero-stats { gap: 18px; padding: 13px 0; }
  .hero-stat-value { font-size: 19px; }
  .hero-slot { min-height: 150px; }
  .wave-row { height: 28px; margin: 13px 0 10px; }

  /* "Take a look around" ran long on mobile: a full-width, 520px-tall
     screenshot stacked above a full text block for every one of the 5 tabs
     meant a lot of scrolling per tab. Title sits centered on its own full
     width row, then the subheader paragraph runs inline beside a small
     screenshot below it; the bullet list and arrow buttons are dropped
     (swipe, see home-v2.js, handles moving between tabs). tour-left is
     display:contents so its children (meta/h3/p) become direct grid items
     of tour-body and can be placed independently of tour-media. */
  .tour-body {
    display: grid; grid-template-columns: 1fr 34vw;
    grid-template-areas: "meta meta" "title title" "sub media";
    align-items: start; column-gap: 16px; row-gap: 10px; margin-top: 20px;
  }
  .tour-left { display: contents; }
  .tour-meta { grid-area: meta; }
  .tour-left h3 { grid-area: title; font-size: clamp(20px, 6vw, 26px); text-align: center; }
  .tour-left > p { grid-area: sub; font-size: 14.5px; line-height: 1.45; margin: 0; }
  .tour-media { grid-area: media; width: 100%; max-width: 148px; justify-self: end; min-height: 0; }
  .tour-media img { max-width: 100%; border-radius: 16px; }
  .tour-points, .tour-arrows { display: none; }
  .tour-header { margin-bottom: 22px; }

  .kick-card { padding: 16px 14px; gap: 12px; border-radius: 18px; }
  .kick-bolt { width: 24px; height: 24px; font-size: 11px; }
  .kick-title { font-size: 12.5px; }
  .kick-clock { font-size: 9px; }
  .kick-quotes { gap: 7px; }
  .kick-quote { padding: 8px 9px; font-size: 10.5px; line-height: 1.25; border-radius: 9px; }
  .kick-progress-row { font-size: 9px; gap: 6px; }

  /* "How it works" step screenshots were running edge-to-edge on the card */
  .step-card img { max-width: 220px; margin-left: auto; margin-right: auto; }

  /* a little more room between the stacked hero column and the stacked sections */
  .hero { gap: 40px; }

  /* ---- swipeable carousels instead of stacked rows: cuts a lot of
     vertical scroll length out of the three short repeating sections ---- */
  .steps-grid,
  .fact-strip,
  .pricing-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    /* left/right only — a shorthand `margin: 0 -24px` here would stomp the
       margin-top each of these already has set above, collapsing the gap
       to the paragraph/panel sitting right above them to 0 */
    margin-left: -24px; margin-right: -24px;
    padding: 0 24px 6px;
    /* scroll-snap ignores the container's own padding when settling to a
       snap point, so on load it rests at scrollLeft = paddingLeft (24px),
       putting the first card flush against the screen edge instead of
       inset. scroll-padding tells the snap algorithm to treat the padding
       as part of the "safe area" so it doesn't scroll past it. */
    scroll-padding-left: 24px;
    scroll-padding-right: 24px;
  }
  .steps-grid::-webkit-scrollbar,
  .fact-strip::-webkit-scrollbar,
  .pricing-grid::-webkit-scrollbar { display: none; }

  /* setting overflow-x on a scroll container forces overflow-y to compute
     to 'auto' too (a CSS spec quirk), which clips the Pro card's "MOST
     POPULAR" badge — it sits above the card via a negative top offset.
     Reserve room for it so it isn't cut off. */
  .pricing-grid { padding-top: 20px; }

  /* even, matching gap on both sides of the intro paragraph — the dots
     row (inserted right before each carousel) now owns the top gap, so
     the carousels themselves don't need their own margin-top on mobile */
  .how-header { gap: 28px; }
  .steps-grid,
  .fact-strip,
  .pricing-grid {
    margin-top: 0;
  }

  .steps-grid .step-card,
  .pricing-grid .plan-card {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 82vw;
    max-width: 320px;
  }
  /* Pro is the plan worth leading with, so it should be the first thing a
     mobile visitor lands on — the Free card comes first in the markup
     (matches the desktop reading order), so flip just the visual/scroll
     order here. */
  .pricing-grid .plan-card.pro { order: -1; }
  .fact-strip .fact {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 62vw;
    max-width: 240px;
  }
}

/* ---------- swipe-progress line indicators (mobile carousels only) ---------- */
.carousel-dots { display: none; }
@media (max-width: 640px) {
  .carousel-dots { display: flex; justify-content: center; gap: 6px; margin: 28px 0 14px; }
  .carousel-dots span { flex: 1 1 0; max-width: 34px; height: 3px; border-radius: 2px; transition: background 200ms ease; }
  .carousel-dots.on-dark span { background: var(--hairline-dark-3); }
  .carousel-dots.on-dark span.active { background: var(--lime); }
  .carousel-dots.on-light span { background: var(--hairline-light-2); }
  .carousel-dots.on-light span.active { background: var(--purple); }
}
