/* ===========================================================
   7min Challenge — marketing site
   Design tokens mirror 7minChallenge/Components/AppTheme.swift
   =========================================================== */

:root {
  --accent: #2abf78;
  --accent-deep: #1da869;
  --accent-deepest: #117452;
  --rest-accent: #ff9f0a;
  --rest-accent-deep: #d67a00;

  --bg-top: #f8f7f4;
  --bg-bottom: #f0ede7;

  --ink: #16211b;
  --ink-secondary: rgba(22, 33, 27, 0.58);
  --ink-tertiary: rgba(22, 33, 27, 0.36);

  --glass-fill: rgba(255, 255, 255, 0.58);
  --glass-fill-strong: rgba(255, 255, 255, 0.78);
  --glass-stroke: rgba(255, 255, 255, 0.65);
  --shadow-soft: rgba(16, 30, 24, 0.08);

  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;

  --container: 1180px;

  --font-rounded: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
}

/* ---------- Ambient glow (mirrors HomeView RadialGradient) ---------- */

.ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 22%,
    rgba(42, 191, 120, 0.14),
    transparent 55%
  );
  z-index: 0;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deepest);
  background: rgba(42, 191, 120, 0.12);
  padding: 7px 14px;
  border-radius: 100px;
}

h1, h2, h3 {
  font-family: var(--font-rounded);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.section-title {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  margin-top: 16px;
}

.section-lede {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6;
  color: var(--ink-secondary);
  margin-top: 18px;
  max-width: 560px;
}

.section-head {
  max-width: 640px;
}

.section-head.centered {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(248, 247, 244, 0.72);
  border-bottom: 1px solid rgba(22, 33, 27, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-brand .nav-icon {
  height: 26px;
  width: 26px;
  border-radius: 22%;
  box-shadow: 0 3px 8px rgba(16, 30, 24, 0.16);
}

.nav-brand .nav-wordmark {
  height: 20px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 100px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(22, 33, 27, 0.18);
}

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 20px 40px -12px rgba(42, 191, 120, 0.45);
  border: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 48px -12px rgba(42, 191, 120, 0.55);
}

.btn-primary .btn-sub {
  display: block;
  font-family: var(--font-text);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.btn-primary .btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* App Store badge */

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  padding: 11px 20px 11px 16px;
  border-radius: 14px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  box-shadow: 0 14px 30px -10px rgba(22, 33, 27, 0.35);
}

.appstore-badge:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 20px 38px -10px rgba(22, 33, 27, 0.45);
}

.appstore-badge svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.appstore-badge .as-text {
  line-height: 1.15;
}

.appstore-badge .as-text small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.appstore-badge .as-text strong {
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-family: var(--font-text);
}

.cta-note {
  font-size: 13px;
  color: var(--ink-tertiary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-note .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Glass card ---------- */

.glass {
  background: var(--glass-fill);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: var(--radius-md);
  border: 0.5px solid var(--glass-stroke);
  box-shadow: 0 14px 30px -8px var(--shadow-soft);
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 40px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

/* App identity row — icon + name, echoes an App Store listing header */

.app-identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 16px 7px 7px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.6);
  border: 0.5px solid var(--glass-stroke);
  box-shadow: 0 8px 20px -8px var(--shadow-soft);
}

.app-identity-icon {
  width: 34px;
  height: 34px;
  border-radius: 22%;
  box-shadow: 0 3px 8px rgba(16, 30, 24, 0.18);
}

.app-identity-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.app-identity-text strong {
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.app-identity-text span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-tertiary);
}

.hero-title {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.04;
  margin-top: 22px;
  letter-spacing: -0.02em;
}

.hero-title .accent-text {
  background: linear-gradient(120deg, var(--accent-deep), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--ink-secondary);
  max-width: 460px;
}

.hero-cta-row {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.hero-proof {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-proof-item {
  display: flex;
  flex-direction: column;
}

.hero-proof-item strong {
  font-family: var(--font-rounded);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}

.hero-proof-item span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 3px;
}

/* Fixed-pixel composition (not percentage-of-fluid-box): both phones keep
   the same 278px design width the internal fixed-px typography was built
   for, and are scaled/positioned with transforms instead of resized via
   width — this avoids text overflow and keeps the front phone fully
   inside its box (no top clipping under the sticky nav). */

.hero-phone-wrap {
  position: relative;
  width: min(460px, 92vw);
  min-height: 600px;
  margin: 0 auto;
  z-index: 1;
}

.hero-phone-wrap::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(42, 191, 120, 0.22), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-phone-slot {
  position: absolute;
  width: 278px;
}

.hero-phone-slot.slot-back {
  left: 0;
  top: 118px;
  transform: scale(0.82) rotate(-7deg);
  transform-origin: top left;
  z-index: 1;
  opacity: 0.9;
  filter: saturate(0.9);
}

.hero-phone-slot.slot-front {
  right: 0;
  top: 0;
  transform: rotate(3deg);
  z-index: 2;
}

.hero-phone-slot .phone {
  width: 100%;
}

/* ---------- iPhone frame ---------- */

.phone {
  width: 278px;
  aspect-ratio: 278 / 572;
  border-radius: 52px;
  background: linear-gradient(160deg, #1c1d1f, #0b0c0d 60%);
  padding: 12px;
  box-shadow: 0 40px 80px -24px rgba(16, 30, 24, 0.4),
    0 10px 30px -10px rgba(16, 30, 24, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
  flex-shrink: 0;
}

.phone-float {
  animation: phoneFloat 7s ease-in-out infinite;
}

.phone-float-slow {
  animation-name: phoneFloatSlow;
  animation-duration: 8.5s;
  animation-delay: 0.6s;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-0.4deg); }
}

@keyframes phoneFloatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.35deg); }
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

