/* ══════════════════════════════════════════
   HOME.CSS — tasteskill v2 / impeccable / emil-design-eng
   DESIGN_VARIANCE: 7  MOTION_INTENSITY: 6  VISUAL_DENSITY: 4
   PHP stack: CSS animations + IntersectionObserver only
   (no motion/react, no GSAP — compensate with CSS scroll-driven)
══════════════════════════════════════════ */

/* ── FONTS ──────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap');

/* ── TOKEN OVERRIDES (home only) ────────── */
:root {
  --home-font:      'Geist', system-ui, sans-serif;
  --ease-out-hard:  cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out:    cubic-bezier(0.77, 0, 0.175, 1);
}

/* apply Geist to all homepage sections */
.hero, .section--subjects, .section--tutors,
.section--hiw, .section--teacher-cta {
  font-family: var(--home-font);
}

/* ══════════════════════════════════════════
   HERO — Asymmetric Split (VARIANCE: 7)
   Left: content. Right: real image + floating card.
   NOT centered. Left-aligned text.
══════════════════════════════════════════ */


.hero__inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  min-height: 560px;
  align-items: stretch;
}

/* Left column */
.hero__content {
  padding: 80px 56px 80px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* Right column — real image */
.hero__visual {
  position: relative;
  overflow: hidden;
 /* background: var(--surface-2);*/
}
.hero__visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9);
}
/* Scrim so the card reads */
.hero__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    oklch(1.00 0 0 / .18) 0%,
    transparent 40%
  );
  pointer-events: none;
}
/* Floating trust card */
.hero__float-card {
  position: absolute;
  bottom: 32px;
  left: 28px;
  background: oklch(1.00 0 0 / .88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 8px 32px oklch(0 0 0 / .12);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: card-float 5s ease-in-out infinite;
  z-index: 2;
}
@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.hero__float-card__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-lt);
  flex-shrink: 0;
}
.hero__float-card__name {
  font-size: 13px; font-weight: 600; color: var(--ink);
  line-height: 1.2;
}
.hero__float-card__meta {
  font-size: 11px; color: var(--ink-faint); margin-top: 2px;
  display: flex; align-items: center; gap: 4px;
}
.hero__float-card__stars {
  color: var(--accent); font-size: 10px; letter-spacing: -1px;
}
@media (prefers-reduced-motion: reduce) {
  .hero__float-card { animation: none; }
}

/* Hero content elements */
.hero__label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-lt);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero__label-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
}
/* No decorative pulse — tasteskill bans decorative status dots */

.hero__title {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 700; letter-spacing: -0.045em; line-height: 1.06;
  text-wrap: balance; margin-bottom: 18px; color: var(--ink);
  max-width: 14ch;
}
.hero__title em { font-style: normal; color: var(--primary); }

.hero__sub {
  font-size: 16px; color: var(--ink-muted); max-width: 38ch;
  line-height: 1.65; text-wrap: pretty; margin-bottom: 32px;
  /* max 20 words enforced in markup */
}

.hero__search {
  display: flex; align-items: center;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 6px 6px 6px 18px;
  box-shadow: 0 4px 20px oklch(0 0 0 / .07);
  width: 100%; max-width: 420px;
  transition: border-color .2s, box-shadow .2s;
}
.hero__search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.50 0.20 265 / .12);
}
.hero__search-icon { color: var(--ink-faint); flex-shrink: 0; margin-right: 10px; }
.hero__search input {
  flex: 1; font-family: inherit; font-size: 15px;
  border: none; outline: none; background: transparent;
  min-width: 0; color: var(--ink);
}
.hero__search input::placeholder { color: var(--ink-faint); }
.hero__search button {
  font-size: 14px; font-weight: 600; color: #fff;
  background: var(--primary); border: none; border-radius: 999px;
  padding: 10px 22px; cursor: pointer; white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.hero__search button:hover { background: var(--primary-dk); }
.hero__search button:active { transform: scale(0.97); }

.hero__trust {
  display: flex; align-items: center; gap: 18px;
  margin-top: 22px; flex-wrap: wrap;
}
.hero__trust-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--ink-faint);
}
.trust-icon { color: var(--accent); flex-shrink: 0; }

