/* ============================================================
   Zap The Weight — zaptheweight.com
   Ember design system, matched to the app's theme tokens.
   ============================================================ */

:root {
  --bg: #111014;
  --surface: #1A181D;
  --surface-high: #2A272E;
  --ember-start: #FF4D00;   /* deep orange (bottom of gradient) */
  --ember-end: #FFB800;     /* gold (top of gradient) */
  --accent: #FF6B1A;
  --on-accent: #111014;
  --text: #F2EEF5;
  --text-2: #9A94A2;
  --text-dim: #777777;
  --outline: #3A353F;
  --positive: #4ADE80;
  --radius: 18px;
  --ember-grad: linear-gradient(135deg, var(--ember-start), var(--ember-end));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header (scrolls under the floating scene like the rest of the page) ---------- */
header {
  position: relative; z-index: 50;
  background: rgba(17, 16, 20, 0.86);
  border-bottom: 1px solid var(--outline);
}
.nav {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px; max-width: 1080px; margin: 0 auto;
}
.nav .mark { width: 42px; height: 42px; flex: none; }
.nav .links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav .links a {
  color: var(--text-2); font-size: 15px; font-weight: 600; text-decoration: none;
}
.nav .links a:hover { color: var(--text); }
.nav .links a.cta {
  color: var(--on-accent); background: var(--ember-grad);
  padding: 8px 16px; border-radius: 999px; font-weight: 800;
}

/* ---------- wordmark ---------- */
.wordmark { display: inline-flex; align-items: baseline; font-weight: 900; letter-spacing: 0.5px; }
.wordmark .bolt { align-self: center; margin-right: 2px; }
.wordmark .w { color: var(--text); }
.wordmark .the { color: var(--accent); }
.wordmark .i-apple { position: relative; }
.wordmark .i-apple svg {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 100%; margin-bottom: -2px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero::before {
  /* ember glow behind the phone */
  content: "";
  position: absolute; right: -160px; top: 40px;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.22) 0%, rgba(255, 77, 0, 0.08) 45%, transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 48px; align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 58px);
  line-height: 1.08; font-weight: 900; letter-spacing: -0.5px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--ember-end), var(--ember-start));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub {
  margin: 18px 0 26px; font-size: 18px; color: var(--text-2); max-width: 46ch;
}
.pillars { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.pillars span {
  font-size: 13.5px; font-weight: 700; color: var(--text-2);
  border: 1px solid var(--outline); background: var(--surface);
  padding: 7px 14px; border-radius: 999px;
}
.pillars span b { color: var(--accent); font-weight: 800; }

/* Google Play CTA (swap for the official badge at launch) */
.play-badge {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1.5px solid var(--accent);
  border-radius: 14px; padding: 12px 22px 12px 16px;
  text-decoration: none !important;
  box-shadow: 0 6px 30px rgba(255, 107, 26, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.play-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(255, 107, 26, 0.28); }
.play-badge .tri { width: 30px; height: 34px; flex: none; }
.play-badge .txt small {
  display: block; font-size: 11px; letter-spacing: 1.6px; font-weight: 700;
  color: var(--text-2); text-transform: uppercase;
}
.play-badge .txt strong { font-size: 21px; font-weight: 800; color: var(--text); line-height: 1.15; }
.badge-note { margin-top: 10px; font-size: 13px; color: var(--text-dim); }

/* ---------- phone frame ---------- */
.phone {
  width: min(310px, 78vw);
  border-radius: 42px;
  background: #060508;
  padding: 12px;
  border: 1px solid #2e2a33;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  position: relative;
}
.phone::after {
  /* camera punch-hole */
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%; background: #060508; z-index: 2;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.phone img { border-radius: 32px; width: 100%; height: auto; }
.hero .phone { justify-self: center; transform: rotate(2.5deg); }

/* ---------- sections ---------- */
section.features { padding: 30px 0 10px; }
.section-label {
  text-align: center; font-size: 13px; font-weight: 800; letter-spacing: 3px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 8px;
}
.section-title {
  text-align: center; font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin-bottom: 8px;
}
.section-sub { text-align: center; color: var(--text-2); max-width: 62ch; margin: 0 auto 26px; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; padding: 44px 0;
}
.feature .phone { justify-self: center; }
.feature:nth-child(even) .phone { order: -1; }
.feature .k {
  font-size: 12.5px; font-weight: 800; letter-spacing: 2.5px;
  color: var(--accent); text-transform: uppercase;
}
.feature h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; margin: 8px 0 12px; line-height: 1.2; }
.feature p { color: var(--text-2); font-size: 16.5px; max-width: 48ch; }
.feature ul { margin: 14px 0 0; padding: 0; list-style: none; }
.feature li {
  color: var(--text-2); font-size: 15.5px; padding: 5px 0 5px 28px; position: relative;
}
.feature li::before {
  content: "⚡"; position: absolute; left: 2px; top: 5px; font-size: 13px;
  filter: hue-rotate(-8deg);
}
.feature li b { color: var(--text); }

/* ---------- CTA band ---------- */
.cta-band { padding: 70px 0 84px; }
.cta-card {
  background:
    radial-gradient(120% 160% at 85% -20%, rgba(255, 184, 0, 0.25), transparent 55%),
    radial-gradient(120% 160% at 10% 120%, rgba(255, 77, 0, 0.30), transparent 55%),
    var(--surface);
  border: 1px solid var(--outline);
  border-radius: 28px;
  text-align: center;
  padding: 58px 28px;
}
.cta-card .mark { width: 84px; height: 84px; margin: 0 auto 18px; }
.cta-card h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; margin-bottom: 10px; }
.cta-card p { color: var(--text-2); max-width: 52ch; margin: 0 auto 28px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--outline); padding: 34px 0 44px; }
.foot {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  justify-content: space-between; max-width: 1080px; margin: 0 auto; padding: 0 24px;
}
.foot .brand { display: flex; align-items: center; gap: 10px; }
.foot .brand .mark { width: 30px; height: 30px; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { color: var(--text-2); font-size: 14px; }
.foot .copy { width: 100%; color: var(--text-dim); font-size: 13px; }
.foot .shexio {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--outline);
  color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: color 0.2s ease;
}
.foot .shexio img { width: 26px; height: 26px; }
.foot .shexio strong { color: var(--text); letter-spacing: 1.5px; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 400; }
.foot .shexio strong .x { color: #f97316; }
.foot .shexio:hover { color: var(--text); text-decoration: none; }

/* ---------- legal pages ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 24px 80px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 900; margin-bottom: 6px; }
.legal .updated { color: var(--text-dim); font-size: 14px; margin-bottom: 34px; }
.legal h2 { font-size: 21px; font-weight: 800; margin: 34px 0 10px; color: var(--text); }
.legal p, .legal li { color: var(--text-2); font-size: 16px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin: 6px 0; }
.legal .card {
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: var(--radius); padding: 18px 20px; margin: 18px 0;
}
.legal .card b { color: var(--ember-end); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero p.sub { margin-left: auto; margin-right: auto; }
  .pillars { justify-content: center; }
  .hero .phone { transform: none; }
  .hero::before { right: -300px; }
  .feature { grid-template-columns: 1fr; gap: 30px; text-align: center; padding: 34px 0; }
  .feature:nth-child(even) .phone { order: 0; }
  .feature p, .feature ul { margin-left: auto; margin-right: auto; }
  .feature li { text-align: left; }
  .nav .links a:not(.cta) { display: none; }
}

/* ---------- animated park scene ---------- */
.scene {
  overflow: hidden;
  background: linear-gradient(#15131A, #111014);
  border-bottom: 1px solid #221F27;
}
.scene svg { display: block; width: 100%; height: 170px; }
@media (max-width: 720px) { .scene svg { height: 120px; } }

/* Floating variant: pinned to the top of the viewport; the whole page scrolls underneath. */
.scene--float {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}
body { padding-top: 170px; }
@media (max-width: 720px) { body { padding-top: 120px; } }

/* actors crossing the strip */
@keyframes sceneCrossR { from { transform: translateX(-160px); } to { transform: translateX(1760px); } }
@keyframes sceneCrossL { from { transform: translateX(1760px); } to { transform: translateX(-200px); } }
.scene .mv  { animation: sceneCrossR 26s linear infinite; }
.scene .mvL { animation: sceneCrossL 11s linear infinite; }
.scene .walker1 { animation-duration: 30s; animation-delay: -13s; }
.scene .walker2 { animation-duration: 36s; animation-delay: -30s; }
.scene .cyclist { animation-duration: 12s; animation-delay: -4s; }
.scene .car1 { animation-duration: 10s; animation-delay: -2s; }
.scene .car2 { animation-duration: 17s; animation-delay: -9s; }

/* two-frame walk cycle: pose A and pose B alternate */
@keyframes poseSwap { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
.scene .pA { animation: poseSwap 0.55s steps(1) infinite; }
.scene .pB { animation: poseSwap 0.55s steps(1) infinite; animation-delay: -0.275s; }

/* gentle vertical bob in stride */
@keyframes sceneBob { 0%, 100% { transform: translate(0, 176px); } 50% { transform: translate(0, 173.6px); } }
.scene .bob  { animation: sceneBob 0.55s ease-in-out infinite; }
.scene .bob2 { animation: sceneBob 0.62s ease-in-out infinite; animation-delay: -0.2s; }

/* spinning bike wheels */
@keyframes spin360 { to { transform: rotate(360deg); } }
.scene .spin { transform-box: fill-box; transform-origin: center; animation: spin360 0.7s linear infinite; }

/* wagging tail */
@keyframes wag { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-22deg); } }
.scene .wag { transform-box: fill-box; transform-origin: 100% 100%; animation: wag 0.5s ease-in-out infinite; }

/* pond shimmer, sun pulse, cloud drift */
@keyframes shimmer { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.9; } }
.scene .shimmer { animation: shimmer 4s ease-in-out infinite; }
@keyframes sunPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.6; } }
.scene .pulse { animation: sunPulse 5s ease-in-out infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(60px); } }
.scene .drift  { animation: drift 34s ease-in-out infinite alternate; }
.scene .drift2 { animation: drift 46s ease-in-out infinite alternate-reverse; }

