/* ---------- Fonts: served from this site, so they load even where Google Fonts is slow or blocked ---------- */
@font-face {
  font-family: "Lalezar";
  font-display: swap;
  src: url("../fonts/lalezar-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Lalezar";
  font-display: swap;
  src: url("../fonts/lalezar-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* Vazirmatn is a variable font: one file covers every weight */
@font-face {
  font-family: "Vazirmatn";
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Vazirmatn";
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* Bebas Neue: Latin display font for the plan codes (BASE, STRENGTH, MASTERY) */
@font-face {
  font-family: "Bebas Neue";
  font-display: swap;
  src: url("../fonts/bebas-neue-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF;
}

/* ---------- Base ---------- */
:root {
  /* Theme — change these to recolor the whole site (black + white + orange; gold only for the WCO certificate) */
  --bg: #0b0b0b;           /* page background */
  --bg-rgb: 11, 11, 11;    /* same color as R, G, B for see-through overlays */
  --surface: #151515;      /* cards, buttons, image placeholders */
  --surface-hover: #202020;/* buttons on hover */
  --neon: #FF6A00;         /* accent: orange — cursor, icons, highlights */
  --accent-grad: linear-gradient(90deg, #FF3D00, #FF9900); /* main buttons */
  --on-accent: #ffffff;    /* text placed on the accent / gradient */
  --gold: #D4A64C;         /* the WCO certificate badge only — everything else uses orange */
  --ink: #ffffff;          /* big headings */
  --text: #f5f5f5;         /* normal text, logo, menu */
  --forest: #ffffff;       /* small headings */
  --sage: #9a9a9a;         /* quiet text */
  --muted: #c4c4c4;        /* body text */
  --line: #2a2a2a;         /* borders */
  --soft: #111111;         /* banner background */
  --go: #FF9900;           /* small orange links */
  --neon-on-light: #E65100;/* accent on the white benefits band */
  --font-display: "Lalezar", "Vazirmatn", ui-sans-serif, system-ui, sans-serif; /* bold headings */

  /* Very dark navy + white + light blue theme — swap these in to go back:
  --bg: #070D1F; --bg-rgb: 7, 13, 31; --surface: #0F1830; --surface-hover: #172345;
  --neon: #4FC3F7; --accent-grad: #4FC3F7; --on-accent: #070D1F; --gold: #4FC3F7; --ink: var(--neon);
  --text: #F4F7FC; --sage: #8391AB; --muted: #A9B6CC; --line: #1E2A4A; --soft: #0B1430;
  --go: #7DD3FC; --neon-on-light: #0284C7;
  */

  /* Black + white + orange theme — swap these in to go back:
  --bg: #050505; --bg-rgb: 5, 5, 5; --surface: #141414; --surface-hover: #1f1f1f;
  --neon: #FF5A1F; --on-accent: #0a0a0a; --text: #f5f5f5; --sage: #8f8a86;
  --muted: #a8a29e; --line: #2a2522; --soft: #0d0d0d; --go: #ff7a45;
  */

  /* Black + white + electric blue theme — swap these in to go back:
  --neon: #2B7BFF; --on-accent: #ffffff; --sage: #8a8f98; --muted: #a1a1aa;
  --line: #26262b; --soft: #0d0d0f; --go: #5b9bff;
  */

  /* White + charcoal + orange theme — swap these in to go back:
  --bg: #ffffff; --bg-rgb: 255, 255, 255; --surface: #f4f4f4; --surface-hover: #e9e9e9;
  --neon: #FF5A1F; --on-accent: #000; --ink: var(--neon); --text: #1f1f1f; --forest: #1f1f1f;
  --sage: #737373; --muted: #525252; --line: #e5e5e5; --soft: #fafafa; --go: #c2410c;
  */

  /* Dark neon theme — swap these in to go back:
  --bg: #0a0a0a; --bg-rgb: 10, 10, 10; --surface: #161616; --surface-hover: #222;
  --neon: #B8F36B; --ink: var(--neon); --text: #f5f5f5; --forest: #f5f5f5;
  --sage: #8c958c; --muted: #a3a3a3; --line: #2a2a2a; --soft: #0A0A0A; --go: var(--neon);
  --on-accent: #000;
  */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth; /* menu links like #about glide instead of jumping */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--neon);
  color: var(--on-accent);
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.page {
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

/* ---------- Photo: full background behind the hero text at every size ---------- */
.photo-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  background: var(--surface);
}

.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.9s var(--ease-out), transform 1.4s var(--ease-out);
}

.photo.is-loaded {
  opacity: 1;
  transform: scale(1.04);
}

.video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.photo-wrap.has-video .video {
  opacity: 1;
}

.photo-wrap.has-video .photo {
  opacity: 0;
}

/* Keeps the text readable over the video; on phones the text covers the whole
   frame, so darken it evenly and fade the bottom into the next section */
.photo-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--bg-rgb), 0.8) 0%,
    rgba(var(--bg-rgb), 0.55) 35%,
    rgba(var(--bg-rgb), 0.65) 75%,
    var(--bg) 100%
  );
}

/* ---------- Hero slideshow ----------
   Photos stack on top of each other; the active one fades in and slowly zooms
   (Ken Burns). --slide must match SLIDE_MS in script.js. */
.photo-wrap { --slide: 5s; }

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0;
  transform-origin: center 20%;
  transition: opacity 1.2s var(--ease-out);
}

.hero-slide.is-active {
  opacity: 1;
  animation: ken-burns calc(var(--slide) + 1.2s) linear both;
}

@keyframes ken-burns {
  from { transform: none; }
  to { transform: scale(1.05); }
}

/* Story-style progress bars: the active one fills up over one slide */
.hero-bars {
  position: absolute;
  top: 76px;
  right: 20px;
  left: 20px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.hero-bars span {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-bars span::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right; /* RTL: fills from right to left */
}

.hero-bars span.is-done::after { transform: none; }
.hero-bars span.is-active::after { animation: bar-fill var(--slide) linear forwards; }

@keyframes bar-fill {
  to { transform: none; }
}

@media (min-width: 1024px) {
  /* the panel already matches the photo: no zoom, so nothing gets cropped */
  .hero-slide { object-position: left top; }
  .hero-slide.is-active { animation: none; }

  .hero-bars {
    top: auto;
    right: auto;
    bottom: 40px;
    left: 40px;
    width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active { animation: none; }
}

/* ---------- Hero on black ----------
   The theme colors are set for the hero only, so every fade above (which uses
   --bg / --bg-rgb) melts the photos into black. */
.page {
  --bg: #0b0b0b;
  --bg-rgb: 11, 11, 11;
  --ink: #ffffff;
  --text: #ffffff;
  --muted: #bdbdbd;
  color: var(--text);
  /* a faint diagonal beam of light, like the sun falling across the photos */
  background:
    linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.035) 34%, rgba(255, 255, 255, 0.035) 50%, transparent 50%),
    radial-gradient(50% 60% at 80% 40%, rgba(255, 90, 10, 0.08), transparent 70%),
    var(--bg);
}

.page .lead { color: var(--muted); }
.page .eyebrow { background: rgba(0, 0, 0, 0.45); }

/* Huge outlined word behind everything (photo and text sit on top of it) */
.page::before {
  content: "CALISTHENICS";
  position: absolute;
  right: 3vw;
  bottom: 5%;
  z-index: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 11vw; /* fits the text column, clear of the photo panel */
  line-height: 0.8;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 1023px) {
  .page::before {
    right: 50%;
    bottom: 2%;
    font-size: 30vw;
    transform: translateX(50%);
  }
}

/* ---------- Content ---------- */
.content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100svh;
  background: transparent;
  padding: 64px 0 32px;
}

