/* ============ HK FACULTY TOOLKIT DESIGN SYSTEM ============ */
:root {
  /* Brand palette */
  --sage: #949676;
  --sage-deep: #6f7159;
  --sage-light: #b8ba9e;
  --sage-whisper: #eef0e4;
  --sage-tint: #f6f7ef;
  --charcoal: #262626;
  --charcoal-soft: #3d3d3d;
  --charcoal-muted: #6b6b68;
  --cream: #faf9f5;
  --cream-warm: #f4f2ea;
  --paper: #ffffff;

  /* Borders */
  --border: rgba(38, 38, 38, 0.08);
  --border-soft: rgba(38, 38, 38, 0.05);
  --border-strong: rgba(38, 38, 38, 0.14);

  /* Accents */
  --accent-terracotta: #c26d4e;
  --accent-gold: #d4a84b;
  --accent-gold-soft: rgba(212, 168, 75, 0.12);
  --accent-gold-text: #8a6a1f;

  /* Typography */
  --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(148, 150, 118, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(194, 109, 78, 0.04) 0%, transparent 55%),
    var(--cream);
}

/* Top navigation */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.topnav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--charcoal);
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: var(--border-strong);
  display: block;
}

.brand-sublabel {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  font-weight: 400;
  color: var(--charcoal-muted);
  letter-spacing: 0.01em;
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover { background: var(--sage-whisper); color: var(--sage-deep); }
.nav-link.active { color: var(--sage-deep); background: var(--sage-whisper); }
.nav-link svg { width: 16px; height: 16px; }

.nav-right { display: flex; align-items: center; gap: 16px; }

.usage-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
}

.usage-pill .dot {
  width: 8px;
  height: 8px;
  background: var(--sage);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(148, 150, 118, 0.15);
}

.avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-deep) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: 2px solid var(--paper);
  box-shadow: 0 2px 6px rgba(38, 38, 38, 0.08);
}

/* Main container */
.main { max-width: 1320px; margin: 0 auto; padding: 48px 40px 80px; }

/* Hero */
.hero {
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
  background: var(--sage-whisper);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.eyebrow svg { width: 14px; height: 14px; }

.hero-title {
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--charcoal);
  margin-bottom: 18px;
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--sage-deep);
}

.hero-sub {
  font-size: 17px;
  color: var(--charcoal-muted);
  max-width: 540px;
  line-height: 1.55;
}

.hero-side { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.hero-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
}

.hero-stat-label { font-size: 13px; color: var(--charcoal-muted); }

/* Section header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal-muted);
}

.section-filters { display: flex; gap: 6px; }

.filter-chip {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--charcoal-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.filter-chip:hover { color: var(--sage-deep); }
.filter-chip.active { background: var(--charcoal); color: var(--cream); }

/* Tool cards */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.tool-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  text-decoration: none;
  color: inherit;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(148, 150, 118, 0) 0%, rgba(148, 150, 118, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(148, 150, 118, 0.4);
  box-shadow: 0 1px 2px rgba(38, 38, 38, 0.04), 0 12px 32px -8px rgba(148, 150, 118, 0.18);
}

.tool-card:hover::before { opacity: 1; }

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tool-icon {
  width: 52px;
  height: 52px;
  background: var(--sage-whisper);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.tool-icon svg { width: 26px; height: 26px; color: var(--sage-deep); stroke-width: 1.75; }

.tool-card:hover .tool-icon { background: var(--sage); transform: scale(1.05); }
.tool-card:hover .tool-icon svg { color: var(--cream); }

.tool-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.tool-status.live { background: var(--sage-whisper); color: var(--sage-deep); }
.tool-status.live::before { content: ''; width: 6px; height: 6px; background: var(--sage); border-radius: 50%; }

.tool-status.beta { background: var(--accent-gold-soft); color: var(--accent-gold-text); }
.tool-status.beta::before { content: ''; width: 6px; height: 6px; background: var(--accent-gold); border-radius: 50%; }

.tool-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin-bottom: 10px;
  line-height: 1.2;
}

.tool-desc { font-size: 14px; color: var(--charcoal-muted); line-height: 1.55; flex: 1; }

