/* ==========================================================================
   SupertutorTV — main stylesheet
   1. Tokens   2. Base   3. Components   4. Sections
   Breakpoint overrides live in responsive.css, motion in animations.css.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Surfaces & text */
  --paper: #F8F7F3;
  --paper-2: #EFF3F7;
  --card: #FFFFFF;
  --ink: #0E1A2F;
  --ink-2: #172742;
  --ink-3: #26385C;
  --text: #1E293B;
  --muted: #5B6578;
  --line: #E5E7EB;
  --line-strong: #CBD2DC;

  /* Brand (sampled from the SupertutorTV logo rings) */
  --blue: #109FDA;
  --blue-ink: #0A6E9B;
  --blue-soft: #E3F3FB;
  --orange: #ED812E;
  --orange-ink: #A9521A;
  --orange-soft: #FDEBDC;
  --yellow: #FDCF0A;
  --plum: #93347C;
  --plum-soft: #F4E4EF;
  --olive: #8A9B3A;
  --olive-ink: #5F6B22;
  --olive-soft: #EEF2DE;

  --ring-orange: #CD7A2B;
  --ring-yellow: #FDCF0A;
  --ring-plum: #93347C;
  --ring-olive: #8A9B3A;
  --ring-blue: #1C6EA4;

  --grad-brand: linear-gradient(100deg, #0A6E9B 0%, #109FDA 45%, #ED812E 100%);

  /* Type */
  --font-display: "Lexend", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.5rem, 1.4rem + 4vw, 4.6rem);
  --fs-h2: clamp(1.95rem, 1.35rem + 2.1vw, 3.05rem);
  --fs-h3: clamp(1.12rem, 1.05rem + .3vw, 1.3rem);
  --fs-lede: clamp(1.05rem, 1rem + .25vw, 1.2rem);
  --fs-body: 1rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;

  /* Space, shape, depth */
  --space-section: clamp(4.5rem, 3rem + 5.5vw, 7.75rem);
  --gutter: clamp(1rem, .5rem + 2.2vw, 2rem);
  --container: 1240px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 47, .06), 0 2px 6px rgba(14, 26, 47, .05);
  --shadow-md: 0 2px 4px rgba(14, 26, 47, .04), 0 14px 32px -10px rgba(14, 26, 47, .16);
  --shadow-lg: 0 4px 10px rgba(14, 26, 47, .05), 0 30px 64px -20px rgba(14, 26, 47, .3);
  --shadow-glow: 0 18px 50px -14px rgba(16, 159, 218, .45);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --header-h: 78px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.12;
  text-wrap: balance;
}
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--ink); }

