/* ============================================================
   kumbuka.ai — marketing landing page
   Bound to the JBAConsult / kumbuka editorial design system.
   Paper-on-deep-ink. Radius 0. No shadows. One orange.
   ============================================================ */

/* Fonts are self-hosted via assets/fonts.css (loaded in index.html)
   — Space Grotesk, Inter, JetBrains Mono. No external font CDN. */

/* ------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------ */
:root {
  /* fonts */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* fixed brand colours */
  --accent:       #FF5B1F;
  --navy:         #2D4059;
  --deep:         #0F1620;
  --paper:        #F4F1EA;
  --paper-2:      #EBE6DB;

  /* layout */
  --max:          1240px;
  --side:         120px;

  --ease:         150ms ease-out;
}

/* --- LIGHT THEME (default) --------------------------------- */
:root,
:root[data-theme="light"] {
  --bg:           #F4F1EA;   /* page background — paper          */
  --bg-2:         #EBE6DB;   /* inset surfaces                   */
  --text:         #141820;   /* primary text                    */
  --text-soft:    rgba(15,22,32,0.72);
  --muted:        rgba(15,22,32,0.55);
  --line:         rgba(15,22,32,0.18);
  --line-soft:    rgba(15,22,32,0.10);
  --acc:          #FF5B1F;   /* working accent                  */

  /* full-bleed dark "console" panels (always dark) */
  --panel:        #0F1620;
  --panel-2:      #141C28;
  --panel-text:   #F4F1EA;
  --panel-muted:  rgba(244,241,234,0.58);
  --panel-line:   rgba(244,241,234,0.16);
  --panel-line-2: rgba(244,241,234,0.09);
  --panel-acc:    #FF6A33;

  /* entry-type taxonomy swatches */
  --t-decision:      #2D4059;
  --t-convention:    #6F7540;
  --t-constraint:    #C44536;
  --t-open_question: #C07B1E;
  --t-glossary:      #5F5C82;
  --t-status:        #3E7C5E;

  color-scheme: light;
}

/* --- DARK THEME ------------------------------------------- */
:root[data-theme="dark"] {
  --bg:           #0F1620;
  --bg-2:         #161E2A;
  --text:         #F4F1EA;
  --text-soft:    rgba(244,241,234,0.78);
  --muted:        rgba(244,241,234,0.55);
  --line:         rgba(244,241,234,0.16);
  --line-soft:    rgba(244,241,234,0.09);
  --acc:          #FF6A33;

  /* panels lift to navy so they separate from the dark page */
  --panel:        #1B2940;
  --panel-2:      #24344C;
  --panel-text:   #F4F1EA;
  --panel-muted:  rgba(244,241,234,0.60);
  --panel-line:   rgba(244,241,234,0.18);
  --panel-line-2: rgba(244,241,234,0.10);
  --panel-acc:    #FF6A33;

  /* lifted taxonomy swatches for contrast on dark */
  --t-decision:      #6E93C4;
  --t-convention:    #ABB36A;
  --t-constraint:    #E07A6B;
  --t-open_question: #E0A445;
  --t-glossary:      #9C97C6;
  --t-status:        #6FB892;

  color-scheme: dark;
}

/* ------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--ease), color var(--ease);
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--acc); color: #fff; }

/* The HTML `hidden` attribute must win over component display rules
   (e.g. .beta-alert / .beta-thanks set display:flex) — otherwise an
   author display rule overrides the UA [hidden]{display:none} and the
   element shows before JS reveals it. */
[hidden] { display: none !important; }

/* ------------------------------------------------------------
   3. TYPE PRIMITIVES
   ------------------------------------------------------------ */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0;
}
.lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.3vw, 27px);
  line-height: 1.28;
  letter-spacing: -0.014em;
  margin: 0;
  text-wrap: pretty;
}
.body {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 60ch;
}
.k { color: var(--acc); }

/* eyebrow — mono, uppercase, orange, // prefix (console motif) */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acc);
  margin: 0 0 22px;
  display: block;
}
.eyebrow .sl { opacity: 0.55; margin-right: 5px; }

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------ */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--side);
}
.section {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--line-soft);
}
.section.first { border-top: 0; }

/* full-bleed dark panel sections */
.panel {
  background: var(--panel);
  color: var(--panel-text);
  border-top: 0;
}
.panel .eyebrow { color: var(--panel-acc); }
.panel .body { color: var(--panel-muted); }