.tool-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sage-deep);
  transition: gap 0.2s ease;
}

.tool-action svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.tool-card:hover .tool-action { gap: 10px; }
.tool-card:hover .tool-action svg { transform: translateX(2px); }

.tool-card.coming-soon {
  background: var(--cream-warm);
  border-style: dashed;
  border-color: var(--border-strong);
}

.tool-card.coming-soon .tool-icon { background: rgba(38, 38, 38, 0.05); }
.tool-card.coming-soon .tool-icon svg { color: var(--charcoal-muted); }
.tool-card.coming-soon:hover .tool-icon { background: rgba(38, 38, 38, 0.08); }
.tool-card.coming-soon:hover .tool-icon svg { color: var(--charcoal-soft); }

/* Footer */
.footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--charcoal-muted);
}

.footer .quote { font-family: var(--font-serif); font-style: italic; font-size: 14px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--charcoal-muted); text-decoration: none; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--sage-deep); }

/* Forms (Preferences page) */
.page-header { margin-bottom: 40px; }
.page-title { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.page-title em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--sage-deep); }
.page-sub { font-size: 16px; color: var(--charcoal-muted); max-width: 640px; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.form-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.form-card-desc { font-size: 14px; color: var(--charcoal-muted); margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-row.single { grid-template-columns: 1fr; }

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.form-input, .form-select, .form-textarea {
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: var(--paper);
  color: var(--charcoal);
  transition: all 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(148, 150, 118, 0.15);
}

.form-textarea { min-height: 80px; resize: vertical; }

.form-help {
  font-size: 12px;
  color: var(--charcoal-muted);
  margin-top: 4px;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover { background: var(--charcoal-soft); transform: translateY(-1px); }

.btn-secondary {
  background: var(--paper);
  color: var(--charcoal);
  border: 1px solid var(--border-strong);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover { border-color: var(--sage); color: var(--sage-deep); }

.form-actions { display: flex; gap: 12px; margin-top: 8px; }

.flash-success {
  background: var(--sage-whisper);
  color: var(--sage-deep);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(148, 150, 118, 0.2);
}

/* Placeholder pages */
.placeholder-hero {
  text-align: center;
  padding: 80px 20px;
  max-width: 640px;
  margin: 0 auto;
}

.placeholder-icon {
  width: 80px;
  height: 80px;
  background: var(--sage-whisper);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.placeholder-icon svg { width: 40px; height: 40px; color: var(--sage-deep); stroke-width: 1.5; }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-side { flex-direction: row; flex-wrap: wrap; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  /* Mobile nav: instead of hiding the links (which left the app
     unnavigable on a phone), wrap them onto a full-width second row
     that scrolls horizontally. No hamburger, no JS, everything reachable. */
  .topnav-inner { flex-wrap: wrap; row-gap: 8px; }
  .nav-right { order: 2; }
  .nav-links {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 2px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { white-space: nowrap; flex: 0 0 auto; }
}

@media (max-width: 640px) {
  .topnav-inner, .main { padding-left: 20px; padding-right: 20px; }
  .tools-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 12px; align-items: flex-start; }
  .brand-logo { height: 36px; }
}

/* =====================================================================
   Home redesign (v0.5) — welcome bar, hero, spotlight, video, cards
   ===================================================================== */
/* Entrance reveal: pure CSS animation so content ALWAYS appears, even if
   JS fails or never runs. JS may add a per-element animation-delay stagger. */
.reveal { opacity: 0; transform: translateY(10px); animation: hk-reveal .5s ease forwards; }
.reveal.is-in { opacity: 1; transform: none; animation: none; }
@keyframes hk-reveal { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } }

.welcome-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.welcome-greeting { font-family: var(--font-sans); font-size: 18px; font-weight: 600; color: var(--charcoal); }
.welcome-date { font-size: 13px; color: var(--accent-gold-text); margin-top: 2px; }
.tier-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--sage-deep);
  background: var(--sage-whisper); padding: 7px 13px; border-radius: var(--radius-pill); white-space: nowrap; }
.tier-badge svg { width: 14px; height: 14px; }

.hero { display: block; position: relative; overflow: hidden; }
.hero-main { position: relative; z-index: 1; max-width: 560px; }
.hero-motif { position: absolute; right: -18px; bottom: -34px; width: 200px; height: 200px;
  color: var(--sage); opacity: 0.10; z-index: 0; pointer-events: none; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 4px; }
.btn-hero-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--sage-deep);
  color: var(--cream); font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-pill); text-decoration: none; transition: background .18s ease, transform .18s ease; }
