/* ============================================================
   AKS Fitness — Adnan Siraj
   Premium athletic coaching. Dark red-lit hero, angled cuts,
   condensed display type, before/after slider.
   Tokens & class contract: design-notes.md
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --font-display: "Saira Condensed", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --fs-hero: clamp(3rem, 8.5vw, 6.75rem);
  --fs-h1: clamp(2.5rem, 5.5vw, 4.5rem);
  --fs-h2: clamp(2rem, 4vw, 3.25rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.8rem);
  --fs-lead: clamp(1.125rem, 1.4vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-eyebrow: 0.8125rem;

  /* Accent — brand red hue 27, held to ~10% */
  --violet: oklch(55% 0.21 27);
  --violet-bright: oklch(62% 0.20 27);
  --violet-deep: oklch(47% 0.19 27);
  --violet-soft: oklch(67% 0.18 27);
  --violet-ink: oklch(48% 0.21 27);

  /* Dark surfaces */
  --ink-950: oklch(12.5% 0.03 27);
  --ink-900: oklch(16.5% 0.026 27);
  --ink-850: oklch(22% 0.022 27);

  /* Light surfaces */
  --paper: oklch(99% 0.004 27);
  --surface: oklch(96% 0.007 27);
  --surface-2: oklch(92.5% 0.01 27);

  /* Text */
  --text: oklch(19% 0.022 27);
  --text-muted: oklch(43% 0.02 27);
  --text-on-dark: oklch(98% 0.006 27);
  --text-on-dark-mut: oklch(76% 0.014 27);

  /* Lines */
  --border: oklch(85% 0.012 27);
  --border-dark: oklch(32% 0.022 27);

  /* Spacing (4pt) */
  --space-3xs: 4px;  --space-2xs: 8px;  --space-xs: 12px; --space-sm: 16px;
  --space-md: 24px;  --space-lg: 32px;  --space-xl: 48px; --space-2xl: 64px;
  --space-3xl: 96px; --space-4xl: 128px;

  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --container: 1200px;
  --pad-x: clamp(20px, 5vw, 56px);
  --cut: clamp(40px, 6vw, 110px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-fast: 140ms; --t-mid: 220ms; --t-slow: 320ms;

  --shadow-sm: 0 1px 2px oklch(15% 0.02 27 / .08);
  --shadow-md: 0 10px 30px -12px oklch(20% 0.04 27 / .22);
  --shadow-lg: 0 26px 60px -24px oklch(18% 0.04 27 / .35);
  --shadow-violet: 0 16px 44px -16px oklch(55% 0.18 27 / .45);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, .hero__title, .section-head__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.005em;
  font-weight: 700;
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: clamp(var(--space-2xl), 9vw, var(--space-4xl)); }
.section--dark { background: var(--ink-950); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--text-on-dark); }
.section--surface { background: var(--surface); }

.section--cut-top {
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
  padding-top: calc(clamp(var(--space-2xl), 9vw, var(--space-4xl)) + var(--cut));
  margin-top: calc(var(--cut) * -1);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--violet-ink);
}
.section--dark .eyebrow { color: var(--violet-soft); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; opacity: 0.7; }

.section-head { max-width: 760px; margin-bottom: clamp(var(--space-xl), 5vw, var(--space-3xl)); }
.section-head__title { font-size: var(--fs-h2); margin-top: var(--space-sm); }
.section-head__title--xl { font-size: clamp(2.75rem, 5.5vw, 5rem); text-wrap: balance; }
.section-head__lead { margin-top: var(--space-md); font-size: var(--fs-lead); color: var(--text-muted); max-width: 60ch; }
.section--dark .section-head__lead { color: var(--text-on-dark-mut); }

.u-violet { color: var(--violet-ink); }
.section--dark .u-violet { color: var(--violet-soft); }
.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;
}

/* ---------- Buttons (with premium cursor lighting) ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.01em; text-transform: uppercase;
  padding: 1rem 1.6rem; border-radius: var(--r-md);
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out),
              filter var(--t-mid) var(--ease-out),
              background-color var(--t-mid) var(--ease-out),
              border-color var(--t-mid) var(--ease-out);
  white-space: nowrap;
}
.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.875rem; }
.btn--lg { padding: 1.15rem 2rem; font-size: 1.0625rem; }
.btn__icon { transition: transform var(--t-mid) var(--ease-out); }

/* Checkout loading spinner (injected into the CTA while Stripe spins up).
   Sized in em so it tracks the button's font-size; colour inherits via
   currentColor so it reads correctly on both primary (light text) and
   ghost (ink text) buttons. A quick 0.6s spin makes the wait feel faster. */
