/* ============================================================================
   TrainerRegistry — Design System (single source of truth)
   Consolidated: former tokens.css + kit.css merged into one file.
   "Independent guide" look: white surfaces, evergreen trust color, amber
   highlight, evergreen-charcoal ink. Every CSS variable is defined once here.
   ============================================================================ */

:root {
  /* ─── TYPE FAMILIES ─── */
  --tr-font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --tr-font-text:    "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tr-font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ─── BRAND · EVERGREEN (trust / independent / "approved") ─── */
  --tr-brand-900: #06382C;
  --tr-brand-800: #0A4C3C;
  --tr-brand-700: #0C5E4A;
  --tr-brand-600: #0F7259;
  --tr-brand-500: #138A6C;   /* primary brand */
  --tr-brand-400: #2BA487;
  --tr-brand-300: #7CC9B5;
  --tr-brand-200: #BEE5DA;
  --tr-brand-100: #E4F4EF;
  --tr-brand-50:  #F1FAF7;

  /* ─── HIGHLIGHT · AMBER (energy / the "highlighter" pop) ─── */
  --tr-amber-700: #9A6500;
  --tr-amber-600: #C98800;
  --tr-amber-500: #F0A91E;   /* highlight */
  --tr-amber-400: #F8C04E;
  --tr-amber-300: #FBD587;
  --tr-amber-100: #FDF1D6;

  /* ─── LEGACY CITRUS PALETTE (retained for reference / optional accents) ─── */
  --tr-yellow-800: #7A6000;
  --tr-yellow-700: #B89200;
  --tr-yellow-600: #E6BD00;
  --tr-yellow-500: #FFD300;
  --tr-yellow-400: #FFDD2E;
  --tr-yellow-300: #FFE866;
  --tr-yellow-200: #FFF0A8;
  --tr-yellow-100: #FFF8D6;
  --tr-orange-800: #7A2507;
  --tr-orange-700: #B8370B;
  --tr-orange-600: #E84810;
  --tr-orange-500: #FF5A1F;
  --tr-orange-400: #FF7A47;
  --tr-orange-300: #FF9F7A;
  --tr-orange-200: #FFC4AC;
  --tr-orange-100: #FFE3D6;

  /* ─── NEUTRALS (evergreen-charcoal ink, cool-white paper) ─── */
  --tr-ink:   #1C2A25;
  --tr-ink-2: #3F4D48;
  --tr-ink-3: #6B7872;
  --tr-ink-4: #9BA59F;
  --tr-line:   #E5E8E5;
  --tr-line-2: #EEF1EE;
  --tr-paper:   #FFFFFF;
  --tr-paper-2: #F4F6F5;
  --tr-paper-3: #EDF0EE;
  --tr-card:    #FFFFFF;
  --tr-bg:      #FFFFFF;
  --tr-bg-elevated: #FFFFFF;

  /* ─── SEMANTIC (functional only — brand owns the warm pops) ─── */
  --tr-success:    #0E8F4F;
  --tr-success-bg: #E2F5EB;
  --tr-danger:     #D63A2F;
  --tr-danger-bg:  #FCE8E6;
  --tr-warning:    #C77800;
  --tr-warning-bg: #FFF0D6;
  --tr-info:       var(--tr-ink-2);
  --tr-info-bg:    var(--tr-paper-2);

  /* ─── ROLE TOKENS ─── */
  --tr-fg:           var(--tr-ink);
  --tr-fg-2:         var(--tr-ink-2);
  --tr-fg-muted:     var(--tr-ink-3);
  --tr-fg-faint:     var(--tr-ink-4);
  --tr-border:       var(--tr-line);
  --tr-border-strong:var(--tr-ink);
  --tr-accent:       var(--tr-brand-500);
  --tr-accent-fg:    #FFFFFF;
  --tr-accent-hover: var(--tr-brand-600);
  --tr-pop:          var(--tr-amber-500);
  --tr-pop-fg:       var(--tr-ink);
  --tr-cta:          var(--tr-brand-500);
  --tr-cta-fg:       #FFFFFF;
  --tr-link:         var(--tr-brand-700);

  /* ─── TYPE SCALE (1.250 major-third) ─── */
  --tr-text-xs:   12px;
  --tr-text-sm:   14px;
  --tr-text-base: 16px;
  --tr-text-md:   18px;
  --tr-text-lg:   20px;
  --tr-text-xl:   24px;
  --tr-text-2xl:  30px;
  --tr-text-3xl:  38px;
  --tr-text-4xl:  48px;
  --tr-text-5xl:  64px;
  --tr-text-6xl:  84px;

  --tr-lh-tight:   1.05;
  --tr-lh-snug:    1.2;
  --tr-lh-normal:  1.45;
  --tr-lh-relaxed: 1.6;

  --tr-tracking-tight:  -0.02em;
  --tr-tracking-snug:   -0.01em;
  --tr-tracking-normal:  0;
  --tr-tracking-wide:    0.04em;
  --tr-tracking-eyebrow: 0.12em;

  /* ─── SPACING (4px base) ─── */
  --tr-space-0:  0;
  --tr-space-1:  4px;
  --tr-space-2:  8px;
  --tr-space-3:  12px;
  --tr-space-4:  16px;
  --tr-space-5:  20px;
  --tr-space-6:  24px;
  --tr-space-8:  32px;
  --tr-space-10: 40px;
  --tr-space-12: 48px;
  --tr-space-16: 64px;
  --tr-space-20: 80px;
  --tr-space-24: 96px;
  --tr-space-32: 128px;

  /* ─── RADII ─── */
  --tr-radius-xs: 4px;
  --tr-radius-sm: 6px;
  --tr-radius-md: 10px;
  --tr-radius-lg: 16px;
  --tr-radius-xl: 24px;
  --tr-radius-2xl: 32px;
  --tr-radius-pill: 999px;

  /* ─── SHADOWS ─── */
  --tr-shadow-xs:  0 1px 1px rgba(10, 10, 10, 0.04);
  --tr-shadow-sm:  0 1px 2px rgba(20,24,26,0.05), 0 1px 3px rgba(20,24,26,0.04);
  --tr-shadow-md:  0 6px 16px rgba(20,24,26,0.07), 0 2px 5px rgba(20,24,26,0.04);
  --tr-shadow-lg:  0 18px 40px rgba(20,24,26,0.12), 0 6px 12px rgba(20,24,26,0.05);
  --tr-shadow-pop: 4px 4px 0 var(--tr-ink);
  --tr-shadow-pop-sm: 2px 2px 0 var(--tr-ink);
  --tr-ring-focus: 0 0 0 3px rgba(19,138,108,0.28);

  /* ─── MOTION ─── */
  --tr-ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --tr-ease-in:     cubic-bezier(0.55, 0, 1, 0.45);
  --tr-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --tr-dur-fast:   120ms;
  --tr-dur-base:   200ms;
  --tr-dur-slow:   400ms;

  /* ─── LAYOUT ─── */
  --tr-container:        1200px;
  --tr-container-narrow: 880px;
  --tr-gutter:           24px;
}

