/* ==========================================================================
   RepWrapped marketing site
   --------------------------------------------------------------------------
   Contents
     1. Design tokens (colours, type, spacing): edit these to re-theme
     2. Base and utilities
     3. Buttons and small shared pieces
     4. Header and navigation
     5. Hero
     6. Section scaffolding
     7. Value proposition
     8. How it works
     9. Features
    10. Recap card, heatmap and share card (hero + interactive demo)
    11. Interactive example report
    12. Benefits and early access
    13. FAQ
    14. Final call to action
    15. Contact form
    16. Footer
    17. Motion and reduced-motion
   ========================================================================== */


/* 1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Surfaces */
  --bg: #09090D;            /* page background */
  --bg-alt: #111118;        /* alternate section bands */
  --card: #171720;          /* cards */
  --card-raised: #1E1E2A;   /* hover / raised surfaces */
  --field: #0F0F15;         /* form inputs */

  /* Brand accents */
  --accent: #8B5CF6;        /* electric purple: glows, borders, icons */
  --accent-strong: #7C3AED; /* button fills (passes contrast with white text) */
  --accent-deep: #6D28D9;
  --accent-light: #A78BFA;  /* bright violet */
  --accent-pale: #C4B5FD;   /* focus rings, small highlights */
  --accent-soft: rgba(139, 92, 246, 0.14);

  /* Text */
  --text: #F5F5F7;
  --muted: #A1A1AA;

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-accent: rgba(167, 139, 250, 0.35);

  /* Status */
  --error: #FCA5A5;
  --error-line: rgba(248, 113, 113, 0.5);

  /* Type */
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Shape (bigger surfaces get bigger corners) */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  /* Layout */
  --header-h: 72px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
}


/* 2. BASE AND UTILITIES
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-pale); text-underline-offset: 3px; }
a:hover { color: #fff; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 1.1rem + 3vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
}
h3 { font-size: 1.25rem; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent-pale);
  outline-offset: 3px;
  border-radius: 6px;
}
[tabindex="-1"]:focus { outline: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #09090D;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.lead {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  max-width: 38em;
}


/* 3. BUTTONS AND SMALL SHARED PIECES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn--sm { min-height: 44px; padding: 0 1.15rem; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 0 1.9rem; font-size: 1.0625rem; }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-deep));
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 12px 32px -12px rgba(139, 92, 246, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  border-color: var(--accent-pale);
  box-shadow: 0 16px 40px -10px rgba(139, 92, 246, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:active { transform: translateY(0); }

.btn--secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
}
.btn--secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-light);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem 0.45rem 0.85rem;
  border: 1px solid var(--line-accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-pale);
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1.3;
}
.pill::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 12px 2px rgba(167, 139, 250, 0.7);
}

.gym-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand, var(--accent));
  color: #09090D;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}


/* 4. HEADER AND NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.is-scrolled,
.site-header.is-menu-open {
  background: rgba(9, 9, 13, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.wordmark:hover { color: #fff; }
.wordmark__text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.wordmark__light { font-weight: 500; color: var(--accent-pale); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.site-nav__link[aria-current="true"] { color: #fff; background: var(--accent-soft); }

@media (max-width: 899.98px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 28px;
    background: rgba(9, 9, 13, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    /* Closed state: hidden from sight AND from the keyboard tab order. */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link {
    min-height: 56px;
    padding: 0 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
    background: none !important;
  }
  .site-nav__link[aria-current="true"] { color: var(--accent-pale); }
  .site-nav__cta { min-height: 56px; margin-top: 8px; }

  /* Without JavaScript the menu simply stays open and wraps under the logo. */
  .no-js .site-header { position: absolute; height: auto; padding-block: 12px; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-nav {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: none;
    border: 0;
    padding: 0;
  }
  .no-js .site-header__inner { flex-wrap: wrap; }
}