/* ══════════════════════════════════════════
   SUBJECTS — chip grid, white bg
   Eyebrow + title left-aligned per VARIANCE: 7
══════════════════════════════════════════ */
.section--subjects {
  padding: 88px 0;
  background: var(--surface);
}
.section--subjects .section-header {
  margin-bottom: 36px;
}
.section--subjects .subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 0;
}

.subject-chip {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 12px; font-weight: 500; color: var(--ink-muted); text-align: center;
  text-decoration: none;
  /* Emil: specify exact transition properties, not 'all' */
  transition: background .16s var(--ease-out-hard),
              border-color .16s var(--ease-out-hard),
              color .16s var(--ease-out-hard),
              transform .16s var(--ease-out-hard);
  cursor: pointer;
}
.subject-chip__icon {
  width: 34px; height: 34px; border-radius: 8px;
 /* background: var(--surface-2); */
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background .16s var(--ease-out-hard);
}
/* Gate hover behind pointer media query (Emil skill) */
@media (hover: hover) and (pointer: fine) {
  .subject-chip:hover {
    background: var(--primary-lt);
    border-color: var(--primary);
    color: var(--primary-dk);
    transform: translateY(-2px);
  }
  .subject-chip:hover .subject-chip__icon {
    background: oklch(0.88 0.07 265);
  }
}

/* ══════════════════════════════════════════
   TUTORS — surface-2 bg, card grid
   Featured first card 2x wide (VARIANCE: 7)
══════════════════════════════════════════ */
.section--tutors {
  padding: 88px 0;
  background: var(--surface-2);
}
.tutors-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  gap: 24px; margin-bottom: 40px;
}
.tutors-browse-link {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 500; color: var(--primary);
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: color .15s;
}
.tutors-browse-link:hover { color: var(--primary-dk); }

/* Grid: first card spans 2 cols for VARIANCE */
.section--tutors .tutors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.section--tutors .tutors-grid .tutor-card:first-child {
  grid-column: span 2;
  /* flex-direction: row; */
  gap: 0;
}
.section--tutors .tutors-grid .tutor-card:first-child .tutor-card__left {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  background: var(--primary-lt);
  border-radius: 16px 0 0 16px;
}
.section--tutors .tutors-grid .tutor-card:first-child .tutor-card__right {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.section--tutors .tutors-grid .tutor-card:first-child .tutor-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin-bottom: 12px;
}
.section--tutors .tutors-grid .tutor-card:first-child .hero-name {
  font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.2;
  text-align: center;
}
.section--tutors .tutors-grid .tutor-card:first-child .hero-role {
  font-size: 12px; color: var(--ink-faint); text-align: center; margin-top: 3px;
}

/* Base card */
.section--tutors .tutor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  /* Emil: transform + box-shadow only, no 'all' */
  transition: transform .2s var(--ease-out-hard),
              box-shadow .2s;
  transition-delay: var(--delay, 0ms);
}
@media (hover: hover) and (pointer: fine) {
  .section--tutors .tutor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px oklch(0 0 0 / .09);
    border-color: var(--border); /* no purple flash */
  }
}
/* Emil: active state feedback */
.section--tutors .tutor-card:active {
  transform: scale(0.99);
}

