/* Climbasics landing — Flutter palette, ProductAtlas-inspired craft */

:root {
  --primary: #e21033;
  --primary-soft: #ffecef;
  --primary-glow: rgba(226, 16, 51, 0.18);
  --navy: #0b3044;
  --navy-soft: #163a4f;
  --ink: #0b3044;
  --muted: #5a6f7a;
  --secondary: #aab7bd;
  --bg: #f4f7fa;
  --bg-warm: #eef3f7;
  --surface: #ffffff;
  --line: rgba(11, 48, 68, 0.1);
  --line-strong: rgba(11, 48, 68, 0.18);
  --shadow: 0 20px 50px rgba(11, 48, 68, 0.08);
  --shadow-lift: 0 28px 70px rgba(11, 48, 68, 0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1140px;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grid: rgba(11, 48, 68, 0.045);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 18%, var(--bg) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 20%, transparent 75%);
}

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

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

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(248, 251, 255, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(248, 251, 255, 0.92);
  box-shadow: 0 8px 30px rgba(11, 48, 68, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.35rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand img {
  height: 28px;
  width: auto;
}

.audience-switch {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(11, 48, 68, 0.06);
  border: 1px solid var(--line);
  gap: 0.15rem;
}

.audience-switch a {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.audience-switch a.is-active {
  background: var(--surface);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(11, 48, 68, 0.08);
}

.audience-switch a:hover {
  color: var(--navy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > .audience-switch {
  display: none;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy-soft);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--navy);
  color: white !important;
  font-weight: 700 !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--primary) !important;
  color: white !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn i {
  font-size: 0.92em;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 28px rgba(226, 16, 51, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #c40d2c;
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn-ghost {
  background: white;
  color: var(--navy);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--navy);
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0;
}

.store-links a {
  display: inline-flex;
  line-height: 0;
  border-radius: 8px;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.store-links a:hover,
.store-links a:focus-visible {
  opacity: 0.88;
  transform: translateY(-1px);
}

.store-links img {
  /* Source assets are 35px tall — keep 1× to avoid blurry upscaling */
  height: 35px;
  width: auto;
  display: block;
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: white;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 5.5rem 0 4rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(11, 48, 68, 0.96) 8%, rgba(11, 48, 68, 0.78) 48%, rgba(226, 16, 51, 0.4) 100%),
    linear-gradient(160deg, #0b3044, #163a4f 48%, #1a2430);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
}

.hero-orb.one {
  width: 280px;
  height: 280px;
  background: rgba(226, 16, 51, 0.45);
  top: 8%;
  right: 12%;
  animation: drift 9s ease-in-out infinite;
}

.hero-orb.two {
  width: 220px;
  height: 220px;
  background: rgba(170, 183, 189, 0.28);
  bottom: 10%;
  left: 8%;
  animation: drift 11s ease-in-out infinite reverse;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffb0b8;
  margin: 0 0 1rem;
}

.eyebrow i {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.12);
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.75rem;
}

.hero-brand span {
  color: #ff8a96;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.9rem;
  max-width: 18ch;
  color: #ffffff;
}

.hero-copy {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.06rem;
  margin: 0 0 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.hero-note {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-note i {
  opacity: 0.85;
}

.hero-visual {
  justify-self: end;
  width: min(100%, 300px);
  position: relative;
}

body[data-audience="coaches"] .hero-visual {
  width: min(100%, 440px);
}

.phone-frame {
  border-radius: 34px;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  animation: rise-in 1s var(--ease) both;
}

.phone-frame img {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 9 / 17;
  object-fit: cover;
  background: #102838;
}

.force-chip,
.float-card {
  position: absolute;
  background: white;
  color: var(--navy);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-lift);
  min-width: 148px;
  animation: float-y 4.8s ease-in-out infinite;
}

.force-chip {
  left: -1.4rem;
  bottom: 16%;
}

.float-card.top {
  top: 8%;
  right: -1.6rem;
  animation-delay: -1.5s;
  min-width: 132px;
}

.force-chip strong,
.float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.force-chip span,
.float-card span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.force-chip .bar {
  margin-top: 0.55rem;
  height: 6px;
  border-radius: 999px;
  background: #edf2f5;
  overflow: hidden;
}

.force-chip .bar i {
  display: block;
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--primary), #ff6b6b);
  border-radius: inherit;
  animation: fill-bar 2.4s var(--ease) both;
}

.float-card .meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  color: #0f7a45;
  font-size: 0.75rem;
  font-weight: 700;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(18px, -14px) scale(1.06);
  }
}

@keyframes fill-bar {
  from {
    width: 18%;
  }
  to {
    width: 72%;
  }
}

.hero-brand,
.hero-copy,
.hero h1,
.hero-actions,
.hero-note,
.eyebrow {
  animation: fade-up 0.8s var(--ease) both;
}

.hero h1 {
  animation-delay: 0.06s;
}

.hero-copy {
  animation-delay: 0.12s;
}

.hero-actions {
  animation-delay: 0.18s;
}

.hero-note {
  animation-delay: 0.24s;
}

@keyframes fade-up {
  from {
    opacity: 0.01;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

section {
  padding: 5.5rem 0;
  position: relative;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-weight: 700;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 52ch;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-head.center .section-title,
.section-head.center .section-lead {
  margin-inline: auto;
}

/* ---------- Problem ---------- */

.problem {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.problem-item {
  padding: 1.45rem 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fbff);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.problem-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.problem-item .icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 0.9rem;
}

.problem-item h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.problem-item p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Protocols ---------- */

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.protocol-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.protocol-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary-glow);
  pointer-events: none;
}

.protocol-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(226, 16, 51, 0.28);
}

.protocol-card .index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.protocol-card .index strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.protocol-card .index i {
  color: var(--secondary);
}

.protocol-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

.protocol-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Split feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split.reverse .split-copy {
  order: 2;
}

.split.reverse .split-media {
  order: 1;
}

.split-media {
  position: relative;
}

.split-media .shot {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #102838;
  transform: translateY(0);
  transition: transform 0.4s var(--ease);
}

.split-media.is-visible .shot,
.split-media .shot {
  will-change: transform;
}

.split-media .shot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.annot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: float-y 5.5s ease-in-out infinite;
}

.annot i {
  color: var(--primary);
}

.annot.a1 {
  top: 10%;
  left: -0.5rem;
}

.annot.a2 {
  bottom: 14%;
  right: -0.4rem;
  animation-delay: -2s;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--navy-soft);
}

