/* Montserrat (2026-11-23, owner): the Latin face for the whole site, one
   variable file for every weight. Arabic stays IBM Plex Sans Arabic, since
   Montserrat has no Arabic letters. */
@font-face {
  font-family: "Montserrat";
  src: url("https://cdn.51talkjr.com/apollo/public/woff2/Montserrat-latin-subset.311d352d93.woff2") format("woff2"), url("https://cdn.51talkjr.com/apollo/public/ttf/Montserrat-latin-subset.74c1f06c23.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("https://cdn.51talkjr.com/apollo/public/woff2/IBMPlexSansArabic-Regular-subset.618e42ff47.woff2") format("woff2"), url("https://cdn.51talkjr.com/apollo/public/ttf/IBMPlexSansArabic-Regular-subset.b1dcf5999b.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("https://cdn.51talkjr.com/apollo/public/woff2/IBMPlexSansArabic-Medium-subset.0f85641615.woff2") format("woff2"), url("https://cdn.51talkjr.com/apollo/public/ttf/IBMPlexSansArabic-Medium-subset.d7dab3e72a.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("https://cdn.51talkjr.com/apollo/public/woff2/IBMPlexSansArabic-SemiBold-subset.33e27939b2.woff2") format("woff2"), url("https://cdn.51talkjr.com/apollo/public/ttf/IBMPlexSansArabic-SemiBold-subset.1b05685942.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("https://cdn.51talkjr.com/apollo/public/woff2/IBMPlexSansArabic-Bold-subset.5d93bca188.woff2") format("woff2"), url("https://cdn.51talkjr.com/apollo/public/ttf/IBMPlexSansArabic-Bold-subset.19d5c61472.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #003cc9;
  --blue-dark: #001744;
  --blue-light: #26b7ff;
  --yellow: #ffed6e;
  --white: #fff;
  --ink: #071b43;
  --muted: #5f6d8b;
  --line: #dce4f4;
  --soft: #f4f7fc;
  --soft-blue: #eaf1ff;
  --success: #30bb7a;
  --shadow: 0 1px 2px rgba(7, 27, 67, 0.04), 0 12px 36px rgba(7, 27, 67, 0.08);
  --shadow-small: 0 1px 2px rgba(7, 27, 67, 0.04), 0 6px 20px rgba(7, 27, 67, 0.06);
  --radius-sm: 16px;
  --radius-md: 26px;
  --radius-lg: 44px;
  --radius-pill: 999px;
  --shell: min(1240px, calc(100% - 48px));
  --header-height: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

[hidden] {
  display: none !important;
}

html.visual-test .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

html.visual-test .skip-link:not(:focus) {
  transform: translateY(-140%) !important;
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  max-width: 100%;
  overflow-x: clip;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: "IBM Plex Sans Arabic", "Montserrat", Arial, sans-serif;
}

/* Scroll lock lives on the root: overflow hidden on <body> would stop the
   sticky header from sticking while the menu is open. */
html.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  letter-spacing: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.announcement {
  position: relative;
  z-index: 80;
  background: var(--yellow);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
}

.announcement a {
  width: var(--shell);
  min-height: 38px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.announcement__link {
  margin-inline-start: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 70;
  top: 0;
  border-bottom: 1px solid rgba(220, 228, 244, 0.8);
}

/* Frosted background lives on a pseudo-element: backdrop-filter on the header
   itself would make it the containing block for the fixed mobile menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-shell {
  width: var(--shell);
  height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 32px;
}

.header-shell > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  width: 168px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 36px);
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  padding-block: 10px;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 3px;
  height: 2px;
  transform: scaleX(0);
  background: var(--blue);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.desktop-nav a[aria-current="page"] {
  color: var(--blue);
}

.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.language-switch,
.menu-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.language-switch {
  min-width: 62px;
  padding: 9px 8px;
  border-radius: var(--radius-pill);
  color: var(--blue-dark);
  font-weight: 700;
}

.language-switch__other {
  opacity: 0.48;
}

.button {
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s ease;
}

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

.button--small {
  min-height: 42px;
  padding-inline: 18px;
}

.button--dark {
  background: var(--blue-dark);
  color: var(--white);
}

.button--yellow {
  position: relative;
  overflow: hidden;
  background: var(--yellow);
  color: var(--blue-dark);
  box-shadow: 0 8px 22px rgba(0, 23, 68, 0.18);
}

.button--yellow:hover {
  box-shadow: 0 12px 30px rgba(0, 23, 68, 0.24);
}

/* A slow light sweep keeps the primary action visibly alive — one quiet pass,
   then a long rest. Killed globally under prefers-reduced-motion. */
.button--yellow::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -60%;
  width: 45%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  animation: ctaSheen 4.2s ease-in-out infinite;
}

html[dir="rtl"] .button--yellow::after {
  transform: skewX(18deg);
}

@keyframes ctaSheen {
  0% {
    inset-inline-start: -60%;
  }

  32%,
  100% {
    inset-inline-start: 130%;
  }
}

.button--white {
  background: var(--white);
  color: var(--blue);
}

/* Secondary action on a blue ground: an outlined pill, so it reads as a second
   button beside the yellow one rather than as a line under some text. */
.button--ghost {
  /* The outline is an inset shadow, not a border, so the ghost button keeps
     exactly the yellow button's height when both are padding-driven on phones. */
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  box-shadow: inset 0 0 0 1.5px var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  padding: 12px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  background: var(--blue-dark);
  transition: transform 0.25s var(--ease);
}

.menu-toggle span + span {
  margin-top: 5px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  z-index: 60;
  inset: var(--header-height) 0 0;
  padding: 42px 24px;
  background: var(--white);
  flex-direction: column;
  gap: 0;
  font-size: clamp(26px, 6vw, 42px);
  font-weight: 700;
  overflow-y: auto;
}

.mobile-nav:not([hidden]) {
  display: flex;
}

.mobile-nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a[aria-current="page"] {
  color: var(--blue);
  font-weight: 700;
}

.section {
  position: relative;
  padding: clamp(86px, 10vw, 150px) 0;
}

/* Color bands read as intentional rounded panels, not full-bleed stripes —
   the white↔blue junctions become shaped edges instead of hard cuts. */
.hero {
  border-end-start-radius: clamp(24px, 4vw, 44px);
  border-end-end-radius: clamp(24px, 4vw, 44px);
}

.section--blue,
.section--dark {
  width: calc(100% - clamp(20px, 4vw, 48px));
  margin-inline: auto;
  border-radius: clamp(24px, 4vw, 44px);
  overflow: hidden;
}

.site-footer {
  border-start-start-radius: clamp(24px, 4vw, 44px);
  border-start-end-radius: clamp(24px, 4vw, 44px);
}

.section--soft {
  background: var(--soft);
}

.section--joined {
  padding-top: clamp(34px, 4vw, 60px);
}

.section--joined .section-intro {
  margin-bottom: clamp(30px, 4vw, 52px);
}

.section--joined .section-intro h2 {
  font-size: clamp(28px, 3.6vw, 48px);
}

.section--joined .section-intro .eyebrow {
  display: none;
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.section-intro {
  max-width: 770px;
  margin-bottom: clamp(42px, 6vw, 76px);
}

.section-intro--row {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: end;
  gap: 64px;
}

.section-intro h2 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(38px, 5.3vw, 76px);
}

.section-intro > p,
.section-intro--row > p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

.eyebrow--light {
  color: var(--yellow);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height) - 38px);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 4%, rgba(38, 183, 255, 0.38), transparent 24%),
    var(--blue);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 46vw;
  height: 46vw;
  min-width: 560px;
  min-height: 560px;
  inset-inline-end: -6vw;
  inset-block-start: 8%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 250px;
  height: 500px;
  inset-inline-start: -125px;
  inset-block-end: -120px;
  border-radius: 0 250px 250px 0;
  background: rgba(38, 183, 255, 0.16);
}

html[dir="rtl"] .hero::after {
  border-radius: 250px 0 0 250px;
}

/* The package page carries the same hero content — the lesson preview, the trust
   figures, the plan summary — without the colour band. Everything inside it was
   tuned for white-on-blue, so the whole set has to be flipped, not just the
   background, or half of it renders invisible. */
.hero--light {
  min-height: 0;
  color: var(--ink);
  background: var(--white);
}

.hero--light .hero-shell {
  min-height: 0;
  padding-block: clamp(28px, 3.5vw, 52px) clamp(32px, 4vw, 60px);
}

.hero--light::before,
.hero--light::after,
.hero--light .hero__light {
  display: none;
}

.hero--light .eyebrow--light,
.hero--light .text-link--light {
  color: var(--blue);
}

.hero--light .hero-copy__lead {
  color: var(--muted);
}

/* Sized to match the other lean page heads. At the full hero scale the headline
   ran four lines and pushed the prices and the booking CTA off the first screen,
   which is the opposite of what this page is for. */
.hero--light .hero-copy h1 {
  max-width: 620px;
  font-size: clamp(36px, 4.4vw, 56px);
}

.hero--light .hero-trust li {
  border-color: var(--line);
  background: var(--soft);
  box-shadow: none;
}

.hero--light .hero-trust strong {
  color: var(--blue);
}

.hero--light .hero-trust li > span,
.hero--light .hero-price__meta {
  color: var(--muted);
}

.hero--light .hero-price {
  border-color: var(--line);
  background: var(--soft);
  backdrop-filter: none;
}

.hero--light .hero-price__plan {
  border-bottom-color: var(--line);
}

.hero--light .hero-price__plan strong {
  color: var(--blue);
}

.hero--light .hero-price__plan em {
  color: var(--muted);
}

/* The plan name is set white-on-blue by .hero-price > div > span, which is
   invisible once the hero goes light. */
.hero--light .hero-price > div > span {
  color: var(--blue);
}

.hero--light .price-flag {
  border-color: rgba(0, 60, 201, 0.2);
  background: var(--soft-blue);
  color: var(--blue-dark);
}

