/* =============================================================================
 * kc-landing-skin.css — ONE DESIGN LANGUAGE ACROSS THE PLATFORM
 * =============================================================================
 *
 * The landing page (index.html, landing-2026.css) is the reference. This file
 * carries its chrome and components — the sticky glass nav, the wordmark, the
 * one gradient action, chips, inputs, cards, the eyebrow and the heading
 * scale — as `ks-` classes any page can wear (founder, 2026-09-13: "make the
 * rest of the entire platform look the same": the two-minute test, the
 * member door, the gate, the Knowledge Center, the account page).
 *
 * LOAD ORDER. After kc-theme.css and kc-uplift.css, before the page's own
 * sheet. Colours are read from the platform's LIVE tokens (--page, --plate,
 * --ink1..3, --acc, --grad, --on-grad from kc-uplift.css), with the landing's
 * hex as the fallback, so a member who has chosen the light ground keeps it
 * and everything else still matches. Fonts come from kc-theme.css, which now
 * names Comfortaa and Nunito in every register but clear.
 *
 * NOTHING HERE IS !important. The token layers keep theirs; this is a
 * component sheet and loses to any page rule of equal specificity written
 * after it, which is what a page-specific exception should look like.
 *
 * Contrast: every ink/ground pairing used here is a token pairing the audit
 * (node tools/contrast_audit.mjs) already measures; the literals below are the
 * landing's own, all passing on both grounds at their sizes.
 * ========================================================================== */