.hero {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 48px 24px;
  flex: 1;    
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.headline {
  font-family: var(--font-display);
  margin: 0 0 32px;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  white-space: pre-wrap;
  user-select: none;
  min-height: 2.7em; /* reserve two lines so nothing jumps while typing */
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-inline-start: 2px;
  background: var(--neon);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.headline.is-done .cursor {
  display: none;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.lead {
  margin: 0 0 56px;
  max-width: 42rem;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.625;
  color: var(--muted);
}

/* Entry animation */
.fade-up {
  animation: fade-up 0.6s var(--ease-out) both;
  animation-delay: var(--delay, 0s);
}

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

/* ---------- Services ---------- */
.services {
  max-width: 42rem;
}

.services-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 500;
  color: var(--forest);
}

.services-sub {
  margin: 0 0 32px;
  color: var(--sage);
  opacity: 0.85;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--forest);
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--spring);
}

.pill:hover {
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.pill:active {
  transform: scale(0.96);
}

.pill:focus-visible,
.burger:focus-visible,
.go:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

/* The one main action in the hero (Products): filled with the accent color */
.pill--cta,
.pill--cta:hover {
  background: var(--accent-grad);
  border-color: transparent;
  border-radius: 10px;
  color: var(--on-accent);
  padding: 20px 64px;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 12px 32px -12px var(--neon);
}

.pill[aria-pressed="true"] {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--on-accent);
  box-shadow: 0 0 24px -6px var(--neon);
}

.check {
  width: 0;
  height: 16px;
  margin-inline-end: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: translateY(-10px) scale(0.5);
  transition: width 0.3s var(--spring), margin 0.3s var(--spring), opacity 0.2s, transform 0.35s var(--spring);
}

.pill[aria-pressed="true"] .check {
  width: 16px;
  margin-inline-end: 8px;
  opacity: 1;
  transform: none;
}

/* ---------- Status ---------- */
.status {
  position: relative;
  margin-top: 24px;
  min-height: 64px;
}

.status-empty {
  margin: 0;
  font-size: 12px;
  font-style: italic;
  color: var(--forest);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.status.has-selection .status-empty {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* grid-rows 0fr -> 1fr animates to the content's natural height */
.status-banner {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.45s var(--spring), opacity 0.25s;
}

.status.has-selection .status-banner {
  grid-template-rows: 1fr;
  opacity: 1;
}

.status-banner-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 20px;
  transition: padding 0.45s var(--spring);
}

.status.has-selection .status-banner-inner {
  padding: 16px 20px;
}

.status-text {
  margin: 0;
  font-size: 14px;
  color: var(--forest);
}

.status-text strong {
  font-weight: 500;
}

.muted {
  color: var(--sage);
}

.go {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--go);
  font-size: 12px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.go:hover {
  opacity: 0.7;
}

.go svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scaleX(-1); /* arrow points left in RTL */
  transition: transform 0.2s;
}

.go:hover svg {
  transform: scaleX(-1) translateX(2px);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Clear over the hero video; turns into frosted glass once the page scrolls */
  background: transparent;
  transition: background-color 0.3s, backdrop-filter 0.3s, padding 0.3s;
}

.header.is-scrolled {
  padding-block: 12px;
  background: rgba(var(--bg-rgb), 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}

@media (min-width: 1024px) {
  .header {
    background: transparent;
    transition: background-color 0.3s;
  }

  .header.is-scrolled {
    background: rgba(var(--bg-rgb), 0.92);
  }
}

/* the logo sits in the middle of the bar, whatever is on either side */
.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  user-select: none;
  transform: translate(-50%, -50%);
}

/* with the logo out of the row, push the phone menu button to the left edge */
.burger { margin-right: auto; }

.logo-text {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.025em; /* Latin logo only */
}

/* the "Cali sthenics" script mark next to the name */
.logo-mark {
  display: block;
  width: auto;
  height: 32px;
}

@media (min-width: 640px) {
  .logo-mark { height: 40px; }
}

.logo-icon {
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.nav,
.cta {
  display: none;
}

.nav {
  font-size: 23px;
  color: var(--text);
}

.nav a,
.cta,
.mobile-nav a {
  transition: opacity 0.2s;
}

.nav a:hover,
.cta:hover,
.mobile-nav a:hover {
  opacity: 0.6;
}

.sep {
  opacity: 0.4;
}

.cta {
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--accent-grad);
  color: var(--on-accent);
  font-size: 18px;
  font-weight: 700;
}

/* ---------- Burger + mobile menu ---------- */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: -8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  background: rgba(var(--bg-rgb), 0.96);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.3;
  color: var(--text);
}

/* Links slide in one after another when the menu opens */
.mobile-nav a {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.mobile-menu.is-open .mobile-nav a {
  opacity: 1;
  transform: none;
}

.mobile-menu.is-open .mobile-nav a:nth-child(2) { transition-delay: 0.04s; }
.mobile-menu.is-open .mobile-nav a:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-nav a:nth-child(4) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-nav a:nth-child(5) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-nav a:nth-child(6) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-nav a:nth-child(7) { transition-delay: 0.24s; }

.mobile-cta {
  margin-top: 28px;
  padding: 16px;
  border-radius: 16px;
  background: var(--accent-grad);
  color: var(--on-accent);
  font-family: "Vazirmatn", sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 14px 34px -14px var(--neon);
}

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
  .header { padding: 20px 32px; }
  .logo-text { font-size: 26px; }
  .logo-icon { font-size: 30px; }
  .status-banner-inner { flex-direction: row; align-items: center; }
  .go { align-self: auto; }
}

/* ---------- ≥ 768px ---------- */
@media (min-width: 768px) {
  .headline { font-size: 60px; }
  .lead { font-size: 20px; }
  .nav { display: flex; }
  .cta { display: inline-block; }
  .burger,
  .mobile-menu { display: none; }
}

/* ---------- ≥ 1024px: full screen, wide photo ----------
   The wide photo covers the whole screen with Amir left of center; a dark
   panel fades in from the right, hiding the red bands, and the text sits on it. */
@media (min-width: 1024px) {
  .page {
    display: block;
    min-height: 100vh;
  }

  .photo-wrap {
    inset: 0;
    background: var(--bg);
  }

  .hero-backdrop { display: none; }

  /* on screens squarer than the photo, show its right side: Amir moves left,
     clear of the text, and the bands land under the dark panel */
  .hero-slide { object-position: right center; }
  .hero-slide.is-active { animation: ken-burns 16s ease-out both; }

  .photo-fade {
    background:
      linear-gradient(180deg, rgba(var(--bg-rgb), 0.55) 0, rgba(var(--bg-rgb), 0) 120px),
      /* the bottom of the photo sinks into black, then into the About video below */
      linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb), 0.75) 14%, rgba(var(--bg-rgb), 0) 38%),
      /* near-solid dark on the right third (over the bands), fading out toward Amir */
      linear-gradient(270deg, var(--bg) 0%, var(--bg) 36%, rgba(var(--bg-rgb), 0.85) 43%, rgba(var(--bg-rgb), 0.35) 50%, rgba(var(--bg-rgb), 0) 57%);
  }

  .content {
    justify-content: center;
    align-items: flex-start; /* RTL flex column: flex-start is the right side */
    min-height: 100vh;
    padding: 110px 6vw 60px;
  }

  .hero,
  .hero-aside {
    flex: none;
    width: 100%;
    max-width: min(520px, 31vw); /* stays on the dark panel, clear of Amir */
    margin: 0;
    padding: 0;
  }

  .hero-aside { margin-top: 36px; }

  .headline { font-size: clamp(52px, 4.6vw, 76px); }
  .lead { margin-bottom: 0; font-size: 18px; }

  .hero-aside .pill--cta,
  .hero-aside .pill--cta:hover {
    padding: 18px 48px;
    font-size: 21px;
  }

  /* the outlined word sits at the very bottom, under the text */
  .page::before {
    right: 3vw;
    left: auto;
    bottom: 1.5%;
    font-size: 6.5vw;
  }
}

/* ---------- < 1024px: full-screen video, text anchored to the bottom ----------
   The video stays vivid at the top and darkens toward the bottom, where the
   text sits — no card, no blur (blurring over a scrubbing video costs frames). */
