:root {
  --bg: #f7f8f5;
  --canvas: #f0f2ee;
  --ink: #0b1f3a;
  --muted: #5a6b7c;
  --muted-soft: #8a96a3;
  --magenta: #d5006d;
  --cyan: #1a7ae0;
  --forest: #1b5e3b;
  --lime: #2e8b57;
  --orange: #e87b12;
  --surface: #ffffff;
  --border: rgba(11, 31, 58, 0.12);
  --nav-h: 72px;
  --max: 1080px;
  --page-x: clamp(20px, 5vw, 56px);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --phone-w: 260px;
  --phone-w-sm: 220px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg, var(--canvas) 0%, var(--bg) 42%, var(--bg) 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.atmosphere-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  will-change: transform;
  opacity: 0.9;
}

.atmosphere-orb-a {
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  top: -18%;
  left: -12%;
  background: radial-gradient(circle, rgba(213, 0, 109, 0.28), transparent 68%);
}

.atmosphere-orb-b {
  width: min(55vw, 560px);
  height: min(55vw, 560px);
  top: 8%;
  right: -10%;
  background: radial-gradient(circle, rgba(26, 122, 224, 0.22), transparent 68%);
}

.atmosphere-orb-c {
  width: min(60vw, 640px);
  height: min(60vw, 640px);
  bottom: -20%;
  left: 30%;
  background: radial-gradient(circle, rgba(46, 139, 87, 0.18), transparent 68%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  pointer-events: none;
}

/* —— Nav: brand → links → (space) → CTAs —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 0 var(--page-x);
  background: rgba(247, 248, 245, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

/* Keep brand/links/CTAs aligned with page content column on wide screens */
@media (min-width: 1200px) {
  .nav {
    padding-left: max(var(--page-x), calc((100vw - 1120px) / 2));
    padding-right: max(var(--page-x), calc((100vw - 1120px) / 2));
  }
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(247, 248, 245, 0.94);
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1 1 auto;
  min-width: 0;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
  background: rgba(11, 31, 58, 0.04);
}

.nav-links a.is-active {
  color: var(--magenta);
  background: rgba(213, 0, 109, 0.06);
}

.nav-cta {
  display: none;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-menu {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-drawer {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 35;
  display: grid;
  gap: 8px;
  padding: 16px var(--page-x);
  background: rgba(247, 248, 245, 0.98);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(11, 31, 58, 0.08);
}

.nav-drawer[hidden] {
  display: none;
}

.nav-drawer a {
  font-weight: 700;
  padding: 12px 10px;
  border-radius: 10px;
}

.nav-drawer .btn {
  text-align: center;
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: flex;
  }

  .nav-menu,
  .nav-drawer {
    display: none !important;
  }
}

/* —— Buttons —— */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 12px;
  padding: 11px 18px;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.22), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease);
}

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

.btn:hover::after {
  transform: translateX(120%);
}

.btn-ghost::after {
  background: linear-gradient(120deg, transparent 30%, rgba(11, 31, 58, 0.08), transparent 70%);
}

.btn-primary {
  background: var(--magenta);
  color: #fff;
}

.btn-primary:hover {
  background: #b8005c;
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(11, 31, 58, 0.04);
}

.btn-lg {
  padding: 15px 24px;
  font-size: 1.02rem;
}

/* —— Phone chrome —— */
.phone {
  width: min(var(--phone-w), 72vw);
  margin: 0 auto;
  flex-shrink: 0;
}

.phone-sm {
  width: min(var(--phone-w-sm), 64vw);
}

.phone-bezel {
  position: relative;
  background: #0b1f3a;
  border-radius: 32px;
  padding: 11px 9px 13px;
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(11, 31, 58, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.phone:hover .phone-bezel {
  box-shadow:
    0 32px 64px rgba(11, 31, 58, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 2;
}

.phone-bezel img {
  width: 100%;
  border-radius: 24px;
  background: var(--surface);
  display: block;
}

.phone-float {
  --parallax-y: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform-style: preserve-3d;
  will-change: transform;
  animation: phoneFloat 6s var(--ease) infinite alternate;
  transform: translate3d(0, var(--parallax-y), 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

@keyframes phoneFloat {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-float {
    animation: none;
  }
  .atmosphere-orb,
  .scroll-progress {
    display: none;
  }
}

/* —— Hero: one centered composition —— */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px var(--page-x) 56px;
  min-height: calc(100svh - var(--nav-h));
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: 100%;
  max-width: var(--max);
}

.hero-copy {
  width: 100%;
  max-width: 34rem;
  text-align: center;
}

.eyebrow {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  letter-spacing: -0.01em;
  line-height: 1.28;
  margin: 0 0 18px;
  font-optical-sizing: auto;
  text-wrap: balance;
}

.lede {
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  max-width: 32em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0 16px;
  /* room for float animation + shadow */
  overflow: visible;
}

@media (min-width: 900px) {
  .hero {
    padding: 56px var(--page-x) 72px;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 56px;
  }

  .hero-copy {
    flex: 0 1 480px;
    text-align: left;
    max-width: 480px;
  }

  .lede {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .hero-visual {
    flex: 0 0 auto;
    padding: 12px 8px 20px;
  }

  .hero .phone {
    width: 268px;
  }
}

/* —— Promise strip —— */
.promise {
  border: none;
  background: transparent;
  padding: 8px var(--page-x) 24px;
}

.promise-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: grid;
  gap: 32px;
}

@media (min-width: 800px) {
  .promise-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}

.promise-list li {
  margin: 0;
  padding-top: 4px;
}

.promise-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.promise-list p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
  max-width: none;
}

/* —— Sections —— */
.section {
  padding: 80px var(--page-x);
  max-width: calc(var(--max) + 2 * var(--page-x));
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 900px) {
  .section {
    padding: 96px var(--page-x);
  }
}

.section-head {
  max-width: 560px;
  margin: 0 0 44px;
}

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

.section-head h2,
.split-copy h2,
.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.45rem);
  letter-spacing: -0.012em;
  line-height: 1.26;
  margin: 0;
  font-optical-sizing: auto;
  text-wrap: balance;
}

.section-sub {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 38em;
}

.section-head.center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* How */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}

