/* ============================================
   BonLamCo — 5 AI Hires site
   Linear-inspired · Apple-clean · MD 35-58 register
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-card: #f5f5f4;
  --text: #0a0a0a;
  --text-muted: #525252;
  --text-subtle: #737373;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --accent: #0a0a0a;
  --accent-hover: #262626;

  /* Shared brand (all Bon English course pages) */
  --brand-pink: #F5E1E7;         /* blush, subtle supporting accent */
  --brand-pink-strong: #D49BAF;  /* deeper pink for borders/text */
  --brand-black: #0a0a0a;

  /* Per-course accent — overridden by body.theme-* classes below.
     Default falls back to amber so un-themed pages still render.  */
  --accent-color: #111;
  --accent-tint: #fef3c7;
  --accent-text: #92400e;
  --highlight: var(--accent-tint);  /* legacy alias used elsewhere */

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --content-width: 680px;
  --wide-width: 960px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- Layout --- */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.nav-cta {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.nav-cta:hover { color: var(--text); text-decoration: none; }

/* --- Hero --- */
.hero {
  padding: 96px 0 64px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--text);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero .sub {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* --- Hero form --- */
.hero-form {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  flex-direction: row;
}
.hero-form input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hero-form input[type="email"]:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
.hero-form button, .btn-primary {
  padding: 14px 22px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, transform 0.08s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.hero-form button:hover, .btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}
.hero-form button:active, .btn-primary:active {
  transform: translateY(1px);
}
.hero-microcopy {
  font-size: 14px;
  color: var(--text-subtle);
  margin-top: 16px;
}

@media (max-width: 520px) {
  .hero-form { flex-direction: column; }
  .hero-form button { width: 100%; }
}

/* --- Section --- */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.section:first-of-type { border-top: 0; }
.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.section h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 24px;
}
.section h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 40px 0 12px;
}
.section p {
  color: var(--text);
  margin: 0 0 18px;
}
.section p.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
}
.section p.muted { color: var(--text-muted); }

/* --- Stat block (gap / 14% vs 70%) --- */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  margin: 40px 0;
}
.stat-card .stat-row {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.stat-card .stat-row + .stat-row { margin-top: 4px; }
.stat-card .stat-source {
  font-size: 13px;
  color: var(--text-subtle);
  margin-top: 20px;
}

/* --- Social proof tiers (Tier 1 elite faces / Tier 2 chat receipts) --- */
.tier-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 18px;
}
.tier-header--spaced { margin-top: 56px; }
.tier-header h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: var(--text);
}
.tier-badge {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}
.tier-badge--elite {
  background: #fef3c7;
  color: #92400e;
}
.tier-badge--foundation {
  background: #dcfce7;
  color: #166534;
}
.student-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.student-card {
  margin: 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 18px;
}
.student-card .student-photo,
.student-card .student-chat-screenshot {
  width: 140px;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-subtle);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.student-card .student-photo img,
.student-card .student-chat-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.student-photo-placeholder,
.chat-placeholder {
  font-size: 12px;
  color: var(--text-subtle);
  text-align: center;
  padding: 12px 8px;
  line-height: 1.45;
}
.chat-placeholder { font-size: 13px; }
.is-empty {
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-card) 100%);
  border: 1px dashed var(--border);
}

.student-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.student-name-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.student-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}
.student-school {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}
.student-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill--tag {
  background: rgba(0,0,0,0.06);
  color: var(--text-muted);
}
.pill--transition {
  background: #dcfce7;
  color: #166534;
}
.pill--transition strong {
  color: #14532d;
  font-weight: 800;
}
.student-quote {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  font-style: italic;
  letter-spacing: -0.005em;
  border-left: 3px solid var(--border);
  padding-left: 12px;
}
.student-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Tier 2 chat receipts: portrait screenshot crop */
.student-card--chat .student-chat-screenshot {
  background: #f0f4f8;
}