/* ------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------ */
.btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 24px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn .arrow { font-weight: 600; }
@media (hover: hover) {
  .btn:hover { background: var(--text); color: var(--bg); }
}
.btn.primary {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
}
@media (hover: hover) {
  .btn.primary:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
}
/* on dark panels */
.panel .btn { border-color: var(--panel-text); color: var(--panel-text); }
@media (hover: hover) {
  .panel .btn:hover { background: var(--panel-text); color: var(--panel); }
}
.panel .btn.primary { background: var(--panel-acc); border-color: var(--panel-acc); color: #fff; }
@media (hover: hover) {
  .panel .btn.primary:hover { background: var(--panel-text); border-color: var(--panel-text); color: var(--panel); }
}

/* ------------------------------------------------------------
   6. LINKS & FOCUS
   ------------------------------------------------------------ */
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   7. NAV
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--side);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 30px; width: auto; display: block; }
.nav-logo .white { display: none; }
:root[data-theme="dark"] .nav-logo .dark { display: none; }
:root[data-theme="dark"] .nav-logo .white { display: block; }

.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-right: 8px; }
.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding: 8px 12px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color var(--ease);
}
@media (hover: hover) {
  .nav-link:hover { color: var(--acc); }
}

/* theme toggle — console style segmented control */
.theme-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.theme-toggle button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  letter-spacing: inherit;
  padding: 8px 11px;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.theme-toggle button + button { border-left: 1px solid var(--line); }
.theme-toggle button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

.nav-cta { padding: 12px 18px; }

/* language switcher — mirrors the theme toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lang-toggle button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  letter-spacing: inherit;
  padding: 7px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background var(--ease), color var(--ease);
}
.lang-toggle button + button { border-left: 1px solid var(--line); }
.lang-toggle button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.lang-flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  border: 1px solid var(--line-soft);
  flex: none;
}
.lang-flag svg { display: block; width: 100%; height: 100%; }

/* hamburger — hidden on desktop, shown ≤760px */
.nav-toggle {
  display: none;
  appearance: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 5px; width: 18px; }