/* 5. HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: clip;
  padding: calc(var(--header-h) + clamp(36px, 6vw, 72px)) 0 clamp(72px, 9vw, 120px);
  background:
    radial-gradient(55% 60% at 82% 18%, rgba(139, 92, 246, 0.26), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(109, 40, 217, 0.16), transparent 70%),
    var(--bg);
}
.hero__grid {
  display: grid;
  gap: clamp(48px, 8vw, 72px);
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hero__title {
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 1.1rem + 5.4vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero__lead { margin-top: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero__note { margin-top: 1.75rem; max-width: 34em; color: var(--muted); font-size: 0.9375rem; }

.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 4% -4% 8%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.38), transparent 100%);
  filter: blur(36px);
}
.hero__caption {
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

/* A stack of monthly recaps: this month in front, earlier months behind. */
.deck {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding-top: 64px;
}
.deck__back {
  position: absolute;
  display: flex;
  justify-content: space-between;
  height: 120px;
  padding: 9px 22px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #13131B;
  color: var(--muted);
  font-size: 0.8125rem;
}
.deck__back--near { top: 30px; left: 16px; right: 16px; }
.deck__back--far { top: 2px; left: 34px; right: 34px; background: #0F0F16; }

.float-badge {
  position: absolute;
  top: 44px;
  right: -8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-strong));
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1;
  box-shadow: 0 14px 34px -10px rgba(139, 92, 246, 0.9);
  transform: rotate(4deg);
}
.float-badge .icon { width: 18px; height: 18px; fill: #fff; stroke: #fff; stroke-width: 1; }
.float-badge strong { font-family: var(--font-display); font-weight: 800; }

.float-share {
  display: none;
  position: absolute;
  right: -50px;
  bottom: 16px;
  z-index: 3;
  width: 116px;
  aspect-ratio: 4 / 5;
  flex-direction: column;
  align-items: flex-start;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: radial-gradient(100% 70% at 50% 0%, rgba(139, 92, 246, 0.5), transparent 75%), #17171F;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.9);
  transform: rotate(6deg);
}
.float-share__gym { font-size: 0.75rem; font-weight: 700; color: var(--accent-pale); }
.float-share__num {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.float-share__unit { margin-top: 4px; font-size: 0.75rem; color: var(--muted); line-height: 1.2; }
.float-share__bar {
  width: 100%;
  height: 6px;
  margin-top: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) 70%, rgba(255, 255, 255, 0.12) 70%);
}

@media (min-width: 640px) {
  .float-share { display: flex; }
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
/* Keep the floating share card inside the screen on laptop-sized windows. */
@media (max-width: 1199.98px) {
  .float-share { right: -24px; }
}
@media (max-width: 479.98px) {
  .hero__actions .btn { width: 100%; }
  .float-badge { right: -4px; padding: 8px 11px 8px 9px; font-size: 0.8125rem; }
}


/* 6. SECTION SCAFFOLDING
   ========================================================================== */
.section { position: relative; padding-block: var(--section-y); }
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.section-head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { margin-top: 1.25rem; }

.section-head--split { max-width: none; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; }
}


/* 7. VALUE PROPOSITION
   ========================================================================== */
.contrast { display: grid; gap: 14px; }
.contrast__row {
  padding: 18px 22px;
  border-radius: var(--radius-md);
}
.contrast__row:not(.contrast__row--story) {
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
}
.contrast__row--story {
  border: 1px solid var(--line-accent);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.06));
  box-shadow: 0 20px 50px -24px rgba(139, 92, 246, 0.7);
}
.contrast__label { color: var(--muted); font-size: 0.875rem; }
.contrast__plain { margin-top: 4px; color: var(--muted); font-size: 1.0625rem; }
.contrast__story {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.value-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.value {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.value--streak {
  border-color: var(--line-accent);
  background: linear-gradient(165deg, rgba(139, 92, 246, 0.24), rgba(139, 92, 246, 0.04) 62%), var(--card);
}
.value--community {
  background: radial-gradient(90% 70% at 100% 100%, rgba(139, 92, 246, 0.2), transparent 70%), var(--card);
}
.value__visual { height: 120px; margin-bottom: 28px; }
.value h3 { margin-bottom: 0.6rem; }
.value p { color: var(--muted); }

/* Week chain */
.chain {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
  justify-items: center;
}
.chain::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--accent-light) 0 66%, rgba(255, 255, 255, 0.12) 66%);
  border-radius: 3px;
}
.chain__node {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 40px;
  aspect-ratio: 1;
  border: 2px dashed var(--line-strong);
  border-radius: 50%;
  background: var(--card);
  color: #fff;
}
.chain__node.is-on {
  border: 0;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-strong));
  box-shadow: 0 0 20px -2px rgba(139, 92, 246, 0.8);
}
.chain__node .icon { width: 55%; height: 55%; stroke-width: 3; }
.chain__node--faint { opacity: 0.45; }