@media (max-width: 720px) {
  .student-grid { grid-template-columns: 1fr; }
  .student-card {
    grid-template-columns: 100px 1fr;
    gap: 14px;
    padding: 14px;
  }
  .student-card .student-photo,
  .student-card .student-chat-screenshot {
    width: 100px;
    height: 130px;
  }
  .student-name { font-size: 18px; }
  .tier-header h3 { font-size: 18px; }
}

/* --- List (4 bullets / anti-patterns) --- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 28px;
}
.feature-list li {
  padding-left: 28px;
  position: relative;
}
.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-muted);
  font-weight: 500;
}
.feature-list li strong { font-weight: 600; }

/* --- Framework table --- */
.framework-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
}
.framework-table th,
.framework-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.framework-table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  border-bottom: 1px solid var(--border-strong);
}
.framework-table td:first-child {
  font-weight: 600;
  width: 40px;
  color: var(--text-subtle);
}
.framework-table td strong { font-weight: 600; }
@media (max-width: 640px) {
  .framework-table { font-size: 14px; }
  .framework-table td, .framework-table th { padding: 12px 8px; }
}

/* --- Pillar block (self-audit) --- */
.pillar {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  margin: 20px 0;
  background: var(--bg);
  transition: border-color 0.15s;
}
.pillar:focus-within { border-color: var(--text); }
.pillar h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.pillar .stmt {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 16px;
  font-style: italic;
}
.pillar .score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.pillar .score-row label { color: var(--text-muted); font-weight: 500; }
.score-input {
  width: 64px;
  padding: 8px 10px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  text-align: center;
  background: var(--bg);
  color: var(--text);
}
.score-input:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --- Audit total --- */
.audit-total {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 40px 0;
  display: flex;
  justify-content: space-around;
  gap: 16px;
  flex-wrap: wrap;
}
.audit-total .stat {
  text-align: center;
  min-width: 140px;
}
.audit-total .stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  margin-bottom: 8px;
}
.audit-total .stat-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- Interpretation blocks --- */
.interp {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 16px 0;
  background: var(--bg);
  transition: background 0.2s, border-color 0.2s;
}
.interp.active {
  background: var(--highlight);
  border-color: #e5d097;
}
.interp h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.interp p { margin: 0; color: var(--text); font-size: 15.5px; }

