/* ADHDyap.com — The ADHD Rabbit Hole · Yap Method brand, 2026 look. Light + dark. */

:root {
  /* brand — matches the ebook (carrot / teal / gold / lilac on cream & navy) */
  --carrot: #F26B3A;
  --teal: #2A9D8F;
  --gold: #C98500;        /* text-safe gold on cream */
  --gold-bright: #F2B33D; /* decorative gold — never body text on light */
  --lilac: #6C5FB0;
  --navy: #1B2632;

  --page: #FBF6EC;
  --surface: #FFFDF7;
  --surface-2: #F4ECDC;
  --ink: #1B2632;
  --ink-2: #4A4232;
  --muted: #8B7E68;
  --grid: #E7DCC9;
  --baseline: #CDbfa6;
  --ring: rgba(27, 38, 50, 0.10);

  /* chart / mindmap categorical tokens — validated palette, do not repaint by rank */
  --c1: #2a78d6;  /* blue */
  --c2: #1baf7a;  /* aqua */
  --c3: #eda100;  /* yellow */
  --c4: #008300;  /* green */
  --c5: #4a3aa7;  /* violet */
  --c6: #e34948;  /* red */
  --c7: #e87ba4;  /* magenta */
  --c8: #eb6834;  /* orange */

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 2px 14px rgba(27, 38, 50, 0.08);
  --shadow-lift: 0 10px 30px rgba(27, 38, 50, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --carrot: #FF7E4D;
    --teal: #3DBBAC;
    --gold: #F2B33D;
    --gold-bright: #F2B33D;
    --lilac: #A79AE0;
    --navy: #1B2632;

    --page: #10161F;
    --surface: #1B2632;
    --surface-2: #24344A;
    --ink: #F4EFE4;
    --ink-2: #C6CFDA;
    --muted: #7C8DA0;
    --grid: #2A3B50;
    --baseline: #3B4E66;
    --ring: rgba(244, 239, 228, 0.12);

    --c1: #3987e5; --c2: #199e70; --c3: #c98500; --c4: #52a852;
    --c5: #9085e9; --c6: #e66767; --c7: #d55181; --c8: #d95926;

    --shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    --shadow-lift: 0 12px 34px rgba(0, 0, 0, 0.55);
  }
}

/* explicit theme override (viewer toggles) — mirrors the media-query tokens */
:root[data-theme="dark"] {
  --carrot: #FF7E4D; --teal: #3DBBAC; --gold: #F2B33D; --gold-bright: #F2B33D;
  --lilac: #A79AE0; --navy: #1B2632;
  --page: #10161F; --surface: #1B2632; --surface-2: #24344A;
  --ink: #F4EFE4; --ink-2: #C6CFDA; --muted: #7C8DA0;
  --grid: #2A3B50; --baseline: #3B4E66; --ring: rgba(244, 239, 228, 0.12);
  --c1: #3987e5; --c2: #199e70; --c3: #c98500; --c4: #52a852;
  --c5: #9085e9; --c6: #e66767; --c7: #d55181; --c8: #d95926;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 12px 34px rgba(0, 0, 0, 0.55);
}
:root[data-theme="light"] {
  --carrot: #F26B3A; --teal: #2A9D8F; --gold: #C98500; --gold-bright: #F2B33D;
  --lilac: #6C5FB0; --navy: #1B2632;
  --page: #FBF6EC; --surface: #FFFDF7; --surface-2: #F4ECDC;
  --ink: #1B2632; --ink-2: #4A4232; --muted: #8B7E68;
  --grid: #E7DCC9; --baseline: #CDBFA6; --ring: rgba(27, 38, 50, 0.10);
  --c1: #2a78d6; --c2: #1baf7a; --c3: #eda100; --c4: #008300;
  --c5: #4a3aa7; --c6: #e34948; --c7: #e87ba4; --c8: #eb6834;
  --shadow: 0 2px 14px rgba(27, 38, 50, 0.08);
  --shadow-lift: 0 10px 30px rgba(27, 38, 50, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}

/* living neuron background */
#neurons {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.site-header, main { position: relative; z-index: 1; }

a { color: var(--teal); }

::selection { background: color-mix(in srgb, var(--carrot) 30%, transparent); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 10px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  max-width: 1080px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo span { color: var(--carrot); }
.logo .logo-rabbit { width: 30px; height: 30px; flex: none; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a.active {
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ring);
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: center;
    border-radius: 24px;
    margin: 10px 12px 0;
    gap: 6px;
  }
  .site-nav { justify-content: center; }
  .site-nav a { padding: 6px 10px; font-size: 0.85rem; }
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 20px 60px;
}

/* ---------- hero / yap box ---------- */
.hero { text-align: center; padding: 30px 0 8px; }
.hero-art {
  width: min(230px, 48vw);
  height: auto;
  margin: 0 auto 14px;
  display: block;
  border-radius: 32px;
  box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--ring);
  animation: heraldbob 5s ease-in-out infinite;
}
@keyframes heraldbob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-9px) rotate(1.5deg); }
}
@media (prefers-reduced-motion: reduce) { .hero-art { animation: none; } }
.hero .kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--carrot);
  background: color-mix(in srgb, var(--carrot) 10%, transparent);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin: 0 0 10px;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.hero h1 .grad {
  background: linear-gradient(92deg, var(--carrot), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  color: var(--ink-2);
  margin: 0 auto 24px;
  max-width: 580px;
  font-size: 1.08rem;
}

.yap-box {
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
}
.yap-box textarea {
  width: 100%;
  min-height: 86px;
  border: none;
  resize: vertical;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  outline: none;
}
.yap-box textarea::placeholder { color: var(--muted); }
.yap-controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--grid);
  padding-top: 12px;
  margin-top: 4px;
}
.btn {
  font: inherit;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease;
  text-decoration: none;
  display: inline-block;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--carrot); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--carrot) 35%, transparent); }