/* 3. Components ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 300;
  background: var(--ink); color: #fff;
  padding: .75rem 1.1rem; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.scroll-sentinel { position: absolute; top: 40px; left: 0; width: 1px; height: 24px; }
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 250; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--grad-brand); transform-origin: left; transform: scaleX(0); }

.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 1em; height: 1em; }

/* Gradient text accent used in headings */
.text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.text-grad-light {
  background: linear-gradient(100deg, #7FD0F3, #FDCF0A);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px;
  padding: .75rem 1.4rem;
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .975rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: box-shadow .35s var(--ease-out), background-color .25s, color .25s, border-color .25s;
}
/* Shine sweep */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn .icon { transition: transform .35s var(--ease-out); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(4px); }
.btn:active { scale: .97; }

.btn-primary { --btn-bg: var(--orange); --btn-fg: #fff; box-shadow: 0 8px 22px -8px rgba(237, 129, 46, .7); }
.btn-primary:hover { --btn-bg: #F29148; box-shadow: 0 16px 32px -10px rgba(237, 129, 46, .8); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn-dark:hover { --btn-bg: var(--ink-3); box-shadow: var(--shadow-md); }
.btn-ghost { --btn-bg: var(--card); --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: var(--shadow-md); }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { --btn-bg: rgba(255, 255, 255, .08); border-color: #fff; }
.btn-lg { min-height: 56px; padding: .9rem 1.75rem; font-size: 1.025rem; }
.btn-sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .9rem; }
.magnetic { will-change: transform; }

.btn-play {
  display: grid; place-items: center;
  width: 30px; height: 30px; margin-left: -.55rem;
  border-radius: 50%; background: var(--orange); color: #fff;
}
.btn-play .icon { width: 14px; height: 14px; margin-left: 2px; }

.btn-video {
  display: inline-flex; align-items: center; gap: .85rem;
  font-weight: 700; color: var(--ink); text-decoration: none;
}
.btn-video-icon {
  position: relative; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--card); color: var(--blue);
  box-shadow: var(--shadow-md);
  transition: transform .4s var(--ease-out), background-color .3s, color .3s;
}
.btn-video-icon::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(16, 159, 218, .35);
  animation: ripple 2.2s ease-out infinite;
}
.btn-video-icon .icon { width: 20px; height: 20px; margin-left: 3px; }
.btn-video:hover .btn-video-icon { transform: scale(1.08); background: var(--blue); color: #fff; }

.text-link {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 700; color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .35s var(--ease-out);
  padding-bottom: 2px;
}
.text-link:hover { background-size: 100% 1.5px; }
.text-link .icon { transition: transform .35s var(--ease-out); }
.text-link:hover .icon { transform: translateX(3px); }

.pill {
  display: inline-flex; align-items: center;
  padding: .22rem .65rem;
  border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 700; letter-spacing: .01em;
  line-height: 1.4; white-space: nowrap;
}
.pill-blue { background: var(--blue-soft); color: var(--blue-ink); }
.pill-orange { background: var(--orange-soft); color: var(--orange-ink); }
.pill-plum { background: var(--plum-soft); color: var(--plum); }
.pill-olive { background: var(--olive-soft); color: var(--olive-ink); }
.pill-light { background: rgba(255, 255, 255, .12); color: #fff; }

/* Section heading system */
.section { padding-block: var(--space-section); position: relative; }
.section-head { margin-bottom: clamp(2.5rem, 1.6rem + 2.6vw, 3.75rem); }
.section-head-split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; }
.section-head-split > div:first-child { max-width: 640px; }
.section-head-center { text-align: center; max-width: 760px; margin-inline: auto; }
.section-head-center .section-intro { margin-inline: auto; }

.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: .9rem; padding: .35rem .85rem;
  border-radius: var(--r-pill);
  background: var(--blue-soft);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-ink);
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.kicker-light { background: rgba(127, 208, 243, .12); color: #7FD0F3; }

.h2 { font-size: var(--fs-h2); }
.section-intro { color: var(--muted); font-size: var(--fs-lede); line-height: 1.6; max-width: 600px; margin-top: 1rem; }

.art-rings { display: inline-flex; }
.art-rings svg { stroke: var(--c); }

h1 sup, h2 sup, h3 sup { font-size: .5em; vertical-align: top; position: relative; top: .2em; line-height: 0; }

/* 4. Sections -------------------------------------------------------------- */

/* --- Top bar --- */
.topbar { background: var(--ink); color: #C9D3E3; font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.topbar-promo { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.topbar-badge { padding: .1rem .5rem; border-radius: var(--r-pill); background: var(--orange); color: var(--ink); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.topbar-promo a { display: inline-flex; align-items: center; gap: .3rem; color: var(--yellow); font-weight: 700; text-decoration: none; }
.topbar-promo a:hover { text-decoration: underline; }
.topbar-links { display: flex; align-items: center; gap: 1.25rem; }
.topbar-links a { display: inline-flex; align-items: center; gap: .4rem; color: #C9D3E3; text-decoration: none; transition: color .2s; }
.topbar-links a:hover { color: #fff; }
.topbar-social + .topbar-social { margin-left: -.5rem; }
.topbar-social a { width: 28px; height: 28px; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .07); }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .35s, box-shadow .35s, height .35s var(--ease-out), border-color .35s;
}
.site-header.is-scrolled {
  --header-h: 68px;
  background: rgba(255, 255, 255, .9);
  border-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(14, 26, 47, .3);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: block; flex-shrink: 0; border-radius: 4px; }
.brand img { width: 150px; transition: width .35s var(--ease-out); }
.is-scrolled .brand img { width: 138px; }

.site-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-list { display: flex; align-items: center; gap: .1rem; }
.nav-item { position: relative; }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .8rem;
  font-size: .95rem; font-weight: 600; color: var(--ink);
  text-decoration: none;
  transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.nav-link:hover, .nav-trigger[aria-expanded="true"] { color: var(--blue-ink); }
.nav-link:hover::after, .nav-trigger[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav-trigger .icon { transition: transform .3s var(--ease-out); }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% + 12px); left: -.5rem;
  min-width: 230px; padding: .5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: top left;
  transition: opacity .22s, transform .35s var(--ease-out), visibility 0s .35s;
}
.submenu::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav-trigger[aria-expanded="true"] + .submenu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .22s, transform .35s var(--ease-out), visibility 0s;
}
.submenu-wide { min-width: 370px; }
.submenu a {
  display: flex; align-items: center; gap: .85rem;
  padding: .65rem .75rem;
  border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink);
  transition: background-color .2s, transform .3s var(--ease-out);
}
.submenu a:hover { background: var(--paper); transform: translateX(3px); }
.submenu strong { display: block; font-weight: 700; font-size: .95rem; }
.submenu small { display: block; color: var(--muted); font-size: .83rem; }
.sm-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 12px;
  background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c);
}
.submenu-foot { margin-top: .25rem; border-top: 1px solid var(--line); font-size: .875rem; font-weight: 700; color: var(--blue-ink) !important; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-login { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--ink); padding: .5rem .25rem; }
.nav-login:hover { color: var(--blue-ink); }

.menu-toggle {
  display: none;
  width: 46px; height: 46px; margin-left: auto;
  border-radius: 50%; place-items: center;
  background: var(--ink); color: #fff;
}
.menu-toggle .icon { grid-area: 1 / 1; transition: transform .35s var(--ease-out), opacity .2s; }
.menu-toggle .icon-close { opacity: 0; transform: rotate(-90deg); }
.menu-toggle[aria-expanded="true"] .icon-open { opacity: 0; transform: rotate(90deg); }
.menu-toggle[aria-expanded="true"] .icon-close { opacity: 1; transform: none; }