.steps li {
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.steps li:hover {
  transform: translateY(-4px);
  border-top-color: var(--magenta);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--magenta);
  margin-bottom: 14px;
}

.steps h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

/* Split blocks (coach / crew) — centered pair */
.split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
}

.split-copy {
  width: 100%;
  max-width: 32rem;
}

.split-media {
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (min-width: 900px) {
  .split {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 64px;
  }

  .split-copy {
    flex: 1 1 420px;
    max-width: 460px;
  }

  .split-media {
    flex: 0 0 auto;
    width: auto;
  }

  .split-flip {
    flex-direction: row-reverse;
  }
}

.split-copy .section-sub {
  margin-bottom: 20px;
}

.bullet-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  font-weight: 600;
}

.bullet-list li {
  padding-left: 22px;
  position: relative;
  color: var(--muted);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--magenta);
}

/* Product features — centered copy + phone pairs (not edge-stretched) */
.product .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 36rem;
}

.product .section-head .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  max-width: 720px;
  margin: 0 auto;
}

.feature:last-child {
  border-bottom: 1px solid var(--border);
}

.feature-copy {
  width: 100%;
  max-width: 22rem;
  text-align: center;
}

.feature-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin: 0 0 10px;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

.feature-copy p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32ch;
  line-height: 1.55;
}

.feature-media {
  margin: 0;
  display: flex;
  justify-content: center;
}

@media (min-width: 900px) {
  .feature {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 48px 0;
    max-width: 780px;
  }

  .feature-flip {
    flex-direction: row-reverse;
  }

  .feature-copy {
    flex: 0 1 280px;
    text-align: left;
    max-width: 280px;
  }

  .feature-copy p {
    margin: 0;
  }

  .feature-media {
    flex: 0 0 auto;
  }
}

/* Platforms — centered duo */
.platforms-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  max-width: var(--max);
  margin: 0 auto;
}

@media (min-width: 860px) {
  .platforms-visual {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }
}

.desktop-tile {
  margin: 0;
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 20px 44px rgba(11, 31, 58, 0.1);
}

.desktop-tile img {
  width: 100%;
}

.desktop-tile figcaption {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* Pricing — centered card */
.pricing .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.price-block {
  max-width: 420px;
  margin: 0 auto;
  padding: 8px 0 0;
  border-top: 2px solid var(--ink);
  text-align: left;
}

.price-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 22px 0 18px;
  color: var(--muted);
}

.price-amount span {
  font-size: clamp(2.7rem, 6vw, 3.5rem);
  color: var(--ink);
  letter-spacing: -0.035em;
}

.price-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
  color: var(--muted);
  font-weight: 600;
}

.price-list li {
  padding-left: 18px;
  position: relative;
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}

.price-block .btn {
  width: 100%;
}

/* FAQ */
.faq .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-list summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  letter-spacing: -0.01em;
}

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

.faq-list summary::after {
  content: "+";
  font-weight: 800;
  color: var(--magenta);
  flex-shrink: 0;
}

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

.faq-list details p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.05rem;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding-top: 56px;
  padding-bottom: 100px;
}

.final-cta h2 {
  max-width: 16em;
  margin-left: auto;
  margin-right: auto;
}

.final-cta p {
  color: var(--muted);
  margin: 14px auto 28px;
  max-width: 36ch;
  font-size: 1.08rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--ink);
  color: #b8c5d4;
  padding: 40px var(--page-x);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  margin: 0;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-weight: 600;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: #8a96a3;
  width: 100%;
}

@media (min-width: 700px) {
  .footer-copy {
    width: auto;
    margin-left: auto;
  }
}

/* Reveal */
[data-reveal] {
  --reveal-delay: 0s;
  opacity: 0;
  transform: translateY(22px);
  filter: blur(4px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease),
    filter 0.75s var(--ease);
  transition-delay: var(--reveal-delay);
}

[data-reveal][data-delay="1"] {
  transition-delay: 0.12s;
}

[data-reveal][data-delay="2"] {
  transition-delay: 0.22s;
}

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

.nav[data-reveal] {
  transform: translateY(-8px);
  filter: none;
}

.hero-copy[data-reveal] .eyebrow,
.hero-copy[data-reveal] h1,
.hero-copy[data-reveal] .lede,
.hero-copy[data-reveal] .hero-cta {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.hero-copy.is-in .eyebrow {
  opacity: 1;
  transform: none;
  transition-delay: 0.05s;
}

.hero-copy.is-in h1 {
  opacity: 1;
  transform: none;
  transition-delay: 0.14s;
}

.hero-copy.is-in .lede {
  opacity: 1;
  transform: none;
  transition-delay: 0.24s;
}

.hero-copy.is-in .hero-cta {
  opacity: 1;
  transform: none;
  transition-delay: 0.34s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal],
  .hero-copy[data-reveal] .eyebrow,
  .hero-copy[data-reveal] h1,
  .hero-copy[data-reveal] .lede,
  .hero-copy[data-reveal] .hero-cta {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .btn:hover,
  .steps li:hover {
    transform: none;
  }
  .btn::after {
    display: none;
  }
}