.btn-primary:hover { box-shadow: 0 8px 22px color-mix(in srgb, var(--carrot) 45%, transparent); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--teal) 35%, transparent); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px var(--baseline);
}
.btn-mic.listening {
  background: var(--c6);
  color: #fff;
  box-shadow: none;
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
.mic-hint { color: var(--muted); font-size: 0.85rem; margin-right: auto; }

/* ---------- shared section chrome ---------- */
.section {
  margin: 54px auto 0;
  max-width: 1040px;
}
.section > .eyebrow { text-align: center; }
.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.section-sub {
  text-align: center;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 auto 26px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  margin: 0 0 4px;
}

.banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--ring);
  margin: 18px 0;
}

/* ---------- bento / cards ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.bento-card, .pain-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
  padding: 20px 22px;
  border-top: 4px solid var(--teal);
}
.bento-card h3, .pain-card h3 { margin: 4px 0 8px; font-size: 1.06rem; letter-spacing: -0.01em; }
.bento-card p, .pain-card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.bento-card .big { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.pain-card { border-top-color: var(--carrot); }
.pain-card .pain-emoji { font-size: 1.5rem; }

/* ---------- tabs (health page etc.) ---------- */
.tabs { margin-top: 22px; }
.tab-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}
.tab-btn {
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px var(--baseline);
}
.tab-btn[aria-selected="true"] {
  background: var(--navy);
  color: #FBF6EC;
  box-shadow: none;
}
:root[data-theme="dark"] .tab-btn[aria-selected="true"] { background: var(--carrot); color: #10161F; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tab-btn[aria-selected="true"] { background: var(--carrot); color: #10161F; }
}
.tab-panel[hidden] { display: none; }
.tab-panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
  padding: 26px 28px;
  animation: rise 0.3s ease;
}
.tab-panel h2 { margin: 0 0 6px; font-size: 1.3rem; letter-spacing: -0.01em; }
.tab-panel h3 { margin: 18px 0 6px; font-size: 1.02rem; }
.tab-panel p, .tab-panel li { color: var(--ink-2); }