.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  transition: transform var(--ease), opacity var(--ease);
}
/* X when open */
body.nav-open .nav-toggle-bars span:first-child { transform: translateY(3.25px) rotate(45deg); }
body.nav-open .nav-toggle-bars span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* mobile drop-down sheet */
.nav-sheet {
  display: none;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
  overflow: hidden;
  max-height: 0;
  transition: max-height 200ms ease-out;
}
body.nav-open .nav-sheet { max-height: 60vh; }
.nav-sheet-links { display: flex; flex-direction: column; padding: 8px var(--side) 0; }
.nav-sheet-link {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-sheet-link .ext { color: var(--muted); font-size: 12px; }
.nav-sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--side) 22px;
}
.nav-sheet-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------
   8. HERO
   ------------------------------------------------------------ */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 5.6vw, 82px);
  line-height: 0.97;
  letter-spacing: -0.038em;
  margin: 18px 0 26px;
  text-wrap: balance;
}
.hero .subhead {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.58;
  color: var(--text-soft);
  max-width: 52ch;
  margin: 0 0 36px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------
   9. CONSOLE / CODE BLOCK
   ------------------------------------------------------------ */
.console {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  color: var(--panel-text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  min-width: 0;
}
.hero-console, .hero-copy { min-width: 0; }
.console-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--panel-line-2);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--panel-muted);
}
.console-bar .dot {
  width: 8px; height: 8px;
  background: var(--panel-acc);
  display: inline-block;
}
.console-bar .grow { flex: 1; }
.console-body { padding: 18px 18px 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.console-body .row { white-space: pre; }
.c-prompt  { color: var(--panel-acc); }
.c-dim     { color: var(--panel-muted); }
.c-arrow   { color: var(--panel-acc); }
.c-key     { color: #8FB4E8; }
.c-str     { color: #C9D6A8; }
.c-type    { font-weight: 600; }
.c-entry   { color: var(--panel-text); }
.t-sq {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 2px;
  margin-right: 2px;
  vertical-align: baseline;
  position: relative;
  top: 1px;
}

/* endpoint copy field */
.endpoint {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--bg-2);
  max-width: 560px;
}
.endpoint .ep-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 14px;
  border-right: 1px solid var(--line);
  display: flex; align-items: center;
  white-space: nowrap;
}
.endpoint code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  padding: 14px 14px;
  display: flex; align-items: center;
  overflow-x: auto;
  white-space: nowrap;
}
.endpoint .copy {
  appearance: none;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 16px;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
@media (hover: hover) {
  .endpoint .copy:hover { background: var(--text); color: var(--bg); }
}
.panel .endpoint { background: var(--panel-2); border-color: var(--panel-line); }
.panel .endpoint .ep-label { color: var(--panel-muted); border-color: var(--panel-line); }
.panel .endpoint code { color: var(--panel-text); }
.panel .endpoint .copy { color: var(--panel-text); border-color: var(--panel-line); }

/* ------------------------------------------------------------
   10. SECTION HEADER
   ------------------------------------------------------------ */
.sec-head { max-width: 56ch; margin-bottom: clamp(40px, 5vw, 60px); }
.sec-head .lead { margin-top: 22px; color: var(--text-soft); }
.panel .sec-head .lead { color: var(--panel-muted); }

/* ------------------------------------------------------------
   11. PROBLEM — steering-rule examples
   ------------------------------------------------------------ */
.rules { border-top: 1px solid var(--line); max-width: 760px; }
.rule {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.rule .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.rule .quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.3;
  letter-spacing: -0.012em;
  overflow-wrap: anywhere;
}
.rule .quote code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--bg-2);
  padding: 1px 6px;
  border: 1px solid var(--line-soft);
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------
   12. HOW IT WORKS — 3 steps
   ------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.step {
  padding: 30px 28px 34px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.step:last-child { border-right: 0; }
.step .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acc);
}
.step .op {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 5px 9px;
  align-self: flex-start;
  background: var(--bg-2);
}
.step p { color: var(--text-soft); font-size: 15.5px; line-height: 1.55; margin: 0; }
.loop-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.loop-note .k { color: var(--acc); }
.loop-note .verbs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.loop-note .verb { white-space: nowrap; }
.loop-note .verb:not(:last-child)::after {
  content: '·';
  margin-left: 8px;
  color: var(--line);
}

/* ------------------------------------------------------------
   13. TAXONOMY — six entry types
   ------------------------------------------------------------ */
.taxo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.entry {
  padding: 26px 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.entry:nth-child(3n) { border-right: 0; }
.entry:nth-child(n+4) { border-bottom: 0; }
.entry .label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.entry .sq {
  width: 11px; height: 11px;
  border-radius: 2px;
  flex: none;
}
.entry p { color: var(--text-soft); font-size: 15px; line-height: 1.5; margin: 0; }

/* ------------------------------------------------------------
   14. SCOPES — three kinds
   ------------------------------------------------------------ */
.scopes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.scope {
  padding: 30px 28px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.scope:last-child { border-right: 0; }
.scope .kind {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc);
}
.scope .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.scope p { color: var(--text-soft); font-size: 15.5px; line-height: 1.55; margin: 0; }
.scope .tail {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------
   15. PRIVATE GUARANTEE PANEL
   ------------------------------------------------------------ */
.guarantee { position: relative; overflow: hidden; }
.guarantee .mark-bg {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(52%, 620px);
  opacity: 0.05;
  pointer-events: none;
}
.guarantee .wrap { position: relative; z-index: 1; }
.guarantee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.guarantee h2 { max-width: 14ch; }
.guarantee .statement {
  border-left: 2px solid var(--panel-acc);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.guarantee .statement p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--panel-text);
}
.guarantee .statement .fine {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--panel-muted);
}
.guarantee .enforce {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tagchip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid var(--panel-line);
  color: var(--panel-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tagchip::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--panel-acc);
  display: inline-block;
}

/* ------------------------------------------------------------
   16. DEVELOPERS / SELF-HOST
   ------------------------------------------------------------ */
.dev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-bottom: 0;
}
.dev-item {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dev-item:nth-child(2n) { border-right: 0; }
.dev-item .dk {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.dev-item .dv {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.015em;
}
.dev-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: center;
  margin-top: 36px;
}
.dev-foot .compat {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-soft);
}
.dev-foot .compat code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  border: 1px solid var(--line-soft);
  padding: 1px 5px;
}