.btn__spinner {
  width: 1.1em; height: 1.1em; border-radius: 50%;
  border: 2px solid color-mix(in oklch, currentColor 28%, transparent);
  border-top-color: currentColor;
  animation: btnSpin 0.6s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

.btn--primary {
  background: var(--violet); color: oklch(99% 0.012 27);
  box-shadow: inset 0 1px 0 oklch(100% 0.01 27 / .20), var(--shadow-sm);
}
/* cursor-following light — screen-blended so text stays legible, violet surface lights up */
.btn--primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1;
  background: radial-gradient(170px circle at var(--mx, 50%) var(--my, 50%),
              oklch(95% 0.07 27 / .55), transparent 55%);
  opacity: 0; transition: opacity var(--t-mid) var(--ease-out);
  mix-blend-mode: screen; pointer-events: none;
}
.btn--ghost {
  background: transparent; color: inherit;
  border: 1.5px solid color-mix(in oklch, currentColor 32%, transparent);
}
.btn--light { background: var(--text-on-dark); color: var(--ink-950); box-shadow: var(--shadow-sm); }

.btn:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: inset 0 1px 0 oklch(100% 0.01 27 / .20), var(--shadow-violet); }
  .btn--primary:hover::after { opacity: 1; }
  .btn--primary:hover .btn__icon { transform: translateX(4px); }
  .btn--ghost:hover { border-color: var(--violet); background: color-mix(in oklch, var(--violet) 14%, transparent); transform: translateY(-1px); }
  .btn--light:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn--light:hover .btn__icon { transform: translateX(4px); }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out), backdrop-filter var(--t-mid);
}
.site-header.is-stuck {
  background: oklch(15% 0.025 27 / 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 var(--border-dark);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md); height: 74px;
}
.brand { display: inline-flex; align-items: center; color: var(--text-on-dark); }
.brand__logo { height: 23px; width: auto; }

.nav { display: none; }
.nav__cta { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(var(--space-md), 2vw, var(--space-xl)); }
.nav__link {
  position: relative; font-weight: 600; font-size: 0.95rem; color: var(--text-on-dark-mut);
  padding-block: 4px; transition: color var(--t-mid) var(--ease-out);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--violet-soft); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-mid) var(--ease-out);
}
@media (hover: hover) {
  .nav__link:hover { color: var(--text-on-dark); }
  .nav__link:hover::after { transform: scaleX(1); }
}

.nav-toggle {
  position: fixed; top: 14px; right: clamp(16px, 5vw, 52px); z-index: 200;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px; border-radius: var(--r-sm);
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text-on-dark); border-radius: 2px; transition: transform var(--t-mid) var(--ease-out), opacity var(--t-fast); }
.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); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 150; background: var(--ink-950);
  display: grid; place-content: center; gap: var(--space-md); text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out), visibility var(--t-mid);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav__list { display: grid; gap: var(--space-sm); }
.mobile-nav__link { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.8rem, 8vw, 2.6rem); color: var(--text-on-dark); letter-spacing: 0.01em; }
.mobile-nav__link.is-cta { color: var(--violet-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100dvh; display: flex; align-items: center;
  color: var(--text-on-dark); overflow: hidden;
  background: var(--ink-950) url("/assets/hero-bokeh-alt.jpg") center / cover no-repeat;
  padding-top: 110px; padding-bottom: calc(var(--cut) + var(--space-xl));
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 93%);
}
/* Legibility + atmosphere overlay over the bokeh photo */
.hero__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(98deg, var(--ink-950) 8%, oklch(15% 0.025 27 / 0.62) 40%, transparent 72%),
    linear-gradient(to bottom, oklch(15% 0.025 27 / 0.55) 0%, transparent 22%, transparent 62%, var(--ink-950) 100%);
}
.hero__inner {
  width: 100%;
  display: grid; grid-template-columns: 1fr; align-items: center; gap: var(--space-xl);
}
.hero__copy { position: relative; z-index: 3; max-width: 640px; }
.hero__title { font-size: var(--fs-hero); line-height: 0.82; }
.hero__title-accent { color: var(--violet-soft); }
.hero__sub { margin-top: var(--space-lg); font-size: var(--fs-lead); color: var(--text-on-dark-mut); max-width: 48ch; }
.hero__actions { margin-top: clamp(var(--space-lg), 4vw, var(--space-2xl)); display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero__figure { position: relative; z-index: 2; justify-self: center; align-self: end; }
.hero__figure::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
  background: linear-gradient(to top, var(--ink-950), transparent); pointer-events: none;
}
.hero__figure img { width: min(66vw, 292px); height: auto; filter: drop-shadow(0 30px 50px oklch(10% 0.03 27 / .6)); }