/* --- Hero --- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3.5rem, 2rem + 4vw, 6rem);
  overflow: clip;
  background: linear-gradient(180deg, #EEF7FC 0%, var(--paper) 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.aurora-a { width: 540px; height: 540px; right: -140px; top: -120px; background: #9AD8F4; }
.aurora-b { width: 420px; height: 420px; left: -160px; bottom: -180px; background: #FBD2AE; }
.aurora-c { width: 300px; height: 300px; left: 38%; top: 10%; background: #E8C6DF; opacity: .4; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14, 26, 47, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 26, 47, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 35% 40%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 65% 60% at 35% 40%, #000 15%, transparent 70%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem .45rem .75rem;
  margin-bottom: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.eyebrow-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #22C55E; }
.eyebrow-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22C55E; animation: ripple 2s ease-out infinite; }

.hero-title {
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.04;
  max-width: 13ch;
}
.hero-title .hl { position: relative; display: inline-block; white-space: nowrap; }
.hero-title .hl, .hero-title .hl .word-inner { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-lede { margin-top: 1.5rem; max-width: 540px; font-size: var(--fs-lede); color: var(--muted); }
.hero-lede strong { color: var(--ink); }

.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.75rem; margin-top: 2.1rem; }

.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2.1rem; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--olive-soft); color: var(--olive-ink); stroke-width: 3; }

/* Hero media composition */
.hero-media {
  position: relative;
  width: 100%; max-width: 580px; aspect-ratio: 1;
  margin-inline: auto;
  container-type: inline-size;
  perspective: 1000px;
}
.hm-shape { position: absolute; inset: 6%; width: 88%; height: 88%; }
.hm-orbit { position: absolute; inset: -1%; width: 102%; height: 102%; }
.hm-dots {
  position: absolute; right: 2%; bottom: 10%; width: 22%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--orange) 1.6px, transparent 2px) 0 0 / 14px 14px;
  opacity: .5;
}
.hm-photo {
  position: absolute; left: 16%; top: 14%; width: 68%; aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid #fff;
  box-shadow: var(--shadow-lg);
  background: #8E929C;
}
.hm-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hm-rings { position: absolute; left: 3%; top: 8%; }
.hm-rings svg { width: 6cqi; height: 6cqi; margin-right: -1.4cqi; }

