/* ============================================================
   Break Through · Breakthrough Social Enterprise
   Brand: Yellow #FFD000 · Work Sans · warm, grounded, resolute
   ============================================================ */

:root {
  /* ---- DARK is the default (this audience lives in dark UIs) ---- */
  --yellow: #FFD21F;
  --yellow-soft: #4E4318;
  --yellow-tint: #2B2515;
  --ink: #F4F1E7;
  --ink-2: #BEB9AB;
  --ink-3: #8B8676;
  --line: #322D23;
  --paper: #1B1914;
  --paper-2: #100F0B;
  --paper-3: #26221A;
  --good: #40CD95;
  --good-soft: #16271E;
  --accent: #F4F1E7;
  --panel: #241F17;          /* dark accent cards (belief, meter, etc.) */
  --on-accent: #16150F;      /* text on yellow */
  --bar-bg: rgba(16,15,11,.82);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.34);
  --shadow-md: 0 2px 8px rgba(0,0,0,.34), 0 16px 42px rgba(0,0,0,.46);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.55);
  --radius: 18px;
  --radius-sm: 11px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --maxw: 1120px;
  --font: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
:root[data-theme="light"] {
  --yellow: #FFD000;
  --yellow-soft: #FFE87A;
  --yellow-tint: #FFF7D6;
  --ink: #16150F;
  --ink-2: #423F37;
  --ink-3: #736F63;
  --line: #ECE9DF;
  --paper: #FFFFFF;
  --paper-2: #FAF8F2;
  --paper-3: #F1EFE6;
  --good: #1F8A5B;
  --good-soft: #E4F4EC;
  --accent: #2B2A26;
  --panel: #16150F;
  --on-accent: #16150F;
  --bar-bg: rgba(250,248,242,.86);
  --shadow: 0 1px 2px rgba(22,21,15,.04), 0 4px 14px rgba(22,21,15,.05);
  --shadow-md: 0 2px 6px rgba(22,21,15,.05), 0 12px 34px rgba(22,21,15,.08);
  --shadow-lg: 0 24px 70px rgba(22,21,15,.16);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper-2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .4em; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; color: var(--ink-2); }
html { scroll-behavior: smooth; }
a { color: var(--ink); text-decoration: none; }
.muted { color: var(--ink-3); font-size: .92rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--ink-3); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem clamp(1rem, 4vw, 2rem);
  background: var(--bar-bg);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--yellow); color: var(--on-accent);
  display: grid; place-items: center; font-weight: 800; font-size: 1.3rem;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.08);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.05rem; }
.brand-sub { font-size: .72rem; color: var(--ink-3); font-weight: 500; }
.topnav { display: flex; align-items: center; gap: .3rem; }
.topnav a {
  padding: .45rem .7rem; border-radius: 9px; font-weight: 600; font-size: .92rem;
  color: var(--ink-2);
}
.topnav a:hover { background: var(--paper-3); color: var(--ink); }
.topnav a.active { background: var(--yellow); color: var(--on-accent); }
.icon-btn {
  border: 1px solid var(--line); background: var(--paper); cursor: pointer;
  width: 38px; height: 38px; border-radius: 10px; font-size: 1.05rem; color: var(--ink-2);
}
.icon-btn:hover { border-color: var(--ink-3); }
@media (max-width: 720px) {
  .brand-sub { display: none; }
  .topnav { gap: .1rem; }
  .topnav a { padding: .4rem .5rem; font-size: .84rem; }
}
@media (max-width: 480px) {
  .topnav a { font-size: .78rem; padding: .35rem .4rem; }
  .brand-name { font-size: .95rem; }
}

/* ---------- Layout ---------- */
#app { flex: 1; width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: clamp(1.4rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem); }
.grid { display: grid; gap: 1.4rem; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-family: var(--font); font-weight: 700; font-size: .98rem; letter-spacing: -0.01em;
  padding: .82rem 1.5rem; border-radius: 13px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--yellow); color: var(--on-accent); box-shadow: 0 4px 16px rgba(255,208,0,.28); }
