/* =========================================================
   Peptós.LIFE, Knowledge Hub
   Goal-first progressive disclosure for novice patients.
   Class prefix: kh-
   ========================================================= */

/* ---------- Hero ---------- */
.kh-hero {
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(46,114,255,0.10), transparent 60%),
    radial-gradient(ellipse 60% 70% at 90% 90%, rgba(46,114,255,0.06), transparent 60%),
    var(--n-void);
  padding: 112px 48px 96px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.kh-hero__inner { max-width: 1280px; margin: 0 auto; }
.kh-hero__title {
  font-family: var(--font-heading); font-weight: 300;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1.04; letter-spacing: -0.022em;
  color: #fff;
  margin: 0;
  max-width: 18ch;
}
.kh-hero__title .pop {
  color: var(--n-glow-300);
  font-weight: 400;
  text-shadow: 0 0 22px rgba(46,114,255,0.55), 0 0 56px rgba(46,114,255,0.25);
}
.kh-hero__sub {
  font-family: var(--font-body); font-weight: 300;
  font-size: 18px; line-height: 1.65;
  color: rgba(220,238,255,0.72);
  margin: 28px 0 56px;
  max-width: 620px;
}
.kh-hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.kh-stat {
  padding: 28px 24px 8px 0;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 8px;
}
.kh-stat:last-child { border-right: 0; }
.kh-stat__n {
  font-family: var(--font-heading); font-weight: 200;
  font-size: 56px; line-height: 1;
  color: var(--n-glow-100);
  text-shadow: 0 0 18px rgba(46,114,255,0.5);
  letter-spacing: -0.025em;
}
.kh-stat__n small {
  font-size: 22px; color: rgba(220,238,255,0.7);
  margin-left: 2px; vertical-align: super;
}
.kh-stat__l {
  font-family: var(--font-heading); font-weight: 500;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(220,238,255,0.55);
}

/* ---------- Goal grid ---------- */
.kh-goals {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.kh-goal {
  position: relative;
  display: flex; flex-direction: column;
  padding: 36px 30px 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.025);
  text-align: left;
  cursor: pointer;
  transition: all 240ms;
  min-height: 280px;
}
.kh-goal:hover {
  border-color: rgba(127,183,255,0.5);
  background: rgba(46,114,255,0.06);
  transform: translateY(-3px);
}
.kh-goal__icon {
  width: 48px; height: 48px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(46,114,255,0.18);
  border: 1px solid rgba(127,183,255,0.32);
  color: var(--n-glow-200);
  margin-bottom: 24px;
  filter: drop-shadow(0 0 10px rgba(46,114,255,0.35));
}
.kh-goal__t {
  font-family: var(--font-heading); font-weight: 400;
  font-size: 26px; line-height: 1.18;
  letter-spacing: -0.012em;
  color: #fff;
  margin: 0 0 12px;
}
.kh-goal__s {
  font-family: var(--font-body); font-weight: 300;
  font-size: 14px; line-height: 1.6;
  color: rgba(220,238,255,0.68);
  margin: 0 0 24px;
  flex: 1;
}
.kh-goal__foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  gap: 12px;
}
.kh-goal__dist {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 500;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(220,238,255,0.62);
}
.kh-goal__dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  color: #fff;
}
.kh-goal__dot--g { background: var(--status-legal); box-shadow: 0 0 6px rgba(79,181,138,0.6); }
.kh-goal__dot--a { background: var(--accent); box-shadow: 0 0 6px rgba(46,114,255,0.55); }
.kh-goal__dot--r { background: var(--status-not-legal); box-shadow: 0 0 6px rgba(226,106,106,0.55); }
.kh-goal__count { margin-left: 4px; }
.kh-goal__more {
  font-family: var(--font-heading); font-weight: 500;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--n-glow-300);
}
.kh-goal:hover .kh-goal__more { color: #fff; }

/* ---------- Goal detail ---------- */
.kh-goal-detail { scroll-margin-top: 96px; }
.kh-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 500;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(220,238,255,0.62);
  margin-bottom: 28px;
  transition: color 200ms;
}
.kh-back:hover { color: #fff; }
.kh-suggested {
  background: linear-gradient(180deg, rgba(46,114,255,0.10) 0%, rgba(46,114,255,0.02) 100%);
  border: 1px solid rgba(127,183,255,0.32);
  border-radius: 8px;
  padding: 36px;
  margin: 0 0 48px;
}
.kh-suggested__lbl {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--n-glow-300);
  margin-bottom: 16px;
}
.kh-suggested__dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.kh-suggested__row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: center;
}
.kh-suggested__name {
  font-family: var(--font-heading); font-weight: 300;
  font-size: 36px; letter-spacing: -0.018em;
  color: #fff;
  margin: 0 0 10px;
}
.kh-suggested__body {
  font-family: var(--font-body); font-weight: 300;
  font-size: 16px; line-height: 1.6;
  color: rgba(220,238,255,0.78);
  margin: 0;
  max-width: 600px;
}
.kh-eyebrow-sub {
  font-family: var(--font-body); font-weight: 300;
  font-size: 14px; line-height: 1.6;
  color: rgba(220,238,255,0.55);
  margin: 0 0 28px;
  max-width: 640px;
}