.hm-chip {
  position: absolute;
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem .7rem .7rem;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: .8rem; line-height: 1.3; color: var(--muted);
}
.hm-chip strong { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); }
.hm-chip small { font-size: .78rem; }
.hm-chip-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: color-mix(in srgb, var(--c, var(--blue)) 14%, #fff); color: var(--c, var(--blue));
}
.hm-yt { background: #FF0033; color: #fff; }
.hm-chip-score { left: -2%; top: 30%; }
.hm-chip-yt { right: -3%; top: 14%; }

.hm-course {
  position: absolute; right: -4%; bottom: 4%; width: 60%;
  display: grid; grid-template-columns: 34% 1fr; gap: .8rem; align-items: center;
  padding: .7rem;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  text-decoration: none; color: var(--ink);
  transition: box-shadow .35s;
}
.hm-course:hover { box-shadow: var(--shadow-glow); }
.hm-course-thumb { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #1AA6E0; }
.hm-course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hm-course-body { display: grid; gap: .3rem; min-width: 0; }
.hm-course-body .pill { justify-self: start; font-size: .68rem; }
.hm-course-body strong { font-family: var(--font-display); font-size: .95rem; font-weight: 600; line-height: 1.25; }
.hm-course-meta { display: flex; flex-wrap: wrap; gap: .2rem .7rem; font-size: .72rem; color: var(--muted); }
.hm-course-meta span { display: inline-flex; align-items: center; gap: .25rem; }
.hm-course-foot { display: flex; align-items: center; justify-content: space-between; padding-top: .35rem; border-top: 1px dashed var(--line); }
.hm-price { font-family: var(--font-display); font-weight: 700; color: var(--blue-ink); font-size: .95rem; }
.hm-go { display: inline-flex; align-items: center; gap: .25rem; font-size: .78rem; font-weight: 700; }

.hm-math {
  position: absolute; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-md);
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.hm-math-a { left: 10%; bottom: 20%; color: var(--plum); transform: rotate(-10deg); }
.hm-math-b { right: 12%; top: 40%; color: var(--orange-ink); transform: rotate(8deg); font-size: 1rem; }
.hm-math-c { left: 46%; top: -1%; color: var(--olive-ink); transform: rotate(-6deg); }

/* --- Marquee --- */
main { overflow-x: clip; } /* the tilted band bleeds past the edges; clip keeps sticky children working */
.marquee {
  position: relative; z-index: 2;
  overflow: hidden;
  background: var(--ink);
  padding-block: 1.05rem;
  transform: rotate(-1.2deg);
  margin: -.75rem -2vw 0;
  box-shadow: var(--shadow-md);
}
.marquee-track {
  display: flex; align-items: center; gap: 1.75rem;
  width: max-content;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, .9rem + .6vw, 1.45rem);
  color: #fff; white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.marquee-track i { font-style: normal; color: var(--orange); font-size: .8em; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* --- Categories --- */
.categories { padding-top: calc(var(--space-section) + 1rem); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.cat-card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; height: 100%;
  padding: 1.6rem 1.5rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none; color: var(--text);
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.cat-card::before {
  content: ""; position: absolute; inset: auto 0 0; height: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, #fff), color-mix(in srgb, var(--c) 18%, #fff));
  transition: height .5s var(--ease-out);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 45%, #fff); }
.cat-card:hover::before { height: 100%; }
.cat-icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 18px;
  background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c);
  transition: transform .5s var(--ease-out), background-color .3s, color .3s;
}
.cat-icon .icon { width: 28px; height: 28px; }
.cat-card:hover .cat-icon { transform: rotate(-10deg) scale(1.06); background: var(--c); color: #fff; }
.cat-card h3 { margin-top: 1.2rem; font-size: 1.12rem; }
.cat-card p { margin-top: .4rem; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.cat-go {
  position: absolute; right: 1.1rem; top: 1.1rem;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink);
  transition: background-color .3s, color .3s, transform .45s var(--ease-out), border-color .3s;
}
.cat-card:hover .cat-go { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(45deg); }

/* Cursor spotlight (position set from JS) */
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c, var(--blue)) 20%, transparent), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.spot:hover::after { opacity: 1; }

/* --- About --- */
.about { background: var(--card); }
.about-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: center; }
.about-media { position: relative; aspect-ratio: 1 / .92; max-width: 580px; width: 100%; }
.am-main {
  position: absolute; left: 0; top: 0; width: 82%; aspect-ratio: 653 / 481;
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg);
  background: #1AA6E0;
}
.am-main img { width: 100%; height: 100%; object-fit: cover; }
.am-small {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1;
  border-radius: var(--r-xl); overflow: hidden;
  border: 8px solid var(--card); box-shadow: var(--shadow-lg);
}
.am-small img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.am-seal { position: absolute; left: 32%; bottom: 8%; width: 23%; border-radius: 50%; box-shadow: var(--shadow-lg); }
.am-seal svg { width: 100%; }
.am-seal .seal-text { transform-origin: 60px 60px; animation: spin 18s linear infinite; }
.am-stat {
  position: absolute; left: 4%; bottom: 4%;
  display: flex; flex-direction: column;
  padding: .75rem 1.1rem;
  background: var(--ink); color: #C9D3E3; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); font-size: .8rem;
}
.am-stat strong { font-family: var(--font-display); font-size: 1.6rem; color: #fff; line-height: 1.1; }
.am-dots {
  position: absolute; right: 6%; top: 4%; width: 18%; aspect-ratio: 1; z-index: -1;
  background: radial-gradient(circle, var(--blue) 1.6px, transparent 2px) 0 0 / 14px 14px; opacity: .5;
}

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.75rem; margin-top: 2rem; }
.feature-grid li { display: flex; gap: .9rem; align-items: flex-start; }
.fg-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 14px;
  background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c);
  transition: transform .45s var(--ease-out), background-color .3s, color .3s;
}
.feature-grid li:hover .fg-icon { transform: rotate(-8deg) scale(1.06); background: var(--c); color: #fff; }
.feature-grid h3 { font-size: 1.02rem; }
.feature-grid p { margin-top: .25rem; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.about-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2.25rem; }

/* --- Courses --- */
.filter-tabs {
  position: relative;
  display: inline-flex; padding: .35rem; gap: .25rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.filter-indicator {
  position: absolute; top: .35rem; bottom: .35rem; left: 0; width: 0;
  border-radius: var(--r-pill); background: var(--ink);
  transition: transform .45s var(--ease-out), width .45s var(--ease-out);
}
.filter-tab {
  position: relative; z-index: 1;
  min-height: 40px; padding: .45rem 1.05rem; border-radius: var(--r-pill);
  font-weight: 700; font-size: .9rem; color: var(--muted);
  transition: color .3s;
}
.filter-tab:hover { color: var(--ink); }
.filter-tab[aria-pressed="true"] { color: #fff; }
.no-js .filter-tab[aria-pressed="true"], .filter-tabs:not(.is-ready) .filter-tab[aria-pressed="true"] { background: var(--ink); }

.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.course-item[hidden] { display: none; }
.course-card {
  position: relative;
  display: flex; flex-direction: column; height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow .45s var(--ease-out), border-color .3s;
  transform-style: preserve-3d;
}
.course-card:hover { box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.cc-thumb { position: relative; aspect-ratio: 16 / 10.5; background: var(--bg); overflow: hidden; }
.cc-tag { position: absolute; left: .9rem; top: .9rem; z-index: 1; background: #fff; box-shadow: var(--shadow-sm); }
.cc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.cc-thumb::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14, 26, 47, .18), transparent 35%, transparent 70%, rgba(14, 26, 47, .12)); }
.course-card:hover .cc-img { transform: scale(1.06); }
.cc-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.25rem 1.25rem; }
.cc-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .78rem; font-weight: 600; color: var(--muted); }
.cc-meta li { display: inline-flex; align-items: center; gap: .3rem; }
.cc-meta .icon { color: var(--blue-ink); }
.cc-body h3 { margin-top: .7rem; font-size: 1.1rem; }
.cc-link { text-decoration: none; }
.cc-link::before { content: ""; position: absolute; inset: 0; z-index: 2; }  /* whole card clickable */
.cc-link:hover { color: var(--blue-ink); }
.cc-body p { margin-top: .5rem; font-size: .88rem; color: var(--muted); line-height: 1.55; flex: 1; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.cc-author { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; color: var(--ink); }
.cc-author img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.cc-price { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--blue-ink); white-space: nowrap; }
.cc-price-soft { font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: var(--muted); }