.phone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  background: #0b0c0d;
  border-radius: 100px;
  z-index: 10;
}

.phone-content {
  position: absolute;
  inset: 0;
  padding: 46px 16px 16px;
  display: flex;
  flex-direction: column;
}

/* Floating nav buttons (mirrors WorkoutView floatingTopActions) */

.screen-float-btn {
  position: absolute;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 0.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 10px rgba(16, 30, 24, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  font-family: var(--font-rounded);
  font-size: 9px;
  font-weight: 800;
  color: var(--accent-deep);
  padding: 0;
}

.screen-float-btn svg {
  width: 11px;
  height: 11px;
}

.screen-float-btn.btn-back {
  left: 12px;
}

.screen-float-btn.btn-rounds {
  right: 12px;
}

/* ---------- Screen: Home ---------- */

.screen-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.screen-wordmark {
  height: 13px;
}

.screen-date {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

.screen-h1 {
  font-family: var(--font-rounded);
  font-size: 25px;
  font-weight: 800;
  margin-top: 10px;
  color: var(--ink);
}

.screen-cta {
  margin-top: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 22px -8px rgba(42, 191, 120, 0.5);
}

.screen-cta .t1 {
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 800;
}

.screen-cta .t2 {
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2px;
}

.screen-cta .circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-cta .circle svg { width: 11px; height: 11px; }

.screen-stats {
  margin-top: 10px;
  display: flex;
  gap: 6px;
}

.screen-stat-tile {
  flex: 1;
  border-radius: 12px;
  background: var(--glass-fill-strong);
  border: 0.5px solid var(--glass-stroke);
  text-align: center;
  padding: 9px 4px;
}

.screen-stat-tile strong {
  display: block;
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.screen-stat-tile.accent strong { color: var(--accent-deep); }

.screen-stat-tile span {
  display: block;
  font-size: 7.5px;
  color: var(--ink-tertiary);
  margin-top: 2px;
  font-weight: 600;
}

.screen-widgets {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.screen-widget {
  flex: 1;
  border-radius: 14px;
  background: var(--glass-fill-strong);
  border: 0.5px solid var(--glass-stroke);
  padding: 9px 10px;
  min-height: 68px;
}

.screen-widget .wl {
  font-size: 7.5px;
  font-weight: 700;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 3px;
}

.screen-widget .wv {
  font-family: var(--font-rounded);
  font-size: 13px;
  font-weight: 800;
  margin-top: 5px;
  color: var(--ink);
}

.screen-sparkline {
  margin-top: 5px;
}

/* ---------- Screen: Workout ---------- */

.screen-phase {
  text-align: center;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

.screen-progress {
  display: flex;
  gap: 3px;
  margin-top: 8px;
}

.screen-progress span {
  flex: 1;
  height: 3.5px;
  border-radius: 4px;
  background: rgba(22, 33, 27, 0.1);
}

.screen-progress span.on {
  background: var(--accent);
}

.screen-exercise-title {
  text-align: center;
  font-family: var(--font-rounded);
  font-size: 21px;
  font-weight: 800;
  margin-top: 9px;
  color: var(--ink);
}

.screen-stage {
  position: relative;
  margin-top: 8px;
  border-radius: 20px;
  overflow: hidden;
  height: 224px;
  padding: 8px;
  background: linear-gradient(160deg, rgba(255,255,255,0.6), rgba(240,237,231,0.6));
  border: 0.5px solid var(--glass-stroke);
}

.screen-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screen-timer-badge {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 0.5px solid rgba(255,255,255,0.8);
  box-shadow: 0 8px 16px -4px rgba(16,30,24,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-timer-badge .ring {
  position: absolute;
  inset: 0;
}

.screen-timer-badge strong {
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  z-index: 1;
}

.screen-timer-badge.lg {
  width: 72px;
  height: 72px;
  bottom: -28px;
}

.screen-timer-badge.lg .badge-label {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screen-timer-badge.lg strong {
  font-size: 20px;
  line-height: 1;
}

.screen-timer-badge.lg .badge-label span {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-top: 1px;
}

.screen-next-strip {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
}

.screen-next-strip .nl {
  font-size: 7.5px;
  font-weight: 700;
  color: var(--ink-tertiary);
  text-transform: uppercase;
}

.screen-next-strip .nt {
  font-family: var(--font-rounded);
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  flex: 1;
}

.screen-next-strip .ns {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent-deep);
  background: rgba(42, 191, 120, 0.14);
  padding: 3px 8px;
  border-radius: 100px;
}

.screen-controls {
  margin-top: auto;
  display: flex;
  gap: 8px;
  padding-top: 12px;
}

.screen-controls .pause {
  flex: 1;
  height: 40px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  font-family: var(--font-rounded);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 18px -6px rgba(42,191,120,0.5);
}

.screen-controls .skip {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(42, 191, 120, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Screen: Finish ---------- */

.screen-finish {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 18px;
  position: relative;
}

.screen-finish-badge {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(42, 191, 120, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-finish-badge .inner {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 0.5px solid rgba(255,255,255,0.85);
  box-shadow: 0 10px 18px -6px rgba(16,30,24,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-finish-badge svg { width: 24px; height: 24px; }

.screen-finish h4 {
  font-family: var(--font-rounded);
  font-size: 26px;
  font-weight: 800;
  margin-top: 14px;
  color: var(--ink);
}

.screen-finish p {
  font-size: 11px;
  color: var(--ink-secondary);
  font-weight: 500;
  margin-top: 4px;
}

.screen-finish-stats {
  margin-top: 18px;
  width: 100%;
  border-radius: 18px;
  background: var(--glass-fill-strong);
  border: 0.5px solid var(--glass-stroke);
  display: flex;
  padding: 12px 4px;
}

.screen-finish-stats .fs {
  flex: 1;
  text-align: center;
  border-right: 1px solid rgba(22,33,27,0.1);
}

.screen-finish-stats .fs:last-child { border-right: none; }

.screen-finish-stats .fs strong {
  display: block;
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 800;
  margin-top: 4px;
}

.screen-finish-stats .fs span {
  display: block;
  font-size: 7px;
  font-weight: 700;
  color: var(--ink-tertiary);
  margin-top: 2px;
  text-transform: uppercase;
}

.confetti-piece {
  position: absolute;
  border-radius: 2px;
  opacity: 0;
  animation: confettiFall 3.4s ease-in infinite;
}

@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(230px) rotate(200deg); opacity: 0; }
}

/* ---------- Screen: Progress (calendar + weight) ---------- */

.screen-cal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.screen-cal-head strong {
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 800;
}

.screen-cal-head span {
  font-size: 9px;
  color: var(--accent-deep);
  font-weight: 700;
}

.screen-cal-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.screen-cal-grid .d {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: var(--ink-tertiary);
}

.screen-cal-grid .d.on {
  background: var(--accent);
  color: #fff;
}

.screen-cal-grid .d.today {
  border: 1.5px solid var(--accent);
  color: var(--accent-deep);
}

.screen-weight-card {
  margin-top: 12px;
  border-radius: 16px;
  background: var(--glass-fill-strong);
  border: 0.5px solid var(--glass-stroke);
  padding: 12px;
}

.screen-weight-card .wl {
  font-size: 8px;
  font-weight: 700;
  color: var(--ink-tertiary);
  text-transform: uppercase;
}

.screen-weight-card .wv {
  font-family: var(--font-rounded);
  font-size: 18px;
  font-weight: 800;
  margin-top: 4px;
}

/* ---------- Marquee (exercise strip decoration) ---------- */

.marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marqueeScroll 42s linear infinite;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections generic ---------- */

.section {
  padding: 108px 0;
}

@media (max-width: 900px) {
  .section { padding: 76px 0; }
}

.section-alt {
  background: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(22, 33, 27, 0.05);
  border-bottom: 1px solid rgba(22, 33, 27, 0.05);
}

/* ---------- Concept section ---------- */

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.metric-strip {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.metric-card {
  flex: 1;
  border-radius: var(--radius-sm);
  padding: 20px 14px;
  text-align: center;
}

.metric-card strong {
  display: block;
  font-family: var(--font-rounded);
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-deepest);
}

.metric-card span {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 6px;
}

.concept-visual {
  display: flex;
  justify-content: center;
}

.protocol-ring {
  position: relative;
  width: 320px;
  height: 320px;
  max-width: 100%;
}

.protocol-ring svg { width: 100%; height: 100%; }

.protocol-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.protocol-center strong {
  font-family: var(--font-rounded);
  font-size: 46px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.protocol-center span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

/* ---------- Feature (timer) section ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.feature-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(42, 191, 120, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent-deep);
}

.feature-item h4 {
  font-family: var(--font-rounded);
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
}

.feature-item p {
  font-size: 14.5px;
  color: var(--ink-secondary);
  margin-top: 3px;
  line-height: 1.55;
}

/* ---------- Exercises grid ---------- */

.exercise-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .exercise-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .exercise-grid { grid-template-columns: repeat(2, 1fr); }
}

.exercise-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 3.6;
  background: var(--glass-fill);
  border: 0.5px solid var(--glass-stroke);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.exercise-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -14px rgba(16, 30, 24, 0.22);
}

.exercise-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.exercise-card .num {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent-deepest);
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(16,30,24,0.14);
}

.exercise-card .name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 12px;
  background: linear-gradient(to top, rgba(10, 16, 13, 0.72), transparent);
  color: #fff;
  font-family: var(--font-rounded);
  font-size: 13.5px;
  font-weight: 800;
}

/* ---------- Progress section ---------- */

.progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.streak-strip {
  margin-top: 30px;
  display: flex;
  gap: 6px;
}

.streak-day {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  background: rgba(22, 33, 27, 0.06);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-tertiary);
}

.streak-day.on {
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  color: #fff;
}

/* ---------- Final CTA ---------- */

.final-cta {
  text-align: center;
  padding: 96px 0 110px;
}

.final-cta-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 40px;
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(255,255,255,0.75), rgba(240,237,231,0.6));
  border: 0.5px solid var(--glass-stroke);
  box-shadow: 0 30px 60px -20px rgba(16, 30, 24, 0.16);
  position: relative;
  overflow: hidden;
}

.final-cta-card::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(42,191,120,0.16), transparent 65%);
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
}

.final-cta-icon {
  width: 76px;
  height: 76px;
  border-radius: 22%;
  box-shadow: 0 14px 28px -10px rgba(16, 30, 24, 0.28);
  position: relative;
  margin-bottom: 22px;
}

.final-cta-card h2 {
  font-size: clamp(30px, 4vw, 42px);
  position: relative;
}

.final-cta-card p {
  margin-top: 14px;
  font-size: 16.5px;
  color: var(--ink-secondary);
  position: relative;
}

.final-cta-row {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* ---------- Footer ---------- */

.footer {
  background: linear-gradient(160deg, #0d1712, #0a120e);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon {
  width: 26px;
  height: 26px;
  border-radius: 22%;
}

.footer-wordmark {
  height: 20px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 280px;
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 11px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.36);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid,
  .concept-grid,
  .feature-grid,
  .progress-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid > *:first-child,
  .concept-grid > *:first-child {
    order: 2;
  }

  .feature-grid > *:last-child,
  .concept-grid > *:last-child {
    order: 1;
  }

  .hero-phone-wrap {
    order: -1;
    margin-bottom: 8px;
  }

  .hero-sub, .section-lede {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .metric-strip { flex-direction: column; }
  .final-cta-card { padding: 44px 22px; }
  .footer-top { padding-bottom: 32px; }
}

/* Below this width the two-phone composition no longer has room for the
   fixed-px in-screen typography to stay legible — fall back to a single,
   full-size hero phone (the active workout screen) instead of shrinking both. */
@media (max-width: 680px) {
  .hero-phone-wrap {
    width: min(278px, 78vw);
    min-height: 0;
  }

  .hero-phone-slot.slot-back {
    display: none;
  }

  .hero-phone-slot.slot-front {
    position: static;
    width: 100%;
    transform: none;
  }
}