.btn-hero-primary:hover { background: var(--charcoal); transform: translateY(-1px); }
.btn-hero-primary svg { width: 17px; height: 17px; transition: transform .18s ease; }
.btn-hero-primary:hover svg { transform: translateX(3px); }
.btn-hero-ghost { display: inline-flex; align-items: center; background: var(--paper); color: var(--charcoal-soft);
  border: 1px solid var(--border-strong); font-family: var(--font-sans); font-weight: 500; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-pill); text-decoration: none; transition: border-color .18s ease, color .18s ease; }
.btn-hero-ghost:hover { border-color: var(--sage); color: var(--sage-deep); }
.hero-stats { display: flex; gap: 28px; margin-top: 24px; }

.welcome-video { display: flex; align-items: center; gap: 16px; background: var(--paper);
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; margin: 22px 0; }
.video-placeholder { flex: 0 0 158px; height: 88px; border-radius: 10px; background: var(--sage-whisper);
  display: flex; align-items: center; justify-content: center; color: var(--sage-deep); transition: background .18s ease; }
.welcome-video:hover .video-placeholder { background: var(--sage-light); }
.video-placeholder svg { width: 30px; height: 30px; }
.welcome-video-title { font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: var(--charcoal); }
.welcome-video-sub { font-size: 12px; color: var(--charcoal-muted); margin-top: 3px; }

.spotlight { display: flex; align-items: center; gap: 18px; background: var(--paper);
  border: 2px solid var(--accent-gold); border-radius: var(--radius-lg); padding: 20px 22px; margin: 22px 0 28px;
  text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.spotlight:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(38,38,38,0.08); }
.spotlight-icon { flex: 0 0 52px; height: 52px; border-radius: var(--radius-md); background: var(--accent-gold-soft);
  display: flex; align-items: center; justify-content: center; color: var(--accent-gold-text); }
.spotlight-icon svg { width: 26px; height: 26px; }
.spotlight-body { flex: 1; min-width: 0; }
.spotlight-head { display: flex; align-items: center; gap: 10px; }
.spotlight-name { font-family: var(--font-sans); font-weight: 600; font-size: 17px; color: var(--charcoal); }
.spotlight-tag { font-size: 11px; color: var(--accent-gold-text); background: var(--accent-gold-soft); padding: 3px 10px; border-radius: var(--radius-pill); }
.spotlight-desc { font-size: 13px; color: var(--charcoal-soft); margin: 5px 0 0; line-height: 1.5; }
.spotlight-cta { display: inline-flex; align-items: center; gap: 7px; background: var(--sage-deep); color: var(--cream);
  font-family: var(--font-sans); font-weight: 600; font-size: 14px; padding: 9px 17px; border-radius: var(--radius-pill); white-space: nowrap; }
.spotlight-cta svg { width: 16px; height: 16px; transition: transform .18s ease; }
.spotlight:hover .spotlight-cta svg { transform: translateX(3px); }

/* Tool cards: flex column so the footer pins to the bottom */
.tool-card { display: flex; flex-direction: column; }
.tool-card .tool-desc { flex: 1 1 auto; }
.tool-time { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--sage-deep);
  background: var(--sage-whisper); padding: 4px 10px; border-radius: var(--radius-pill); }