.hero--light .hero-answer {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.hero__light {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero__light--one {
  width: 26vw;
  height: 26vw;
  inset-inline-end: 6vw;
  inset-block-start: -16vw;
  background: rgba(38, 183, 255, 0.28);
}

.hero__light--two {
  width: 140px;
  height: 140px;
  inset-inline-end: 42%;
  inset-block-end: 5%;
  background: rgba(255, 237, 110, 0.08);
}

.hero-shell {
  width: var(--shell);
  min-height: calc(100svh - var(--header-height) - 38px);
  margin: 0 auto;
  padding: clamp(42px, 5vw, 68px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  gap: 5vw;
}

.hero-shell > * {
  min-width: 0;
}

.hero-copy {
  width: 100%;
  min-width: 0;
  max-width: 720px;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(48px, 5.3vw, 78px);
  font-weight: 700;
}

.hero-copy__lead {
  max-width: 610px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 1.6vw, 21px);
}

.hero-trust {
  max-width: 650px;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.hero-trust li {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(0, 23, 68, 0.2);
  box-shadow: 0 10px 34px rgba(0, 23, 68, 0.12);
  backdrop-filter: blur(12px);
}

.hero-trust strong {
  display: block;
  color: var(--yellow);
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.hero-trust li > span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-answer {
  max-width: 640px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.7;
}

.hero-fact-answer {
  max-width: 680px;
  margin-top: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

/* Stacks: with two plans the rows must read as a list, not sit side by side
   competing for the same horizontal space. */
.hero-price {
  width: fit-content;
  margin-top: 24px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  background: rgba(0, 23, 68, 0.24);
  backdrop-filter: blur(12px);
}

.hero-price > div {
  display: flex;
  flex-direction: column;
}

.hero-price__original {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  direction: ltr;
  unicode-bidi: isolate;
}

.hero-price > div > span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[dir="rtl"] .hero-price > div > span {
  letter-spacing: 0;
}

.hero-price strong {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--white);
  font-size: 18px;
}

.hero-price small {
  margin-inline-start: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.hero-price__save {
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
}

.hero-price__tabby {
  width: 100%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 600;
}

.hero-price__meta {
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 600;
}

.hero-proof {
  max-width: 620px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background: rgba(0, 23, 68, 0.26);
  box-shadow: 0 12px 36px rgba(0, 23, 68, 0.16);
  backdrop-filter: blur(14px);
}

.hero-proof img {
  width: 100%;
  height: 98px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 34%;
  background: var(--white);
}

.hero-proof span {
  display: block;
  margin-bottom: 5px;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[dir="rtl"] .hero-proof span {
  letter-spacing: 0;
}

.hero-proof strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 15px;
  line-height: 1.22;
}

.hero-proof p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

/* Redirect links draw their own underline in a slow loop — alive without arrows */
.text-link span {
  padding-bottom: 4px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left 100%;
  background-size: 0% 2px;
  animation: linkDraw 4.2s var(--ease) infinite;
}

html[dir="rtl"] .text-link span {
  background-position: right 100%;
}

.text-link:hover span {
  animation: none;
  background-size: 100% 2px;
}

@keyframes linkDraw {
  0%,
  12% {
    background-size: 0% 2px;
  }

  38%,
  72% {
    background-size: 100% 2px;
  }

  95%,
  100% {
    background-size: 0% 2px;
  }
}

.text-link--light {
  color: var(--white);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  animation: hero-visual-in 1.1s 0.12s var(--ease) both;
}

.hero-class-preview,
.hero-visual .confidence-orbit {
  grid-area: 1 / 1;
}

.hero-class-preview {
  position: relative;
  width: min(38vw, 520px);
  overflow: visible;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(0, 23, 68, 0.26)),
    rgba(0, 35, 98, 0.34);
  box-shadow:
    0 20px 60px rgba(0, 23, 68, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.lesson-call {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 236, 96, 0.24), transparent 28%),
    linear-gradient(145deg, #f8fbff 0%, #e9f2ff 100%);
  box-shadow: 0 14px 40px rgba(0, 23, 68, 0.2);
}

.lesson-call__bar {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lesson-call__badges {
  display: grid;
}

.lesson-call__badges strong {
  grid-area: 1 / 1;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}

.lesson-call__badges strong.is-active {
  opacity: 1;
}

.lesson-call__badges strong.lesson-call__badge--advanced {
  background: var(--ink);
  color: var(--yellow);
}

.lesson-call__live {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.lesson-call__live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(48, 187, 122, 0.14);
}

.lesson-call__live em {
  font-style: normal;
  font-weight: 700;
  color: var(--muted);
}

.lesson-call__live em::before {
  content: "·";
  margin-inline-end: 7px;
}

.lesson-call__board {
  min-height: 304px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(0, 85, 210, 0.12);
  border-radius: 20px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  background:
    linear-gradient(rgba(0, 85, 210, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 85, 210, 0.055) 1px, transparent 1px),
    var(--white);
  background-size: 26px 26px;
  color: var(--ink);
}

.lesson-call__slide {
  align-self: center;
  padding: 18px;
  border: 1px solid rgba(0, 85, 210, 0.14);
  border-radius: 18px;
  display: grid;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 26px rgba(0, 45, 110, 0.08);
}

.lesson-scene {
  grid-area: 1 / 1;
  display: grid;
  gap: 14px;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

html[dir="rtl"] .lesson-scene {
  transform: translateX(-24px);
}

.lesson-scene.is-active,
html[dir="rtl"] .lesson-scene.is-active {
  opacity: 1;
  transform: translateX(0);
}

.lesson-call__slide p {
  margin: 0;
  display: grid;
  gap: 4px;
}

.lesson-call__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.lesson-call__full .lesson-call__label {
  color: var(--blue);
}

.lesson-call__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-align: start;
}

.lesson-call__full .lesson-call__text {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.lesson-call__text mark {
  padding: 2px 8px;
  border-radius: 9px;
  background: var(--yellow);
  color: var(--ink);
  box-decoration-break: clone;
}

.lesson-call__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.call-tile {
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 85, 210, 0.14);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(160deg, #eef4ff, #dfeaff);
}

.call-tile--learner {
  border-color: rgba(255, 205, 0, 0.5);
  background: linear-gradient(160deg, #fffdf1, #fff3c4);
}

.call-tile__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
}

.call-tile--learner .call-tile__avatar {
  background: var(--yellow);
  color: var(--ink);
}

.call-tile__name {
  font-size: 13px;
  font-weight: 800;
}

.call-tile__wave {
  margin-inline-start: auto;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.call-tile__wave span {
  width: 5px;
  height: 12px;
  border-radius: 999px;
  background: var(--blue);
  animation: lessonWave 1.1s ease-in-out infinite;
}

.call-tile__wave span:nth-child(2) {
  animation-delay: 0.12s;
}

.call-tile__wave span:nth-child(3) {
  animation-delay: 0.24s;
}

.call-tile__wave span:nth-child(4) {
  animation-delay: 0.36s;
}

.call-tile__wave span:nth-child(5) {
  animation-delay: 0.48s;
}

@keyframes lessonWave {
  0%,
  100% {
    transform: scaleY(0.55);
  }

  50% {
    transform: scaleY(1.7);
  }
}

.lesson-call__stepsets {
  display: grid;
}

.lesson-call__stepsets .lesson-call__steps {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}

.lesson-call__stepsets .lesson-call__steps.is-active {
  opacity: 1;
}

.lesson-call__steps {
  margin: 12px 2px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  counter-reset: callstep;
}

.lesson-call__steps li {
  counter-increment: callstep;
  padding: 6px 10px;
  border: 1px solid rgba(0, 85, 210, 0.16);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.lesson-call__steps li::before {
  content: counter(callstep);
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 85, 210, 0.1);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.lesson-call__steps li.is-now {
  border-color: var(--yellow);
  background: var(--yellow);
}

.lesson-call__steps li.is-now::before {
  background: var(--ink);
  color: var(--yellow);
}

/* Scene hero (2026-10-05, Moustafa's pick): the learner-and-teacher scene sits
   straight on the hero blue; its four edges feather into the background so it
   reads as part of the hero rather than a picture in a frame. */
.hero-scene {
  position: relative;
  width: min(44vw, 600px);
  margin: 0;
}

.hero-scene__img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 14%, #000 86%, transparent),
    linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 14%, #000 86%, transparent),
    linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent);
  mask-composite: intersect;
}


.confidence-orbit {
  position: relative;
  width: min(40vw, 560px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero-visual .confidence-orbit {
  width: min(16vw, 190px);
  justify-self: end;
  align-self: center;
  transform: translate(12%, 22%);
}

.hero-visual .orbit-chip {
  display: none;
}

.hero-visual .confidence-center strong {
  font-size: clamp(26px, 3vw, 42px);
}

.hero-visual .confidence-center__old {
  font-size: clamp(13px, 1.4vw, 18px);
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.orbit--one {
  inset: 3%;
  animation: orbit 24s linear infinite;
}

.orbit--two {
  inset: 15%;
  border-style: dashed;
  animation: orbit 18s linear infinite reverse;
}

.orbit::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  inset-block-start: 10%;
  inset-inline-start: 18%;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 24px rgba(255, 237, 110, 0.6);
}

.confidence-center {
  position: relative;
  z-index: 2;
  width: 56%;
  aspect-ratio: 1;
  padding: 17%;
  border-radius: 50% 50% 12% 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blue-dark);
  background: var(--yellow);
  box-shadow: 0 18px 50px rgba(0, 23, 68, 0.24);
  transform: rotate(-6deg);
}

html[dir="rtl"] .confidence-center {
  transform: rotate(6deg);
}

.confidence-center > * {
  transform: rotate(6deg);
}

html[dir="rtl"] .confidence-center > * {
  transform: rotate(-6deg);
}

.confidence-center__micro {
  font-size: clamp(10px, 1.1vw, 14px);
  font-weight: 700;
  opacity: 0.66;
}

.confidence-center__old {
  margin-top: 2px;
  font-size: clamp(16px, 2vw, 26px);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.66;
}

.confidence-center__line {
  width: 34px;
  height: 2px;
  margin: 9px 0;
  background: var(--blue-dark);
}

.confidence-center strong {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

html[dir="rtl"] .confidence-center strong {
  letter-spacing: 0;
}

.orbit-chip {
  position: absolute;
  z-index: 3;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius-pill);
  background: rgba(0, 23, 68, 0.48);
  box-shadow: 0 8px 26px rgba(0, 23, 68, 0.16);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
}

.orbit-chip--one {
  inset-block-start: 13%;
  inset-inline-end: 4%;
}

.orbit-chip--two {
  inset-block-end: 14%;
  inset-inline-start: 0;
}

.orbit-chip--three {
  inset-block-end: 6%;
  inset-inline-end: 9%;
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-visual-in {
  from {
    opacity: 0;
    transform: scale(0.92) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

.package-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  align-items: start;
  gap: clamp(50px, 8vw, 120px);
}

.package-shell .section-intro {
  position: sticky;
  top: 130px;
  margin-bottom: 0;
}

.package-shell .section-intro h2 {
  margin-bottom: 24px;
  font-size: clamp(38px, 5vw, 68px);
}

.price-stage {
  border-top: 1px solid var(--line);
}

.price-primary {
  padding: 32px 0 42px;
  border-bottom: 1px solid var(--line);
}

.price-display {
  margin: 12px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.price-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  direction: ltr;
  unicode-bidi: isolate;
}

.price-display__currency {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
}

.price-display strong {
  color: var(--blue);
  font-size: clamp(70px, 10vw, 132px);
  line-height: 0.84;
  letter-spacing: -0.075em;
}

html[dir="rtl"] .price-display strong {
  letter-spacing: 0;
}

.price-display > span:last-child {
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 600;
}

.price-note {
  color: var(--muted);
  font-size: 13px;
}

.price-compare {
  margin-top: 28px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}

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

.price-compare strong {
  color: var(--success);
}

.price-tabby {
  margin-top: 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.price-trial {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.review-stars {
  color: var(--yellow);
  letter-spacing: 3px;
  font-size: 15px;
  line-height: 1;
}

html[dir="rtl"] .review-stars {
  letter-spacing: 0;
}

/* The hero review card: a labelled frame around one rotating quote. The head
   says whose words these are and offers the full list; the foot shows one dot
   per review, the active one filling up over the rotation interval so the
   change is announced before it happens; the hint spells it out. */
.hero-reviews {
  max-width: 560px;
  margin-top: 26px;
  padding: 14px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(0, 23, 68, 0.25);
}

.hero-reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-reviews__label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.hero-reviews__label strong {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-reviews__toggle {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

.hero-reviews__toggle:hover,
.hero-reviews__toggle:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.hero-reviews__toggle[aria-expanded="true"] {
  background: var(--white);
  color: var(--blue-dark);
}

.hero-reviews__track {
  display: grid;
  margin-top: 12px;
}

.hero-reviews__item {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease);
}

.hero-reviews__item.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-reviews__item p {
  font-size: 14.5px;
  line-height: 1.7;
}

.hero-reviews__item cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.75;
}

.hero-reviews__foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-reviews__dots {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* The dot row must never set the card's minimum width: on narrow phones the
   thirteen dots wrap instead of pushing the hero column past the screen. */
.hero-reviews,
.hero-reviews__foot {
  min-width: 0;
}

.hero-reviews__dot {
  position: relative;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

/* The visible dot is smaller than the 18px tap target around it. */
.hero-reviews__dot::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  /* 0.55 keeps the dot above 3:1 against the card ground (WCAG 1.4.11). */
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.25s ease, inset 0.25s var(--ease);
}

.hero-reviews__dot:hover::before,
.hero-reviews__dot:focus-visible::before {
  background: rgba(255, 255, 255, 0.85);
}

.hero-reviews__dot.is-active {
  width: 34px;
}

.hero-reviews__dot.is-active::before {
  inset: 6px 0;
  background: rgba(255, 255, 255, 0.5);
}

/* The active dot fills with yellow across the 5.2s interval set in app.js, so
   the card visibly counts down to the next review. */
.hero-reviews__dot.is-active::after {
  content: "";
  position: absolute;
  inset: 6px 0;
  border-radius: 999px;
  background: var(--yellow);
  transform-origin: left center;
  animation: heroReviewFill 5.2s linear forwards;
}

html[dir="rtl"] .hero-reviews__dot.is-active::after {
  transform-origin: right center;
}

.hero-reviews.is-paused .hero-reviews__dot.is-active::after {
  animation-play-state: paused;
}

@keyframes heroReviewFill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.hero-reviews__hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.45;
}

/* Expanded: every quote in a column, nothing rotating, nothing to count down. */
.hero-reviews.is-expanded .hero-reviews__track {
  gap: 14px;
}

.hero-reviews.is-expanded .hero-reviews__item {
  grid-area: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 1;
  visibility: visible;
}

.hero-reviews.is-expanded .hero-reviews__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.hero-reviews.is-expanded .hero-reviews__foot {
  display: none;
}

/* The link to the full section appears only once the card is laid out. */
.hero-reviews__all {
  display: none;
  margin-top: 14px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
}

.hero-reviews.is-expanded .hero-reviews__all {
  display: inline-block;
}

/* Reduced motion: nothing rotates (app.js), so the active dot is a solid
   yellow pill instead of a countdown, and the hint is swapped for a static one. */
@media (prefers-reduced-motion: reduce) {
  .hero-reviews__dot.is-active::after {
    animation: none;
    transform: scaleX(1);
  }
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

/* Six cards show until the button below the grid opens the rest. Without
   JavaScript every card shows. */
.review-grid.is-collapsed > .review-card:nth-child(n + 7) {
  display: none;
}

.reviews__more {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.review-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 22px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
}

.review-card h3 {
  font-size: 17px;
}

.review-card blockquote {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.review-card footer {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.review-source {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.price-flag {
  padding: 5px 11px;
  border: 1px solid rgba(255, 205, 0, 0.55);
  border-radius: 999px;
  display: inline-block;
  width: fit-content;
  background: rgba(255, 236, 96, 0.16);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* The Premium price is a renewal/upgrade package, not a new-student offer
   (Emma, 9 Sep 2026). The rule rides inside the card, the hero row and the
   plan table, so the SAR 3,816 figure never appears without it. A card that
   carries the notice is framed in the same amber. */
.price-card:has(> .price-card__restriction) {
  border: 2px solid #f2a64b;
}

.price-card__restriction {
  margin: 0 0 20px;
  padding: 13px 16px;
  border: 2px solid #e59b3f;
  border-radius: 12px;
  background: #fff3d8;
  color: var(--blue-dark, #001744);
  text-align: center;
}

.price-card__restriction strong,
.price-card__restriction span {
  display: block;
}

.price-card__restriction strong {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.price-card__restriction span {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

html[dir="rtl"] .price-card__restriction strong {
  letter-spacing: 0;
}

.price-flag--renewal,
.plan-table__restriction {
  background: #fff3d8;
  color: var(--blue-dark, #001744);
  border: 1px solid #e59b3f;
}

.plan-table__restriction {
  display: block;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: var(--radius-pill, 999px);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

/* New students were reading the price block as an offer for them. The box now
   makes the lead path primary, while Premium keeps its rule inside its card
   (live since v2.7, 4 Oct 2026; restored to source 3 Nov 2026). */
.newcomer-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: 820px;
  margin: 18px auto 28px;
  padding: 16px 20px;
  border: 2px solid #f2a64b;
  border-radius: 14px;
  background: #fff7e6;
  color: var(--blue-dark, #001744);
}

.newcomer-note__body {
  flex: 1 1 380px;
}

.newcomer-note .eyebrow {
  margin: 0 0 4px;
}

.newcomer-note__title {
  margin: 0;
  font-weight: 700;
}

.newcomer-note__body p:last-child {
  margin: 6px 0 0;
}

.newcomer-note--lead {
  border-color: rgba(0, 60, 201, 0.22);
  background: #f7faff;
}

.price-card[data-plan-card="progress"] {
  border: 2px solid rgba(0, 60, 201, 0.55);
  box-shadow: 0 18px 44px rgba(0, 60, 201, 0.08);
}

.price-card[data-plan-card="premium"]:has(> .price-card__restriction) {
  border-width: 1px;
  box-shadow: none;
}

.price-more {
  margin-top: 10px;
  font-size: 13px;
}

.price-more a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.price-actions {
  margin-top: 28px;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.package-facts article {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: start;
}

.fact-number {
  color: var(--blue);
  font-size: 26px;
  font-weight: 700;
}

.package-facts strong {
  display: block;
  margin-bottom: 3px;
  font-size: 18px;
}

.package-facts p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.expand-panel {
  grid-column: 2;
  padding: 30px;
  border-radius: var(--radius-md);
  background: var(--soft-blue);
}

.expand-panel[hidden] {
  display: none;
}

.math-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.math-flow > div {
  display: flex;
  flex-direction: column;
}

.math-flow span,
.math-flow em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.math-flow strong {
  margin: 3px 0;
  font-size: clamp(18px, 2vw, 27px);
}

.math-flow bdi,
.level-summary__index,
.cefr-badge,
.unit-detail__number,
[data-unit-chunk],
[data-class-sentence] {
  unicode-bidi: isolate;
}

[data-unit-chunk],
[data-class-sentence] {
  direction: ltr;
  text-align: left;
}

[data-price-view],
[data-drawer-toggle],
[data-step],
[data-track],
[data-level],
[data-unit],
[data-style],
[data-class-step],
[data-month],
[data-scenario],
.faq-item button,
.booking-form label,
[data-form-next] {
  scroll-margin-block-start: calc(44px + var(--header-height) + 24px);
}

.math-flow__today strong {
  color: var(--blue);
}

.fine-print {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* The plans as a table, above the math flow: the same figures the cards carry,
   in a shape a crawler reads as a table. */
.plan-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 8px;
  font-size: 15px;
}

.plan-table caption {
  caption-side: top;
  text-align: start;
  padding: 0 0 10px;
  font-weight: 600;
}

.plan-table th,
.plan-table td {
  padding: 10px 12px;
  text-align: start;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  vertical-align: top;
}

.plan-table thead th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.plan-table tbody th {
  font-weight: 600;
}

/* "Levels 10–12" reads as one figure; never break it across lines. */
.cefr-table td:nth-child(2) {
  white-space: nowrap;
}

/* The "prices checked on" line belongs to the table above it, not to the plan
   heading below, so it takes the gap the math flow needs. */
.plan-table + .fine-print {
  margin: 8px 0 32px;
}

@media (max-width: 640px) {
  .plan-table {
    display: block;
    overflow-x: auto;
    font-size: 14px;
  }
}

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

.included-grid[hidden] {
  display: none;
}

.included-grid button {
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: start;
}

.included-grid button:hover,
.included-grid button.is-active {
  border-color: var(--blue);
}

.included-grid button span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.included-detail {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.steps {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.step {
  position: relative;
  min-height: 132px;
  padding: 24px 20px 28px;
  border: 0;
  border-inline-end: 1px solid var(--line);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  cursor: pointer;
  text-align: start;
}

.step:last-child {
  border-inline-end: 0;
}

.step::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: -2px;
  height: 3px;
  transform: scaleX(0);
  background: var(--blue);
  transform-origin: inline-start;
  transition: transform 0.35s var(--ease);
}

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

.step span {
  color: var(--muted);
  font-size: 12px;
}

.step strong {
  max-width: 190px;
  font-size: clamp(16px, 1.6vw, 21px);
}

.step.is-active strong {
  color: var(--blue);
}

.step-detail {
  min-height: 220px;
  padding: clamp(34px, 5vw, 64px);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  color: var(--white);
  background: var(--blue);
  box-shadow: var(--shadow);
}

.step-detail__number {
  color: var(--yellow);
  font-size: clamp(50px, 7vw, 94px);
  font-weight: 700;
  line-height: 1;
}

.step-detail h3 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 42px);
}

.step-detail p {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.circle-link {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition:
    background 0.25s ease,
    transform 0.25s var(--ease);
}

/* Direction-aware chevron drawn in CSS — no glyphs */
.circle-link::before {
  content: "";
  width: 9px;
  height: 9px;
  border-inline-end: 2px solid currentColor;
  border-block-start: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
}

html[dir="rtl"] .circle-link::before {
  transform: rotate(-45deg) translate(1px, 1px);
}

.circle-link:hover {
  background: var(--yellow);
  color: var(--blue-dark);
  transform: rotate(45deg);
}

.curriculum {
  overflow: hidden;
}

.curriculum-toolbar {
  margin-bottom: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.track-toggle {
  display: flex;
  gap: 8px;
}

.track-toggle button {
  min-width: 210px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.track-toggle button span {
  font-weight: 700;
}

.track-toggle button small {
  color: var(--muted);
}

.track-toggle button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.track-toggle button.is-active small {
  color: rgba(255, 255, 255, 0.68);
}

.compare-button {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  display: flex;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
}

.level-explorer {
  border-top: 1px solid var(--line);
}

.level-rail-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.level-rail {
  min-width: 0;
  max-width: 100%;
  padding: 26px 2px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.level-rail::-webkit-scrollbar {
  display: none;
}

.level-rail button {
  min-width: 58px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  scroll-snap-align: center;
}

.level-rail button.is-active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--blue-dark);
}

.rail-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.level-stage {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(290px, 0.8fr) minmax(0, 1.2fr);
  background: var(--blue-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.level-summary {
  position: relative;
  padding: clamp(34px, 5vw, 70px);
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 90%, rgba(38, 183, 255, 0.24), transparent 35%),
    var(--blue);
}

.level-summary::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 130px;
  inset-inline-end: -110px;
  inset-block-end: -30px;
  border-radius: 130px 130px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.level-summary__index {
  display: block;
  margin-bottom: 14px;
  color: var(--yellow);
  font-size: clamp(58px, 7vw, 100px);
  font-weight: 700;
  line-height: 0.9;
}

.cefr-badge {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  display: inline-block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 700;
}

.level-summary h3 {
  max-width: 480px;
  margin: clamp(28px, 5vw, 58px) 0 18px;
  font-size: clamp(30px, 3.4vw, 50px);
}

.level-summary > p {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.7);
}

.level-sample {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.level-sample span {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[dir="rtl"] .level-sample span {
  letter-spacing: 0;
}

.level-sample strong {
  max-width: 430px;
  font-size: 14px;
}

.units-panel {
  padding: clamp(32px, 4vw, 58px);
  display: flex;
  flex-direction: column;
}

.units-panel__header {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.units-panel__header > div > span {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.units-panel__header h3 {
  margin: 5px 0 0;
  font-size: clamp(20px, 2vw, 28px);
}

.units-panel__header > span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.unit-list {
  margin: 28px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}

.unit-list button {
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.67);
  text-align: start;
  font-size: 12px;
}

.unit-list button span {
  color: rgba(255, 255, 255, 0.32);
  font-size: 10px;
}

.unit-list button.is-active {
  border-color: var(--yellow);
  color: var(--white);
}

.unit-list button.is-active span {
  color: var(--yellow);
}

.unit-detail {
  margin-top: auto;
  padding: 24px;
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.unit-detail__number {
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
}

.unit-detail h4 {
  margin-bottom: 6px;
  font-size: 20px;
}

.unit-detail p {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.unit-detail blockquote {
  margin: 0;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 600;
}

.compare-dialog {
  width: min(960px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: clamp(32px, 5vw, 64px);
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.compare-dialog::backdrop {
  background: rgba(0, 23, 68, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  inset-block-start: 20px;
  inset-inline-end: 20px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 24px;
}

.compare-dialog > h2 {
  max-width: 660px;
  margin-bottom: 42px;
  font-size: clamp(34px, 5vw, 58px);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.compare-grid article {
  padding: 30px;
  border: 1px solid var(--line);
}

.compare-grid article:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.compare-grid article:last-child {
  border-inline-start: 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--soft-blue);
}

html[dir="rtl"] .compare-grid article:first-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

html[dir="rtl"] .compare-grid article:last-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.compare-grid article > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.compare-grid h3 {
  margin: 18px 0 26px;
  font-size: clamp(22px, 2.6vw, 34px);
}

.compare-grid ul {
  margin: 0;
  padding-inline-start: 20px;
  color: var(--muted);
}

.section--blue {
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 90% -10%, rgba(38, 183, 255, 0.4), transparent 28%),
    var(--blue);
}

.section--blue::after {
  content: "";
  position: absolute;
  width: 450px;
  height: 225px;
  inset-inline-start: -150px;
  inset-block-end: -100px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 225px 225px 0 0;
}

.teachers-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.74fr);
  align-items: center;
  gap: clamp(60px, 10vw, 140px);
}

.teacher-proof h2 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(42px, 5.7vw, 78px);
}

.teacher-proof > p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.teacher-numbers {
  margin: 52px 0 28px;
  padding: 30px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.teacher-numbers div {
  display: flex;
  flex-direction: column;
}

.teacher-numbers strong {
  color: var(--yellow);
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1;
}

.teacher-numbers span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.teacher-standards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.teacher-standards span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 600;
}

.teacher-match {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 4vw, 50px);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 20px 60px rgba(0, 23, 68, 0.26);
}

.teacher-match__label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[dir="rtl"] .teacher-match__label {
  letter-spacing: 0;
}

.teacher-match > h3 {
  margin: 10px 0 26px;
  font-size: clamp(26px, 3vw, 38px);
}

.match-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-options button {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.match-options button.is-active {
  border-color: var(--blue);
  background: var(--soft-blue);
  color: var(--blue);
}

.teacher-result {
  min-height: 210px;
  margin: 28px 0;
  padding-block: 28px;
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 24px;
}

.teacher-result > div:last-child > span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.teacher-result h4 {
  margin: 9px 0;
  font-size: 23px;
}

.teacher-result p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.teacher-result__tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.teacher-result__tags span {
  padding: 6px 9px;
  border-radius: var(--radius-pill);
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
}

.teacher-avatar {
  position: relative;
  width: 96px;
  height: 112px;
  overflow: hidden;
  border-radius: 50px 50px 26px 26px;
  background: #cdefff;
}

.teacher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
}

.teacher-avatar__face {
  position: absolute;
  z-index: 2;
  width: 58px;
  height: 70px;
  inset-inline-start: 19px;
  inset-block-start: 18px;
  border-radius: 45% 45% 48% 48%;
  background: #d99564;
}

.teacher-avatar__face::before {
  content: "â€¢â€¢";
  position: absolute;
  inset-block-start: 24px;
  inset-inline-start: 15px;
  color: var(--blue-dark);
  font-size: 18px;
  letter-spacing: 8px;
  line-height: 1;
}

.teacher-avatar__face::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 8px;
  inset-inline-start: 21px;
  inset-block-end: 13px;
  border-bottom: 2px solid #7c3b31;
  border-radius: 50%;
}

.teacher-avatar__hair {
  position: absolute;
  z-index: 3;
  width: 72px;
  height: 44px;
  inset-inline-start: 12px;
  inset-block-start: 6px;
  border-radius: 60% 60% 32% 22%;
  background: #2b1a20;
}

.teacher-avatar__body {
  position: absolute;
  width: 90px;
  height: 50px;
  inset-inline-start: 3px;
  inset-block-end: -15px;
  border-radius: 50% 50% 0 0;
  background: var(--blue);
}

.teacher-avatar--b {
  background: #ffebd6;
}

.teacher-avatar--b .teacher-avatar__hair {
  background: #8e5a39;
}

.teacher-avatar--b .teacher-avatar__body {
  background: #ef7e64;
}

.teacher-avatar--c {
  background: #e7dbff;
}

.teacher-avatar--c .teacher-avatar__hair {
  background: #171c42;
}

.teacher-avatar--c .teacher-avatar__body {
  background: #5943b8;
}

.teacher-avatar--d {
  background: #d9f6e9;
}

.teacher-avatar--d .teacher-avatar__hair {
  background: #56331f;
}

.teacher-avatar--d .teacher-avatar__body {
  background: #1d9d70;
}

.classroom-stage {
  position: relative;
}

.lesson-screen {
  min-width: 0;
  overflow: hidden;
  padding: clamp(18px, 2.5vw, 30px);
  border-radius: var(--radius-lg);
  background: var(--blue-dark);
  box-shadow: var(--shadow);
}

.lesson-screen__top {
  min-height: 44px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 600;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(48, 187, 122, 0.12);
}

.lesson-content {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
}

.lesson-slide {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
}

.lesson-slide img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.03);
}

.lesson-focus {
  position: absolute;
  width: 34%;
  height: 17%;
  inset-inline-start: 5%;
  inset-block-start: 31%;
  border: 3px solid var(--yellow);
  border-radius: 12px;
  box-shadow: 0 0 0 8px rgba(255, 237, 110, 0.18);
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.25s ease,
    transform 0.25s var(--ease);
}

.lesson-screen.is-helping .lesson-focus {
  opacity: 1;
  transform: scale(1);
}

.lesson-people {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.person-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(38, 183, 255, 0.35), transparent 50%),
    #0a2d78;
}

.person-tile > span {
  position: absolute;
  inset-inline-start: 14px;
  inset-block-end: 10px;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  background: rgba(0, 23, 68, 0.72);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.anime-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 22%;
  transition:
    transform 0.4s var(--ease),
    filter 0.4s var(--ease);
}

.anime-avatar-image--teacher {
  object-position: center 18%;
}

.person-tile:hover .anime-avatar-image {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.lesson-screen[data-active-step="0"] .anime-avatar-image--teacher,
.lesson-screen[data-active-step="1"] .anime-avatar-image--learner {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.lesson-screen[data-active-step="3"] .sentence-builder {
  box-shadow: 0 0 0 5px rgba(48, 187, 122, 0.22);
}

.anime-avatar {
  position: relative;
  width: 110px;
  height: 130px;
  transform: translateY(10px);
}

.anime-avatar__face {
  position: absolute;
  z-index: 2;
  width: 76px;
  height: 88px;
  inset-inline-start: 17px;
  inset-block-start: 19px;
  border-radius: 48% 48% 45% 45%;
  background: #d89767;
}

.anime-avatar__face::before {
  content: "â€¢  â€¢";
  position: absolute;
  inset-block-start: 32px;
  inset-inline-start: 19px;
  color: #241d31;
  font-size: 20px;
  font-weight: 700;
  white-space: pre;
}

.anime-avatar__face::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 10px;
  inset-inline-start: 27px;
  inset-block-end: 17px;
  border-bottom: 3px solid #8b3b35;
  border-radius: 50%;
}

.anime-avatar__hair {
  position: absolute;
  z-index: 3;
  width: 92px;
  height: 58px;
  inset-inline-start: 9px;
  inset-block-start: 3px;
  border-radius: 60% 60% 28% 28%;
  background: #291c29;
}

.anime-avatar__body {
  position: absolute;
  width: 108px;
  height: 62px;
  inset-inline-start: 1px;
  inset-block-end: -17px;
  border-radius: 55% 55% 0 0;
  background: var(--yellow);
}

.anime-avatar__hijab {
  position: absolute;
  z-index: 1;
  width: 96px;
  height: 112px;
  inset-inline-start: 7px;
  inset-block-start: 1px;
  border-radius: 52% 52% 38% 38%;
  background: #8a6ad8;
}

.anime-avatar--learner .anime-avatar__face {
  background: #c98358;
}

.anime-avatar--learner .anime-avatar__body {
  background: #26b7ff;
}

.sentence-builder {
  min-height: 96px;
  margin-top: 14px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 22px;
  background: var(--yellow);
  color: var(--blue-dark);
}

.sentence-builder > span:first-child {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[dir="rtl"] .sentence-builder > span:first-child {
  letter-spacing: 0;
}

.sentence-builder strong {
  font-size: clamp(20px, 2.4vw, 34px);
}

.voice-wave {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.voice-wave i {
  width: 3px;
  height: 10px;
  border-radius: 3px;
  background: var(--blue-dark);
  animation: wave 1s ease-in-out infinite;
}

.voice-wave i:nth-child(2) {
  animation-delay: 0.1s;
}

.voice-wave i:nth-child(3) {
  animation-delay: 0.2s;
}

.voice-wave i:nth-child(4) {
  animation-delay: 0.3s;
}

.voice-wave i:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes wave {
  50% {
    height: 30px;
  }
}

.class-steps {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.class-steps button {
  min-height: 70px;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: start;
}

.class-steps button span {
  color: var(--muted);
  font-size: 10px;
}

.class-steps button strong {
  font-size: 13px;
}

.class-steps button.is-active {
  border-color: var(--blue);
  color: var(--blue);
}

.class-caption {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.teacher-standards span {
  unicode-bidi: plaintext;
}

.section--dark {
  color: var(--white);
  background:
    radial-gradient(circle at 8% 92%, rgba(38, 183, 255, 0.15), transparent 26%),
    var(--blue-dark);
}

.section-intro--light > p {
  color: rgba(255, 255, 255, 0.64);
}

.progress-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 24px;
}

.progress-path,
.support-panel {
  padding: clamp(26px, 4vw, 50px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.progress-path__summary {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: end;
  gap: clamp(18px, 4vw, 50px);
}

.progress-path__summary > span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.progress-path__summary div {
  display: flex;
  flex-direction: column;
}

.progress-path__summary strong {
  color: var(--yellow);
  font-size: 30px;
  line-height: 1;
}

.progress-path__summary div span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.month-rail {
  position: relative;
  margin: 38px 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}

.month-rail::before {
  content: "";
  position: absolute;
  inset-inline: 3%;
  inset-block-start: 16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.month-rail button {
  position: relative;
  z-index: 1;
  min-width: 44px;
  min-height: 52px;
  justify-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 700;
}

.month-rail button::before {
  content: "";
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: var(--blue-dark);
}

.month-rail button.is-active {
  color: var(--yellow);
}

.month-rail button.is-active::before {
  border-color: var(--yellow);
  background: var(--yellow);
  box-shadow: 0 0 0 7px rgba(255, 237, 110, 0.1);
}

.progress-detail {
  min-height: 270px;
  padding: 28px;
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  background: var(--white);
  color: var(--ink);
}

.progress-detail__month {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-detail__month span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.progress-detail__month strong {
  font-size: 24px;
}

.progress-detail > div:nth-child(2) > span,
.mentor-action > div > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[dir="rtl"] .progress-detail > div:nth-child(2) > span,
html[dir="rtl"] .mentor-action > div > span {
  letter-spacing: 0;
}

.progress-detail h3 {
  max-width: 540px;
  margin: 8px 0 24px;
  font-size: clamp(23px, 2.7vw, 36px);
}

.mentor-action {
  grid-column: 2;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
}

.mentor-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--yellow);
}

.mentor-icon::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-dark);
}

.mentor-action p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.fine-print--dark {
  color: rgba(255, 255, 255, 0.44);
}

.support-panel {
  display: flex;
  flex-direction: column;
}

.support-panel__label {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[dir="rtl"] .support-panel__label {
  letter-spacing: 0;
}

.support-panel > h3 {
  margin: 12px 0 26px;
  font-size: clamp(25px, 2.7vw, 36px);
}

.support-scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-scenarios button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 700;
}

.support-scenarios button.is-active {
  border-color: var(--yellow);
  color: var(--yellow);
}

.support-conversation {
  margin: 26px 0 28px;
}

.support-conversation blockquote {
  margin: 0 0 14px;
  padding: 20px;
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 16px;
  font-weight: 600;
}

html[dir="rtl"] .support-conversation blockquote {
  border-radius: var(--radius-md) var(--radius-md) 4px var(--radius-md);
}

.support-response {
  padding: 22px;
  border-radius: var(--radius-md) var(--radius-md) 4px var(--radius-md);
  background: var(--blue);
}

html[dir="rtl"] .support-response {
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px;
}

.support-response > span {
  color: var(--yellow);
  font-size: 10px;
  font-weight: 700;
}

.support-response h4 {
  margin: 8px 0 14px;
  font-size: 19px;
}

.support-response ul {
  margin: 0;
  padding-inline-start: 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.support-panel > .text-link {
  margin-top: auto;
}

.policy-list {
  border-top: 1px solid var(--line);
}

.policy-list article {
  min-height: 150px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 38px;
}

.policy-icon {
  color: var(--blue);
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.policy-list h3 {
  margin-bottom: 8px;
  font-size: clamp(23px, 2.6vw, 34px);
}

.policy-list p {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--muted);
}

.faq-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(50px, 9vw, 130px);
}

.faq-shell .section-intro {
  margin-bottom: 0;
}

.faq-shell .section-intro h2 {
  font-size: clamp(38px, 5vw, 66px);
}

.faq-list {
  border-top: 1px solid var(--line);
}

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

.faq-item button {
  width: 100%;
  min-height: 72px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  text-align: start;
  font-weight: 700;
  transition: color 0.25s var(--ease);
}

.faq-item button[aria-expanded="true"] {
  color: var(--blue);
}

.faq-item button span:last-child {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.faq-item button:hover span:last-child {
  border-color: var(--blue);
}

.faq-item button[aria-expanded="true"] span:last-child {
  transform: rotate(45deg);
}

.faq-answer {
  max-width: 650px;
  padding-block: 0 24px;
  padding-inline: 0 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.faq-answer:not([hidden]) {
  animation: faqReveal 0.35s var(--ease);
}

@keyframes faqReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.book {
  padding: 0;
  color: var(--white);
  background: var(--blue-dark);
}

.book-shell {
  min-height: 740px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.76fr);
}

.book-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 130px) max(24px, calc((100vw - 1240px) / 2));
  padding-inline-end: clamp(50px, 8vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 10% 90%, rgba(38, 183, 255, 0.3), transparent 32%),
    var(--blue);
}

.book-copy::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 210px;
  inset-inline-end: -160px;
  inset-block-end: -80px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 210px 210px 0 0;
}

.book-copy h2 {
  max-width: 750px;
  margin-bottom: 28px;
  font-size: clamp(42px, 5.5vw, 78px);
}

.book-copy > p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.book-proof {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.book-proof span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 600;
}

.book-next {
  max-width: 560px;
  margin-top: 34px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(0, 23, 68, 0.18);
}

.book-next > span {
  display: block;
  margin-bottom: 12px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[dir="rtl"] .book-next > span {
  letter-spacing: 0;
}

.book-next ol {
  margin: 0;
  padding-inline-start: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.book-next li + li {
  margin-top: 8px;
}

.booking-form {
  padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  background: var(--white);
}

.form-progress {
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.form-progress span {
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}

.form-progress span.is-active {
  background: var(--blue);
}

.form-step__label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[dir="rtl"] .form-step__label {
  letter-spacing: 0;
}

.form-step h3 {
  margin: 12px 0 32px;
  font-size: clamp(28px, 3.4vw, 42px);
}

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

.choice-grid label {
  position: relative;
  cursor: pointer;
}

.choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-grid span {
  min-height: 74px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition:
    border 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.choice-grid input:checked + span {
  border-color: var(--blue);
  background: var(--soft-blue);
  color: var(--blue);
}

.choice-grid input:focus-visible + span {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.booking-summary {
  padding: 26px;
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  background: var(--soft-blue);
}

.booking-summary__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--success);
  color: var(--white);
  font-weight: 700;
}

.booking-summary p {
  margin-bottom: 0;
  font-weight: 600;
}

.form-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-error {
  margin: 18px 0 0;
  color: #bd2d42;
  font-size: 13px;
  font-weight: 600;
}

.form-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.form-actions .button {
  margin-inline-start: auto;
}

.site-footer {
  padding: 64px max(24px, calc((100vw - 1240px) / 2)) 24px;
  color: var(--white);
  background: var(--blue-dark);
}

.footer-shell {
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  /* Logo and line share the first row; the links get a row of their own, so
     a long link list no longer squeezes the line into a narrow column. */
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 50px;
}

/* "Other plan sizes" — the approved WhatsApp channel, visible on every page */
.footer-more {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.footer-more:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.footer-shell img {
  width: 172px;
}

.footer-shell p {
  max-width: 470px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

/* Bundle only: the two fixed-language link lists in the footer. Small, quiet,
   and real anchors, so a crawler finds every route in both languages. */
.footer-lang-lists {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-lang-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
}

/* One language at a time: the list for the language on screen. The other
   stays in the document as real links for crawlers. */
html[data-lang="ar"] .footer-lang-links[lang="en"],
html[data-lang="en"] .footer-lang-links[lang="ar-SA"] {
  display: none;
}

.footer-lang-links a {
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
}

.footer-lang-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-shell nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 600;
}

.footer-shell nav button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--yellow);
}

/* Contact, apps and social — the things a company site is expected to carry,
   and the things the rebuild had dropped. Three columns that collapse to one. */
.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px 36px;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-contact__group h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.footer-contact__group p {
  margin: 0 0 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.footer-contact__address {
  max-width: 30ch;
  line-height: 1.5;
}

.footer-contact__social {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  :root {
    --shell: min(100% - 40px, 980px);
  }

  .header-shell {
    grid-template-columns: 180px 1fr auto;
    gap: 18px;
  }

  .desktop-nav {
    gap: 18px;
    font-size: 12px;
  }

  .hero-shell {
    grid-template-columns: 1fr 420px;
    gap: 20px;
  }

  .confidence-orbit {
    width: 420px;
  }

  .package-shell {
    gap: 58px;
  }

  .teachers-shell {
    grid-template-columns: 1fr 400px;
    gap: 54px;
  }

  .progress-layout {
    grid-template-columns: 1fr;
  }

  .support-panel {
    min-height: 500px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .desktop-nav,
  .header-actions > .button {
    display: none;
  }

  .header-shell {
    grid-template-columns: 1fr auto;
  }

  .header-actions {
    grid-column: 2;
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    min-height: auto;
  }

  .hero-shell {
    min-height: auto;
    padding: 68px 0 80px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 460px;
  }

  /* Phones and tablets stack the hero. The scene follows the headline and the
     lead, the button comes next, and the proof (stats, review, the answer
     paragraph) waits below instead of pushing the picture down the page. The
     copy wrapper dissolves into the grid so its children can be ordered. */
  .hero--home .hero-shell {
    gap: 0;
  }

  .hero--home .hero-copy {
    display: contents;
  }

  .hero--home .hero-copy > * {
    order: 20;
  }

  .hero--home .hero-copy > .eyebrow {
    order: 1;
  }

  .hero--home .hero-copy > h1 {
    order: 2;
  }

  .hero--home .hero-copy > .hero-copy__lead {
    order: 3;
    margin-bottom: 0;
  }

  .hero--home .hero-visual {
    order: 4;
    min-height: auto;
    margin: 26px 0 28px;
  }

  .hero--home .hero-actions {
    order: 5;
    margin-bottom: 26px;
  }

  .hero--home .hero-trust {
    order: 6;
  }

  /* The answer paragraph comes before the review card on phones (Moustafa,
     2026-10-07: the reviews should not sit right at the top), so the card
     closes the hero. */
  .hero--home .hero-answer {
    order: 7;
    /* Both margins: as a grid item its bottom margin would stack on top of
       the review card's own 22px instead of collapsing. */
    margin: 0;
  }

  .hero--home .hero-reviews {
    order: 8;
    margin: 22px 0 0;
  }

  .hero-class-preview {
    width: min(100%, 620px);
  }

  .hero-scene {
    width: min(100%, 620px);
  }

  .lesson-call__board {
    min-height: 292px;
  }

  .confidence-orbit {
    width: min(90vw, 480px);
  }

  .section-intro--row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }

  .package-shell {
    grid-template-columns: 1fr;
  }

  .package-shell .section-intro {
    position: static;
  }

  .expand-panel {
    grid-column: 1;
  }

  .level-stage {
    grid-template-columns: 1fr;
  }

  .level-summary {
    min-height: 470px;
  }

  .teachers-shell {
    grid-template-columns: 1fr;
  }

  .teacher-match {
    max-width: 600px;
  }

  .lesson-content {
    grid-template-columns: 1fr;
  }

  .lesson-slide {
    aspect-ratio: 1380 / 1040;
    min-height: 0;
  }

  .lesson-slide img {
    height: 100%;
    min-height: 0;
    object-fit: contain;
    background: #f7f4ed;
  }

  .lesson-people {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px;
  }

  .faq-shell {
    grid-template-columns: 1fr;
  }

  .book-shell {
    grid-template-columns: 1fr;
  }

  .book-copy {
    min-height: 620px;
    padding-inline: clamp(24px, 7vw, 64px);
  }

  .booking-form {
    min-height: 630px;
  }

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

  .footer-shell nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 32px);
  }

  .announcement a {
    min-height: 44px;
    justify-content: flex-start;
    overflow: hidden;
    white-space: nowrap;
  }

  .announcement a > span:first-child {
    display: none;
  }

  .announcement__link {
    margin-inline-start: auto;
  }

  .brand {
    width: 138px;
  }

  .language-switch {
    min-width: 54px;
    font-size: 13px;
  }

  .section {
    padding: 82px 0;
  }

  .section-intro {
    margin-bottom: 42px;
  }

  .section-intro h2,
  .teacher-proof h2,
  .book-copy h2 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .hero-shell {
    padding: 36px 0 56px;
  }

  /* The scene's edges are feathered, so on phones it bleeds to the screen edge.
     Its height is capped so the button still lands inside the first screen. */
  .hero--home .hero-scene {
    width: calc(100% + 28px);
    max-width: none;
    margin-inline: -14px;
  }

  .hero--home .hero-scene__img {
    max-height: 330px;
    object-fit: cover;
  }

  .hero--home .hero-visual {
    margin: 20px 0 22px;
  }

  .hero-copy h1 {
    max-width: min(100%, 330px);
    font-size: clamp(38px, 11vw, 52px);
  }

  .hero-copy__lead {
    max-width: 100%;
    font-size: 16px;
  }

  /* One compact stat row — a premium phone hero, no stacked cards */
  .hero-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 24px;
  }

  .hero-trust li {
    padding: 14px 8px;
    text-align: center;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
    padding-block: 15px;
  }

  .hero-actions .text-link {
    justify-content: center;
  }

  .hero-price {
    width: 100%;
    align-items: flex-start;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-price > div {
    min-width: 0;
  }

  .hero-price__save {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .hero-price__tabby,
  .hero-price__meta {
    grid-column: 1 / -1;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-proof img {
    height: 126px;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-class-preview {
    padding: 12px;
    border-radius: 24px;
  }

  .lesson-call {
    padding: 8px;
    border-radius: 18px;
  }

  .lesson-call__board {
    min-height: 260px;
    padding: 12px;
    border-radius: 16px;
  }

  .lesson-call__slide {
    padding: 14px;
  }

  .lesson-call__full .lesson-call__text {
    font-size: 16px;
  }

  .hero-visual .confidence-orbit {
    display: none;
  }

  .price-display {
    flex-wrap: wrap;
  }

  .price-display strong {
    font-size: 92px;
  }

  .price-display > span:last-child {
    width: 100%;
  }

  .price-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .package-facts article {
    grid-template-columns: 74px 1fr;
  }

  .math-flow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .math-flow > span {
    transform: rotate(90deg);
  }

  html[dir="rtl"] .math-flow > span {
    transform: rotate(-90deg);
  }

  .included-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .step:nth-child(2) {
    border-inline-end: 0;
  }

  .step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .step-detail {
    min-height: 300px;
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .step-detail__number {
    grid-column: 1 / -1;
  }

  .curriculum-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .track-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .track-toggle button {
    min-width: 0;
    padding: 13px 9px;
    flex-direction: column;
    gap: 2px;
  }

  .track-toggle button small {
    font-size: 12px;
  }

  .compare-button {
    align-self: flex-start;
  }

  .level-rail-wrap {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
  }

  .level-rail {
    width: 100%;
  }

  .rail-arrow {
    display: none;
  }

  .level-stage {
    border-radius: var(--radius-md);
  }

  .level-summary {
    min-height: 520px;
    padding: 36px 24px;
  }

  .level-summary h3 {
    font-size: 34px;
  }

  .units-panel {
    padding: 30px 20px;
  }

  .units-panel__header {
    flex-direction: column;
  }

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

  .unit-detail {
    grid-template-columns: 1fr;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .compare-grid article:first-child,
  html[dir="rtl"] .compare-grid article:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .compare-grid article:last-child,
  html[dir="rtl"] .compare-grid article:last-child {
    border-inline-start: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .teacher-numbers {
    grid-template-columns: 1fr;
  }

  .teacher-match {
    padding: 28px 22px;
  }

  .teacher-result {
    grid-template-columns: 80px 1fr;
    gap: 18px;
  }

  .teacher-avatar {
    width: 78px;
    height: 98px;
  }

  .teacher-avatar__face {
    transform: scale(0.82);
    transform-origin: top left;
  }

  html[dir="rtl"] .teacher-avatar__face {
    transform-origin: top right;
  }

  .teacher-avatar__hair {
    transform: scale(0.82);
    transform-origin: top left;
  }

  html[dir="rtl"] .teacher-avatar__hair {
    transform-origin: top right;
  }

  .lesson-content {
    grid-template-columns: 1fr;
  }

  .lesson-slide {
    aspect-ratio: 1380 / 1040;
    min-height: 0;
  }

  .lesson-slide img {
    min-height: 0;
    object-fit: contain;
  }

  .lesson-people {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px;
  }

  .anime-avatar {
    transform: translateY(20px) scale(0.82);
  }

  .anime-avatar-image {
    min-height: 160px;
  }

  .sentence-builder {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .sentence-builder > span:first-child {
    grid-column: 1 / -1;
  }

  .class-steps {
    grid-template-columns: 1fr 1fr;
  }

  .progress-path,
  .support-panel {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }

  .progress-path__summary {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .progress-path__summary > span {
    grid-column: 1 / -1;
  }

  .month-rail {
    width: 100%;
    grid-template-columns: repeat(4, minmax(44px, 1fr));
    row-gap: 16px;
  }

  .month-rail::before {
    display: none;
  }

  .progress-detail {
    grid-template-columns: 1fr;
  }

  .mentor-action {
    grid-column: 1;
  }

  .policy-list article {
    min-height: 190px;
    grid-template-columns: 80px 1fr;
    gap: 20px;
  }

  .policy-icon {
    font-size: 40px;
  }

  .book-copy {
    min-height: 680px;
    padding-inline: 24px;
  }

  .book-next {
    padding: 18px 20px;
  }

  .booking-form {
    min-height: 680px;
    padding: 54px 22px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .announcement {
    font-size: 11px;
  }

  .brand {
    width: 124px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .confidence-orbit {
    width: 330px;
  }

  .orbit-chip {
    font-size: 10px;
  }

  .track-toggle button span {
    font-size: 12px;
  }

  .teacher-result {
    grid-template-columns: 1fr;
  }

  .lesson-slide,
  .lesson-slide img {
    min-height: 260px;
  }

  .sentence-builder strong {
    font-size: 18px;
  }
}

.price-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* Track pages */
.hero--compact .hero-shell {
  padding: clamp(40px, 5vw, 70px) 0;
}

.breadcrumb {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.track-facts.section {
  padding: 26px 0;
}

.track-fact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.track-fact-row > div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.track-fact-row strong {
  display: block;
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
}

.track-fact-row span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.level-blocks {
  display: grid;
  gap: 26px;
}

.level-block {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 22px);
  background: var(--white);
}

.level-block__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  cursor: pointer;
  list-style: none;
}

.level-block__head::-webkit-details-marker {
  display: none;
}

.level-block__marker {
  margin-inline-start: auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--blue);
  transition: transform 0.25s var(--ease);
}

.level-block[open] .level-block__marker {
  transform: rotate(45deg);
}

/* While the close animation runs, [open] is still set — flip the marker back at once. */
.level-block.is-closing .level-block__marker {
  transform: none;
}

.level-block__head:hover .level-block__marker {
  border-color: var(--blue);
}

.level-block[open] > .level-block__head {
  margin-bottom: 12px;
}

.level-block__num {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

/* The shared badge is styled for blue panels; on white level cards it needs ink. */
.level-block .cefr-badge {
  border-color: var(--line);
  color: var(--muted);
}

.level-block__head h3 {
  width: 100%;
  margin-top: 6px;
  font-size: 19px;
}

.level-block__sample {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.level-block__units {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  list-style: none;
}

.level-block__units li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.level-block__units strong {
  display: block;
  font-size: 14px;
}

.level-block__units span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.related-links a {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.related-links a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.related-links strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
}

.related-links span {
  color: var(--muted);
  font-size: 14px;
}

.curriculum-links {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

.curriculum-links span {
  color: var(--muted);
  font-weight: 600;
}

.curriculum-links a {
  color: var(--blue);
  font-weight: 700;
}

/* Pricing card (market-convention price card: anchor, final, split, session math, CTA) */
/* The pricing page opens on the prices themselves rather than a coloured hero.
   The head stays quiet so the two totals are the first thing the eye lands on. */
/* Section padding is tuned for bands that follow a hero. A section that opens the
   document needs far less air above it, and its own bottom padding would stack
   with the next band's top padding into a gap the width of a screen. */
.section--opens-page {
  padding-block: clamp(32px, 4vw, 52px) clamp(24px, 3vw, 40px);
}

.page-head {
  max-width: 680px;
  margin-bottom: 34px;
}

.page-head__lead {
  margin-block: 16px 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
}

.page-head .hero-actions {
  margin-block-start: 26px;
}

/* The head sits on white, so the light-on-dark link variant used inside the
   coloured hero would be invisible here. */
.page-head .text-link--light {
  color: var(--blue);
}

.page-head h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.6vw, 50px);
}

.page-head .breadcrumb {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

/* The shared breadcrumb is coloured for a dark hero; on a light page head those
   values would render white on white. */
.page-head .breadcrumb a {
  color: var(--muted);
}

.page-head .breadcrumb a:hover {
  color: var(--blue);
}

/* The light hero on the plans page carries the same trail (2026-10-08). */
.hero--light .breadcrumb {
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 600;
}

.hero--light .breadcrumb a {
  color: var(--muted);
}

.hero--light .breadcrumb a:hover {
  color: var(--blue);
}

/* The guide heads are light too (2026-10-08). */
.guide-hero .breadcrumb {
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 600;
}

.guide-hero .breadcrumb a {
  color: var(--muted);
}

.guide-hero .breadcrumb a:hover {
  color: var(--blue);
}

/* The prose answer restates the cards for search and assistants. It sits below
   them and reads as a footnote, not a second pitch. */
/* A track head with a scene: copy and picture side by side, the answer
   paragraph spanning both beneath. Heads without a scene are untouched. */
.page-head-zone .section-shell:has(.page-head__visual) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  align-items: center;
  column-gap: clamp(28px, 4vw, 64px);
}

.page-head-zone .section-shell:has(.page-head__visual) .page-head {
  margin-bottom: 0;
}

.page-head-zone .section-shell:has(.page-head__visual) .page-answer {
  grid-column: 1 / -1;
}

.page-head__visual {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-small);
}

.page-head__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  /* Stacked: title, lead, picture, button, all inside the first screen, then
     the answer paragraph. The copy block dissolves into the grid so the picture
     can sit between the lead and the button without changing the DOM order. */
  .page-head-zone .section-shell:has(.page-head__visual) {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .page-head-zone .section-shell:has(.page-head__visual) .page-head {
    display: contents;
  }

  .page-head-zone .section-shell:has(.page-head__visual) .breadcrumb {
    order: 1;
  }

  .page-head-zone .section-shell:has(.page-head__visual) h1 {
    order: 2;
  }

  .page-head-zone .section-shell:has(.page-head__visual) .page-head__lead {
    order: 3;
  }

  .page-head-zone .section-shell:has(.page-head__visual) .page-head__visual {
    order: 4;
    margin-block: 22px 0;
  }

  .page-head-zone .section-shell:has(.page-head__visual) .hero-actions {
    order: 5;
    margin-block-start: 20px;
  }

  .page-head-zone .section-shell:has(.page-head__visual) .page-answer {
    order: 6;
  }

  .page-head__visual {
    aspect-ratio: 16 / 9;
  }
}

.page-answer {
  max-width: 760px;
  margin-block: 26px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.answer-snapshot {
  max-width: 940px;
  margin-block: 24px 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--soft-blue);
}

.answer-snapshot h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.08;
}

.answer-snapshot p {
  max-width: 860px;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
}

.answer-snapshot__comparison {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted) !important;
}

/* Two plans sit side by side and must read as equals: equal-width tracks and
   stretched heights, so neither card looks like the afterthought. */
.price-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
  gap: 24px;
  margin-bottom: 28px;
}

.price-card {
  display: flex;
  flex-direction: column;
  max-width: 640px;
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 22px);
  background: var(--white);
  box-shadow: var(--shadow);
}

/* Push the CTA to the bottom so both cards' buttons align regardless of how
   many lines the plan facts run to. */
.price-card__cta {
  margin-top: auto;
}

.plan-facts__title {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
}

/* Hero summary: one row per plan, so the hero never implies a single price. */
.hero-price__plan {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 16px;
  padding-block: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-price__plan:last-of-type {
  border-bottom: 0;
}

.hero-price__plan strong {
  font-size: 30px;
  letter-spacing: -0.03em;
}

.hero-price__plan em {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-style: normal;
}

.hero-price__plan .price-flag {
  grid-column: 1 / -1;
  justify-self: start;
  margin-block-start: 6px;
}

/* The package page states price once and sends anyone comparing to /pricing/. */
.price-compare-link {
  margin-bottom: 18px;
}

.price-compare-link a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.math-flow__plan {
  margin-block: 18px 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.math-flow__plan:first-child {
  margin-block-start: 0;
}

.price-card__label {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html[dir="rtl"] .price-card__label {
  letter-spacing: 0;
}

/* The struck anchor takes its own line so both plans' totals start at the same
   x. Inline, the discounted card's number sat indented against the other. */
.price-card__price {
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.price-card__price s {
  width: 100%;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 18px;
}

.price-card__price strong {
  color: var(--blue);
  font-size: clamp(44px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.03em;
}

html[dir="rtl"] .price-card__price strong {
  letter-spacing: 0;
}

.price-card__save {
  padding: 6px 12px;
  border-radius: var(--radius-pill, 999px);
  background: var(--yellow);
  color: var(--blue-dark, #001744);
  font-size: 12px;
  font-weight: 700;
}

.price-card__duration {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.price-card__lines {
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.price-card__lines li {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
  font-size: 14px;
}

.price-card__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

.more-plans {
  margin-top: 22px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 22px);
  display: flex;
  align-items: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  background: var(--white);
}

.more-plans h2 {
  width: 100%;
  margin-block-end: 1em; /* the h3 default it had before it became an h2 */
  font-size: 19px;
}

.more-plans p {
  flex: 1 1 320px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Closing conversion band */
/* Straight after the FAQ, the band needs no second section gap above it. */
.faq + .cta-band {
  padding-top: 0;
}

.cta-band .cta-band__inner {
  padding: 34px 32px;
  border-radius: var(--radius-md, 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  background: var(--blue);
  color: var(--white);
}

.cta-band h2 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: clamp(24px, 3vw, 34px);
}

.cta-band p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

/* Home page */
.hero--home .hero-shell {
  min-height: auto;
  padding: clamp(56px, 7vw, 110px) 0;
}

.hero--home .hero-copy {
  max-width: 780px;
}

.track-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.track-cards article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 22px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: var(--shadow-small);
}

/* A card may open with a scene (General English, 2026-10-05); the body keeps
   the old padding and pushes its link to the bottom so both cards line up. */
.track-cards__cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.track-cards__body {
  flex: 1;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}

.track-cards__body .text-link {
  margin-top: auto;
}

.track-cards h3 {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 24px;
}

.track-cards__body > p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
}

.track-cards__meta {
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.track-cards__meta span {
  padding: 6px 12px;
  border-radius: var(--radius-pill, 999px);
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.method-list article {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 22px);
  background: var(--white);
}

.method-number {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.method-list h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.method-list p {
  color: var(--muted);
  font-size: 14px;
}

.home-teachers .section-intro {
  margin-bottom: 30px;
}

.home-teachers .teacher-numbers {
  margin-bottom: 26px;
}

.offer-card {
  max-width: 720px;
  padding: 40px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 22px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.offer-card h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.4vw, 44px);
}

.offer-card > p {
  margin-bottom: 18px;
  color: var(--muted);
}

.offer-card__facts {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.offer-card__facts s {
  color: var(--muted);
}

.offer-card__actions {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.sticky-cta {
  display: none;
}

@media (max-width: 900px) {
  .sticky-cta {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 75;
    display: block;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -10px 30px rgba(0, 23, 68, 0.08);
    backdrop-filter: blur(10px);
  }

  .sticky-cta[hidden] {
    display: none;
  }

  .sticky-cta .button {
    width: 100%;
    justify-content: center;
    padding-block: 15px;
    border-radius: 14px;
  }

  html.menu-open .sticky-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero--compact .hero-shell {
    padding: 30px 0 40px;
  }

  /* Primary actions become full-width tap targets on phones */
  .cta-band .button,
  .price-card__cta .button,
  .price-cta .button,
  .more-plans .button,
  .offer-card__actions .button {
    width: 100%;
    justify-content: center;
    padding-block: 15px;
  }

  .hero-answer {
    font-size: 13px;
  }

  .price-card {
    padding: 24px 18px;
  }

  .price-card__price strong {
    font-size: 38px;
  }

  .price-card__cta .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .cta-band .cta-band__inner {
    padding: 26px 20px;
  }

  .cta-band .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .track-fact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .track-fact-row > div {
    padding: 14px;
  }

  .track-fact-row strong {
    font-size: 20px;
  }

  .level-block {
    padding: 20px 16px;
  }

  .level-block__units {
    grid-template-columns: 1fr;
  }

  .offer-card {
    padding: 28px 20px;
  }

  .offer-card__actions .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .related-links a {
    padding: 18px;
  }

  .track-cards article,
  .method-list article {
    padding: 22px 18px;
  }
}

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

/* Premium detail pass (2026-07-23) */
.price-amount,
.price-card__price strong,
.price-card__price s,
.hero-trust strong,
.track-fact-row strong,
.home-teachers strong {
  font-variant-numeric: tabular-nums;
}

::selection {
  background: rgba(0, 60, 201, 0.16);
}

.track-cards article {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.track-cards article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.review-card {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

/* Learning Success Advisors (teachers page) — real people, photo-led cards.
   The grid mirrors the site's card vocabulary: white card, --line border,
   soft-blue stat tiles, a yellow-edged quote for each advisor's message. */
.advisor-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

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

.advisor-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /* Faces sit in the upper third of the team photos */
  object-position: 50% 18%;
}

.advisor-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.advisor-card__body h3 {
  font-size: 20px;
  margin: 0;
}

.advisor-card__role {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.advisor-stats {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.advisor-stats li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft-blue);
}

.advisor-stats strong {
  display: block;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.1;
}

.advisor-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.advisor-card__intro {
  margin: 14px 0 0;
  font-size: 14px;
}

.advisor-card__message {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-inline-start: 3px solid var(--yellow);
  border-radius: 12px;
  background: var(--soft-blue);
}

.advisor-card__message strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.advisor-card__message p {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
}

/* "Best for" line on plan cards (audit v2 §3) — quiet, under the plan name. */
.price-card__bestfor {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================================================
   Phone pass (mobile review, 2026-10-07). Targets at 44px, body text at 16px,
   labels at 13px, fixed chrome kept off the first screen, reference sections
   folded behind a control, the plans and the booking section moved up. The
   controls are added by app.js: bindPhoneSections, bindClamps, bindLevelJump,
   bindFooterGroups, bindCardLinks, bindStickyCta.
   ========================================================================== */

.level-jump,
.table-scroll__hint,
.clamp-toggle[hidden],
.section-collapse-toggle[hidden] {
  display: none;
}

.is-linked {
  cursor: pointer;
}

@media (max-width: 900px) {
  /* The "more" control sits with its paragraph inside the reordered heads. */
  .hero--home .hero-copy > .clamp-toggle {
    order: 8;
  }

  .hero--home .hero-reviews {
    order: 9;
  }

  .page-head-zone .section-shell:has(.page-head__visual) .clamp-toggle {
    order: 7;
  }
}

@media (max-width: 680px) {
  /* Rhythm: shorter section bands; anchors clear the fixed header. */
  .section {
    padding: 56px 0;
    scroll-margin-top: 84px;
  }

  .section--joined {
    padding-top: 28px;
  }

  .track-facts.section {
    padding: 18px 0;
  }

  .section-cta {
    margin-top: 22px;
  }

  /* No decorative motion on phones: no fade-in bands on a flick scroll, no
     always-on sheen or underline loops on the main thread. */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .text-link span {
    animation: none;
  }

  .button--yellow::after {
    display: none;
  }

  /* Targets: 44px minimum, 8px apart. */
  .text-link {
    min-height: 44px;
  }

  .text-link span {
    padding-block: 10px 6px;
  }

  .brand {
    min-height: 44px;
    align-items: center;
  }

  .language-switch {
    min-height: 44px;
  }

  .breadcrumb a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }

  .site-footer nav a,
  .footer-contact a,
  .footer-bottom a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    font-size: 15px;
  }

  .footer-shell p,
  .footer-more,
  .footer-bottom {
    font-size: 14px;
  }

  /* Type: 16px for reading copy, 13px floor for labels. */
  .page-head__lead,
  .hero-copy__lead,
  .section-intro p,
  .page-answer,
  .hero-answer,
  .hero-reviews__item p,
  .faq-answer,
  .review-card blockquote,
  .method-list p,
  .advisor-card__intro,
  .advisor-card__message p,
  .level-block__sample,
  .level-block__units,
  .track-cards__body p,
  .book-copy p {
    font-size: 16px;
    line-height: 1.65;
  }

  .eyebrow,
  .hero-trust li > span,
  .hero-reviews__item cite,
  .hero-reviews__hint,
  .review-card footer,
  .price-flag,
  .price-card__save,
  .plan-table__restriction,
  .plan-table thead th,
  .math-flow span,
  .math-flow em {
    font-size: 13px;
  }

  .advisor-card__role,
  .track-fact-row > div span,
  .fine-print,
  .form-note,
  .price-note,
  .page-head .breadcrumb {
    font-size: 14px;
  }

  /* The answer paragraph: two lines, then "more". */
  .page-answer.is-clamped,
  .hero-answer.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .clamp-toggle {
    min-height: 44px;
    margin-top: 2px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--blue);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
  }

  .hero .clamp-toggle {
    color: var(--yellow);
  }

  /* Folded reference sections: intro plus one control. */
  .section-collapse-toggle {
    min-height: 44px;
    margin-top: 18px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    box-shadow: inset 0 0 0 1.5px currentColor;
    color: inherit;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }

  .section.is-collapsed .section-shell > :not(.section-intro):not(.teacher-proof):not(.section-collapse-toggle):not(.v3-method__aside) {
    display: none;
  }

  /* v3: the home method keeps its title inside a side column */
  .section.is-collapsed .v3-method__aside > :not(.section-intro):not(.section-collapse-toggle) {
    display: none;
  }

  .section.is-collapsed .section-intro {
    margin-bottom: 0;
  }

  /* Home and package: plans and booking move up under the hero; the reference
     sections follow. The page wrapper in the single-file bundle gets the same
     treatment (the extra specificity beats the bundle's display:block). */
  main,
  main > .page-content.is-active {
    display: flex;
    flex-direction: column;
  }

  main > *,
  .page-content > * {
    order: 50;
  }

  .hero {
    order: 0;
  }

  /* v3: the topic strip and the short answers stay right under the head */
  .hero--home ~ .v3-ticker,
  .hero--home ~ .v3-facts {
    order: 0;
  }

  .hero--home ~ #tracks {
    order: 1;
  }

  .hero--home ~ #offer {
    order: 2;
  }

  .hero--home ~ #method {
    order: 3;
  }

  .hero--home ~ #teachers-overview {
    order: 4;
  }

  .hero--home ~ #reviews {
    order: 5;
  }

  .hero--home ~ #faq {
    order: 6;
  }

  .hero--light ~ #package {
    order: 1;
  }

  .hero--light ~ #book {
    order: 2;
  }

  .hero--light ~ #how {
    order: 3;
  }

  .hero--light ~ #curriculum {
    order: 4;
  }

  .hero--light ~ #teachers {
    order: 5;
  }

  .hero--light ~ #classroom {
    order: 6;
  }

  .hero--light ~ #progress {
    order: 7;
  }

  .hero--light ~ #policies {
    order: 8;
  }

  .hero--light ~ #reviews {
    order: 9;
  }

  .hero--light ~ #faq {
    order: 10;
  }

  /* Booking section: the hand-off control first, the copy after it. */
  .book-shell {
    display: flex;
    flex-direction: column;
  }

  .booking-handoff {
    order: -1;
  }

  /* The lesson-card mock stays inside its column (the 390px block below the
     hero rules fixes its width; this outranks it). */
  .hero .hero-visual .hero-class-preview,
  .hero .hero-visual .lesson-call,
  .hero .hero-visual .lesson-call__slide {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Jump links to a heading already on screen add nothing on a phone. */
  .hero-actions .text-link[href^="#"] {
    display: none;
  }

  /* FAQ excerpts: three questions, then the link to the full list. */
  [data-faq-subset] .faq-item:nth-child(n + 4) {
    display: none;
  }

  /* Reviews: three cards until "show all". */
  .review-grid.is-collapsed > .review-card:nth-child(n + 4) {
    display: none;
  }

  /* Pricing: the plan a new visitor can buy comes first; the table scrolls
     sideways with a visible hint; the instalment maths folds (data-phone-collapse). */
  .price-card-grid [data-plan-card="progress"] {
    order: -1;
  }

  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-inline: -16px;
    padding-inline: 16px;
    mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  }

  .table-scroll .plan-table {
    min-width: 520px;
  }

  .table-scroll__hint {
    display: block;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
  }

  /* Level list: compact closed rows and a jump row above them. */
  .level-blocks {
    gap: 10px;
  }

  .level-block {
    padding: 14px 16px;
  }

  .level-block__head h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
  }

  .level-block[open] .level-block__head h3 {
    display: block;
    -webkit-line-clamp: unset;
  }

  .level-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
  }

  .level-jump__label {
    width: 100%;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }

  .level-jump__chip {
    min-width: 46px;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--blue);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }

  /* Advisors: avatar photos instead of full-width portraits. */
  .advisor-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }

  .advisor-card img {
    width: 72px;
    flex: 0 0 72px;
    border-radius: 50%;
  }

  .advisor-card__body {
    padding: 0;
  }

  /* Footer: the three contact groups fold; the heading is the control. */
  .footer-contact__group h2[role="button"] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    margin: 0;
    cursor: pointer;
  }

  .footer-contact__group h2[role="button"]::after {
    content: "+";
    font-weight: 400;
  }

  .footer-contact__group h2[aria-expanded="true"]::after {
    content: "\2212";
  }

  .footer-contact__group.is-collapsed > :not(h2) {
    display: none;
  }
}

@media (max-width: 360px) {
  /* Narrow phones: a shorter head picture keeps the booking button inside the
     first screen in English too. */
  .page-head__visual {
    aspect-ratio: 16 / 9;
  }
}

/* Track pages: the two short blocks between the fact tiles and the level list
   (beginners, conversation on General English; 2026-10-08). */
.track-focus__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.track-focus__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 22px);
  background: var(--white);
}

.track-focus__card h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
}

.track-focus__card p {
  margin: 0;
  color: var(--muted);
}

.track-focus__card .text-link {
  margin-top: auto;
  color: var(--blue);
}

.track-focus__card h3 {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
}

/* ==========================================================================
   Guides (/blog/): recovered from the 5 October build on 2026-10-08.
   ========================================================================== */

.goal-link-grid,

.guide-card-grid  {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 18px;
}

.goal-link-grid a,

.guide-card  {
  min-width: 0;

  padding: 24px;

  border: 1px solid var(--line);

  border-radius: var(--radius-md);

  display: flex;

  flex-direction: column;

  gap: 9px;

  background: var(--white);

  box-shadow: var(--shadow-small);

  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.goal-link-grid a:hover,

.guide-card:hover  {
  transform: translateY(-3px);

  box-shadow: var(--shadow);
}

.goal-link-grid strong,

.guide-card strong  {
  color: var(--blue);

  font-size: 19px;

  line-height: 1.2;
}

.goal-link-grid span,

.guide-card em  {
  color: var(--muted);

  font-size: 14px;

  font-style: normal;
}

.guide-card > span  {
  color: var(--blue-dark);

  font-size: 12px;

  font-weight: 800;
}

.guide-hero  {
  background: var(--soft);
}

.guide-shell  {
  max-width: 940px;
}

.guide-hero h1  {
  max-width: 860px;

  margin-bottom: 18px;

  font-size: clamp(38px, 5vw, 70px);
}

.guide-answer  {
  margin-top: 28px;

  padding: 22px 24px;

  border: 1px solid var(--line);

  border-radius: var(--radius-md);

  background: var(--white);

  box-shadow: var(--shadow-small);
}

.guide-answer span  {
  display: block;

  margin-bottom: 8px;

  color: var(--blue);

  font-size: 12px;

  font-weight: 800;
}

.guide-answer p  {
  margin: 0;

  font-size: clamp(17px, 1.6vw, 21px);

  font-weight: 600;

  line-height: 1.65;
}

.guide-layout  {
  padding-top: clamp(58px, 7vw, 96px);
}

.guide-section  {
  margin-bottom: clamp(38px, 5vw, 64px);
}

.guide-section h2,

.guide-practice h2,

.guide-cta h2,

.guide-group-title  {
  margin-bottom: 14px;

  font-size: clamp(26px, 3vw, 40px);
}

.guide-section p  {
  max-width: 74ch;

  color: var(--muted);

  font-size: 17px;
}

.guide-section ul,

.guide-practice ol  {
  margin: 20px 0 0;

  padding-inline-start: 1.3em;

  display: grid;

  gap: 10px;

  color: var(--ink);
}

.guide-section li,

.guide-practice li  {
  padding-inline-start: 4px;
}

.guide-group-title  {
  margin-top: clamp(44px, 6vw, 72px);
}

.guide-section--linked .related-links  {
  margin-top: 18px;
}

.guide-parent  {
  margin-bottom: 30px;

  color: var(--muted);

  font-weight: 700;
}

.guide-parent a  {
  color: var(--blue);

  text-decoration: underline;

  text-underline-offset: 3px;
}

.guide-practice,

.guide-cta,

.guide-review  {
  margin: clamp(38px, 5vw, 64px) 0;

  padding: 26px;

  border-radius: var(--radius-md);
}

.guide-practice  {
  border: 1px solid var(--line);

  background: var(--soft-blue);
}

.guide-cta  {
  background: var(--blue);

  color: var(--white);
}

.guide-cta .eyebrow  {
  color: var(--yellow);
}

.guide-cta p  {
  max-width: 680px;

  color: rgba(255, 255, 255, 0.8);
}

.guide-review  {
  border: 1px solid var(--line);

  background: var(--soft);
}

.guide-review p  {
  margin-bottom: 8px;

  color: var(--muted);

  font-size: 14px;
}

/* Decision tables inside guides (2026-10-08). */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 8px;
  font-size: 15px;
}

.guide-table th,
.guide-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  text-align: start;
  vertical-align: top;
}

.guide-table thead th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.guide-table tbody th {
  width: 22%;
  font-weight: 700;
}

.guide-table__hint {
  display: none;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 680px) {
  .guide-section .table-scroll .guide-table {
    min-width: 560px;
  }

  .guide-table__hint {
    display: block;
  }
}

/* English email examples inside the Arabic guides read left to right. */
.guide-ltr {
  direction: ltr;
  text-align: left;
}

/* Question headings inside a guide section get room above them. */
.guide-section h3 {
  margin: 28px 0 8px;
  font-size: 20px;
}

/* A real lesson example on the two track pages (2026-10-08). */
.track-sample__label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.track-sample__phrases,
.track-sample__steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-inline-start: 20px;
}

.track-sample__phrases li {
  font-weight: 600;
}

.track-sample__steps strong {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
}

.track-sample__vocab {
  margin: 0;
  font-weight: 600;
}

.track-sample__note,
.track-sample__source {
  margin: 0;
}

.track-sample__source {
  color: var(--muted);
  font-size: 13px;
}

/* ==========================================================================
   v3.0 design layer (2026-11-16)
   Editorial heads (serif accent line), the arch portrait with orbiting facts,
   light Cloud pages and calm motion. Spec:
   docs/superpowers/specs/2026-11-16-v3-redesign-design.md
   Colours: only the brand sheet (marketing/2027-q1-brand-linkedin/colors).
   Motion: CSS keyframes for the entrance (runs without JS and ends visible),
   app.js bindV3Motion for orbit, parallax, rail, ticker and header glass.
   ========================================================================== */

@font-face {
  font-family: "Amiri";
  src: url("https://cdn.51talkjr.com/apollo/public/woff2/Amiri-Bold-subset.3787e2538f.woff2") format("woff2"), url("https://cdn.51talkjr.com/apollo/public/ttf/Amiri-Bold-subset.36443da9b0.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --lemon: #fff8c9;
  --amber: #f2a64b;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-float: 0 1px 2px rgba(7, 27, 67, 0.05), 0 24px 60px rgba(7, 27, 67, 0.13);
  --accent-face: "Amiri", "IBM Plex Sans Arabic", serif;
  --nudge: 4px;
}

html[dir="rtl"] {
  --nudge: -4px;
}

html[lang="en"] {
  --accent-face: "Montserrat", Arial, sans-serif;
}

body {
  background: var(--soft);
}

/* Page-to-page fades between documents once each route is its own file. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: v3-vt-out 0.3s var(--ease) both;
}

::view-transition-new(root) {
  animation: v3-vt-in 0.45s var(--ease-out) both;
}

@keyframes v3-vt-out {
  to {
    opacity: 0;
  }
}

@keyframes v3-vt-in {
  from {
    opacity: 0;
  }
}

/* ---------- header: transparent at the top, glass once scrolled ---------- */
.site-header {
  border-bottom-color: transparent;
  transition: border-color 0.4s var(--ease);
}

.site-header::before {
  background: rgba(244, 247, 252, 0.82);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(220, 228, 244, 0.9);
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.desktop-nav {
  justify-self: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.desktop-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}

.desktop-nav a::after {
  display: none;
}

.desktop-nav a:hover {
  background: var(--white);
  box-shadow: 0 1px 2px rgba(7, 27, 67, 0.05), 0 6px 18px rgba(7, 27, 67, 0.07);
}

.desktop-nav a[aria-current="page"] {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 1px 2px rgba(7, 27, 67, 0.05), 0 6px 18px rgba(7, 27, 67, 0.07);
}

.header-actions .button--dark {
  background: var(--ink);
}

.header-actions .button--dark:hover {
  background: var(--blue);
}

/* ---------- buttons ---------- */
.button--primary {
  min-height: 58px;
  padding-inline: 26px 9px;
  gap: 16px;
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
  box-shadow: 0 12px 30px rgba(0, 60, 201, 0.28);
}

.button--primary:hover {
  box-shadow: 0 18px 44px rgba(0, 60, 201, 0.34);
}

.button__icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  transition: transform 0.4s var(--ease-out);
}

.button__icon svg {
  width: 18px;
  height: 18px;
}

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

.button--primary:hover .button__icon {
  transform: translateX(var(--nudge));
}

.button--outline {
  min-height: 58px;
  padding-inline: 26px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  box-shadow: inset 0 0 0 1.5px rgba(7, 27, 67, 0.16);
}

.button--outline:hover {
  box-shadow: inset 0 0 0 1.5px var(--blue);
}

/* ---------- eyebrow: a short rule, then the label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  flex: none;
  border-radius: 2px;
  background: currentColor;
}

/* ---------- home head ---------- */
.hero.v3-hero {
  min-height: 0;
  overflow: clip;
  color: var(--ink);
  background: transparent;
  border-radius: 0;
  isolation: isolate;
}

.hero.v3-hero::before,
.hero.v3-hero::after {
  display: none;
}

.v3-hero__halo {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% 74%, rgba(38, 183, 255, 0.16), transparent 70%),
    radial-gradient(700px 380px at 50% 14%, rgba(255, 237, 110, 0.2), transparent 70%);
}

.v3-hero .hero-shell {
  min-height: 0;
  padding: clamp(36px, 5vw, 64px) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.v3-hero .hero-copy {
  position: relative;
  z-index: 5;
  max-width: 1000px;
  text-align: center;
}

.v3-title,
.hero-copy h1.v3-title {
  max-width: none;
  margin: 0;
  font-size: clamp(40px, 6.1vw, 90px);
  font-weight: 700;
  line-height: 1.12;
}

.v3-title__lead,
.v3-title__accent {
  display: block;
}

.v3-title__accent {
  position: relative;
  color: var(--blue);
  font-family: var(--accent-face);
  font-size: 1.06em;
  line-height: 1.3;
}

html[lang="en"] .v3-title,
html[lang="en"] .hero-copy h1.v3-title {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(46px, 6vw, 90px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
}

html[lang="en"] .v3-title__accent {
  font-size: 1em;
  font-style: italic;
  line-height: 1.04;
}

/* the accent line is underlined where it is: a marker stroke under each line
   of it, drawn in once (2026-11-17: the detached swash read as a stray line) */
.v3-mark {
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-position: 0 86%;
  background-size: 100% 0.11em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: v3-mark 1.2s var(--ease-out) 1s backwards;
}

html[dir="rtl"] .v3-mark {
  background-position: 100% 90%;
}

@keyframes v3-mark {
  from {
    background-size: 0% 0.11em;
  }
}

.v3-hero .hero-copy__lead {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.8;
}

.v3-actions {
  position: relative;
  z-index: 6;
  margin-top: 30px;
  justify-content: center;
  gap: 12px;
}

/* entrance: plain CSS so the copy arrives even before app.js loads */
[data-v3-load] {
  animation: v3-rise 1s var(--ease-out) backwards;
}

/* Delays live here, not in style attributes: the site's CSP is style-src 'self'. */
[data-v3-load="2"] { animation-delay: 120ms; }
[data-v3-load="3"] { animation-delay: 260ms; }
[data-v3-load="4"] { animation-delay: 420ms; }
[data-v3-load="5"] { animation-delay: 560ms; }

/* Resting angles 20°, 80° … 320°; app.js turns them once it runs. */
.v3-orb:nth-child(1) { --sin: 0.342; --cos: 0.94; --i: 0; }
.v3-orb:nth-child(2) { --sin: 0.985; --cos: 0.174; --i: 1; }
.v3-orb:nth-child(3) { --sin: 0.643; --cos: -0.766; --i: 2; }
.v3-orb:nth-child(4) { --sin: -0.342; --cos: -0.94; --i: 3; }
.v3-orb:nth-child(5) { --sin: -0.985; --cos: -0.174; --i: 4; }
.v3-orb:nth-child(6) { --sin: -0.643; --cos: 0.766; --i: 5; }

@keyframes v3-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(8px);
  }
}

/* Source order is copy, actions, picture, proof. The v2 phone rules dissolve
   .hero-copy and number its children; v3 keeps the copy whole and orders the
   four blocks itself (phones swap the button below the picture, see 760px). */
.hero--home.v3-hero .hero-copy {
  display: block;
  order: 1;
}

.hero--home.v3-hero .hero-actions {
  order: 2;
  margin-bottom: 0;
}

.hero--home.v3-hero .hero-visual {
  order: 3;
  min-height: 0;
  margin: 26px 0 0;
}

.hero--home.v3-hero .v3-proof {
  order: 4;
}

/* the arch and the orbit */
.v3-visual,
.v3-hero .hero-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 520px;
  margin-top: 26px;
  --rx: clamp(270px, 23vw, 330px);
  --ry: 84px;
  --cy: 224px;
  --aw: 420px;
  --ah: 500px;
}

.v3-stage {
  position: absolute;
  inset: 0;
}

.v3-orbit-line {
  position: absolute;
  left: 50%;
  top: var(--cy);
  width: calc(var(--rx) * 2);
  height: calc(var(--ry) * 2);
  transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(0, 60, 201, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.v3-orbit-line--back {
  z-index: 1;
  clip-path: inset(0 0 50% 0);
}

.v3-orbit-line--front {
  z-index: 3;
  clip-path: inset(50% 0 0 0);
}

.v3-arch {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 50%;
  width: var(--aw);
  height: var(--ah);
  margin: 0;
  overflow: hidden;
  transform: translateX(-50%);
  border-radius: calc(var(--aw) / 2) calc(var(--aw) / 2) 0 0;
  background: var(--blue-dark);
  box-shadow: 0 40px 90px rgba(7, 27, 67, 0.28);
  animation: v3-arch-up 1.4s var(--ease-out) 0.25s backwards;
}

@keyframes v3-arch-up {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.v3-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  animation: v3-settle 2s var(--ease-out) 0.2s backwards;
}

@keyframes v3-settle {
  from {
    transform: scale(1.1);
  }
}

.v3-ring {
  position: absolute;
  left: 50%;
  top: var(--cy);
  width: 0;
  height: 0;
}

.v3-orb {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: max-content;
  transform:
    translate(-50%, -50%)
    translate(calc(var(--rx) * var(--sin)), calc(var(--ry) * var(--cos)))
    scale(calc(0.8 + 0.1 * (var(--cos) + 1)));
  opacity: calc(0.55 + 0.225 * (var(--cos) + 1));
  will-change: transform, opacity;
}

.v3-orb.is-front {
  z-index: 4;
}

.v3-orb__in {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 11px;
  padding-inline: 11px 18px;
  border: 1px solid var(--white);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 1px rgba(7, 27, 67, 0.04), 0 16px 36px rgba(7, 27, 67, 0.16);
  animation: v3-pop 0.8s var(--ease-out) backwards;
  animation-delay: calc(900ms + var(--i) * 90ms);
}

@keyframes v3-pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
}

.v3-chip {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.v3-chip svg {
  width: 20px;
  height: 20px;
}

.v3-chip--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.v3-chip--mist {
  background: var(--soft-blue);
  color: var(--blue);
}

.v3-chip--lemon {
  background: var(--lemon);
  color: var(--ink);
}

.v3-orb b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.v3-orb small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.3;
  white-space: nowrap;
}

/* the proof around the head: absolute on wide screens, stacked below */
.v3-proof {
  display: contents;
}

.v3-float {
  position: absolute;
  z-index: 6;
  width: 272px;
}

.v3-float__in {
  padding: 20px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-float);
  animation: v3-bob 7s ease-in-out infinite, v3-rise 1s var(--ease-out) 1.25s backwards;
}

.v3-float--a {
  inset-inline-start: max(16px, calc(50% - 690px));
  top: 470px;
  rotate: 3deg;
}

.v3-float--b {
  inset-inline-end: max(16px, calc(50% - 690px));
  top: 540px;
  width: 232px;
  rotate: -3deg;
}

html[dir="ltr"] .v3-float--a {
  rotate: -3deg;
}

html[dir="ltr"] .v3-float--b {
  rotate: 3deg;
}

.v3-float--b .v3-float__in {
  animation-delay: -3.5s, 1.4s;
}

@keyframes v3-bob {
  50% {
    translate: 0 -10px;
  }
}

/* the rotating review card, recast for a white floating card */
.v3-float .hero-reviews {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
  backdrop-filter: none;
}

.v3-float .hero-reviews__label,
.v3-float .hero-reviews__label strong {
  color: var(--ink);
}

.v3-float .review-stars {
  color: var(--amber, #f2a64b);
}

.v3-float .hero-reviews__item p {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.7;
}

.v3-float .hero-reviews__item cite {
  color: var(--muted);
}

.v3-float .hero-reviews__toggle,
.v3-float .hero-reviews__hint {
  display: none;
}

/* the review card on white: a quote changes with a short slide and blur,
   and the box follows the length of the quote (app.js sets the height) */
.v3-float .hero-reviews__track {
  margin-top: 14px;
  overflow: hidden;
  transition: height 0.7s var(--ease-out);
}

.v3-float .hero-reviews__item {
  align-self: start;
  transform: translateY(16px);
  filter: blur(6px);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.8s var(--ease-out),
    filter 0.5s var(--ease-out),
    visibility 0s linear 0.8s;
}

.v3-float .hero-reviews__item.is-active {
  transform: none;
  filter: none;
  transition:
    opacity 0.7s var(--ease-out) 0.2s,
    transform 0.9s var(--ease-out) 0.2s,
    filter 0.7s var(--ease-out) 0.2s,
    visibility 0s;
}

.v3-float .hero-reviews__item.is-leaving {
  transform: translateY(-14px);
}

.v3-float .hero-reviews.is-expanded .hero-reviews__track {
  height: auto !important;
  overflow: visible;
}

.v3-float .hero-reviews.is-expanded .hero-reviews__item {
  transform: none;
  filter: none;
  border-top-color: var(--line);
}

/* the toggle and the hint were drawn for the old blue head (white on
   white here); on the card they take ink and the line colour */
.v3-float .hero-reviews__toggle {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.v3-float .hero-reviews__toggle:hover,
.v3-float .hero-reviews__toggle:focus-visible {
  border-color: var(--blue);
  background: var(--white);
  color: var(--blue);
}

.v3-float .hero-reviews__toggle[aria-expanded="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.v3-float .hero-reviews__hint {
  color: var(--muted);
}

.v3-float .hero-reviews__all {
  color: var(--blue);
}

/* thirteen small dots fit one row of the card; Confidence Blue on white */
.v3-float .hero-reviews__foot {
  margin-top: 16px;
}

.v3-float .hero-reviews__dots {
  gap: 0;
}

.v3-float .hero-reviews__dot {
  width: 13px;
}

.v3-float .hero-reviews__dot::before {
  inset: 6px 3px;
  background: rgba(0, 60, 201, 0.2);
}

.v3-float .hero-reviews__dot:hover::before,
.v3-float .hero-reviews__dot:focus-visible::before {
  background: rgba(0, 60, 201, 0.5);
}

.v3-float .hero-reviews__dot.is-active {
  width: 30px;
}

.v3-float .hero-reviews__dot.is-active::before {
  inset: 6px 3px;
  background: rgba(0, 60, 201, 0.14);
}

.v3-float .hero-reviews__dot.is-active::after {
  inset: 6px 3px;
  background: var(--blue);
}

/* the proof numbers as their own floating card (2026-11-17: loose under the
   head they read as stray text) */
.v3-stats .hero-trust {
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.v3-stats .hero-trust li {
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  text-align: start;
}

.v3-stats .hero-trust li:first-child {
  padding-top: 0;
  border-top: 0;
}

.v3-stats .hero-trust li:last-child {
  padding-bottom: 0;
}

.v3-stats .hero-trust strong {
  color: var(--blue);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.v3-stats .hero-trust li:first-child strong {
  font-size: 34px;
}

.v3-stats .hero-trust li > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}

.v3-connectors {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.v3-connectors path {
  fill: none;
  stroke: rgba(7, 27, 67, 0.28);
  stroke-width: 1.25;
}

@keyframes v3-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- the moving fact strip ---------- */
.v3-ticker {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 22px 0;
  background: var(--blue-dark);
  color: var(--white);
}

.v3-ticker__track {
  width: max-content;
  display: flex;
  animation: v3-tick 42s linear infinite;
}

html[dir="ltr"] .v3-ticker__track {
  animation-name: v3-tick-ltr;
}

.v3-ticker:hover .v3-ticker__track {
  animation-play-state: paused;
}

.v3-ticker__set {
  display: flex;
  align-items: center;
}

.v3-ticker__item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-inline-end: 28px;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.v3-ticker__item svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--yellow);
}

@keyframes v3-tick {
  to {
    transform: translateX(50%);
  }
}

@keyframes v3-tick-ltr {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- the answer block, written for search and assistants ---------- */
.v3-facts.section {
  padding: clamp(56px, 7vw, 96px) 0 0;
}

.v3-facts__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.v3-facts .hero-answer,
.v3-facts .hero-fact-answer {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.v3-facts .hero-answer {
  color: var(--ink);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 500;
  line-height: 1.7;
}

.v3-facts .hero-fact-answer {
  padding-inline-start: 24px;
  border-inline-start: 2px solid var(--yellow);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

/* ---------- sections ---------- */
.section-intro h2 {
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.14;
}

html[lang="en"] .section-intro h2 {
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.track-cards article {
  padding: 12px;
  border-radius: 34px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(7, 27, 67, 0.05), 0 6px 18px rgba(7, 27, 67, 0.07);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.track-cards article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
}

.track-cards__cover {
  border-radius: 26px;
  transition: transform 1.4s var(--ease-out);
}

.track-cards article:hover .track-cards__cover {
  transform: scale(1.03);
}

/* home method: a white panel, the head stays put while the steps scroll */
.method.section--soft {
  width: calc(100% - 24px);
  margin-inline: auto;
  border-radius: clamp(28px, 4vw, 48px);
  background: var(--white);
}

@media (min-width: 1081px) {
  .method .section-shell {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 72px;
    align-items: start;
  }

  .method .section-intro {
    position: sticky;
    top: 120px;
    margin-bottom: 0;
  }
}

.method-list[data-v3-steps] {
  position: relative;
  display: block;
  padding-inline-start: 64px;
}

.method-list[data-v3-steps] > article {
  position: relative;
  padding: 26px 0 44px;
  border: 0;
  background: none;
  box-shadow: none;
  transition: opacity 0.5s var(--ease);
}

.method-list[data-v3-steps].is-tracking > article {
  opacity: 0.38;
}

.method-list[data-v3-steps].is-tracking > article.is-on {
  opacity: 1;
}

.method-list[data-v3-steps] .method-number {
  position: absolute;
  top: 22px;
  inset-inline-start: -64px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--muted);
  font: 700 14px/1 "Montserrat", sans-serif;
  transition: all 0.45s var(--ease);
}

.method-list[data-v3-steps] > article.is-on .method-number,
.method-list[data-v3-steps]:not(.is-tracking) .method-number {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 0 7px rgba(0, 60, 201, 0.12);
}

.v3-rail {
  position: absolute;
  top: 34px;
  bottom: 60px;
  inset-inline-start: 21px;
  width: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.v3-rail i {
  position: absolute;
  inset: 0;
  transform-origin: top;
  transform: scaleY(var(--p, 1));
  background: linear-gradient(var(--blue), var(--blue-light));
}

/* closing band (every page): Talk Yellow, two slow rings, a blue button */
.cta-band .cta-band__inner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(48px, 7vw, 104px) clamp(24px, 5vw, 80px);
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  border-radius: clamp(32px, 4vw, 48px);
  background: var(--yellow);
  color: var(--ink);
  text-align: center;
}

.cta-band .cta-band__inner::before,
.cta-band .cta-band__inner::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border: 1.5px dashed rgba(7, 27, 67, 0.14);
  border-radius: 50%;
  pointer-events: none;
  animation: v3-spin 60s linear infinite;
}

.cta-band .cta-band__inner::after {
  width: 900px;
  height: 900px;
  margin: -450px 0 0 -450px;
  animation-direction: reverse;
  animation-duration: 90s;
}

.cta-band .cta-band__inner h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 64px);
}

html[lang="en"] .cta-band .cta-band__inner h2 {
  letter-spacing: -0.03em;
}

.cta-band .cta-band__inner p {
  max-width: 620px;
  margin-inline: auto;
  color: rgba(7, 27, 67, 0.78);
  font-size: clamp(16px, 1.4vw, 19px);
}

.cta-band .cta-band__inner .button--yellow {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(0, 60, 201, 0.28);
}

/* scroll reveal: a softer, longer arrival than v2 */
.reveal {
  transition:
    opacity 1s var(--ease),
    transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}

/* ---------- widths where the floating cards no longer fit ---------- */
@media (max-width: 1240px) {
  .v3-proof {
    width: min(620px, 100%);
    margin: 28px auto 0;
    display: grid;
    gap: 16px;
  }

  .v3-float {
    position: static;
    width: auto;
    rotate: 0deg !important;
  }

  .v3-float__in {
    animation: v3-rise 1s var(--ease-out) 0.4s backwards;
    box-shadow: 0 1px 2px rgba(7, 27, 67, 0.05), 0 6px 18px rgba(7, 27, 67, 0.07);
  }

  .v3-connectors {
    display: none;
  }

  .v3-float .hero-reviews__toggle,
  .v3-float .hero-reviews__hint {
    display: revert;
  }

  .v3-stats .hero-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v3-stats .hero-trust li,
  .v3-stats .hero-trust li:first-child,
  .v3-stats .hero-trust li:last-child {
    padding: 0 10px;
    border-top: 0;
    border-inline-start: 1px solid var(--line);
    text-align: center;
  }

  .v3-stats .hero-trust li:first-child {
    border-inline-start: 0;
  }

  .v3-stats .hero-trust strong,
  .v3-stats .hero-trust li:first-child strong {
    font-size: 24px;
  }
}

@media (max-width: 1080px) {
  .v3-facts__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .v3-hero .hero-shell {
    padding-top: 22px;
  }

  .v3-hero .hero-copy {
    order: 1;
  }

  .hero--home.v3-hero .hero-visual {
    order: 2;
    margin-top: 14px;
  }

  .hero--home.v3-hero .hero-actions {
    order: 3;
  }

  .v3-visual,
  .v3-hero .hero-visual {
    height: 292px;
    --rx: 118px;
    --ry: 34px;
    --cy: 156px;
    --aw: 214px;
    --ah: 282px;
  }

  .v3-arch {
    border-radius: 107px 107px 26px 26px;
  }

  .v3-actions {
    order: 3;
    width: 100%;
    margin-top: 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .v3-actions .button--primary {
    justify-content: space-between;
    min-height: 56px;
  }

  .v3-actions .button--outline {
    min-height: 52px;
  }

  .v3-proof {
    order: 4;
    margin-top: 22px;
  }

  .v3-title,
  .hero-copy h1.v3-title {
    margin-top: 0;
    font-size: 35px;
    line-height: 1.2;
  }

  html[lang="en"] .v3-title,
  html[lang="en"] .hero-copy h1.v3-title {
    font-size: 42px;
  }

  .v3-hero .hero-copy__lead {
    margin-top: 10px;
    font-size: 15.5px;
    line-height: 1.7;
  }

  .v3-orb__in {
    gap: 8px;
    padding-block: 7px;
    padding-inline: 6px 11px;
    border-radius: 14px;
  }

  .v3-chip {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .v3-chip svg {
    width: 15px;
    height: 15px;
  }

  .v3-orb b {
    font-size: 12.5px;
  }

  .v3-orb small {
    display: none;
  }

  .v3-ticker {
    padding: 16px 0;
  }

  .v3-ticker__item {
    gap: 20px;
    padding-inline-end: 20px;
    font-size: 15.5px;
  }

  .method-list[data-v3-steps] {
    padding-inline-start: 56px;
  }

  .method-list[data-v3-steps] .method-number {
    inset-inline-start: -56px;
    width: 40px;
    height: 40px;
  }

  .v3-rail {
    inset-inline-start: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-v3-load],
  .v3-arch,
  .v3-arch img,
  .v3-orb__in,
  .v3-float__in,
  .v3-mark,
  .v3-ticker__track,
  .cta-band .cta-band__inner::before,
  .cta-band .cta-band__inner::after {
    animation: none !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* ---------- inner page heads (v3): light ground, the picture as the arch ---------- */
.page-head-zone,
.guide-hero {
  position: relative;
  isolation: isolate;
}

.page-head-zone::before,
.guide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(760px 420px at 78% 62%, rgba(38, 183, 255, 0.14), transparent 70%),
    radial-gradient(620px 340px at 22% 8%, rgba(255, 237, 110, 0.2), transparent 70%);
}

html[dir="rtl"] .page-head-zone::before,
html[dir="rtl"] .guide-hero::before {
  background:
    radial-gradient(760px 420px at 22% 62%, rgba(38, 183, 255, 0.14), transparent 70%),
    radial-gradient(620px 340px at 78% 8%, rgba(255, 237, 110, 0.2), transparent 70%);
}

.page-head > *,
.guide-hero .guide-shell > * {
  animation: v3-rise 1s var(--ease-out) backwards;
}

.page-head > :nth-child(2),
.guide-hero .guide-shell > :nth-child(2) { animation-delay: 90ms; }
.page-head > :nth-child(3),
.guide-hero .guide-shell > :nth-child(3) { animation-delay: 180ms; }
.page-head > :nth-child(4),
.guide-hero .guide-shell > :nth-child(4) { animation-delay: 270ms; }
.page-head > :nth-child(n + 5),
.guide-hero .guide-shell > :nth-child(n + 5) { animation-delay: 360ms; }

@media (min-width: 901px) {
  .page-head-zone .section-shell:has(.page-head__visual) {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  }
}

.page-head__visual {
  position: relative;
  width: 100%;
  max-width: 400px;
  justify-self: center;
  aspect-ratio: 4 / 5;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
}

/* the orbit line behind the arch, and a small Talk Yellow moon on it */
.page-head__visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: -16%;
  top: 34%;
  height: 30%;
  border: 1.5px dashed rgba(0, 60, 201, 0.22);
  border-radius: 50%;
}

.page-head__visual::after {
  content: "";
  position: absolute;
  top: 47%;
  inset-inline-start: -13%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 7px rgba(255, 237, 110, 0.35);
  animation: v3-bob 5s ease-in-out infinite;
}

.page-head__visual img {
  border-radius: 50% 50% 28px 28px / 40% 40% 28px 28px;
  background: var(--blue-dark);
  box-shadow: 0 40px 90px rgba(7, 27, 67, 0.25);
  animation: v3-arch-up 1.4s var(--ease-out) 0.25s backwards;
}

/* The two track scenes are landscape: keep each subject inside the arch. */
.page-head__visual img[data-i18n-alt="trackPage.ge.headImageAlt"] {
  object-position: 62% 30%;
}

.page-head__visual img[data-i18n-alt="trackPage.be.headImageAlt"] {
  object-position: 46% 20%;
}

/* Article covers and the blog index cards. */
.guide-cover {
  margin: 28px 0 0;
  overflow: hidden;
  border-radius: clamp(20px, 3vw, 32px);
  aspect-ratio: 16 / 9;
  background: var(--soft-blue);
  box-shadow: var(--shadow-float);
}

.guide-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: v3-settle 2s var(--ease-out) 0.2s backwards;
}

.guide-card__cover {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 1.2s var(--ease-out);
}

.guide-card:hover .guide-card__cover {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .page-head-zone .section-shell:has(.page-head__visual) .page-head__visual {
    width: min(232px, 60vw);
    aspect-ratio: 4 / 5;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-head > *,
  .guide-hero .guide-shell > *,
  .page-head__visual::after,
  .page-head__visual img,
  .guide-cover img {
    animation: none !important;
  }
}

.guide-cover--index {
  aspect-ratio: 21 / 9;
}

.guide-cover--index img {
  object-position: 50% 62%;
}

/* ---------- buttons on light ground (v3): Confidence Blue, per the brand
   sheet ("Talk Yellow: CTA buttons on blue; Confidence Blue: buttons on
   white"). Yellow stays where the ground is blue or navy. ---------- */
.page-head .button--yellow,
.hero--light .hero-actions .button--yellow,
.guide-hero .button--yellow,
.guide-layout .button--yellow,
.newcomer-note .button--yellow,
.price-card .button--yellow,
.v3-facts .button--yellow {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(0, 60, 201, 0.24);
}

/* The second action in a page head reads as a button (outlined pill), not as
   a line of text (Moustafa's rule, 2026-10-07). */
.page-head .hero-actions .text-link,
.hero--light .hero-actions .text-link {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 0 0 1.5px rgba(7, 27, 67, 0.16);
  text-decoration: none;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-head .hero-actions .text-link:hover,
.hero--light .hero-actions .text-link:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1.5px var(--blue);
}

.page-head .hero-actions .text-link::after,
.page-head .hero-actions .text-link::before,
.hero--light .hero-actions .text-link::after,
.hero--light .hero-actions .text-link::before {
  display: none;
}

/* ==========================================================================
   v3.1 motion pass (2026-11-17): more arrival on scroll, page changes that
   move, and pictures that settle. Decoration only; reduced motion stills it.
   ========================================================================== */
:root {
  --ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --mist: var(--soft-blue);
}

/* cards pop: a rise with a small overshoot instead of a plain fade */
.reveal.v3-pop {
  transform: translateY(44px) scale(0.94);
  transition:
    opacity 0.7s var(--ease),
    transform 1.05s var(--ease-spring);
  transition-delay: calc(var(--d, 0) * 1ms);
}

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

/* section heads arrive line by line: the eyebrow, the title, then the text */
.section-intro.reveal {
  opacity: 1;
  transform: none;
}

.section-intro.reveal .eyebrow,
.section-intro.reveal h2,
.section-intro.reveal > p {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  transition:
    opacity 0.8s var(--ease),
    transform 1.1s var(--ease-out),
    filter 0.9s var(--ease);
}

.section-intro.reveal h2 {
  transition-delay: 0.1s;
}

.section-intro.reveal > p {
  transition-delay: 0.26s;
}

.section-intro.reveal.is-visible .eyebrow,
.section-intro.reveal.is-visible h2,
.section-intro.reveal.is-visible > p {
  opacity: 1;
  transform: none;
  filter: none;
}

.section-intro .eyebrow::before {
  transform-origin: var(--line-origin, left) center;
  transition: transform 0.9s var(--ease-out) 0.2s;
}

html[dir="rtl"] .section-intro .eyebrow::before {
  --line-origin: right;
}

.section-intro.reveal:not(.is-visible) .eyebrow::before {
  transform: scaleX(0);
}

/* pictures settle: they arrive a little zoomed in and ease back to frame,
   inside their own box (object-view-box), so nothing spills past the corners */
@supports (object-view-box: inset(0)) {
  .track-cards__cover,
  .guide-card__cover {
    transition: object-view-box 1.8s var(--ease-out);
  }

  .reveal .track-cards__cover,
  .reveal .guide-card__cover {
    object-view-box: inset(8%);
  }

  .reveal.is-visible .track-cards__cover,
  .reveal.is-visible .guide-card__cover {
    object-view-box: inset(0);
  }

  .track-cards article:hover .track-cards__cover,
  .guide-card:hover .guide-card__cover {
    transform: none;
    object-view-box: inset(4%);
  }
}

/* the two track pictures, regenerated at a higher grade (16:9) */
.track-cards__cover {
  aspect-ratio: 16 / 9;
}

/* buttons answer the press */
.button {
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.button:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 0.08s;
}

.button__icon {
  transition: transform 0.45s var(--ease-spring);
}

/* page to page: the old page lifts away and the new one rises in. (The
   header is not given its own transition name: that makes it a backdrop
   root and switches off its frosted blur.) */
::view-transition-old(root) {
  animation: v3-vt-out 0.32s var(--ease) both;
}

::view-transition-new(root) {
  animation: v3-vt-in 0.62s var(--ease-out) 0.06s both;
}

@keyframes v3-vt-out {
  to {
    opacity: 0;
    transform: translateY(-16px) scale(0.985);
    filter: blur(4px);
  }
}

@keyframes v3-vt-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}

/* articles: a thin reading bar under the header, driven by the scroll itself */
@supports (animation-timeline: scroll()) {
  body:has(.guide-layout) .site-header::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--sky, #26b7ff));
    transform-origin: left center;
    animation: v3-read linear both;
    animation-timeline: scroll(root);
  }

  html[dir="rtl"] body:has(.guide-layout) .site-header::after {
    background: linear-gradient(270deg, var(--blue), var(--sky, #26b7ff));
    transform-origin: right center;
  }
}

@keyframes v3-read {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal.v3-pop,
  .section-intro.reveal .eyebrow,
  .section-intro.reveal h2,
  .section-intro.reveal > p {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .section-intro.reveal:not(.is-visible) .eyebrow::before {
    transform: none;
  }

  .reveal .track-cards__cover,
  .reveal .guide-card__cover {
    object-view-box: inset(0);
  }

  .v3-float .hero-reviews__item {
    transform: none;
    filter: none;
  }

  .v3-float .hero-reviews__track {
    transition: none;
  }

  body:has(.guide-layout) .site-header::after {
    display: none;
  }
}

/* ==========================================================================
   v3.2 home body (2026-11-17): the packages panel. The draft's navy panel,
   with both plans as cards; Progress (the plan a new visitor can buy) leads.
   ========================================================================== */

/* plan cards, light ground (pricing page) */
.price-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.price-card-grid .price-card {
  position: relative;
  max-width: none;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(7, 27, 67, 0.05), 0 10px 30px rgba(7, 27, 67, 0.07);
}

.price-card-grid .price-card[data-plan-card="progress"] {
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(7, 27, 67, 0.06), 0 26px 60px -18px rgba(0, 60, 201, 0.28);
}

.price-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.price-card-grid .price-card__label {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.price-card-grid .price-flag {
  padding: 6px 12px 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: var(--lemon);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.price-card-grid .price-flag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.price-card-grid .price-card__bestfor {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.price-card-grid .price-card__price {
  margin: 22px 0 6px;
  align-items: center;
  gap: 8px 12px;
}

.price-card-grid .price-card__price strong {
  order: 0;
  color: var(--blue);
  font-size: clamp(46px, 4.6vw, 64px);
  font-weight: 800;
}

.price-card-grid .price-card__price s {
  order: 1;
  width: auto;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  text-decoration-thickness: 1.5px;
}

.price-card-grid .price-card__save {
  order: 2;
  padding: 6px 12px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}

.price-card-grid .price-card__duration {
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.price-card-grid .price-card__lines {
  margin: 0 0 26px;
  gap: 14px;
}

.price-card-grid .price-card__lines li {
  padding: 0;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 12px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.6;
}

.price-card__tick {
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--blue);
}

.price-card-grid .price-card__cta .button {
  width: 100%;
  min-height: 56px;
  justify-content: center;
}

.price-card__fine {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  text-align: center;
}

/* Premium is for current students (Emma, 9 Sep 2026): the rule opens the
   card as a clear notice, in the one amber of the design */
.price-card-grid .price-card:has(> .price-card__restriction) {
  border: 1px solid var(--line);
}

.price-card-grid .price-card__restriction {
  margin: 0 0 20px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  border: 0;
  border-inline-start: 4px solid var(--amber);
  border-radius: 12px;
  background: var(--lemon);
  color: var(--ink);
  text-align: start;
}

.price-card-grid .price-card__restriction::before {
  content: "";
  grid-row: span 2;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.price-card-grid .price-card__restriction strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.price-card-grid .price-card__restriction span {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
}

/* ---------- the home panel: navy ground ---------- */
.v3-offer {
  padding-block: clamp(56px, 7vw, 96px);
}

.v3-offer__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  border-radius: clamp(28px, 4vw, 44px);
  background: var(--blue-dark, #001744);
  color: var(--white);
}

.v3-offer__glow {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(38, 183, 255, 0.28), transparent 60%),
    radial-gradient(55% 60% at 0% 100%, rgba(0, 60, 201, 0.75), transparent 65%);
  pointer-events: none;
}

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

.v3-offer__glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 80% at 50% 0%, #000 30%, transparent 75%);
}

.v3-offer__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end;
  gap: 28px 56px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.v3-offer .section-intro {
  margin: 0;
  max-width: none;
  display: block;
  text-align: start;
}

.v3-offer .section-intro .eyebrow {
  color: var(--yellow);
}

.v3-offer .section-intro .eyebrow::before {
  background: var(--yellow);
}

.v3-offer .section-intro h2 {
  margin: 14px 0 0;
  color: var(--white);
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.12;
}

.v3-offer .section-intro > p {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  line-height: 1.75;
}

.v3-offer .newcomer-note {
  max-width: none;
  margin: 0;
  padding: 24px;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.v3-offer .newcomer-note .eyebrow {
  margin: 0 0 8px;
  color: var(--yellow);
}

.v3-offer .newcomer-note .eyebrow::before {
  background: var(--yellow);
}

.v3-offer .newcomer-note__title {
  color: var(--white);
  font-size: 19px;
  line-height: 1.45;
}

.v3-offer .newcomer-note__body p:last-child {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px;
  line-height: 1.7;
}

.v3-offer .newcomer-note .button--yellow {
  justify-self: start;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: none;
}

.v3-offer .price-card-grid {
  margin: 0;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: stretch;
}

/* Premium on navy: a quieter glass card, white type */
.v3-offer .price-card[data-plan-card="premium"] {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  color: var(--white);
  backdrop-filter: blur(10px);
}

.v3-offer .price-card[data-plan-card="premium"] .price-card__label,
.v3-offer .price-card[data-plan-card="premium"] .price-card__duration,
.v3-offer .price-card[data-plan-card="premium"] .price-card__lines li {
  color: var(--white);
}

.v3-offer .price-card[data-plan-card="premium"] .price-card__bestfor,
.v3-offer .price-card[data-plan-card="premium"] .price-card__fine {
  color: rgba(255, 255, 255, 0.64);
}

.v3-offer .price-card[data-plan-card="premium"] .price-card__price strong {
  color: var(--white);
}

.v3-offer .price-card[data-plan-card="premium"] .price-card__save {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.v3-offer .price-card[data-plan-card="premium"] .price-card__duration {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.v3-offer .price-card[data-plan-card="premium"] .price-card__tick {
  background: rgba(255, 255, 255, 0.1);
  color: var(--yellow);
}

.v3-offer .price-card[data-plan-card="premium"] .price-card__restriction {
  background: rgba(255, 237, 110, 0.12);
  color: var(--white);
}

.v3-offer .price-card[data-plan-card="premium"] .button--yellow {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
}

.v3-offer .price-card[data-plan-card="premium"] .button--yellow:hover {
  background: var(--white);
  color: var(--ink);
}

.offer-card__actions {
  margin: 28px 0 0;
  justify-content: center;
}

@media (max-width: 980px) {
  .v3-offer__intro,
  .v3-offer .price-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .price-card-grid .price-card {
    padding: 22px;
    border-radius: 24px;
  }

  .v3-offer__panel {
    padding: 26px 16px 18px;
    border-radius: 28px;
  }

  .v3-offer .newcomer-note {
    padding: 18px;
  }

  .v3-offer .newcomer-note .button--yellow {
    justify-self: stretch;
    justify-content: center;
  }
}

/* ==========================================================================
   v3.3 home body (2026-11-17): method as a path beside an example week,
   teachers as four standards, FAQ as cards with a contact card.
   ========================================================================== */
.button--outline-light {
  min-height: 54px;
  padding-inline: 24px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
}

.button--outline-light:hover {
  background: var(--white);
  color: var(--ink);
}

/* ---------- method ---------- */
.v3-method__aside {
  display: grid;
  gap: 28px;
  justify-items: start;
}

.v3-method__aside .section-intro {
  margin: 0;
}

@media (min-width: 1081px) {
  .method .section-intro {
    position: static;
  }

  .v3-method__aside {
    position: sticky;
    top: 110px;
  }
}

.v3-week {
  width: min(100%, 420px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(7, 27, 67, 0.05), 0 18px 44px -14px rgba(7, 27, 67, 0.18);
}

.v3-week__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.v3-week__title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.v3-week__tag {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--lemon);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.v3-week__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.v3-week__list li {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}

.v3-week__list b {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.v3-week__slot {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}

.v3-week__slot small {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.v3-week__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px var(--mist);
}

.v3-week__mentor {
  margin: 16px 0 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  background: var(--mist);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}

.v3-week__pulse {
  position: relative;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.v3-week__pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  animation: v3-week-ping 2.2s var(--ease-out) infinite;
}

@keyframes v3-week-ping {
  from {
    transform: scale(0.4);
    opacity: 0.8;
  }

  to {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* the rows arrive one after another when the card comes into view */
.v3-week.reveal .v3-week__list li,
.v3-week.reveal .v3-week__mentor {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.8s var(--ease-spring);
}

.v3-week.reveal.is-visible .v3-week__list li,
.v3-week.reveal.is-visible .v3-week__mentor {
  opacity: 1;
  transform: none;
}

.v3-week.reveal.is-visible li:nth-child(1) { transition-delay: 0.25s; }
.v3-week.reveal.is-visible li:nth-child(2) { transition-delay: 0.4s; }
.v3-week.reveal.is-visible li:nth-child(3) { transition-delay: 0.55s; }
.v3-week.reveal.is-visible .v3-week__mentor { transition-delay: 0.75s; }

/* the steps: full strength always; the path and the number mark progress */
.method-list[data-v3-steps].is-tracking > article,
.method-list[data-v3-steps].is-tracking > article.is-on {
  opacity: 1;
}

.method-list[data-v3-steps] > article {
  margin-bottom: 16px;
  padding: 26px 28px;
  border: 1px solid transparent;
  border-radius: 24px;
  background: var(--soft);
  transition:
    background-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease),
    transform 0.6s var(--ease-out);
}

.method-list[data-v3-steps] > article.is-on {
  border-color: var(--line);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(7, 27, 67, 0.05), 0 16px 40px -16px rgba(7, 27, 67, 0.2);
}

.method-list[data-v3-steps] > article h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 800;
}

.method-list[data-v3-steps] > article p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.method-list[data-v3-steps] .method-number {
  top: 26px;
}

.v3-rail {
  width: 3px;
  top: 40px;
  bottom: 80px;
  inset-inline-start: 20.5px;
}

/* ---------- teachers: four standards on the blue ground ---------- */
@media (min-width: 1081px) {
  .home-teachers .section-shell {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    column-gap: 72px;
    row-gap: 28px;
    align-items: start;
  }

  .home-teachers .section-intro {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .home-teachers .v3-tiles {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .home-teachers .button--outline-light {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
}

.v3-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}

.v3-tile {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  backdrop-filter: blur(8px);
  transition:
    transform 0.5s var(--ease-out),
    background-color 0.4s var(--ease);
}

.v3-tile:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.13);
}

.v3-tile:nth-child(2) {
  translate: 0 28px;
}

.v3-tile:nth-child(4) {
  translate: 0 28px;
}

.v3-tile__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--yellow);
  color: var(--ink);
}

.v3-tile__icon svg {
  width: 24px;
  height: 24px;
}

.v3-tile h3 {
  margin: 20px 0 0;
  color: var(--white);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.v3-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- FAQ: cards, and a contact card under the title ---------- */
@media (min-width: 981px) {
  .faq-shell .section-intro {
    position: sticky;
    top: 110px;
    align-self: start;
  }
}

.faq-list {
  display: grid;
  gap: 10px;
  border-top: 0;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.4s var(--ease);
}

.faq-item:has(button[aria-expanded="true"]) {
  border-color: rgba(0, 60, 201, 0.28);
  box-shadow: 0 14px 34px -14px rgba(0, 60, 201, 0.22);
}

.faq-item button {
  min-height: 68px;
  padding: 16px 22px;
  color: var(--ink);
  font-size: 16px;
}

.faq-item button span:last-child {
  width: 34px;
  height: 34px;
  border-color: var(--line);
  background: var(--soft);
  transition:
    transform 0.35s var(--ease-spring),
    background-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.faq-item button[aria-expanded="true"] span:last-child {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.faq-answer {
  max-width: none;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.v3-ask {
  margin-top: 32px;
  padding: 24px;
  display: grid;
  gap: 6px;
  justify-items: start;
  border-radius: 24px;
  background: var(--blue-dark, #001744);
  color: var(--white);
}

.v3-ask__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.v3-ask__body {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px;
}

.v3-ask__phone {
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--ink);
  font: 800 17px/1.2 "Montserrat", sans-serif;
  text-decoration: none;
  transition: transform 0.3s var(--ease-spring);
}

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

@media (max-width: 760px) {
  .v3-tiles {
    grid-template-columns: 1fr;
  }

  .v3-tile:nth-child(2),
  .v3-tile:nth-child(4) {
    translate: none;
  }

  .method-list[data-v3-steps] > article {
    padding: 20px;
  }

  .v3-week__list li {
    grid-template-columns: 64px 1fr auto;
  }

  .faq-item button {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 16px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v3-week.reveal .v3-week__list li,
  .v3-week.reveal .v3-week__mentor {
    opacity: 1;
    transform: none;
  }

  .v3-week__pulse::after {
    animation: none;
  }
}

/* ==========================================================================
   v3.4 inner pages (2026-11-17): the shared parts every page reuses. Numbered
   steps on one track, cards with weight, a real stats strip, a contact-led
   FAQ, "next steps" tiles with a clear booking tile, tables and level cards.
   ========================================================================== */

/* ---------- numbered steps (free trial, teachers, how it works, pricing) ---------- */
.method-list:not([data-v3-steps]) {
  position: relative;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 18px;
  padding-top: 24px;
}

@media (min-width: 981px) {
  .method-list:not([data-v3-steps])::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 24px;
    inset-inline: 46px;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(0, 60, 201, 0.35) 0 8px, transparent 8px 15px);
  }
}

.method-list:not([data-v3-steps]) > article {
  position: relative;
  padding: 44px 26px 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(7, 27, 67, 0.04), 0 10px 30px rgba(7, 27, 67, 0.06);
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.method-list:not([data-v3-steps]) > article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.method-list:not([data-v3-steps]) .method-number {
  position: absolute;
  z-index: 2;
  top: -24px;
  inset-inline-start: 24px;
  width: 48px;
  height: 48px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font: 700 15px/1 "Montserrat", sans-serif;
  letter-spacing: 0;
  box-shadow: 0 0 0 6px var(--soft);
}

.section--soft .method-list:not([data-v3-steps]) .method-number {
  box-shadow: 0 0 0 6px var(--soft);
}

.method-list:not([data-v3-steps]) > article:first-child .method-number {
  background: var(--yellow);
  color: var(--ink);
}

.method-list:not([data-v3-steps]) h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.method-list:not([data-v3-steps]) p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- cards ---------- */
.track-focus__grid {
  gap: 20px;
}

.track-focus__card {
  position: relative;
  gap: 12px;
  padding: 32px 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(7, 27, 67, 0.04), 0 10px 30px rgba(7, 27, 67, 0.06);
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out),
    border-color 0.4s var(--ease);
}

.track-focus__card::before {
  content: "";
  width: 38px;
  height: 5px;
  margin-bottom: 6px;
  border-radius: 3px;
  background: var(--yellow);
}

.track-focus__card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 60, 201, 0.22);
  box-shadow: var(--shadow-float);
}

.track-focus__card h2,
.track-focus__card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 800;
  line-height: 1.3;
}

.track-focus__card > p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
}

.track-focus__card > .text-link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--blue);
  font-weight: 700;
}

/* ---------- the stats strip ---------- */
.track-fact-row {
  gap: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(7, 27, 67, 0.04), 0 14px 40px -12px rgba(7, 27, 67, 0.12);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.track-fact-row > div {
  position: relative;
  padding: 22px 24px;
  border: 0;
  border-radius: 20px;
  background: none;
}

.track-fact-row > div + div::before {
  content: "";
  position: absolute;
  inset-block: 24px;
  inset-inline-start: 0;
  width: 1px;
  background: var(--line);
}

.track-fact-row strong {
  color: var(--blue);
  font: 800 clamp(30px, 3vw, 42px)/1 "Montserrat", sans-serif;
  letter-spacing: -0.02em;
}

.track-fact-row span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- FAQ on inner pages: the "all questions" link sits under the list ---------- */
.page-faq .faq-shell > .text-link {
  grid-column: -2;
  justify-self: start;
  margin-top: 6px;
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px rgba(7, 27, 67, 0.16);
  text-decoration: none;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-faq .faq-shell > .text-link:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1.5px var(--blue);
}

.page-faq .faq-shell > .text-link::before,
.page-faq .faq-shell > .text-link::after {
  display: none;
}

/* ---------- next steps: tiles with an arrow; booking is the blue one ---------- */
.related-links {
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.related-links a {
  position: relative;
  min-height: 132px;
  padding: 26px;
  padding-inline-end: 84px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(7, 27, 67, 0.04), 0 10px 30px rgba(7, 27, 67, 0.06);
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    border-color 0.3s var(--ease);
}

.related-links a::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 24px;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  background: var(--mist);
  transition:
    transform 0.45s var(--ease-spring),
    background-color 0.3s var(--ease);
}

.related-links a::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  inset-inline-end: 42px;
  width: 9px;
  height: 9px;
  margin-top: -5px;
  border-top: 2.5px solid var(--blue);
  border-right: 2.5px solid var(--blue);
  transform: rotate(45deg);
  transition:
    inset-inline-end 0.45s var(--ease-spring),
    border-color 0.3s var(--ease);
}

html[dir="rtl"] .related-links a::before {
  transform: rotate(-135deg);
}

.related-links a:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 60, 201, 0.25);
  box-shadow: var(--shadow-float);
}

.related-links a:hover::after {
  background: var(--blue);
}

.related-links a:hover::before {
  inset-inline-end: 38px;
  border-color: var(--white);
}

.related-links a strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
}

.related-links a span {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.related-links a[href*="#book"] {
  border-color: var(--blue);
  background: var(--blue);
}

.related-links a[href*="#book"] strong {
  color: var(--white);
}

.related-links a[href*="#book"] span {
  color: rgba(255, 255, 255, 0.8);
}

.related-links a[href*="#book"]::after {
  background: var(--yellow);
}

.related-links a[href*="#book"]::before,
.related-links a[href*="#book"]:hover::before {
  border-color: var(--ink);
}

.related-links a[href*="#book"]:hover::after {
  background: var(--white);
}

/* ---------- levels (curriculum, General and Business English) ---------- */
.level-block {
  border-radius: 24px;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.4s var(--ease);
}

.level-block:hover {
  border-color: rgba(0, 60, 201, 0.25);
}

.level-block[open] {
  border-color: rgba(0, 60, 201, 0.28);
  box-shadow: 0 16px 40px -16px rgba(0, 60, 201, 0.22);
}

/* ---------- tables ---------- */
.table-scroll {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(7, 27, 67, 0.04), 0 10px 30px rgba(7, 27, 67, 0.06);
}

.table-scroll .plan-table {
  margin: 0;
}

.table-scroll .plan-table th,
.table-scroll .plan-table td {
  padding: 15px 20px;
}

.table-scroll .plan-table thead th {
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.table-scroll .plan-table tbody tr {
  transition: background-color 0.25s var(--ease);
}

.table-scroll .plan-table tbody tr:hover {
  background: var(--mist);
}

/* ---------- advisors (real people) ---------- */
.advisor-card {
  border-radius: 26px;
  overflow: hidden;
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.advisor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

/* ---------- footer: brand, links in columns, contact ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 7vw, 88px);
  border-radius: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 44px) 0 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -40%;
  inset-inline-end: -10%;
  width: 60%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(0, 60, 201, 0.55), transparent);
  pointer-events: none;
}

.site-footer > * {
  position: relative;
}

.footer-shell {
  grid-template-columns: minmax(200px, 0.8fr) minmax(0, 2fr);
  align-items: start;
  row-gap: 26px;
}

.footer-shell p {
  grid-column: 1;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.7;
}

.footer-shell img {
  grid-column: 1;
}

.footer-shell nav {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 24px;
  font-size: 14px;
}

.footer-shell nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

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

.footer-more {
  grid-column: 1;
}

@media (max-width: 860px) {
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .footer-shell nav {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .track-fact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border-radius: 22px;
  }

  .track-fact-row > div {
    padding: 16px;
    background: var(--soft);
    border-radius: 16px;
  }

  .track-fact-row > div + div::before {
    display: none;
  }

  .method-list:not([data-v3-steps]) {
    gap: 34px;
  }

  .related-links a {
    min-height: 0;
  }
}

/* inner pages breathe less between sections: the old 150px gaps read as
   empty space once the sections carry real cards */
.page-head-zone ~ .section,
.price-card-zone ~ .section {
  padding-block: clamp(64px, 7vw, 104px);
}

.page-head-zone ~ .section--joined,
.price-card-zone ~ .section--joined {
  padding-top: clamp(24px, 3vw, 40px);
}

/* light ground keeps buttons blue (brand sheet) */
.section-cta .button--yellow,
.more-plans .button--dark {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(0, 60, 201, 0.24);
}

/* four cards sit two by two, never three and an orphan */
@media (min-width: 900px) {
  .track-focus__grid:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   v3.5 Package page (2026-11-17): facts as stat cards, the price actions as
   one card, flexibility as three number cards, reviews as quote cards, and
   the booking hand-off as a single navy panel with the yellow button.
   ========================================================================== */

/* plan facts: a 2 x 2 of stat cards */
.package .price-stage {
  border-top: 0;
  display: grid;
  gap: 20px;
}

.package-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.package-facts article {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(7, 27, 67, 0.04), 0 10px 30px rgba(7, 27, 67, 0.06);
}

.package-facts .fact-number {
  color: var(--blue);
  font: 800 clamp(30px, 3vw, 40px)/1 "Montserrat", sans-serif;
  letter-spacing: -0.02em;
}

.package-facts strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.package-facts p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.price-primary {
  order: 2;
  padding: 26px;
  display: grid;
  gap: 10px;
  border: 0;
  border-radius: 26px;
  background: var(--blue-dark, #001744);
  color: var(--white);
}

.price-primary .price-note {
  margin: 0;
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
}

.price-primary a:not(.button) {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-underline-offset: 4px;
}

.price-primary a:not(.button):hover {
  color: var(--yellow);
}

.price-primary .price-cta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.price-primary .price-cta .button--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.price-primary .fine-print {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

.price-primary .text-button {
  color: var(--yellow);
}

.included-grid button {
  border-color: var(--line);
  border-radius: 18px;
  transition:
    border-color 0.3s var(--ease),
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}

.included-grid button:hover,
.included-grid button[aria-pressed="true"],
.included-grid button.is-active {
  border-color: rgba(0, 60, 201, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(0, 60, 201, 0.3);
}

/* flexibility: three number cards */
.policy-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 0;
}

.policy-list article {
  min-height: 0;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(7, 27, 67, 0.04), 0 10px 30px rgba(7, 27, 67, 0.06);
}

.policy-list article:nth-child(2) {
  border-color: var(--blue);
  background: var(--blue);
}

.policy-list article:nth-child(2) .policy-icon,
.policy-list article:nth-child(2) h3 {
  color: var(--white);
}

.policy-list article:nth-child(2) p {
  color: rgba(255, 255, 255, 0.78);
}

.policy-icon {
  color: var(--blue);
  font: 800 clamp(48px, 5vw, 72px)/1 "Montserrat", sans-serif;
  letter-spacing: -0.04em;
}

.policy-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.policy-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* reviews: quote cards */
.review-grid {
  gap: 18px;
}

.review-card {
  position: relative;
  padding: 30px 28px 26px;
  gap: 12px;
  border-radius: 26px;
  box-shadow: 0 1px 2px rgba(7, 27, 67, 0.04), 0 10px 30px rgba(7, 27, 67, 0.06);
}

.review-card::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  inset-inline-end: 22px;
  color: var(--lemon);
  font: 700 92px/1 Georgia, serif;
  pointer-events: none;
}

html[dir="rtl"] .review-card::before {
  content: "\201D";
}

.review-card .review-stars {
  position: relative;
  color: var(--amber);
  letter-spacing: 2px;
}

.review-card h3 {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.review-card blockquote {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.8;
}

.review-card footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

/* the booking hand-off: one navy panel, the LP button in yellow */
.book.section {
  padding-block: clamp(56px, 7vw, 96px);
  background: transparent;
}

.book-shell {
  width: var(--shell);
  min-height: 0;
  margin-inline: auto;
  overflow: hidden;
  border-radius: clamp(28px, 4vw, 44px);
  background: var(--blue-dark, #001744);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.book-copy {
  padding: clamp(36px, 5vw, 72px);
}

.booking-form {
  padding: clamp(32px, 5vw, 64px);
  gap: 18px;
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(38, 183, 255, 0.2), transparent 70%),
    var(--blue-dark, #001744);
  color: var(--white);
}

.booking-form h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.3;
}

.booking-form .booking-summary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

.booking-form .booking-summary p {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
  line-height: 1.7;
}

.booking-form .booking-summary__icon {
  background: var(--yellow);
  color: var(--ink);
}

.booking-form .form-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

.booking-form .form-actions .button--yellow {
  width: 100%;
  min-height: 60px;
  justify-content: center;
  background: var(--yellow);
  color: var(--ink);
  font-size: 17px;
  box-shadow: 0 16px 40px -12px rgba(255, 237, 110, 0.45);
}

@media (max-width: 980px) {
  .book-shell {
    grid-template-columns: 1fr;
  }

  .policy-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .package-facts {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .package-facts article {
    padding: 18px;
  }

  .book.section {
    padding-inline: 0;
  }

  .book-shell {
    width: calc(100% - 24px);
    border-radius: 28px;
  }

  .book-copy,
  .booking-form {
    padding: 28px 20px;
  }
}

/* pricing head: the portrait beside the text column (v3, 17 Nov 2026) */
@media (min-width: 901px) {
  .price-card-zone .page-head:has(.page-head__visual) {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    column-gap: clamp(32px, 5vw, 72px);
    align-items: start;
  }

  .price-card-zone .page-head:has(.page-head__visual) > * {
    grid-column: 1;
  }

  .price-card-zone .page-head > .page-head__visual {
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: start;
  }
}

@media (max-width: 900px) {
  .price-card-zone .page-head__visual {
    display: none;
  }
}

/* phones: four chips around the head instead of six, so none overlap */
@media (max-width: 760px) {
  .v3-ring .v3-orb:nth-child(5),
  .v3-ring .v3-orb:nth-child(6) {
    display: none;
  }

  .v3-ring .v3-orb:nth-child(1) { --sin: 0.342; --cos: 0.94; }
  .v3-ring .v3-orb:nth-child(2) { --sin: 0.94; --cos: -0.342; }
  .v3-ring .v3-orb:nth-child(3) { --sin: -0.342; --cos: -0.94; }
  .v3-ring .v3-orb:nth-child(4) { --sin: -0.94; --cos: 0.342; }
}

/* ==========================================================================
   v3.6 articles (2026-11-17): a white reading page, numbered chapters,
   ink body text at a reading size, real bullets, and a strong CTA card.
   ========================================================================== */
.guide-layout:has(.guide-review) .guide-shell {
  counter-reset: chapter;
  max-width: 880px;
  padding: clamp(28px, 5vw, 72px);
  border: 1px solid var(--line);
  border-radius: clamp(28px, 4vw, 40px);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(7, 27, 67, 0.04), 0 24px 60px -24px rgba(7, 27, 67, 0.18);
}

.guide-layout:has(.guide-review) .guide-section {
  counter-increment: chapter;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.guide-layout:has(.guide-review) .guide-section > h2 {
  position: relative;
  padding-top: 46px;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.2;
}

.guide-layout:has(.guide-review) .guide-section > h2::before {
  content: counter(chapter, decimal-leading-zero);
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--lemon);
  color: var(--ink);
  font: 800 13px/1.4 "Montserrat", sans-serif;
  letter-spacing: 0.04em;
}

.guide-layout .guide-section p {
  max-width: none;
  color: #33415f;
  font-size: 18px;
  line-height: 1.85;
}

.guide-layout .guide-section ul,
.guide-layout .guide-practice ol {
  padding: 0;
  gap: 12px;
  list-style: none;
}

.guide-layout .guide-section ul > li {
  position: relative;
  padding-inline-start: 30px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
}

.guide-layout .guide-section ul > li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  inset-inline-start: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--mist);
}

.guide-layout .guide-practice ol {
  counter-reset: drill;
}

.guide-layout .guide-practice ol > li {
  position: relative;
  counter-increment: drill;
  padding-inline-start: 42px;
  font-size: 17px;
  line-height: 1.75;
}

.guide-layout .guide-practice ol > li::before {
  content: counter(drill);
  position: absolute;
  top: 0.15em;
  inset-inline-start: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font: 700 13px/1 "Montserrat", sans-serif;
}

.guide-practice {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 28px;
}

.guide-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 30px;
  background: var(--blue-dark, #001744);
}

.guide-cta::after {
  content: "";
  position: absolute;
  top: -40%;
  inset-inline-end: -20%;
  width: 70%;
  height: 140%;
  background: radial-gradient(closest-side, rgba(0, 60, 201, 0.7), transparent);
  pointer-events: none;
}

.guide-cta > * {
  position: relative;
  z-index: 1;
}

.guide-cta h2 {
  color: var(--white);
}

.guide-layout .guide-cta .button--yellow {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 14px 34px -12px rgba(255, 237, 110, 0.5);
}

.guide-review {
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--soft);
}

.guide-answer {
  border-radius: 24px;
  border-inline-start: 5px solid var(--yellow);
}

/* blog index: the cards lift and their covers settle (v3.1 covers rule) */
.guide-card {
  border-radius: 26px;
  overflow: hidden;
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-float);
}

@media (max-width: 760px) {
  .guide-layout:has(.guide-review) .guide-shell {
    width: calc(100% - 16px);
    padding: 22px 18px;
  }

  .guide-layout .guide-section p {
    font-size: 16.5px;
  }
}

/* statement sections (a title and a paragraph, no cards): a navy panel so
   they read as a deliberate pause, not an empty block */
.teacher-matching .section-shell,
.hub-method .section-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 80px);
  border-radius: clamp(28px, 4vw, 44px);
  background: var(--blue-dark, #001744);
  color: var(--white);
}

.teacher-matching .section-shell::before,
.hub-method .section-shell::before {
  content: "";
  position: absolute;
  top: -50%;
  inset-inline-end: -15%;
  width: 60%;
  height: 160%;
  background: radial-gradient(closest-side, rgba(0, 60, 201, 0.75), transparent);
  pointer-events: none;
}

.teacher-matching .section-shell > *,
.hub-method .section-shell > * {
  position: relative;
}

.teacher-matching .section-intro,
.hub-method .section-intro {
  max-width: 820px;
  margin-bottom: 0;
}

.teacher-matching .section-intro .eyebrow,
.hub-method .section-intro .eyebrow {
  color: var(--yellow);
}

.teacher-matching .section-intro .eyebrow::before,
.hub-method .section-intro .eyebrow::before {
  background: var(--yellow);
}

.teacher-matching .section-intro h2,
.hub-method .section-intro h2 {
  color: var(--white);
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.12;
}

.teacher-matching .section-intro > p,
.hub-method .section-intro > p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

.teacher-matching .fine-print {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.55);
}

.hub-method .section-collapse-toggle {
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--white);
}

/* the outlined second action never shows the old drawn underline inside it */
.page-head .hero-actions .text-link span,
.hero--light .hero-actions .text-link span {
  border: 0;
  background: none;
  text-decoration: none;
}

/* ==========================================================================
   v3.2 magic layer (2026-11-22)
   The living picture, drifting light, sparks, and the phone layout that keeps
   the page short. app.js: bindMagic. Everything here is decoration: with no
   script, or with reduced motion, the page is the still v3 page.
   ========================================================================== */

/* ---------- the living picture: a silent loop over the still ---------- */
.live-video {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s var(--ease-out);
}

.is-live > .live-video {
  opacity: 1;
}

.has-live {
  position: relative;
}

.live-frame {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.live-frame > .live-video {
  object-position: 50% 50%;
}

/* ---------- drifting light ---------- */
.has-stardust {
  isolation: isolate;
}

.stardust {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.v3-arch > .stardust {
  z-index: 2;
  mix-blend-mode: screen;
}

/* the arch glows a little once the picture is alive */
.v3-arch::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(70% 45% at 50% 0%, rgba(255, 237, 110, 0.16), transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

/* ---------- sparks ---------- */
.spark-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.spark {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--yellow);
  filter: drop-shadow(0 0 1.5px rgba(0, 60, 201, 0.6));
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  transform: translate(-50%, -50%) scale(0);
  will-change: transform, opacity;
}

.spark--dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  clip-path: none;
}

/* ---------- a pool of light that follows the pointer on the navy panel ---------- */
.magic-glow {
  position: absolute;
  z-index: -1;
  top: -260px;
  left: -260px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 237, 110, 0.16), rgba(38, 183, 255, 0.1) 45%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out);
}

.magic-glow.is-on {
  opacity: 1;
}

/* ---------- a single pass of light across the headline's second line ----------
   Two layers on the marked text: the light, clipped to the letters, sits above
   the yellow stroke, so the letter tails stay in front of the underline. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  @media (prefers-reduced-motion: no-preference) {
    .v3-hero .v3-mark {
      background-image:
        linear-gradient(100deg, var(--blue) 42%, var(--blue-light) 50%, var(--blue) 58%),
        linear-gradient(var(--yellow), var(--yellow));
      background-size: 300% 100%, 100% 0.11em;
      background-position: 100% 0, 0 86%;
      -webkit-background-clip: text, border-box;
      background-clip: text, border-box;
      -webkit-text-fill-color: transparent;
      animation:
        magic-mark 1.2s var(--ease-out) 1s backwards,
        magic-sweep 2.4s var(--ease-out) 1.4s backwards;
    }

    html[dir="rtl"] .v3-hero .v3-mark {
      background-position: 100% 0, 100% 90%;
      animation-name: magic-mark, magic-sweep-rtl;
    }
  }
}

@keyframes magic-mark {
  from {
    background-size: 300% 100%, 0% 0.11em;
  }
}

@keyframes magic-sweep {
  from {
    background-position: 0 0, 0 86%;
  }
}

@keyframes magic-sweep-rtl {
  from {
    background-position: 0 0, 100% 90%;
  }
}

/* ---------- the plan switch and the swipe dots exist on phones only ---------- */
.plan-switch,
.swipe-dots,
.faq-more {
  display: none;
}

@media (max-width: 760px) {
  /* two course cards side by side, swiped; the second one peeks in */
  .track-cards {
    display: flex;
    gap: 12px;
    margin-inline: -20px;
    padding: 4px 20px 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
  }

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

  .track-cards > article {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .track-cards > article .track-cards__cover {
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
  }

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

  .swipe-dots i {
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: rgba(0, 60, 201, 0.22);
    transition: width 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
  }

  .swipe-dots i.is-on {
    width: 22px;
    background: var(--blue);
  }

  /* reviews swipe too, instead of stacking */
  .review-grid {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-inline: -20px;
    padding: 4px 20px 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
  }

  .review-grid::-webkit-scrollbar {
    display: none;
  }

  .review-grid > .review-card {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  /* a long question list: five first, the rest behind one button */
  .faq-list.is-short > :nth-child(n + 6) {
    display: none;
  }

  .faq-more:not([hidden]) {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    padding: 10px 18px;
    border: 1.5px solid var(--blue);
    border-radius: 999px;
    background: transparent;
    color: var(--blue);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  /* one plan at a time */
  .plan-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 0 0 14px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(0, 60, 201, 0.08);
  }

  .v3-offer .plan-switch {
    background: rgba(255, 255, 255, 0.1);
  }

  .plan-switch button {
    min-height: 44px;
    padding: 8px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
  }

  .plan-switch button[aria-pressed="true"] {
    background: var(--yellow);
    color: var(--blue-dark, #001744);
  }

  .price-card-grid[data-plan-show="progress"] > [data-plan-card]:not([data-plan-card="progress"]),
  .price-card-grid[data-plan-show="premium"] > [data-plan-card]:not([data-plan-card="premium"]) {
    display: none;
  }

  .price-card-grid[data-plan-show] > [data-plan-card] {
    animation: magic-plan-in 0.45s var(--ease-out);
  }

  /* the footer: three columns of links, less air */
  .site-footer {
    padding-top: 40px;
  }

  .footer-shell {
    row-gap: 14px;
    padding-bottom: 22px;
  }

  .footer-shell nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 10px;
    font-size: 13px;
  }

  .footer-shell nav a,
  .footer-shell nav button {
    display: flex;
    align-items: center;
    min-height: 40px;
  }

  .footer-contact {
    gap: 0;
    padding-top: 6px;
    margin-top: 0;
  }

  .footer-contact__group h2[role="button"] {
    min-height: 46px;
  }

  .footer-contact__group h2 {
    margin: 0;
  }

  .footer-contact__group:not(.is-collapsed) {
    padding-bottom: 12px;
  }
}

@keyframes magic-plan-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-card-grid[data-plan-show] > [data-plan-card] {
    animation: none;
  }
}

/* ---------- the phone menu (2026-11-22): rows you can press, the current page
   marked. Pages only: booking stays in the header and the sticky bar ---------- */
.mobile-nav {
  gap: 6px;
  padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--white) 0%, var(--soft-blue) 100%);
  font-size: 21px;
}

.mobile-nav:focus {
  outline: none;
}

.mobile-nav > a {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  color: var(--blue-dark, #001744);
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.mobile-nav > a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-block-start: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
  opacity: 0.3;
  transform: rotate(45deg);
}

html[dir="rtl"] .mobile-nav > a::after {
  transform: rotate(-45deg);
}

.mobile-nav > a:active {
  background: rgba(0, 60, 201, 0.08);
  transform: scale(0.985);
}

.mobile-nav > a[aria-current="page"] {
  background: rgba(0, 60, 201, 0.08);
  color: var(--blue);
}

.mobile-nav > a[aria-current="page"]::after {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 2px var(--blue);
  opacity: 1;
  transform: none;
}

.mobile-nav > a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

@media (prefers-reduced-motion: no-preference) {
  .mobile-nav:not([hidden]) {
    animation: menu-open 0.3s var(--ease-out);
  }

  .mobile-nav:not([hidden]) > * {
    animation: menu-row 0.5s var(--ease-out) backwards;
  }

  .mobile-nav:not([hidden]) > :nth-child(2) { animation-delay: 40ms; }
  .mobile-nav:not([hidden]) > :nth-child(3) { animation-delay: 80ms; }
  .mobile-nav:not([hidden]) > :nth-child(4) { animation-delay: 120ms; }
  .mobile-nav:not([hidden]) > :nth-child(5) { animation-delay: 160ms; }
  .mobile-nav:not([hidden]) > :nth-child(6) { animation-delay: 200ms; }
  .mobile-nav:not([hidden]) > :nth-child(7) { animation-delay: 240ms; }
  .mobile-nav:not([hidden]) > :nth-child(8) { animation-delay: 280ms; }
  .mobile-nav:not([hidden]) > :nth-child(n + 9) { animation-delay: 330ms; }
}

@keyframes menu-open {
  from {
    opacity: 0;
  }
}

@keyframes menu-row {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ==========================================================================
   v3.3 colour pass (2026-11-22)
   One dark ground (Riyadh Night), one action blue (Confidence Blue), yellow
   only as the highlight. Before this the page showed three different blue
   grounds, and a yellow wash sat behind the headline on a blue-tinted page.
   ========================================================================== */

/* the head: the glow behind the title is white light, not a yellow tint */
.v3-hero__halo {
  background:
    radial-gradient(900px 520px at 50% 74%, rgba(38, 183, 255, 0.14), transparent 70%),
    radial-gradient(700px 380px at 50% 14%, rgba(255, 255, 255, 0.9), transparent 70%);
}

/* every dark panel is the same navy, lit the same way as the plans panel */
.section--blue {
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(38, 183, 255, 0.28), transparent 60%),
    radial-gradient(55% 60% at 0% 100%, rgba(0, 60, 201, 0.75), transparent 65%),
    var(--blue-dark);
}

html[dir="rtl"] .section--blue {
  background:
    radial-gradient(60% 70% at 0% 0%, rgba(38, 183, 255, 0.28), transparent 60%),
    radial-gradient(55% 60% at 100% 100%, rgba(0, 60, 201, 0.75), transparent 65%),
    var(--blue-dark);
}

/* home: the teachers block sits right above the navy plans panel, so it is the
   light one (Blue Mist ground, white tiles) */
.home-teachers.section--blue,
html[dir="rtl"] .home-teachers.section--blue {
  background: var(--soft-blue);
  color: var(--ink);
}

.home-teachers.section--blue::after {
  border-color: rgba(0, 60, 201, 0.14);
}

.home-teachers.section--blue .section-intro h2,
.home-teachers.section--blue strong {
  color: var(--ink);
}

.home-teachers.section--blue .section-intro > p {
  color: var(--muted);
}

.home-teachers.section--blue .section-intro .eyebrow {
  color: var(--blue);
}

.home-teachers.section--blue .section-intro .eyebrow::before {
  background: var(--blue);
}

.home-teachers.section--blue .v3-tile {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-small);
  backdrop-filter: none;
}

.home-teachers.section--blue .v3-tile:hover {
  background: var(--white);
  box-shadow: var(--shadow);
}

.home-teachers.section--blue .v3-tile h3 {
  color: var(--ink);
}

.home-teachers.section--blue .v3-tile p {
  color: var(--muted);
}

.home-teachers.section--blue .button--outline-light,
.home-teachers.section--blue .section-collapse-toggle {
  border-color: var(--blue);
  background: transparent;
  color: var(--blue);
}

.home-teachers.section--blue .button--outline-light:hover {
  background: var(--blue);
  color: var(--white);
}

/* ---------- the lesson demo card (Package head): it was dark glass made for the
   old blue hero, and read as a grey bezel on the light v3 ground ---------- */
.hero-class-preview {
  padding: 0;
  border: 0;
  border-radius: 32px;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

.lesson-call {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(170deg, var(--white) 0%, var(--soft-blue) 100%);
  box-shadow: var(--shadow-float);
}

.lesson-call__board {
  border-color: var(--line);
  border-radius: 22px;
  background:
    linear-gradient(rgba(0, 60, 201, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 60, 201, 0.045) 1px, transparent 1px),
    var(--white);
  background-size: 26px 26px;
}

.lesson-call__slide {
  border-color: var(--line);
  background: var(--white);
  box-shadow: var(--shadow-small);
}

.call-tile {
  border-color: var(--line);
  background: var(--soft-blue);
}

.call-tile--learner {
  border-color: rgba(255, 237, 110, 0.9);
  background: var(--lemon);
}

/* inner page heads: the same white light as the home head, no yellow tint */
.page-head-zone::before,
.guide-hero::before {
  background:
    radial-gradient(760px 420px at 78% 62%, rgba(38, 183, 255, 0.14), transparent 70%),
    radial-gradient(620px 340px at 22% 8%, rgba(255, 255, 255, 0.9), transparent 70%);
}

html[dir="rtl"] .page-head-zone::before,
html[dir="rtl"] .guide-hero::before {
  background:
    radial-gradient(760px 420px at 22% 62%, rgba(38, 183, 255, 0.14), transparent 70%),
    radial-gradient(620px 340px at 78% 8%, rgba(255, 255, 255, 0.9), transparent 70%);
}

/* ---------- Package head (2026-11-22): the arch portrait, with the practice
   moment as a small speech card on it. The old app-screen mock (grid board,
   teacher and learner tiles) is gone; the three level scenes still rotate. ---------- */
.plans-visual {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  padding-bottom: 104px;
}

.plans-visual > .page-head__visual {
  grid-area: 1 / 1;
  width: min(100%, 380px);
}

.plans-visual > .hero-class-preview {
  z-index: 3;
  grid-area: 1 / 1;
  align-self: end;
  justify-self: start;
  width: min(100%, 320px);
  margin-bottom: -104px;
  rotate: -2deg;
}

html[dir="rtl"] .plans-visual > .hero-class-preview {
  rotate: 2deg;
}

.plans-visual .lesson-call {
  padding: 16px 18px 14px;
  border-radius: 26px;
  background: var(--white);
}

.plans-visual .lesson-call__board {
  display: block;
  min-height: 0;
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.plans-visual .lesson-call__tiles {
  display: none;
}

.plans-visual .lesson-call__slide {
  padding: 12px 0 2px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.plans-visual .lesson-scene {
  gap: 10px;
}

.plans-visual .lesson-call__text {
  font-size: 14px;
}

.plans-visual .lesson-call__full .lesson-call__text {
  font-size: 17px;
  line-height: 1.5;
}

.plans-visual .lesson-call__steps {
  margin: 12px 0 0;
}

.plans-visual .lesson-call__steps li {
  border-color: var(--line);
  background: var(--soft);
  font-size: 11.5px;
}

.plans-visual .lesson-call__steps li.is-now {
  border-color: var(--yellow);
  background: var(--yellow);
}

@media (min-width: 1081px) {
  .plans-visual > .page-head__visual {
    justify-self: end;
  }
}

@media (max-width: 760px) {
  .plans-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
  }

  .plans-visual > .page-head__visual {
    width: min(64%, 250px);
  }

  .hero .plans-visual > .hero-class-preview {
    width: min(100%, 340px);
    margin: -56px 0 0;
    rotate: none;
  }
}

/* ==========================================================================
   v4 motion kit (2026-11-23)
   One set of moves for every page: boxes that open and close by height
   (app.js morph), a booking bar and a menu that leave as well as arrive,
   section heads and cards that rise without blur, and a calm page change.
   Transform and opacity only, so it holds on mid-range phones.
   ========================================================================== */

/* a box whose height is being animated by morph() */
.is-folding {
  overflow: clip;
}

/* heads and cards: a short rise, no blur (blur on a large Arabic headline is
   the most expensive thing the old entrance did) */
@keyframes v3-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

.section-intro.reveal .eyebrow,
.section-intro.reveal h2,
.section-intro.reveal > p {
  transform: translateY(24px);
  filter: none;
  transition:
    opacity 0.6s var(--ease),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-intro.reveal h2 {
  transition-delay: 0.08s;
}

.section-intro.reveal > p {
  transition-delay: 0.16s;
}

.section-intro.reveal.is-visible .eyebrow,
.section-intro.reveal.is-visible h2,
.section-intro.reveal.is-visible > p {
  transform: none;
}

.reveal.v3-pop {
  transform: translateY(24px) scale(0.97);
  transition:
    opacity 0.5s var(--ease),
    transform 0.7s var(--ease-spring);
  transition-delay: calc(var(--d, 0) * 1ms);
}

/* long lists (questions, policies, the 15 levels) arrive flat and quick */
.reveal.v3-pop.v3-pop--row {
  transform: translateY(16px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 1ms);
}

.reveal.v3-pop.is-visible,
.reveal.v3-pop.v3-pop--row.is-visible {
  transform: none;
}

/* the phone booking bar slides in and out instead of blinking */
@media (max-width: 900px) {
  .sticky-cta {
    visibility: hidden;
    transform: translateY(110%);
    transition:
      transform 0.22s var(--ease),
      visibility 0s linear 0.22s;
  }

  .sticky-cta.is-visible {
    visibility: visible;
    transform: none;
    transition:
      transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s;
  }
}

/* one sliding pill under the pressed button of a switch (app.js slidePill) */
.has-kit-pill {
  position: relative;
}

.kit-pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--yellow);
  pointer-events: none;
  transition:
    transform 0.32s var(--ease-spring),
    width 0.32s var(--ease);
}

.has-kit-pill > :not(.kit-pill) {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  /* the menu leaves in 180 ms; app.js hides it when this ends */
  .mobile-nav.is-closing {
    animation: kit-menu-close 0.18s var(--ease) forwards;
  }

  .mobile-nav.is-closing > * {
    animation: none;
  }

  /* page to page: a plain cross-fade, so the header never appears to move;
     each page head brings its own entrance */
  ::view-transition-old(root) {
    animation: kit-vt-out 0.16s ease-in both;
  }

  ::view-transition-new(root) {
    animation: kit-vt-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes kit-menu-close {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes kit-vt-out {
  to {
    opacity: 0;
  }
}

@keyframes kit-vt-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta,
  .sticky-cta.is-visible,
  .kit-pill {
    transition: none;
  }

  .reveal.v3-pop,
  .reveal.v3-pop.v3-pop--row,
  .section-intro.reveal .eyebrow,
  .section-intro.reveal h2,
  .section-intro.reveal > p {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* secondary links are outlined pills everywhere (owner's rule): the drawn
   underline is gone */
.text-link {
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(7, 27, 67, 0.16);
  text-decoration: none;
  transition:
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.text-link:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1.5px var(--blue);
}

.text-link:active {
  transform: scale(0.98);
  transition-duration: 0.12s;
}

.text-link span,
.text-link:hover span {
  padding-bottom: 0;
  background-image: none;
  animation: none;
}

.text-link--light {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.42);
}

.text-link--light:hover {
  box-shadow: inset 0 0 0 1.5px var(--white);
}

@media (max-width: 680px) {
  .clamp-toggle,
  .hero .clamp-toggle {
    min-height: 40px;
    margin-top: 8px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px rgba(7, 27, 67, 0.16);
    text-decoration: none;
  }
}

/* the closing band on inner pages: the booking button, then where else to go */
.cta-band__more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cta-band .cta-band__inner .cta-band__more .button--outline {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  box-shadow: inset 0 0 0 1.5px rgba(7, 27, 67, 0.26);
}

.cta-band .cta-band__inner .cta-band__more .button--outline:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

/* the grid's wide column gap was also its row gap: the "all questions" pill
   sat 130 px under the list */
.faq-shell {
  row-gap: 18px;
}

@media (max-width: 680px) {
  .cta-band .cta-band__inner .cta-band__more .button--outline {
    width: auto;
    flex: 0 1 auto;
  }
}

/* numbered steps on the inner pages (app.js adds .kit-steps): numbers wait
   in outline and light yellow as the line reaches them */
.method-list.kit-steps:not([data-v3-steps]) > article:nth-child(n) .method-number {
  background: var(--white);
  color: var(--blue);
  box-shadow:
    inset 0 0 0 2px rgba(0, 60, 201, 0.28),
    0 0 0 6px var(--soft);
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    transform 0.45s var(--ease-spring);
}

.method-list.kit-steps:not([data-v3-steps]) > article:nth-child(n).is-on .method-number {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 0 0 6px var(--soft);
  transform: scale(1.08);
}

@media (min-width: 981px) {
  .method-list.kit-steps:not([data-v3-steps])::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 24px;
    inset-inline: 46px;
    height: 2px;
    background: var(--blue);
    transform: scaleX(var(--p, 0));
    transform-origin: left center;
    transition: transform 0.25s linear;
  }

  html[dir="rtl"] .method-list.kit-steps:not([data-v3-steps])::after {
    transform-origin: right center;
  }
}

/* --------------------------------------------------------------------------
   The home opening (2026-11-23): the title leads, the booking button is on
   screen by about half a second, the portrait opens as an arch (its corners
   used to be square while it wiped), and everything has settled by 1.8 s.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .v3-hero .v3-title__lead[data-v3-load],
  .v3-hero .v3-title__accent[data-v3-load] {
    animation: kit-line 0.52s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }

  .v3-hero .v3-title__accent[data-v3-load] {
    animation-delay: 90ms;
  }

  .v3-hero .hero-copy__lead[data-v3-load] {
    animation: kit-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) 150ms backwards;
  }

  .v3-hero .hero-actions[data-v3-load] {
    animation: kit-up 0.36s cubic-bezier(0.16, 1, 0.3, 1) 200ms backwards;
  }

  .v3-hero .v3-arch {
    animation: kit-arch 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s backwards;
  }

  .v3-hero .v3-arch img {
    animation: v3-settle 1.15s var(--ease-out) 0.25s backwards;
  }

  .v3-hero .v3-mark {
    animation-duration: 0.6s;
    animation-delay: 0.7s;
  }

  .v3-hero .v3-orb__in {
    animation-duration: 0.5s;
    animation-delay: calc(900ms + var(--i) * 70ms);
  }

  .v3-hero .v3-float__in {
    animation:
      v3-bob 7s ease-in-out infinite,
      kit-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.9s backwards;
  }
}

/* a line of the title rises out from under its own top edge */
@keyframes kit-line {
  from {
    transform: translateY(45%);
    clip-path: inset(0 -5% 100% -5%);
  }

  to {
    transform: none;
    clip-path: inset(-25% -5% -25% -5%);
  }
}

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

@keyframes kit-arch {
  from {
    clip-path: inset(100% 0 0 0 round calc(var(--aw) / 2) calc(var(--aw) / 2) 0 0);
  }

  to {
    clip-path: inset(0 0 0 0 round calc(var(--aw) / 2) calc(var(--aw) / 2) 0 0);
  }
}

/* Home reads in one order on every screen (2026-11-23): tracks, method,
   teachers, prices, the short answers, questions, the band. The
   phone used to pull prices up to second place, before any reason to believe. */
@media (max-width: 680px) {
  .hero--home ~ .v3-ticker {
    order: 0;
  }

  .hero--home ~ #tracks,
  .hero--home ~ #method,
  .hero--home ~ #teachers-overview,
  .hero--home ~ #offer,
  .hero--home ~ #faq,
  .hero--home ~ .v3-facts.v3-facts.v3-facts {
    order: 1;
  }
}

/* a laptop screen is short: the title gives the portrait room above the fold */
@media (min-width: 1081px) and (max-height: 980px) {
  .v3-hero .hero-copy h1.v3-title,
  html[lang="en"] .v3-hero .hero-copy h1.v3-title {
    font-size: clamp(54px, 5.4vw, 82px);
  }
}

/* --------------------------------------------------------------------------
   Pricing (2026-11-23): the head is title, one line, the booking button and
   the portrait; the newcomer note stays above the cards (business rule) but
   as a slim strip, its own button dropped because the head's sits just above.
   -------------------------------------------------------------------------- */
.price-card-zone .newcomer-note--lead .button {
  display: none;
}

.price-card-zone .page-head .hero-actions {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .price-card-zone .page-head__visual {
    display: block;
    width: min(56%, 220px);
    margin: 18px auto 0;
  }
}

/* --------------------------------------------------------------------------
   Page heads (2026-11-23): the portrait opens as an arch, and a page's two
   headline facts float on it as small cards instead of sitting in a strip
   below (free trial, teachers).
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .page-head__visual img {
    animation: kit-head 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
  }

  .head-chip {
    animation:
      kit-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s backwards,
      v3-bob 7s ease-in-out 1.4s infinite;
  }

  .head-chip--b {
    animation-delay: 0.85s, 2.2s;
  }
}

@keyframes kit-head {
  from {
    clip-path: inset(100% 0 0 0 round 50% 50% 28px 28px / 40% 40% 28px 28px);
  }

  to {
    clip-path: inset(0 0 0 0 round 50% 50% 28px 28px / 40% 40% 28px 28px);
  }
}

.head-chip {
  position: absolute;
  z-index: 2;
  max-width: 190px;
  padding: 14px 18px;
  display: grid;
  gap: 4px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-float);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: start;
}

.head-chip strong {
  color: var(--blue);
  font: 800 28px/1 "Montserrat", sans-serif;
  letter-spacing: -0.02em;
}

html[lang="ar"] .head-chip strong {
  font-family: inherit;
}

.head-chip--a {
  bottom: 12%;
  inset-inline-start: -22%;
}

.head-chip--b {
  top: 14%;
  inset-inline-end: -20%;
}

.page-head__caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1240px) {
  .head-chip--a {
    inset-inline-start: -8%;
  }

  .head-chip--b {
    inset-inline-end: -8%;
  }
}

@media (max-width: 760px) {
  .head-chip {
    max-width: 132px;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 11px;
    line-height: 1.35;
  }

  .head-chip strong {
    font-size: 19px;
  }

  .head-chip--a {
    bottom: 8%;
    inset-inline-start: -26%;
  }

  .head-chip--b {
    top: 10%;
    inset-inline-end: -26%;
  }
}

/* Free trial: five detail cards sit 2 + 3, not 3 + 2 with a hole */
@media (min-width: 981px) {
  .trial-detail .track-focus__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .trial-detail .track-focus__grid > * {
    grid-column: span 2;
  }

  .trial-detail .track-focus__grid > :nth-child(-n + 2) {
    grid-column: span 3;
  }
}

/* --------------------------------------------------------------------------
   How it works: the learning journey (2026-11-23). One path down the page;
   each stage is text beside its living scene, on alternating sides.
   -------------------------------------------------------------------------- */
.method-list.journey {
  max-width: 980px;
  margin-inline: auto;
}

.method-list.journey > article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: 30px 56px;
}

.method-list.journey > article h3 {
  font-size: clamp(22px, 2.2vw, 30px);
}

.method-list.journey > article p {
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.8;
}

/* a living scene: a 4:5 still, the clip laid over it by app.js */
.scene {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: var(--blue-dark);
  box-shadow: 0 30px 70px rgba(7, 27, 67, 0.2);
}

.scene img,
.scene .live-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 861px) {
  .method-list.journey > article:has(.journey__scene) {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  }

  .method-list.journey > article > .journey__scene {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

@media (max-width: 860px) {
  .journey__scene {
    margin-top: 18px;
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .method-list.journey.is-tracking .journey__scene {
    clip-path: inset(8% round 28px);
    transform: translateY(24px);
    transition:
      clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .method-list.journey.is-tracking > article.is-on .journey__scene {
    clip-path: inset(0 round 28px);
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Teachers: the style switcher on the navy matching panel (2026-11-23).
   Four chips, one yellow pill that slides to the pressed one, and a card
   that changes with it. No avatar: the styles are described, not drawn.
   -------------------------------------------------------------------------- */
.kit-match {
  display: grid;
  gap: 22px;
  margin-top: clamp(24px, 3vw, 40px);
}

.kit-match__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.kit-match__chips button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.kit-match__chips button[aria-pressed="true"] {
  color: var(--ink);
}

.kit-match__chips:not(.has-kit-pill) button[aria-pressed="true"] {
  background: var(--yellow);
}

.kit-match__chips button:active {
  transform: scale(0.97);
}

.kit-match__card {
  max-width: 640px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.kit-match__kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
}

.kit-match__card h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: clamp(22px, 2.4vw, 30px);
}

.kit-match__card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.8;
}

.kit-match__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.kit-match__tags span {
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Levels as five CEFR bands (2026-11-23). Track pages: each band is a card
   (and its living scene) beside its three levels, with a rail above that
   names the band on screen. Curriculum: the same five as a ladder.
   -------------------------------------------------------------------------- */
.level-blocks {
  display: grid;
  gap: clamp(44px, 6vw, 92px);
}

.band {
  display: grid;
  gap: 20px;
  scroll-margin-top: 150px;
}

.band__aside {
  display: grid;
  gap: 14px;
  align-content: start;
}

.band__levels {
  display: grid;
  gap: 12px;
  align-content: start;
}

.band__card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(7, 27, 67, 0.04), 0 14px 36px rgba(7, 27, 67, 0.08);
}

.band__code {
  color: var(--blue);
  font: 800 44px/1 "Montserrat", sans-serif;
  letter-spacing: -0.03em;
}

.band__name {
  margin-top: 6px;
  color: var(--ink);
  font-size: 19px;
}

.band__range {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.band__can {
  margin: 10px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

/* with a scene, the card overlaps its lower edge like a caption */
.band__scene + .band__card,
.ladder__scene + .band__card {
  margin: -64px 14px 0;
}

@media (min-width: 981px) {
  .band {
    grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 60px);
    align-items: start;
  }

  .band__aside {
    position: sticky;
    top: 150px;
  }
}

@media (max-width: 980px) {
  .band__scene {
    aspect-ratio: 3 / 2;
  }
}

/* the rail: five chips, one sliding pill on the band in view */
.band-rail {
  position: sticky;
  top: 84px;
  z-index: 30;
  display: flex;
  justify-content: center;
  margin-bottom: clamp(24px, 3vw, 40px);
  pointer-events: none;
}

.band-rail__chips {
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 12px 30px rgba(7, 27, 67, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
}

.band-rail__chips button {
  min-width: 54px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 700 14px/1 "Montserrat", sans-serif;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.band-rail__chips button[aria-pressed="true"] {
  color: var(--ink);
}

.band-rail__chips:not(.has-kit-pill) button[aria-pressed="true"] {
  background: var(--yellow);
}

.band-rail__chips button:active {
  transform: scale(0.95);
}

@media (max-width: 680px) {
  .band-rail {
    top: 74px;
  }

  .band-rail__chips button {
    min-width: 48px;
    padding: 0 10px;
  }
}

/* curriculum hub: the ladder */
.ladder {
  position: relative;
  margin: 0;
  padding: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.ladder::before,
.ladder::after {
  content: "";
  position: absolute;
  top: 10px;
  inset-inline: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}

.ladder::after {
  background: var(--blue);
  transform: scaleX(var(--p, 1));
  transform-origin: left center;
  transition: transform 0.25s linear;
}

html[dir="rtl"] .ladder::after {
  transform-origin: right center;
}

.ladder__step {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
}

.ladder__step::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -33px;
  inset-inline-start: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 2px rgba(0, 60, 201, 0.3);
  transition:
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    transform 0.45s var(--ease-spring);
}

.ladder.kit-steps .ladder__step.is-on::before,
.ladder:not(.kit-steps) .ladder__step::before {
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255, 237, 110, 0.4);
  transform: scale(1.15);
}

.ladder .band__card {
  padding: 18px;
}

.ladder .band__code {
  font-size: 36px;
}

.ladder .band__can {
  font-size: 14px;
}

@media (prefers-reduced-motion: no-preference) {
  .ladder.kit-steps .ladder__step > * {
    opacity: 0.5;
    transform: translateY(14px);
    transition:
      opacity 0.5s var(--ease),
      transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .ladder.kit-steps .ladder__step.is-on > * {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .ladder {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--page-gutter, 16px) * -1);
    padding-inline: var(--page-gutter, 16px);
    padding-bottom: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

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

  .ladder::before,
  .ladder::after {
    display: none;
  }

  .ladder__step {
    flex: 0 0 min(76%, 300px);
    scroll-snap-align: center;
  }

  .ladder__step::before {
    display: none;
  }

  .ladder.kit-steps .ladder__step > * {
    opacity: 1;
    transform: none;
  }
}

/* the CEFR table, one tap away */
.table-details {
  margin-top: 26px;
}

.table-details > summary {
  width: fit-content;
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px rgba(7, 27, 67, 0.16);
  cursor: pointer;
  list-style: none;
}

.table-details > summary::-webkit-details-marker {
  display: none;
}

.table-details > summary::after {
  content: "+";
  font-weight: 400;
  transition: transform 0.25s var(--ease);
}

.table-details[open] > summary::after {
  transform: rotate(45deg);
}

.table-details > summary:hover {
  box-shadow: inset 0 0 0 1.5px var(--blue);
}

.table-details > .table-scroll {
  margin-top: 18px;
}

.hub-levels .table-details + .text-link {
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Package page (2026-11-23).
   Phones: the head is title, line, buttons, portrait inside the first screen;
   the facts, the answer and the price box follow. The picture used to start
   near 1,260 px down.
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .hero--light .hero-shell {
    row-gap: 0;
  }

  .hero--light .hero-copy {
    display: contents;
  }

  .hero--light .hero-copy > * {
    order: 1;
  }

  .hero--light .hero-shell > .hero-visual {
    order: 2;
    margin-top: 14px;
  }

  .hero--light .hero-copy > .hero-trust,
  .hero--light .hero-copy > .hero-answer,
  .hero--light .hero-copy > .clamp-toggle,
  .hero--light .hero-copy > .hero-price {
    order: 3;
  }

  .hero--light .hero-copy > .hero-trust {
    margin-top: 28px;
  }

  .hero .plans-visual > .page-head__visual {
    width: min(50%, 196px);
  }
}

/* Leaving this page (approved 2026-11-23): the unit explorer (the curriculum
   pages carry every unit), the teaching-style matcher (now on the teachers
   page) and the framed classroom mock with its cartoon figures. The markup
   stays: the build fills it and the content tests read it. */
#curriculum .level-explorer,
#teachers .teacher-match,
#classroom {
  display: none;
}

/* the booking block is the page's last word on phones too */
@media (max-width: 680px) {
  .hero--light ~ #book {
    order: 60;
  }
}

@media (max-width: 760px) {
  .hero--light .hero-copy > .clamp-toggle {
    justify-self: start;
  }

  .hero .plans-visual > .hero-class-preview {
    margin-top: -36px;
  }
}

/* one dark ground: the last four bright-blue panels on the package page take
   Riyadh Night, lit from one corner like the offer panel */
.step-detail,
.support-response,
.policy-list article:nth-child(2),
.book-copy {
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(0, 60, 201, 0.5), transparent 62%),
    var(--blue-dark);
}

/* --------------------------------------------------------------------------
   Header booking button (2026-11-23, owner: "a unique fun colour"). Talk
   Yellow with ink text: the only yellow button on the page, so it reads as
   the one thing to press. A slow glow breathes behind it and a light passes
   across it now and then; hover lifts it.
   -------------------------------------------------------------------------- */
.header-actions .button--dark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--yellow);
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(7, 27, 67, 0.08),
    0 8px 22px rgba(255, 205, 0, 0.42);
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s var(--ease);
}

.header-actions .button--dark:hover {
  background: var(--yellow);
  color: var(--ink);
  transform: translateY(-2px) rotate(-1.5deg);
  box-shadow:
    0 0 0 1px rgba(7, 27, 67, 0.1),
    0 14px 30px rgba(255, 205, 0, 0.55);
}

.header-actions .button--dark:active {
  transform: scale(0.96);
}

@media (prefers-reduced-motion: no-preference) {
  .header-actions .button--dark {
    animation: kit-cta-glow 3.2s ease-in-out infinite;
  }

  .header-actions .button--dark::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-block: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent);
    transform: skewX(-18deg);
    animation: kit-cta-shine 4.6s var(--ease) 1.2s infinite;
  }
}

@keyframes kit-cta-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(7, 27, 67, 0.08),
      0 8px 22px rgba(255, 205, 0, 0.36);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(7, 27, 67, 0.08),
      0 10px 30px rgba(255, 205, 0, 0.68);
  }
}

@keyframes kit-cta-shine {
  0%,
  62% {
    left: -60%;
  }

  100% {
    left: 130%;
  }
}

/* --------------------------------------------------------------------------
   One booking button, everywhere (2026-11-23, owner: "make the CTA consistent
   all over the website"). Every button that books the free session, in the
   header, a page head, a plan card, the phone bar, an article or the closing
   band, is the same Talk Yellow pill with ink text, the same lift on hover and
   the same press. Blue buttons are gone; outlined pills stay for everything
   that is not booking. The !important beats a dozen older per-section colour
   rules in one place instead of editing each.
   -------------------------------------------------------------------------- */
.button[data-quiz-link] {
  position: relative;
  border-color: transparent !important;
  background: var(--yellow) !important;
  color: var(--ink) !important;
  box-shadow:
    0 0 0 1px rgba(7, 27, 67, 0.08),
    0 8px 22px rgba(255, 205, 0, 0.42) !important;
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s var(--ease);
}

.button[data-quiz-link]:hover {
  transform: translateY(-2px) rotate(-1.5deg);
  box-shadow:
    0 0 0 1px rgba(7, 27, 67, 0.1),
    0 14px 30px rgba(255, 205, 0, 0.55) !important;
}

.button[data-quiz-link]:active {
  transform: scale(0.96);
}

.button[data-quiz-link]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* the arrow puck inside the big buttons turns ink, so it still shows */
.button[data-quiz-link] .button__icon {
  background: var(--ink);
  color: var(--yellow);
}

/* the full-width phone bar does not tilt */
.sticky-cta .button[data-quiz-link]:hover {
  transform: none;
}

/* The closing band was Talk Yellow, which would swallow a yellow button. It
   takes Riyadh Night, the site's one dark ground, lit from a corner. */
.cta-band .cta-band__inner {
  background:
    radial-gradient(110% 90% at 14% 0%, rgba(0, 60, 201, 0.55), transparent 62%),
    var(--blue-dark);
  color: var(--white);
}

.cta-band .cta-band__inner h2 {
  color: var(--white);
}

.cta-band .cta-band__inner p {
  color: rgba(255, 255, 255, 0.8);
}

.cta-band .cta-band__inner::before,
.cta-band .cta-band__inner::after {
  border-color: rgba(255, 255, 255, 0.14);
}

.cta-band .cta-band__inner .cta-band__more .button--outline {
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.36);
}

.cta-band .cta-band__inner .cta-band__more .button--outline:hover {
  box-shadow: inset 0 0 0 1.5px var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .button[data-quiz-link],
  .button[data-quiz-link]:hover {
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Blog (2026-11-23). Articles: a 620px reading column, ink body text, a
   smaller title, the short answer above the cover, a byline, a contents list,
   a quiet booking line after the second chapter and related cards with
   covers. Index: the cards come straight under the lead and turn into compact
   rows on phones. The furniture is added by shapeGuide() in the build.
   -------------------------------------------------------------------------- */
.guide-hero--article .guide-shell {
  max-width: 860px;
}

.guide-hero--article h1 {
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.18;
}

html[dir="rtl"] .guide-hero--article h1 {
  line-height: 1.4;
}

.guide-byline {
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.guide-byline span + span::before {
  content: "·";
  margin-inline-end: 10px;
  color: var(--blue);
}

.guide-hero--article .guide-answer {
  margin-top: 24px;
}

.guide-layout:has(.guide-review) .guide-shell {
  max-width: 764px;
}

.guide-layout .guide-section p,
.guide-layout .guide-section h3 {
  color: var(--ink);
}

.guide-layout .guide-section,
.guide-layout .guide-practice {
  scroll-margin-top: 96px;
}

.guide-toc {
  margin: 0 0 clamp(36px, 5vw, 56px);
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--soft);
  counter-reset: toc;
}

.guide-toc > p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.guide-toc ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  list-style: none;
}

.guide-toc li {
  counter-increment: toc;
}

.guide-toc a {
  min-height: 44px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.guide-toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  color: var(--blue);
  font: 800 12px/1 "Montserrat", sans-serif;
  letter-spacing: 0.04em;
}

.guide-toc a:hover {
  background: var(--white);
  color: var(--blue);
}

.guide-nudge {
  margin: 0 0 clamp(40px, 5vw, 64px);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  border: 1px dashed rgba(0, 60, 201, 0.28);
  border-radius: 20px;
}

.guide-nudge p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

/* related cards: the cover of the article they open, no arrow puck */
.guide-layout .related-links a.has-cover {
  min-height: 0;
  padding: 12px 12px 18px;
  align-content: start;
  gap: 8px;
}

.guide-layout .related-links a.has-cover::before,
.guide-layout .related-links a.has-cover::after {
  display: none;
}

.guide-layout .related-links a.has-cover img {
  width: 100%;
  margin-bottom: 6px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}

.guide-layout .related-links a.has-cover strong,
.guide-layout .related-links a.has-cover span {
  padding-inline: 6px;
}

/* index: a shorter head so the first cards sit in the first screen */
.guide-hero--index .guide-cover--index {
  aspect-ratio: 32 / 9;
  margin-top: 22px;
}

.guide-hero--index.section {
  padding-bottom: clamp(20px, 3vw, 36px);
}

.guide-hero--index + .guide-layout.section {
  padding-top: 0;
}

.guide-hero--index + .guide-layout .guide-group-title:first-child {
  margin-top: 0;
}

.guide-hero--index + .guide-layout .guide-cta {
  margin-top: clamp(32px, 4vw, 48px);
}

@media (max-width: 680px) {
  .guide-toc {
    padding: 16px 12px;
  }

  .guide-nudge .button {
    width: 100%;
  }

  /* compact rows: thumbnail, label, title */
  .guide-card-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guide-card {
    padding: 10px;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 4px;
    align-content: center;
    border-radius: 20px;
  }

  .guide-card .guide-card__cover {
    grid-row: 1 / span 2;
    align-self: center;
    margin: 0;
    aspect-ratio: 1;
    border-radius: 14px;
  }

  .guide-card > span {
    align-self: end;
  }

  .guide-card strong {
    align-self: start;
    font-size: 16px;
    line-height: 1.35;
  }

  .guide-card em {
    display: none;
  }

  .guide-hero--index .guide-cover--index {
    aspect-ratio: 21 / 9;
  }
}

/* the cover travels from the index card into the article */
.guide-hero--article .guide-cover {
  view-transition-name: guide-cover;
}

::view-transition-group(guide-cover) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .guide-hero--article .guide-cover {
    view-transition-name: none;
  }
}

/* blog: the article head lines up with the reading card; the index title is
   a size down and its answer box sits under the cards */
.guide-hero--article .guide-shell {
  max-width: 764px;
}

.guide-hero--index h1 {
  font-size: clamp(30px, 4vw, 54px);
}

.guide-hero--index + .guide-layout .guide-answer {
  margin: clamp(32px, 4vw, 48px) 0;
}

/* blog: related cards are rows in the reading column, picture then text */
.guide-layout .related-links {
  grid-template-columns: 1fr;
  gap: 12px;
}

.guide-layout .related-links a.has-cover {
  padding: 12px;
  grid-template-columns: 148px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
  align-content: center;
  align-items: center;
}

.guide-layout .related-links a.has-cover img {
  grid-row: 1 / span 2;
  margin: 0;
  aspect-ratio: 4 / 3;
}

.guide-layout .related-links a.has-cover strong {
  align-self: end;
  padding: 0;
}

.guide-layout .related-links a.has-cover span {
  align-self: start;
  padding: 0;
}

@media (max-width: 680px) {
  .guide-layout .related-links a.has-cover {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .guide-layout .related-links a.has-cover img {
    aspect-ratio: 1;
  }

  .guide-layout .related-links a.has-cover span {
    display: none;
  }

  .guide-layout .related-links a.has-cover strong {
    grid-row: 1 / span 2;
    align-self: center;
  }
}

/* --------------------------------------------------------------------------
   The levels film (2026-11-23). A 4:5 picture with a play button; pressed, the
   film plays in place with the caption over it. Beside it the five levels as a
   bar that fills in step, and the five captions as a list that lights the
   current one. Without the film file the whole block is absent.
   -------------------------------------------------------------------------- */
.film {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(28px, 4vw, 48px);
}

.film__stage {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 28px;
  background: var(--blue-dark);
  box-shadow: 0 24px 60px rgba(7, 27, 67, 0.18);
}

.film__poster,
.film__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film__video {
  cursor: pointer;
}

.film__stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(7, 27, 67, 0.82), transparent);
  pointer-events: none;
}

.film__play {
  position: absolute;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 205, 0, 0.42);
  transition: transform 0.3s var(--ease-spring);
}

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

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

.film__play:focus-visible,
.film__chapter:focus-visible,
.film__replay:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.film__play-icon {
  width: 0;
  height: 0;
  border-block: 7px solid transparent;
  border-inline-start: 11px solid currentColor;
}

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

.film__caption {
  position: absolute;
  inset-inline: 18px;
  bottom: 18px;
  z-index: 1;
  margin: 0;
  color: var(--white);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.35;
  text-wrap: balance;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.film.is-playing .film__play,
.film.is-ended .film__play {
  display: none;
}

.film.is-playing .film__caption {
  opacity: 1;
}

.film__end {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: rgba(7, 27, 67, 0.88);
  color: var(--white);
  text-align: center;
}

.film__end[hidden] {
  display: none;
}

.film__end p {
  margin: 0;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.35;
  text-wrap: balance;
}

.film__replay {
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  min-height: 44px;
  padding: 0 12px;
}

.film__chapters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.film__chapter {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 60, 201, 0.1);
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.film__fill {
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
}

.film__code {
  position: relative;
}

.film__chapter.is-current {
  color: var(--ink);
}

.film__lines {
  display: grid;
  gap: 4px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.film__lines li {
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--muted, #5b6785);
  line-height: 1.45;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.film__lines li.is-current {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(7, 27, 67, 0.08);
}

.film__band {
  display: inline-block;
  min-width: 2.2em;
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 760px) {
  .film {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .film__stage {
    max-width: 380px;
    width: 100%;
    margin-inline: auto;
  }

  .film__lines li {
    padding: 6px 10px;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .film__play,
  .film__caption,
  .film__lines li {
    transition: none;
  }
}

/* the film sits on the navy statement panel: its list and bar read in white */
.hub-method .film__chapter {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.hub-method .film__chapter.is-current {
  color: var(--ink);
}

.hub-method .film__lines li {
  color: rgba(255, 255, 255, 0.72);
}

.hub-method .film__lines li .film__band {
  color: var(--yellow);
}

.hub-method .film__lines li.is-current {
  background: var(--white);
  color: var(--ink);
}

.hub-method .film__lines li.is-current .film__band {
  color: var(--blue);
}

.hub-method .film__stage {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* a level already watched stays filled; the caption over the picture drops the
   level code's extra space */
.film__caption .film__band {
  min-width: 0;
  margin-inline-end: 6px;
  color: var(--yellow);
}

/* film details: a watched level keeps ink text on its yellow fill; in Arabic
   the bar fills from the right; the play triangle always points right */
.film .film__chapter.is-done {
  color: var(--ink);
}

html[dir="rtl"] .film__fill {
  transform-origin: right center;
}

.film__play-icon,
[dir="rtl"] .film__play-icon {
  border-block: 7px solid transparent;
  border-inline: 0;
  border-left: 11px solid currentColor;
  transform: none;
}

/* --------------------------------------------------------------------------
   Package page pictures (2026-11-23, owner: "not too dry"). A living picture
   of a lesson under the "Two plans" text, and one per step in the four-step
   panel, changing with the step. All reuse the journey scenes.
   -------------------------------------------------------------------------- */
.package__scene {
  aspect-ratio: 4 / 3;
  margin-top: 28px;
  border-radius: 24px;
}

.package__scene img,
.package__scene .live-video {
  object-position: 50% 30%;
}

.step-detail:has(.step-scenes) {
  grid-template-columns: auto 1fr minmax(180px, 230px) auto;
}

.step-scenes {
  display: grid;
}

.step-scene {
  grid-area: 1 / 1;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease),
    visibility 0s 0.45s;
}

.step-scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}

@media (max-width: 860px) {
  .package__scene {
    aspect-ratio: 16 / 9;
    margin-top: 20px;
  }

  .step-detail:has(.step-scenes) {
    grid-template-columns: 1fr auto;
  }

  .step-scenes {
    grid-column: 1 / -1;
    order: -1;
  }

  .step-scene {
    aspect-ratio: 16 / 10;
  }

  .step-scene img,
  .step-scene .live-video {
    object-position: 50% 25%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .step-scene,
  .step-scene.is-active {
    transform: none;
    transition: none;
  }
}

/* only the shown step's picture exists for the loader, so one clip plays, not four */
.step-scene {
  display: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
}

.step-scene.is-active {
  display: block;
  animation: step-scene-in 0.45s var(--ease) both;
  transition: none;
}

@keyframes step-scene-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

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

/* --------------------------------------------------------------------------
   The type ladder (2026-11-23, owner: Montserrat everywhere, bold titles, one
   rule for titles, subheadings and body; modelled on the sister site's
   ladder). Five steps, each one size on desktop and one on phones:

     Display   home hero only        68 → 40   weight 900
     Title     h1, one per page      56 → 32   weight 800
     Section   h2                    44 → 27   weight 800
     Subhead   h3                    22 → 18   weight 700
               (panel titles, the large subhead: 30 → 22, weight 800)
     Lead      text under a title    19 → 16   weight 500
     Body      paragraphs            16        weight 400, line 1.6
     Small     notes and labels      14 / 13

   The sizes carry !important because a dozen older per-section rules set
   their own; this is the one place a heading size is decided now.
   -------------------------------------------------------------------------- */
:root {
  --type-display: clamp(40px, 5.2vw, 68px);
  --type-h1: clamp(32px, 4.2vw, 56px);
  --type-h2: clamp(27px, 3.4vw, 44px);
  --type-h3-lg: clamp(22px, 2.2vw, 30px);
  --type-h3: clamp(18px, 1.6vw, 22px);
  --type-lead: clamp(16px, 1.35vw, 19px);
  --type-body: 16px;
  --type-small: 14px;
}

main h1 {
  font-size: var(--type-h1) !important;
  font-weight: 800 !important;
}

main h1.v3-title,
html[lang="en"] .hero-copy h1.v3-title {
  font-size: var(--type-display) !important;
  font-weight: 900 !important;
}

main h2 {
  font-size: var(--type-h2) !important;
  font-weight: 800 !important;
}

main h3 {
  font-size: var(--type-h3) !important;
  font-weight: 700 !important;
}

/* panel titles: the large subhead */
main .step-detail h3,
main .support-panel h3,
main .progress-detail h3,
main .booking-form h3,
main .kit-match__card h3,
main .method-list.journey > article > h3 {
  font-size: var(--type-h3-lg) !important;
  font-weight: 800 !important;
}

/* headings that are really card titles take the subhead step */
main .more-plans h2,
main .track-focus__card h2 {
  font-size: var(--type-h3) !important;
  font-weight: 700 !important;
}

main h4 {
  font-size: 18px !important;
  font-weight: 700 !important;
}

/* an article is read, not scanned: its title and chapter headings step down */
main:has(.guide-hero--article) h1 {
  font-size: clamp(30px, 3.4vw, 44px) !important;
}

main:has(.guide-hero--article) h2 {
  font-size: var(--type-h3-lg) !important;
}

/* lead: the paragraph directly under a section or page title */
main .section-intro > p:not(.eyebrow),
main .section-intro--row > p {
  font-size: var(--type-lead);
  font-weight: 500;
}

/* Latin headings: tight tracking and leading suit Montserrat's wide caps.
   Arabic keeps its own, looser, line heights. */
html[lang="en"] main h1,
html[lang="en"] main h2 {
  letter-spacing: -0.02em;
  line-height: 1.1;
}

html[lang="en"] main h3 {
  letter-spacing: -0.01em;
  line-height: 1.25;
}

html[lang="en"] body {
  font-size: var(--type-body);
}

/* --------------------------------------------------------------------------
   Phones scroll one way: down (2026-11-23, owner: "I'm seeing things by
   scrolling horizontally rather than vertically… 40% of our visitors are from
   mobile"). The four strips that were swiped sideways, the course cards, the
   reviews, the level ladder and the tables, stack instead. Nothing on a
   phone is reached by a sideways swipe.
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .ladder {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .ladder__step {
    flex: none;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .ladder__step > .ladder__scene {
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    box-shadow: none;
  }

  .ladder__step > .band__card {
    min-width: 0;
  }

  .ladder__step:not(:has(.ladder__scene)) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .track-cards,
  .review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .track-cards > article,
  .review-grid > .review-card {
    flex: none;
    min-width: 0;
  }

  .track-cards > article .track-cards__cover {
    aspect-ratio: 16 / 9;
  }

  /* the dots counted swipes; there is nothing to swipe now */
  .swipe-dots {
    display: none !important;
  }

  /* tables: one card per row, each value under its column name */
  .table-scroll {
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .table-scroll table,
  .table-scroll .plan-table {
    display: block;
    min-width: 0;
    width: 100%;
    overflow: visible;
  }

  .table-scroll thead,
  .table-scroll tr:has(> th[scope="col"]) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .table-scroll tbody {
    display: grid;
    gap: 12px;
  }

  .table-scroll tbody tr:not(:has(> th[scope="col"])) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
  }

  .table-scroll tbody th[scope="row"] {
    grid-column: 1 / -1;
    padding: 0;
    border: 0;
    text-align: start;
    font-size: 17px;
    font-weight: 800;
    background: none;
  }

  .table-scroll tbody td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    text-align: start;
    white-space: normal;
    font-weight: 700;
    background: none;
  }

  .table-scroll tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
  }

  /* a long sentence takes the full row */
  .table-scroll .cefr-table td:last-child {
    grid-column: 1 / -1;
    font-weight: 400;
  }

  .table-scroll__hint {
    display: none !important;
  }
}

/* narrowest phones (360 and 320 wide): the adviser cards and the hidden table
   heading stay inside the screen */
.advisor-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

@media (max-width: 760px) {
  .advisor-card {
    min-width: 0;
  }

  .advisor-card > * {
    min-width: 0;
  }

  .advisor-card p,
  .advisor-card h3,
  .advisor-card li {
    overflow-wrap: anywhere;
  }

  .table-scroll {
    position: relative;
  }

  .table-scroll thead,
  .table-scroll tr:has(> th[scope="col"]) {
    inset-inline-start: 0;
  }

  .table-scroll tr:has(> th[scope="col"]) > th {
    display: block;
    width: 1px;
    overflow: hidden;
    padding: 0;
  }
}

/* stacked ladder: the card sits beside its picture, not over it; the table's
   caption reads as a normal line above the stacked rows */
@media (max-width: 980px) {
  .ladder__step > .ladder__scene + .band__card {
    margin: 0;
  }

  .ladder .band__card {
    padding: 14px 16px;
  }

  .ladder .band__code {
    font-size: 26px;
  }
}

@media (max-width: 760px) {
  .table-scroll caption {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    text-align: start;
  }
}

/* --------------------------------------------------------------------------
   2026-12-01 design pass: a calmer head (no orbit, connectors or stardust),
   a two-line title on phones, one button family, tighter section rhythm and
   an offer panel that arrives without a grey haze.
   -------------------------------------------------------------------------- */

/* the accent line breaks evenly instead of leaving one word alone */
.v3-title__accent,
.v3-mark {
  text-wrap: balance;
}
@media (max-width: 640px) {
  html[dir="rtl"] .v3-title__accent {
    font-size: 0.9em;
  }
}

/* one button family: yellow booking pills and outlined pills share height,
   corners and a crisp ink shadow; the yellow halo and its breathing glow are
   gone (the header button keeps only its passing light) */
.button[data-quiz-link],
.header-actions .button--dark,
.button.button--yellow,
.film__play {
  box-shadow:
    0 0 0 1px rgba(7, 27, 67, 0.1),
    0 6px 14px -8px rgba(7, 27, 67, 0.45) !important;
}
.button[data-quiz-link]:hover,
.header-actions .button--dark:hover,
.button.button--yellow:hover {
  box-shadow:
    0 0 0 1px rgba(7, 27, 67, 0.12),
    0 10px 20px -10px rgba(7, 27, 67, 0.5) !important;
}
@media (prefers-reduced-motion: no-preference) {
  .header-actions .button--dark {
    animation: none;
  }
}
.hero-actions .button {
  min-height: 58px;
}

/* the offer panel opens like a curtain from its own edges instead of fading
   (a dark panel at half opacity read as a grey haze over the page) */
@media (prefers-reduced-motion: no-preference) {
  .v3-offer__panel.reveal {
    opacity: 1;
    transform: translateY(18px);
    clip-path: inset(10% 3% 0 3% round clamp(28px, 4vw, 44px));
    transition:
      clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .v3-offer__panel.reveal.is-visible {
    transform: none;
    clip-path: inset(0 0 0 0 round clamp(28px, 4vw, 44px));
  }
}

/* home teachers: four selection steps read as one panel, a path from
   selection to ongoing training, instead of four floating cards */
#teachers-overview .v3-tiles {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: none;
  grid-auto-rows: auto;
  gap: 0;
  height: auto;
  align-self: center;
  padding: 6px clamp(20px, 3vw, 34px);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 48px -32px rgba(7, 27, 67, 0.4);
}
#teachers-overview .v3-tile {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 18px;
  align-items: start;
  grid-column: auto !important;
  grid-row: auto !important;
  height: auto;
  min-height: 0;
  margin: 0 !important;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid #e3eaf7;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none !important;
  translate: none !important;
  text-align: start;
}
#teachers-overview .v3-tile:first-child {
  border-top: 0;
}
#teachers-overview .v3-tile__icon {
  grid-row: span 2;
  margin: 0;
}
#teachers-overview .v3-tile h3 {
  margin: 2px 0 4px;
  font-size: 1.15rem;
}
#teachers-overview .v3-tile p {
  margin: 0;
}
/* the link under it is a real outlined pill on the light ground */
#teachers-overview .button--outline-light {
  border: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(7, 27, 67, 0.22);
}
#teachers-overview .button--outline-light:hover {
  box-shadow: inset 0 0 0 1.5px var(--blue);
  color: var(--blue);
}

/* section rhythm: 144 px above and below every section left ~290 px of
   empty ground between neighbours on a laptop; a quarter less keeps the air
   without the page feeling stretched */
@media (min-width: 681px) {
  .section {
    padding-block: clamp(72px, 7.5vw, 112px);
  }
}

/* --------------------------------------------------------------------------
   Logo-matched ground (2026-12-01, owner: "match the colour palette across
   the whole website with our logo"). Every surface that was Riyadh Night now
   carries the logo's own diagonal: Confidence Blue into a brighter blue, with
   Open Sky as light in the corner where no text starts. The far stop is
   #0B58D2 so white keeps 6.3:1 and the light tint #E1ECFF 5.3:1 on it;
   Open Sky itself is too light for white text (2:1) and only ever appears
   as that corner light.
   -------------------------------------------------------------------------- */
:root {
  --sky-x: 100%;
  --brand-ground:
    radial-gradient(70% 90% at var(--sky-x) 0%, rgba(38, 183, 255, 0.42), rgba(38, 183, 255, 0) 58%),
    linear-gradient(62deg, #003cc9 0%, #0750cf 55%, #0b58d2 100%);
}
html[dir="rtl"] {
  --sky-x: 0%;
  --brand-ground:
    radial-gradient(70% 90% at var(--sky-x) 0%, rgba(38, 183, 255, 0.42), rgba(38, 183, 255, 0) 58%),
    linear-gradient(-62deg, #003cc9 0%, #0750cf 55%, #0b58d2 100%);
}

.v3-ticker,
.v3-offer__panel,
.v3-ask,
.cta-band__inner,
.site-footer,
.price-primary,
.step-detail,
.section--blue#teachers,
.section--dark,
.support-response,
.book-shell,
.book-copy,
.booking-form.booking-handoff,
.guide-cta,
.button.button--dark:not(.header-actions .button--dark) {
  background: var(--brand-ground) !important;
  background-color: #0a55d4 !important;
}
/* the offer panel's own glow layer would muddy the new ground */
.v3-offer__glow {
  display: none;
}

/* text on the logo ground: headings white, everything secondary one solid
   light tint instead of see-through white (which washed out on brighter blue).
   White cards, the price flag, phone pill and buttons keep their own colours. */
:is(.v3-offer__panel, .v3-ask, .cta-band__inner, .site-footer, .price-primary,
    .step-detail, .section--blue#teachers, .section--dark, .support-response,
    .book-shell, .book-copy, .booking-form.booking-handoff, .guide-cta)
  :is(p, li, span, small, a, dd, dt, figcaption, label, em, bdi, time, button):not(:is(.button, .price-card, .price-flag, .v3-ask__phone, .progress-detail, .hero-reviews) *):not(.button, .v3-ask__phone, .price-flag) {
  color: #e1ecff;
}
:is(.v3-offer__panel, .v3-ask, .cta-band__inner, .site-footer, .price-primary,
    .step-detail, .section--blue#teachers, .section--dark, .support-response,
    .book-shell, .book-copy, .booking-form.booking-handoff, .guide-cta)
  :is(h2, h3, h4, strong, b):not(:is(.button, .price-card, .price-flag, .v3-ask__phone, .progress-detail) *) {
  color: #fff;
}
:is(.v3-offer__panel, .section--blue#teachers, .section--dark, .cta-band__inner, .book-copy, .price-primary)
  .eyebrow:not(:is(.price-card) *) {
  color: var(--yellow);
}
/* the renewal plan's card is see-through on the panel, so it takes the tint too */
.v3-offer__panel .price-card:has(.price-card__restriction) :is(.price-card__bestfor, .price-card__fine, p, li) {
  color: #e1ecff;
}
.v3-arch {
  background: var(--brand-ground) !important;
}

/* phones paint the first screen at once (speed audit 2026-12-01: the title
   and portrait entrances held the largest paint back by 1-2 s on mobile).
   Desktop keeps its entrance; the marker underline still draws in. */
@media (max-width: 768px) {
  [data-v3-load],
  .v3-hero .v3-title__lead,
  .v3-hero .v3-title__accent,
  .v3-hero .hero-copy__lead,
  .v3-hero .hero-actions,
  .v3-hero .v3-arch,
  .v3-arch img,
  .page-head > *,
  .page-head__visual img,
  .guide-hero .guide-shell > *,
  .guide-cover img {
    animation: none !important;
  }
}