@media (prefers-reduced-motion: reduce) {
  .scene * { animation: none !important; }
}

/* ---------- "Watch the intro" — a real video-play affordance in the hero ---------- */
.intro-play {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 26px 0 6px;
  padding: 10px 22px 10px 10px;
  background: var(--surface); border: 1px solid var(--outline); border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.intro-play:hover {
  text-decoration: none; transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--outline));
  box-shadow: 0 14px 44px rgba(255, 77, 0, 0.22);
}
.intro-play__btn {
  position: relative; flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ember-grad); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(255, 77, 0, 0.4);
}
.intro-play__btn svg { margin-left: 3px; }
/* sonar pulse rings radiating off the play button */
.intro-play__btn::before, .intro-play__btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--accent);
  animation: introPulse 2.4s ease-out infinite;
}
.intro-play__btn::after { animation-delay: 1.2s; }
@keyframes introPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.85); opacity: 0; }
}
.intro-play__txt { display: flex; flex-direction: column; line-height: 1.25; }
.intro-play__txt strong { color: var(--text); font-size: 17px; font-weight: 800; }
.intro-play__txt small { color: var(--text-2); font-size: 13px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .intro-play__btn::before, .intro-play__btn::after { animation: none; opacity: 0; }
}

/* ---------- Wear OS watch section ---------- */
.watchsec {
  padding: 56px 0 30px;
  background:
    radial-gradient(700px 340px at 50% 30%, rgba(255, 77, 0, 0.10), transparent 70%),
    linear-gradient(#131117, var(--bg));
}
.watch-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(-40px, -2vw, -20px);
  margin: 46px auto 14px; max-width: 860px; min-height: 340px;
}
.watch-dial {
  position: relative; flex: none;
  border-radius: 50%;
  border: 5px solid #2a2028;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 77, 0, 0.18);
  overflow: hidden;
  background: #0a0810;
}
.watch-dial img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.watch-dial.main {
  width: 300px; height: 300px; z-index: 3;
  overflow: visible;
  animation: watchFloat 6s ease-in-out infinite;
}
.watch-dial.main img { position: relative; z-index: 2; }
.watch-dial.side {
  width: 190px; height: 190px; z-index: 2; opacity: 0.92;
}
.watch-dial.side.left  { transform: translate(26px, 48px) rotate(-8deg); animation: watchFloat 7s ease-in-out infinite 0.8s; }
.watch-dial.side.right { transform: translate(-26px, 48px) rotate(8deg); animation: watchFloat 8s ease-in-out infinite 1.6s; }
@keyframes watchFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
/* traveling ember arc riding the main dial's bezel */
.watch-ring {
  position: absolute; inset: -12px; border-radius: 50%; z-index: 1;
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(255, 184, 0, 0.0) 20deg,
    rgba(255, 184, 0, 0.9) 65deg, rgba(255, 77, 0, 0.9) 105deg,
    rgba(255, 77, 0, 0.0) 150deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
  animation: watchRing 4.5s linear infinite;
}
@keyframes watchRing { to { transform: rotate(360deg); } }
/* twinkling sparks around the stage */
.watch-spark {
  position: absolute; width: 10px; height: 10px; z-index: 4; pointer-events: none;
  background: var(--ember-end);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: sparkTwinkle 3.2s ease-in-out infinite;
}
.watch-spark.s1 { top: 12%; left: 22%; }
.watch-spark.s2 { top: 24%; right: 18%; width: 14px; height: 14px; animation-delay: 1.1s; }
.watch-spark.s3 { bottom: 10%; left: 34%; width: 8px; height: 8px; animation-delay: 2.2s; }
@keyframes sparkTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50% { opacity: 0.95; transform: scale(1.15) rotate(45deg); }
}
.watch-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.watch-chips .chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--outline); border-radius: 999px;
  padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--text-2);
}
.watch-chips .chip b { font-weight: 400; }
.watch-note { text-align: center; color: var(--text-dim); font-size: 14px; margin-top: 18px; }
@media (max-width: 760px) {
  .watch-stage { min-height: 250px; margin-top: 30px; }
  .watch-dial.main { width: 210px; height: 210px; }
  .watch-dial.side { width: 128px; height: 128px; }
  .watch-dial.side.left { transform: translate(18px, 36px) rotate(-8deg); }
  .watch-dial.side.right { transform: translate(-18px, 36px) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .watch-dial, .watch-ring, .watch-spark { animation: none !important; }
  .watch-spark { opacity: 0.6; }
}

/* ---------- themes section: layered themed phone stack ---------- */
.themes { padding: 40px 0 10px; }
.themes-stage {
  position: relative; height: 380px; margin: 36px auto 8px; max-width: 780px;
}
.theme-phone {
  position: absolute; top: 50%; left: 50%;
  width: 156px; height: 312px; border-radius: 28px;
  background: var(--ph-bg); border: 6px solid #08070a;
  box-shadow: 0 24px 55px rgba(0,0,0,.55);
  padding: 20px 14px; overflow: hidden;
  transform-origin: 50% 120%;
  transition: transform .35s ease;
}
/* fanned, layered — each a different theme palette */
.tp-ocean  { --ph-bg:#0E1526; --ph-accent:#3B82F6; transform: translate(-50%,-50%) rotate(-17deg) translateX(-172px); z-index:1; }
.tp-rose   { --ph-bg:#1E0E17; --ph-accent:#EC4899; transform: translate(-50%,-50%) rotate(-8.5deg) translateX(-88px); z-index:2; }
.tp-forest { --ph-bg:#0E1A10; --ph-accent:#3FA34D; transform: translate(-50%,-50%) rotate(8.5deg)  translateX(88px);  z-index:2; }
.tp-sunny  { --ph-bg:#EAF2FB; --ph-accent:#F5A623; transform: translate(-50%,-50%) rotate(17deg)   translateX(172px); z-index:1; }
.tp-ember  { --ph-bg:#141014; --ph-accent:#FF6B1A; transform: translate(-50%,-52%) scale(1.08); z-index:5;
             box-shadow: 0 30px 70px rgba(255,107,26,.28), 0 24px 55px rgba(0,0,0,.55); }
.themes-stage:hover .tp-ocean  { transform: translate(-50%,-50%) rotate(-20deg) translateX(-198px); }
.themes-stage:hover .tp-sunny  { transform: translate(-50%,-50%) rotate(20deg)  translateX(198px); }
.themes-stage:hover .tp-ember  { transform: translate(-50%,-55%) scale(1.1); }

/* mini abstract UI inside each phone, tinted by the theme accent */
.theme-phone .tp-ring {
  display:block; width:60px; height:60px; border-radius:50%;
  border:7px solid var(--ph-accent); border-right-color: transparent; margin: 6px auto 18px;
  transform: rotate(-38deg);
}
.theme-phone .tp-pill {
  display:block; height:22px; width:100%; border-radius:11px; background: var(--ph-accent); margin-bottom:14px;
}
.theme-phone .tp-bar {
  display:block; height:12px; border-radius:6px; background: color-mix(in srgb, var(--ph-accent) 30%, transparent);
  margin-bottom:10px;
}
.theme-phone .tp-bar.sm { width:62%; }

/* Extra top gap clears the fanned end cards' rotated bottom corners (they overhang the stage box). */
.theme-chips { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:76px; }
.theme-chips .chip {
  display:inline-flex; align-items:center; gap:8px;
  background: var(--surface); border:1px solid var(--outline); border-radius:999px;
  padding:8px 15px; font-size:14px; font-weight:600; color: var(--text-2);
}
.theme-chips .chip i {
  width:13px; height:13px; border-radius:50%; background: var(--c); flex:none;
}
.theme-chips .chip.premium { color: var(--ember-end); border-color: color-mix(in srgb, var(--ember-end) 45%, var(--outline)); }

@media (max-width: 780px) {
  .themes-stage { height: 300px; transform: scale(.82); }
}
@media (max-width: 480px) {
  .themes-stage { transform: scale(.62); height: 260px; }
}

/* ============================================================
   Workouts — the live figure stage
   The app's own animation, running on the page. Everything here is layout and glow; the poses
   themselves come from figures.js so the site and the app can never drift apart.
   ============================================================ */
.workoutsec {
  padding: 96px 0;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(255,107,26,0.10), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--outline);
}

.workout-stage {
  position: relative;
  margin-top: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 22px;
  min-height: 330px;
}

.wk-panel {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-high), var(--surface));
  border: 1px solid var(--outline);
  padding: 12px 12px 0;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.wk-panel.main {
  width: 320px;
  animation: wkFloat 7s ease-in-out infinite;
  border-color: rgba(255,107,26,0.45);
  box-shadow: 0 22px 54px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,184,0,0.10);
}
.wk-panel.side {
  width: 218px;
  opacity: 0.94;
}
.wk-panel.side:first-of-type { transform: translateY(24px) rotate(-3deg); animation: wkFloat 8s ease-in-out infinite 0.9s; }
.wk-panel.side:last-of-type  { transform: translateY(24px) rotate(3deg);  animation: wkFloat 9s ease-in-out infinite 1.7s; }

@keyframes wkFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -9px; }
}

