/* =====================================================================
   Ali Alsudani: styles
   Black-and-white, mobile-first.
   Sections alternate .theme-dark / .theme-light. Each theme sets the
   colour variables below, so every component adapts automatically.
   .invert inside a section flips to the opposite theme.
   Logical properties (inline/block) mirror the layout for Arabic.
   ===================================================================== */

:root {
  --black: #0b0b0b;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 12px;

  /* Spacing scale */
  --gutter: 20px;
  --section-y: 56px;
  --head-gap: 24px;
  --gap: 12px;
  --pad: 22px;
  --header-h: 64px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --track-tight: -0.03em;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --header-h: 72px;
    --gap: 16px;
    --pad: 28px;
  }
}

@media (min-width: 900px) {
  :root {
    --section-y: 96px;
    --head-gap: 40px;
  }
}

html[lang="ar"] {
  --font: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-head: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --track-tight: 0;
}

/* -------------------------------------------------------------- themes */

.theme-dark,
.theme-light .invert {
  --bg: #0b0b0b;
  --text: #ffffff;
  --text-2: #d4d4d4;
  --muted: #a3a3a3;
  --card: #171717;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.26);
  --primary-bg: #ffffff;
  --primary-text: #0b0b0b;
  --primary-hover: #e0e0e0;
}

.theme-light,
.theme-dark .invert {
  --bg: #ffffff;
  --text: #0b0b0b;
  --text-2: #3a3a3a;
  --muted: #6b6b6b;
  --card: #f4f4f3;
  --line: rgba(0, 0, 0, 0.1);
  --line-2: rgba(0, 0, 0, 0.24);
  --primary-bg: #0b0b0b;
  --primary-text: #ffffff;
  --primary-hover: #2e2e2e;
}

.theme-dark,
.theme-light,
.invert {
  background: var(--bg);
  color: var(--text);
}

/* ------------------------------------------------------------- base */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: var(--track-tight);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: #0b0b0b;
  color: #ffffff;
}

.theme-dark ::selection {
  background: #ffffff;
  color: #0b0b0b;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[dir="rtl"] .flip-rtl {
  transform: scaleX(-1);
}

[dir="rtl"] a[dir="ltr"],
[dir="rtl"] bdi[dir="ltr"] {
  display: inline-block;
}

/* ------------------------------------------------------- typography */