/* ---------- signup band ---------- */
.signup-band {
  margin: 60px auto 0;
  max-width: 1040px;
  background: var(--navy);
  color: #F4EFE4;
  border-radius: 26px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
:root[data-theme="dark"] .signup-band { box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--ring); }
.signup-copy { padding: 34px 36px; }
.signup-copy .eyebrow { color: var(--gold-bright); }
.signup-copy h2 { margin: 4px 0 10px; font-size: clamp(1.3rem, 3vw, 1.8rem); letter-spacing: -0.02em; color: #fff; }
.signup-copy p { color: #C6CFDA; margin: 0 0 16px; font-size: 0.98rem; }
.signup-copy ul { color: #C6CFDA; font-size: 0.93rem; margin: 0 0 18px; padding-left: 20px; }
.signup-art {
  background: #24344A;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.signup-art img { max-width: 100%; height: auto; border-radius: 16px; }
.signup-form { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-form input[type="email"] {
  flex: 1 1 220px;
  font: inherit;
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  outline: 2px solid transparent;
  background: #10161F;
  color: #F4EFE4;
}
.signup-form input[type="email"]:focus { outline-color: var(--gold-bright); }
.signup-form input[type="email"]::placeholder { color: #7C8DA0; }
.signup-note { font-size: 0.8rem; color: #7C8DA0; margin-top: 10px; }
.signup-success { color: #F2B33D; font-weight: 700; margin-top: 12px; }
@media (max-width: 760px) {
  .signup-band { grid-template-columns: 1fr; }
  .signup-art { order: -1; }
}

/* ---------- method flow (YAP → MAP → TAP → SNAP) ---------- */
.method-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.method-step {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
  padding: 20px;
  text-align: center;
}
.method-step .step-num {
  position: absolute;
  top: 12px; left: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.method-step .step-word {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 8px 0 4px;
}
.method-step p { margin: 0; font-size: 0.9rem; color: var(--ink-2); }
.method-step svg { width: 64px; height: 64px; margin: 4px auto 0; display: block; }
.method-step.s-yap  { border-top: 4px solid var(--carrot); }
.method-step.s-map  { border-top: 4px solid var(--teal); }
.method-step.s-tap  { border-top: 4px solid var(--gold); }
.method-step.s-snap { border-top: 4px solid var(--lilac); }
.method-step.s-yap  .step-word { color: var(--carrot); }
.method-step.s-map  .step-word { color: var(--teal); }
.method-step.s-tap  .step-word { color: var(--gold); }
.method-step.s-snap .step-word { color: var(--lilac); }

/* ---------- figure / infographic frame ---------- */
.figure {
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 24px 0;
  overflow-x: auto;
}
.figure figcaption { color: var(--muted); font-size: 0.84rem; margin-top: 10px; }
.figure .fig-title { font-weight: 700; color: var(--ink); font-size: 0.95rem; margin: 0 0 2px; }
.figure .fig-sub { color: var(--muted); font-size: 0.84rem; margin: 0 0 12px; }

/* ---------- comparison table (tools page) ---------- */
.table-wrap { overflow-x: auto; margin: 20px 0; border-radius: var(--radius); box-shadow: var(--shadow), inset 0 0 0 1px var(--ring); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.93rem;
  min-width: 640px;
}
table.compare th, table.compare td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--grid);
  color: var(--ink-2);
  vertical-align: top;
}
table.compare th { color: var(--ink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--surface-2); }
table.compare td strong { color: var(--ink); }
table.compare tr:last-child td { border-bottom: none; }
.price-tag { font-weight: 800; color: var(--ink); white-space: nowrap; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tag-teal { background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); }
.tag-carrot { background: color-mix(in srgb, var(--carrot) 14%, transparent); color: var(--carrot); }
.tag-gold { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.tag-lilac { background: color-mix(in srgb, var(--lilac) 14%, transparent); color: var(--lilac); }
.tag-muted { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }

/* ---------- callouts ---------- */
.caution {
  border-left: 3px solid var(--c6);
  padding: 8px 12px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--c6) 7%, var(--surface));
  color: var(--ink-2);
  font-size: 0.92rem;
}
.callout {
  border-left: 5px solid var(--carrot);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow);
  padding: 14px 18px;
  margin: 16px 0;
  color: var(--ink-2);
}
.callout.teal { border-color: var(--teal); }
.callout.gold { border-color: var(--gold); }
.callout.lilac { border-color: var(--lilac); }
.callout strong { color: var(--ink); }

.prompt-box {
  background: var(--page);
  border: 1px dashed var(--baseline);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.98rem;
  color: var(--ink);
  margin: 12px 0;
}
.copy-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copied-msg { color: var(--c4); font-weight: 700; font-size: 0.9rem; }

.magic-words {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 26px auto 0;
  max-width: 640px;
}
.magic-chip {
  background: var(--surface);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--lilac);
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.magic-chip b { color: var(--ink); }

/* ---------- mindmap ---------- */
#map-section { margin-top: 34px; }
.map-title { text-align: center; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }

.mindmap {
  position: relative;
  width: 100%;
  height: 560px;
  transition: transform 0.24s ease, opacity 0.24s ease, filter 0.24s ease;
}
.mindmap.warp-out { transform: scale(1.45); opacity: 0; filter: blur(5px); }
.mindmap.warp-in-start { transform: scale(0.72); opacity: 0; }
.mindmap svg.wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.wires path { fill: none; stroke-width: 2.5; opacity: 0.55; }

.node {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--surface);
  color: var(--ink);
  border: none;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  animation: pop 0.35s ease backwards;
  transition: transform 0.12s ease;
}
.node:hover { transform: translate(-50%, -50%) scale(1.06); }
.node .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: baseline;
}
.node.center {
  font-size: 1.05rem;
  padding: 16px 24px;
  border-radius: 22px;
  white-space: normal;
  text-align: center;
  max-width: 240px;
  cursor: default;
  font-weight: 800;
}
.node.center:hover { transform: translate(-50%, -50%); }
.node.branch { border-bottom: 3px solid; }
@keyframes pop {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* narrow screens: mindmap becomes a tidy tree list */
@media (max-width: 640px) {
  .mindmap { height: auto; display: flex; flex-direction: column; gap: 10px; padding-left: 14px; }
  .mindmap svg.wires { display: none; }
  .node, .node.center {
    position: static;
    transform: none;
    white-space: normal;
    text-align: left;
    max-width: none;
    animation: none;
  }
  .node:hover, .node.center:hover { transform: none; }
  .node.center { text-align: center; }
  .node.branch { margin-left: 18px; }
}

/* ---------- why card + strategy detail ---------- */
.why-card, .detail-card {
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 22px auto 0;
  padding: 20px 24px;
  animation: rise 0.3s ease;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.why-card h2, .detail-card h2 { margin: 0 0 8px; font-size: 1.15rem; }
.why-card p, .detail-card p { margin: 0 0 10px; color: var(--ink-2); }

/* ---------- guardrails footer ---------- */
.guardrails {
  max-width: 720px;
  margin: 48px auto 0;
  border-top: 1px solid var(--grid);
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}
.guardrails ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
}

/* ---------- blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.blog-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border-radius: var(--radius);
  border-top: 4px solid;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
  padding: 20px 22px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--ring); }
.blog-card h3 { margin: 6px 0 8px; font-size: 1.08rem; letter-spacing: -0.01em; }
.blog-card p { margin: 0; color: var(--ink-2); font-size: 0.93rem; }
.blog-card .meta { color: var(--muted); font-size: 0.8rem; font-weight: 700; }

/* blog post pages */
.post { max-width: 680px; margin: 0 auto; }
.post h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -0.02em; margin-bottom: 6px; }
.post .post-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 26px; }
.post h2 { font-size: 1.25rem; margin-top: 34px; letter-spacing: -0.01em; }
.post p, .post li { color: var(--ink-2); font-size: 1.02rem; }
.post strong { color: var(--ink); }
.post .pull {
  border-left: 3px solid var(--carrot);
  padding: 6px 16px;
  margin: 20px 0;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- course page (hyperfocus) ---------- */
.curriculum { counter-reset: lesson; display: grid; gap: 12px; margin-top: 8px; }
.lesson-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
  padding: 18px 20px;
  align-items: start;
}
.lesson-row .lesson-num {
  counter-increment: lesson;
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: var(--teal);
}
.lesson-row:nth-child(4n+1) .lesson-num { background: var(--carrot); }
.lesson-row:nth-child(4n+2) .lesson-num { background: var(--teal); }
.lesson-row:nth-child(4n+3) .lesson-num { background: var(--gold); }
.lesson-row:nth-child(4n+4) .lesson-num { background: var(--lilac); }
.lesson-row h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.lesson-row p { margin: 0; color: var(--ink-2); font-size: 0.93rem; }
.lesson-row .lesson-time { color: var(--muted); font-size: 0.8rem; font-weight: 700; }

/* ---------- stat tiles ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 20px 0; }
.stat-tile {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
  padding: 18px 20px;
}
.stat-tile .stat-num { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.stat-tile .stat-label { font-size: 0.85rem; color: var(--ink-2); margin-top: 4px; }
.stat-tile .stat-src { font-size: 0.72rem; color: var(--muted); margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 54px auto 0;
  max-width: 1040px;
  text-align: center;
  background: linear-gradient(120deg, color-mix(in srgb, var(--carrot) 12%, var(--surface)), color-mix(in srgb, var(--gold-bright) 14%, var(--surface)));
  border-radius: 26px;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
  padding: 38px 28px;
}
.cta-band h2 { margin: 0 0 8px; font-size: clamp(1.3rem, 3vw, 1.8rem); letter-spacing: -0.02em; }
.cta-band p { color: var(--ink-2); max-width: 560px; margin: 0 auto 18px; }

/* ---------- theme toggle ---------- */
.theme-toggle {
  font: inherit;
  border: none;
  cursor: pointer;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--ring);
  font-size: 1.05rem;
  line-height: 1;
  flex: none;
  transition: transform 0.25s ease;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.08); }