.wk-panel .ztw-fig { width: 100%; height: auto; display: block; overflow: visible; }
/* The bench press crops its own viewBox, so its panel sits shorter than the square ones; nudge it
   down so all three captions still line up along the bottom. */
.wk-panel.side:last-of-type { align-self: flex-end; }

.wk-panel figcaption {
  margin: 4px 0 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.wk-panel figcaption span {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255,107,26,0.16);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}

.wk-spark {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ember-end);
  opacity: 0.5;
  animation: sparkTwinkle 4s ease-in-out infinite;
  pointer-events: none;
}
.wk-spark.s1 { top: 6%;  left: 16%; }
.wk-spark.s2 { top: 18%; right: 14%; width: 13px; height: 13px; animation-delay: 1.3s; }
.wk-spark.s3 { bottom: 16%; left: 44%; width: 7px; height: 7px; animation-delay: 2.4s; }

/* ---- the planned week ---- */
.wk-week {
  margin: 46px auto 0;
  max-width: 760px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.wk-week-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 12px;
}
.wk-days { display: flex; flex-wrap: wrap; gap: 10px; }
.wk-day {
  flex: 1 1 150px;
  background: var(--surface-high);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}
.wk-day b { display: block; color: var(--text); font-size: 13px; margin-bottom: 1px; }

