/* Page-specific styles — home hero, journey wheel, etc. */

/* ─── Home Hero ─── */
.hero {
  padding: 0 0 var(--space-16);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Pull hero bg under floating header — seamless with menu on home */
.site-header:not(.scrolled) ~ #main-content > .hero:first-child {
  margin-top: calc(-1 * var(--header-shell-h));
  padding-top: calc(var(--header-shell-h) + var(--space-20));
  transition:
    margin-top 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    padding-top 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled ~ #main-content > .hero:first-child {
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + var(--space-16));
  transition:
    margin-top 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    padding-top 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 15% 25%, rgba(20, 184, 166, 0.1), transparent),
    radial-gradient(ellipse 40% 35% at 85% 15%, rgba(212, 168, 83, 0.06), transparent);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, black, transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(var(--space-8), 5vw, var(--space-14));
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-slogan {
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.35;
  max-width: 16em;
  margin: 0 0 var(--space-8);
  color: var(--navy-900);
}

.hero-slogan-rotator {
  display: grid;
  grid-template: 1fr / 1fr;
}

.hero-slogan-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: flex-start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.35em);
  transition:
    opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.65s;
}

.hero-slogan-line {
  display: block;
  line-height: 1.3;
}

.hero-slogan-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-slogan-slide.is-exiting {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.35em);
}

.hero-slogan-highlight {
  display: inline;
  background: linear-gradient(
    120deg,
    var(--teal-700) 0%,
    var(--teal-500) 35%,
    var(--gold-500) 65%,
    var(--teal-600) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hero-shimmer 10s ease-in-out infinite;
}

@keyframes hero-shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-10) 0 0;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.hero-proof span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
}

.hero-proof span + span::before {
  content: '·';
  margin-inline-end: var(--space-4);
  color: var(--text-muted);
  opacity: 0.35;
  font-weight: 400;
}

.hero-proof strong {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

/* ─── Journey wheel (SVG) ─── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-video-wrap {
  width: min(420px, 92vw);
}

.hero-video-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  text-align: center;
}

.hero-video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--navy-900);
}

.hero-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── Journey orbit (hero) ─── */
.journey-orbit {
  --orbit-size: min(420px, 92vw);
  --orbit-r: calc(var(--orbit-size) * 86 / 200);
  --orbit-node-gap: 6px;
  --orbit-label-offset: calc(var(--orbit-node-gap) + 0.72rem);
  --orbit-dur: 52s;
  --orbit-count: 5;
  width: var(--orbit-size);
  height: var(--orbit-size);
  position: relative;
  color: var(--teal-600);
}

.journey-orbit__spinner {
  position: absolute;
  inset: 0;
  animation: journey-orbit-spin var(--orbit-dur) linear infinite;
}

.journey-orbit__track {
  width: 100%;
  height: 100%;
  display: block;
}

.journey-orbit__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}

.journey-orbit__node {
  position: absolute;
  inset: 0;
  transform: rotate(calc((360deg / var(--orbit-count)) * var(--i) - 90deg));
}

.journey-orbit__arm {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(calc(-1 * var(--orbit-r)));
}

.journey-orbit__counter {
  animation: journey-orbit-spin var(--orbit-dur) linear infinite reverse;
}

.journey-orbit__label-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--orbit-node-gap);
  transform: rotate(calc(90deg - (360deg / var(--orbit-count)) * var(--i))) translateY(calc(var(--orbit-label-offset) / 2));
}

.journey-orbit__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--teal-700);
  background: var(--surface);
  border: 2px solid rgba(15, 118, 110, 0.4);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.journey-orbit__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1;
}

.journey-orbit__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--bg) 88%, transparent),
    0 8px 24px rgba(15, 23, 42, 0.06);
  line-height: 1.1;
}

.journey-orbit__core-num {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--teal-700);
}

.journey-orbit__core-text {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

@keyframes journey-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ─── Section band (dark) ─── */
.band-dark {
  background: var(--navy-900);
  color: var(--text-inverse);
  padding: var(--space-16) 0;
}

.band-dark .section-header h2 { color: #fff; }
.band-dark .section-desc { color: rgba(248,250,252,0.65); }

.band-dark .feature-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.band-dark .feature-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--teal-500);
}

