/* Socials — cinematic marketing site, daylight edition.
   Palette mirrors the app (src/constants/Colors.ts light theme):
   primary #3B82F6 on sky #E0F2FE with ink #111827 type. */
:root {
  --blue: #3b82f6;
  --blue-deep: #1e40af;
  --ink: #e6f2fd;          /* page background (app gradient start) */
  --ink-2: #f6faff;        /* alternate section background */
  --card: #ffffff;
  --paper: #111827;        /* primary text (app text.primary) */
  --mute: #6b7280;         /* app text.secondary */
  /* Small (≤13px) labels need more than #6b7280 gives on the tinted
     backgrounds: #4b5563 is 6.5:1 on the darkest band (#cfe6fc). */
  --mute-strong: #4b5563;
  /* #3b82f6 is only 3.3:1 on the page tint — fine for 30px+ display type,
     not for 11–13px kickers/tags. #1d4ed8 clears 4.5:1 on every surface. */
  --blue-text: #1d4ed8;
  /* White on #3b82f6 is 3.7:1 — short of AA for button labels under 19px.
     #2563eb (the icon gradient's midpoint) gives 5.2:1 and reads as the same
     brand blue, so filled CTAs use it and #3b82f6 stays for accents. */
  --blue-cta: #2563eb;
  --line: #dbe7f5;
  --green: #10b981;
  --amber: #f59e0b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* Instant jumps — smooth-scrolling a 200vh sticky hero feels frozen. */
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }
img, video { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* One visible keyboard focus ring everywhere; the hero/nav override colour. */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.nav-on-media:not(.scrolled):not(.open) :focus-visible,
.hero.is-video :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--paper); color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { top: 16px; }