/* ---------- Story ---------- */
.story { padding-bottom: clamp(var(--space-3xl), 13vw, 190px); }
.story__grid { display: grid; grid-template-columns: 1fr; gap: clamp(var(--space-xl), 5vw, var(--space-3xl)); align-items: center; }
.story__visual { display: flex; flex-direction: column; align-items: center; margin-top: -28px; }
.story__media { position: relative; width: 100%; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 12px; max-width: 440px; margin-inline: auto; }

/* TikTok "watch the video" pill */
.story__video-pill {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-2xs) var(--space-xs); margin-top: var(--space-md); max-width: 100%;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--ink-950); color: var(--text-on-dark);
  font-weight: 600; font-size: 0.875rem; box-shadow: var(--shadow-md);
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-mid) var(--ease-out);
}
.story__video-pill__logo { width: 17px; height: 17px; flex: none; }
.story__video-pill__views { color: var(--text-on-dark-mut); }
.story__video-pill:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .story__video-pill:hover { transform: translateY(-2px); background: var(--ink-900); }
}
.story__copy .section-head { margin-bottom: var(--space-lg); }
.story__cta { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* Result caption under the slider */
.compare-caption { text-align: center; }
.compare-caption__banner {
  position: relative; z-index: 5; width: max-content; max-width: 100%;
  margin: -18px auto 0; padding: 9px 20px; border-radius: var(--r-sm);
  background: var(--violet-soft); color: var(--ink-950);
  font-family: var(--font-display); text-transform: uppercase; font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem); letter-spacing: 0.01em; line-height: 1.05;
  box-shadow: var(--shadow-sm);
}
.compare-caption__stat {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: 0.02em; color: var(--text);
  padding: 14px 0 6px;
}
.compare-caption__arrow { color: var(--violet-ink); padding-inline: 0.15em; }

/* Pillars — offset numbered list, NOT a card grid */
.pillars { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: var(--space-lg); }
.pillar {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-md);
  padding-block: var(--space-md); border-top: 1px solid var(--border);
}
.pillar:last-child { border-bottom: 1px solid var(--border); }
.pillar__num { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--violet-ink); line-height: 1.2; }
.pillar__title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.35rem; line-height: 1; margin-bottom: var(--space-3xs); }
.pillar__text { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- Why it works (dark, offset pillars) ---------- */
.why__layout { display: grid; grid-template-columns: 1fr; gap: clamp(var(--space-xl), 5vw, var(--space-3xl)); }
.why__layout .section-head { margin-bottom: 0; }
.why .pillar { border-color: var(--border-dark); }
.why .pillar__text { color: var(--text-on-dark-mut); }
.why .pillar__num { color: var(--violet-soft); }

/* ---------- App showcase ---------- */
.app { padding-block: var(--space-lg); position: relative; z-index: 2; }
.app__grid { display: grid; grid-template-columns: 1fr; gap: clamp(var(--space-xl), 5vw, var(--space-2xl)); align-items: center; }
.app__copy { max-width: 540px; }
.app__copy .section-head { margin-bottom: 0; }
.app__copy p { margin-top: var(--space-md); font-size: var(--fs-lead); color: var(--text-muted); max-width: 42ch; }
.app__phones { position: relative; width: 100%; max-width: 540px; margin-inline: auto; aspect-ratio: 1 / 1.06; }
.app__phone { position: absolute; top: 50%; }
.app__phone img { width: 100%; height: auto; display: block; }
.app__phone--back { left: 13%; width: 50%; transform: translateY(-50%) rotate(-8deg); transform-origin: center; z-index: 1; filter: drop-shadow(0 22px 38px oklch(18% 0.04 27 / .26)); }
.app__phone--front { right: 11%; width: 57.5%; transform: translateY(-50%) rotate(4deg); transform-origin: center; z-index: 2; filter: drop-shadow(0 30px 52px oklch(18% 0.04 27 / .32)); }

/* ---------- Compare slider ---------- */
.compare {
  position: relative; width: 100%; max-width: 100%; aspect-ratio: 4 / 5;
  border-radius: var(--r-md); overflow: hidden;
  user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; pointer-events: none; }
.compare__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare__label {
  position: absolute; bottom: var(--space-sm); z-index: 3;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.8rem; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill);
  background: oklch(15% 0.02 27 / 0.7); color: var(--text-on-dark); backdrop-filter: blur(4px);
}
.compare__label { bottom: var(--space-md); }
.compare__label--before { left: var(--space-sm); }
.compare__label--after { right: var(--space-sm); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); z-index: 4;
  width: 2px; transform: translateX(-1px); background: oklch(99% 0.012 27 / 0.85);
}
.compare__handle::before {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-content: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--violet); color: oklch(99% 0.012 27); font-size: 1rem; letter-spacing: 1px;
  box-shadow: var(--shadow-md), inset 0 1px 0 oklch(100% 0.01 27 / .2);
}