.band-dark .feature-card h3 { color: #fff; }
.band-dark .feature-card p { color: rgba(248,250,252,0.6); }

/* ─── TOEFL section tabs ─── */
.guide-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  overflow-x: auto;
  padding-bottom: var(--space-2);
}

.guide-tab {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  white-space: nowrap;
}

.guide-tab.active,
.guide-tab:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.guide-panel { display: none; animation: fadeUp 0.35s ease; }
.guide-panel.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Course detail ─── */
.course-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.course-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.course-body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.course-body p { margin-bottom: var(--space-4); }

.course-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--space-6));
  padding: var(--space-8);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.course-sidebar h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-5);
}

.course-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-10);
  align-items: start;
}

/* ─── Assessment hero — styles in assessment.css ─── */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-slogan { max-width: none; }
  .course-detail-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slogan-highlight { animation: none; }
  .site-header:not(.scrolled) ~ #main-content > .hero:first-child,
  .site-header.scrolled ~ #main-content > .hero:first-child {
    transition: none;
  }
  .hero-slogan-slide {
    transition: none;
  }
  .hero-slogan-slide:not(.is-active) {
    display: none;
  }
  .journey-orbit__spinner,
  .journey-orbit__counter { animation: none; }
}

/* ─── Learning method page ─── */

.learn-intro-card {
  padding: var(--space-10);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.learn-intro-card h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.learn-intro-card > p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.learn-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.learn-checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.learn-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
}

/* Cognitive model cards */
.cog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--space-6);
}

.cog-card {
  --cog-accent: var(--teal-500);
  position: relative;
  padding: var(--space-8);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: cogFadeUp 0.5s ease both;
  animation-delay: calc(var(--cog-i, 0) * 0.06s);
  overflow: hidden;
}

.cog-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cog-accent), transparent);
  opacity: 0.85;
}

.cog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cog-accent);
}

.cog-card--teal { --cog-accent: var(--teal-500); }
.cog-card--gold { --cog-accent: var(--gold-500); }
.cog-card--navy { --cog-accent: var(--navy-700); }

.cog-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .cog-card--wide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: start;
  }
  .cog-card--wide .cog-card__head,
  .cog-card--wide h3,
  .cog-card--wide .cog-card__author {
    grid-column: 1;
  }
  .cog-card--wide > p:not(.cog-card__author) {
    grid-column: 1;
  }
  .cog-card--wide .cog-card__apply {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: stretch;
  }
}

.cog-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.cog-card__num {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cog-accent);
  opacity: 0.9;
}

.cog-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--cog-accent) 12%, transparent);
  color: var(--cog-accent);
  border-radius: var(--radius-lg);
}

.cog-card h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--space-1);
  letter-spacing: -0.02em;
}

.cog-card__author {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4) !important;
}

.cog-card > p:not(.cog-card__author) {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.cog-card__apply {
  padding: var(--space-4) var(--space-5);
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border-inline-start: 3px solid var(--cog-accent);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.cog-card__apply strong {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cog-accent);
  margin-bottom: var(--space-2);
}

.cog-card__apply span {
  color: var(--text-secondary);
}

@keyframes cogFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 4-skill loop diagram */
.skill-loop {
  position: relative;
  width: min(420px, 92vw);
  aspect-ratio: 1;
  margin: 0 auto;
}

.skill-loop__ring {
  position: absolute;
  inset: 8%;
  border: 2px dashed color-mix(in srgb, var(--primary) 35%, transparent);
  border-radius: 50%;
  animation: skillLoopSpin 48s linear infinite;
}

@keyframes skillLoopSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.skill-loop__node {
  position: absolute;
  width: 38%;
  padding: var(--space-4) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.skill-loop__node:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.skill-loop__node--reading { top: 0; left: 50%; transform: translateX(-50%); }
.skill-loop__node--listening { top: 50%; right: 0; transform: translateY(-50%); }
.skill-loop__node--speaking { bottom: 0; left: 50%; transform: translateX(-50%); }
.skill-loop__node--writing { top: 50%; left: 0; transform: translateY(-50%); }

.skill-loop__label {
  display: block;
  font-weight: 800;
  font-size: var(--text-sm);
  color: var(--primary);
}

.skill-loop__role {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.skill-loop__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  padding: var(--space-3);
}

.skill-loop__core strong {
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Don't / Do columns */
.learn-two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-10);
  align-items: start;
}

.learn-dont h3,
.learn-do h3 {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-5);
}