/* Time-of-day bars */
.hours { display: flex; align-items: flex-end; gap: 6px; }
.hours span {
  flex: 1;
  height: var(--h);
  min-height: 6px;
  border-radius: 6px 6px 3px 3px;
  background: rgba(255, 255, 255, 0.13);
}
.hours .is-peak { background: linear-gradient(180deg, var(--accent-light), var(--accent-strong)); }

/* Community */
.community { display: flex; flex-wrap: wrap; align-content: center; align-items: center; gap: 14px 18px; }
.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-right: -26px;
  border: 3px solid var(--card);
  border-radius: 50%;
  color: #09090D;
  font-size: 0.875rem;
  font-weight: 800;
}
.avatar--a { background: #A78BFA; }
.avatar--b { background: #2DD4BF; }
.avatar--c { background: #FBBF24; margin-right: 0; }
.community__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-pale);
  font-size: 0.875rem;
  font-weight: 600;
}
.community__tag .icon { width: 16px; height: 16px; }


/* 8. HOW IT WORKS
   ========================================================================== */
.steps { display: grid; gap: 20px; list-style: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-accent);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-pale);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}
.step__icon { width: 26px; height: 26px; color: var(--accent-light); }
.step p { color: var(--muted); }
.step__visual {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--field);
}
.step > p + .step__visual { margin-top: 12px; }

/* Joins the three steps on wide screens */
@media (min-width: 900px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 49px;
    left: 100%;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
  }
}

.mini-title { margin-bottom: 10px; color: var(--muted); font-size: 0.8125rem; }
.checkins { list-style: none; display: grid; gap: 6px; }
.checkins li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9375rem;
}
.checkins li span:last-child { color: var(--muted); }

.step__visual--recap { display: flex; align-items: center; gap: 14px; }
.mini-recap__stats { flex: 1; min-width: 0; }
.mini-recap__stats p { color: var(--muted); font-size: 0.9375rem; line-height: 1.35; }
.mini-recap__stats strong { color: #fff; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.mini-recap__swatches { display: flex; gap: 6px; }
.mini-recap__swatches i { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }
.mini-recap__swatches i:nth-child(2) { background: var(--accent-light); }
.mini-recap__swatches i:nth-child(3) { background: #2DD4BF; }

.step__visual--mail { display: flex; align-items: flex-start; gap: 12px; }
.mail__from { color: var(--muted); font-size: 0.8125rem; }
.mail__subject { font-size: 0.9375rem; font-weight: 650; line-height: 1.3; }
.mail__preview { margin-top: 2px; color: var(--muted); font-size: 0.875rem; line-height: 1.35; }


/* 9. FEATURES
   ========================================================================== */
.bento { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature--stats { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .feature--stats { grid-column: span 7; }
  .feature--streak { grid-column: span 5; }
  .feature--milestone, .feature--times, .feature--brand { grid-column: span 4; }
  .feature--share, .feature--delivery { grid-column: span 6; }
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.feature p { color: var(--muted); }
.feature__icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line-accent);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-pale);
}
.feature__visual { margin-top: auto; padding-top: 16px; }

.feature--stats, .feature--share, .feature--delivery {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
}
.feature__body { display: flex; flex-direction: column; gap: 12px; flex: 1 1 240px; min-width: 0; }
.feature--stats .feature__visual,
.feature--share .feature__visual,
.feature--delivery .feature__visual { margin: 0; padding: 0; }

.feature--stats {
  background: radial-gradient(70% 90% at 100% 100%, rgba(139, 92, 246, 0.2), transparent 70%), var(--card);
}
.feature--streak {
  border-color: var(--line-accent);
  background: linear-gradient(165deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.03) 60%), var(--card);
}
.feature--share {
  background: radial-gradient(60% 100% at 100% 50%, rgba(139, 92, 246, 0.22), transparent 70%), #13131B;
}

.weeks { display: flex; align-items: flex-end; gap: 18px; }
.weeks__num {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.05em;
}
.weeks__bars { display: flex; align-items: flex-end; gap: 8px; height: 88px; }
.weeks__bars span {
  width: 16px;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--accent-light), var(--accent-strong));
}
.weeks__bars span:last-child { background: rgba(255, 255, 255, 0.14); }