/* ─── Semantic element styles (from former tokens.css) ─── */
.tr-body, body.tr-body {
  font-family: var(--tr-font-text);
  font-size: var(--tr-text-base);
  line-height: var(--tr-lh-normal);
  color: var(--tr-fg);
  background: var(--tr-bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.tr-eyebrow {
  font-family: var(--tr-font-text);
  font-size: var(--tr-text-xs);
  font-weight: 700;
  letter-spacing: var(--tr-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--tr-fg-muted);
}

.tr-h1 {
  font-family: var(--tr-font-display);
  font-size: clamp(40px, 6vw, var(--tr-text-6xl));
  font-weight: 700;
  line-height: var(--tr-lh-tight);
  letter-spacing: var(--tr-tracking-tight);
  color: var(--tr-fg);
  font-variation-settings: "wdth" 100;
  text-wrap: balance;
}
.tr-h2 {
  font-family: var(--tr-font-display);
  font-size: var(--tr-text-4xl);
  font-weight: 700;
  line-height: var(--tr-lh-snug);
  letter-spacing: var(--tr-tracking-tight);
  color: var(--tr-fg);
  text-wrap: balance;
}
.tr-h3 {
  font-family: var(--tr-font-display);
  font-size: var(--tr-text-2xl);
  font-weight: 600;
  line-height: var(--tr-lh-snug);
  letter-spacing: var(--tr-tracking-snug);
  color: var(--tr-fg);
}
.tr-h4 {
  font-family: var(--tr-font-display);
  font-size: var(--tr-text-xl);
  font-weight: 600;
  line-height: var(--tr-lh-snug);
  color: var(--tr-fg);
}

.tr-lead {
  font-family: var(--tr-font-text);
  font-size: var(--tr-text-lg);
  line-height: var(--tr-lh-relaxed);
  color: var(--tr-fg-2);
  text-wrap: pretty;
}

.tr-p {
  font-family: var(--tr-font-text);
  font-size: var(--tr-text-base);
  line-height: var(--tr-lh-relaxed);
  color: var(--tr-fg-2);
  text-wrap: pretty;
}

.tr-meta {
  font-family: var(--tr-font-text);
  font-size: var(--tr-text-sm);
  color: var(--tr-fg-muted);
  letter-spacing: var(--tr-tracking-normal);
}

.tr-code {
  font-family: var(--tr-font-mono);
  font-size: 0.92em;
  background: var(--tr-paper-2);
  color: var(--tr-ink-2);
  padding: 2px 6px;
  border-radius: var(--tr-radius-xs);
  border: 1px solid var(--tr-line);
}

.tr-link {
  color: var(--tr-link);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: var(--tr-orange-300);
  transition: text-decoration-color var(--tr-dur-base) var(--tr-ease-out);
}
.tr-link:hover { text-decoration-color: currentColor; }

/* ─── Base reset + UI kit components (from former kit.css) ─── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--tr-bg); }

button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--tr-container);
  margin: 0 auto;
  padding: 0 var(--tr-gutter);
}
.container-narrow {
  max-width: var(--tr-container-narrow);
  margin: 0 auto;
  padding: 0 var(--tr-gutter);
}

/* nav */
.tr-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--tr-line);
}
.tr-nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.tr-nav-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--tr-font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--tr-ink);
  letter-spacing: -0.01em;
}
.tr-nav-brand b { color: var(--tr-brand-500); font-weight: 700; }
.tr-nav-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--tr-fg-2);
}
.tr-nav-links a {
  padding: 4px 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--tr-dur-base) var(--tr-ease-out), border-color var(--tr-dur-base) var(--tr-ease-out);
}
.tr-nav-links a:hover { color: var(--tr-ink); }
.tr-nav-links a.is-active {
  color: var(--tr-ink);
  border-bottom-color: var(--tr-brand-500);
}
.tr-nav-spacer { flex: 1; }