.learn-dont-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.learn-dont-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: color-mix(in srgb, var(--error) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--error) 15%, var(--border));
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.learn-dont-x {
  flex-shrink: 0;
  color: var(--error);
  margin-top: 2px;
}

/* Habit pyramid */
.learn-habit-stack h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
  text-align: center;
}

.habit-pyramid {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.habit-pyramid__tier {
  width: 100%;
  max-width: 520px;
  padding: var(--space-6) var(--space-8);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.habit-pyramid__tier:hover {
  transform: scale(1.02);
}

.habit-pyramid__tier--1 { max-width: 520px; border-top: 3px solid var(--teal-500); }
.habit-pyramid__tier--2 { max-width: 400px; border-top: 3px solid var(--gold-500); }
.habit-pyramid__tier--3 { max-width: 280px; border-top: 3px solid var(--navy-700); }

.habit-pyramid__level {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.habit-pyramid__tier strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 800;
  margin-bottom: var(--space-1);
}

.habit-pyramid__tier > span:last-child {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .learn-two-col { grid-template-columns: 1fr; }
  .skill-loop__node {
    width: 42%;
    padding: var(--space-3) var(--space-2);
  }
  .skill-loop__core {
    width: 38%;
  }
  .skill-loop__core strong { font-size: 0.58rem; }
  .cog-card--wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .cog-card { animation: none; }
  .skill-loop__ring { animation: none; }
  .habit-pyramid__tier:hover { transform: none; }
}

/* ─── TOEFL guide page ─── */
.toefl-page {
  --toefl-pad-x: clamp(var(--space-6), 5vw, var(--space-10));
}

.toefl-page .container {
  padding-inline: var(--toefl-pad-x);
}

.toefl-hero {
  padding-inline: 0;
}

.toefl-hero .container {
  padding-block-end: var(--space-2);
}

.toefl-hero h1,
.toefl-hero .lead,
.toefl-hero-stats,
.toefl-hero-note {
  padding-inline: var(--space-1);
}

.toefl-hero .lead { max-width: 640px; }

.toefl-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.toefl-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.toefl-stat-value {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.toefl-stat-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  line-height: var(--leading-snug);
}

.toefl-hero-note {
  margin-top: var(--space-4);
  max-width: 640px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.toefl-stat strong {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.toefl-stat span {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
}

.toefl-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-12);
  align-items: start;
}

.toefl-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--space-6));
}

.toefl-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
}

.toefl-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  border-inline-start: 2px solid transparent;
}

.toefl-nav a:hover,
.toefl-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
  border-inline-start-color: var(--primary);
}

.toefl-nav-num {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.7;
  min-width: 1.5rem;
}

.toefl-nav a.active .toefl-nav-num { color: var(--primary); opacity: 1; }

.toefl-sidebar-cta { font-size: var(--text-sm); }

.toefl-sidebar-links {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.toefl-sidebar-links__label {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.toefl-sidebar-links a {
  display: block;
  min-height: 44px;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}

.toefl-sidebar-links a:hover {
  color: var(--primary);
}

.toefl-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  min-width: 0;
}

.toefl-section-head {
  margin-bottom: var(--space-6);
}

.toefl-section-head h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.toefl-section-head p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  max-width: 560px;
}

.toefl-block {
  padding: var(--space-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.toefl-block h2 {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.toefl-block > p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.toefl-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toefl-checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.toefl-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
}

.toefl-kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.toefl-kv {
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.toefl-kv-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.toefl-kv strong {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  line-height: var(--leading-snug);
}

.toefl-note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
}

.toefl-cefr { margin-top: var(--space-2); }

.toefl-tabs {
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-4);
}

.toefl-tabs .guide-tab {
  border-radius: var(--radius);
  border: none;
  background: transparent;
  padding: var(--space-2) var(--space-4);
}

.toefl-tabs .guide-tab.active,
.toefl-tabs .guide-tab:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.toefl-skill-card {
  padding: var(--space-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.toefl-skill-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.toefl-skill-head .guide-num {
  font-size: var(--text-3xl);
  margin-bottom: 0;
}

.toefl-skill-head h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--space-1);
}

.toefl-skill-head p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.toefl-skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
}