/* Buttons shared by the hero and store badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 800; white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}
.btn-primary { background: var(--blue-cta); color: #fff; box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(59, 130, 246, 0.5); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--paper); background: rgba(255, 255, 255, 0.6); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-text); }
.hero.is-video .btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); }
.hero.is-video .btn-ghost:hover { background: rgba(255, 255, 255, 0.22); border-color: #fff; color: #fff; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: 18px 34px;
  transition: background 300ms ease, backdrop-filter 300ms ease, color 300ms ease;
}
.nav.scrolled { background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-on-media:not(.scrolled) { color: #fff; }
.nav-on-media:not(.scrolled) .nav-brand { color: #fff; }
.nav-on-media:not(.scrolled) .nav-links { color: rgba(255, 255, 255, 0.82); }
.nav-on-media:not(.scrolled) .nav-links a:hover { color: #fff; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 0.24em; font-size: 14px; flex-shrink: 0; }
.nav-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #60a5fa, var(--blue-deep));
  display: grid; place-items: center; color: #fff; font-size: 15px; letter-spacing: 0;
}
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 13px; font-weight: 600; color: var(--mute-strong); flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { padding: 6px 2px; }
.nav-links a:hover { color: var(--paper); }
.nav-cta {
  color: #fff; background: var(--blue-cta); padding: 9px 18px; border-radius: 999px;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.nav-links .nav-cta { padding: 9px 18px; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45); color: #fff; }
.nav-right { display: none; align-items: center; gap: 10px; }
.nav-toggle {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-content: center; gap: 6px;
}
.nav-toggle-bar { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 200ms ease; }
.nav.open .nav-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .nav-toggle-bar:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ── Hero (scroll-scrub) ─────────────────────────────────────────────── */
.hero { height: 200vh; position: relative; }
.hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero-video, .hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-canvas { display: none; } /* shown only if hero.mp4 fails to load */
.hero-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.22) 42%, rgba(15, 23, 42, 0.62) 100%);
}
.hero:not(.is-video) .hero-scrim {
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.15) 0%, rgba(230, 242, 253, 0.35) 100%);
}
.grain {
  position: absolute; inset: -12%; pointer-events: none; opacity: 0.04; z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  animation: grain 7s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-2%, 4%); }
  80% { transform: translate(4%, -2%); }
}
.hero-copy {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 20px;
}
.hero-title {
  font-size: clamp(52px, 12vw, 160px);
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #0f172a 30%, rgba(30, 64, 175, 0.55));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 14px 44px rgba(59, 130, 246, 0.3));
}
.hero.is-video .hero-title {
  background: linear-gradient(180deg, #ffffff 20%, #bfdbfe 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}
.hero-line { font-size: clamp(17px, 2.2vw, 24px); color: var(--paper); margin-top: 12px; font-weight: 500; max-width: min(92vw, 56ch); line-height: 1.35; }
.hero.is-video .hero-line { color: #f8fafc; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55); }
.hero-words { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 3vw, 36px); margin-top: 22px; min-height: 1.4em; }
.hero-words span {
  font-size: clamp(10px, 1.3vw, 14px); font-weight: 800; letter-spacing: 0.28em; color: var(--mute-strong);
  opacity: 0; transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.8, 0.3, 1), color 300ms;
}
.hero-words span.on { opacity: 1; transform: none; color: var(--blue-deep); }
.hero.is-video .hero-words span { color: rgba(255, 255, 255, 0.7); }
.hero.is-video .hero-words span.on { color: #dbeafe; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--mute-strong); }
.hero.is-video .hero-note { color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.hero-scroll-hint {
  position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.4em; color: var(--mute); text-transform: uppercase;
  animation: hint 2.2s ease-in-out infinite;
}
.hero.is-video .hero-scroll-hint { color: rgba(255, 255, 255, 0.78); }
.hero-skip {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; color: var(--mute-strong);
  padding: 6px 12px; border-radius: 999px;
}
.hero.is-video .hero-skip { color: rgba(255, 255, 255, 0.88); }
.hero-skip:hover { color: var(--paper); }
.hero.is-video .hero-skip:hover { color: #fff; }
@keyframes hint { 0%, 100% { opacity: 0.35; transform: translate(-50%, 0); } 50% { opacity: 1; transform: translate(-50%, 8px); } }

/* ── Philosophy ──────────────────────────────────────────────────────── */
.philosophy { position: relative; }
.philo-sticky {
  position: sticky; top: 0; height: 100vh; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 90% 60% at 50% 40%, #ffffff 0%, var(--ink) 70%);
}
.philo-kicker, .section-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: 0.42em; color: var(--blue-text); margin-bottom: 26px;
}
.philo-lines { position: relative; height: 140px; width: min(920px, 92vw); }
.philo-line {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-size: clamp(26px, 4.6vw, 54px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  opacity: 0; transform: translateY(34px) scale(0.98);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.8, 0.3, 1);
}
.philo-line.on { opacity: 1; transform: none; }
.philo-steps { position: relative; z-index: 0; margin-top: -100vh; }
.philo-step { height: 70vh; }
#philosophy, #training, #coaches, #app, #pricing { scroll-margin-top: 72px; }

/* ── Sections shared ─────────────────────────────────────────────────── */
section { padding: 110px 6vw; }
.hero, .philosophy { padding: 0; }
.section-title { font-size: clamp(28px, 4vw, 46px); max-width: 820px; }
.section-sub { color: var(--mute-strong); max-width: 640px; margin-top: 14px; font-size: 16px; line-height: 1.6; }

/* ── Training grid / mobile swipe ────────────────────────────────────── */
.training { background: var(--ink-2); }
.training-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.t-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 26px; overflow: hidden;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.3, 1), border-color 300ms, box-shadow 300ms;
}
.t-card:hover { transform: translateY(-8px); border-color: var(--blue); box-shadow: 0 24px 60px rgba(30, 64, 175, 0.16); }
.t-visual { height: 150px; border-radius: 14px; margin-bottom: 20px; position: relative; overflow: hidden; }
.t-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 900ms ease;
}
.t-card:hover .t-visual::after { transform: translateX(120%); }
.t-strength { background: radial-gradient(circle at 30% 60%, #60a5fa, #1e40af 85%); }
.t-conditioning { background: radial-gradient(circle at 70% 30%, #34d399, #065f46 85%); }
.t-team { background: radial-gradient(circle at 50% 70%, #fbbf24, #b45309 85%); }
.t-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 400ms ease;
}
.t-video.loaded { opacity: 1; }
/* Poster frames paint immediately; the gradient only shows if they 404. */
.t-video[poster] { opacity: 1; }
.t-card h3 { font-size: 21px; margin-bottom: 8px; }
.t-card p { color: var(--mute); font-size: 14px; line-height: 1.65; }
.t-tag {
  display: inline-block; margin-top: 16px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue-text);
  background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 6px 12px; border-radius: 999px;
}

/* ── Coaches ─────────────────────────────────────────────────────────── */
.coach-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.c-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px; text-align: center;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 300ms, border-color 300ms;
}
.c-card:hover { transform: translateY(-10px); box-shadow: 0 26px 70px rgba(30, 64, 175, 0.18); border-color: rgba(59, 130, 246, 0.55); }
.c-avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  box-shadow: 0 14px 34px rgba(30, 64, 175, 0.28);
  position: relative; overflow: hidden;
}
/* Overlays the initials with a real photo when assets/img/<name>.jpg exists;
   the onerror handler on the <img> hides it so the gradient+initials fallback
   shows through untouched if the file is missing. */
.c-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-card h3 { font-size: 19px; }
.c-spec { color: var(--blue-text); font-size: 13px; font-weight: 700; margin-top: 4px; }
.c-meta { color: var(--mute-strong); font-size: 13px; margin-top: 10px; }

/* ── Results counters ────────────────────────────────────────────────── */
.results {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
  background: linear-gradient(180deg, var(--ink) 0%, #cfe6fc 50%, var(--ink) 100%);
}
.count { font-size: clamp(38px, 6vw, 68px); font-weight: 900; letter-spacing: -0.03em; color: var(--blue-deep); display: block; }
.count-label { color: var(--mute-strong); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; margin-top: 8px; display: block; }

/* ── App showcase — phone mockups, real screens ────────────────────────── */
.showcase { text-align: center; }
.phone-row {
  display: flex; justify-content: center; align-items: flex-end; gap: 34px;
  margin-top: 56px; flex-wrap: wrap;
}
.phone-mock {
  transform: rotate(var(--tilt, 0deg)); transition: transform 400ms ease;
}
.phone-mock:hover { transform: rotate(0deg) translateY(-10px); }
/* Higher specificity than the generic .reveal.on so the tilt survives the
   scroll-reveal fade-in instead of being overwritten by its transform:none. */
.phone-mock.reveal.on:not(:hover) { transform: rotate(var(--tilt, 0deg)); }
.phone-frame {
  width: 240px; height: 490px; border-radius: 40px; padding: 12px;
  background: #111827; box-shadow: 0 30px 70px rgba(17, 24, 39, 0.28), 0 0 0 1px rgba(17, 24, 39, 0.06);
  position: relative;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 20px; background: #111827; border-radius: 0 0 14px 14px; z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%; background: var(--card); border-radius: 30px;
  padding: 26px 14px 14px; text-align: left; overflow: hidden; position: relative;
  font-size: 11px; color: var(--paper); display: flex; flex-direction: column; gap: 10px;
}
.phone-caption { margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--mute-strong); }

.ph-avatar {
  width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: 9px; font-weight: 800; color: #fff; flex-shrink: 0; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--g1), var(--g2));
}
.ph-avatar-xs { width: 18px; height: 18px; font-size: 7px; }
/* Overlays the initials with a real photo when assets/img/<name>.jpg exists;
   the onerror handler on the <img> hides it so the gradient+initials fallback
   shows through untouched if the file is missing. */
.ph-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-header { display: flex; align-items: center; justify-content: space-between; }
.ph-pill {
  display: flex; align-items: center; gap: 6px; background: var(--ink-2); border-radius: 999px;
  padding: 4px 10px 4px 4px; font-size: 10px; font-weight: 700;
}
.ph-chev { color: var(--mute); font-size: 9px; }
.ph-icons { display: flex; gap: 8px; }
.ph-icon { position: relative; font-size: 13px; }
.ph-flash { filter: grayscale(0) drop-shadow(0 0 0 var(--green)); color: var(--green); }
.ph-dot {
  position: absolute; top: -2px; right: -2px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); animation: ph-pulse 1.8s infinite;
}
.ph-badge {
  position: absolute; top: -4px; right: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 7px; font-style: normal; display: grid; place-items: center;
}
@keyframes ph-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.ph-availability {
  background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between;
  font-size: 9px;
}
.ph-availability strong { display: block; font-size: 10px; color: #065f46; }
.ph-availability span { color: var(--mute); font-size: 8px; }
.ph-countdown { font-weight: 800; color: #065f46; font-size: 9px; white-space: nowrap; }
.ph-countdown i { font-style: normal; color: var(--mute); margin-left: 6px; }
.ph-section-label { font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-top: 2px; }
.ph-nearby-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.ph-nearby-text { flex: 1; display: flex; flex-direction: column; }
.ph-nearby-text strong { font-size: 10px; }
.ph-nearby-text span { font-size: 8px; color: var(--mute); }
.ph-pill-sm {
  background: var(--green); color: #fff; font-size: 7px; font-weight: 800; padding: 3px 7px;
  border-radius: 999px; white-space: nowrap;
}

.ph-explore-count { font-size: 16px; font-weight: 900; letter-spacing: -0.02em; margin: 0; }
.ph-explore-sub { font-size: 10px; color: var(--mute); margin: -6px 0 2px; }
.ph-search { background: var(--ink-2); border-radius: 10px; padding: 7px 10px; font-size: 9px; color: var(--mute); }
.ph-explore-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ph-explore-photo {
  height: 120px; background: linear-gradient(135deg, var(--g1), var(--g2)); position: relative; overflow: hidden;
}
.ph-explore-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-pill-photo { position: absolute; top: 8px; right: 8px; }
.ph-explore-card h4 { font-size: 12px; margin: 8px 10px 0; }
.ph-meta { font-size: 8px; color: var(--mute); margin: 2px 10px; }
.ph-tag-row { display: flex; gap: 4px; margin: 0 10px 6px; flex-wrap: wrap; }
.ph-tag { background: rgba(59, 130, 246, 0.1); color: var(--blue); font-size: 7px; font-weight: 700; padding: 3px 7px; border-radius: 999px; }
.ph-location { font-size: 8px; color: var(--mute); margin: 0 10px 8px; }
.ph-request-btn { margin: 0 10px 10px; background: var(--blue); color: #fff; text-align: center; font-size: 9px; font-weight: 800; padding: 7px; border-radius: 999px; }

.ph-chat-header { display: flex; align-items: center; gap: 8px; }
.ph-chat-header div { display: flex; flex-direction: column; font-size: 10px; }
.ph-online { font-size: 7px; color: var(--green); }
.ph-bubble { max-width: 78%; padding: 7px 10px; border-radius: 14px; font-size: 9px; line-height: 1.4; }
.ph-bubble-them { background: var(--ink-2); border-bottom-left-radius: 4px; align-self: flex-start; }
.ph-bubble-me {
  background: var(--blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end;
  display: flex; flex-direction: column; gap: 3px;
}
.ph-read { font-size: 7px; opacity: 0.75; align-self: flex-end; }
.ph-typing { display: flex; align-items: center; gap: 6px; }
.ph-dots { display: flex; gap: 3px; background: var(--ink-2); padding: 6px 8px; border-radius: 12px; }
.ph-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--mute); animation: ph-bounce 1.2s infinite; }
.ph-dots i:nth-child(2) { animation-delay: 0.15s; }
.ph-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ph-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}
.ph-input {
  margin-top: auto; background: var(--ink-2); border-radius: 999px; padding: 8px 12px;
  font-size: 9px; color: var(--mute);
}

.store-badges { display: flex; justify-content: center; gap: 16px; margin-top: 52px; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 12px; background: var(--paper); color: #fff;
  border-radius: 14px; padding: 10px 20px; text-decoration: none;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.store-badge:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(17, 24, 39, 0.24); }
/* Only the Play badge is "soon" — the iOS badge is a live CTA, so it stays
   fully opaque. Still 4.6:1 (#fff on #111827 at .6 over the page tint). */
.store-badge-soon { opacity: 0.6; cursor: default; }
.store-badge-soon:hover { transform: none; box-shadow: none; }
.store-badge-icon {
  width: 26px; height: 26px; flex-shrink: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E") center/contain no-repeat;
  background: #fff;
}
.store-badge-icon-play {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M325.3 234.3L104.6 13l280.8 161.2-60.1 60.1zM47 0C34 6.8 25.3 19.2 25.3 35.3v441.3c0 16.1 8.7 28.5 21.7 35.3l256.6-256L47 0zm425.2 225.6l-58.9-34.1-65.7 64.5 65.7 64.5 60.1-34.1c18-14.3 18-46.5-1.2-60.8zM104.6 499l280.8-161.2-60.1-60.1L104.6 499z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.store-badge-text { display: flex; flex-direction: column; font-size: 11px; line-height: 1.5; }
.store-badge-text strong { font-size: 14px; font-weight: 800; }

/* ── Pricing ─────────────────────────────────────────────────────────── */
.price-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; align-items: stretch; }
.p-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 34px 28px; display: flex; flex-direction: column;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 300ms;
}
.p-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(30, 64, 175, 0.14); }
.p-featured {
  background: linear-gradient(165deg, #eaf3ff, #ffffff);
  border-color: var(--blue); position: relative;
  transform: scale(1.045);
  box-shadow: 0 30px 90px rgba(59, 130, 246, 0.25);
}
.p-featured:hover { transform: scale(1.045) translateY(-6px); }
.p-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue-cta); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: 0.2em;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.p-card h3 { font-size: 20px; }
.p-price { font-size: 46px; font-weight: 900; margin: 14px 0 20px; }
.p-price span { font-size: 15px; color: var(--mute); font-weight: 600; }
.p-card ul { list-style: none; display: grid; gap: 11px; margin-bottom: 28px; flex: 1; }
.p-card li { color: var(--mute); font-size: 14px; padding-left: 24px; position: relative; line-height: 1.5; }
.p-card li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.p-card li strong { color: var(--paper); }
.p-cta {
  display: block; text-align: center; padding: 13px; border-radius: 999px; font-weight: 800; font-size: 14px;
  border: 1.5px solid var(--line); color: var(--paper); transition: all 200ms ease;
}
.p-cta:hover { border-color: var(--blue); color: var(--blue); }
.p-featured .p-cta { background: var(--blue-cta); border-color: var(--blue-cta); color: #fff; }
.p-featured .p-cta:hover { box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5); }
/* Sign-in for people who already have coach / partner access. The nav link that
   does the same job is hidden below 1180px, so this one is always visible. */