/* buttons */
.tr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--tr-font-text);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--tr-radius-md);
  padding: 11px 18px;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background var(--tr-dur-base) var(--tr-ease-out), color var(--tr-dur-base) var(--tr-ease-out), transform var(--tr-dur-fast) var(--tr-ease-out), box-shadow var(--tr-dur-base) var(--tr-ease-out), border-color var(--tr-dur-base) var(--tr-ease-out);
}
.tr-btn:focus-visible { outline: none; box-shadow: var(--tr-ring-focus); }

.tr-btn-primary { background: var(--tr-brand-500); color: #fff; }
.tr-btn-primary:hover { background: var(--tr-brand-600); }
.tr-btn-primary:active { background: var(--tr-brand-700); }

.tr-btn-secondary { background: #fff; color: var(--tr-ink); border-color: var(--tr-line); }
.tr-btn-secondary:hover { border-color: var(--tr-ink); }

.tr-btn-pop {
  background: var(--tr-amber-500);
  color: var(--tr-ink);
  font-weight: 700;
}
.tr-btn-pop:hover { background: var(--tr-amber-400); }
.tr-btn-pop:active { background: var(--tr-amber-600); }

.tr-btn-ink { background: var(--tr-ink); color: #fff; }
.tr-btn-ink:hover { background: #000; }

.tr-btn-ghost {
  background: transparent;
  color: var(--tr-brand-600);
  padding: 11px 10px;
}
.tr-btn-ghost:hover { color: var(--tr-brand-700); }

.tr-btn-sm { padding: 8px 13px; font-size: 13.5px; }
.tr-btn-lg { padding: 14px 22px; font-size: 17px; }
.tr-btn-block { width: 100%; }

/* snappy CTA — lift on hover, press on click */
.tr-btn-snap { transition: transform 170ms cubic-bezier(0.45, 0, 0.15, 1), background var(--tr-dur-base) var(--tr-ease-out), color var(--tr-dur-base) var(--tr-ease-out), box-shadow var(--tr-dur-base) var(--tr-ease-out), border-color var(--tr-dur-base) var(--tr-ease-out); }
.tr-btn-snap:hover { transform: translateY(-2px) scale(1.03); box-shadow: var(--tr-shadow-md); }
.tr-btn-snap:active { transform: translateY(0) scale(0.96); }

/* inputs */
.tr-input {
  width: 100%;
  font-family: var(--tr-font-text);
  font-size: 15px;
  padding: 11px 14px;
  border-radius: var(--tr-radius-md);
  border: 1.5px solid var(--tr-line);
  background: #fff;
  color: var(--tr-ink);
  outline: none;
  transition: border-color var(--tr-dur-base) var(--tr-ease-out), box-shadow var(--tr-dur-base) var(--tr-ease-out);
}
.tr-input:focus { border-color: var(--tr-brand-500); box-shadow: var(--tr-ring-focus); }
.tr-label { display: block; font-size: 13px; font-weight: 600; color: var(--tr-fg); margin-bottom: 6px; }

/* eyebrow */
.tr-eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tr-fg-muted);
  white-space: nowrap;
}
.tr-eyebrow-dot {
  display: none;
}

/* hero search */
.tr-hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--tr-line);
  border-radius: 14px;
  padding: 8px 8px 8px 18px;
  box-shadow: var(--tr-shadow-md);
  max-width: 640px;
}
.tr-hero-search input {
  flex: 1;
  font-family: var(--tr-font-text);
  font-size: 16px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--tr-ink);
  padding: 12px 0;
}
.tr-hero-search input::placeholder { color: var(--tr-fg-faint); }