.toefl-skill-grid h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.toefl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.toefl-tags span {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.toefl-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.toefl-list li {
  position: relative;
  padding-inline-start: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.toefl-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.toefl-skill-alert {
  padding: var(--space-4) var(--space-5);
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  border-inline-start: 3px solid var(--primary);
}

.toefl-skill-alert strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-1);
}

.toefl-skill-alert p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.toefl-timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-inline-start: 2px solid var(--border);
  margin-inline-start: var(--space-3);
}

.toefl-timeline__item {
  position: relative;
  padding: var(--space-5) var(--space-6);
  padding-inline-start: var(--space-8);
}

.toefl-timeline__item::before {
  content: '';
  position: absolute;
  inset-inline-start: calc(-1 * var(--space-3) - 5px);
  top: var(--space-6);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
}

.toefl-timeline__phase {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: var(--space-1);
}

.toefl-timeline__item strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 800;
  margin-bottom: var(--space-1);
}

.toefl-timeline__item p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.toefl-mistakes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--space-4);
}

.toefl-mistake {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition);
}

.toefl-mistake:hover { border-color: rgba(239, 68, 68, 0.25); }

.toefl-mistake-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-radius: var(--radius-full);
}

.toefl-mistake h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.toefl-mistake p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.toefl-body { padding-top: var(--space-10); }

@media (max-width: 900px) {
  .toefl-layout { grid-template-columns: 1fr; }
  .toefl-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
  }
  .toefl-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
    padding-bottom: var(--space-2);
  }
  .toefl-nav a {
    white-space: nowrap;
    border-inline-start: none;
    border-bottom: 2px solid transparent;
  }
  .toefl-nav a.active { border-bottom-color: var(--primary); }
  .toefl-nav-num { display: none; }
  .toefl-sidebar-cta { width: auto; flex-shrink: 0; }
  .toefl-hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .toefl-page {
    --toefl-pad-x: var(--space-5);
  }
}

/* ─── Home — speaking club teaser ─── */
.home-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-6);
}

.home-offer-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.home-offer-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0 0 var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.home-offer-card:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.home-offer-card:hover .course-cover img {
  transform: scale(1.05);
}

.home-offer-card__media {
  display: block;
  text-decoration: none;
}

.home-offer-card__head,
.home-offer-card h3,
.home-offer-card p,
.home-offer-skills,
.home-offer-specs,
.home-offer-card__actions {
  padding-inline: var(--space-6);
}

.home-offer-card__head {
  padding-top: var(--space-5);
}

.home-offer-card--featured {
  border-color: rgba(15, 118, 110, 0.35);
  background: linear-gradient(165deg, var(--surface) 0%, var(--teal-50) 100%);
}

.home-offer-card--pick {
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(212, 168, 83, 0.2);
}

.home-offer-card--pick .home-offer-card__head::before {
  content: '★';
  margin-inline-end: 0.35rem;
  color: var(--gold-500);
}

.home-offer-card--mock {
  position: relative;
  overflow: hidden;
}

.home-offer-card--mock::after {
  content: attr(data-step);
  position: absolute;
  top: var(--space-3);
  inset-inline-start: var(--space-4);
  inset-inline-end: auto;
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--bg-alt);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.home-offer-card--mock .home-offer-card__head {
  position: relative;
  z-index: 1;
  padding-inline-start: 2.75rem;
}

.home-offer-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.home-offer-card__price {
  text-align: end;
  flex-shrink: 0;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.home-offer-card__price strong {
  display: block;
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.home-offer-card__price span {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

.home-offer-card__price-free {
  font-size: var(--text-base) !important;
  color: var(--gold-600) !important;
}

.home-offer-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}

.home-offer-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.home-offer-card h3 a:hover {
  color: var(--primary);
}

.home-offer-skills {
  display: flex;
  gap: var(--space-1);
}

.home-offer-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  flex: 1;
  margin: 0;
}

.home-offer-specs {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: var(--space-3) 0 0;
  border-top: 1px solid var(--border);
}

.home-offer-specs--inline {
  border-top: none;
  padding-top: 0;
}

.home-offer-spec {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 500;
}

.home-offer-spec dt {
  display: flex;
  color: var(--primary);
  opacity: 0.85;
}

.home-offer-spec dd {
  margin: 0;
}

.home-offer-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
}