/* ---------- Myth busters ---------- */
.kh-myths {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.kh-myth {
  padding: 32px 30px 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.025);
}
.kh-myth__top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.kh-myth__verdict {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
}
.kh-myth__grade {
  font-family: var(--font-heading); font-weight: 200;
  font-size: 32px;
  color: var(--n-glow-100);
  text-shadow: 0 0 12px rgba(46,114,255,0.5);
  line-height: 1;
}
.kh-myth__name {
  font-family: var(--font-heading); font-weight: 500;
  font-size: 22px; letter-spacing: -0.012em;
  color: #fff;
  margin: 0 0 12px;
}
.kh-myth__line {
  font-family: var(--font-heading); font-weight: 300;
  font-style: italic;
  font-size: 17px; line-height: 1.5;
  color: var(--n-glow-100);
  margin: 0 0 22px;
  padding-left: 14px;
  border-left: 2px solid var(--n-glow-300);
}

/* ---------- Paths ---------- */
.kh-paths {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.kh-path {
  position: relative;
  padding: 32px 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.025);
  display: flex; flex-direction: column; gap: 14px;
  transition: all 220ms;
  cursor: pointer;
}
.kh-path:hover {
  border-color: rgba(127,183,255,0.45);
  background: rgba(46,114,255,0.05);
}
.kh-path__step {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--n-glow-300);
}
.kh-path__t {
  font-family: var(--font-heading); font-weight: 500;
  font-size: 22px; letter-spacing: -0.012em;
  color: #fff;
  margin: 0;
}
.kh-path__s {
  font-family: var(--font-body); font-weight: 300;
  font-size: 13.5px; line-height: 1.6;
  color: rgba(220,238,255,0.65);
  margin: 0;
}

/* ---------- FAQs ---------- */
.kh-faqs {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.kh-faq {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.kh-faq__q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0;
  font-family: var(--font-heading); font-weight: 500;
  font-size: 19px; letter-spacing: -0.005em;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: color 200ms;
}
.kh-faq__q:hover { color: var(--n-glow-300); }
.kh-faq__caret {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--n-glow-200);
  transition: transform 240ms;
  flex-shrink: 0;
}
.kh-faq.is-open .kh-faq__caret { transform: rotate(180deg); }
.kh-faq__a {
  padding: 0 0 28px;
  font-family: var(--font-body); font-weight: 300;
  font-size: 16px; line-height: 1.7;
  color: rgba(220,238,255,0.75);
  max-width: 760px;
}

/* ---------- Full A-Z index ---------- */
.kh-index {
  display: flex; flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
}
.kh-index__chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 200ms;
}
.kh-index__chip:hover {
  border-color: rgba(127,183,255,0.5);
  background: rgba(46,114,255,0.08);
  transform: translateY(-1px);
}
.kh-index__dot {
  width: 8px; height: 8px; border-radius: 999px;
  box-shadow: 0 0 6px currentColor;
}
.kh-index__name {
  font-family: var(--font-heading); font-weight: 500;
  font-size: 13px; color: #fff;
}
.kh-index__grade {
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(220,238,255,0.55);
  padding-left: 6px;
  margin-left: 2px;
  border-left: 1px solid rgba(255,255,255,0.10);
}
.kh-legend {
  display: flex; flex-wrap: wrap;
  gap: 24px;
  font-family: var(--font-heading); font-weight: 500;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(220,238,255,0.62);
}
.kh-legend__item {
  display: inline-flex; align-items: center; gap: 8px;
}
.kh-legend__dot {
  width: 10px; height: 10px; border-radius: 999px;
  box-shadow: 0 0 6px currentColor;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .kh-goals { grid-template-columns: repeat(2, 1fr); }
  .kh-myths { grid-template-columns: 1fr; }
  .kh-paths { grid-template-columns: repeat(2, 1fr); }
  .kh-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .kh-stat:nth-child(2) { border-right: 0; }
}
@media (max-width: 720px) {
  .kh-goals { grid-template-columns: 1fr; }
  .kh-suggested__row { grid-template-columns: 1fr; }
  .kh-hero__stats { grid-template-columns: 1fr; }
  .kh-stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
}