/* ---------- Proof (dark, staggered gallery) ---------- */
.proof__gallery { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
/* Proof is a dense, multi-row gallery — no scroll parallax, or tiles drift over each other */
.proof__item { position: relative; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 528 / 647; translate: none !important; }
.proof__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.proof__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-lg) var(--space-md) var(--space-sm);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; font-weight: 600;
  color: var(--text-on-dark);
  background: linear-gradient(to top, oklch(12% 0.02 27 / 0.85), transparent);
}
@media (hover: hover) { .proof__item:hover img { transform: scale(1.04); } }
/* Wide before/after composites — own row, natural landscape ratio so neither side is cropped */
.proof__pairs { display: grid; grid-template-columns: 1fr; gap: var(--space-md); margin-top: var(--space-md); }
.proof__pairs .proof__item--wide { aspect-ratio: 1284 / 1165; }
/* 16:9 before/after composites — own row, natural widescreen ratio. Flex so an
   incomplete final row centres instead of leaving an orphaned grid cell. */
.proof__strip { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-md); margin-top: var(--space-md); }
.proof__strip .proof__item--strip { aspect-ratio: 16 / 9; flex: 1 1 100%; }

/* ---------- Packages (asymmetric: flagship + two secondary) ---------- */
.packages__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.plan {
  display: flex; flex-direction: column; border-radius: var(--r-lg); padding: clamp(var(--space-lg), 3vw, var(--space-2xl));
  background: var(--paper); border: 1px solid var(--border);
}
.plan--flagship {
  background: var(--ink-900); color: var(--text-on-dark); border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.plan--flagship::before {
  content: ""; position: absolute; width: 50%; height: 60%; right: -10%; top: -20%;
  background: radial-gradient(circle, oklch(55% 0.16 27 / .35), transparent 65%); filter: blur(30px); pointer-events: none;
}
.plan__badge {
  align-self: flex-start; font-family: var(--font-body); font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.16em; color: oklch(99% 0.012 27);
  background: var(--violet); padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: var(--space-md);
}
.plan__name { font-family: var(--font-display); text-transform: uppercase; font-size: 1.6rem; line-height: 1; }
.plan__price-row { display: flex; align-items: baseline; gap: var(--space-2xs); margin-top: var(--space-sm); }
.plan__price { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 0.9; }
.plan__period { color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600; }
.plan--flagship .plan__period { color: var(--text-on-dark-mut); }
.plan__tagline { margin-top: var(--space-2xs); color: var(--text-muted); font-size: var(--fs-sm); }
.plan--flagship .plan__tagline { color: var(--text-on-dark-mut); }
.plan__features { display: grid; gap: var(--space-xs); margin-block: var(--space-lg); position: relative; z-index: 1; }
.plan__feature { display: grid; grid-template-columns: auto 1fr; gap: var(--space-xs); align-items: start; font-size: var(--fs-sm); }
.plan__feature svg { width: 18px; height: 18px; margin-top: 3px; color: var(--violet-ink); flex: none; }
.plan--flagship .plan__feature svg { color: var(--violet-soft); }
.plan__cta { margin-top: auto; width: 100%; white-space: normal; text-align: center; font-size: 0.84rem; line-height: 1.2; padding-inline: 1rem; }
.packages__note { margin-top: var(--space-xl); text-align: center; font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--space-md); align-items: start; }
.step__num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1;
  color: var(--violet-ink); width: 2ch;
}
.step__title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.4rem; line-height: 1; margin-bottom: var(--space-2xs); }
.step__text { color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  width: 100%; text-align: left; padding-block: var(--space-md);
  font-family: var(--font-display); text-transform: uppercase; font-size: 1.2rem; letter-spacing: 0.01em;
}
.faq__q .faq__icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq__q .faq__icon::before, .faq__q .faq__icon::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--violet-ink); transition: transform var(--t-mid) var(--ease-out); }
.faq__q .faq__icon::before { width: 100%; height: 2px; }
.faq__q .faq__icon::after { width: 2px; height: 100%; }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow) var(--ease-out); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: var(--space-md); color: var(--text-muted); max-width: 65ch; }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; overflow: hidden; text-align: center; background: var(--ink-950); color: var(--text-on-dark); }
.final-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 50% 0%, oklch(50% 0.16 27 / .4), transparent 70%);
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta__title { font-size: var(--fs-h1); margin-top: var(--space-sm); }
.final-cta__lead { margin-top: var(--space-md); color: var(--text-on-dark-mut); font-size: var(--fs-lead); max-width: 52ch; margin-inline: auto; }
.final-cta__actions { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); align-items: start; }
.contact__intro { max-width: 760px; margin-inline: auto; text-align: center; }
.contact__intro .eyebrow { justify-content: center; }
.contact__intro .section-head { margin-bottom: var(--space-md); }
.contact__intro .section-head__title { font-size: var(--fs-h1); }
.contact__intro p { margin-inline: auto; }
.contact__booking { width: 100%; min-height: 600px; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-md); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: var(--text-on-dark); padding-block: var(--space-3xl) var(--space-xl); }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
.site-footer__brand .brand { margin-bottom: var(--space-md); }
.site-footer__tagline { color: var(--text-on-dark-mut); max-width: 40ch; font-size: var(--fs-sm); }
.site-footer__heading { font-family: var(--font-display); text-transform: uppercase; font-size: 1rem; letter-spacing: 0.08em; margin-bottom: var(--space-sm); color: var(--text-on-dark); }
.site-footer__col ul { display: grid; gap: var(--space-2xs); }
.site-footer__link { color: var(--text-on-dark-mut); font-size: var(--fs-sm); transition: color var(--t-mid) var(--ease-out); }
@media (hover: hover) { .site-footer__link:hover { color: var(--text-on-dark); } }
.site-footer__bottom {
  margin-top: var(--space-2xl); padding-top: var(--space-md); border-top: 1px solid var(--border-dark);
  display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); justify-content: space-between; align-items: center;
  color: var(--text-on-dark-mut); font-size: var(--fs-sm);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* ---------- Legal pages (deploy-injected) ---------- */