.home-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.home-guide-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.home-guide-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.home-guide-card--primary {
  border-color: rgba(15, 118, 110, 0.35);
  background: linear-gradient(135deg, var(--teal-50) 0%, var(--surface) 100%);
}

.home-guide-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.home-guide-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0 0 var(--space-1);
}

.home-guide-card p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.home-guide-card__arrow {
  margin-inline-start: auto;
  flex-shrink: 0;
  font-size: var(--text-lg);
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.home-guide-card:hover .home-guide-card__arrow {
  color: var(--primary);
  transform: translateX(-4px);
}

[dir="ltr"] .home-guide-card:hover .home-guide-card__arrow {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .home-offer-grid--3 {
    grid-template-columns: 1fr;
  }

  .home-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .home-offer-card__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-offer-card__price {
    text-align: start;
  }
}

.home-club-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 4vw, var(--space-12));
  align-items: center;
}

.home-club-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.home-club-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.home-club-badge-float {
  position: absolute;
  bottom: var(--space-4);
  inset-inline-start: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--primary);
}

.home-club-copy h2 {
  margin-top: var(--space-3);
}

.home-club-copy p {
  color: var(--text-secondary);
  margin: var(--space-4) 0 var(--space-6);
}

.home-club-perks {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.home-club-perk {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.home-club-perk-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .home-club-teaser {
    grid-template-columns: 1fr;
  }
}

/* ─── Phase A: Home v2 ─── */
.hero-v2 {
  padding-bottom: var(--space-12);
}

.hero-grid--v2 {
  grid-template-columns: 1fr 0.95fr;
}

.hero-v2 h1 {
  margin: var(--space-4) 0 var(--space-4);
  font-size: var(--heading-1);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: var(--navy-900);
  max-width: 14em;
}

.hero-video-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 118, 110, 0.08);
  background: var(--surface);
}

.hero-video-card .video-embed__frame {
  aspect-ratio: 16 / 10;
}

.home-paths {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.home-paths__head {
  margin-bottom: var(--space-6);
}

.home-paths__head h2 {
  margin: var(--space-3) 0 0;
  font-size: var(--heading-2);
}

.home-paths__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
}

.home-paths__card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-4);
  text-align: center;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.home-paths__card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  color: var(--primary);
}

.hero-lead {
  margin: 0 0 var(--space-6);
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 32rem;
}

.hero-micro-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin: var(--space-8) 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.hero-micro-trust span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
}

.hero-micro-trust strong {
  color: var(--primary);
  font-weight: 800;
}

.hero-assessment-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

.hero-assessment-card img {
  display: block;
  width: 100%;
  height: auto;
}

.home-problem__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(var(--space-8), 5vw, var(--space-12));
  align-items: start;
}

.home-problem__copy h2 {
  margin: var(--space-3) 0;
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
  line-height: var(--leading-tight);
}

.home-problem__copy p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.home-problem__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.home-problem__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.home-problem__list li svg {
  flex-shrink: 0;
  color: #dc2626;
  opacity: 0.75;
  margin-top: 0.15em;
}

.home-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin: 0;
  padding: 0;
}

.home-step-card {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 118, 110, 0.2);
}

.home-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: var(--text-sm);
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.home-step-card h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-base);
}

.home-step-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-normal);
}

.home-solution-cta {
  text-align: center;
  margin-top: var(--space-8);
}

.home-instructors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.home-instructor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-instructor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 118, 110, 0.22);
}

.home-instructor-card__photo {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}

.home-instructor-card__initials {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
  color: #fff;
  font-weight: 800;
  font-size: var(--text-xl);
}

.home-instructor-card__body {
  margin-top: var(--space-4);
}

.home-instructor-card__body strong {
  display: block;
  font-size: var(--text-base);
  color: var(--navy-900);
}