/* ------------------------------------------------------------
   17. THE CONSOLE — screenshot frame
   ------------------------------------------------------------ */
.shot {
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.shot-bar .sq3 { display: flex; gap: 6px; }
.shot-bar .sq3 i { width: 9px; height: 9px; background: var(--line); display: block; }
.shot-canvas {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--text) 6%, transparent) 0 12px,
      transparent 12px 24px),
    var(--bg-2);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.shot-img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------
   18. FINAL CTA
   ------------------------------------------------------------ */
.final { text-align: center; }
.final .display { max-width: 18ch; margin: 0 auto 22px; }
.final .body { margin: 0 auto 36px; text-align: center; color: var(--panel-muted); }
.final .eyebrow { display: inline-block; white-space: nowrap; }
.final .final-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------
   18b. PUBLIC BETA
   ------------------------------------------------------------ */
.beta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.beta-copy .lead { margin-top: 22px; color: var(--panel-muted); }
.beta-points {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.beta-points li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--panel-text);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.beta-points li::before { content: '\2192'; color: var(--panel-acc); flex: none; }

/* form card */
.beta-form-wrap {
  background: var(--panel-2);
  border: 1px solid var(--panel-line);
  padding: clamp(24px, 3vw, 32px);
}
.beta-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.beta-form-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--panel-text);
}
.beta-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--panel-acc);
  border: 1px solid var(--panel-acc);
  padding: 3px 7px;
}

.beta-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #E8836F;
  border-left-width: 3px;
  background: rgba(232, 131, 111, 0.08);
  padding: 11px 13px;
  margin-bottom: 18px;
}
.beta-alert .ba-label {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #E8836F;
  flex: none;
}
.beta-alert .ba-msg { font-size: 13.5px; line-height: 1.45; color: var(--panel-text); }

.beta-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bf { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.bf-full { grid-column: 1 / -1; }
.bf > label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--panel-muted);
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.bf-opt { color: rgba(244,241,234,0.4); font-size: 10px; }
.bf-input {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--panel-text);
  background: rgba(244,241,234,0.04);
  border: 1px solid var(--panel-line);
  border-radius: 0;
  padding: 11px 12px;
  width: 100%;
  transition: border-color 150ms ease-out, background 150ms ease-out;
}
.bf-input::placeholder { color: rgba(244,241,234,0.35); }
@media (hover: hover) {
  .bf-input:hover { border-color: rgba(244,241,234,0.3); }
}
.bf-input:focus {
  outline: 2px solid var(--panel-acc);
  outline-offset: 2px;
  border-color: var(--panel-acc);
  background: rgba(244,241,234,0.07);
}
.bf-input[aria-invalid="true"] { border-color: #E8836F; }
.bf-textarea { resize: vertical; min-height: 84px; line-height: 1.5; }

.bf-select { position: relative; }
.bf-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
}
.bf-select select option { color: #141820; }
.bf-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--panel-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}
.bf-err {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #E8836F;
  margin: 0;
}
.bf-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bf-count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--panel-muted);
  margin-left: auto;
  flex: none;
}

.beta-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.beta-submit { width: 100%; }
.beta-submit[disabled] { opacity: 0.6; cursor: progress; }
.beta-privacy {
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--panel-muted);
  margin: 0;
  text-align: center;
}