.btn-primary:hover { background: #FFDC3D; box-shadow: 0 8px 24px rgba(255,208,0,.36); }
.btn-dark { background: var(--panel); color: #F4F1E7; border-color: var(--line); box-shadow: var(--shadow); }
.btn-dark:hover { background: var(--panel); border-color: var(--ink-3); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.06rem; border-radius: 15px; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card.pad-lg { padding: 2.1rem; }
.card-flat { background: var(--paper-3); border: none; box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 480px at 88% -12%, rgba(255,210,31,.16) 0%, transparent 56%),
    radial-gradient(800px 380px at -8% 8%, rgba(255,210,31,.07) 0%, transparent 52%),
    var(--paper-2);
  border-bottom: 1px solid var(--line);
}
:root[data-theme="light"] .hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--yellow-soft) 0%, transparent 55%),
    radial-gradient(900px 400px at -10% 10%, var(--yellow-tint) 0%, transparent 50%),
    var(--paper-2);
}
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { margin-top: .3rem; }
.hero .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 40ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.pill {
  display: inline-flex; align-items: center; gap: .45rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem;
  font-size: .8rem; font-weight: 600; color: var(--ink-2);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }

/* Belief strip */
.belief, .meter-card, .challenge-band { border: 1px solid rgba(255,255,255,.07); }
.belief {
  background: var(--panel); color: #fff; border-radius: var(--radius); padding: 1.6rem 1.8rem;
}
.belief strong { color: var(--yellow); }
.belief .big { font-size: 1.35rem; font-weight: 700; line-height: 1.3; margin: 0; color: #fff; }

/* Pillars */
.pillar { position: relative; }
.pillar .num {
  width: 34px; height: 34px; border-radius: 9px; background: var(--yellow-tint);
  color: var(--ink); font-weight: 800; display: grid; place-items: center; margin-bottom: .7rem;
  border: 1px solid var(--yellow-soft);
}
.pillar h3 { margin-bottom: .25rem; }

/* Section heading */
.section-head { max-width: 60ch; margin-bottom: 1.6rem; }

/* ---------- Journey shell ---------- */
.journey { display: grid; gap: 1.4rem; }
.journey > *, .nav-grid > *, .chat, .chat-log { min-width: 0; }  /* stop grid min-content overflow */
@media (min-width: 920px) { .journey { grid-template-columns: 280px 1fr; align-items: start; } }
.rail { position: sticky; top: 78px; }
@media (max-width: 920px) {
  /* Mobile: the step content comes first; progress & companion follow */
  .rail { position: static; top: auto; order: 2; margin-top: 1.4rem; }
  .journey .panel { order: 1; }
}
.stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.stepper li {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: 10px;
  color: var(--ink-3); font-weight: 600; font-size: .92rem;
}
.stepper li .tick {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line);
  display: grid; place-items: center; font-size: .75rem; flex: none; background: var(--paper);
}
.stepper li.done { color: var(--ink); }
.stepper li.done .tick { background: var(--good); border-color: var(--good); color: #fff; }
.stepper li.current { color: var(--ink); background: var(--yellow-tint); }
.stepper li.current .tick { border-color: var(--ink); }

/* Agency meter */
.meter-card { background: var(--panel); color: #fff; border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.meter-card h4 { margin: 0 0 .1rem; color: #fff; font-size: .95rem; }
.meter-card .muted { color: rgba(255,255,255,.6); }
.meter-track { height: 12px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; margin: .7rem 0 .4rem; }
.meter-fill { height: 100%; width: 0%; background: var(--yellow); border-radius: 999px; transition: width .6s cubic-bezier(.22,1,.36,1); }
.meter-val { font-size: 1.5rem; font-weight: 800; color: var(--yellow); }

/* Panel (step content) */
.panel { min-height: 60vh; }
.panel .step-eyebrow { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }

/* Likert */
.likert-item { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.likert-item:last-child { border-bottom: none; }
.likert-item p { font-weight: 600; color: var(--ink); margin: 0 0 .6rem; }
.likert-scale { display: flex; gap: .4rem; flex-wrap: wrap; }
.likert-scale label {
  flex: 1 1 auto; min-width: 56px; text-align: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; padding: .5rem .3rem; font-size: .8rem;
  font-weight: 600; color: var(--ink-3); background: var(--paper); transition: all .1s;
}
.likert-scale input { position: absolute; opacity: 0; pointer-events: none; }
.likert-scale label:hover { border-color: var(--ink-3); }
.likert-scale label.sel { background: var(--yellow); color: var(--on-accent); border-color: var(--yellow); font-weight: 700; }

/* Milestones */
.milestones { display: grid; gap: .6rem; margin: 1rem 0; }
.ms {
  display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); transition: all .2s;
}
.ms.done { background: var(--good-soft); border-color: #BEE6D2; }
.ms .box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; color: #fff; font-size: .75rem; }
.ms.done .box { background: var(--good); border-color: var(--good); }
.ms .lbl { font-weight: 600; font-size: .95rem; }

/* Chat */
.chat { display: flex; flex-direction: column; height: min(56vh, 560px); }
.chat-log { flex: 1; overflow-y: auto; padding: .3rem .1rem; display: flex; flex-direction: column; gap: .8rem; }
.msg { max-width: 82%; padding: .75rem 1rem; border-radius: 14px; font-size: .97rem; white-space: pre-wrap; }
.msg.ai { background: var(--paper-3); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--yellow); color: var(--on-accent); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.ai.tool { background: var(--yellow-tint); border: 1px solid var(--yellow-soft); }
.msg .who { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .55; margin-bottom: .2rem; display: block; }
.typing { display: inline-flex; gap: 4px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .25; } 30% { opacity: 1; } }
.composer { display: flex; gap: .6rem; margin-top: .8rem; }
.composer textarea {
  flex: 1; min-width: 0; resize: none; font-family: var(--font); font-size: 1rem; padding: .8rem 1rem;
  border: 1px solid var(--line); border-radius: 12px; min-height: 52px; max-height: 140px;
  color: var(--ink); background: var(--paper);
}
.composer textarea::placeholder, .text-input::placeholder { color: var(--ink-3); }
.composer textarea:focus { outline: 2px solid var(--yellow); border-color: transparent; }

/* Inputs */
.field-label { display: block; font-weight: 600; font-size: .9rem; margin: 1rem 0 .35rem; }
.text-input, textarea.text-input {
  width: 100%; font-family: var(--font); font-size: 1rem; padding: .8rem 1rem;
  border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper);
}
.text-input:focus { outline: 2px solid var(--yellow); border-color: transparent; }

/* Distance travelled */
.dt-row { display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; align-items: center; margin: .5rem 0; }
.dt-bars { display: flex; flex-direction: column; gap: .3rem; }
.dt-bar { height: 10px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.dt-bar > span { display: block; height: 100%; border-radius: 999px; transition: width .8s cubic-bezier(.22,1,.36,1); }
.dt-bar.before > span { background: var(--ink-3); }
.dt-bar.after > span { background: var(--yellow); }
.delta-chip { font-weight: 800; color: var(--good); font-size: .95rem; }

/* Stat tiles */
.stat { text-align: left; }
.stat .n { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.stat .n.hl { color: var(--ink); }
.stat .k { font-size: .82rem; color: var(--ink-3); font-weight: 600; margin-top: .3rem; }
.bignum { color: var(--ink); }

/* Passport */
.passport {
  background:
    radial-gradient(600px 300px at 100% 0%, var(--yellow-tint) 0%, transparent 60%),
    var(--paper);
  border: 2px solid var(--ink); border-radius: 20px; padding: 1.8rem; box-shadow: var(--shadow-lg);
}
.passport .stamp {
  float: right; border: 2px dashed var(--good); color: var(--good); font-weight: 800;
  border-radius: 12px; padding: .3rem .7rem; transform: rotate(4deg); font-size: .8rem;
}
.tag { display: inline-block; background: var(--paper-3); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; font-size: .8rem; font-weight: 600; margin: .2rem .3rem .2rem 0; }

/* Match cards */
.match { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.match .logo { width: 40px; height: 40px; border-radius: 9px; background: var(--yellow-tint); display: grid; place-items: center; font-weight: 800; flex: none; }
.match .fit { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--good); }

/* Notice */
.notice { background: var(--yellow-tint); border: 1px solid var(--yellow-soft); border-radius: 12px; padding: .8rem 1rem; font-size: .9rem; color: var(--ink-2); }
.notice.warn { background: rgba(255,140,70,.12); border-color: rgba(255,140,70,.35); color: var(--ink-2); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 100; padding: 1rem; }
.modal-backdrop[hidden] { display: none; }
.modal { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; width: min(460px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); position: relative; }
.modal-close { position: absolute; top: .8rem; right: 1rem; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink-3); line-height: 1; }
.modal-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; gap: .8rem; flex-wrap: wrap; }
.modal-actions > div { display: flex; gap: .5rem; flex-wrap: wrap; }
.link-quiet { color: var(--ink-3); font-weight: 600; font-size: .9rem; text-decoration: underline; }
.status-line { min-height: 1.2em; font-size: .88rem; font-weight: 600; margin: .8rem 0 0; }
.status-line.ok { color: var(--good); }
.status-line.err { color: #C0392B; }

/* Mobile bottom nav (app-like) */
.bottomnav { display: none; }
@media (max-width: 720px) {
  .topnav a[data-nav] { display: none; }        /* page links move to bottom bar */
  .bottomnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--bar-bg); backdrop-filter: saturate(150%) blur(12px);
    border-top: 1px solid var(--line); padding: .35rem .2rem calc(.35rem + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
  }
  .bottomnav a {
    display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1;
    font-size: .66rem; font-weight: 700; color: var(--ink-3); padding: .35rem .1rem; border-radius: 10px;
  }
  .bottomnav a .bn-ico { font-size: 1.25rem; line-height: 1; filter: grayscale(.4) opacity(.8); }
  .bottomnav a.active { color: var(--ink); }
  .bottomnav a.active .bn-ico { filter: none; }
  body { padding-bottom: 66px; }
  .sitefooter { margin-bottom: 66px; }
}

/* Footer */
.sitefooter {
  border-top: 1px solid var(--line); padding: 1.2rem clamp(1rem,4vw,2rem);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .82rem; color: var(--ink-3);
}

/* Challenge band (dark) */
.challenge-band {
  background: var(--panel); color: #fff; border-radius: var(--radius); padding: 2rem;
  display: grid; gap: 1.6rem; align-items: center;
}
@media (min-width: 820px) { .challenge-band { grid-template-columns: 1.1fr .9fr; } }

/* Check / bullet marker */
.check {
  flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--yellow-tint);
  border: 1px solid var(--yellow-soft); color: var(--ink); font-weight: 800; font-size: .8rem;
  display: grid; place-items: center; margin-top: 1px;
}