@media (max-width: 1023px) {
  /* Phones and tablets: the photo fills the whole first screen and the text
     sits on its lower part, over a dark fade */
  .page {
    display: block;
    min-height: 100svh;
  }

  .photo-wrap {
    position: absolute;
    inset: 0;
  }

  /* the phone photo already has Amir in the middle */
  .hero-slide { object-position: center top; }
  .hero-slide.is-active { animation: ken-burns 14s ease-out both; }

  /* frame Amir like the reference screenshot: a little bigger, head near the
     top, the outstretched fist just inside the left edge */
  .hero-slides {
    transform: translate(0%, -18%) scale(1.17);
    transform-origin: 0 0;
  }

  .photo-fade {
    background: linear-gradient(
      180deg,
      rgba(var(--bg-rgb), 0.55) 0%,
      rgba(var(--bg-rgb), 0) 14%,
      rgba(var(--bg-rgb), 0) 45%,
      rgba(var(--bg-rgb), 0.7) 58%,
      rgba(var(--bg-rgb), 0.93) 72%,
      var(--bg) 100%
    );
  }

  .content {
    justify-content: flex-end;
    min-height: 100svh;
    margin-top: 0;
    padding: 0 0 max(32px, env(safe-area-inset-bottom));
  }

  .hero {
    flex: none;
    padding: 0 20px;
  }

  .headline {
    margin-bottom: 14px;
    font-size: 36px;
    line-height: 1.4;
    min-height: 2.8em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  }

  .lead {
    margin-bottom: 28px;
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.78);
  }

  .services { max-width: none; }

  .pill--cta,
  .pill--cta:hover {
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 18px;
  }

  .pill--cta::after {
    content: "←";
    font-family: "Vazirmatn", sans-serif;
    transition: transform 0.3s var(--spring);
  }

  .pill--cta:active::after { transform: translateX(-6px); }
}

/* the blurred backdrop is a desktop-only layer */
@media (max-width: 1023px) {
  .hero-backdrop { display: none; }
}

.hero-aside {
  position: relative;
  z-index: 1;
}

/* Three quick facts under the main button */
.hero-stats {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 26px 0 0;
  padding: 0;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--neon);
}

.hero-stats span {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1023px) {
  .hero-aside { padding: 0 20px; }
  .hero-stats { justify-content: space-between; margin-top: 22px; }
}

/* Social proof card above the headline: a white pill with the count, and a
   row of overlapping person icons under it (like a "clients" badge) */
.proof {
  align-self: flex-start;
  display: inline-grid;
  justify-items: start;
  gap: 8px;
  margin: 0 0 22px;
  padding: 10px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.6);
}

.proof-text {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.proof-dot {
  width: 14px;
  height: 14px;
  border: 3px solid var(--neon);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.2);
}

.proof-faces {
  display: flex;
  padding-inline-start: 4px;
}

.proof-face,
.proof-more {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 50%;
}

/* person icons in three greys, so the row reads as different people */
/* five slots in alternating greys and the accent, so the row reads as different people */
.proof-face { background: #2b2b2b; object-fit: cover; }
.proof-face:nth-child(2) { background: #4a4a4a; }
.proof-face:nth-child(3) { background: #ff6a00; }
.proof-face:nth-child(4) { background: #6b6b6b; }
.proof-face:nth-child(5) { background: #3a3a3a; }

.proof-face svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.proof-face + .proof-face,
.proof-more { margin-inline-start: -10px; }

.proof-more {
  background: var(--accent-grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* Phones: the badge floats over the photo, on the empty wall left of Amir,
   styled like the reference: a white pill with an orange ring on its corner,
   and a white tab under it holding the faces. (display: contents on .hero lets
   the badge position itself against the whole first screen.) */
@media (max-width: 1023px) {
  .hero { display: contents; }
  .headline, .lead { margin-inline: 20px; }

  .proof {
    position: absolute;
    top: 35%;
    left: 14px;
    z-index: 2;
    direction: ltr;           /* lay the card out left-to-right, like the reference */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
  }

  .proof-text {
    position: relative;
    direction: rtl;
    padding: 7px 14px 7px 16px;
    border-radius: 12px;
    background: #fff;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7);
  }

  /* the orange ring sits on the pill's top-left corner */
  .proof-dot {
    position: absolute;
    top: -7px;
    left: -7px;
    width: 18px;
    height: 18px;
    border-width: 4px;
  }

  /* the white tab under the pill that holds the faces */
  .proof-faces {
    margin-top: -1px;
    padding: 5px 7px 6px;
    border-radius: 0 12px 12px 12px;
    background: #fff;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7);
  }

  .proof-face, .proof-more { width: 26px; height: 26px; border-width: 2px; }
  .proof-face svg { width: 15px; height: 15px; }
  .proof-more { font-size: 10px; }
  .proof-face + .proof-face, .proof-more { margin-inline-start: -8px; }
}

/* Badge motion: the faces pop in one after another, the orange ring sends out
   a soft pulse, and the whole badge drifts gently up and down. The drift uses
   `translate` so it doesn't fight the fade-up entry, which uses `transform`. */
.proof {
  animation:
    fade-up 0.6s var(--ease-out) both,
    proof-float 5s ease-in-out 1.6s infinite;
  animation-delay: var(--delay, 0s), 1.6s;
}

@keyframes proof-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

.proof-face { animation: face-pop 0.5s var(--spring) both; }
.proof-face:nth-child(1) { animation-delay: 0.5s; }
.proof-face:nth-child(2) { animation-delay: 0.62s; }
.proof-face:nth-child(3) { animation-delay: 0.74s; }
.proof-face:nth-child(4) { animation-delay: 0.86s; }
.proof-face:nth-child(5) { animation-delay: 0.98s; }

@keyframes face-pop {
  from { opacity: 0; transform: scale(0.3) translateY(6px); }
  to { opacity: 1; transform: none; }
}

.proof-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--neon);
  animation: dot-ping 2s ease-out 1.2s infinite;
}

.proof-dot { position: relative; }

@media (max-width: 1023px) {
  .proof-dot { position: absolute; }
}

@keyframes dot-ping {
  from { opacity: 0.8; transform: scale(0.8); }
  to { opacity: 0; transform: scale(2.2); }
}

/* the count ticks up from zero; tabular figures keep the pill from wobbling */
.proof-num { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .proof, .proof-face, .proof-dot::after { animation: none; }
}

/* Small label above the headline: who Amir is, at a glance */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: 0 0 18px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 106, 0, 0.5);
  border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.45);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(255, 106, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0); }
}

/* ---------- Missing photo fallback ---------- */
.photo-wrap.is-missing {
  background: radial-gradient(120% 90% at 85% 80%, var(--surface-hover) 0%, var(--surface) 45%, var(--bg) 75%);
}

.photo-wrap.is-missing .photo {
  display: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Section text (headings, body, hint) ---------- */
.drill-title {
  font-family: var(--font-display);
  margin: 0;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}

.drill-text {
  margin: 14px 0 0;
  max-width: 40rem;
  font-size: 17px;
  line-height: 1.9; /* Persian reads better with generous line height */
  color: var(--muted);
}

/* Only mouse users can scrub, so only they see the hint */
.drill-hint {
  display: none;
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--sage);
}

@media (hover: hover) and (pointer: fine) {
  .drill-hint { display: block; }
}

@media (max-width: 639px) {
  .drill-title { font-size: 28px; }
}

@media (min-width: 768px) {
  .drill-title { font-size: 48px; }
}

/* ---------- Video-background sections (Bent Arm Planche, About me) ----------
   Text over a scrubbable video. Text sits on the right (RTL start) by default;
   .bg-section--end puts it on the left. --focus picks which part of the frame
   stays in view on wide screens, --focus-mobile on phones. */
.bg-section {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  scroll-margin-top: 90px; /* stop below the fixed header when jumped to */
}

.bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--surface);
}

.bg-media img,
.bg-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50%) center;
}