.home-instructor-card__body span {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.home-story-spotlight__inner {
  max-width: 720px;
  margin-inline: auto;
}

.home-story-spotlight blockquote {
  margin: var(--space-4) 0;
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  line-height: var(--leading-relaxed);
  color: var(--navy-900);
  font-weight: 500;
}

.home-story-spotlight cite {
  display: block;
  font-style: normal;
  margin-bottom: var(--space-4);
}

.home-story-spotlight cite strong {
  display: block;
  color: var(--primary);
}

.home-story-spotlight cite span {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.trust-bar--compact {
  padding: var(--space-6) 0;
}

/* Home success stories slider */
.home-stories-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.home-stories-stat {
  flex: 1 1 140px;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.home-stories-stat strong {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--primary);
}

.home-stories-stat span {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
}

.home-stories-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-3);
  align-items: center;
}

.home-stories-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(100%, 340px), 1fr);
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: var(--space-2) var(--space-1) var(--space-4);
  scrollbar-width: thin;
}

.home-stories-slider__slide {
  scroll-snap-align: start;
  min-width: 0;
}

.home-stories-slider__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.home-stories-slider__nav:hover:not(:disabled) {
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--primary);
  background: rgba(15, 118, 110, 0.05);
}

.home-stories-slider__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.home-stories-slider__dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.home-stories-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  border: 0;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-stories-slider__dot.is-active {
  background: var(--primary);
  transform: scale(1.15);
}

.home-story-slide {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-story-slide:hover {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.home-story-slide--featured {
  border-color: rgba(212, 168, 83, 0.35);
}

.home-story-slide__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.home-story-slide__media {
  border-bottom: 1px solid var(--border);
}

.home-story-slide__media .story-video-caption {
  padding: 0 var(--space-4) var(--space-3);
}

.home-story-slide__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  flex: 1;
}

.home-story-slide__scores {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-secondary);
}

.home-story-slide__after {
  color: var(--gold-600, #b8860b);
}

.home-story-slide blockquote {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.home-story-slide__excerpt {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-story-slide__author strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--primary);
}

.home-story-slide__author span {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.home-story-slide__more {
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: 700;
}

@media (min-width: 960px) {
  .home-stories-slider__track {
    grid-auto-columns: calc((100% - var(--space-5)) / 2);
  }
}

@media (min-width: 1200px) {
  .home-stories-slider__track {
    grid-auto-columns: calc((100% - var(--space-5) * 2) / 3);
  }
}

@media (max-width: 640px) {
  .home-stories-slider {
    grid-template-columns: 1fr;
  }

  .home-stories-slider__nav {
    display: none;
  }

  .home-stories-slider__track {
    grid-auto-columns: minmax(88%, 1fr);
  }
}

.home-offer-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-2);
  scrollbar-width: thin;
}

.home-offer-scroll .home-offer-card {
  scroll-snap-align: start;
}

@media (min-width: 900px) {
  .home-offer-scroll {
    display: grid;
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
  }
}

@media (max-width: 1024px) {
  .hero-grid--v2 {
    grid-template-columns: 1fr;
  }

  .hero-v2 .hero-visual {
    order: -1;
    max-width: 420px;
    margin-inline: auto;
  }

  .home-problem__inner {
    grid-template-columns: 1fr;
  }

  .home-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-instructors-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .hero-v2 h1 {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .home-steps {
    grid-template-columns: 1fr;
  }
}

.home-complete-path {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(212, 168, 83, 0.08), transparent 55%),
    var(--bg);
}

.home-path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.home-path-card {
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.home-path-card__label {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.home-path-card h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-base);
}

.home-path-card p {
  margin: 0;
  font-weight: 700;
}

.home-path-card small {
  display: block;
  margin-top: var(--space-2);
  color: var(--text-muted);
  line-height: 1.45;
}

.home-path-card--a { border-top: 3px solid var(--teal-600); }
.home-path-card--b { border-top: 3px solid var(--gold-500); }
.home-path-card--c { border-top: 3px solid var(--navy-700); }

.home-path-total {
  margin: var(--space-5) 0 0;
  text-align: center;
  color: var(--text-muted);
}

.home-path-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

@media (max-width: 960px) {
  .home-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .home-path-grid {
    grid-template-columns: 1fr;
  }
}