/* success state */
.beta-thanks { display: flex; flex-direction: column; align-items: flex-start; }
.beta-thanks-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6FB892;
  border: 1px solid #6FB892;
  padding: 6px 12px;
  margin-bottom: 22px;
}
.beta-thanks-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--panel-text);
  margin: 0 0 12px;
}
.beta-thanks-body { color: var(--panel-text); font-size: 16px; line-height: 1.55; margin: 0 0 10px; max-width: 42ch; }
.beta-thanks-meta { color: var(--panel-muted); font-size: 14px; line-height: 1.55; margin: 0 0 24px; max-width: 42ch; }
.beta-thanks-links { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.beta-again {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--panel-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 0 1px;
  border-bottom: 1px solid var(--panel-line);
  transition: color 150ms ease-out, border-color 150ms ease-out;
}
.beta-again:hover { color: var(--panel-acc); border-color: var(--panel-acc); }
.beta-again:focus-visible { outline: 2px solid var(--panel-acc); outline-offset: 2px; }

@media (max-width: 760px) {
  .beta-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 460px) {
  .beta-fields { grid-template-columns: 1fr; }
  .bf { grid-column: 1 / -1 !important; }
}

/* ------------------------------------------------------------
   18c. MEMORY IN ACTION (animated demo)
   ------------------------------------------------------------ */
.md-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.md-tabs { display: inline-flex; border: 1px solid var(--line); }
.md-tab {
  appearance: none;
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 9px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--ease), color var(--ease);
}
.md-tab + .md-tab { border-left: 1px solid var(--line); }
.md-tab .md-tab-n { color: var(--acc); }
.md-tab[aria-selected="true"] { background: var(--text); color: var(--bg); }
.md-tab[aria-selected="true"] .md-tab-n { color: var(--acc); }
.md-replay {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  padding: 9px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.md-replay-i { font-size: 14px; line-height: 1; }
@media (hover: hover) { .md-replay:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
.md-tab:focus-visible, .md-replay:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* stage */
.md-stage {
  display: grid;
  grid-template-columns: 1fr 1.06fr 1fr;
  gap: 18px;
  align-items: stretch;
}

/* chat columns */
.md-chat {
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* Fixed window: streaming content scrolls inside (.md-thread), so the
     section height never changes as the demo plays — nothing below it (incl.
     the beta form on mobile) reflows. */
  height: 480px;
  transition: opacity 300ms ease-out;
}
.md-chat.is-dim { opacity: 0.4; }
.md-chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.md-avatar {
  width: 32px; height: 32px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}
.md-avatar[data-av="a"] { background: var(--t-decision); }
.md-avatar[data-av="b"] { background: var(--navy); }
:root[data-theme="dark"] .md-avatar[data-av="a"] { color: var(--deep); }
:root[data-theme="dark"] .md-avatar[data-av="b"] { color: var(--deep); }
.md-who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.md-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--text); }
.md-role { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.md-thread {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;     /* fill the fixed .md-chat height and scroll internally */
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* messages */
.md-msg { display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.md-msg.user { align-items: flex-end; }
.md-bubble {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  max-width: 90%;
}
.md-msg.assistant .md-asst-row { display: flex; gap: 9px; align-items: flex-start; }
.md-asst-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.md-asst-mark {
  width: 8px; height: 8px; flex: none; margin-top: 7px;
  background: var(--acc);
}
.md-asst-text { font-size: 14px; line-height: 1.55; color: var(--text); min-width: 0; }
.md-meta-line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* tools-discovery + loading line */
.md-toolsline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.md-spinner {
  width: 9px; height: 9px;
  border: 1.5px solid var(--line);
  border-top-color: var(--acc);
  border-radius: 999px;
  display: inline-block;
  animation: md-spin 0.7s linear infinite;
}
@keyframes md-spin { to { transform: rotate(360deg); } }
.md-pulse-dot {
  width: 8px; height: 8px; flex: none;
  background: var(--acc);
  display: inline-block;
  animation: md-pulse 1s ease-in-out infinite;
}
@keyframes md-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* tool-call chip */
.md-tool {
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
}
.md-tool-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
}
.md-tool-state { width: 10px; height: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.md-tool.running .md-tool-state::before { content: ''; width: 9px; height: 9px; border: 1.5px solid var(--line); border-top-color: var(--acc); border-radius: 999px; display: block; animation: md-spin 0.7s linear infinite; }
.md-tool.done .md-tool-state::before { content: '\2713'; color: var(--t-status); font-size: 11px; line-height: 1; }
.md-tool-name { color: var(--text); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-tool-paren { color: var(--muted); }
.md-tool-status { margin-left: auto; padding-left: 10px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; flex: none; }
.md-tool-args {
  border-top: 1px solid var(--line-soft);
  padding: 8px 11px;
  color: var(--muted);
  font-size: 11.5px;
  white-space: pre-wrap;
  word-break: break-word;
}
.md-tool-args .ta-key { color: var(--text); }
.md-tool-args .ta-str { color: var(--t-convention); }

/* streaming caret */
.md-caret {
  display: inline-block;
  width: 7px; height: 1.05em;
  background: var(--acc);
  margin-left: 1px;
  transform: translateY(2px);
  animation: md-blink 1s step-end infinite;
}
@keyframes md-blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* later divider */
.md-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2px 0;
}
.md-divider::before, .md-divider::after { content: ''; height: 1px; flex: 1; background: var(--line-soft); }

/* memory panel (always deep-ink — the shared connector) */
.md-memory {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 480px;     /* fixed window — cards scroll inside .md-cards */
}
.md-memory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--panel-line-2);
}
.md-memory-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--panel-acc);
}
.md-memory-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--panel-muted);
  border: 1px solid var(--panel-line);
  padding: 2px 8px;
  min-width: 26px;
  text-align: center;
}
.md-cards {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;     /* allow the card list to scroll within the fixed panel */
  overflow-y: auto;
}
.md-empty {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--panel-muted);
  margin: auto 0;
  text-align: center;
  opacity: 0.7;
}