/* ---------- The Warren (interactive cross-section) ---------- */
.warren-wrap {
  margin: 54px auto 0;
  max-width: 1040px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--ring);
  background: #5C4633;
}
.warren-sky {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  background: url("assets/warren-sky-day.webp") center / cover no-repeat;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .warren-sky { background-image: url("assets/warren-sky-night.webp"); }
}
:root[data-theme="dark"] .warren-sky { background-image: url("assets/warren-sky-night.webp") !important; }
:root[data-theme="light"] .warren-sky { background-image: url("assets/warren-sky-day.webp") !important; }

.warren-svg { display: block; width: 100%; height: auto; }
.warren-svg text { font-family: "Avenir Next", system-ui, sans-serif; pointer-events: none; }
.wroom { cursor: pointer; }
.wroom .room-bg { transition: filter 0.25s ease; }
.wroom .room-glow { opacity: 0; transition: opacity 0.3s ease; }
.wroom .lamp-on { opacity: 0.25; transition: opacity 0.3s ease; }
.wroom:hover .room-glow, .wroom:focus .room-glow { opacity: 1; }
.wroom:hover .lamp-on, .wroom:focus .lamp-on { opacity: 1; }
.wroom:hover .room-bg, .wroom:focus .room-bg { filter: brightness(1.18); }
.wroom:focus { outline: none; }
.wroom:focus .room-bg { stroke: var(--gold-bright); stroke-width: 3; }
@keyframes lampflicker { 0%,100% { opacity: 1; } 92% { opacity: 1; } 95% { opacity: 0.55; } 97% { opacity: 1; } }
.warren-svg .lamp-flame { animation: lampflicker 4.5s infinite; }
@keyframes earwiggle { 0%,90%,100% { transform: rotate(0); } 93% { transform: rotate(-7deg); } 96% { transform: rotate(5deg); } }
.warren-svg .wiggle-ear { transform-origin: bottom center; animation: earwiggle 6s infinite; }
@keyframes wormpeek { 0%,80%,100% { transform: translateY(0); } 87% { transform: translateY(-7px); } }
.warren-svg .worm { animation: wormpeek 7s infinite; }