.feature-list li i {
  color: var(--primary);
  margin-top: 0.2rem;
}

/* ---------- How it works (protocol cards, dark) ---------- */

.how {
  position: relative;
  background: var(--navy);
  color: white;
  overflow: hidden;
}

.how::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(226, 16, 51, 0.18);
  filter: blur(20px);
  right: -80px;
  top: -80px;
  animation: drift 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.how .container {
  position: relative;
  z-index: 1;
}

.how .section-kicker {
  color: #ff8a96;
}

.how .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.how-grid {
  grid-template-columns: repeat(4, 1fr);
}

.how .protocol-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: white;
  backdrop-filter: blur(4px);
}

.how .protocol-card::after {
  background: rgba(226, 16, 51, 0.28);
}

.how .protocol-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 138, 150, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.how .protocol-card .index strong {
  color: #ff8a96;
}

.how .protocol-card .index i {
  color: rgba(170, 183, 189, 0.85);
}

.how .protocol-card h3 {
  color: white;
}

.how .protocol-card p {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Beyond / platform ---------- */

.beyond-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.beyond-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.beyond-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.beyond-item .icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.beyond-item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.beyond-item p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Compare ---------- */

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.compare th,
.compare td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare th {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f3f7fb;
}

.compare td:first-child {
  font-weight: 700;
  color: var(--navy);
  width: 28%;
}

.compare .yes {
  color: #0f7a45;
  font-weight: 700;
}

.compare .soon {
  color: #b35a00;
  font-weight: 700;
}

.compare .no {
  color: var(--muted);
}

.compare tr:last-child td {
  border-bottom: 0;
}

.compare-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Upcoming ---------- */

.upcoming {
  background:
    linear-gradient(180deg, rgba(226, 16, 51, 0.04), transparent 40%),
    var(--bg);
}

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.upcoming-card {
  border-radius: var(--radius);
  padding: 1.45rem;
  background: var(--surface);
  border: 1px dashed rgba(226, 16, 51, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.upcoming-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.upcoming-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.7rem;
}

.upcoming-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.upcoming-card p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Gallery slider (lens / coverflow) ---------- */

#gallery {
  overflow: hidden;
}

.gallery-slider {
  position: relative;
  margin-top: 0.25rem;
}

.gallery-viewport {
  overflow: hidden;
  height: clamp(420px, 62vw, 560px);
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  perspective: 1200px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.gallery-viewport.is-dragging {
  cursor: grabbing;
}

.gallery-viewport.is-dragging .gallery-item {
  pointer-events: none;
}

.gallery-track {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  width: max-content;
  will-change: transform;
  transform-style: preserve-3d;
}

.gallery-item {
  flex: 0 0 auto;
  width: min(210px, 52vw);
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #102838;
  position: relative;
  box-shadow: 0 18px 40px rgba(11, 48, 68, 0.18);
  transform-origin: center center;
  transform: scale(1);
  opacity: 0.92;
  z-index: 1;
  transition: box-shadow 0.25s var(--ease);
  backface-visibility: hidden;
}

.gallery-item.is-focus {
  box-shadow: 0 28px 60px rgba(11, 48, 68, 0.28);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(transparent, rgba(11, 48, 68, 0.92));
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
}

.gallery-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin: 1.15rem auto 0;
  width: min(320px, 72vw);
}

.gallery-scrub-wrap {
  display: block;
  width: 100%;
}

.gallery-scrub {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--primary) 0 var(--pct, 0%),
    rgba(11, 48, 68, 0.14) var(--pct, 0%) 100%
  );
  outline: none;
  cursor: pointer;
}