/* memory card */
.md-card {
  border: 1px solid var(--panel-line);
  border-left: 3px solid var(--c, var(--panel-acc));
  background: rgba(244,241,234,0.03);
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.md-card.is-new { animation: md-land 460ms cubic-bezier(0.16,0.84,0.44,1) both; }
@keyframes md-land { from { transform: translateY(-10px) scale(0.97); } to { transform: none; } }
.md-card.is-active { outline: 2px solid var(--panel-acc); outline-offset: 2px; }
.md-card-top { display: flex; align-items: center; gap: 8px; }
.md-card-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--panel-text);
}
.md-card-badge .sq { width: 9px; height: 9px; border-radius: 2px; background: var(--c, var(--panel-acc)); flex: none; }
.md-card-scope {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--panel-muted);
}
.md-card-body { font-size: 13.5px; line-height: 1.5; color: var(--panel-text); }

/* mini card docked into B's answer */
.md-minicard {
  border: 1px solid var(--line);
  border-left: 3px solid var(--c, var(--acc));
  background: var(--bg);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}
.md-minicard.is-active { animation: md-dock 460ms cubic-bezier(0.16,0.84,0.44,1) both; }
@keyframes md-dock { from { transform: translateX(-12px); } to { transform: none; } }
.md-minicard .mc-top { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; color: var(--text); }
.md-minicard .mc-top .sq { width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--acc)); flex: none; }
.md-minicard .mc-scope { margin-left: auto; color: var(--muted); }
.md-minicard .mc-body { font-size: 12px; line-height: 1.45; color: var(--text-soft); }