/* mobile: warren becomes a doors grid */
.warren-doors { display: none; }
@media (max-width: 700px) {
  .warren-wrap .warren-svg { display: none; }
  .warren-doors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
    background: #5C4633;
  }
  :root[data-theme="dark"] .warren-doors { background: #2A2019; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .warren-doors { background: #2A2019; } }
  .warren-doors a {
    display: block;
    background: #4A3729;
    color: #F6EFE2;
    text-decoration: none;
    border-radius: 14px;
    padding: 14px 12px;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: inset 0 0 0 1px rgba(246, 239, 226, 0.15);
  }
  .warren-doors a small { display: block; font-weight: 500; color: #C9BBA4; font-size: 0.78rem; margin-top: 2px; }
}

/* confetti particles (prompts copy) */
.confetti-bit {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  font-size: 14px;
  will-change: transform, opacity;
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.on { opacity: 1; transform: none; }

/* calm mode: honor reduced-motion everywhere */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .warren-svg .lamp-flame, .warren-svg .wiggle-ear, .warren-svg .worm { animation: none; }
  .theme-toggle, .theme-toggle:hover { transition: none; transform: none; }
  .node { animation: none; }
  .mindmap, .node, .blog-card, .btn { transition: none; }
  .btn-mic.listening { animation: none; }
  .why-card, .detail-card, .tab-panel { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #neurons { display: none; }
}

/* ---------- blog card featured art (2026-07-18) ---------- */
.blog-card .card-art {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 12px;
  box-shadow: inset 0 0 0 1px var(--ring);
}
.post > .banner { margin: 0 0 26px; }

/* ---------- the warren: interactive burrow map (2026-07-18) ---------- */
.warren-section { text-align: center; }
.warren {
  position: relative;
  max-width: 980px;
  margin: 26px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--ring);
}
.warren > img { display: block; width: 100%; height: auto; transition: transform 0.35s ease; }
.warren-spot { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 2; }
.warren-spot .dot {
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--carrot);
  box-shadow: 0 0 0 3px rgba(246, 239, 226, 0.85);
  animation: warren-pulse 2.2s infinite;
}
.warren-spot:nth-child(3n) .dot { background: #2A9D8F; }
.warren-spot:nth-child(3n+1) .dot { background: #F2B33D; }
.warren-spot .tip {
  position: absolute;
  bottom: 135%; left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--ring);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.82rem; font-weight: 700; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: var(--shadow);
}
.warren-spot:hover .tip, .warren-spot:focus-visible .tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.warren-spot:hover .dot { animation-duration: 0.9s; }
@keyframes warren-pulse {
  0% { box-shadow: 0 0 0 3px rgba(246,239,226,.85), 0 0 0 4px rgba(242,107,58,.45); }
  70% { box-shadow: 0 0 0 3px rgba(246,239,226,.85), 0 0 0 16px rgba(242,107,58,0); }
  100% { box-shadow: 0 0 0 3px rgba(246,239,226,.85), 0 0 0 4px rgba(242,107,58,0); }
}
.warren-rooms { display: none; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.warren-rooms a {
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem; font-weight: 700;
  box-shadow: var(--shadow);
}
@media (max-width: 720px) {
  .warren-spot { display: none; }
  .warren-rooms { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .warren-spot .dot { animation: none; }
  .warren > img { transition: none; }
}

/* ---------- floating ebook pill ---------- */
.float-cta {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center;
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: 999px;
  box-shadow: var(--shadow-lift);
  padding: 3px 4px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.float-cta.hushed { opacity: 0; pointer-events: none; transform: translateY(10px); }
.float-cta a { text-decoration: none; color: var(--ink); font-weight: 800; font-size: 0.9rem; padding: 9px 6px 9px 12px; border-radius: 999px; }
.float-cta a:hover { color: var(--carrot); }
.float-cta button { border: 0; background: none; color: var(--muted); font-size: 1.05rem; cursor: pointer; padding: 6px 10px; line-height: 1; }
@media (max-width: 640px) { .float-cta a span { display: none; } .float-cta a { padding: 9px 4px 9px 12px; } }

/* ---------- peek-a-boo mascot ---------- */
.peek-rabbit {
  position: fixed; left: 18px; bottom: -110px; z-index: 59;
  display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 10px;
  transition: bottom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.peek-rabbit.up { bottom: -8px; }
.peek-rabbit img { transform: rotate(-6deg); }
.peek-bubble {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: 14px 14px 14px 4px;
  box-shadow: var(--shadow-lift);
  padding: 10px 14px;
  font-size: 0.88rem;
  max-width: 240px;
  margin-bottom: 30px;
}
.peek-bubble a { color: var(--carrot); font-weight: 700; }

/* ---------- post conversion footer ---------- */
.post-funnel { max-width: 680px; margin: 44px auto 0; }
.pf-card {
  display: flex; gap: 18px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.pf-card img { width: 128px; height: 128px; border-radius: 16px; flex: none; }
.pf-card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.pf-card p { margin: 0 0 12px; color: var(--ink-2); font-size: 0.94rem; }
.pf-class { text-align: center; margin-top: 14px; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 640px) { .pf-card { flex-direction: column; text-align: center; } }

/* ---------- booking form ---------- */
.booking-form { max-width: 640px; margin: 24px auto 0; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.bf-row { display: flex; gap: 12px; }
.bf-row > * { flex: 1; min-width: 0; }
.booking-form input, .booking-form select, .booking-form textarea {
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  width: 100%;
}
.booking-form textarea { resize: vertical; }
.bf-note { color: var(--muted); font-size: 0.82rem; margin: 0; text-align: center; }
@media (max-width: 640px) { .bf-row { flex-direction: column; } }

/* ===== Teacher's Workbooks (2026-07-18) ===== */
.workbook { max-width: 780px; margin: 0 auto; }
.workbook h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: 4px; }
.workbook > p, .workbook li { color: var(--ink-2); }
.wb-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.wb-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 28px; }
.workbook h2 { font-size: 1.35rem; margin-top: 42px; letter-spacing: -0.01em; }
.workbook h2 .eyebrow { display: block; margin-bottom: 2px; }

.runsheet { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.runsheet th, .runsheet td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--grid); vertical-align: top; }
.runsheet th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.runsheet td:first-child { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }

.wb-seg { background: var(--surface); border: 1px solid var(--grid); border-left: 4px solid var(--teal); border-radius: var(--radius-sm); padding: 18px 22px 20px; margin: 16px 0; box-shadow: var(--shadow); }
.wb-seg h3 { display: flex; align-items: baseline; gap: 10px; font-size: 1.08rem; margin-bottom: 2px; }
.wb-time { font-variant-numeric: tabular-nums; font-size: 0.78rem; font-weight: 800; color: var(--teal); background: var(--surface-2); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.wb-goal { font-size: 0.92rem; color: var(--muted); margin: 0 0 6px; }
.wb-goal b { color: var(--ink-2); }
.wb-label { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; border-radius: 6px; padding: 2px 8px; margin: 12px 0 4px; }
.wb-label.say { background: rgba(42, 157, 143, 0.14); color: var(--teal); }
.wb-label.do { background: rgba(242, 107, 58, 0.14); color: var(--carrot); }
.wb-label.watch { background: rgba(227, 73, 72, 0.12); color: var(--c6); }
.wb-label.ask { background: rgba(108, 95, 176, 0.14); color: var(--lilac); }
.wb-seg p { font-size: 0.98rem; color: var(--ink-2); margin: 4px 0 0; }
.wb-seg ul { margin: 4px 0 0 18px; }
.wb-seg li { font-size: 0.96rem; color: var(--ink-2); margin: 3px 0; }

.wb-qa { background: var(--surface); border: 1px solid var(--grid); border-radius: var(--radius-sm); padding: 14px 18px; margin: 10px 0; }
.wb-qa summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.wb-qa p { margin: 8px 0 0; font-size: 0.96rem; color: var(--ink-2); }

.worksheet { background: var(--surface); border: 2px dashed var(--baseline); border-radius: var(--radius); padding: 26px 28px; margin-top: 18px; }
.worksheet h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.worksheet h3:first-child { margin-top: 0; }
.worksheet p { font-size: 0.95rem; color: var(--ink-2); margin: 2px 0 6px; }
.wb-fill { border-bottom: 1.5px dashed var(--baseline); min-height: 30px; margin: 10px 0; }
.wb-check { list-style: none; margin: 6px 0 0; padding: 0; }
.wb-check li { margin: 6px 0; font-size: 0.96rem; color: var(--ink-2); }
.wb-check li::before { content: "☐  "; color: var(--muted); }

@media print {
  html { background: #fff; }
  body { background: #fff; color: #000; }
  #neurons, .site-header, .theme-toggle, .wb-actions, .float-cta, .peek-rabbit, .btn { display: none !important; }
  .wb-seg, .wb-qa, .worksheet { box-shadow: none; break-inside: avoid; background: #fff; }
  .workbook { max-width: 100%; }
  .wb-page-break { break-before: page; }
}

/* ============ BUSINESS / AI AUDIT PAGE (2026-07-18) ============ */
.biz-picker { max-width: 720px; margin: 0 auto 6px; text-align: center; }
.biz-picker label { display: block; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.biz-picker select {
  width: 100%; max-width: 480px; padding: 13px 16px; border-radius: 14px;
  border: 1px solid var(--ring); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow);
}
.biz-picker select:focus { outline: 2px solid var(--carrot); outline-offset: 2px; }
.biz-note { text-align: center; font-size: 0.85rem; color: var(--muted); max-width: 640px; margin: 10px auto 0; }
.biz-panel { max-width: 1040px; margin: 20px auto 0; }
.biz-panel h4 { text-align: center; margin: 26px 0 12px; font-size: 1.05rem; }
.biz-panel .bento-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 0.95rem; }
.biz-panel .bento-card li { margin: 6px 0; }
.calc {
  max-width: 720px; margin: 0 auto; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
  padding: 24px;
}
.calc-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.calc-row label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); text-align: left; }
.calc-row input {
  width: 150px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ring);
  background: var(--bg, transparent); color: var(--ink); font: inherit; font-weight: 700; font-size: 1.05rem;
}
.calc-row input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.calc-out { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; text-align: center; }
.calc-out .stat-tile { min-width: 190px; flex: 1; }
.video-banner { display: block; width: min(1040px, calc(100% - 32px)); margin: 26px auto; border-radius: var(--radius); box-shadow: var(--shadow-lift); }

/* ============ Ask the Library (ask.js) ============ */
.lib-hero-hint { margin-top: 16px; font-size: 0.95rem; color: var(--muted); }
.lib-hero-hint a { color: var(--teal); font-weight: 700; }
.lib-panel {
  max-width: 720px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--ring);
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.lib-messages {
  max-height: 460px; min-height: 220px; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 16px 10px; display: flex; flex-direction: column; gap: 12px;
}
.lib-row { display: flex; }
.lib-row.lib-user { justify-content: flex-end; }
.lib-row.lib-bot { justify-content: flex-start; }
.lib-bubble {
  max-width: 84%; padding: 11px 15px; border-radius: 16px;
  font-size: 0.96rem; line-height: 1.6;
  white-space: pre-wrap; word-wrap: break-word;
}
.lib-user .lib-bubble { background: var(--teal); color: #fff; border-bottom-right-radius: 6px; }
.lib-bot .lib-bubble {
  background: var(--surface-2); border: 1px solid var(--ring);
  color: var(--ink); border-bottom-left-radius: 6px;
}
.lib-typing span {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--carrot); opacity: 0.5; margin-right: 4px;
  animation: lib-pulse 1.2s ease-in-out infinite;
}
.lib-typing span:nth-child(2) { animation-delay: 0.2s; }
.lib-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes lib-pulse {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.lib-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-chip {
  background: transparent; color: var(--teal);
  border: 1px solid var(--teal); border-radius: 999px;
  padding: 8px 14px; font: inherit; font-size: 0.87rem; font-weight: 600;
  cursor: pointer; transition: background 0.12s ease, color 0.12s ease;
}
.lib-chip:hover { background: var(--teal); color: #fff; }
.lib-offline {
  border: 1px dashed var(--ring); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 0.93rem; color: var(--muted);
}
.lib-offline a { color: var(--teal); font-weight: 600; }
.lib-inputbar {
  display: flex; gap: 10px; align-items: flex-end;
  padding: 12px 14px; border-top: 1px solid var(--ring);
}
.lib-input {
  flex: 1; min-height: 46px; max-height: 130px; resize: vertical;
  border: 1px solid var(--ring); border-radius: var(--radius-sm);
  padding: 11px 14px; font: inherit; font-size: 0.95rem;
  background: var(--page); color: var(--ink);
}
.lib-input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.lib-input:disabled, .lib-send:disabled { opacity: 0.55; }
.lib-honest {
  margin: 0; padding: 10px 16px 14px;
  font-size: 0.82rem; line-height: 1.5; color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .lib-typing span { animation: none; opacity: 0.6; }
}