.bg-media video {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.bg-media video.is-ready {
  opacity: 1;
}

/* Blends the video into the page: top and bottom edges, plus the text side */
.bg-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 18%),
    linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 12%),
    linear-gradient(270deg, var(--bg) 0%, rgba(var(--bg-rgb), 0.9) 30%, rgba(var(--bg-rgb), 0.3) 55%, rgba(var(--bg-rgb), 0) 70%);
}

.bg-section--end .bg-fade {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 18%),
    linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 12%),
    linear-gradient(90deg, var(--bg) 0%, rgba(var(--bg-rgb), 0.9) 30%, rgba(var(--bg-rgb), 0.3) 55%, rgba(var(--bg-rgb), 0) 70%);
}

.bg-text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 96px 24px;
}

.bg-text > * {
  max-width: 34rem;
}

.bg-section--end .bg-text > * {
  margin-inline-start: auto; /* pushes the text block to the left in RTL */
}

/* Phones: the text spans the full width, so give it a card like the hero */
@media (max-width: 899px) {
  .bg-section {
    min-height: 100svh;
    align-items: flex-end;
  }

  .bg-fade,
  .bg-section--end .bg-fade {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 20%),
      linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 10%);
  }

  .bg-media img,
  .bg-media video {
    object-position: var(--focus-mobile, 50%) center;
  }

  .bg-text {
    margin: 0 16px 24px;
    padding: 28px 20px;
    border-radius: 24px;
    background: rgba(var(--bg-rgb), 0.85);
  }

  .bg-section--end .bg-text > * {
    margin-inline-start: 0;
  }

  /* Wide, horizontal shots (e.g. the planche) lose too much when cropped to a
     tall phone screen: show the whole video at its own shape, text underneath */
  .bg-section--wide {
    display: block;
    min-height: 0;
  }

  .bg-section--wide .bg-media {
    position: relative;
    inset: auto;
    aspect-ratio: 1280 / 668;
  }

  .bg-section--wide .bg-media img,
  .bg-section--wide .bg-media video {
    object-position: center;
  }

  .bg-section--wide .bg-fade {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 14%, rgba(var(--bg-rgb), 0) 86%, var(--bg) 100%);
  }

  .bg-section--wide .bg-text {
    margin: 0;
    padding: 20px 16px 56px;
    border-radius: 0;
    background: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Benefits band ----------
   Uses the theme colors inverted (text color as background), so it stays a
   contrasting band in both the light and the dark theme. */
.benefits {
  background: var(--text);
  color: var(--bg);
  padding: 80px 24px;
  text-align: center;
}

.benefits-title {
  font-family: var(--font-display);
  margin: 0 auto 56px;
  max-width: 40rem;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
}

.benefit-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 72rem;
  display: grid;
  gap: 56px;
}

.benefit-icon {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: var(--neon-on-light, var(--neon)); /* falls back to the accent in themes without it */
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-name {
  font-family: var(--font-display);
  margin: 16px 0 8px;
  font-size: 24px;
  font-weight: 600;
}

.benefit-text {
  margin: 0 auto;
  max-width: 22rem;
  font-size: 17px;
  line-height: 1.9;
  opacity: 0.75;
}

@media (min-width: 900px) {
  .benefits { padding: 112px 24px; }
  .benefits-title { font-size: 40px; margin-bottom: 72px; }
  .benefit-list { grid-template-columns: repeat(4, 1fr); gap: 40px; }
}

/* Fade up once when scrolled into view (script.js adds .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

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

/* ---------- About me details: intro, stats, certificate ---------- */
.about-lead {
  margin: 16px 0 0;
  font-size: 20px;
  line-height: 1.8;
  color: var(--text);
}

.about-lead strong {
  color: var(--ink);
  font-weight: 600;
}

.about-stats {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  gap: 40px;
}

.about-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-stats strong {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.about-stats span {
  font-size: 15px;
  color: var(--muted);
}

.about-cert {
  margin: 28px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.5);
  font-size: 15px;
  color: var(--text);
}

.about-cert svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--neon);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 639px) {
  .about-lead { font-size: 18px; }
  .about-stats { gap: 28px; }
  .about-stats strong { font-size: 32px; }
  .about-cert { font-size: 14px; border-radius: 16px; }
}

/* ---------- About accents: gold certificate, orange highlights ---------- */
.about-cert { border-color: var(--gold); }
.about-cert svg { stroke: var(--gold); }
.about-lead strong,
.about-stats strong { color: var(--neon); }
.about-stats strong { font-family: var(--font-display); font-weight: 400; }
.about-belief { color: #fff; }

@media (min-width: 900px) {
  #about .bg-text { top: -24px; }
}

/* ---------- Students: transformation cards ----------
   Very dark grey band (sets it apart from the black About above), orange
   headline, then white cards: before/after photos side by
   side under black label bars, the student's words underneath. */
.results {
  scroll-margin-top: 76px;
  padding: 110px max(24px, calc((100% - 72rem) / 2));
  background: #141414;
  color: #fff;
  text-align: center;
}

.results-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--neon);
}

.results-sub {
  margin: 48px 0 0;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.4;
  color: #fff;
}

.results-note {
  margin: 12px auto 0;
  max-width: 36rem;
  font-size: 19px;
  font-style: italic;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
}

.tf-list {
  list-style: none;
  margin: 56px auto 0;
  padding: 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 30px;
  text-align: start;
}

/* White card; inside it the photos sit in a black frame, like the reference */
.tf-card {
  padding: 20px;
  border-radius: 5px;
  background: #fff;
  color: #000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tf-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 0 3px 3px;
  background: #000;
}

.tf-photos figure {
  margin: 0;
}

.tf-photos figcaption {
  padding: 5px 2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  text-align: center;
}

.tf-photos img {
  display: block;
  width: 100%;
  height: auto;
}

.tf-headline {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
}

.tf-text {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: #000;
}

.tf-name {
  margin: 15px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #707070;
}

/* Text-only reviews (no photos) share the same card */
.tf-card--text .tf-headline,
.tf-card--text .tf-text:first-child { margin-top: 0; }
.tf-stars { margin: 8px 0 0; color: var(--neon); letter-spacing: 2px; }

/* Gold double chevron under the headline */
.results-arrow {
  display: block;
  width: 44px;
  height: 44px;
  margin: 18px auto 0;
  fill: none;
  stroke: var(--neon);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 899px) {
  .results { padding: 80px 16px 88px; }
  .results-title { font-size: 28px; }
  .results-sub { margin-top: 36px; font-size: 32px; }
  .results-note { font-size: 16px; }
  .tf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

/* "Read more" and slide dots are added by script.js; only phones use them */
.tf-more,
.tf-dots { display: none; }

/* Phones: a swipeable row of compact cards — the one in the middle is in focus,
   long stories fold to four lines until "ادامه" is tapped */
@media (max-width: 599px) {
  .results-title { font-size: 21px; }
  .results-sub { font-size: 28px; }

  .tf-list {
    display: flex;
    gap: 12px;
    max-width: none;
    margin: 32px -16px 0;
    padding: 8px 16px 16px;
    scroll-padding-inline: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tf-list::-webkit-scrollbar { display: none; }

  .tf-card {
    flex: 0 0 72%;
    padding: 12px;
    border-radius: 14px;
    scroll-snap-align: center;
    box-shadow: 0 24px 50px -20px rgba(255, 106, 0, 0.35);
  }

  /* cards beside the focused one shrink and dim (beats .reveal.is-visible) */
  .tf-list .tf-card.reveal {
    transition: transform 0.45s var(--ease-out), opacity 0.45s var(--ease-out);
  }

  .tf-list .tf-card:not(.is-active) {
    transform: scale(0.9);
    opacity: 0.45;
  }

  .tf-photos { border-radius: 8px; overflow: hidden; }
  .tf-photos figcaption { font-size: 11px; padding: 4px 2px; }

  .tf-headline { margin-top: 12px; font-size: 17px; }

  .tf-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.85;
  }

  .tf-card.is-open .tf-text {
    display: block;
    -webkit-line-clamp: unset;
  }

  .tf-more {
    display: inline-block;
    margin-top: 6px;
    padding: 0;
    color: var(--neon-on-light);
    font-size: 14px;
    font-weight: 700;
  }

  .tf-name { margin-top: 8px; font-size: 13.5px; }

  .tf-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
  }

  .tf-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.3s var(--ease-out), background-color 0.3s;
  }

  .tf-dots button.is-active {
    width: 26px;
    background: var(--accent-grad);
  }
}