/* chips */
.tr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tr-font-text);
  font-weight: 500;
  font-size: 13px;
  background: #fff;
  color: var(--tr-fg);
  border: 1.5px solid var(--tr-line);
  border-radius: var(--tr-radius-pill);
  padding: 7px 13px;
  cursor: pointer;
  transition: all var(--tr-dur-base) var(--tr-ease-out);
}
.tr-chip:hover { border-color: var(--tr-ink-3); }
.tr-chip.is-active {
  background: var(--tr-brand-500);
  color: #fff;
  border-color: var(--tr-brand-500);
  font-weight: 600;
}

/* pills / tags */
.tr-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--tr-font-text);
  font-weight: 600;
  font-size: 12px;
  background: var(--tr-brand-100);
  color: var(--tr-brand-700);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.tr-pill-approved {
  background: var(--tr-brand-500);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.tr-pill-amber {
  background: var(--tr-amber-100);
  color: var(--tr-amber-700);
}
.tr-pill-neutral {
  background: var(--tr-paper-2);
  color: var(--tr-fg-2);
  border: 1px solid var(--tr-line);
  font-weight: 500;
}

/* card */
.tr-card {
  background: #fff;
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius-lg);
  box-shadow: var(--tr-shadow-sm);
  transition: transform var(--tr-dur-base) var(--tr-ease-out), box-shadow var(--tr-dur-base) var(--tr-ease-out), border-color var(--tr-dur-base) var(--tr-ease-out);
}
.tr-card-hover { transition: transform 240ms cubic-bezier(0.45, 0, 0.15, 1), box-shadow 240ms cubic-bezier(0.45, 0, 0.15, 1), border-color 200ms ease-out; }
.tr-card-hover:hover { box-shadow: var(--tr-shadow-lg); border-color: var(--tr-brand-200); }
/* gentle idle "breathe" — keeps focal cards alive even when untouched */
.alive-breathe { animation: alive-breathe 4s ease-in-out infinite; }
@keyframes alive-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.014); } }
@media (prefers-reduced-motion: reduce) { .alive-breathe { animation: none; } }

/* sections */
.tr-section { padding: 88px 0; }
.tr-section-tight { padding: 48px 0; }