.p-signin { display: block; margin-top: 14px; font-size: 13px; color: var(--mute-strong); text-decoration: none; }
.p-signin:hover { color: var(--blue-text); }
.p-signin:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer { text-align: center; padding: 80px 20px 60px; color: var(--mute-strong); display: grid; gap: 14px; justify-items: center; border-top: 1px solid var(--line); }
.footer-tagline { color: var(--paper); font-weight: 600; }
.footer-fine { font-size: 13px; }
.footer-fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-fine a:hover { color: var(--blue-text); }
.footer-fine a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 13px; font-weight: 600; }
.footer-links a { padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(75, 85, 99, 0.35); }
.footer-links a:hover { color: var(--blue-text); text-decoration-color: currentColor; }
.footer-copy { font-size: 12px; margin-top: 8px; }

/* ── Reveal-on-scroll ────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 800ms ease, transform 800ms cubic-bezier(0.2, 0.8, 0.3, 1); }
.reveal.on { opacity: 1; transform: none; }

/* ── Mid / mobile nav — collapse before links overflow the CTA ───────── */
@media (max-width: 1180px) {
  .nav-links { gap: 14px; }
  .nav-portal { display: none; }
}
@media (max-width: 980px) {
  .nav { padding: 12px 16px 12px 18px; }
  .nav-right { display: flex; }
  .nav-cta-bar { padding: 9px 16px; font-size: 13px; }
  /* Links live in a panel under the bar, opened by the toggle button. */
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12), 0 1px 0 var(--line) inset;
    padding: 8px 12px 14px; color: var(--paper); font-size: 16px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 13px 10px; border-radius: 10px; }
  .nav-links a:hover { background: var(--ink-2); }
  .nav.open .nav-portal { display: block; margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 16px; color: var(--blue-text); }
  .nav-links .nav-cta { display: none; } /* the bar already has it */
  .nav.open, .nav.open .nav-brand { background: rgba(255, 255, 255, 0.97); color: var(--paper); }
  .nav.open .nav-links { color: var(--paper); }
}
@media (max-width: 860px) {
  section { padding: 80px 6vw; }
  .hero-title { letter-spacing: 0.06em; }
  .hero-line { max-width: 20ch; }
  /* Programs grid → swipeable snap cards */
  .training-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 16px; margin: 46px -6vw 0; padding: 4px 6vw 22px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .training-grid::-webkit-scrollbar { display: none; }
  .t-card { flex: 0 0 80%; scroll-snap-align: center; }
  .coach-row { grid-template-columns: 1fr; }
  .results { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .price-row { grid-template-columns: 1fr; }
  .p-featured { transform: none; }
  .p-featured:hover { transform: translateY(-6px); }
  .phone-row { gap: 22px; }
  .phone-mock { --tilt: 0deg; }
}
/* Phones: no scroll-scrub, so the hero is one viewport tall (main.js plays the
   clip instead of seeking it). svh keeps it clear of the browser chrome. */
@media (max-width: 699px) {
  .hero { height: 100vh; height: 100svh; }
  .hero-sticky { height: 100vh; height: 100svh; }
  .hero-skip { display: none; }
  .hero-words span { opacity: 1; transform: none; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; width: min(320px, 100%); }
  .hero-scroll-hint { display: none; }
  .results { grid-template-columns: 1fr 1fr; gap: 12px; row-gap: 36px; }
  .count-label { letter-spacing: 0.14em; font-size: 11px; }
  .store-badges { flex-direction: column; align-items: center; }
  .store-badge { width: min(300px, 100%); }
  .t-card { flex-basis: 84%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: 100vh; }
  .philo-steps { display: none; }
  .philo-sticky { position: relative; height: auto; min-height: 70vh; padding: 120px 20px 80px; }
  .philo-lines { height: auto; display: grid; gap: 18px; }
  .philo-line { position: relative; opacity: 1; transform: none; }
  .grain, .hero-scroll-hint { animation: none; }
  .reveal, .philo-line, .hero-words span { transition: none; opacity: 1; transform: none; }
  .btn, .nav-cta, .t-card, .c-card, .p-card, .phone-mock, .store-badge, .nav-toggle-bar { transition: none; }
}

/* ── Legal pages (privacy / terms) ───────────────────────────────────── */
.legal-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-wrap h1 { font-size: 34px; letter-spacing: -0.03em; margin: 0 0 8px; }
.legal-updated { color: var(--mute); font-size: 13px; margin-bottom: 18px; }
.legal-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.legal-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: #dbeafe; color: var(--blue-deep); padding: 4px 10px; border-radius: 999px; }
.legal-wrap h2 { font-size: 20px; margin: 32px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-wrap h3 { font-size: 16px; margin: 18px 0 8px; }
.legal-wrap p, .legal-wrap li { font-size: 15px; line-height: 1.65; color: #1f2937; }
.legal-wrap p { margin: 0 0 12px; }
.legal-wrap ul { margin: 0 0 14px 18px; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap a { color: var(--blue); font-weight: 600; }
.legal-note { background: #fff7ed; border: 1px solid #fdba74; border-radius: 12px; padding: 14px 16px; margin: 16px 0 20px; font-size: 14px; line-height: 1.55; }
.legal-footer { border-top: 1px solid var(--line); padding: 28px 24px 40px; text-align: center; color: var(--mute); font-size: 13px; }
.legal-footer a { color: var(--paper); font-weight: 600; margin: 0 8px; }

/* ── Streaks + Everywhere demos ───────────────────────────────────────────
   Hand-built illustrations (not screenshots); demos.js animates them. Each is
   a valid static view without JS. Level colours mirror src/utils/streakTier.ts. */
.streaks, .everywhere { text-align: left; }
.everywhere { background: linear-gradient(180deg, var(--ink) 0%, #dcecfb 100%); }
.streaks-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.streaks-copy .section-title, .streaks-copy .section-sub { max-width: 560px; }
.feat-list { list-style: none; margin-top: 30px; display: grid; gap: 18px; }
.feat { display: flex; gap: 14px; align-items: flex-start; }
.feat-ic {
  width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center;
  font-size: 20px; background: #fff; box-shadow: 0 6px 18px rgba(30, 64, 175, 0.12);
}
.feat h3 { font-size: 17px; margin-bottom: 3px; }
.feat p { color: var(--mute-strong); font-size: 14.5px; line-height: 1.55; max-width: 46ch; }
.feat-list-tight { margin-top: 26px; gap: 14px; }
.streaks-demo { display: flex; flex-direction: column; align-items: center; gap: 22px; }

/* Streak phone: colours are variables so one transition recolours everything. */
.sd-screen {
  --acc: #f97316; --lt: #fdba74; --ex: #fdba74; --g1: #fb923c; --d0: #3b1304; --d1: #9a3412;
  padding: 24px 12px 12px; gap: 8px; background: var(--ink-2);
}
.sd-title { text-align: center; font-weight: 800; font-size: 11px; }
.sd-hero {
  position: relative; border-radius: 20px; padding: 16px 10px 12px; color: #fff; text-align: center;
  background: linear-gradient(160deg, var(--d0), var(--d1)); transition: background 700ms ease;
  display: flex; flex-direction: column; align-items: center; gap: 6px; overflow: hidden;
}
.sd-hero::before {
  content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, var(--acc), transparent 65%);
  opacity: 0.35; transition: background 700ms ease;
}
.sd-ring { position: relative; width: 112px; height: 112px; margin-top: 8px; }
.sd-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); position: relative; }
.sd-track { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 8; }
.sd-arc {
  fill: none; stroke: url(#sdGrad); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 40; transition: stroke-dashoffset 1100ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sd-stop-a { stop-color: var(--lt); transition: stop-color 700ms; }
.sd-stop-x { stop-color: var(--ex); transition: stop-color 700ms; }
.sd-stop-b { stop-color: var(--g1); transition: stop-color 700ms; }
.sd-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.sd-mid b { font-size: 38px; line-height: 1; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sd-mid i { font-style: normal; font-size: 7.5px; letter-spacing: 0.14em; font-weight: 800; opacity: 0.85; margin-top: 3px; }
.sd-flame {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; border: 2px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, var(--lt), var(--g1)); transition: background 700ms ease;
  animation: sdPulse 1.8s ease-in-out infinite;
}
@keyframes sdPulse { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.14); } }
.sd-chip {
  position: relative; font-size: 8.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--acc) 35%, transparent); border: 1px solid color-mix(in srgb, var(--lt) 55%, transparent);
  transition: background 700ms ease, border-color 700ms ease;
}
.sd-msg { position: relative; font-size: 10px; font-weight: 700; }
.sd-trend {
  border-radius: 16px; padding: 9px 10px 6px; background: linear-gradient(135deg, var(--d0), var(--d1)); color: #fff;
  transition: background 700ms ease;
}
.sd-trend-k { font-size: 7px; font-weight: 800; letter-spacing: 0.12em; color: var(--lt); transition: color 700ms; }
.sd-trend svg { width: 100%; height: 42px; display: block; margin-top: 4px; overflow: visible; }
.sd-line {
  fill: none; stroke: var(--lt); stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke 700ms;
  filter: drop-shadow(0 0 4px var(--lt));
}
.sd-week { display: flex; justify-content: space-between; padding: 0 6px; }
.sd-week i { width: 9px; height: 9px; border-radius: 50%; background: #d1d5db; transition: background 400ms ease; }
.sd-week i.on { background: var(--acc); }

.sd-badges { background: #fff; border-radius: 14px; padding: 8px 10px; box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06); }
.sd-badges-k { font-size: 7px; font-weight: 800; letter-spacing: 0.12em; color: var(--mute); margin-bottom: 6px; }
.sd-badges div { display: flex; justify-content: space-between; }
.sd-badges span {
  width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font-size: 6.5px; font-weight: 800;
  background: #e5e7eb; color: #9ca3af; transition: background 500ms ease, color 500ms ease, box-shadow 500ms ease;
}
.sd-badges span.on { background: linear-gradient(135deg, var(--lt), var(--g1)); color: #fff; box-shadow: 0 3px 8px color-mix(in srgb, var(--acc) 45%, transparent); }

.level-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 340px; }
.level-chips button {
  font: inherit; font-size: 12px; font-weight: 800; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--mute-strong); transition: all 200ms ease;
}
.level-chips button:hover { transform: translateY(-2px); }
.level-chips button.on { background: var(--paper); color: #fff; border-color: var(--paper); }

/* State cards */
.state-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; }
.state-card { background: #fff; border-radius: 24px; padding: 14px 14px 18px; box-shadow: 0 10px 30px rgba(30, 64, 175, 0.09); transition: transform 300ms ease; }
.state-card:hover { transform: translateY(-6px); }
.state-card h3 { font-size: 16px; margin: 14px 4px 4px; }
.state-card p { font-size: 13.5px; color: var(--mute-strong); line-height: 1.5; margin: 0 4px; }
.sc-vis {
  border-radius: 18px; height: 130px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(160deg, #3b1304, #9a3412);
}
.sc-big { font-size: 46px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.sc-tag { font-size: 10.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.3); font-variant-numeric: tabular-nums; }
.sc-risk { background: linear-gradient(160deg, #2a1a0c, #4a2a14); }
.sc-risk .sc-big { color: #e7c9a6; }
.sc-shield { background: linear-gradient(160deg, #1e1040, #4c1d95); }
.sc-back { background: linear-gradient(160deg, #0f172a, #334155); }
.sc-bar { width: 70%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.sc-bar i { display: block; height: 100%; width: 50%; background: #94a3b8; border-radius: 3px; animation: scFill 3.2s ease-in-out infinite alternate; }
@keyframes scFill { from { width: 10%; } to { width: 50%; } }

/* Dynamic Island demo */
.ev-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; margin-top: 56px; }
.demo-phone { display: flex; flex-direction: column; align-items: center; }
.di-notch-hide { display: none; }
.di-screen {
  padding: 0; gap: 0; background: linear-gradient(180deg, #0f2447, #1b4a86); color: #fff; align-items: center;
}
.di-island {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%); z-index: 3; background: #000; border-radius: 22px;
  width: 112px; height: 30px; overflow: hidden; transition: width 600ms cubic-bezier(0.2, 0.8, 0.2, 1), height 600ms cubic-bezier(0.2, 0.8, 0.2, 1), border-radius 600ms ease;
}
.di-island.open { width: 214px; height: 92px; border-radius: 30px; }
.di-compact { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; transition: opacity 250ms ease; }
.di-island.open .di-compact { opacity: 0; }
.di-fl { font-size: 11px; }
.di-t { font-weight: 700; font-variant-numeric: tabular-nums; color: #60a5fa; font-size: 10.5px; font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; }
.di-t-lg { font-size: 15px; }
.di-t-xl { font-size: 17px; margin-left: auto; }
.di-expanded { position: absolute; inset: 0; padding: 10px 14px; opacity: 0; transition: opacity 350ms ease 150ms; }
.di-island.open .di-expanded { opacity: 1; }
.di-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 8.5px; }
.di-row strong { font-size: 8.5px; }
.di-big { font-size: 15px; display: block; line-height: 1; }
.di-row span:not(.di-t) { font-size: 7px; opacity: 0.6; }
.di-detail { font-size: 8px; opacity: 0.65; margin: 5px 0; }
.di-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.di-bar i { display: block; height: 100%; width: 25%; background: #3b82f6; border-radius: 2px; animation: diBar 6s ease-in-out infinite alternate; }
@keyframes diBar { from { width: 20%; } to { width: 34%; } }
.di-logo { position: absolute; right: 12px; bottom: 7px; width: 14px; height: 14px; border-radius: 4px; }
.di-date { margin-top: 112px; font-size: 11px; opacity: 0.85; }
.di-time { font-size: 54px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.di-banner {
  position: absolute; left: 10px; right: 10px; bottom: 14px; border-radius: 20px; padding: 12px; overflow: hidden;
  background: rgba(20, 28, 45, 0.78); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(14px);
}
.di-wm { position: absolute; right: -22px; top: -16px; width: 110px; height: 110px; opacity: 0.14; border-radius: 26px; transform: rotate(-12deg); }
.di-b-row { position: relative; display: flex; align-items: center; gap: 6px; font-size: 10px; }
.di-banner .di-detail, .di-banner .di-bar, .di-b-foot { position: relative; }
.di-banner .di-detail { font-size: 9px; margin: 7px 0 8px; }
.di-b-foot { display: flex; justify-content: space-between; align-items: center; font-size: 8.5px; margin-top: 8px; }
.di-b-foot b { color: #60a5fa; }
.di-b-foot span { display: flex; align-items: center; gap: 4px; opacity: 0.7; }
.di-b-foot img { width: 12px; height: 12px; border-radius: 3px; }

/* Widget board */
.wg-board {
  max-width: 470px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 22px; border-radius: 36px;
  background: linear-gradient(160deg, #bfdcf7, #e9f2fb 55%, #f6efe6); box-shadow: 0 24px 60px rgba(30, 64, 175, 0.16);
}
.wg-small, .wg-medium { background: #fff; border-radius: 24px; padding: 14px; box-shadow: 0 6px 18px rgba(17, 24, 39, 0.1); font-size: 12px; }
.wg-small { aspect-ratio: 1; display: flex; flex-direction: column; }
.wg-medium { grid-column: 1 / -1; display: flex; gap: 18px; }
.wg-h { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.wg-chip { margin-left: auto; font-style: normal; font-size: 9.5px; font-weight: 800; color: #f97316; background: rgba(249, 115, 22, 0.14); padding: 2px 8px; border-radius: 999px; }
.wg-medium .wg-chip { margin: 6px 0 0; align-self: flex-start; display: inline-block; }
.wg-num { font-size: 44px; line-height: 1; font-weight: 900; color: #f97316; margin-top: 8px; font-variant-numeric: tabular-nums; }
.wg-sub { font-size: 11px; color: var(--mute); }
.wg-dots { display: flex; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.wg-dots i { width: 9px; height: 9px; border-radius: 50%; background: #e5e7eb; transition: background 300ms ease; }
.wg-dots i.on { background: #f97316; }
.wg-goal { align-items: center; text-align: center; position: relative; }
.wg-gt { align-self: flex-start; font-size: 12px; }
.wg-goal svg { width: 70%; margin-top: 4px; transform: rotate(-90deg); }
.wg-track, .wg-ltrack { fill: none; stroke: #e5e7eb; stroke-width: 10; }
.wg-arc { fill: none; stroke: #f97316; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 40; transition: stroke-dashoffset 1200ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.wg-frac { position: absolute; top: 49%; left: 50%; transform: translate(-50%, -50%); font-size: 20px; font-weight: 900; color: #f97316; }
.wg-goal .wg-sub { margin-top: auto; }
.wg-m-l { width: 82px; flex: none; }
.wg-m-r { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.wg-m-top { display: flex; justify-content: space-between; font-size: 12px; }
.wg-acc { color: #f97316; }
.wg-bar, .wg-lbar { height: 7px; border-radius: 4px; background: #e5e7eb; overflow: hidden; }
.wg-bar i { display: block; height: 100%; width: 60%; background: #f97316; border-radius: 4px; transition: width 1200ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.wg-m-r .wg-dots { margin-top: 2px; padding-top: 0; }
.wg-lock { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 24px; background: linear-gradient(180deg, #0f2447, #1b4a86); color: #fff; }
.wg-circ { position: relative; width: 70px; height: 70px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.12); display: grid; place-items: center; }
.wg-circ svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.wg-ltrack { stroke: rgba(255, 255, 255, 0.25); stroke-width: 7; }
.wg-larc { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 40; transition: stroke-dashoffset 1200ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.wg-circ span { position: relative; display: flex; flex-direction: column; align-items: center; font-size: 10px; line-height: 1.1; }
.wg-circ b { font-size: 19px; }
.wg-rect { flex: 1; background: rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 10px 12px; display: grid; gap: 4px; font-size: 12px; }
.wg-rect span { font-size: 11px; opacity: 0.8; }
.wg-lbar { background: rgba(255, 255, 255, 0.28); height: 5px; }
.wg-lbar i { display: block; height: 100%; width: 60%; background: #fff; border-radius: 3px; }

@media (max-width: 980px) {
  .streaks-grid, .ev-grid { grid-template-columns: 1fr; gap: 40px; }
  .streaks-demo { order: -1; }
  .state-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .state-row { grid-template-columns: 1fr; margin-top: 44px; }
  .wg-board { padding: 14px; gap: 10px; }
  .wg-num { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .sd-flame, .sc-bar i, .di-bar i { animation: none; }
  .sd-arc, .wg-arc, .wg-larc, .wg-bar i, .di-island, .di-compact, .di-expanded, .sd-hero, .sd-trend { transition: none; }
  .state-card, .level-chips button, .feat { transition: none; }
}