/* --- Stats --- */
.stats { padding-block: 0; }
.stats-card {
  position: relative; overflow: hidden;
  padding: clamp(2rem, 1.5rem + 2vw, 3.25rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  background: radial-gradient(120% 140% at 0% 0%, #1C3A66 0%, var(--ink) 55%);
  border-radius: var(--r-xl);
}
.stats-deco { position: absolute; inset: 0; width: 100%; height: 100%; }
.stats-list { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-list li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: .5rem 1rem; }
.stats-list li + li { border-left: 1px solid rgba(255, 255, 255, .12); }
.stats-list strong {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 1.6rem + 1.8vw, 3.2rem); letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(180deg, #fff 30%, #9AD8F4); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stats-list span:not([data-count]) { font-size: var(--fs-sm); color: #A6B2C6; }

/* --- Method --- */
/* Five equal step cards; each card's node sits on one straight connector
   line that fills with the brand gradient as the section scrolls by. */
.method-track { position: relative; }
.method-line {
  position: absolute; left: 10%; right: 10%; top: 38px; height: 4px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
}
.method-line span { display: block; height: 100%; border-radius: inherit; background: var(--grad-brand); transform-origin: left; }

.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
/* The card surface (::before) starts below the connector line, so the line
   runs through the node centres and never touches the card edges. */
.step {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 1.15rem 1.75rem;
  transition: transform .45s var(--ease-out);
}
.step::before {
  content: ""; position: absolute; inset: 62px 0 0; z-index: -1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: box-shadow .45s var(--ease-out), border-color .3s;
}
.step::after {
  content: ""; position: absolute; left: 1.5rem; right: 1.5rem; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--c); transform: scaleX(0); transition: transform .45s var(--ease-out);
}
.step:hover { transform: translateY(-6px); }
.step:hover::before { box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 45%, #fff); }
.step:hover::after { transform: scaleX(1); }
.step-node {
  display: grid; place-items: center;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 8px var(--paper), var(--shadow-md);
}
.step-icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: #fff; color: var(--ink);
  transition: transform .5s var(--ease-out);
}
.step-icon .icon { width: 24px; height: 24px; }
.step:hover .step-icon { transform: rotate(-12deg) scale(1.08); }
.step-num {
  margin-top: 1.1rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c);
}
.step:nth-child(2) .step-num { color: #9A7B00; } /* yellow is too light for text */
.step h3 { font-size: 1.08rem; margin-top: .35rem; }
.step p { margin-top: .5rem; font-size: .88rem; color: var(--muted); line-height: 1.55; }

/* --- Instructor --- */
.brooke { background: var(--card); }
.brooke-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 2rem + 5vw, 6.5rem); align-items: center; }
.brooke-media { position: relative; max-width: 470px; width: 100%; margin-inline: auto; padding: 0 0 2rem 2rem; }
.brooke-shape { position: absolute; left: 0; bottom: 0; width: 86%; height: 86%; border-radius: var(--r-xl); background: var(--grad-brand); opacity: .9; }
.brooke-photo {
  position: relative; aspect-ratio: 1 / 1.12;
  border-radius: var(--r-xl); overflow: hidden;
  background: #8E929C; box-shadow: var(--shadow-lg);
}
.brooke-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.brooke-badge {
  /* Lower-right, over the jacket, so it never covers her face */
  position: absolute; right: -6%; bottom: 5.5rem; top: auto;
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem 1.1rem .8rem .8rem;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  font-size: .8rem; color: var(--muted); line-height: 1.3;
}
.brooke-badge strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.bb-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); color: var(--ink); }
.brooke-socials { position: absolute; left: 2.75rem; bottom: 3rem; display: flex; gap: .45rem; }
.brooke-socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-md);
  transition: transform .35s var(--ease-out), background-color .25s, color .25s;
}
.brooke-socials a:hover { transform: translateY(-3px); background: var(--ink); color: #fff; }
.brooke-role { margin-top: .6rem; font-weight: 700; color: var(--orange-ink); font-size: var(--fs-sm); }
.brooke-lede { margin-top: 1.1rem; font-size: var(--fs-lede); font-weight: 500; color: var(--ink); line-height: 1.55; }
.brooke-copy > p:not(.kicker):not(.brooke-lede):not(.brooke-role) { margin-top: .9rem; color: var(--muted); }
.cred-list { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; margin-top: 1.6rem; }
.cred-list li { display: flex; align-items: center; gap: .65rem; font-weight: 600; font-size: .92rem; color: var(--ink); }
.cred-list .icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-ink); }
.brooke-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.brooke-sign { width: 140px; }