/* ---------- FAQ: chat inside a glowing phone ----------
   White section; the phone stands on a dark rounded card that burns into red
   at the bottom, and its screen glows orange from the edges. */
.faq {
  /* theme colors redefined for this section only: dark text on white */
  --ink: #111;
  --text: #111;
  --muted: #555;
  --line: #ececec;
  --surface: #fff;
  --glow: 255, 90, 10; /* the orange of the glow, as R, G, B */
  display: grid;
  gap: 48px;
  align-items: center;
  padding: 110px max(24px, calc((100% - 72rem) / 2));
  color: var(--text);
  background: #f3f2ef; /* soft off-white, a shade lighter than the hero */
}

/* Holds the phone; no card or frame around it, just the phone on white */
.phone-stage {
  justify-self: center;
  display: flex;
  justify-content: center;
}

.faq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.faq-chip {
  padding: 12px 18px;
  border: 1px solid rgba(var(--glow), 0.35);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  text-align: start;
  transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s, transform 0.2s var(--spring);
}

.faq-chip:hover:not(:disabled) {
  border-color: rgb(var(--glow));
  box-shadow: 0 0 22px -6px rgba(var(--glow), 0.8);
  transform: translateY(-2px);
}

.faq-chip:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

.faq-chip.is-asked { opacity: 0.5; }
.faq-chip:disabled { cursor: wait; }

/* The phone: just the glowing screen, no black bezel. Island, status bar and
   glow are all CSS — no images */
.phone {
  position: relative;
  justify-self: center;
  width: 330px;
  max-width: 100%;
  height: 680px;
  border-radius: 44px;
  box-shadow: 0 50px 100px -30px rgba(var(--glow), 0.45);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 44px;
  background: #000;
  /* orange light bleeding in from every edge */
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 150, 70, 0.9),
    inset 0 0 26px 6px rgba(var(--glow), 0.9),
    inset 0 0 90px 18px rgba(var(--glow), 0.35);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.phone-island {
  width: 96px;
  height: 28px;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 0 0 1px #111;
}

.phone-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.phone-icons svg {
  height: 11px;
  fill: #fff;
}

/* Who you're chatting with: a small glowing pill, like the reference's "Close chat" */
.chat-head {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 4px 14px 4px 4px;
  border: 1px solid rgba(255, 140, 70, 0.45);
  border-radius: 999px;
  background: rgba(var(--glow), 0.16);
}

.chat-head strong {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
}

.chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #b9b9b9;
}

.chat-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 10px;
  overflow-y: auto;
  scrollbar-width: none;
}

.msg {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.85;
  white-space: pre-line;
  animation: msg-in 0.35s var(--spring) both;
}

/* RTL: flex-start is the right side, flex-end the left */
.msg--user {
  align-self: flex-start;
  background: linear-gradient(135deg, #ff9a4d, #ef5a12);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(var(--glow), 0.85);
}

/* Amir's replies: dark bubble with his photo as a small glowing orb beside it */
.msg--coach {
  position: relative;
  align-self: flex-end;
  margin-left: 30px;
  background: #141414;
  color: #fff;
}

.msg--coach::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -30px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--avatar, var(--accent-grad)) center / cover;
  box-shadow: 0 0 12px rgba(var(--glow), 0.8);
}

/* "Amir is typing…" — a quiet pulsing line instead of a bubble */
.msg--typing {
  margin-left: 0;
  padding: 0 4px;
  background: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11.5px;
  animation: msg-in 0.35s var(--spring) both, typing 1.4s ease-in-out infinite;
}

.msg--typing::before { display: none; }

@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
}

@keyframes typing {
  50% { opacity: 0.4; }
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 14px 18px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.85);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.chat-input span { flex: 1; }

.chat-input--link {
  color: #f2f2f2;
  transition: background-color 0.2s;
}

.chat-input--link:hover { background: rgba(50, 50, 50, 0.9); }

.chat-input svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #9a9a9a;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-input--link svg {
  stroke: var(--neon);
  transform: scaleX(-1); /* the paper plane points left in RTL */
}

@media (min-width: 900px) {
  .faq { grid-template-columns: 1fr auto; gap: 64px; }
}

@media (max-width: 899px) {
  .faq { padding: 72px 16px; }
}

/* ---------- Plans: programs for sale ----------
   Dark band at the end of the page: intro on the right (RTL start), then a
   photo card per program with thin accent borders. */
.plans {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 110px max(24px, calc((100% - 76rem) / 2)) 120px;
  background:
    radial-gradient(45% 60% at 85% 30%, rgba(255, 90, 10, 0.12), transparent 70%),
    /* a grey spotlight behind the cards */
    radial-gradient(60% 60% at 40% 60%, rgba(160, 160, 160, 0.2), transparent 70%),
    #070707;
  color: #fff;
  scroll-margin-top: 76px;
}

.plans-eyebrow {
  margin: 0;
  color: var(--neon);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-align: right;
}

.plans-eyebrow::before {
  content: "— ";
}

.plans-title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.4;
}

.plans-sub {
  margin: 14px 0 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.9;
  color: #fff;
}

.plans-all {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  padding: 16px 30px;
  border: 1.5px solid rgba(255, 106, 0, 0.6);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.plans-all:hover {
  background: rgba(255, 106, 0, 0.1);
  box-shadow: 0 0 24px -6px rgba(255, 106, 0, 0.7);
}

.plans-all svg,
.plan-cart svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plans-all svg { stroke: var(--neon); }

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Cards lifted off the black band: a lighter surface, a thin highlight on the
   top edge, a deep drop shadow and a soft orange glow underneath */
.plan {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid rgba(255, 106, 0, 0.45);
  border-radius: 16px;
  background: linear-gradient(180deg, #1c1c1c, #141414);
  /* grey smoke around the card: a soft silver halo plus a deep black drop */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 30px 0 rgba(200, 200, 200, 0.18),
    0 0 90px 6px rgba(170, 170, 170, 0.3),
    0 40px 120px 0 rgba(150, 150, 150, 0.35),
    0 60px 80px -20px rgba(0, 0, 0, 1);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}

.plan:hover {
  border-color: rgba(255, 106, 0, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 40px 2px rgba(220, 220, 220, 0.28),
    0 0 120px 14px rgba(190, 190, 190, 0.42),
    0 50px 140px 0 rgba(170, 170, 170, 0.45),
    0 70px 90px -20px rgba(0, 0, 0, 1);
  transform: translateY(-6px);
}

/* Card photo: desaturated and darkened so the three free photos read as one set,
   with a fade into the card at the bottom */
.plan-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-bottom: 1.5px solid rgba(255, 106, 0, 0.35);
  background: #0a0a0a;
}

.plan-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.45) brightness(0.62) contrast(1.2);
  transition: transform 0.6s var(--ease-out), filter 0.4s;
}

.plan-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(28, 28, 28, 0.85) 0%, transparent 45%),
    radial-gradient(80% 70% at 50% 120%, rgba(255, 90, 10, 0.25), transparent 70%);
}

.plan:hover .plan-media img {
  transform: scale(1.05);
  filter: grayscale(0.2) brightness(0.75) contrast(1.2);
}

.plan-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

/* English plan code (BASE / STRENGTH / MASTERY): tall, condensed, wide-spaced */
.plan-level {
  margin: 0;
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-align: right;
  color: var(--neon);
}

/* Small highlight pill on the photo ("most chosen", "faster results") */
.plan-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 8px 20px -8px var(--neon);
}

.plan-name {
  margin: 8px 0 0;
  font-size: 19px;
  font-weight: 700;
}

.plan-tagline {
  flex: 1;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: #9a9a9a;
}