/* streamed output artifacts (email / checklist) */
.md-artifact {
  border: 1px solid var(--line);
  background: var(--bg);
  margin-top: 2px;
  animation: md-land 420ms cubic-bezier(0.16,0.84,0.44,1) both;
}
.md-email-head {
  border-bottom: 1px solid var(--line-soft);
  padding: 9px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.me-row { display: flex; gap: 10px; font-family: var(--font-mono); font-size: 11px; }
.me-k { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; min-width: 50px; }
.me-v { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-email-body {
  padding: 12px;
  display: flex; flex-direction: column; gap: 9px;
  font-size: 13.5px; line-height: 1.55; color: var(--text);
}
.md-email-greet { display: flex; flex-direction: column; gap: 1px; }
.me-formal { transition: color 200ms ease-out; }
.me-formal.is-struck { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--muted); }
.me-corrected { color: var(--text); }
.me-p { margin: 0; }
.me-signoff { margin-top: 4px; color: var(--text-soft); }
.me-signoff-ln { line-height: 1.4; }

.md-checklist { padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.md-checklist-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.md-check-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.md-check-box {
  width: 15px; height: 15px; flex: none; margin-top: 2px;
  border: 1.5px solid var(--line); position: relative;
  transition: background 200ms ease-out, border-color 200ms ease-out;
}
.md-check-item.is-done .md-check-box { border-color: var(--t-status); background: var(--t-status); }
.md-check-item.is-done .md-check-box::after {
  content: '\2713'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--bg); font-size: 11px; line-height: 1;
}
.md-checklist-note {
  font-size: 12.5px; line-height: 1.5; color: var(--muted);
  border-top: 1px solid var(--line-soft); padding-top: 9px;
}

/* memory-card type colors (reuse taxonomy tokens) */
.md-card[data-type="decision"], .md-minicard[data-type="decision"] { --c: var(--t-decision); }
.md-card[data-type="convention"], .md-minicard[data-type="convention"] { --c: var(--t-convention); }
.md-card[data-type="constraint"], .md-minicard[data-type="constraint"] { --c: var(--t-constraint); }

@media (max-width: 880px) {
  .md-stage { grid-template-columns: 1fr; gap: 14px; }
  .md-chat.is-dim { opacity: 1; }
  /* Shorter — but still fixed — windows when the three stack vertically, so the
     section stays a constant height and the beta form below never wanders. */
  .md-chat, .md-memory { height: 360px; }
  .md-memory { order: 2; }
  .md-chat-b { order: 3; }
}
@media (max-width: 760px) {
  .md-tabs { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .md-tab { white-space: nowrap; }
}

/* reduced motion: kill demo animations; engine renders static end-state */
@media (prefers-reduced-motion: reduce) {
  .md-card.is-new, .md-minicard.is-active { animation: none; }
  .md-artifact { animation: none; }
  .md-spinner, .md-tool.running .md-tool-state::before, .md-pulse-dot { animation: none; }
  .md-caret { display: none; }
}

/* ------------------------------------------------------------
   19. FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--navy);
  color: var(--paper);
  padding: 64px 0 28px;
}
:root[data-theme="dark"] .footer { background: #16202F; }
.footer .wrap { display: flex; flex-direction: column; gap: 40px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(244,241,234,0.18);
}
.footer-brand img { height: 30px; display: block; margin-bottom: 18px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244,241,234,0.72);
  max-width: 34ch;
}
.footer-col .ct {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(244,241,234,0.85);
  text-decoration: none;
}
@media (hover: hover) {
  .footer-col a:hover { color: var(--accent); }
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.55);
}
.footer-meta .swahili .k { color: var(--accent); }
.footer-meta a { color: inherit; text-decoration: none; }
@media (hover: hover) {
  .footer-meta a:hover { color: var(--accent); }
}

/* ------------------------------------------------------------
   20. RESPONSIVE
   Breakpoints: 1100 (desktop padding) · 760 (tablet→phone stack,
   mobile nav) · 460 (phone fine-tune). Desktop layout unchanged.
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
  :root { --side: 64px; }
}

/* ===== 760px — primary stack point + mobile nav ===== */
@media (max-width: 760px) {
  :root { --side: 32px; }

  /* nav: hide inline links + segmented controls, show hamburger */
  .nav-links { display: none; }
  .nav-right > .theme-toggle { display: none; }
  .nav-right > .lang-toggle { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-sheet { display: block; }
  .nav-cta { padding: 11px 15px; font-size: 11px; }

  /* hero */
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  /* problem / sections that were multi-col */
  .guarantee-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .taxo { grid-template-columns: 1fr 1fr; }
  .entry:nth-child(3n) { border-right: 1px solid var(--line); }
  .entry:nth-child(2n) { border-right: 0; }
  .entry:nth-child(n+4) { border-bottom: 1px solid var(--line); }
  .entry:nth-last-child(-n+2) { border-bottom: 0; }
  .scopes { grid-template-columns: 1fr; }
  .scope { border-right: 0; border-bottom: 1px solid var(--line); }
  .scope:last-child { border-bottom: 0; }
  .dev-grid { grid-template-columns: 1fr; }
  .dev-item { border-right: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }

  /* final CTA buttons full width */
  .final .final-cta { flex-direction: column; align-items: stretch; }
  .final .final-cta .btn { width: 100%; }

  /* guarantee watermark: keep it from sitting over text — push behind, shrink */
  .guarantee .mark-bg { width: min(70%, 420px); right: -12%; opacity: 0.04; }
}

/* ===== 460px — phone fine-tune ===== */
@media (max-width: 460px) {
  :root { --side: 22px; }
  body { font-size: 16px; }

  .taxo { grid-template-columns: 1fr; }
  .entry { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .entry:last-child { border-bottom: 0 !important; }
  .rule { grid-template-columns: 1fr; gap: 6px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; align-items: flex-start; }

  /* endpoint field stacks: label/code row over the copy button */
  .endpoint { flex-wrap: wrap; }
  .endpoint .ep-label { border-right: 1px solid var(--line); }
  .endpoint code { flex: 1 1 100%; order: 3; border-top: 1px solid var(--line); }
  .endpoint .copy { margin-left: auto; }
}