/* Card internals */
.tutor-card__head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 12px; }
.tutor-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: var(--primary-lt); border: none;
}
.tutor-avatar--initials {
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: var(--primary);
}
.tutor-card__meta { flex: 1; min-width: 0; }
.tutor-card__name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.tutor-card__tagline {
  font-size: 11px; color: var(--ink-faint); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tutor-card__verified {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 500;
  color: oklch(0.38 0.14 165); background: oklch(0.93 0.06 165);
  padding: 2px 6px; border-radius: 999px; margin-top: 4px;
}
.tutor-card__rating { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.rating-n { font-size: 13px; font-weight: 600; color: var(--ink); }
.rating-c { font-size: 11px; color: var(--ink-faint); }
.tutor-card__bio {
  font-size: 13px; color: var(--ink-muted); line-height: 1.55; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tutor-card__tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.tutor-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
  background: transparent;
}
.tutor-card__price { font-size: 15px; font-weight: 700; color: var(--ink); }
.tutor-card__price small { font-size: 11px; font-weight: 400; color: var(--ink-faint); }

/* Padding for non-featured cards */
.section--tutors .tutor-card:not(:first-child) {
  padding: 20px;
}

/* ══════════════════════════════════════════
   HOW IT WORKS — vertical timeline (not a grid)
   Breaks the 3-grid-sections-in-a-row pattern
   SECTION-LAYOUT-REPETITION: different from subjects+tutors
══════════════════════════════════════════ */
.section--hiw {
  padding: 88px 0;
  background: var(--surface);
}
.section--hiw .hiw-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
}
.hiw-step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  /* Emil: opacity + transform, specific duration */
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .5s var(--ease-out-hard),
              transform .5s var(--ease-out-hard);
  transition-delay: var(--delay, 0ms);
}
.hiw-step:first-child { padding-top: 0; }
.hiw-step:last-child { border-bottom: none; padding-bottom: 0; }
.hiw-step.visible { opacity: 1; transform: translateX(0); }
.hiw-step__num {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 14px; font-weight: 700;
  font-family: monospace;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hiw-step__title {
  font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 5px;
}
.hiw-step__desc {
  font-size: 13px; color: var(--ink-muted); line-height: 1.6;
}
/* Right column: a real image */
.hiw-visual {
  border-radius: 16px;
  overflow: hidden;
  height: 400px;
  position: sticky;
  top: 96px;
  background: var(--surface-2);
}
.hiw-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}
/* Caption under image — functional only */
.hiw-visual__caption {
  font-size: 12px; color: var(--ink-faint);
  margin-top: 10px; text-align: left;
}

/* ══════════════════════════════════════════
   TEACHER CTA — full-bleed dark, horizontal split
   4th layout family (dark bg, flex row)
══════════════════════════════════════════ */
.section--teacher-cta {
  padding: 88px 0;
  background: var(--ink);
}
.teacher-cta__inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 64px;
}
.teacher-cta__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: oklch(0.72 0.17 55 / .18);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 18px;
}
.teacher-cta__title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.12;
  text-wrap: balance; color: #fff; margin-bottom: 14px;
}
.teacher-cta__sub {
  font-size: 15px; color: oklch(0.70 0.01 255);
  line-height: 1.65; max-width: 48ch;
}
.teacher-cta__perks {
  display: flex; gap: 18px; margin-top: 22px; flex-wrap: wrap;
}
.perk {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: oklch(0.75 0.01 255);
}
.perk svg { color: var(--accent); flex-shrink: 0; }

/* CTA button */
.section--teacher-cta .btn--accent {
  font-size: 15px; padding: 15px 34px; border-radius: 12px;
  white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 4px 24px oklch(0.72 0.17 55 / .32);
  transition: opacity .15s, transform .1s, box-shadow .15s;
}
.section--teacher-cta .btn--accent:hover {
  opacity: .9;
  box-shadow: 0 6px 32px oklch(0.72 0.17 55 / .44);
}
/* Emil: active feedback */
.section--teacher-cta .btn--accent:active {
  transform: scale(0.97);
}