.display {
  font-size: clamp(2.5rem, 10.5vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
}

.display span {
  display: block;
}

.display .soft {
  color: #9b9b9b;
}

html[lang="ar"] .display {
  line-height: 1.3;
}

.h2 {
  font-size: clamp(1.9rem, 7.5vw, 3rem);
}

.h3 {
  font-size: 1.35rem;
}

.lead {
  max-width: 36rem;
  color: var(--muted);
}

.label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

html[lang="ar"] .label {
  letter-spacing: 0;
  font-size: 0.95rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

@media (min-width: 900px) {
  .display {
    font-size: clamp(3.4rem, 5.6vw, 5.25rem);
    line-height: 0.98;
  }

  .h3 {
    font-size: 1.5rem;
  }

  .lead {
    font-size: 1.125rem;
  }
}

/* ---------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

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

.btn-primary {
  background: var(--primary-bg);
  color: var(--primary-text);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.btn-block {
  width: 100%;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.round-btn:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.counter {
  min-width: 56px;
  font-family: var(--font-head);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--muted);
}

.counter b {
  font-weight: 600;
  color: var(--text);
}

/* ----------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(11, 11, 11, 0.9);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-header.is-scrolled,
.site-header.menu-open {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
}

/* The logo file is black on white with wide margins. The crop box zooms
   into the mark, and the filter shows it white on black. */
.logo-crop {
  position: relative;
  display: block;
  width: 92px;
  height: 36px;
  overflow: hidden;
}

.logo-crop img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  max-width: none;
  height: 260%;
  transform: translate(-50%, -50%);
  filter: invert(1) grayscale(1);
  mix-blend-mode: screen;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

.lang-switch button {
  min-width: 40px;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}

.lang-switch button[lang="ar"] {
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--white);
  color: var(--black);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
}

.menu-toggle .icon {
  width: 20px;
  height: 20px;
}

.menu-toggle .icon-close,
.menu-open .menu-toggle .icon-open {
  display: none;
}

.menu-open .menu-toggle .icon-close {
  display: block;
}

/* Phone menu: a panel that drops down under the header. */
.nav {
  position: absolute;
  top: var(--header-h);
  inset-inline: 0;
  display: flex;
  flex-direction: column;
  padding: 4px var(--gutter) 20px;
  background: var(--black);
  border-bottom: 1px solid var(--line);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.nav a {
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-2);
}

.menu-open .nav {
  visibility: visible;
  opacity: 1;
  transform: none;
}

@media (min-width: 960px) {
  .brand {
    width: 104px;
    height: 40px;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    position: static;
    flex-direction: row;
    gap: 32px;
    padding: 0;
    background: none;
    border: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav a {
    position: relative;
    padding-block: 6px;
    border: 0;
    font-size: 0.95rem;
    color: var(--muted);
    transition: color 0.2s;
  }

  .nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: var(--white);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
  }

  .nav a:hover,
  .nav a.is-active {
    color: var(--white);
  }

  .nav a.is-active::after {
    transform: scaleX(1);
  }

  .lang-switch button:hover {
    color: var(--white);
  }
}

/* ------------------------------------------------------------- hero */

.hero {
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-grid {
  display: flex;
  flex-direction: column;
}

/* Phone: a short photo strip on top, fading into the headline. */
.hero-media {
  position: relative;
  overflow: hidden;
  order: -1;
  height: clamp(300px, 46vh, 400px);
  margin-inline: calc(var(--gutter) * -1);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, rgba(11, 11, 11, 0.6) 25%, rgba(11, 11, 11, 0) 60%);
}

.hero-text {
  position: relative;
  z-index: 1;
  margin-top: -36px;
  padding-bottom: var(--section-y);
}

.hero-text .lead {
  margin-top: 18px;
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-actions .btn {
  flex: 1 1 140px;
}

.stats {
  display: flex;
  gap: 28px;
  margin-top: 32px;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  padding-inline-start: 14px;
  border-inline-start: 1px solid var(--line-2);
}

.stat dd {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--track-tight);
}

.stat dt {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    min-height: min(calc(100vh - var(--header-h)), 760px);
  }

  .hero-media {
    order: 0;
    align-self: end;
    height: 100%;
    max-height: 720px;
    margin-inline: 0;
  }

  .hero-media::after {
    background:
      linear-gradient(to right, var(--bg) 0%, rgba(11, 11, 11, 0) 30%),
      linear-gradient(to top, var(--bg) 0%, rgba(11, 11, 11, 0) 25%);
  }

  [dir="rtl"] .hero-media::after {
    background:
      linear-gradient(to left, var(--bg) 0%, rgba(11, 11, 11, 0) 30%),
      linear-gradient(to top, var(--bg) 0%, rgba(11, 11, 11, 0) 25%);
  }

  .hero-text {
    align-self: center;
    margin-top: 0;
    padding-block: 64px;
  }

  .hero-text .lead {
    margin-top: 24px;
  }

  .hero-actions {
    margin-top: 32px;
  }

  .hero-actions .btn {
    flex: 0 0 auto;
  }

  .stats {
    gap: 48px;
    margin-top: 48px;
  }

  .stat dd {
    font-size: 2.5rem;
  }
}

/* --------------------------------------------------------- sections */

.section {
  padding-block: var(--section-y);
}

.section-head {
  max-width: 680px;
  margin-bottom: var(--head-gap);
}

.section-head .lead {
  margin-top: 12px;
}