/* --- Watch --- */
.watch { background: var(--ink); color: #DCE3EE; overflow: clip; }
.watch-glow {
  position: absolute; inset: auto -10% -40% auto; width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 159, 218, .28), transparent 60%); pointer-events: none;
}
.watch .container { position: relative; z-index: 1; }
.section-head-dark .h2 { color: #fff; }
.section-head-dark .section-intro { color: #A6B2C6; margin-top: 0; max-width: 460px; }

.player-wrap { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.player { border-radius: var(--r-lg); overflow: hidden; background: #08101F; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); border: 1px solid #22345A; }
.player-facade, .player iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.player-facade { overflow: hidden; }
.player-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), filter .4s; }
.player-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(8, 16, 31, .55)); }
.player-facade:hover .player-thumb { transform: scale(1.04); }
.player-play {
  position: absolute; left: 50%; top: 50%; z-index: 1; translate: -50% -50%;
  display: grid; place-items: center;
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--orange); color: #fff;
  transition: transform .4s var(--ease-out);
}
.player-play .pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--orange); opacity: .5; animation: pulse-ring 2s ease-out infinite; z-index: -1; }
.player-play .icon { width: 34px; height: 34px; margin-left: 4px; }
.player-facade:hover .player-play { transform: scale(1.1); }
.player-facade:focus-visible { outline-offset: -4px; }
.player-now { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; font-weight: 600; color: #fff; font-size: var(--fs-sm); }

.playlist { background: rgba(255, 255, 255, .04); border: 1px solid #22345A; border-radius: var(--r-lg); padding: .75rem; }
.playlist-label { padding: .5rem .6rem .75rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7FD0F3; }
.playlist ul { display: grid; gap: .35rem; }
.pl-item {
  display: grid; grid-template-columns: 112px 1fr; gap: .9rem; align-items: center;
  width: 100%; padding: .5rem; border-radius: var(--r-md);
  text-align: left; color: #DCE3EE; font-size: .92rem; font-weight: 600; line-height: 1.35;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, transform .3s var(--ease-out);
}
.pl-item img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.pl-item small { display: block; margin-bottom: .2rem; font-size: .74rem; color: #8D9AB3; }
.pl-item:hover { background: rgba(255, 255, 255, .06); transform: translateX(3px); }
.pl-item[aria-pressed="true"] { background: rgba(16, 159, 218, .14); border-color: rgba(16, 159, 218, .55); color: #fff; }
.pl-item[aria-pressed="true"] small { color: #7FD0F3; }
.playlist-more {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: .5rem; padding: .85rem; border-radius: var(--r-md);
  color: #fff; font-weight: 700; text-decoration: none; font-size: var(--fs-sm);
  border: 1px dashed #34466D;
}
.playlist-more:hover { background: rgba(255, 255, 255, .06); }

/* --- Pricing --- */
.pricing { background: linear-gradient(180deg, var(--paper) 0%, #EAF4FA 100%); overflow: clip; }
.pricing::before {
  content: ""; position: absolute; left: 50%; top: 32%; width: 900px; height: 500px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(16, 159, 218, .16), transparent); pointer-events: none;
}
.billing-toggle {
  position: relative;
  display: inline-grid; grid-template-columns: 1fr 1fr;
  margin-top: 1.75rem; padding: .35rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.billing-toggle button {
  position: relative; z-index: 1;
  min-height: 42px; padding: .5rem 1.4rem; border-radius: var(--r-pill);
  font-weight: 700; font-size: .92rem; color: var(--muted); transition: color .3s;
}
.billing-toggle button[aria-checked="true"] { color: #fff; }
.bt-thumb {
  position: absolute; top: .35rem; bottom: .35rem; left: .35rem; width: calc(50% - .35rem);
  border-radius: var(--r-pill); background: var(--ink);
  transition: transform .45s var(--ease-out);
}
.billing-toggle[data-term="12"] .bt-thumb { transform: translateX(100%); }

.price-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.price-card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.pc-head { display: flex; align-items: center; gap: .9rem; }
.pc-head h3 { font-size: 1.2rem; }
.pc-head p { font-size: .82rem; color: var(--muted); }
.pc-icon { display: grid; place-items: center; flex-shrink: 0; width: 50px; height: 50px; border-radius: 15px; background: var(--blue-soft); color: var(--blue-ink); }
.pc-icon-orange { background: var(--orange-soft); color: var(--orange-ink); }
.pc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .55rem; margin-top: 1.6rem; padding-bottom: 1.4rem; border-bottom: 1px dashed var(--line-strong); }
.pc-amount { font-family: var(--font-display); font-weight: 700; font-size: 3rem; letter-spacing: -.05em; line-height: 1; color: var(--ink); display: inline-block; }
.pc-was { font-size: 1rem; color: var(--muted); text-decoration-thickness: 2px; text-decoration-color: rgba(237, 129, 46, .8); }
.pc-term { font-size: .9rem; font-weight: 600; color: var(--muted); }
.pc-list { display: grid; gap: .7rem; margin-top: 1.4rem; flex: 1; }
.pc-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; line-height: 1.45; }
.pc-list .icon { margin-top: .1rem; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); stroke-width: 3; }
.pc-btn { width: 100%; margin-top: 1.75rem; }
.pc-note { margin-top: .75rem; text-align: center; font-size: .78rem; color: #A6B2C6; }

.price-featured {
  background: var(--ink); color: #DCE3EE; border-color: transparent;
  box-shadow: var(--shadow-glow);
  transform: translateY(-14px);
}
.price-featured::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--angle, 0deg), var(--blue), var(--orange), var(--plum), var(--yellow), var(--blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: border-spin 6s linear infinite;
}
.price-featured::after {
  content: ""; position: absolute; inset: -40% -40% auto auto; width: 320px; height: 320px; z-index: -1;
  background: radial-gradient(circle, rgba(16, 159, 218, .35), transparent 65%);
}
.price-featured:hover { transform: translateY(-20px); }
.price-featured .pc-head { padding-right: 5.5rem; }
.price-featured h3, .price-featured .pc-amount { color: #fff; }
.price-featured .pc-head p, .price-featured .pc-term, .price-featured .pc-was { color: #A6B2C6; }
.price-featured .pc-price { border-color: rgba(255, 255, 255, .15); }
.price-featured .pc-icon { background: rgba(253, 207, 10, .15); color: var(--yellow); }
.price-featured .pc-list .icon { background: var(--orange); color: var(--ink); }
.pc-ribbon {
  position: absolute; right: 1.25rem; top: 1.25rem;
  padding: .3rem .75rem; border-radius: var(--r-pill);
  background: var(--yellow); color: var(--ink);
  font-size: .75rem; font-weight: 800; letter-spacing: .02em;
}

.tutor-rates {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem 2.5rem;
  margin-top: 2rem; padding: 1.4rem 1.75rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.tr-intro { display: flex; align-items: center; gap: .9rem; }
.tr-intro h3 { font-size: 1.1rem; }
.tr-intro p { font-size: .85rem; color: var(--muted); }
.tr-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--olive-soft); color: var(--olive-ink); }
.tr-list { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.tr-list li { display: flex; flex-direction: column; padding: .55rem 1.1rem; border-radius: var(--r-md); background: var(--paper); min-width: 130px; }
.tr-list span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.tr-list strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.tr-list small { font-size: .75rem; color: var(--muted); font-weight: 500; }
.pricing-fine { position: relative; margin-top: 1.25rem; text-align: center; font-size: .8rem; color: var(--muted); }
.pricing-fine a { color: var(--blue-ink); font-weight: 600; }

/* --- Testimonials --- */
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2.5rem) / 3);
  gap: 1.25rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 1rem 2px 1.5rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: 4px; }
.tm-card {
  position: relative;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: 1.75rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.tm-card::after {
  content: "”"; position: absolute; right: 1.25rem; bottom: .25rem;
  font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--blue-soft);
  pointer-events: none;
}
.tm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.tm-feature { background: var(--ink); border-color: var(--ink); color: #DCE3EE; }
.tm-feature::after { color: rgba(255, 255, 255, .08); }
.tm-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 2px; color: #F5B300; }
.stars .icon { width: 17px; height: 17px; }
.tm-score {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .7rem; border-radius: var(--r-pill);
  background: var(--blue-soft); color: var(--blue-ink);
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
}
.tm-score small { font-family: var(--font-body); font-size: .7rem; font-weight: 700; opacity: .85; }
.tm-feature .tm-score { background: rgba(253, 207, 10, .15); color: var(--yellow); }
.tm-card blockquote { position: relative; z-index: 1; margin-top: 1.1rem; flex: 1; }
.tm-card blockquote p { font-size: .97rem; line-height: 1.65; color: var(--text); }
.tm-feature blockquote p { color: #E7ECF4; }
.tm-card figcaption { position: relative; z-index: 1; display: flex; align-items: center; gap: .75rem; margin-top: 1.4rem; }
.avatar {
  display: grid; place-items: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--c); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  box-shadow: 0 0 0 3px var(--card), 0 0 0 5px color-mix(in srgb, var(--c) 40%, transparent);
}
.tm-feature .avatar { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px rgba(255, 255, 255, .25); }
.tm-card figcaption strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.tm-feature figcaption strong { color: #fff; }
.tm-card figcaption small { font-size: .82rem; color: var(--muted); }
.tm-feature figcaption small { color: #A6B2C6; }

.carousel-btns { display: flex; gap: .6rem; }
.round-btn {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--card); border: 1.5px solid var(--line-strong); color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s, opacity .2s, transform .3s var(--ease-out);
}
.round-btn:hover:not(:disabled) { background: var(--orange); border-color: var(--orange); }
.round-btn:active:not(:disabled) { transform: scale(.92); }
.round-btn:disabled { opacity: .35; cursor: not-allowed; }
.carousel-foot { display: flex; align-items: center; gap: 1.25rem; margin-top: .5rem; }
.carousel-progress { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.carousel-progress span { display: block; height: 100%; width: 100%; background: var(--grad-brand); transform-origin: left; transform: scaleX(.2); transition: transform .4s var(--ease-out); }
.carousel-status { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); font-size: var(--fs-sm); }
.cs-current { color: var(--ink); }
.results-note { margin-top: 1.25rem; font-size: .85rem; color: var(--muted); }
.results-note a { color: var(--blue-ink); font-weight: 600; }

/* --- FAQ --- */
.faq { background: var(--card); }
.faq-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.help-card {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-top: 2rem; padding: 1.4rem;
  background: var(--paper-2); border-radius: var(--r-lg);
}
.help-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff; }
.help-card strong { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.help-card p { font-size: .9rem; color: var(--muted); }
.help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1rem; }

.accordion { display: grid; gap: .75rem; }
.acc-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.acc-item:hover { border-color: var(--line-strong); }
.acc-item.is-open { background: var(--card); border-color: var(--blue); box-shadow: 0 14px 34px -16px rgba(16, 159, 218, .45); }
.acc-item h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.acc-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; min-height: 64px; padding: 1rem 1.25rem 1rem 1.4rem;
  text-align: left; border-radius: var(--r-md); color: var(--ink);
}
.acc-icon {
  position: relative; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line);
  transition: background-color .3s, transform .45s var(--ease-out), border-color .3s;
}
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px;
  background: currentColor; transition: transform .45s var(--ease-out);
}
.acc-icon::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-icon { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(180deg); }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner > div { padding: 0 1.4rem 1.4rem; color: var(--muted); }
.acc-inner a { color: var(--blue-ink); font-weight: 600; }

/* --- Blog --- */
/* Three equal cards; thumbnails keep their 16:9 artwork (titles are baked in) */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post {
  display: flex; flex-direction: column;
  padding: .75rem .75rem 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: box-shadow .45s var(--ease-out), transform .45s var(--ease-out), border-color .3s;
}
.post:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: var(--line-strong); }
.post-img { display: block; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--paper-2); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.post:hover .post-img img { transform: scale(1.05); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem .6rem 0; }
.post-more { align-self: flex-start; margin-top: auto; padding-top: 1rem; font-size: .88rem; color: var(--blue-ink); }
.post-meta { display: flex; align-items: center; gap: .75rem; font-size: .8rem; color: var(--muted); font-weight: 600; }
.post h3 { margin-top: .65rem; font-size: 1.12rem; line-height: 1.35; }
.post h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease-out); }
.post h3 a:hover { background-size: 100% 2px; }
.post-body > p:not(.post-meta) { margin-top: .6rem; color: var(--muted); font-size: .93rem; }