.plan-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.plan-cart {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--neon);
  border-radius: 50%;
  color: var(--neon);
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--spring);
}

.plan-cart:hover {
  background: var(--accent-grad);
  border-color: transparent;
  color: #fff;
}

.plan-cart:active { transform: scale(0.92); }

.plan-price {
  margin: 0;
  font-size: 14px;
  color: #bdbdbd;
}

.plan-price strong {
  margin-inline-end: 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--neon);
}

/* Tablets: intro above the cards */
@media (max-width: 1099px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
}

/* Phones: the cards become a swipeable row */
@media (max-width: 767px) {
  .plans { gap: 22px; padding: 48px 16px 40px; }
  .plans-title { font-size: 32px; }
  .plans-sub { margin-top: 8px; font-size: 15px; }

  /* "PROGRAMS" stays above the cards; the line of text and the button move
     under them (display: contents lets the intro's pieces be ordered one by one) */
  .plans-intro { display: contents; }
  .plans-eyebrow { order: 0; }
  .plan-list { order: 1; }
  .plans-sub { order: 2; margin-top: 0; }

  .plans-all {
    order: 3;
    justify-self: start;
    margin-top: 0;
    padding: 11px 20px;
    font-size: 14px;
  }

  /* the grey halo reads as a light band on a phone; keep only a soft drop shadow */
  .plan,
  .plan:hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 24px 40px -18px rgba(0, 0, 0, 0.9);
    transform: none;
  }

  .plan-list {
    display: flex;
    gap: 14px;
    margin: 0 -16px;
    padding: 8px 16px 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }

  .plan-list::-webkit-scrollbar { display: none; }

  .plan {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .plan-name { font-size: 18px; }
  .plan-tagline { font-size: 13.5px; }
}

/* ---------- Contact + footer ----------
   Plain and quiet: a title and three buttons in a row. */
.contact {
  padding: 80px 20px;
  background: #0b0b0b;
  color: #fff;
  text-align: center;
  scroll-margin-top: 76px;
}

.contact-title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 18px;
}

/* a square tile with the icon, and the name under it */
.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #e6e6e6;
  transition: color 0.2s;
}

.contact-tile {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid #2e2e2e;
  border-radius: 20px;
  background: #161616;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--spring);
}

.contact-tile svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--neon);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-link:hover { color: var(--neon); }
.contact-link:hover .contact-tile { border-color: var(--neon); transform: translateY(-3px); }

.round-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Round icon buttons in the footer: orange ring, fills orange on hover */
.round-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--neon);
  border-radius: 50%;
  color: var(--neon);
  transition: background-color 0.2s, color 0.2s;
}

.round-icon:hover {
  background: var(--neon);
  color: #fff;
}

@media (max-width: 767px) {
  .contact { padding: 60px 16px; }
  .contact-title { font-size: 30px; margin-bottom: 22px; }
  .contact-links { gap: 14px; }
  .contact-tile { width: 76px; height: 76px; border-radius: 18px; }
}

.footer {
  padding: 40px max(20px, calc((100% - 72rem) / 2)) 28px;
  background: #050505;
  color: #bdbdbd;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; /* only the links remain */
  gap: 20px 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #1f1f1f;
}

.footer-logo {
  font-size: 22px;
  font-weight: 500;
  color: #fff;
}

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

.footer-logo img { width: auto; height: 36px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 15px;
}

.footer-nav a:hover { color: var(--neon); }

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social .round-icon svg { width: 19px; height: 19px; }

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: #7a7a7a;
  text-align: center;
}

@media (max-width: 767px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav { justify-content: center; }
}

/* ---------- Sticky action bar (phones) ----------
   Slides up once the hero has scrolled away (script.js adds .is-shown) */
.sticky-cta {
  display: none;
}

@media (max-width: 767px) {
  .sticky-cta {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px 8px 8px;
    padding-inline-start: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(18, 18, 18, 0.82);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
    transform: translateY(calc(100% + 40px));
    transition: transform 0.5s var(--ease-out);
  }

  .sticky-cta.is-shown {
    transform: none;
  }

  .sticky-cta-text {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 1.5;
    color: #a3a3a3;
  }

  .sticky-cta-text strong {
    font-size: 15px;
    color: #fff;
  }

  .sticky-cta-btn {
    flex: none;
    padding: 13px 20px;
    border-radius: 14px;
    background: var(--accent-grad);
    color: var(--on-accent);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 24px -10px var(--neon);
  }

  .sticky-cta-btn:active { transform: scale(0.96); }

}

/* ---------- Phone layout ----------
   Everything below only applies to small screens; desktop is untouched. */
@media (max-width: 899px) {
  .drill-title { font-size: 38px; line-height: 1.25; }
  .drill-text { font-size: 16px; }

  /* Menu: a warm glow behind the links */
  .mobile-menu {
    justify-content: flex-end;
    padding: 0 28px max(40px, env(safe-area-inset-bottom));
    background:
      radial-gradient(90% 50% at 100% 0%, rgba(255, 106, 0, 0.22), transparent 70%),
      rgba(var(--bg-rgb), 0.97);
  }

  /* Benefits: a 2 × 2 grid of cards instead of one long column */
  .benefits { padding: 72px 16px; }
  .benefits-title { margin-bottom: 32px; font-size: 30px; line-height: 1.4; }

  .benefit-list {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .benefit {
    padding: 22px 14px 20px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.35);
  }

  .benefit-icon {
    width: 46px;
    height: 46px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 106, 0, 0.1);
  }

  .benefit-name { margin: 12px 0 6px; font-size: 20px; }
  .benefit-text { font-size: 13.5px; line-height: 1.8; }

  /* About: the whole portrait video sits above the text, so the full body stays in view */
  #about.bg-section {
    display: block;
    min-height: 0;
  }

  #about .bg-media {
    position: relative;
    aspect-ratio: 9 / 16;
  }

  #about .bg-fade {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 8%),
      linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb), 0.75) 7%, rgba(var(--bg-rgb), 0) 15%);
  }

  #about .bg-text {
    margin: -40px 0 0;
    padding: 0 20px 80px;
    border-radius: 0;
    background: none;
  }

  #about .drill-title { font-size: 48px; }

  .about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .about-stats li {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(160deg, #1a1a1a, #101010);
  }

  .about-stats strong {
    font-size: 40px;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* badge on the left, title above the Latin level line */
  .about-cert {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    line-height: 1.7;
  }

  .about-cert svg { grid-row: span 2; width: 30px; height: 30px; }
  .about-cert [dir="ltr"] { justify-self: start; color: var(--gold); font-weight: 600; }

  /* FAQ: the question chips move into the chat (script.js) and act as quick replies */
  /* minmax(0, …) stops the one-line chip row from stretching the page sideways */
  .faq { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 80px; }

  .phone-stage { width: 100%; }

  .phone {
    width: min(100%, 330px);
    height: min(80svh, 650px);
    border-radius: 42px;
  }

  .phone-screen { border-radius: 42px; }

  .phone-screen .faq-chips {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    padding: 8px 16px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .phone-screen .faq-chips::-webkit-scrollbar { display: none; }

  .phone-screen .faq-chip {
    flex: none;
    background: rgba(var(--glow), 0.1);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .phone-screen .chat-input { margin-top: 8px; }
}

/* ======================================================================
   Programs page (/programs/): intro, quiz, each plan explained,
   comparison table, steps and buying questions.
   ====================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.prog {
  padding: 120px max(20px, calc((100% - 68rem) / 2)) 40px;
  /* grey, orange and black mixed: orange and grey glows take turns down the page
     over a black-to-charcoal base, so the dark cards still read clearly on top */
  background:
    radial-gradient(60% 28% at 85% 0%, rgba(255, 110, 15, 0.45), transparent 70%),
    radial-gradient(55% 22% at 10% 18%, rgba(150, 150, 150, 0.22), transparent 70%),
    radial-gradient(50% 22% at 95% 40%, rgba(255, 95, 0, 0.3), transparent 70%),
    radial-gradient(60% 22% at 5% 62%, rgba(140, 140, 140, 0.2), transparent 70%),
    radial-gradient(55% 22% at 90% 85%, rgba(255, 90, 0, 0.25), transparent 70%),
    linear-gradient(180deg, #0a0a0a 0%, #1d1d1d 35%, #0c0c0c 65%, #222222 100%);
  color: var(--text);
}

.prog > section { margin-top: 96px; scroll-margin-top: 90px; }

.prog-hero { max-width: 40rem; }
.prog-eyebrow { font-size: clamp(36px, 6vw, 56px); line-height: 1.1; }

.prog-eyebrow,
.prog-plan-code {
  margin: 0 0 12px;
  font-family: "Bebas Neue", var(--font-display);
  letter-spacing: 0.2em;
  color: var(--neon);
}

.prog-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
}

.prog-title span { color: var(--neon); }

.prog-lead {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
}

.prog-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.prog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid #333;
  border-radius: 14px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--spring), border-color 0.2s, box-shadow 0.2s;
}