:root {
  --ks-bg:        var(--page, #0b0a14);
  --ks-plate:     var(--plate, rgba(20, 18, 32, 0.66));
  --ks-line:      var(--rule-soft, rgba(236, 231, 223, 0.07));
  --ks-line-2:    var(--rule, rgba(236, 231, 223, 0.18));
  --ks-ink-1:     var(--ink1, #ece7df);
  --ks-ink-2:     var(--ink2, #bab5b1);
  --ks-ink-3:     var(--ink3, #9c9793);
  --ks-acc:       var(--acc, #cbaafe);
  --ks-grad:      var(--grad, linear-gradient(150deg, #a78bfa, #7f6fe0));
  --ks-on-grad:   var(--on-grad, #0b0a14);
  --ks-good:      var(--green, #5eead4);
  --ks-caution:   var(--amber, #ddb467);
  --ks-bad:       var(--crit, #e98d8d);
  --ks-display:   var(--font-display, "Comfortaa", ui-rounded, system-ui, sans-serif);
  --ks-body:      var(--font-sans, "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif);
  --ks-mono:      "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ks-gutter:    clamp(20px, 4vw, 48px);
  --ks-section:   clamp(56px, 9vw, 128px);
  --ks-max:       1424px;
  --ks-radius:    22px;
  --ks-radius-s:  14px;
  --ks-nav-h:     64px;
}

/* --- the page --------------------------------------------------------------- */

.ks {
  margin: 0;
  background: var(--ks-bg);
  color: var(--ks-ink-1);
  font-family: var(--ks-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
.ks *, .ks *::before, .ks *::after { box-sizing: border-box; }
.ks a { color: inherit; text-decoration: none; }
.ks button { font: inherit; color: inherit; }
.ks :focus-visible { outline: 2px solid var(--ks-acc); outline-offset: 3px; }
/* the hidden attribute wins over any display a ks- class sets */
.ks [hidden], .ks-nav [hidden], .ks-card [hidden] { display: none !important; }

.ks-shell { max-width: var(--ks-max); margin-inline: auto; padding-inline: var(--ks-gutter); }
.ks-shell--narrow { max-width: 760px; }
.ks-section { padding-block: var(--ks-section); border-top: 1px solid var(--ks-line); scroll-margin-top: calc(var(--ks-nav-h) + 8px); }

/* --- type ------------------------------------------------------------------- */

.ks-eyebrow {
  font-family: var(--ks-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ks-ink-3);
  margin: 0;
}
.ks-note { font-family: var(--ks-mono); font-size: 12px; letter-spacing: 0.06em; line-height: 1.7; color: var(--ks-ink-3); margin: 0; }
.ks-body { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; color: var(--ks-ink-2); margin: 0; max-width: 62ch; }
.ks-h1, .ks-h2, .ks-h3 { font-family: var(--ks-display); font-weight: 700; color: var(--ks-ink-1); margin: 0; }
/* kc-theme.css sets `main h2, main h3 { font-weight: 600 !important; letter-spacing … }`;
   the skin's headings keep the landing's weight wherever they sit. */
main .ks-h1, main .ks-h2, main .ks-h3 { font-family: var(--ks-display) !important; font-weight: 700 !important; }
main .ks-h1 { letter-spacing: -0.02em !important; }
main .ks-h2 { letter-spacing: -0.015em !important; }
main .ks-h3 { letter-spacing: -0.005em !important; }
.ks-h1 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -0.02em; max-width: 18ch; }
.ks-h2 { font-size: clamp(26px, 3vw, 44px); line-height: 1.14; letter-spacing: -0.015em; }
.ks-h3 { font-size: clamp(19px, 1.5vw, 24px); line-height: 1.24; letter-spacing: -0.005em; }
.ks-h1 em, .ks-h2 em { font-style: normal; background: var(--ks-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --- the nav ---------------------------------------------------------------- */

.ks-nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--ks-nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: var(--ks-gutter);
  background: color-mix(in srgb, var(--ks-bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ks-line);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) { .ks-nav { background: rgba(11, 10, 20, 0.72); } }
.ks-nav__brand {
  font-family: var(--ks-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ks-ink-1);
  display: inline-flex; align-items: baseline; gap: 12px;
  white-space: nowrap;
}
.ks-nav__brand small { font-family: var(--ks-mono); font-weight: 400; font-size: 11px; letter-spacing: 0.2em; color: var(--ks-ink-3); }
.ks-nav__links { display: flex; align-items: baseline; gap: clamp(14px, 2.2vw, 34px); min-width: 0; }
.ks-nav__link {
  font-family: var(--ks-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ks-ink-3);
  background: none; border: 0; padding: 0; cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.ks-nav__link:hover, .ks-nav__link:focus-visible, .ks-nav__link[aria-current] { color: var(--ks-ink-1); }
.ks-nav__link[aria-current] { border-bottom-color: var(--ks-acc); }
@media (max-width: 760px) {
  .ks-nav__links { gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .ks-nav__links::-webkit-scrollbar { display: none; }
  .ks-nav__link { font-size: 11px; }
  .ks-nav__brand small { display: none; }
}
@media (max-width: 480px) {
  .ks-nav__brand { font-size: 16px; letter-spacing: 0.12em; }
  .ks-nav__links { gap: 12px; }
}

/* --- the one action, and the quiet one -------------------------------------- */

.ks-cta {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 30px;
  border: 0; border-radius: 999px;
  background: var(--ks-grad);
  color: var(--ks-on-grad);
  font-family: var(--ks-body); font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.2, .7, .2, 1), opacity 0.18s ease;
}
.ks-cta svg { display: block; }
.ks-cta:hover, .ks-cta:focus-visible { transform: translateY(-1px); opacity: 0.94; }
.ks-cta:disabled, .ks-cta[aria-disabled="true"] { opacity: 0.45; cursor: default; transform: none; }
.ks-cta--ring::after { content: ""; position: absolute; inset: -5px; border-radius: 999px; border: 2px solid rgba(167, 139, 250, 0.7); opacity: 0; animation: ksRing 2.4s ease-out infinite; pointer-events: none; }
@keyframes ksRing { 0% { transform: scale(0.96); opacity: 0.8; } 70% { transform: scale(1.16); opacity: 0; } 100% { transform: scale(1.16); opacity: 0; } }
.ks-cta--block { width: 100%; }

.ks-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid var(--ks-line-2);
  background: transparent; color: var(--ks-ink-1);
  font-family: var(--ks-body); font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.25s cubic-bezier(.2, .7, .2, 1);
}
.ks-ghost:hover, .ks-ghost:focus-visible { border-color: rgba(167, 139, 250, 0.7); transform: translateY(-1px); }

.ks-quiet {
  background: none; border: 0; padding: 2px 0; cursor: pointer;
  color: var(--ks-ink-3);
  border-bottom: 1px solid transparent;
  font: inherit;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.ks-quiet:hover, .ks-quiet:focus-visible { color: var(--ks-ink-1); border-bottom-color: rgba(236, 231, 223, 0.4); }
.ks-link { color: var(--ks-acc); border-bottom: 1px solid rgba(203, 170, 254, 0.35); }
.ks-link:hover, .ks-link:focus-visible { border-bottom-color: currentColor; }

/* --- chips and choices ------------------------------------------------------- */

.ks-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ks-chip { position: relative; }
.ks-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ks-chip span, .ks-chip--static, .ks-chips > span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--ks-line-2); color: var(--ks-ink-2);
  font-family: var(--ks-body); font-weight: 600; font-size: 14px;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}
.ks-chip:hover span { border-color: rgba(167, 139, 250, 0.6); }
.ks-chip input:checked + span, .ks-chip.is-on span { background: var(--ks-grad); border-color: transparent; color: var(--ks-on-grad); }
.ks-chip input:focus-visible + span { outline: 2px solid var(--ks-acc); outline-offset: 3px; }
.ks-chip input:disabled + span { opacity: 0.4; }
.ks-tag {
  font-family: var(--ks-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 5px 11px; border: 1px solid currentColor; border-radius: 4px; color: var(--ks-ink-3);
}
.ks-tag--live { color: var(--ks-good); }

/* --- the choice list: one answer, one row (the quiz's options) --------------- */

.ks-choice {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  min-height: 60px; padding: 14px 18px;
  border-radius: var(--ks-radius-s); border: 1px solid var(--ks-line-2);
  background: transparent; color: var(--ks-ink-1);
  font-family: var(--ks-body); font-size: 16px; line-height: 1.4;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.ks-choice:hover:not(:disabled) { border-color: rgba(167, 139, 250, 0.6); transform: translateX(3px); }
.ks-choice:disabled { cursor: default; transform: none; }
.ks-choice__key {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ks-line-2); font-family: var(--ks-mono); font-size: 12px; color: var(--ks-ink-3);
}
.ks-choice.is-on, .ks-choice[aria-pressed="true"], .ks-choice[data-state="right"] { border-color: transparent; background: var(--ks-grad); color: var(--ks-on-grad); }
.ks-choice.is-on .ks-choice__key, .ks-choice[data-state="right"] .ks-choice__key { border-color: rgba(11, 10, 20, 0.35); color: var(--ks-on-grad); }
.ks-choice[data-state="wrong"] { border-color: var(--ks-bad); }
.ks-choice[data-state="muted"] { color: var(--ks-ink-3); }

/* --- inputs ------------------------------------------------------------------ */

.ks-field { display: flex; flex-direction: column; gap: 8px; }
.ks-field > label, .ks-label { font-family: var(--ks-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ks-ink-3); }
.ks-field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ks-input,
.ks input[type="email"], .ks input[type="password"], .ks input[type="text"], .ks input[type="search"], .ks input[type="tel"], .ks input[type="number"], .ks textarea, .ks select {
  width: 100%; min-height: 48px; padding: 0 18px; border-radius: 999px;
  background: rgba(236, 231, 223, 0.05); border: 1px solid var(--ks-line-2); color: var(--ks-ink-1);
  font-family: var(--ks-body); font-size: 15px;
  -webkit-appearance: none; appearance: none;
}
.ks textarea { border-radius: var(--ks-radius-s); padding: 14px 18px; min-height: 120px; resize: vertical; }
.ks-input::placeholder, .ks input::placeholder, .ks textarea::placeholder { color: var(--ks-ink-3); }
.ks-input:focus-visible, .ks input:focus-visible, .ks textarea:focus-visible, .ks select:focus-visible { outline: 2px solid var(--ks-acc); outline-offset: 2px; border-color: transparent; }
.ks-input[aria-invalid="true"], .ks input[aria-invalid="true"] { border-color: var(--ks-bad); }
.ks-help { font-size: 13px; color: var(--ks-ink-3); margin: 0; }
.ks-msg { font-size: 14px; line-height: 1.5; color: var(--ks-ink-2); margin: 0; min-height: 1.4em; }
.ks-msg--bad { color: var(--ks-bad); }
.ks-msg--good { color: var(--ks-good); }

/* --- plates ------------------------------------------------------------------ */

.ks-card {
  position: relative; overflow: hidden;
  background: var(--ks-plate);
  border: 1px solid var(--ks-line);
  border-radius: var(--ks-radius);
  padding: clamp(26px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 18px;
}
.ks-card > * { position: relative; }
.ks-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(167, 139, 250, 0.30), rgba(127, 111, 224, 0.10) 45%, transparent 72%);
  transition: opacity .35s ease;
}
@media (hover: hover) {
  .ks-card--hover { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  .ks-card--hover:hover { transform: translateY(-2px); }
  .ks-card--hover:hover::before { opacity: 1; }
}
.ks-card--tight { padding: 18px 20px; gap: 10px; border-radius: var(--ks-radius-s); }
.ks-rule { border: 0; border-top: 1px solid var(--ks-line); margin: 0; }
.ks-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* --- progress ----------------------------------------------------------------- */

.ks-bar { height: 2px; background: var(--ks-line-2); border-radius: 999px; overflow: hidden; }
.ks-bar > i { display: block; height: 100%; width: var(--p, 0%); background: var(--ks-grad); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.ks-steps { font-family: var(--ks-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ks-ink-3); }

/* --- the field behind everything (kc-shoal.js mounted on it; that file was
   deleted on 2026-10-01 and no page renders .ks-field-bg now) -------------- */

.ks-field-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; contain: strict; }
.ks-field-bg .lp2-shoal { position: absolute; inset: 0; display: block; }
.ks-above { position: relative; z-index: 1; }

/* --- reveals ------------------------------------------------------------------ */

.ks-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.ks-reveal.is-in { opacity: 1; transform: none; }
.ks-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- the door: a two-column welcome with the card on the right -------------- */

.ks-door { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: center; min-height: calc(100vh - var(--ks-nav-h)); padding-block: clamp(40px, 7vh, 96px); }
.ks-door__card { max-width: 520px; width: 100%; justify-self: end; }
@media (max-width: 900px) { .ks-door { grid-template-columns: 1fr; align-items: start; } .ks-door__card { justify-self: stretch; max-width: none; } }

/* --- the gate: one wordmark, one line, three ways out ------------------------ */

.ks-gate { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: var(--ks-gutter); }
.ks-gate__in { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 46ch; }
.ks-gate__mark { font-family: var(--ks-display); font-weight: 600; font-size: 22px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ks-ink-1); }
.ks-gate__ways { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .ks-cta, .ks-ghost, .ks-choice, .ks-card--hover, .ks-reveal, .ks-bar > i { transition: none; }
  .ks-cta--ring::after { animation: none; }
  .ks-reveal { opacity: 1; transform: none; }
}