.legal-page { background: var(--surface); padding-block: clamp(var(--space-2xl), 8vw, var(--space-4xl)); padding-top: calc(74px + var(--space-2xl)); }
.legal-page__inner { max-width: 68ch; margin-inline: auto; padding-inline: var(--pad-x); }
.legal-page__title { font-size: var(--fs-h1); margin-top: var(--space-md); }
.legal-page__last-updated { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--space-xs); }
.legal-page__body { margin-top: var(--space-xl); max-width: 70ch; }
.legal-page__body p, .legal-page__body li { color: var(--text-muted); margin-bottom: var(--space-sm); }
.legal-page__body ul { list-style: disc; padding-left: 1.4em; }
.legal-page__body a { color: var(--violet-ink); text-decoration: underline; text-underline-offset: 2px; }
.legal-page__section-heading { font-family: var(--font-display); text-transform: uppercase; font-size: var(--fs-h3); margin-top: var(--space-xl); margin-bottom: var(--space-sm); }
.legal-page__section-subheading { font-family: var(--font-display); text-transform: uppercase; font-size: 1.25rem; margin-top: var(--space-lg); margin-bottom: var(--space-2xs); }

/* ---------- Success / thank-you page (post-checkout) ---------- */
.success { min-height: 100dvh; display: grid; place-content: center; text-align: center; background: var(--ink-950); color: var(--text-on-dark); padding-block: var(--space-3xl); }
.success__inner { max-width: 600px; margin-inline: auto; padding-inline: var(--pad-x); }
.success__brand { display: inline-flex; margin-bottom: var(--space-2xl); }
.success__brand img { height: 26px; width: auto; }
.success__check { width: 60px; height: 60px; margin: 0 auto var(--space-lg); border-radius: var(--r-pill); display: grid; place-content: center; background: color-mix(in oklch, var(--violet) 18%, transparent); color: var(--violet-soft); }
.success__check svg { width: 30px; height: 30px; }
.success__eyebrow { justify-content: center; }
.success__title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.5rem, 5.5vw, 4rem); line-height: 0.9; letter-spacing: -0.005em; margin-top: var(--space-sm); }
.success__lead { margin-top: var(--space-md); font-size: var(--fs-lead); color: var(--text-on-dark-mut); max-width: 48ch; margin-inline: auto; }
.success__steps { margin: var(--space-xl) auto 0; max-width: 30rem; text-align: left; display: grid; gap: var(--space-sm); }
.success__step { display: grid; grid-template-columns: auto 1fr; gap: var(--space-sm); align-items: start; color: var(--text-on-dark-mut); font-size: var(--fs-sm); }
.success__step b { color: var(--text-on-dark); font-weight: 600; }
.success__step-num { font-family: var(--font-display); font-weight: 700; color: var(--violet-soft); line-height: 1.1; }
.success__actions { margin-top: var(--space-2xl); display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }
.success__note { margin-top: var(--space-lg); font-size: var(--fs-sm); color: var(--text-on-dark-mut); }