.track { position: relative; height: 28px; margin-right: 12px; }
.track__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 4px;
  background: var(--accent);
  opacity: 0.55;
}
.track__dot {
  position: absolute;
  top: 50%;
  left: var(--x);
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 0 4px var(--card);
}
.track__dot.is-big {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-strong));
  box-shadow: 0 0 0 4px var(--card), 0 0 22px rgba(139, 92, 246, 0.8);
}

.daystrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.daystrip span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}
.daystrip span:nth-child(2) { background: var(--accent-strong); color: #fff; box-shadow: 0 0 18px -2px rgba(139, 92, 246, 0.8); }

.swatch-row { display: flex; gap: 10px; }
.swatch-row i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.phone {
  width: 112px;
  padding: 6px;
  border: 2px solid var(--line-strong);
  border-radius: 24px;
  background: #0B0B10;
  transform: rotate(4deg);
}
.phone__screen {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 150px;
  padding: 12px;
  border-radius: 18px;
  background: radial-gradient(100% 70% at 50% 0%, rgba(139, 92, 246, 0.55), transparent 80%), #17171F;
}
.phone__gym { font-size: 0.75rem; font-weight: 700; color: var(--accent-pale); }
.phone__num {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.phone__unit { font-size: 0.75rem; color: var(--muted); }

.months { display: flex; align-items: center; gap: 0; list-style: none; flex-wrap: wrap; row-gap: 8px; }
.months li {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}
.months li + li { margin-left: 18px; position: relative; }
.months li + li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--line-strong);
}
.months li.is-current { border-color: var(--accent-light); background: var(--accent-strong); color: #fff; }


/* 10. RECAP CARD, HEATMAP AND SHARE CARD
   (used in the hero and the interactive example; --brand sets the gym colour)
   ========================================================================== */
.recap {
  --brand: var(--accent);
  position: relative;
  z-index: 2;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 62%),
    #14141C;
  box-shadow: 0 40px 90px -36px rgba(0, 0, 0, 0.9), 0 0 60px -30px var(--brand);
  transition: box-shadow 0.3s ease;
}
.recap__head { display: flex; align-items: center; gap: 12px; }
.recap__gym { font-size: 0.9375rem; font-weight: 700; line-height: 1.25; }
.recap__period { color: var(--muted); font-size: 0.8125rem; line-height: 1.3; }

.recap__member {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.recap__tagline { margin-top: 2px; color: var(--muted); font-size: 0.9375rem; }

.recap__lead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 18px;
  margin: 14px 0 22px;
}
.recap__bignum { display: flex; align-items: flex-end; gap: 12px; }
.recap__num {
  font-family: var(--font-display);
  font-size: clamp(4.75rem, 18vw, 7rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.recap__unit { padding-bottom: 2px; color: var(--muted); font-size: 0.9375rem; line-height: 1.25; }

.delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}
.delta .icon { width: 16px; height: 16px; color: var(--brand); stroke-width: 2.5; }

.recap__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: 10px;
  margin-bottom: 22px;
  list-style: none;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
}
.stat__label { color: var(--muted); font-size: 0.8125rem; line-height: 1.3; }
.stat__value {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.stat__detail { color: var(--muted); font-size: 0.8125rem; line-height: 1.3; }

/* Compact version used in the hero */
.recap--mini { padding: 22px; }
.recap--mini .recap__num { font-size: 4.75rem; }
.recap--mini .recap__lead { margin-bottom: 18px; }
.recap--mini .recap__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.recap--mini .stat__value { font-size: 1.25rem; }

/* Heatmap: one square per day, one row per week */
.heat {
  --gap: 6px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)) auto;
  gap: var(--gap);
  align-items: center;
}
.heat--mini, .heat--share { grid-template-columns: repeat(7, minmax(0, 1fr)); --gap: 5px; }
.heat__dow { color: var(--muted); font-size: 0.75rem; text-align: center; }
.heat__dow--week { padding-left: 4px; text-align: right; }