/* ══════════════════════════════════════════
   SHARED SECTION TYPOGRAPHY
   Eyebrows: max 1 per 3 sections (tasteskill rule)
   We have 4 sections, max 2 eyebrows — we use 2
══════════════════════════════════════════ */
.section__eyebrow {
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: .10em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}
/* Section titles left-aligned for VARIANCE > 4 */
.section--subjects .section__title,
.section--tutors .section__title,
.section--hiw .section__title {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 700; letter-spacing: -0.035em;
  line-height: 1.12; text-wrap: balance;
  text-align: left;
  margin-bottom: 4px;
}
.section__sub-small {
  font-size: 15px; color: var(--ink-muted);
  margin-top: 8px; max-width: 50ch; text-align: left;
}

/* ══════════════════════════════════════════
   MOTION — INTENSITY: 6
   Scroll reveal: opacity + translateY
   Emil: specify exact properties, not 'all'
   prefers-reduced-motion guard (mandatory)
══════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    /* Emil: strong ease-out, 500ms max for scroll reveals */
    transition: opacity .5s var(--ease-out-hard),
                transform .5s var(--ease-out-hard);
    transition-delay: var(--delay, 0ms);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Subject chips — stagger on viewport enter */
  .subject-chip {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s var(--ease-out-hard),
                transform .4s var(--ease-out-hard),
                background .16s var(--ease-out-hard),
                border-color .16s var(--ease-out-hard),
                color .16s var(--ease-out-hard);
    transition-delay: var(--chip-delay, 0ms);
  }
  .subject-chip.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Tutor cards — stagger */
  .section--tutors .tutor-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .45s var(--ease-out-hard),
                transform .45s var(--ease-out-hard),
                box-shadow .2s;
    transition-delay: var(--delay, 0ms);
  }
  .section--tutors .tutor-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* Keep hover lift after visible */
  @media (hover: hover) and (pointer: fine) {
    .section--tutors .tutor-card.visible:hover {
      transform: translateY(-3px);
    }
  }

  /* How it works steps already have their own reveal in .hiw-step */
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .subject-chip,
  .section--tutors .tutor-card,
  .hiw-step {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__float-card { animation: none; }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr 380px; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero__content { padding: 64px 0 56px; }
  .section--hiw .hiw-inner { grid-template-columns: 1fr; gap: 40px; }
  .hiw-visual { display: none; } /* real image hidden on mobile — steps carry */
  .section--tutors .tutors-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section--tutors .tutors-grid .tutor-card:first-child {
    grid-column: span 2;
    flex-direction: column;
  }
  .section--tutors .tutors-grid .tutor-card:first-child .tutor-card__left {
    border-radius: 16px 16px 0 0;
    flex-direction: row;
    gap: 14px;
    padding: 20px 24px;
    flex: none;
  }
  .section--tutors .tutors-grid .tutor-card:first-child .tutor-avatar {
    width: 44px; height: 44px; margin-bottom: 0;
  }
  .section--tutors .tutors-grid .tutor-card:first-child .hero-name { text-align: left; }
  .section--tutors .tutors-grid .tutor-card:first-child .hero-role { text-align: left; }
}

@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero__content { padding: 48px 0 40px; }
  .hero__search { max-width: 100%; }
  .hero__trust { gap: 10px; }
  .section--subjects .subjects-grid { grid-template-columns: repeat(3, 1fr); }
  .section--subjects { padding: 56px 0; }
  .section--tutors { padding: 56px 0; }
  .section--tutors .tutors-grid { grid-template-columns: 1fr; }
  .section--tutors .tutors-grid .tutor-card:first-child { grid-column: span 1; }
  .section--hiw { padding: 56px 0; }
  .section--teacher-cta { padding: 56px 0; }
  .teacher-cta__inner { flex-direction: column; gap: 32px; }
  .tutors-header { flex-direction: column; align-items: flex-start; }
  .hiw-steps { margin-top: 28px; }
}