/* ---------- Questionnaire (one-question-at-a-time stepper) ---------- */
.q-page { min-height: 100dvh; background: var(--ink-950); color: var(--text-on-dark); display: flex; flex-direction: column; }
.q-progress { position: sticky; top: 0; height: 4px; background: var(--border-dark); z-index: 5; }
.q-progress__bar { height: 100%; width: 0; background: var(--violet); transition: width var(--t-mid) var(--ease-out); }
.q-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--pad-x); }
.q-top__brand { display: inline-flex; }
.q-top__brand img { height: 22px; width: auto; }
.q-top__count { font-size: var(--fs-sm); color: var(--text-on-dark-mut); font-variant-numeric: tabular-nums; }
.q-stage { flex: 1; display: grid; align-content: center; padding: var(--space-lg) var(--pad-x) var(--space-2xl); }
.q-card { width: 100%; max-width: 640px; margin-inline: auto; }
.q-card[data-anim] { animation: qIn var(--t-slow) var(--ease-out); }
@keyframes qIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.q-step__num { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-eyebrow); letter-spacing: 0.18em; text-transform: uppercase; color: var(--violet-soft); }
.q-step__title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.7rem, 3.8vw, 2.5rem); line-height: 0.98; letter-spacing: -0.005em; margin-top: var(--space-sm); }
.q-step__req { color: var(--violet-soft); }
.q-step__help { margin-top: var(--space-sm); color: var(--text-on-dark-mut); font-size: var(--fs-body); max-width: 52ch; }
.q-step__field { margin-top: var(--space-xl); display: grid; gap: var(--space-sm); }
.q-fieldset { display: grid; gap: var(--space-md); border: none; padding: 0; margin: 0; }
.q-label { display: block; font-size: var(--fs-sm); color: var(--text-on-dark-mut); margin-bottom: var(--space-3xs); }
.q-input { width: 100%; background: transparent; border: none; border-bottom: 1.5px solid var(--border-dark); color: var(--text-on-dark); font-family: var(--font-body); font-size: var(--fs-lead); padding: var(--space-2xs) 0; }
.q-input::placeholder { color: oklch(58% 0.01 27); }
.q-input:focus { outline: none; border-color: var(--violet); }
textarea.q-input { border: 1.5px solid var(--border-dark); border-radius: var(--r-md); padding: var(--space-sm); min-height: 7rem; resize: vertical; }
.q-option { display: flex; align-items: center; gap: var(--space-sm); width: 100%; text-align: left; padding: var(--space-sm) var(--space-md); border: 1.5px solid var(--border-dark); border-radius: var(--r-md); background: transparent; color: var(--text-on-dark); font-family: var(--font-body); font-size: var(--fs-body); transition: border-color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.q-option__key { display: grid; place-content: center; width: 1.6rem; height: 1.6rem; border-radius: var(--r-sm); border: 1px solid var(--border-dark); font-size: 0.78rem; font-weight: 700; color: var(--text-on-dark-mut); flex: none; }
.q-option.is-selected { border-color: var(--violet); background: color-mix(in oklch, var(--violet) 16%, transparent); }
.q-option.is-selected .q-option__key { background: var(--violet); color: oklch(99% 0.006 27); border-color: var(--violet); }
@media (hover: hover) and (pointer: fine) { .q-option:hover { border-color: var(--violet-soft); } }
.q-option:active { transform: scale(0.99); }
.q-error { color: var(--violet-soft); font-size: var(--fs-sm); min-height: 1.2em; }
.q-nav { display: flex; gap: var(--space-sm); align-items: center; margin-top: var(--space-xl); }
.q-nav__hint { color: var(--text-on-dark-mut); font-size: var(--fs-sm); }
.q-done { display: none; flex: 1; place-items: center; text-align: center; padding: var(--space-2xl) var(--pad-x); }
.q-done__inner { max-width: 540px; }
.q-page.is-done .q-progress, .q-page.is-done .q-stage { display: none; }
.q-page.is-done .q-done { display: grid; }
.q-done__title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 0.95; margin-top: var(--space-md); }
.q-done__lead { margin-top: var(--space-md); color: var(--text-on-dark-mut); font-size: var(--fs-lead); }
@media (prefers-reduced-motion: reduce) { .q-card[data-anim] { animation: none; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 600px) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr; gap: var(--space-sm); }
  .proof__gallery { grid-template-columns: repeat(2, 1fr); }
  .proof__pairs { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .packages__grid { grid-template-columns: 1fr 1fr; }
  .plan--flagship { grid-column: 1 / -1; }
  .plan--flagship .plan__features { grid-template-columns: 1fr 1fr; column-gap: var(--space-lg); }
  .pillars { grid-template-columns: 1fr 1fr; column-gap: var(--space-2xl); }
  .why .pillars .pillar:nth-child(2) { border-top: 1px solid var(--border-dark); }
}