.prog-btn:hover { border-color: var(--neon); transform: translateY(-2px); }

.prog-btn--main {
  border-color: transparent;
  background: var(--accent-grad);
  box-shadow: 0 12px 28px -12px rgba(255, 106, 0, 0.8);
}

.prog-h2 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  color: #fff;
}

/* ---------- Quiz ---------- */
.quiz {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(160deg, #161616, #0d0d0d);
}

.quiz-form { display: grid; gap: 26px; }

.quiz-q {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz-q legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.quiz-q legend span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.15);
  color: var(--neon);
  font-size: 14px;
}

/* each answer is a chip; the real radio stays for keyboards and screen readers */
.quiz-q label { position: relative; cursor: pointer; }

.quiz-q input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.quiz-q label span {
  display: block;
  padding: 11px 18px;
  border: 1px solid #333;
  border-radius: 999px;
  font-size: 15px;
  color: var(--muted);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.quiz-q label:hover span { border-color: #555; }

.quiz-q input:checked + span {
  border-color: var(--neon);
  background: rgba(255, 106, 0, 0.14);
  color: #fff;
}

.quiz-q input:focus-visible + span { outline: 2px solid var(--neon); outline-offset: 2px; }

.quiz-go { justify-self: start; }

.quiz-result {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(255, 106, 0, 0.5);
  border-radius: 20px;
  background: rgba(255, 106, 0, 0.08);
  animation: face-pop 0.5s var(--spring) both;
}

.quiz-result-label { margin: 0; color: var(--muted); }

.quiz-result-name {
  margin: 6px 0 18px;
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--neon);
}

/* ---------- Plans, each explained ---------- */
.prog-plans { display: grid; gap: 28px; }

.prog-plan {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #121212;
  scroll-margin-top: 90px; /* the quiz result scrolls here; stop below the fixed header */
  transition: border-color 0.3s, box-shadow 0.3s, opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

/* the quiz's pick glows orange */
.prog-plan.is-picked {
  border-color: var(--neon);
  box-shadow: 0 0 0 1px var(--neon), 0 30px 60px -30px rgba(255, 106, 0, 0.6);
}

/* fixed shape, pinned to the top of the card: opening the details drawer makes
   the card taller, and a stretching photo would look like it zooms in */
.prog-plan-media {
  position: relative;
  align-self: start;
  aspect-ratio: 4 / 3;
  background: #0a0a0a;
}

.prog-plan-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05) brightness(0.8);
}

.prog-pick {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 700;
}

.prog-plan.is-picked .prog-pick { display: block; }

/* price and button sit at the bottom of the text column, level with the photo's foot */
.prog-plan-body {
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.prog-plan-body .prog-buy { margin-top: auto; }
/* keep a gap above the price even when the photo is short */
.prog-plan-body > :nth-last-child(2) { margin-bottom: 26px; }

.prog-plan-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: #fff;
}

.prog-plan-for {
  margin: 10px 0 0;
  line-height: 1.9;
  color: var(--muted);
}

.prog-plan-sub {
  margin: 24px 0 12px;
  font-size: 15px;
  color: #fff;
}

.prog-features {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prog-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.7;
  color: var(--text);
}

.prog-features svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.15);
  fill: none;
  stroke: var(--neon);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prog-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
}

.prog-meta div {
  padding: 12px 14px;
  border-radius: 14px;
  background: #1a1a1a;
}

.prog-meta dt { font-size: 12.5px; color: var(--sage); }
.prog-meta dd { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: #fff; }

.prog-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.prog-price { margin: 0; color: var(--muted); }

.prog-price strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  color: var(--neon);
}

/* ---------- Comparison ---------- */
.compare-scroll { overflow-x: auto; }

.compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  text-align: center;
}

.compare-table th,
.compare-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th {
  font-size: 16px;
  color: #fff;
}

.compare-table thead small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--neon);
}

.compare-table tbody th {
  font-weight: 400;
  text-align: right;
  color: var(--muted);
}

.compare-table .yes {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.15);
  color: var(--neon);
  font-weight: 700;
}

.compare-table .no { color: #444; }

/* ---------- Steps ---------- */
.steps-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #121212;
}

.steps-num {
  font-family: "Bebas Neue", var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--neon);
}

.steps-list h3 { margin: 12px 0 6px; font-size: 17px; color: #fff; }
.steps-list p { margin: 0; line-height: 1.8; font-size: 14.5px; color: var(--muted); }

/* ---------- Buying questions ---------- */
.buy-faq { max-width: 46rem; }

.buy-faq-item { border-bottom: 1px solid var(--line); }

.buy-faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

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

.buy-faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--neon);
  transition: transform 0.2s;
}

.buy-faq-item[open] summary::after { transform: rotate(45deg); }

.buy-faq-item p { margin: 0 0 18px; line-height: 1.9; color: var(--muted); }

/* ---------- Last nudge ---------- */
.prog-end {
  padding: 48px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 61, 0, 0.18), rgba(255, 153, 0, 0.06));
  text-align: center;
}

.prog-end .prog-h2 { margin-bottom: 10px; }
.prog-end p { margin: 0 0 24px; color: var(--muted); }

/* ---------- Programs page on tablets and phones ---------- */
@media (max-width: 899px) {
  .prog-plan { grid-template-columns: minmax(0, 1fr); }
  .prog-plan-media { aspect-ratio: 16 / 9; }
  .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
  .prog { padding: 100px 16px 24px; }
  .prog > section { margin-top: 64px; }
  .prog-lead { font-size: 15.5px; }
  .prog-jumps .prog-btn { flex: 1; }
  .quiz { padding: 24px 18px; border-radius: 22px; }
  .quiz-q label { flex: 1 1 100%; }
  .quiz-q label span { border-radius: 14px; }
  .quiz-go { justify-self: stretch; }
  .prog-plan-body { padding: 22px 18px; }
  .prog-plan-name { font-size: 28px; }
  .prog-meta { grid-template-columns: minmax(0, 1fr); }
  .prog-meta div { display: flex; justify-content: space-between; align-items: center; }
  .prog-meta dd { margin: 0; }
  .prog-buy .prog-btn { flex: 1 1 100%; }
  .steps-list { grid-template-columns: minmax(0, 1fr); }

  /* the table fits the screen instead of scrolling sideways */
  .compare-table { min-width: 0; table-layout: fixed; }
  .compare-table th, .compare-table td { padding: 12px 4px; }
  .compare-table thead th:first-child { width: 34%; }
  .compare-table thead th { font-size: 13px; }
  .compare-table thead small { font-size: 10.5px; }
  .compare-table tbody th { font-size: 12.5px; line-height: 1.6; }
  .compare-table .yes { width: 22px; height: 22px; font-size: 12px; }
}

/* ---------- Programs page: plan details drawer ----------
   The short line under the plan name stays visible; the description,
   features and facts fold into a bar that opens when tapped. */
.prog-plan-subtitle {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--neon);
}

.prog-more {
  grid-column: 1 / -1;     /* full card width, under the photo and the text */
  margin: 0 32px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #171717;
  transition: border-color 0.2s;
}