/* --- Dual CTA --- */
.dual-cta { padding-bottom: var(--space-section); }
.dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.dual-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-radius: var(--r-xl);
}
.dual-card h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.15rem); max-width: 16ch; }
.dual-card > p:not(.kicker) { margin-top: .75rem; max-width: 40ch; }
.dual-card .btn { margin-top: 1.75rem; }
.dual-card small { margin-top: .75rem; font-size: .78rem; opacity: .75; }
.dual-student { background: linear-gradient(135deg, #FFF4E8, #FDE3CC); }
.dual-student .kicker { background: #fff; }
.dual-student > p:not(.kicker) { color: #5C4A3B; }
.dual-educator { background: radial-gradient(120% 120% at 100% 0%, #1C3A66, var(--ink) 60%); color: #C9D3E3; }
.dual-educator h2 { color: #fff; }
.dual-art { position: absolute; right: -2%; bottom: -10%; width: 42%; max-width: 230px; z-index: -1; opacity: .9; transition: transform .8s var(--ease-out); }
.dual-card:hover .dual-art { transform: rotate(-12deg) scale(1.05); }

/* --- Footer --- */
.site-footer { background: var(--ink); color: #A6B2C6; padding-top: 1px; }
.newsletter {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem 2rem;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding: 1.75rem 2rem;
  background: linear-gradient(110deg, #13355A, #0F2440);
  border: 1px solid #22345A; border-radius: var(--r-xl);
}
.nl-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--orange); color: var(--ink); }
.nl-icon .icon { width: 26px; height: 26px; }
.newsletter h2 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); color: #fff; }
.newsletter p { font-size: .9rem; margin-top: .2rem; }

.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) 1.25fr; gap: 2.5rem; padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.brand-light { background: #fff; padding: .55rem .8rem; border-radius: 12px; display: inline-block; }
.footer-brand .brand img { width: 150px; }
.footer-brand p { margin-top: 1.1rem; font-size: var(--fs-sm); max-width: 34ch; }
.socials { display: flex; gap: .5rem; margin-top: 1.4rem; }
.socials a {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .06); color: #fff;
  transition: background-color .25s, color .25s, transform .35s var(--ease-out);
}
.socials a:hover { background: var(--orange); color: #fff; transform: translateY(-3px); }
.footer-col h2 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; color: #fff; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col ul a { color: #A6B2C6; text-decoration: none; font-size: var(--fs-sm); transition: color .2s, padding-left .3s var(--ease-out); }
.footer-col ul a:hover { color: #fff; padding-left: 4px; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; }
.footer-contact h2 { margin-bottom: .25rem; }
.fc-line { display: inline-flex; align-items: center; gap: .55rem; color: #DCE3EE; text-decoration: none; font-size: var(--fs-sm); }
.fc-line .icon { color: var(--orange); }
.fc-line:hover { color: #fff; text-decoration: underline; }
.footer-contact .btn { margin-top: .4rem; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem;
  margin-top: 3.5rem; padding-block: 1.75rem 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .875rem;
}
.legal { display: flex; gap: 1.5rem; }
.legal a { color: #A6B2C6; }
.legal a:hover { color: #fff; }
.disclaimer { flex-basis: 100%; font-size: .76rem; line-height: 1.5; max-width: 90ch; color: #7D8AA3; }

/* Back to top */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--orange); color: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s, transform .4s var(--ease-out), visibility 0s .4s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease-out), visibility 0s; }
.to-top:hover { transform: translateY(-3px); }