.wk-pips { display: flex; gap: 6px; margin-top: 14px; }
.wk-pips i {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-high);
  animation: wkPip 8s ease-in-out infinite;
}
.wk-pips i:nth-child(2) { animation-delay: 1.1s; }
.wk-pips i:nth-child(3) { animation-delay: 2.2s; }
.wk-pips i:nth-child(4) { animation-delay: 3.3s; }

/* Fills one day at a time, holds the finished week, then clears — the shape of a week you actually
   work through, rather than a bar that just slides. */
@keyframes wkPip {
  0%, 8%    { background: var(--surface-high); }
  14%, 72%  { background: var(--ember-end); }
  80%, 100% { background: var(--surface-high); }
}

@media (max-width: 900px) {
  .workout-stage { flex-wrap: wrap; gap: 16px; min-height: 0; }
  .wk-panel.main { width: min(320px, 86vw); }
  .wk-panel.side { width: min(214px, 42vw); }
  .wk-panel.side:first-of-type,
  .wk-panel.side:last-of-type { transform: none; }
}
@media (max-width: 560px) {
  .workoutsec { padding: 68px 0; }
  .wk-panel.side { width: min(240px, 46vw); }
}

@media (prefers-reduced-motion: reduce) {
  .wk-panel, .wk-panel.main, .wk-spark, .wk-pips i { animation: none; }
  .wk-pips i { background: var(--ember-end); }
}