.tool-time svg { width: 12px; height: 12px; }
.tool-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.cat-pill { font-size: 12px; color: var(--sage-deep); background: var(--sage-whisper); padding: 3px 11px; border-radius: var(--radius-pill); }
.cat-pill-comm { color: var(--accent-gold-text); background: var(--accent-gold-soft); }
.cat-pill-cd { color: #9a4f33; background: rgba(194,109,78,0.12); }

/* Category-colored top accent + icon tint.
   The ::before on a .tool-card is positioned with inset:0 by default,
   which means a solid background would cover the entire card on hover.
   We override the geometry here so the accent renders as a thin top
   stripe only - matching the original design intent. */
.cat-communication::before,
.cat-coursedesign::before {
  inset: auto;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.cat-communication::before { background: var(--accent-gold) !important; }
.cat-coursedesign::before { background: var(--accent-terracotta) !important; }
.cat-communication .tool-icon { background: var(--accent-gold-soft); }
.cat-communication .tool-icon svg { color: var(--accent-gold-text); }
.cat-coursedesign .tool-icon { background: rgba(194,109,78,0.12); }
.cat-coursedesign .tool-icon svg { color: var(--accent-terracotta); }

.trust-band { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--border); }
.trust-band .quote { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--charcoal-soft); }
.trust-points { display: flex; gap: 20px; font-size: 12px; color: var(--charcoal-muted); }
.trust-points span { display: inline-flex; align-items: center; gap: 6px; }
.trust-points svg { width: 14px; height: 14px; }

/* =====================================================================
   Course Creation Pathway (/pathway)
   ===================================================================== */
.pathway-hero { text-align: center; max-width: 640px; margin: 0 auto 8px; }
.pathway-hero .eyebrow { justify-content: center; }
.pathway-hero .hero-sub { margin-left: auto; margin-right: auto; }

.pathway-ribbon { display: flex; align-items: flex-start; gap: 2px; overflow-x: auto;
  padding: 18px 4px 8px; margin: 18px 0 28px; }
.ribbon-node { flex: 0 0 auto; width: 92px; text-align: center; }
.ribbon-dot { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-sans);
  font-weight: 600; font-size: 14px; }
.ribbon-dot svg { width: 16px; height: 16px; }
.ribbon-node.live .ribbon-dot { background: var(--sage-deep); color: var(--cream); }
.ribbon-node.setup .ribbon-dot { background: var(--accent-gold); color: #fff; }
.ribbon-node.coming .ribbon-dot { background: var(--sage-light); color: var(--cream); }
.ribbon-label { font-size: 11.5px; line-height: 1.3; color: var(--charcoal-soft); }
.ribbon-status { font-size: 10.5px; color: var(--charcoal-muted); margin-top: 3px; }
.ribbon-line { flex: 1 1 auto; min-width: 18px; height: 2px; background: var(--sage-light); margin-top: 16px; border-radius: 2px; }

.pathway-steps { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; }
.pstep { display: flex; align-items: center; gap: 14px; background: var(--paper);
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px;
  transition: transform .18s ease, box-shadow .18s ease; }
.pstep:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(38,38,38,0.06); }
.pstep.coming { opacity: 0.72; }
.pstep.keystone { border: 2px solid var(--accent-gold); }
.pstep-badge { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--sage-deep);
  color: var(--cream); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px; }
.pstep.setup .pstep-badge { background: var(--accent-gold); }
.pstep.coming .pstep-badge { background: var(--sage-light); }
.pstep-badge svg { width: 16px; height: 16px; }
.pstep-body { flex: 1; min-width: 0; }
.pstep-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pstep-title { font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: var(--charcoal);
  display: inline-flex; align-items: center; gap: 8px; }
.pstep-title svg { width: 17px; height: 17px; color: var(--sage-deep); }
.pstep-tool { font-weight: 400; color: var(--accent-gold-text); font-size: 13px; }
.pstep-status { font-size: 11px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-pill); }
.status-live { color: var(--sage-deep); background: var(--sage-whisper); }
.status-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.status-setup { color: var(--accent-gold-text); background: var(--accent-gold-soft); }
.status-coming { color: var(--charcoal-muted); background: var(--border-soft); }
.pstep-meta { font-size: 12.5px; color: var(--charcoal-muted); margin-top: 4px; }
.pstep-cta { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; background: var(--sage-deep);
  color: var(--cream); font-family: var(--font-sans); font-weight: 600; font-size: 13px;
  padding: 9px 15px; border-radius: var(--radius-pill); text-decoration: none; transition: background .18s ease; }
.pstep-cta:hover { background: var(--charcoal); }
.pstep-cta svg { width: 15px; height: 15px; transition: transform .18s ease; }
.pstep-cta:hover svg { transform: translateX(2px); }