/* section header */
.tr-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.tr-section-head h2 {
  font-family: var(--tr-font-display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
  color: var(--tr-ink);
  text-wrap: balance;
}

/* highlighter mark on hero word */
.tr-mark {
  background: var(--tr-amber-300);
  box-shadow: 0 -0.35em 0 var(--tr-amber-300) inset;
  padding: 0 2px;
  border-radius: 2px;
}
body.mark-underline .tr-mark {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  border-bottom: 5px solid var(--tr-brand-400);
}
body.mark-none .tr-mark {
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: var(--tr-brand-600);
}

/* divider */
.tr-divider { height: 1px; background: var(--tr-line); border: none; margin: 0; }

/* footer */
.tr-footer {
  background: var(--tr-brand-900);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 40px;
  margin-top: 0;
}
.tr-footer h4 {
  font-family: var(--tr-font-display);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tr-footer a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  padding: 6px 0;
  transition: color var(--tr-dur-base) var(--tr-ease-out);
}
.tr-footer a:hover { color: var(--tr-amber-400); }

/* AI guide chat */
.tr-chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tr-chat-fab-teaser {
  background: #fff;
  border: 1.5px solid var(--tr-line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--tr-fg-2);
  box-shadow: var(--tr-shadow-md);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.tr-chat-fab-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--tr-brand-500);
  border: none;
  box-shadow: var(--tr-shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform var(--tr-dur-base) var(--tr-ease-spring), background var(--tr-dur-base) var(--tr-ease-out);
}
.tr-chat-fab-btn:hover { transform: scale(1.06); background: var(--tr-brand-600); }

.tr-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 384px;
  height: 564px;
  background: #fff;
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius-lg);
  box-shadow: var(--tr-shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--tr-font-text);
  animation: chat-in 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes chat-in {
  from { opacity: 0; transform: translateY(20px) scale(0.94); transform-origin: bottom right; }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ───────────── Compare modal (course detail) ───────────── */
.tr-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(20, 24, 26, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: overlay-in 200ms var(--tr-ease-out);
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
.tr-modal {
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--tr-radius-xl);
  box-shadow: var(--tr-shadow-lg);
  animation: modal-in 320ms var(--tr-ease-spring);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.tr-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 22px 28px;
}
.tr-compare-col {
  border: 1.5px solid var(--tr-line);
  border-radius: var(--tr-radius-lg);
  padding: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.tr-compare-col.is-best {
  border-color: var(--tr-brand-500);
  background: var(--tr-brand-50);
  box-shadow: 0 0 0 3px rgba(19,138,108,0.10);
}
@media (max-width: 720px) {
  .tr-compare-grid { grid-template-columns: 1fr; }
  .tr-modal { max-height: 92vh; }
}

/* ───────────── Inline career planner (AI consultation) ───────────── */
.tr-planner {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius-xl);
  box-shadow: var(--tr-shadow-lg);
  overflow: hidden;
}
/* planner header strip */
.tr-planner-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--tr-line);
  background: var(--tr-brand-900);
  color: #fff;
}
.tr-planner-avatar {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--tr-amber-400);
}

/* the resting text box — big, inviting, the focal point */
.tr-planner-prompt {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  border: 1.5px solid var(--tr-line);
  border-radius: var(--tr-radius-lg);
  padding: 8px 8px 8px 18px;
  background: #fff;
  transition: border-color var(--tr-dur-base) var(--tr-ease-out), box-shadow var(--tr-dur-base) var(--tr-ease-out);
}
.tr-planner-prompt:focus-within {
  border-color: var(--tr-brand-500);
  box-shadow: var(--tr-ring-focus);
}
.tr-planner-prompt textarea {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-family: var(--tr-font-text);
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--tr-ink);
  padding: 11px 0;
  max-height: 132px;
}
.tr-planner-prompt textarea::placeholder { color: var(--tr-fg-faint); }

.tr-planner-send {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border: none; border-radius: var(--tr-radius-md);
  background: var(--tr-brand-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--tr-dur-base) var(--tr-ease-out), transform var(--tr-dur-fast) var(--tr-ease-out);
}
.tr-planner-send:hover { background: var(--tr-brand-600); }
.tr-planner-send:active { transform: scale(0.94); }
.tr-planner-send:disabled { background: var(--tr-line); color: var(--tr-fg-faint); cursor: default; }

/* quick-start + quick-reply chips */
.tr-quick {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--tr-font-text);
  font-weight: 500;
  font-size: 14px;
  background: #fff;
  color: var(--tr-fg-2);
  border: 1.5px solid var(--tr-line);
  border-radius: var(--tr-radius-pill);
  padding: 9px 15px;
  text-align: left;
  transition: all var(--tr-dur-base) var(--tr-ease-out);
}
.tr-quick:hover { border-color: var(--tr-brand-400); color: var(--tr-ink); background: var(--tr-brand-50); }