.heat__cell {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 28%;
  background: rgba(255, 255, 255, 0.07);
}
.heat__cell.is-outside { background: transparent; border: 1px dashed rgba(255, 255, 255, 0.1); }
.heat__cell.is-visit {
  background: var(--brand);
  box-shadow: 0 0 16px -4px var(--brand);
}
.heat__cell.is-visit::after {
  content: "";
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: rgba(9, 9, 13, 0.7);
}
.heat__cell.is-outside.is-visit { border: 0; opacity: 0.4; box-shadow: none; }
.heat__cell.is-milestone { outline: 2px solid #fff; outline-offset: 2px; }
.heat__cell.is-milestone::after { display: none; }
.heat__cell .icon { width: 60%; height: 60%; fill: #09090D; stroke: #09090D; stroke-width: 1; }

.heat__week {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 2.6rem;
  padding-left: 4px;
  color: var(--muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.heat__week.is-streak { color: #fff; font-weight: 700; }
.heat__week .icon { width: 14px; height: 14px; stroke: var(--brand); stroke-width: 3; }

.recap__graphic-title { margin-bottom: 12px; font-size: 0.9375rem; font-weight: 650; }
.heat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.8125rem;
  list-style: none;
}
.heat-legend li { display: inline-flex; align-items: center; gap: 8px; }
.heat-legend .heat__cell { width: 18px; }
.heat-legend .heat__week { min-width: 0; padding: 0; }

.recap__achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
  margin-top: 22px;
}
.achievement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.achievement__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand);
  color: #09090D;
}
.achievement__icon .icon { width: 22px; height: 22px; }
.achievement__title { color: var(--muted); font-size: 0.8125rem; line-height: 1.3; }
.achievement__value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.achievement__detail { color: var(--muted); font-size: 0.8125rem; line-height: 1.35; }

.recap__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}
.recap-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 650; }
.recap-brand svg { width: 20px; height: 20px; }

/* Shareable graphic */
.share-card {
  --brand: var(--accent);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(95% 60% at 50% 0%, color-mix(in srgb, var(--brand) 42%, transparent), transparent 72%),
    linear-gradient(180deg, #18181F, #0E0E14);
  box-shadow: 0 40px 90px -36px rgba(0, 0, 0, 0.9), 0 0 60px -26px var(--brand);
}
.share-card__top { display: flex; align-items: center; gap: 10px; }
.share-card__gym { font-size: 0.9375rem; font-weight: 700; line-height: 1.25; }
.share-card__period { color: var(--muted); font-size: 0.8125rem; }
.share-card__member {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}
.share-card__num {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 28vw, 8rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.05em;
}
.share-card__unit { margin: 8px 0 18px; color: var(--muted); font-size: 0.9375rem; }
.share-card .heat { margin-top: auto; }
.share-card__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; list-style: none; }
.share-card__pills li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.8125rem;
  font-weight: 650;
}
.share-card__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.share-card__brand svg { width: 18px; height: 18px; }


/* 11. INTERACTIVE EXAMPLE REPORT
   ========================================================================== */
.demo__layout { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .demo__layout { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px; align-items: start; }
}
.demo__controls { display: grid; gap: 32px; }
.demo__group-title { margin-bottom: 14px; font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: 0; }

.demo-tabs { display: grid; gap: 10px; }
.demo-tab {
  position: relative;
  display: grid;
  gap: 1px;
  width: 100%;
  min-height: 64px;
  padding: 14px 16px 14px 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.demo-tab::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}