/* --- CTA block --- */
.cta-block {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  text-align: center;
  margin: 56px 0;
}
.cta-block h2 {
  color: #fff;
  margin: 0 0 16px;
  font-size: clamp(28px, 3.5vw, 38px);
}
.cta-block p {
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 17px;
}
.cta-block .btn-primary {
  background: #fff;
  color: var(--text);
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
}
.cta-block .btn-primary:hover { background: #f5f5f5; }

/* 3-mode CTA buttons */
.cta-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}
.cta-modes .cta-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  color: #0a0a0a;
  padding: 18px 22px;
  border-radius: var(--radius-md, 12px);
  font-weight: 700;
  text-decoration: none !important;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.08);
}
.cta-modes .cta-button:hover,
.cta-modes .cta-button:focus,
.cta-modes .cta-button:visited {
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 12px 24px rgba(0,0,0,0.14);
}
.cta-modes .cta-mode-label { flex: 1; text-align: left; }
.cta-modes .cta-mode-arrow {
  font-size: 18px;
  color: var(--accent-color);
  font-weight: 800;
}
.cta-modes .cta-button--live {
  background: var(--accent-color);
  color: #fff;
}
.cta-modes .cta-button--live .cta-mode-arrow { color: #fff; }
@media (max-width: 720px) {
  .cta-modes { grid-template-columns: 1fr; }
}

/* Enroll-step #4 — 3 mode link chips */
.enroll-step-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}
.enroll-mode-link {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s;
}
.enroll-mode-link:hover,
.enroll-mode-link:focus,
.enroll-mode-link:visited {
  background: var(--bg-subtle);
  border-color: var(--text-subtle);
  text-decoration: none !important;
}
.enroll-mode-link--live {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}
.enroll-mode-link--live:hover {
  background: var(--accent-text);
  border-color: var(--accent-text);
  color: #fff;
}
.step-microcopy {
  font-size: 13px;
  color: var(--text-subtle);
  margin: 8px 0 0;
  line-height: 1.55;
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.faq-item p { color: var(--text-muted); margin: 0; font-size: 15.5px; }

/* --- About block --- */
.about {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 40px 0;
}
.about h3 { margin-top: 0; }

/* --- Anti-patterns --- */
.antipattern {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.antipattern:last-child { border-bottom: 0; }
.antipattern h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.antipattern p { margin: 0 0 12px; color: var(--text); font-size: 16px; }
.antipattern p:last-child { margin-bottom: 0; }

/* --- Footer --- */
.footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p {
  color: var(--text-subtle);
  font-size: 13.5px;
  margin: 0 0 6px;
  line-height: 1.6;
}
.footer a { color: var(--text-muted); }

/* --- Page-break helper for reader's "8 pages" feel --- */
.page-divider {
  text-align: center;
  margin: 48px 0;
  color: var(--text-subtle);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.page-divider::before,
.page-divider::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--border-strong);
  vertical-align: middle;
  margin: 0 16px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }

/* ============================================
   Bon English extensions (DSE sales pages)
   Register: student-facing Canto-EN, restrained
   ============================================ */

/* CJK typography tuning — keeps SF Pro / Inter for Latin,
   PingFang TC for Chinese */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter",
    "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

/* ========================================
   Per-course accent palettes
   Shared baseline = light pink + black.
   Each body.theme-* swaps the accent trio.
   ======================================== */
body.theme-regular   { --accent-color: #10b981; --accent-tint: #d1fae5; --accent-text: #065f46; }  /* evergreen */
body.theme-summer    { --accent-color: #f97316; --accent-tint: #ffedd5; --accent-text: #9a3412; }  /* sun */
body.theme-intensive { --accent-color: #dc2626; --accent-tint: #fee2e2; --accent-text: #991b1b; }  /* urgency */
body.theme-1week     { --accent-color: #7c3aed; --accent-tint: #ede9fe; --accent-text: #5b21b6; }  /* crash */
body.theme-speaking  { --accent-color: #0891b2; --accent-tint: #cffafe; --accent-text: #155e75; }  /* voice */
body.theme-grammar   { --accent-color: #2563eb; --accent-tint: #dbeafe; --accent-text: #1e40af; }  /* clarity */

/* ========================================
   Shared brand pink accents (all themes)
   ======================================== */
.nav { border-bottom: 1px solid var(--brand-pink); }

.hero-regular-emph {
  color: var(--accent-color);
  font-family: 'Noto Sans HK', 'PingFang HK', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 700;
}
.section-label {
  position: relative;
  padding-left: 14px;
}
.section-label::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--brand-pink-strong);
  border-radius: 50%;
}

/* Freebie block shared pink hint */
.freebie-block {
  border-color: var(--brand-pink) !important;
}

/* ========================================
   Course accent applications
   ======================================== */
.track-kicker {
  border-color: var(--accent-color) !important;
  color: var(--accent-text) !important;
}

.mode-card.featured {
  border-color: var(--accent-color) !important;
  box-shadow: inset 0 4px 0 0 var(--accent-color);
}
.mode-card.featured .mode-label {
  background: var(--accent-color) !important;
}

.push-badge {
  background: var(--accent-tint) !important;
  color: var(--accent-text) !important;
}

/* Discount top strip */
.discount-banner .dc-code {
  background: var(--accent-tint) !important;
  color: var(--accent-text) !important;
}
.discount-banner .dc-countdown {
  color: var(--accent-tint) !important;
}

/* Discount block */
.discount-block .db-kicker {
  color: var(--accent-tint) !important;
}
.discount-block .db-code {
  background: var(--accent-tint) !important;
  color: var(--accent-text) !important;
}
.discount-block .db-countdown-time {
  color: var(--accent-tint) !important;
}

/* Freebie CTA button uses theme accent */
.freebie-block button {
  background: var(--accent-color) !important;
}
.freebie-block button:hover {
  filter: brightness(0.92);
}

/* --- Discount banner (sticky under nav, dismissable in JS later) --- */
.discount-banner {
  background: #111;
  color: #fff;
  padding: 14px 24px;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  border-bottom: 1px solid #000;
}
.discount-banner .dc-headline {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-right: 10px;
}
.discount-banner .dc-sub {
  color: #c4c4c4;
  margin-right: 14px;
}
.discount-banner .dc-code {
  display: inline-block;
  background: var(--highlight);
  color: #0a0a0a;
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 14px;
  margin-right: 14px;
}
.discount-banner .dc-countdown {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #f5c243;
  font-variant-numeric: tabular-nums;
}

/* --- Track switcher (S45 / S6 pills at top of hero) --- */
.track-switcher {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 32px 0 8px;
  flex-wrap: wrap;
}
.track-switcher .t-label {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: var(--text-subtle);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.track-switcher a.pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 28px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.15s ease;
  min-width: 180px;
}
.track-switcher a.pill:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  text-decoration: none;
}
.track-switcher a.pill .pill-main { font-size: 17px; }
.track-switcher a.pill .pill-sub {
  font-size: 12px;
  color: var(--text-subtle);
  font-weight: 500;
  margin-top: 2px;
}
.track-switcher a.pill:hover .pill-sub { color: #c4c4c4; }

/* --- Next LIVE class block (per branch × track) --- */
.next-class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 720px) {
  .next-class-grid { grid-template-columns: 1fr; }
}
.next-class-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.next-class-card .nc-branch {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 2px;
}
.next-class-card .nc-slot {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.next-class-card .nc-countdown {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}
.next-class-card .nc-days {
  font-size: 36px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}
.next-class-card .nc-days-label {
  font-size: 14px;
  color: var(--text-muted);
}
.next-class-card .nc-date {
  font-size: 13px;
  color: var(--text-subtle);
  margin-top: 2px;
}
/* Urgency bar */
.urgency-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 12px;
}
.urgency-bar .fill {
  height: 100%;
  background: var(--text-muted);
  border-radius: 3px;
  transition: width 0.4s ease;
}
/* Urgency colors by days-until bucket */
.next-class-card[data-urgency="imminent"] .urgency-bar .fill { background: #dc2626; }
.next-class-card[data-urgency="soon"]      .urgency-bar .fill { background: #ea580c; }
.next-class-card[data-urgency="coming"]    .urgency-bar .fill { background: #d97706; }
.next-class-card[data-urgency="future"]    .urgency-bar .fill { background: var(--text-muted); }
.next-class-card[data-urgency="imminent"] .nc-days { color: #dc2626; }
.next-class-card[data-urgency="soon"]      .nc-days { color: #ea580c; }

/* Push badge */
.push-badge {
  display: inline-block;
  background: var(--highlight);
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* --- Track section wrapper (for S45 / S6 anchors) --- */
.track-section {
  border-top: 1px solid var(--border);
  padding-top: 72px;
  scroll-margin-top: 80px;  /* so anchor jumps clear the sticky nav */
}
.track-section .track-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}

/* --- 4-paper pillar list (track breakdown) --- */
.paper-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}
.paper-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.paper-list li:first-child { border-top: none; padding-top: 0; }
.paper-list .paper-label {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.paper-list .paper-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Top 4 highlights block — book-mockup variant --- */
.top4 {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  margin-top: 24px;
}
.top4 .top4-cycle {
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.top4 .top4-tagline {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}
.top4-books {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 12px 0 28px;
  perspective: 1400px;
}
.book {
  position: relative;
  aspect-ratio: 0.7 / 1.15;
  transform-style: preserve-3d;
}
.book-spine {
  position: absolute;
  left: -1px; top: 4px; bottom: 4px;
  width: 16px;
  background: var(--book-spine, #0a0a0a);
  transform: rotateY(-22deg);
  transform-origin: right center;
  border-radius: 2px 0 0 2px;
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.25);
}
.book-cover {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--book-bg, #1a1a1a);
  border-radius: 4px 10px 10px 4px;
  box-shadow:
    inset 1px 0 0 rgba(255,255,255,0.08),
    -1px 0 0 rgba(0,0,0,0.1),
    0 18px 32px rgba(0,0,0,0.18),
    0 4px 10px rgba(0,0,0,0.10);
  transform: rotateY(-8deg);
  transform-origin: left center;
  padding: 28px 24px 28px 22px;
  display: flex;
  flex-direction: column;
  color: var(--book-text, #fff);
  overflow: hidden;
}
.book-paper {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.62;
  font-weight: 800;
  margin-bottom: 14px;
}
.book-dotgrid {
  width: 56px;
  height: 28px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.35) 1.2px, transparent 1.5px);
  background-size: 7px 7px;
  margin-bottom: auto;
  opacity: 0.55;
}
.book-skill {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.22;
  margin-top: 12px;
  margin-bottom: 10px;
}
.book-value {
  font-size: 11px;
  opacity: 0.78;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

/* Book color variants */
.book--blue .book-cover { --book-bg: #1d4ed8; --book-spine: #1e3a8a; }
.book--red .book-cover { --book-bg: #dc2626; --book-spine: #991b1b; }
.book--black .book-cover { --book-bg: #18181b; --book-spine: #000; }
.book--teal .book-cover { --book-bg: #0d9488; --book-spine: #0f766e; }

/* Bonus highlight strip below the 4 books */
.top4-bonus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.top4-bonus .bonus-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #1d4ed8);
  background: rgba(29, 78, 216, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}
.top4-bonus .bonus-paper {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
}
.top4-bonus strong {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 720px) {
  .top4-books { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .book-skill { font-size: 15px; }
  .book-paper { font-size: 10px; }
  .top4 .top4-tagline { font-size: 16px; }
}

/* --- Hero quote (student receipt) --- */
.hero-quote {
  margin-top: 32px;
  padding: 28px 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent, #1d4ed8);
  border-radius: var(--radius-md);
}
.hero-quote-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #1d4ed8);
  margin-bottom: 12px;
}
.hero-quote blockquote {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
}
.hero-quote-attribution {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}
.hero-quote-context {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-subtle);
  font-style: normal;
}
@media (max-width: 720px) {
  .hero-quote { padding: 22px 20px 18px; }
  .hero-quote blockquote { font-size: 15px; }
}

/* --- Bonus bento (S45+S6 無敵配套) — 4×2 grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 24px;
}
.bento-card {
  background: var(--bg);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 168px;
  transition: background 0.2s ease;
}
.bento-card:hover {
  background: var(--bg-subtle);
}
.bento-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-subtle);
  margin-bottom: 14px;
  isolation: isolate;
}
.bento-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bento-mockup--tint::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.bento-mockup--pink::after   { background: rgba(255, 200, 220, 0.55); }
.bento-mockup--blue::after   { background: rgba(180, 220, 255, 0.55); }
.bento-mockup--yellow::after { background: rgba(255, 240, 170, 0.55); }
.bento-mockup--green::after  { background: rgba(190, 240, 200, 0.55); }

.bento-card .bento-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-subtle);
}
.bento-card .bento-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.bento-card .bento-en {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0;
}
.bento-card .bento-gist {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: auto;
}

/* feature card — accent treatment */
.bento-card--feature {
  background: var(--text);
  color: var(--bg);
}
.bento-card--feature:hover {
  background: var(--text);
  filter: brightness(1.08);
}
.bento-card--feature .bento-tag {
  color: rgba(255,255,255,0.62);
}
.bento-card--feature .bento-name {
  color: white;
}
.bento-card--feature .bento-en {
  color: rgba(255,255,255,0.62);
}
.bento-card--feature .bento-gist {
  color: rgba(255,255,255,0.78);
}

@media (max-width: 720px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card { min-height: 0; padding: 16px 14px; }
  .bento-card .bento-name { font-size: 15px; }
  .bento-card .bento-gist { font-size: 12px; }
}

/* Master narrative — full course content breakdown (drives from monthly.yaml) */
.master-narrative {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  margin-top: 28px;
}
.mn-intro {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 0 0 8px;
}
.mn-bridge {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.5;
}
.mn-papers {
  display: grid;
  gap: 20px;
}
.mn-paper {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.mn-paper:first-child { border-top: none; padding-top: 0; }
.mn-paper-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.mn-paper-emoji { font-size: 20px; line-height: 1; }
.mn-paper-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.mn-paper-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 4px 0 0 30px;
}
.mn-paper-bullets {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 30px;
  display: grid;
  gap: 6px;
}
.mn-paper-bullets li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  position: relative;
  padding-left: 14px;
}
.mn-paper-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-color);
}
@media (max-width: 720px) {
  .master-narrative { padding: 24px 20px 22px; }
  .mn-paper-body, .mn-paper-bullets { margin-left: 0; }
}

/* --- Freebie block (secondary CTA) --- */
.freebie-block {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  margin: 0 auto;
  max-width: 720px;
}
.freebie-block h2 {
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.freebie-block .freebie-sub {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.65;
}
.freebie-block form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.freebie-block input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}
.freebie-block button {
  padding: 14px 20px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}
.freebie-block button:hover { background: var(--accent-hover); }
.freebie-block .freebie-microcopy {
  font-size: 13px;
  color: var(--text-subtle);
  margin-top: 16px;
  line-height: 1.6;
}

/* --- Enrollment steps (numbered guide) --- */
.enroll-steps {
  display: grid;
  gap: 20px;
  margin-top: 32px;
  counter-reset: step;
}
.enroll-steps .step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.enroll-steps .step:first-child { border-top: none; padding-top: 0; }
.enroll-steps .step-num {
  counter-increment: step;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.enroll-steps .step-num::before { content: counter(step); }
.enroll-steps .step-title {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.enroll-steps .step-body {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}
.enroll-steps .step-body a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

/* --- Branch grid (all branches listing) --- */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.branch-grid .branch-item {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.branch-grid .branch-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.branch-grid .branch-addr {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.branch-grid .branch-live-tag {
  display: inline-block;
  background: #ecfdf5;
  color: #065f46;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

/* Instructor card */
.instructor-card {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-top: 24px;
}
.instructor-card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.instructor-card .cred-group {
  margin-bottom: 20px;
}
.instructor-card .cred-group:last-child { margin-bottom: 0; }
.instructor-card .cred-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 8px;
}
.instructor-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.instructor-card ul li {
  padding: 4px 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}
.instructor-card ul li::before {
  content: "→ ";
  color: var(--text-subtle);
}

/* Instructor hero — portrait floats right of section header, breathes wide */
.instructor-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}
.instructor-hero-text { flex: 1; min-width: 0; }
.instructor-hero-text h2 { margin-bottom: 8px; }
.instructor-tagline {
  font-size: 17px;
  color: var(--text-muted);
  letter-spacing: -0.005em;
  margin: 0;
}
.instructor-hero .instructor-portrait {
  width: 180px;
  height: 180px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.instructor-hero .instructor-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Instructor gallery — class + speaking proof */
.instructor-gallery {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.instructor-gallery figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-subtle);
  position: relative;
}
.instructor-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.instructor-gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 14px;
  font-size: 13px;
  color: white;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .instructor-hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 20px;
  }
  .instructor-hero .instructor-portrait {
    margin: 0 auto;
    width: 140px;
    height: 140px;
  }
  .instructor-gallery { grid-template-columns: 1fr; }
  .instructor-gallery img { height: 180px; }
}

/* --- Timetable grid (LIVE classes across branches/tracks) --- */
.timetable {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.timetable table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.timetable th,
.timetable td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.timetable th {
  background: var(--bg-subtle);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.timetable tr:last-child td { border-bottom: none; }
.timetable td.branch-cell { font-weight: 600; }
.timetable td.time-cell {
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.timetable .track-dim { color: var(--text-subtle); }
.timetable .timetable-footnote {
  padding: 14px 18px;
  background: var(--bg-subtle);
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* --- Discount block (larger banner, used below class photos) --- */
.discount-block {
  background: linear-gradient(135deg, #111 0%, #1f1f1f 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
.discount-block .db-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--highlight);
  font-weight: 700;
  margin-bottom: 8px;
}
.discount-block .db-headline {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: #fff;
}
.discount-block .db-sub {
  color: #c4c4c4;
  font-size: 15px;
  margin: 0 0 18px;
  line-height: 1.55;
}
.discount-block .db-code-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.discount-block .db-code-label {
  font-size: 13px;
  color: #8e8e8e;
  letter-spacing: 0.05em;
}
.discount-block .db-code {
  display: inline-block;
  background: var(--highlight);
  color: #0a0a0a;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.02em;
}
.discount-block .db-countdown {
  text-align: right;
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.discount-block .db-countdown-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8e8e8e;
  margin-bottom: 8px;
}
.discount-block .db-countdown-time {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--highlight);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
@media (max-width: 640px) {
  .discount-block {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 24px;
  }
  .discount-block .db-countdown {
    text-align: left;
    padding-left: 0;
    padding-top: 16px;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
  .discount-block .db-headline { font-size: 22px; }
}

/* --- Modes grid (LIVE / Video / Online) --- */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.mode-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  position: relative;
}
.mode-card.featured {
  background: #fff;
  border-color: var(--text);
  border-width: 2px;
}
.mode-card .mode-label {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--text);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}
.mode-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
}
.mode-card .mode-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.mode-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.mode-card ul li {
  padding: 4px 0;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.55;
}
.mode-card ul li::before {
  content: "→ ";
  color: var(--text-subtle);
  font-weight: 600;
}
.mode-card .mode-fit {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* --- Class banner (now lives in hero, tight below microcopy) --- */
.class-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 24px 0 0;
}
.class-banner-wrap {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 24px;
}
.class-banner--hero {
  margin: 0 0 -16px; /* tighten bottom into next section */
}
.class-banner--hero figure {
  aspect-ratio: 4 / 3; /* taller in hero context for more presence */
}
.class-banner figure {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-card);
  overflow: hidden;
}
.class-banner figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.class-banner figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.class-banner .photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 13px;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-card) 100%);
}
@media (max-width: 720px) {
  .class-banner { grid-template-columns: 1fr; }
  .class-banner figure { aspect-ratio: 16 / 9; }
}

/* --- Next-class group (per-reg block) --- */
.next-class-group {
  margin-bottom: 36px;
}
.next-class-group:last-of-type {
  margin-bottom: 24px;
}
.ncg-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ncg-header h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.ncg-count {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
  text-transform: uppercase;
}

/* --- Class photo strip (legacy — kept for fallback contexts) --- */
.class-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.class-photos figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 4 / 3;
  position: relative;
}
.class-photos figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.class-photos figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.class-photos .photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

/* Mobile tightening */
@media (max-width: 640px) {
  .paper-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .discount-banner .dc-sub { display: none; }
  .enroll-steps .step {
    grid-template-columns: 36px 1fr;
    gap: 14px;
  }
  .freebie-block { padding: 32px 22px; }
  .instructor-card { padding: 24px 20px; }
}

/* ============================================
   /start · decision-page option pills + result card
   ============================================ */

/* Smaller, Noto Sans Bold hero h1 */
.start-hero { padding-top: 48px; padding-bottom: 24px; }
.start-h1 {
  font-family: "Noto Sans HK", -apple-system, BlinkMacSystemFont, "Inter", sans-serif !important;
  font-weight: 700 !important;
  font-size: 32px !important;
  letter-spacing: -0.01em !important;
  line-height: 1.25 !important;
  margin-bottom: 8px;
}
@media (min-width: 720px) {
  .start-h1 { font-size: 38px !important; }
}

/* Result option cards (primary + secondary) */
.result-option {
  margin: 0 0 18px;
  padding: 22px 22px 18px;
  border-radius: var(--radius);
  position: relative;
}
.result-option-primary {
  background: var(--bg);
  border: 2px solid var(--accent-color, var(--accent));
}
.result-option-secondary {
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
}
.result-option-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-tint, var(--bg-subtle));
  color: var(--accent-text, var(--text));
  margin-bottom: 10px;
}
.result-option-secondary .result-option-tag {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-subtle);
}
.result-option-headline {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 6px;
}
.result-option-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 12px;
}
.result-option-sub span { display: inline-block; }

.start-q { margin-bottom: 36px; }
.start-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.start-options-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.start-pill {
  appearance: none;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s ease, transform 0.1s ease, background 0.15s ease;
}
.start-pill:hover {
  border-color: var(--accent-color, var(--accent));
  background: var(--bg-subtle);
}
.start-pill.is-active {
  border-color: var(--accent-color, var(--accent));
  background: var(--accent-tint, var(--bg-subtle));
}
.start-pill strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  display: block;
}
.start-pill span {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}
.start-pill em {
  font-style: normal;
  font-size: 12px;
  color: var(--accent-text, var(--text-subtle));
  font-weight: 600;
  margin-top: 4px;
}

.start-result {
  margin-top: 48px;
  padding: 32px 28px;
  background: var(--bg-subtle);
  border: 2px solid var(--accent-color, var(--accent));
  border-radius: var(--radius-lg);
}
.start-result h2 {
  margin: 6px 0 6px;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.result-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 18px;
  font-weight: 600;
}
.result-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0 24px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.result-meta-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  font-size: 14px;
  align-items: baseline;
}
.result-meta-label {
  color: var(--text-subtle);
  font-weight: 600;
}
.result-meta-value {
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

.result-discount-card {
  background: var(--brand-pink);
  border: 1px solid var(--brand-pink-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 24px;
}
.result-discount-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-pink-strong);
  letter-spacing: 0.05em;
  margin: 0 0 4px;
  text-transform: uppercase;
}
.result-discount-headline {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
}
.result-discount-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 6px;
}
.result-discount-code {
  font-size: 13px;
  margin: 6px 0;
}
.result-discount-code code {
  background: var(--bg);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--font-mono);
}
.result-discount-link {
  margin: 6px 0 0;
  font-size: 12px;
}