.prog-more[open],
.prog-more:hover { border-color: #3a3a3a; }

.prog-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.prog-more summary::-webkit-details-marker { display: none; }

.prog-more summary svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--neon);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: rotate 0.3s var(--ease-out);
}

.prog-more[open] summary svg { rotate: 180deg; }

.prog-more summary:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; border-radius: 16px; }

.prog-more-body { padding: 0 16px 18px; }
.prog-more-body .prog-plan-for { margin-top: 0; }
.prog-more-body .prog-meta { margin-top: 20px; }

.prog-more[open] .prog-more-body { animation: drawer-in 0.35s var(--ease-out) both; }

@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-8px); }
}

/* browsers that can animate to height: auto also slide the drawer open and shut */
@supports selector(::details-content) {
  .prog-more { interpolate-size: allow-keywords; }

  .prog-more::details-content {
    height: 0;
    overflow: hidden;
    transition: height 0.35s var(--ease-out), content-visibility 0.35s allow-discrete;
  }

  .prog-more[open]::details-content { height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .prog-more[open] .prog-more-body { animation: none; }
  .prog-more::details-content { transition: none; }
}

/* comparison cells that hold text (days per week, where to train...) instead of a tick */
.compare-text {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
}

@media (max-width: 599px) {
  .compare-text { font-size: 11.5px; }
}

/* the drawer is as wide as the card on desktop: features in two columns */
@media (min-width: 900px) {
  .prog-more-body .prog-features { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}

@media (max-width: 599px) {
  .prog-more { margin: 0 18px 22px; }
}

/* the support line in the features list: filled orange circle with a phone */
.prog-features .is-support { font-weight: 700; color: #fff; }

.prog-features .is-support svg {
  padding: 4px;
  background: var(--accent-grad);
  stroke: #fff;
  stroke-width: 2;
}

/* ---------- Programs page on phones: app-like ----------
   A three-way switch over swipeable plan cards, a quiz laid out as a grid of
   tiles, the chosen plan's column lit up in the comparison, and a buy bar that
   appears at the bottom once the cards scroll away. */
.plan-tabs,
.prog-bar { display: none; }

/* the chosen plan's column in the comparison (set by script.js) */
.compare-table[data-active="0"] :is(th, td):nth-child(2),
.compare-table[data-active="1"] :is(th, td):nth-child(3),
.compare-table[data-active="2"] :is(th, td):nth-child(4) {
  background: rgba(255, 106, 0, 0.1);
  transition: background-color 0.3s;
}

@media (max-width: 599px) {
  /* switch: three names with an orange pill sliding under the chosen one */
  .plan-tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
    padding: 4px;
    border: 1px solid #2c2c2c;
    border-radius: 16px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .plan-tab {
    position: relative;
    z-index: 1;
    padding: 11px 4px;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.25s;
  }

  .plan-tab.is-active { color: #fff; }

  .plan-tabs-pill {
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 4px;
    width: calc((100% - 8px) / 3);
    border-radius: 12px;
    background: var(--accent-grad);
    box-shadow: 0 8px 20px -8px rgba(255, 106, 0, 0.8);
    transform: translateX(calc(var(--i, 0) * -100%));
    transition: transform 0.35s var(--spring);
  }

  /* cards: one per screen, swiped sideways, the next one peeking in */
  .prog > section.prog-plans { margin-top: 14px; }

  .prog-plans {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-inline: -16px;
    padding: 4px 16px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }

  .prog-plans::-webkit-scrollbar { display: none; }

  .prog-plan {
    flex: 0 0 88%;
    scroll-snap-align: start;
    /* cards beside the screen never cross the reveal line, so show them as they are */
    opacity: 1;
    transform: none;
  }

  .prog-plan-media { aspect-ratio: 16 / 10; }

  /* quiz: answers as a row of three tiles under each question */
  .quiz-q {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .quiz-q label span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 60px;
    padding: 10px 6px;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
  }

  /* buy bar: slides up from the bottom */
  .prog-bar {
    position: fixed;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 16px;
    border: 1px solid #2e2e2e;
    border-radius: 18px;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9);
    transform: translateY(140%);
    transition: transform 0.4s var(--ease-out);
  }

  .prog-bar.is-shown { transform: none; }

  .prog-bar-info {
    display: grid;
    margin: 0;
    padding-right: 4px;
    font-size: 12.5px;
    color: var(--muted);
  }

  .prog-bar-info strong {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    color: var(--neon);
  }

  .prog-bar .prog-btn { padding: 12px 18px; font-size: 14px; }

  /* room for the bar under the last section */
  .prog ~ .footer { padding-bottom: 100px; }
}

@media (max-width: 599px) and (prefers-reduced-motion: reduce) {
  .plan-tabs-pill, .prog-bar { transition: none; }
}

/* ---------- Programs page: English plan name over the photo ----------
   Big letters on a dark fade at the foot of the photo. */
.prog-plan-media::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
  pointer-events: none;
}

.prog-plan-media .prog-plan-code {
  position: absolute;
  bottom: 12px;
  left: 18px;
  z-index: 1;
  margin: 0;
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--neon);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

/* the "recommended" badge moves up so it doesn't sit on the letters */
.prog-plan-media .prog-pick { top: 14px; bottom: auto; left: 14px; right: auto; }

@media (max-width: 599px) {
  .prog-plan-media .prog-plan-code { bottom: 10px; left: 14px; font-size: 44px; }
}

/* ---------- Badge copy inside About, above the certificate ----------
   The same badge, but in the page flow instead of floating over the hero photo. */
.proof.proof--inline {
  position: static;
  width: fit-content;
  margin: 24px 0 0;
}

.proof--inline + .about-cert { margin-top: 24px; }

/* ---------- Plan request form (/programs/request/) ---------- */
.req {
  min-height: 100svh;
  padding: 104px 16px 48px;
  background:
    radial-gradient(60% 40% at 85% 0%, rgba(255, 110, 15, 0.35), transparent 70%),
    radial-gradient(55% 35% at 10% 90%, rgba(150, 150, 150, 0.16), transparent 70%),
    #0b0b0b;
  color: var(--text);
}

.req-card {
  max-width: 34rem;
  margin-inline: auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #121212;
}

.req-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: #fff;
}

.req-form { display: grid; gap: 20px; }

.req-field { display: grid; gap: 8px; }

.req-field label { font-size: 15px; font-weight: 700; color: #fff; }
.req-field label small { font-size: 13px; font-weight: 400; color: var(--sage); }

/* 16px text stops iPhones zooming in when a field is tapped */
.req-field input,
.req-field select,
.req-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #333;
  border-radius: 12px;
  background: #1a1a1a;
  color: #fff;
  color-scheme: dark;
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.req-field textarea { resize: vertical; }
.req-field input[dir="ltr"] { text-align: right; }

.req-field input::placeholder,
.req-field textarea::placeholder { color: #777; }

.req-field input:focus,
.req-field select:focus,
.req-field textarea:focus {
  border-color: var(--neon);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.2);
}

.req-field select {
  appearance: none;
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6A00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 20px;
  cursor: pointer;
}

.req-field.has-error input,
.req-field.has-error select,
.req-field.has-error textarea { border-color: #ff5a5a; }

.req-error { margin: 0; font-size: 13.5px; color: #ff8a8a; }

/* spam trap: clipped to nothing where it stands (moving it far off screen would widen an RTL page) */
.req-trap {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.req-send { width: 100%; margin-top: 4px; padding-block: 15px; font-size: 17px; }

.req-done { text-align: center; }
.req-done .req-title { margin-bottom: 8px; }
.req-done p { margin: 0 0 24px; color: var(--muted); }

.req-done-actions { display: grid; gap: 12px; margin-top: 24px; }

.req-done-home {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.req-done-home:hover { color: #fff; }

.req-done-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent-grad);
}

.req-done-mark svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 599px) {
  .req { padding-top: 88px; }
  .req-card { padding: 24px 18px; border-radius: 20px; }
}