.privacy-line { font-size: .85rem; color: var(--ink-3); background: var(--paper-3); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .8rem; display: inline-block; }

/* ===== Career Navigator ===== */
.nav-grid { display: grid; gap: 1.2rem; margin-top: 1.2rem; }
@media (min-width: 860px) { .nav-grid { grid-template-columns: 1.4fr .9fr; align-items: start; } }
.chipset { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.bigchip {
  font-family: var(--font); font-weight: 600; font-size: .98rem; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px;
  padding: .8rem 1.1rem; color: var(--ink); transition: all .12s var(--ease);
}
.bigchip:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.bigchip.sel { background: var(--yellow); border-color: var(--yellow); color: var(--on-accent); }
.chip2 {
  font-family: var(--font); font-weight: 600; font-size: .88rem; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem .9rem; color: var(--ink-2); transition: all .12s;
}
.chip2:hover { border-color: var(--ink-3); }
.chip2.sel { background: var(--paper-3); border-color: var(--ink); color: var(--ink); }
.context-card { position: sticky; top: 78px; }
@media (max-width: 860px) { .context-card { position: static; } }
.ctx-live { font-size: .72rem; font-weight: 700; color: var(--good); }
.ctx-row { display: grid; grid-template-columns: 92px 1fr; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.ctx-k { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding-top: .2rem; }
.ctx-v { display: flex; flex-wrap: wrap; gap: .3rem; }
.route-card { display: flex; flex-direction: column; }
.route-top { display: flex; align-items: center; gap: .6rem; }
.route-num { width: 30px; height: 30px; border-radius: 9px; background: var(--yellow); color: var(--on-accent); font-weight: 800; display: grid; place-items: center; font-size: .95rem; }
.route-steps { display: grid; gap: .45rem; margin: .3rem 0 1rem; }
.rstep { display: flex; align-items: flex-start; gap: .55rem; font-size: .92rem; color: var(--ink-2); }
.route-foot { margin-top: auto; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }

/* ===== Elemental companion creatures ===== */
.creature { display: block; overflow: visible; }
.cr-float { animation: crfloat 3.2s ease-in-out infinite; }
@keyframes crfloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.cr-aura { animation: crpulse 3s ease-in-out infinite; transform-origin: center; }
@keyframes crpulse { 0%,100% { opacity: .8; } 50% { opacity: 1; } }
.cr-flame { animation: crflick 1.1s ease-in-out infinite; transform-origin: 70px 34px; }
@keyframes crflick { 0%,100% { transform: scaleY(1) scaleX(1); } 50% { transform: scaleY(1.12) scaleX(.94); } }
.cr-drop { animation: crbob 2.4s ease-in-out infinite; transform-origin: 70px 20px; }
@keyframes crbob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.cr-stars, .cr-sparkle path { animation: crtwinkle 1.8s ease-in-out infinite; }
@keyframes crtwinkle { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.cr-wings { animation: crflap 2.6s ease-in-out infinite; transform-origin: 70px 82px; }
@keyframes crflap { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .cr-float,.cr-aura,.cr-flame,.cr-drop,.cr-stars,.cr-sparkle path,.cr-wings { animation: none; } }

.creature-card { text-align: center; padding: 1.1rem 1rem 1.2rem; background: linear-gradient(180deg, var(--yellow-tint), var(--paper)); }
.creature-wrap { display: flex; justify-content: center; min-height: 96px; align-items: flex-end; }
.cr-name { font-weight: 800; font-size: 1.05rem; margin-top: .3rem; }
.cr-stage { color: var(--ink-3); font-weight: 700; font-size: .9rem; }
.cr-strength { font-size: .8rem; color: var(--ink-3); font-weight: 600; margin-bottom: .6rem; }
.cr-xpbar { height: 9px; border-radius: 999px; background: rgba(0,0,0,.08); overflow: hidden; }
.cr-xpbar > span { display: block; height: 100%; border-radius: 999px; background: var(--yellow); transition: width .7s cubic-bezier(.22,1,.36,1); }
.cr-xp { font-size: .74rem; font-weight: 700; color: var(--ink-2); margin-top: .35rem; }

/* Element picker */
.el-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
@media (max-width: 560px) { .el-grid { grid-template-columns: repeat(3, 1fr); } }
.el-pick {
  display: flex; flex-direction: column; align-items: center; gap: .1rem; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .5rem .3rem;
  font-family: var(--font); color: var(--ink); transition: all .12s;
}
.el-pick:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.el-pick.sel { border-color: var(--ink); background: var(--yellow-tint); box-shadow: var(--shadow); }
.el-pick strong { font-size: .85rem; }
.el-pick .muted { font-size: .68rem; }
.el-art { height: 62px; display: flex; align-items: center; }

/* Evolve toast */
.evolve-toast { position: fixed; inset: 0; display: grid; place-items: center; z-index: 95; pointer-events: none; }
.evolve-inner {
  display: flex; align-items: center; gap: 1rem; background: var(--paper); border: 2px solid var(--ink);
  border-radius: 18px; padding: 1.2rem 1.6rem 1.2rem 1.2rem; box-shadow: var(--shadow-lg);
  transform: scale(.8); opacity: 0; transition: transform .35s cubic-bezier(.2,1.3,.4,1), opacity .3s; max-width: 90vw;
}
.evolve-toast.go .evolve-inner { transform: scale(1); opacity: 1; }

/* Passport companion */
.passport-companion { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: .8rem; background: var(--paper-2); border-radius: 14px; }

/* Pathway timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline:before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 40px; width: 2px; background: var(--line); }
.tl { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 1rem; margin-bottom: 1.2rem; align-items: start; }
.tl-node {
  width: 48px; height: 48px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line);
  display: grid; place-items: center; font-weight: 800; color: var(--ink-3); z-index: 1; font-size: .9rem;
}
.tl-now .tl-node { background: var(--yellow); border-color: var(--yellow); color: var(--on-accent); }
.tl-now .tl-body { border-color: var(--ink); box-shadow: var(--shadow); }
.agency-chip {
  display: inline-block; background: var(--yellow-tint); border: 1px solid var(--yellow-soft);
  border-radius: 999px; padding: .25rem .8rem; font-size: .82rem; font-weight: 700; color: var(--ink);
}
.phase-tag {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3); background: var(--paper-3); border-radius: 6px; padding: .2rem .5rem;
}

/* Curriculum module grid */
.modgrid { display: grid; gap: .5rem; margin-top: 1rem; }
@media (min-width: 620px) { .modgrid { grid-template-columns: 1fr 1fr; } }
.mod {
  display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; font-weight: 500; color: var(--ink);
}
.mod-n { font-weight: 800; color: var(--ink-3); font-size: .8rem; flex: none; width: 22px; }

/* Demo launcher + personas */
.demo-launcher { background: var(--yellow-tint); border-color: var(--yellow-soft); }
.persona {
  display: flex; flex-direction: column; gap: .1rem; text-align: left; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem;
  font-family: var(--font); color: var(--ink); transition: all .12s;
}
.persona:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.persona strong { font-size: .98rem; }
.persona .muted { font-size: .78rem; }
.persona-goal { font-size: .82rem; color: var(--ink-2); font-style: italic; margin-top: .3rem; }

/* Idea chips + composer mic */
.ideas { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .2rem 0 .1rem; }
.ideas:empty { display: none; }
.ideas-label { font-size: .8rem; font-weight: 600; color: var(--ink-3); margin-right: .2rem; }
.chip {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px; cursor: pointer;
  padding: .35rem .8rem; font-size: .82rem; font-weight: 600; color: var(--ink-2); font-family: var(--font);
}
.chip:hover { border-color: var(--ink); color: var(--ink); background: var(--yellow-tint); }
.mic { padding: .8rem .9rem; font-size: 1.1rem; flex: none; }
.mic.rec { background: #FDE2E2; border-color: #F5B5B5; animation: pulse 1.1s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(220,60,60,.4); } 50% { box-shadow: 0 0 0 8px rgba(220,60,60,0); } }

/* Focus-area cards (eight priority areas) */
.focus-card { display: flex; gap: .9rem; align-items: flex-start; }
.focus-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--yellow-tint);
  border: 1px solid var(--yellow-soft); display: grid; place-items: center; font-size: 1.3rem;
}

/* Reflection quote (passport) */
.reflection {
  margin-top: 1rem; padding: 1rem 1.2rem; border-left: 4px solid var(--yellow);
  background: var(--paper-2); border-radius: 0 12px 12px 0; font-size: 1.05rem;
  font-style: italic; color: var(--ink);
}

/* Generated report */
.report-body { margin-top: 1rem; padding: 1.2rem 1.4rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; }
.report-body p { color: var(--ink); margin: 0 0 .8rem; }
.report-body p:last-child { margin-bottom: 0; }

/* Utility */
.stack > * + * { margin-top: var(--s, 1rem); }
.center { text-align: center; }
.flex { display: flex; gap: .8rem; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.mt-2 { margin-top: 2rem; } .mt-1 { margin-top: 1rem; } .mb-0 { margin-bottom: 0; }
.right { margin-left: auto; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--line); margin: 1.4rem 0; border: none; }
.fade-in { animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Confetti ("I built this") */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti i {
  position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px;
  animation-name: fall; animation-timing-function: cubic-bezier(.3,.6,.5,1); animation-fill-mode: forwards;
}
@keyframes fall {
  0% { top: -12px; opacity: 1; }
  100% { top: 100vh; opacity: .9; transform: translateX(20px) rotate(540deg); }
}
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }

/* ---------- Print (passport & impact report) ---------- */
@media print {
  .topbar, .sitefooter, .rail, .no-print, .composer, .modal-backdrop { display: none !important; }
  body { background: #fff; }
  .journey { display: block; }
  .card, .passport { box-shadow: none; break-inside: avoid; }
  a[href]:after { content: ""; }
  .challenge-band, .belief, .meter-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