.photo {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoomable {
  cursor: zoom-in;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

/* ---------------------------------------------------- why choose me */

.why-grid {
  display: grid;
  gap: 28px;
}

.why-photo {
  aspect-ratio: 16 / 11;
}

.why-photo img {
  object-position: center 6%;
}

.why-list {
  display: grid;
  margin-top: 20px;
}

.why-list li {
  display: flex;
  gap: 14px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}

.why-list .num {
  min-width: 22px;
  padding-top: 2px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.why-list strong {
  display: block;
  font-weight: 600;
  line-height: 1.4;
}

.why-list .desc {
  display: block;
  margin-top: 2px;
  font-size: 0.975rem;
  color: var(--muted);
}

.starts-now {
  margin-top: 24px;
  padding: var(--pad);
  border-radius: var(--radius);
}

.starts-now-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.starts-now-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-2);
}

.starts-now-list .icon {
  margin-top: 5px;
}

@media (min-width: 640px) {
  .why-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
}

@media (min-width: 900px) {
  .why-grid {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 64px;
    align-items: center;
  }

  .why-photo {
    aspect-ratio: 4 / 5;
  }

  .why-photo img {
    object-position: center 10%;
  }
}

/* ---------------------------------------------------------- packages */

.package-group + .package-group {
  margin-top: 40px;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.program-index {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.pill {
  padding: 4px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.card-title {
  font-size: 1.3rem;
  line-height: 1.2;
}

.tagline {
  margin-top: 6px;
  color: var(--muted);
}

.price {
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--track-tight);
}

.checks {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
  color: var(--text-2);
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checks .icon {
  margin-top: 3px;
  stroke-width: 2.5;
  color: var(--text);
}

.footnote {
  margin-top: 16px;
  font-weight: 600;
}

.card-cta {
  margin-top: auto;
  padding-top: 20px;
}

.card-cta .btn {
  min-height: 46px;
}

/* Personal training */
.feature-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.feature-photo {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.feature-photo img {
  object-position: center 28%;
}

.feature-body {
  display: flex;
  flex-direction: column;
  padding: var(--pad);
}

.feature-body .card-title {
  margin-top: 6px;
  font-size: 1.5rem;
}

@media (min-width: 760px) {
  .feature-card {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
  }

  /* The photo fills the column without stretching the card. */
  .feature-photo {
    position: relative;
    aspect-ratio: auto;
  }

  .feature-photo img {
    position: absolute;
    inset: 0;
  }

  .feature-body {
    padding: 36px;
  }

  .feature-body .card-title {
    font-size: 1.85rem;
  }

  .feature-body .card-cta {
    align-self: flex-start;
  }
}

/* Transformation programs */
.program-grid {
  display: grid;
  gap: var(--gap);
}

.program-card {
  padding: var(--pad);
}

@media (min-width: 640px) {
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .program-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .program-card {
    padding: 24px;
  }

  .program-card .card-title {
    font-size: 1.15rem;
  }

  .program-card .checks {
    font-size: 0.95rem;
  }
}

/* Competition prep */
.prep-grid {
  display: grid;
  gap: var(--gap);
}

.prep-card {
  display: grid;
  grid-template-areas:
    "head"
    "lists"
    "high"
    "cta";
  padding: var(--pad);
  border-radius: var(--radius);
}

.prep-head {
  grid-area: head;
}

.prep-head .card-title {
  font-size: 1.5rem;
}

.prep-lists {
  grid-area: lists;
}

.highlights {
  grid-area: high;
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  font-weight: 600;
  line-height: 1.45;
}

.highlights li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.highlights .icon {
  margin-top: 3px;
}

.prep-card .card-cta {
  grid-area: cta;
}

.posing-card {
  padding: var(--pad);
}

@media (min-width: 760px) {
  .prep-card {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "head lists"
      "high lists"
      "cta lists";
    column-gap: 36px;
    padding: 36px;
  }

  .prep-lists .checks:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .prep-card .card-cta {
    align-self: end;
  }
}

@media (min-width: 1100px) {
  .prep-grid {
    grid-template-columns: 1.7fr 1fr;
  }

  .prep-head .card-title {
    font-size: 1.75rem;
  }

  .prep-lists .checks {
    font-size: 0.95rem;
  }
}

/* ------------------------------------------------------------- about */

.about-grid {
  display: grid;
  gap: 28px;
}

.about-content .h2 {
  margin-bottom: 18px;
}

.prose p {
  margin-bottom: 1em;
  line-height: 1.75;
  color: var(--text-2);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.about-photos .photo {
  aspect-ratio: 4 / 5;
}

.about-photos .photo img {
  object-position: center 18%;
}

.facts {
  display: grid;
  gap: var(--gap);
  margin-top: 28px;
}

.fact {
  padding: var(--pad);
  border-radius: var(--radius);
  background: var(--card);
}

.fact h4 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.fact p {
  line-height: 1.55;
  color: var(--muted);
}

.fact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.fact-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary-text);
}

.fact-icon .icon {
  width: 18px;
  height: 18px;
}

.certs-title {
  margin-bottom: 8px;
}

.certs li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-block: 8px;
  font-weight: 500;
}

.certs li + li {
  border-top: 1px solid var(--line);
}

@media (min-width: 560px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .fact-certs {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: start;
  }

  .about-photos {
    gap: 12px;
  }

  .facts {
    margin-top: 48px;
  }
}

@media (min-width: 1000px) {
  .facts {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .fact-certs {
    grid-column: auto;
  }
}

/* --------------------------------------------------------- results */

.ba-grid {
  display: grid;
  gap: 20px;
}

.ba-head {
  margin-bottom: 0;
}

.slider-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  touch-action: pan-y;
}

.ba {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--card);
}

.ba img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s;
}

.ba img.is-loaded {
  opacity: 1;
}

.ba figcaption {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.78);
  font-size: 0.72rem;
  color: #ffffff;
}

.ba figcaption.is-after {
  background: #ffffff;
  color: #0b0b0b;
}

.ba-actions .controls {
  margin-bottom: 18px;
}

.testimonials-block {
  margin-top: 56px;
}