/* ══════════════════════════════════════════
   HERO — right column floating card stack
   Three cards: tutor profile, subject chips,
   platform stats. Staggered float animations.
══════════════════════════════════════════ */
.hero__inner {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 48px;
    align-items: center;
    min-height: 540px;
    padding: 80px 0 72px;
}
.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hero__visual {
    position: relative;
   
}
.hero__card-stack {
    position: relative;
    height: 420px;
}

/* Shared card base */
.hcard {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
   /* box-shadow: 0 8px 32px oklch(0 0 0 / .10), 0 2px 8px oklch(0 0 0 / .05); */
}

/* Card 1 — tutor profile, top-right, largest */
.hcard--main {
    top: 0;
    right: 0;
    width: 270px;
    padding: 20px;
    animation: float-a 5s ease-in-out infinite;
}
/* Card 2 — subject chips, bottom-left */
.hcard--chips {
    bottom: 32px;
    left: 0;
    width: 240px;
    padding: 16px 18px;
    animation: float-b 5.8s ease-in-out infinite .7s;
}
/* Card 3 — stats, middle */
.hcard--stats {
    top: 343px;
    left: 166px;
    width: 284px;
    padding: 6px 17px;
    animation: float-c 6.4s ease-in-out infinite 1.3s;
}

@keyframes float-a {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}
@keyframes float-b {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}
@keyframes float-c {
    0%, 100% { transform: translateY(0px) rotate(-0.5deg); }
    50%       { transform: translateY(-6px) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hcard--main, .hcard--chips, .hcard--stats { animation: none; }
}

/* Card 1 internals */
.hcard__head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
}
.hcard__avatar {
    width: 40px; height: 40px;
    border-radius: 50%; object-fit: cover;
    background: var(--primary-lt);
    flex-shrink: 0;
}
.hcard__avatar--initials {
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; color: var(--primary);
}
.hcard__name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.hcard__role { font-size: 11px; color: var(--ink-faint); margin-top: 2px; }
.hcard__stars {
    display: flex; align-items: center; gap: 2px;
    margin-bottom: 10px;
}
.hcard__stars svg { width: 12px; height: 12px; }
.hcard__rating-n { font-size: 12px; font-weight: 600; color: var(--ink); margin-left: 4px; }
.hcard__rating-c { font-size: 11px; color: var(--ink-faint); }
.hcard__tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.hcard__tag {
    font-size: 10px; font-weight: 500;
    color: var(--primary); background: var(--primary-lt);
    padding: 2px 8px; border-radius: 999px;
}
.hcard__price {
    font-size: 15px; font-weight: 700; color: var(--ink);
    margin-bottom: 12px;
}
.hcard__price span { font-size: 11px; font-weight: 400; color: var(--ink-faint); }
.hcard__cta {
    display: block; text-align: center;
    font-size: 12px; font-weight: 600; color: #fff;
    background: var(--primary); border-radius: 9px;
    padding: 8px;
    transition: background .15s;
    text-decoration: none;
}
.hcard__cta:hover { background: var(--primary-dk); color: #fff; }

/* Card 2 — chips */
.hcard__chips-label {
    font-size: 10px; font-weight: 600; letter-spacing: .07em;
    text-transform: uppercase; color: var(--ink-faint);
    margin-bottom: 10px;
}
.hcard__chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.hcard__chip {
    font-size: 12px; font-weight: 500;
    padding: 5px 11px; border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--ink-muted);
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.hcard__chip:hover,
.hcard__chip--active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Card 3 — stats */
.hcard__stats-row {
    display: flex; gap: 0;
}
.hcard__stat {
    flex: 1;
    padding: 8px 10px;
    border-right: 1px solid var(--border);
}
.hcard__stat:last-child { border-right: none; }
.hcard__stat-n {
    font-size: 19px; font-weight: 700;
    color: var(--ink); letter-spacing: -0.03em; line-height: 1;
}
.hcard__stat-n span { color: var(--primary); }
.hcard__stat-l { font-size: 10px; color: var(--ink-faint); margin-top: 3px; }

/* ══════════════════════════════════════════
   SUBJECT CHIPS — icon sizing fix
   SVGs from DB get sized and tinted here
══════════════════════════════════════════ */
.subject-chip__icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: var(--surface-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; /* for emoji fallback */
    transition: background .16s var(--ease-out-hard);
    overflow: hidden;
}
/* Size and tint inline SVGs from DB */
.subject-chip__icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}
@media (hover: hover) and (pointer: fine) {
    .subject-chip:hover .subject-chip__icon {
        background: oklch(0.87 0.07 265);
    }
    .subject-chip:hover .subject-chip__icon svg {
        color: var(--primary-dk);
    }
}