/* chat transcript */
.tr-planner-feed {
  padding: 22px 22px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 560px;
  overflow-y: auto;
}
.tr-msg {
  max-width: 82%;
  padding: 12px 15px;
  font-size: 15px;
  line-height: 1.5;
  animation: msg-in 0.34s var(--tr-ease-out) both;
}
.tr-msg-ai {
  align-self: flex-start;
  background: var(--tr-paper-2);
  color: var(--tr-ink);
  border-radius: 5px 16px 16px 16px;
}
.tr-msg-user {
  align-self: flex-end;
  background: var(--tr-brand-500);
  color: #fff;
  border-radius: 16px 5px 16px 16px;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* typing indicator */
.tr-typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 2px; }
.tr-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--tr-brand-400);
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.tr-typing span:nth-child(2) { animation-delay: 0.16s; }
.tr-typing span:nth-child(3) { animation-delay: 0.32s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* inline plan card the AI builds */
.tr-plancard {
  align-self: stretch;
  max-width: 100%;
  border: 1px solid var(--tr-brand-200);
  background: var(--tr-brand-50);
  border-radius: var(--tr-radius-lg);
  padding: 18px;
  animation: msg-in 0.4s var(--tr-ease-out) both;
}
.tr-plan-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}
.tr-plan-step {
  background: #fff;
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius-md);
  padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.tr-plan-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--tr-brand-500); color: #fff;
  font-family: var(--tr-font-display); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tr-plan-arrow { display: flex; align-items: center; justify-content: center; color: var(--tr-brand-300); }
@media (max-width: 720px) {
  .tr-plan-steps { grid-template-columns: 1fr; }
  .tr-plan-arrow { transform: rotate(90deg); padding: 2px 0; }
  .tr-msg { max-width: 90%; }
}

/* provider option toggle (the live comparison control) */
.tr-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 9px;
  border: 1.5px solid var(--tr-line);
  border-radius: var(--tr-radius-sm);
  background: #fff;
  text-align: left;
  transition: border-color var(--tr-dur-fast) var(--tr-ease-out), background var(--tr-dur-fast) var(--tr-ease-out);
}
.tr-opt:hover { border-color: var(--tr-brand-300); }
.tr-opt.is-active { border-color: var(--tr-brand-500); background: var(--tr-brand-50); }
.tr-opt-radio {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--tr-line);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.tr-opt.is-active .tr-opt-radio { background: var(--tr-brand-500); border-color: var(--tr-brand-500); }

/* live cost meter */
.tr-costmeter {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--tr-brand-200);
  border-radius: var(--tr-radius-md);
  padding: 16px;
}
.tr-meter-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--tr-paper-2);
  border: 1px solid var(--tr-line);
  overflow: hidden;
}
.tr-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tr-brand-500), var(--tr-brand-400));
  transition: width 480ms var(--tr-ease-out);
}
.tr-meter-cheap {
  position: absolute;
  top: -3px; bottom: -3px;
  width: 2px;
  background: var(--tr-amber-600);
  transition: left 480ms var(--tr-ease-out);
  z-index: 2;
}
/* subtle tick when the live total changes */
.tr-pop-num { animation: pop-num 320ms var(--tr-ease-out); }
@keyframes pop-num {
  0% { transform: translateY(2px) scale(0.97); opacity: 0.5; }
  100% { transform: none; opacity: 1; }
}

/* data row (key/value) used on course detail */
.tr-kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--tr-line-2);
}
.tr-kv:last-child { border-bottom: none; }
.tr-kv-k { font-size: 13.5px; color: var(--tr-fg-muted); display: flex; align-items: center; gap: 8px; }
.tr-kv-v { font-size: 15px; font-weight: 600; color: var(--tr-ink); text-align: right; white-space: nowrap; }

/* live pulse dot (hot feed) */
.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--tr-brand-500); position: relative; display: inline-block; flex-shrink: 0;
}
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--tr-brand-500); opacity: 0.4;
  animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse {
  0% { transform: scale(0.5); opacity: 0.5; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* entrance animation (pure CSS, plays once on mount — re-render safe) */
@keyframes reveal-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: reveal-in 0.7s var(--tr-ease-out) forwards; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; }
  .live-dot::after { animation: none !important; }
}

/* ───────────── Article reader (the brief) ───────────── */
.art-p {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--tr-ink-2);
  margin: 0;
  text-wrap: pretty;
}
.art-h {
  font-family: var(--tr-font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--tr-ink);
  margin: 16px 0 -4px;
}
.art-q {
  margin: 8px 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--tr-brand-400);
  font-family: var(--tr-font-display);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--tr-ink);
  text-wrap: balance;
}
.art-takeaway {
  margin-top: 30px;
  padding: 18px 0 18px 22px;
  border-left: 4px solid var(--tr-amber-500);
}
.art-takeaway-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tr-amber-700);
}
.art-sources {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: src;
}
.art-sources li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--tr-line-2);
  font-size: 14.5px;
  color: var(--tr-fg-2);
}
.art-sources li:first-child { border-top: none; }
.art-src-n {
  flex-shrink: 0;
  width: 22px;
  font-family: var(--tr-font-mono);
  font-size: 12.5px;
  color: var(--tr-fg-faint);
}
.art-src-k {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tr-brand-700);
  background: var(--tr-brand-50);
  border: 1px solid var(--tr-brand-100);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.art-more-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
}
.art-more-go {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--tr-fg-faint);
  transition: transform var(--tr-dur-base) var(--tr-ease-out), color var(--tr-dur-base) var(--tr-ease-out);
}
.art-more-row:hover .art-more-go { transform: translateX(4px); color: var(--tr-brand-600); }