.demo-tab:hover { border-color: var(--accent-light); background: var(--card-raised); }
.demo-tab[aria-selected="true"] { border-color: var(--accent-light); background: var(--accent-soft); }
.demo-tab[aria-selected="true"]::before {
  border-color: var(--accent-pale);
  background: radial-gradient(circle, #fff 0 32%, var(--accent-strong) 36%);
}
.demo-tab__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.demo-tab__note { color: var(--muted); font-size: 0.9375rem; line-height: 1.35; }
.demo-tab__member { margin-top: 2px; color: var(--accent-pale); font-size: 0.875rem; font-weight: 600; }

.swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.swatch {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c);
  color: #09090D;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.swatch .icon { width: 22px; height: 22px; stroke-width: 3; opacity: 0; }
.swatch:hover { transform: scale(1.06); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg-alt), 0 0 0 5px #fff; }
.swatch[aria-pressed="true"] .icon { opacity: 1; }
.demo__hint { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }

.calc { display: grid; }
.calc > div { padding: 12px 0; border-top: 1px solid var(--line); }
.calc dt { font-size: 0.9375rem; font-weight: 650; }
.calc dd { margin-top: 2px; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

.demo__stage {
  min-width: 0;
  padding: clamp(14px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(139, 92, 246, 0.14), transparent 70%),
    #12121A;
}
.demo__toolbar { display: flex; justify-content: center; }
.view-toggle {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25);
}
.view-toggle__btn {
  min-height: 44px;
  padding: 0 clamp(12px, 3vw, 20px);
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.view-toggle__btn:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.view-toggle__btn[aria-pressed="true"] { background: var(--accent-strong); color: #fff; }

.demo__panel { margin-top: 20px; border-radius: var(--radius-lg); outline-offset: 6px; }
.demo__view { max-width: 580px; margin-inline: auto; }
.demo__view[data-view-panel="share"] { max-width: 400px; }
.demo__view[hidden] { display: none; }
.demo__noscript { color: var(--muted); text-align: center; }

.email-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}
.email-strip__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-pale);
}
.email-strip__icon .icon { width: 18px; height: 18px; }
.email-strip__from { color: var(--muted); font-size: 0.8125rem; line-height: 1.3; }
.email-strip__subject { font-size: 0.9375rem; font-weight: 650; line-height: 1.3; }

.demo__disclaimer {
  max-width: 46rem;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

.demo__panel.is-updating .recap,
.demo__panel.is-updating .share-card { animation: panel-swap 0.35s ease both; }


/* 12. BENEFITS AND EARLY ACCESS
   ========================================================================== */
.benefits { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) {
  .benefits { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; }
  .benefits__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
.benefits__intro .lead { margin-top: 1.25rem; }
.benefits__note {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 34em;
}
.benefits__list { list-style: none; }
.benefit {
  display: flex;
  gap: 20px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}
.benefit:last-child { border-bottom: 1px solid var(--line); }
.benefit__icon {
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid var(--line-accent);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-pale);
}
.benefit h3 { margin-bottom: 6px; font-size: 1.1875rem; }
.benefit p { color: var(--muted); }

.early { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .early { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 72px; } }
.early__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.early__panel {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line-accent);
  border-radius: var(--radius-xl);
  background: radial-gradient(90% 70% at 0% 0%, rgba(139, 92, 246, 0.22), transparent 70%), var(--card);
}
.early__panel h3 { margin-bottom: 20px; }
.early__list { display: grid; gap: 16px; list-style: none; }
.early__list li { display: flex; align-items: flex-start; gap: 14px; }
.early__list .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--accent-light); }
.early__fine { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }


/* 13. FAQ
   ========================================================================== */
.faq-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; }
  .faq-layout__head { position: sticky; top: calc(var(--header-h) + 32px); }
}
.faq-layout__head .lead { margin-top: 1.25rem; }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__heading { font-size: inherit; letter-spacing: 0; line-height: 1.3; }
.faq__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 64px;
  padding: 18px 4px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq__button:hover { color: var(--accent-pale); }
.faq__icon {
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent-pale);
  transition: transform 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.faq__button[aria-expanded="true"] .faq__icon {
  transform: rotate(180deg);
  background: var(--accent-soft);
  border-color: var(--line-accent);
}
.faq__answer { max-width: 62ch; padding: 0 56px 26px 4px; color: var(--muted); }
.faq__answer p + p { margin-top: 0.85rem; }
.faq__panel:not([hidden]) .faq__answer { animation: faq-open 0.25s ease-out both; }
.no-js .faq__panel[hidden] { display: block; }
@media (max-width: 599.98px) { .faq__answer { padding-right: 4px; } }


/* 14. FINAL CALL TO ACTION
   ========================================================================== */
.final-cta { padding: 0 0 var(--section-y); }
.final-cta__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(40px, 8vw, 96px) clamp(22px, 6vw, 72px);
  border: 1px solid var(--line-accent);
  border-radius: clamp(28px, 4vw, 40px);
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(139, 92, 246, 0.38), transparent 72%),
    radial-gradient(50% 60% at 50% 120%, rgba(109, 40, 217, 0.3), transparent 70%),
    #14141C;
  box-shadow: 0 0 120px -40px rgba(139, 92, 246, 0.6);
  text-align: center;
}
.final-cta__card h2 { max-width: 20ch; font-size: clamp(2rem, 1rem + 3.6vw, 3.75rem); }
.final-cta__card .lead { max-width: 30em; }
.final-cta__card .btn { margin-top: 0.5rem; }
@media (max-width: 479.98px) { .final-cta__card .btn { width: 100%; } }