.result-email-form {
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 24px;
}
.result-email-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}
.result-email-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.result-email-input {
  appearance: none;
  -webkit-appearance: none;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  font-family: inherit;
}
.result-email-input:focus {
  outline: 2px solid var(--accent-color, var(--accent));
  outline-offset: 1px;
  border-color: transparent;
}
.result-email-microcopy {
  font-size: 12px;
  color: var(--text-subtle);
  margin: 8px 0 0;
}

.result-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Scoped CTA button styles for /start result card (sits outside .cta-modes) */
.start-result .cta-button,
.result-email-form .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #0a0a0a;
  padding: 14px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md, 12px);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: -0.01em;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.start-result .cta-button:hover,
.result-email-form .cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 8px 18px rgba(0,0,0,0.10);
}
.start-result .cta-button--live {
  background: var(--accent-color, #0a0a0a);
  color: #fff;
  border-color: var(--accent-color, #0a0a0a);
}
.start-result .cta-button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.start-result .cta-button-secondary:hover { background: var(--bg-subtle); }

/* Email row — input + Submit button align cleanly */
.result-email-row .cta-button {
  padding: 12px 18px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .start-options { grid-template-columns: 1fr; }
  .start-options-grid { grid-template-columns: 1fr; }
  .result-cta-row { grid-template-columns: 1fr; }
  .result-email-row { grid-template-columns: 1fr; }
  .result-meta-row { grid-template-columns: 70px 1fr; }
}