/* ───────────── News / Daily digest (newsroom, text-only) ───────────── */
.news-row { transition: background var(--tr-dur-base) var(--tr-ease-out); }
.news-row:hover { background: var(--tr-paper-2); }
.news-go { transition: color var(--tr-dur-base) var(--tr-ease-out), transform var(--tr-dur-base) var(--tr-ease-out); }
.news-row:hover .news-go { color: var(--tr-brand-600); transform: translate(2px, -2px); }
@media (max-width: 860px) {
  .news-cols { grid-template-columns: 1fr !important; gap: 30px !important; }
  .guide-toc { grid-template-columns: 1fr 1fr !important; row-gap: 18px; }
  .guide-toc > div:nth-child(2n+1) { border-left: none !important; padding-left: 0 !important; }
}

/* ───────────── Responsive / mobile ───────────── */
@media (max-width: 860px) {
  :root { --tr-gutter: 18px; }
  .tr-nav-links { display: none; }
  .tr-nav-inner { gap: 12px; }
  .hero-h1 { font-size: 34px !important; }
  .cmp-grid { grid-template-columns: 1fr !important; }
  .vs-badge { display: none !important; }
  .cards-3 { grid-template-columns: 1fr !important; }
  .road-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .road-arrow { transform: rotate(90deg); padding: 4px 0; }
  .tr-section-head { flex-direction: column; align-items: flex-start; }
  .feed-row { flex-wrap: wrap; row-gap: 6px !important; }
  .feed-kind { width: auto !important; order: 1; }
  .feed-time { order: 2; margin-left: auto; }
  .feed-main { flex-basis: 100%; order: 3; }
  .feed-chev { display: none !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .dir-grid { grid-template-columns: 1fr !important; }
  .dir-rail { display: flex !important; flex-wrap: wrap; gap: 8px; }
  .dir-rail .dir-cat { width: auto !important; }
  .dir-results { grid-template-columns: 1fr !important; }
}
@media (max-width: 520px) {
  .hero-h1 { font-size: 27px !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
}

/* ───────────── Announcement strip + nav (top bar) ───────────── */
.tr-ann {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  background: var(--tr-brand-900);
  color: #fff;
  padding: 9px 20px;
  font-family: var(--tr-font-text);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}
.tr-ann-main { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; justify-content: center; }
.tr-ann-main > span { white-space: nowrap; }
.tr-ann-amt { background: var(--tr-amber-300); color: var(--tr-ink); padding: 0 5px; border-radius: 2px; font-weight: 700; }
.tr-ann-code {
  font-family: var(--tr-font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  padding: 2px 8px; border-radius: var(--tr-radius-xs); white-space: nowrap;
  background: rgba(255,255,255,0.13); color: #fff; border: 1px solid rgba(255,255,255,0.25);
}
.tr-ann-link {
  font-weight: 700; text-decoration: underline; text-underline-offset: 2px;
  white-space: nowrap; cursor: pointer; color: var(--tr-amber-300);
  background: none; border: none; font-size: inherit; font-family: inherit; padding: 0;
}
.tr-ann-link:hover { color: var(--tr-amber-400); }
.tr-ann-link:focus-visible { outline: none; box-shadow: var(--tr-ring-focus); border-radius: 4px; }
.tr-ann-x {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px; cursor: pointer;
  opacity: 0.7; border: none; background: none; color: #fff; padding: 0;
}
.tr-ann-x:hover { opacity: 1; }
.tr-ann-x:focus-visible { outline: none; box-shadow: var(--tr-ring-focus); opacity: 1; }

/* right-side cluster */
.tr-nav-cta { display: flex; align-items: center; gap: 20px; }
.tr-nav-div { width: 1px; height: 22px; background: var(--tr-line); }

/* hamburger (mobile only) */
.tr-nav-burger {
  display: none; flex-direction: column; gap: 4px;
  width: 24px; height: 24px; justify-content: center; align-items: center;
  cursor: pointer; background: none; border: none; padding: 0;
}
.tr-nav-burger span { height: 2px; width: 22px; background: var(--tr-ink); border-radius: 2px;
  transition: transform var(--tr-dur-base) var(--tr-ease-out), opacity var(--tr-dur-base) var(--tr-ease-out); }
.tr-nav-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tr-nav-burger.is-open span:nth-child(2) { opacity: 0; }
.tr-nav-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.tr-nav-burger:focus-visible { outline: none; box-shadow: var(--tr-ring-focus); border-radius: 6px; }

/* mobile drawer (lives under the sticky bar) */
.tr-drawer { display: none; background: #fff; border-bottom: 1px solid var(--tr-line); padding: 2px 18px 18px; }
.tr-drawer.is-open { display: block; }
.tr-drawer a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 2px; font-family: var(--tr-font-text); font-size: 16px; font-weight: 600;
  color: var(--tr-ink); border-bottom: 1px solid var(--tr-line-2); cursor: pointer;
}
.tr-drawer a.is-active { color: var(--tr-brand-700); }
.tr-drawer a svg { color: var(--tr-ink-4); }
.tr-drawer a:focus-visible { outline: none; box-shadow: var(--tr-ring-focus); border-radius: 6px; }
.tr-drawer-signin { margin-top: 16px; width: 100%; }

/* ── Hero card hover ── */
.hero-card {
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease;
}
.hero-card:hover {
  transform: scale(1.012);
  box-shadow: 0 16px 48px rgba(0,0,0,0.11), 0 4px 12px rgba(0,0,0,0.06);
}
.hero-card:active { transform: scale(0.98); }

/* ── Hero link arrow nudge ── */
.hero-link .hero-arr {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.hero-link:hover .hero-arr { transform: translateX(5px); }

/* ── Hero headline word-by-word entrance ── */
@keyframes heroWord {
  from { opacity: 0; transform: translateY(28px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}
.hero-word { display: inline-block; }
.hw1 { animation: heroWord 0.55s cubic-bezier(0.22,1,0.36,1) 20ms both; }
.hw2 { animation: heroWord 0.55s cubic-bezier(0.22,1,0.36,1) 130ms both; }

/* ── Swipe button press ── */
.cs-btn-yes {
  transition: background 0.18s, transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.18s !important;
}
.cs-btn-yes:hover { background: var(--tr-brand-600) !important; transform: translateY(-2px) !important; box-shadow: var(--tr-shadow-lg) !important; }
.cs-btn-yes:active { transform: scale(0.93) !important; transition-duration: 0.1s !important; }
.cs-btn-no {
  transition: border-color 0.18s, color 0.18s, transform 0.22s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.cs-btn-no:hover { border-color: var(--tr-danger) !important; color: var(--tr-danger) !important; transform: translateY(-2px) !important; }
.cs-btn-no:active { transform: scale(0.88) !important; transition-duration: 0.1s !important; }

/* ── Hero entrance animations ── */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hu  { animation: heroUp 0.5s cubic-bezier(0.22,1,0.36,1) both; }
.hu1 { animation-delay:   0ms; }
.hu2 { animation-delay:  70ms; }
.hu3 { animation-delay: 140ms; }
.hu4 { animation-delay: 210ms; }
.hu5 { animation-delay: 300ms; }
.hu6 { animation-delay: 420ms; }
.hero-link {
  font-size: 17px; font-weight: 600;
  color: var(--tr-brand-500); cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color 120ms; text-decoration: none;
}
.hero-link:hover { color: var(--tr-brand-700); }
@media (max-width: 700px) {
  .hero-h1-new  { font-size: clamp(42px, 10vw, 80px) !important; }
  .hero-ctas    { flex-direction: column; gap: 12px !important; }
  .hero-divider { display: none !important; }
}

@media (min-width: 861px) { .tr-drawer { display: none !important; } }
@media (max-width: 860px) {
  .tr-nav-cta { display: none; }
  .tr-nav-burger { display: flex; }
  .tr-ann { font-size: 12.5px; padding: 9px 44px 9px 14px; gap: 8px; }
  .tr-ann-main { flex-wrap: wrap; gap: 7px; }
  .tr-ann-main > span { white-space: normal; }
  .tr-ann-x { width: 40px; height: 40px; right: 2px; }
}