/* 15. CONTACT FORM
   ========================================================================== */
.contact { padding-top: 0; }
.contact__grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; }
  .contact__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
.contact__intro .lead { margin-top: 1.25rem; }
.next-steps { display: grid; gap: 14px; margin-top: 32px; list-style: none; }
.next-steps li { display: flex; align-items: center; gap: 14px; }
.next-steps__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-accent);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-pale);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
}
.contact__email { margin-top: 32px; color: var(--muted); font-size: 0.9375rem; }
.contact__email a { overflow-wrap: anywhere; }

.contact__form-wrap { min-width: 0; }
.form, .form-success {
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: 0 40px 90px -50px rgba(139, 92, 246, 0.5);
}
.form { position: relative; }
.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: 0.9375rem; font-weight: 650; line-height: 1.35; }
.field__opt { color: var(--muted); font-weight: 400; }
.field__input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--text);
  font-size: 1rem;           /* 16px stops iPhones zooming in on focus */
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field__input::placeholder { color: #7C7C88; }
.field__input:hover { border-color: rgba(255, 255, 255, 0.28); }
.field__input:focus-visible {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.35);
}
.field__input[aria-invalid="true"] {
  border-color: var(--error-line);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.16);
}
.field__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field__select option { background: #1E1E2A; color: var(--text); }
.field__textarea { min-height: 128px; resize: vertical; }
.field__error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--error);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.field__error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--error);
  color: #450A0A;
  font-size: 0.75rem;
  font-weight: 800;
}
.field__error[hidden] { display: none; }

.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { margin: 24px 0 20px; color: var(--muted); font-size: 0.9375rem; }

.form-alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid var(--error-line);
  border-radius: var(--radius-sm);
  background: rgba(248, 113, 113, 0.1);
  color: #FECACA;
  font-size: 0.9375rem;
}
.form-alert a { color: #fff; overflow-wrap: anywhere; }
.form-alert[hidden], .form-devnote[hidden], .form-success[hidden], .form[hidden] { display: none; }

.form-devnote {
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.09);
  color: #FDE68A;
  font-size: 0.9375rem;
}
.form-devnote code { font-size: 0.9em; }

.form__submit { width: 100%; }
.form__submit[aria-disabled="true"] { cursor: progress; opacity: 0.85; transform: none; }
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.form__submit.is-loading .spinner { display: inline-block; }

.form-success { text-align: center; padding-block: clamp(40px, 7vw, 72px); }
.form-success__icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-strong));
  box-shadow: 0 0 40px -6px rgba(139, 92, 246, 0.8);
}
.form-success__icon .icon { width: 30px; height: 30px; stroke: #fff; stroke-width: 3; }
.form-success h3 { margin-bottom: 10px; font-size: 1.75rem; }
.form-success p { max-width: 30em; margin-inline: auto; color: var(--muted); }


/* 16. FOOTER
   ========================================================================== */
.site-footer { padding: 56px 0 64px; border-top: 1px solid var(--line); background: var(--bg-alt); color: var(--muted); font-size: 0.9375rem; }
.site-footer__inner { display: grid; gap: 36px; }
.site-footer__brand { display: grid; gap: 14px; max-width: 22rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__nav a, .site-footer__legal a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; }
.site-footer__nav a:hover, .site-footer__legal a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal { display: grid; gap: 6px; }
.site-footer__legal a { overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: 1.2fr 1fr 1.2fr; align-items: start; }
  .site-footer__nav { flex-direction: column; }
}


/* 17. MOTION
   One load-in moment in the hero, plus motion that answers a click or tap.
   Everything is switched off for people who ask for reduced motion.
   ========================================================================== */
@keyframes deck-in {
  from { opacity: 0; transform: translateY(28px); }
}
.deck__back--near { animation: deck-in 0.6s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.deck__back--far { animation: deck-in 0.6s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

@keyframes cell-in {
  from { opacity: 0; transform: scale(0.45); }
}
.heat--animate .heat__cell {
  animation: cell-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--delay, 0ms) + var(--i, 0) * 14ms);
}

@keyframes panel-swap {
  from { opacity: 0.35; transform: translateY(8px); }
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