/* =====================================================================
   Landing-page "How it works" pathway ribbon (interactive, hover tips)
   ===================================================================== */
.home-pathway { background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px; margin: 8px 0 24px; }
.home-pathway-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.home-pathway-title { font-family: var(--font-sans); font-weight: 700; font-size: 20px; color: var(--charcoal); margin: 8px 0 2px; }
.home-pathway-sub { font-size: 13px; color: var(--charcoal-muted); margin: 0; }
.home-pathway-head .btn-hero-ghost { font-size: 13px; padding: 8px 16px; gap: 6px; }
.home-pathway-head .btn-hero-ghost svg { width: 15px; height: 15px; }

.hp-ribbon { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 2px 4px; padding-top: 6px; }
.hp-node { flex: 0 0 auto; width: 96px; display: flex; flex-direction: column; align-items: center;
  gap: 7px; text-decoration: none; position: relative; padding: 6px 2px; border-radius: var(--radius-md);
  transition: transform .15s ease; }
.hp-node:hover { transform: translateY(-2px); }
.hp-node:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.hp-dot { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: var(--cream); background: var(--sage-deep); transition: background .15s ease; }
.hp-node.setup .hp-dot { background: var(--accent-gold); }
.hp-node:hover .hp-dot { background: var(--charcoal); }
.hp-dot svg { width: 17px; height: 17px; }
.hp-name { font-size: 12px; line-height: 1.25; text-align: center; color: var(--charcoal-soft); }
.hp-line { flex: 1 1 auto; min-width: 14px; height: 2px; background: var(--sage-light); margin-top: 17px; border-radius: 2px; }

.hp-tip { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(4px);
  width: 196px; background: var(--charcoal); color: var(--cream); padding: 9px 12px; border-radius: 8px;
  font-size: 12px; line-height: 1.45; text-align: left; margin-bottom: 9px; z-index: 30;
  opacity: 0; visibility: hidden; transition: opacity .15s ease, transform .15s ease; pointer-events: none; }
.hp-tip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--charcoal); }
.hp-node:hover .hp-tip, .hp-node:focus .hp-tip, .hp-node:focus-visible .hp-tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  .hp-line { display: none; }
  .hp-ribbon { gap: 10px 8px; justify-content: center; }
}

/* Accessibility: skip link + visible keyboard focus (A-grade pass) */
.skip-link { position: absolute; left: -9999px; top: 0; background: #262626; color: #fff;
  padding: 8px 14px; border-radius: 0 0 8px 0; z-index: 1000; font-family: 'Poppins', system-ui, sans-serif; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--sage-deep); outline-offset: 2px; border-radius: 2px; }

/* =====================================================================
   Scenario-aware pathway: triage selector + single-tool grid
   ===================================================================== */
.is-hidden { display: none; }
.triage { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 22px; }
.triage-btn { flex: 1 1 200px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 16px; cursor: pointer; text-align: left; font-family: var(--font-sans);
  transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.triage-btn:hover { transform: translateY(-1px); border-color: var(--sage); }
.triage-btn.active { border: 2px solid var(--sage-deep); background: var(--sage-tint); }
.triage-btn svg { width: 20px; height: 20px; color: var(--sage-deep); margin-bottom: 4px; }
.triage-label { font-weight: 600; font-size: 14px; color: var(--charcoal); }
.triage-sub { font-size: 12px; color: var(--charcoal-muted); }
.scenario-intro { font-size: 14px; color: var(--charcoal-soft); margin: 0 0 14px; max-width: 720px; }

.single-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 720px; }
.single-card { display: flex; align-items: center; gap: 12px; background: var(--paper);
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.single-card:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(38,38,38,0.06); }
.single-icon { flex: 0 0 38px; height: 38px; border-radius: 10px; background: var(--sage-whisper);
  display: flex; align-items: center; justify-content: center; color: var(--sage-deep); }
.single-icon svg { width: 20px; height: 20px; }
.single-name { flex: 1; font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: var(--charcoal); }
.single-arrow { width: 16px; height: 16px; color: var(--sage-deep); }
@media (max-width: 560px) { .single-grid { grid-template-columns: 1fr; } }