/* ══════════════════════════════════════════
   HOW IT WORKS — two-column with lesson widget
══════════════════════════════════════════ */
.section--hiw { padding: 88px 0; background: var(--surface); }
.hiw-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}
.hiw-left { }
.hiw-left .section__eyebrow { margin-bottom: 10px; }
.hiw-left .section__title { margin-bottom: 0; }

.hiw-steps {
    display: flex; flex-direction: column;
    margin-top: 32px;
}
.hiw-step {
    display: flex; gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity .5s var(--ease-out-hard),
                transform .5s var(--ease-out-hard);
    transition-delay: var(--delay, 0ms);
}
.hiw-step:first-child { padding-top: 4px; }
.hiw-step:last-child  { border-bottom: none; padding-bottom: 0; }
.hiw-step.visible     { opacity: 1; transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
    .hiw-step { opacity: 1; transform: none; transition: none; }
}
.hiw-step__num {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--primary); color: #fff;
    font-size: 13px; font-weight: 700; font-family: monospace;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hiw-step__title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.hiw-step__desc  { font-size: 13px; color: var(--ink-muted); line-height: 1.6; }

/* Lesson widget */
.hiw-right { position: sticky; top: 96px; }
.hiw-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 32px oklch(0 0 0 / .08);
    display: flex; flex-direction: column; gap: 0;
}
.hiw-widget__head {
    font-size: 11px; font-weight: 600;
    color: var(--ink-faint); text-transform: uppercase;
    letter-spacing: .08em; margin-bottom: 14px;
}
.lesson-card {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}
.lesson-card:last-of-type { border-bottom: none; }
.lesson-card__dot {
    width: 8px; height: 8px;
    border-radius: 50%; flex-shrink: 0;
}
.lesson-card__info { flex: 1; min-width: 0; }
.lesson-card__title {
    font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.2;
}
.lesson-card__sub { font-size: 11px; color: var(--ink-faint); margin-top: 2px; }
.lesson-card__time {
    font-size: 11px; font-weight: 600; font-family: monospace;
    color: var(--primary); background: var(--primary-lt);
    padding: 3px 8px; border-radius: 6px;
    white-space: nowrap; flex-shrink: 0;
}
.hiw-widget__cta {
    margin-top: 14px; padding: 13px 15px;
    background: var(--primary-lt); border-radius: 10px;
}
.hiw-widget__cta-title {
    font-size: 12px; font-weight: 600; color: var(--primary-dk);
}
.hiw-widget__cta-sub {
    font-size: 12px; color: var(--primary); margin-top: 3px;
}

/* ── RESPONSIVE — hero stack + hiw ─────── */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr 380px; gap: 32px; }
}
@media (max-width: 860px) {
    .hero__inner { grid-template-columns: 1fr; padding: 56px 0 48px; }
    .hero__visual { display: none; }
    .hiw-inner { grid-template-columns: 1fr; gap: 40px; }
    .hiw-right { position: static; }
}
@media (max-width: 640px) {
    .hero__inner { padding: 48px 0 40px; }
    .hero__search { max-width: 100%; }
    .hero__trust { gap: 10px; }
}