.track {
  display: flex;
  gap: var(--gap);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.track::-webkit-scrollbar {
  display: none;
}

.testimonial {
  flex: 0 0 88%;
  padding: var(--pad);
  scroll-snap-align: start;
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.stars .icon {
  width: 15px;
  height: 15px;
}

.testimonial blockquote {
  flex: 1;
}

.testimonial blockquote p {
  line-height: 1.7;
  color: var(--text-2);
}

.testimonial figcaption {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.925rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary-text);
  font-weight: 700;
}

.testimonial figcaption strong {
  display: block;
  font-size: 1rem;
}

.testimonial .meta {
  display: block;
  color: var(--muted);
}

.testimonial .program {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  color: var(--text-2);
}

.track-controls {
  margin-top: 18px;
}

@media (min-width: 600px) {
  .slider-stage {
    gap: 12px;
  }

  .ba {
    border-radius: var(--radius);
  }

  .ba figcaption {
    top: 14px;
    inset-inline-start: 14px;
    padding: 5px 12px;
  }

  .testimonial {
    flex-basis: 360px;
  }
}

@media (min-width: 900px) {
  .ba-grid {
    grid-template-columns: 0.8fr 1.2fr;
    grid-template-areas:
      "head stage"
      "actions stage";
    column-gap: 56px;
    row-gap: 0;
    align-items: center;
  }

  .ba-head {
    grid-area: head;
    align-self: end;
  }

  .ba-stage {
    grid-area: stage;
  }

  .ba-actions {
    grid-area: actions;
    align-self: start;
    padding-top: 28px;
  }

  .ba-actions .controls {
    justify-content: flex-start;
    margin-bottom: 24px;
  }

  .ba-actions .btn {
    width: auto;
  }

  .ba {
    aspect-ratio: 4 / 5;
  }

  .testimonials-block {
    margin-top: 88px;
  }

  .track-controls {
    justify-content: flex-start;
    margin-top: 24px;
  }
}

/* ----------------------------------------------------------- contact */

.contact-top {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}

.contact-top .section-head {
  margin-bottom: 0;
}

.info-title {
  margin-bottom: 2px;
}

.info-list li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.info-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--card);
}

.info-icon .icon {
  width: 18px;
  height: 18px;
}

.info-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.info-list a,
.info-list .info-value {
  font-weight: 600;
  word-break: break-word;
}

.contact-grid {
  display: grid;
  gap: var(--gap);
}

.contact-side {
  display: grid;
  gap: var(--gap);
  align-content: start;
}

.panel {
  padding: var(--pad);
  border-radius: var(--radius);
  background: var(--card);
}

.panel.invert {
  background: var(--bg);
}

.panel > .h3 {
  margin-top: 6px;
  margin-bottom: 12px;
}

.panel-plain > .h3 {
  margin-top: 0;
}

.panel > p {
  margin-bottom: 12px;
  color: var(--text-2);
}

.panel > p strong {
  font-weight: 600;
  color: var(--text);
}

.panel .btn {
  margin-top: 6px;
}

.panel .note {
  margin: 12px 0 0;
  font-size: 0.925rem;
  text-align: center;
  color: var(--muted);
}

.downloads {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.downloads .btn {
  font-size: 0.95rem;
}

.payment {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.payment h4 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.payment p {
  color: var(--text-2);
}

.payment .payment-methods {
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
}

@media (min-width: 600px) {
  .downloads {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (min-width: 900px) {
  .contact-top {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 40px;
  }

  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .panel {
    padding: 36px;
  }

  .info-list a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

/* ------------------------------------------------------------ footer */

.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}

.footer-brand {
  grid-column: 1 / -1;
  color: var(--muted);
}

.footer-logo {
  width: 116px;
  height: 46px;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 26rem;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text);
  transition: background-color 0.2s, color 0.2s;
}

.socials a:hover {
  background: var(--text);
  color: var(--bg);
}

.footer-title {
  margin-bottom: 12px;
  font-family: var(--font);
  color: var(--text);
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 22px;
}

@media (min-width: 900px) {
  .site-footer {
    padding-top: 72px;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
  }

  .footer-brand {
    grid-column: auto;
  }


  .footer-bottom {
    margin-top: 52px;
  }
}

/* --------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 68px 16px 24px;
  background: rgba(0, 0, 0, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox .round-btn {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* --------------------------------------------------------- 404 page */

.not-found {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.not-found .code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 22vw, 10rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--track-tight);
}

.not-found p {
  margin: 14px 0 30px;
  font-size: 1.15rem;
  color: var(--muted);
}

/* ------------------------------------------- smooth scroll (Lenis) */

html.lenis,
html.lenis body {
  height: auto;
}

/* Lenis animates the scroll itself, so native smooth scrolling must be off. */
html.lenis {
  scroll-behavior: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Hero starts hidden until js/animations.js plays its entrance. */
.js-anim .hero-text h1 span,
.js-anim .hero-text .lead,
.js-anim .hero-actions,
.js-anim .stats,
.js-anim .hero-media img {
  opacity: 0;
}

/* --------------------------------------------------------- motion */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