.gallery-scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(11, 48, 68, 0.22);
  cursor: grab;
  margin-top: -6px;
}

.gallery-scrub::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(11, 48, 68, 0.22);
  cursor: grab;
}

.gallery-scrub::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: transparent;
}

.gallery-scrub::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(11, 48, 68, 0.14);
}

.gallery-scrub:focus-visible {
  box-shadow: 0 0 0 3px rgba(226, 16, 51, 0.22);
  border-radius: 999px;
}

.gallery-hint {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.gallery-hint i {
  color: var(--secondary);
  font-size: 0.95rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .gallery-viewport {
    height: auto;
    mask-image: none;
    -webkit-mask-image: none;
    overflow-x: auto;
    padding: 1rem 1.25rem;
    cursor: auto;
  }

  .gallery-track {
    gap: 0.85rem;
  }

  .gallery-item {
    margin: 0;
    transform: none;
    opacity: 1;
  }

  .gallery-scrub-wrap {
    display: none;
  }
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.2rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0;
  padding: 0 1.2rem 1.15rem;
  color: var(--muted);
}

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

.cta {
  padding-bottom: 6rem;
}

.cta-panel {
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.4rem);
  background:
    radial-gradient(circle at 90% 10%, rgba(226, 16, 51, 0.35), transparent 35%),
    linear-gradient(135deg, #0b3044, #163a4f 55%, #1d2a36);
  color: white;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent, black 40%, black);
  pointer-events: none;
}

.cta-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  max-width: 14ch;
  position: relative;
}

.cta-panel p {
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 42ch;
  position: relative;
}

.waitlist {
  display: grid;
  gap: 0.75rem;
  position: relative;
}

.waitlist-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}

.waitlist input {
  min-height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 0 1.1rem;
  outline: none;
}

.waitlist input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.waitlist input:focus {
  border-color: white;
}

.waitlist.has-error input {
  border-color: #ff8a96;
}

.waitlist-status {
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.waitlist-status.is-error {
  color: #ffb3b8;
}

.waitlist-status.is-success {
  color: #b8f0cb;
}

.cta-side {
  display: grid;
  gap: 1.15rem;
  justify-items: start;
  position: relative;
}

/* ---------- Coach-specific ---------- */

.blueprint {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.blueprint-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  background: var(--navy);
  color: white;
}

.blueprint-head strong {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.blueprint-head span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff8a96;
}

.blueprint ol {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
}

.blueprint li {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.blueprint li:last-child {
  border-bottom: 0;
}

.blueprint .num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
}

.blueprint .label {
  font-weight: 700;
}

.blueprint .hint {
  color: var(--muted);
  font-size: 0.9rem;
  grid-column: 2;
}

.blueprint i {
  color: var(--secondary);
}

.coach-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.metric {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 1rem;
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.metric span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

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

.site-footer {
  background: #071f2c;
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer .brand img {
  height: 26px;
  margin-bottom: 1rem;
}

.site-footer h3 {
  color: white;
  font-size: 0.95rem;
  margin: 0 0 0.9rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a:hover {
  color: white;
}

.socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.socials a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

.footer-bottom a {
  color: white;
}

/* ---------- Reveal / parallax ---------- */

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  }

  .reveal[data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .reveal[data-reveal].from-left {
    transform: translateX(-24px);
  }

  .reveal[data-reveal].from-right {
    transform: translateX(24px);
  }

  .reveal[data-reveal].from-left.is-visible,
  .reveal[data-reveal].from-right.is-visible {
    transform: none;
  }
}

.parallax-float {
  will-change: transform;
}

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

@media (max-width: 1080px) {
  .nav-cluster .audience-switch {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .cta-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-copy,
  .split.reverse .split-media {
    order: initial;
  }

  .hero {
    padding: 5.25rem 0 2.75rem;
  }

  .hero-visual {
    justify-self: start;
    width: min(100%, 240px);
  }

  .hero-brand {
    font-size: clamp(2.05rem, 10vw, 2.8rem);
  }

  .force-chip,
  .float-card.top {
    display: none;
  }

  .protocol-grid,
  .how-grid,
  .upcoming-grid,
  .problem-grid,
  .coach-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(248, 251, 255, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.35rem;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.7rem 0.2rem;
  }

  .nav-cta {
    width: fit-content;
  }

  .nav-links .audience-switch {
    display: inline-flex;
    margin: 0.35rem 0 0.6rem;
    width: fit-content;
  }

  .protocol-grid,
  .how-grid,
  .upcoming-grid,
  .problem-grid,
  .beyond-grid,
  .coach-metrics {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    width: min(170px, 48vw);
    margin: 0;
  }

  .gallery-track {
    gap: 0.85rem;
  }

  .gallery-viewport {
    height: clamp(360px, 78vw, 480px);
  }

  .waitlist-row {
    grid-template-columns: 1fr;
  }

  section {
    padding: 4rem 0;
  }

  .annot {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