@media (min-width: 960px) {
  .nav { display: block; }
  .nav__cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .hero { clip-path: polygon(0 0, 100% 0, 100% 88%, 49% 90%, 51% 87%, 0 90%); }
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-2xl); }
  .hero__copy { max-width: 620px; }
  .hero__figure { position: absolute; right: clamp(80px, 14vw, 220px); bottom: 0; z-index: 2; justify-self: auto; align-self: auto; }
  .hero__figure::after { height: 18%; }
  .hero__figure img { width: auto; height: min(84vh, 768px); max-width: 44vw; object-fit: contain; object-position: bottom; }
  .story__grid { grid-template-columns: 0.85fr 1.15fr; }
  .app__grid { grid-template-columns: 0.85fr 1.15fr; }
  .app__copy { max-width: none; }
  .app__phones { aspect-ratio: 1 / 0.82; }
  .story__grid--reverse .story__media { order: 2; }
  .why__layout { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .compare { max-width: 100%; }
  .proof__gallery { grid-template-columns: repeat(2, 1fr); }
  .proof__strip .proof__item--strip { flex: 0 1 calc((100% - 2 * var(--space-md)) / 3); }
}

@media (min-width: 1200px) {
  .packages__grid { grid-template-columns: 1.1fr 1fr 1fr; }
  .plan--flagship { grid-column: auto; }
  .plan--flagship .plan__features { grid-template-columns: 1fr; }
}

/* Mobile-specific refinements */
@media (max-width: 959px) {
  .hero__copy { text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
}
@media (max-width: 600px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .btn--lg { padding: 1rem 1.4rem; font-size: 1rem; }
  .story__video-pill { flex-wrap: nowrap; gap: var(--space-2xs); padding: 9px 14px; font-size: 0.72rem; }
  .story__video-pill__logo { width: 15px; height: 15px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* The checkout spinner is essential loading feedback, not decoration —
     keep it turning (gently) rather than freezing it with the blanket rule. */
  .btn__spinner {
    animation-duration: 1s !important;
    animation-iteration-count: infinite !important;
  }
}
