/* =========================================================
   THE 10-DAY AI CHALLENGE - design system
   RDS brand: navy #063C5E, emerald #45B895, deep emerald
   #2FA07E, cloud #F2F7F8. Poppins for display, Inter for
   body, with system fallbacks.
   Two worlds:
     body.landing - light, editorial, sales
     body.app     - deep navy, focused, game-feel
   ========================================================= */

:root {
  --navy: #063C5E;
  --navy-deep: #04263c;
  --navy-ink: #031a2a;
  --emerald: #45B895;
  --emerald-deep: #2FA07E;
  --cloud: #F2F7F8;
  --gold: #E7C86A;
  --coral: #E88A6C;
  --sky: #6CB8E8;
  --ink: #10222e;
  --ink-soft: #48606e;
  --paper: #ffffff;
  --line-light: rgba(6, 60, 94, 0.12);

  /* app-world tokens */
  --app-bg-0: #04202f;
  --app-bg-1: #063049;
  --app-panel: rgba(255, 255, 255, 0.045);
  --app-panel-solid: #0a3a55;
  --app-line: rgba(242, 247, 248, 0.14);
  --app-line-soft: rgba(242, 247, 248, 0.07);
  --app-text: #eef6f5;
  --app-dim: #9fbcc6;
  --app-faint: #7fa0af;   /* was #64818d: failed 4.5:1 on panels */

  --display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-soft: 0 6px 24px rgba(6, 60, 94, 0.10);
  --shadow-pop: 0 18px 50px rgba(3, 26, 42, 0.45);

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
button { font-family: inherit; }
a { color: inherit; }

h1, h2, h3, .display { font-family: var(--display); letter-spacing: -0.02em; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; }

/* reduced motion: remove movement, keep the short opacity/color
   feedback that aids comprehension */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-property: opacity, color, background-color, border-color, box-shadow !important;
    transition-duration: 0.15s !important;
  }
}

/* =========================================================
   SHARED PIECES
   ========================================================= */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  padding: 14px 28px; border-radius: 12px; border: 0; cursor: pointer;
  background: linear-gradient(140deg, var(--emerald), var(--emerald-deep));
  color: #04263c; text-decoration: none;
  box-shadow: 0 10px 26px rgba(47, 160, 126, 0.35);
  transition: transform 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out), filter 0.16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(47, 160, 126, 0.45); }
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn.big { font-size: 18px; padding: 17px 36px; border-radius: 14px; }
.btn.ghost {
  background: transparent; color: inherit; box-shadow: none;
  border: 1.5px solid currentColor; font-weight: 600; opacity: 0.85;
}
@media (hover: hover) and (pointer: fine) {
  .btn.ghost:hover { opacity: 1; transform: translateY(-1px); box-shadow: none; }
}
.btn.quiet {
  background: transparent; box-shadow: none; border: 0; font-weight: 600;
  color: inherit; opacity: 0.7; padding: 10px 14px;
}
@media (hover: hover) and (pointer: fine) {
  .btn.quiet:hover { opacity: 1; transform: none; }
}
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.kicker {
  font-family: var(--display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--emerald);
}

.icon { width: 22px; height: 22px; flex: none; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 30px; height: 30px; }

/* =========================================================
   LANDING WORLD (light)
   ========================================================= */

body.landing { background: var(--cloud); color: var(--ink); }

.landing .shell { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.landing .topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; gap: 16px;
}
.brandlock { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brandlock .mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy), var(--navy-deep));
  color: var(--emerald); font-family: var(--display); font-weight: 800; font-size: 19px;
}
.brandlock .nm { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brandlock .co { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }

/* hero */
.hero { padding: 54px 0 30px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; padding-top: 30px; } }
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); font-weight: 800; margin: 14px 0 18px; color: var(--navy); }
.hero h1 .em { color: var(--emerald-deep); }
.hero .lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 54ch; margin: 0 0 28px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .price-note { font-size: 14px; color: var(--ink-soft); }
.hero .price-note b { color: var(--navy); font-size: 16px; }
.hero .price-note s { opacity: 0.6; }

/* hero river card */
.hero-visual {
  background: linear-gradient(160deg, var(--navy), var(--navy-ink));
  border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-pop);
  color: var(--app-text);
}
.hero-visual .hv-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.hero-visual .hv-top .t { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-dim); }
.hero-visual .rank-chip { font-size: 12px; }

/* stat band */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 26px 0 8px; }
@media (max-width: 760px) { .statband { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--r-md);
  padding: 18px 20px; box-shadow: var(--shadow-soft);
}
.stat .n { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat .l { font-size: 13px; color: var(--ink-soft); }

/* sections */
.landing section { padding: 56px 0; }
.landing section.tight { padding: 34px 0; }
.sect-head { max-width: 640px; margin-bottom: 34px; }
.sect-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; color: var(--navy); margin: 12px 0 12px; }
.sect-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }

/* phase cards */
.phase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .phase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .phase-grid { grid-template-columns: 1fr; } }
.phase-card {
  background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--r-md);
  padding: 22px; box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
}
.phase-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--pc, var(--emerald)); }
.phase-card .ph-days { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.phase-card h3 { font-size: 19px; margin: 8px 0 8px; color: var(--navy); }
.phase-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; }
.phase-card ul { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.phase-card li { display: flex; gap: 9px; align-items: baseline; padding: 5px 0; border-top: 1px dashed var(--line-light); }
.phase-card li .dnum { font-family: var(--display); font-weight: 700; color: var(--emerald-deep); font-size: 12px; flex: none; font-variant-numeric: tabular-nums; }

/* included list */
.included { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .included { grid-template-columns: 1fr; } }
.inc {
  background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--r-md);
  padding: 22px; box-shadow: var(--shadow-soft); display: flex; gap: 14px;
}
.inc .icon { color: var(--emerald-deep); margin-top: 3px; }
.inc h3 { font-size: 16px; margin: 0 0 6px; color: var(--navy); }
.inc p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* founder proof */
.founder-block {
  background: var(--paper); border: 1px solid var(--line-light); border-left: 5px solid var(--emerald);
  border-radius: var(--r-md); padding: 32px 36px; box-shadow: var(--shadow-soft);
  max-width: 760px;
}
.founder-block h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--navy); margin: 10px 0 14px; }
.founder-block p { font-size: 16.5px; color: var(--ink); margin: 0 0 12px; max-width: 62ch; }
.founder-sig {
  font-family: var(--display); font-weight: 700; font-size: 14px !important;
  color: var(--ink-soft) !important; margin: 18px 0 0 !important;
  letter-spacing: 0.02em;
}

/* guarantee block (in the price card) */
.guarantee-block {
  display: flex; gap: 16px; align-items: flex-start; text-align: left;
  background: rgba(69, 184, 149, 0.10); border: 1px solid rgba(69, 184, 149, 0.45);
  border-radius: var(--r-md); padding: 18px 20px; margin-top: 22px;
}
.guarantee-block .icon { color: var(--emerald); flex: none; margin-top: 2px; }
.guarantee-block b {
  display: block; font-family: var(--display); font-weight: 800; font-size: 15px;
  color: var(--emerald); margin-bottom: 5px;
}
.guarantee-block p { margin: 0; font-size: 13.5px; color: var(--app-text); }

/* pricing */
.price-wrap { display: flex; justify-content: center; }
.price-card {
  background: linear-gradient(160deg, var(--navy), var(--navy-ink));
  color: var(--app-text); border-radius: var(--r-lg); padding: 40px 44px;
  max-width: 520px; width: 100%; text-align: center; box-shadow: var(--shadow-pop);
}
.price-card .kicker { color: var(--gold); }
.price-card .amount { font-family: var(--display); font-weight: 800; font-size: 64px; margin: 10px 0 2px; }
.price-card .amount s { font-size: 26px; opacity: 0.5; font-weight: 600; margin-right: 10px; }
.price-card .perday { color: var(--emerald); font-family: var(--display); font-weight: 700; font-size: 17px; margin-bottom: 18px; }
.price-card ul { list-style: none; margin: 0 0 26px; padding: 0; text-align: left; font-size: 15px; }
.price-card li { padding: 8px 0; border-bottom: 1px solid var(--app-line-soft); display: flex; gap: 10px; }
.price-card li .icon { color: var(--emerald); }
.price-card .guarantee { font-size: 13px; color: var(--app-dim); margin-top: 16px; }

/* waitlist form */
.waitform { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.waitform input {
  font: inherit; font-size: 16px; padding: 14px 18px; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08);
  color: var(--app-text); min-width: 250px;
}
.waitform input::placeholder { color: var(--app-faint); }
.waitform input:focus { outline: 2px solid var(--emerald); outline-offset: 1px; }

/* faq accordion */
.faq-list { max-width: 720px; }
.faq-item { background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--r-md); margin-bottom: 10px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-family: var(--display); font-weight: 600;
  font-size: 16px; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 700; color: var(--emerald-deep); }
.faq-item[open] summary::after { content: "-"; }
.faq-item .fa-body { padding: 0 22px 18px; font-size: 15px; color: var(--ink-soft); }

/* footer */
.landing footer { padding: 40px 0 60px; border-top: 1px solid var(--line-light); margin-top: 40px; font-size: 13px; color: var(--ink-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   APP WORLD (deep navy, game feel)
   ========================================================= */

body.app {
  background:
    radial-gradient(130% 100% at 20% -10%, rgba(69, 184, 149, 0.10), transparent 50%),
    linear-gradient(165deg, var(--app-bg-1), var(--app-bg-0) 70%);
  min-height: 100vh; color: var(--app-text);
}

.app .shell { max-width: 1120px; margin: 0 auto; padding: 0 20px 110px; } /* room for the Coach launcher */

/* app header */
.app-header {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid var(--app-line-soft); margin-bottom: 26px;
  flex-wrap: wrap;
}
.app-header .brandlock .mark { background: linear-gradient(140deg, var(--emerald), var(--emerald-deep)); color: var(--navy-ink); }
.app-header .brandlock .co { color: var(--app-faint); }
.hud { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.rank-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 30px; font-size: 13px; font-weight: 600;
  background: rgba(69, 184, 149, 0.12); border: 1px solid rgba(69, 184, 149, 0.4);
  color: var(--emerald);
}
.badge-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 30px; font-size: 13px; font-weight: 700;
  background: rgba(231, 200, 106, 0.10); border: 1px solid rgba(231, 200, 106, 0.35);
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.badge-chip .plus { animation: xpPop 0.9s ease both; }
@keyframes xpPop {
  0% { opacity: 0; transform: translateY(6px) scale(0.8); }
  30% { opacity: 1; transform: translateY(0) scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

/* panels */
.panel {
  background: var(--app-panel); border: 1px solid var(--app-line-soft);
  border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px);
}

/* ---------- auth / gate screens ---------- */
.gate-screen { max-width: 480px; margin: 8vh auto 0; text-align: center; }
.gate-screen h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 800; margin: 16px 0 12px; }
.gate-screen p { color: var(--app-dim); font-size: 16px; margin: 0 0 26px; }
.gate-screen .authbox { display: flex; flex-direction: column; gap: 12px; }
.gate-screen input {
  font: inherit; font-size: 16px; padding: 14px 18px; border-radius: 12px;
  border: 1.5px solid var(--app-line); background: rgba(255,255,255,0.05); color: var(--app-text);
}
.gate-screen input:focus { outline: 2px solid var(--emerald); outline-offset: 1px; }
.gate-screen .or { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--app-faint); margin: 4px 0; }
.gate-screen .fine { font-size: 13px; color: var(--app-faint); margin-top: 18px; }
.demo-banner {
  margin: 14px auto 0; max-width: 680px; text-align: center;
  background: rgba(231, 200, 106, 0.10); border: 1px solid rgba(231, 200, 106, 0.35);
  color: var(--gold); font-size: 13px; padding: 10px 16px; border-radius: 10px;
}
/* phones read, computers do */
.desk-note { display: none; }
@media (max-width: 640px) {
  .desk-note {
    display: flex; gap: 10px; align-items: flex-start;
    margin: 14px auto 0; max-width: 680px;
    background: rgba(108, 184, 232, 0.08); border: 1px solid rgba(108, 184, 232, 0.3);
    color: var(--sky); font-size: 13px; line-height: 1.5; padding: 10px 14px; border-radius: 10px;
  }
  .desk-note .icon { flex: none; margin-top: 2px; }
}

/* ---------- home: river map ---------- */
.home-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.home-top h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin: 6px 0 4px; }
.home-top .sub { color: var(--app-dim); font-size: 15px; margin: 0; }

.progress-line { display: flex; align-items: center; gap: 14px; margin: 18px 0 26px; }
.progress-line .bar { flex: 1; height: 10px; border-radius: 30px; background: rgba(0,0,0,0.35); box-shadow: inset 0 0 0 1px var(--app-line-soft); overflow: hidden; }
.progress-line .bar i { display: block; height: 100%; width: 0; border-radius: 30px; background: linear-gradient(90deg, var(--emerald-deep), var(--emerald)); transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.progress-line .pct { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--emerald); font-variant-numeric: tabular-nums; white-space: nowrap; }

.rivermap { position: relative; padding: 10px 0 4px; }
.rivermap svg { width: 100%; height: auto; display: block; }
.rivermap.vertical svg { max-width: 400px; margin: 0 auto; }
.river-node:focus-visible circle { outline: none; stroke: var(--gold); stroke-width: 3.5; }
.river-node { cursor: pointer; }
.river-node.locked { cursor: not-allowed; }
.river-node circle.halo { opacity: 0; transform-box: fill-box; transform-origin: center; }
.river-node.current circle.halo { opacity: 1; animation: halo 2.4s var(--ease-in-out) infinite; }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: 0.35; } 50% { transform: scale(1.19); opacity: 0.12; } }

.phase-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
@media (max-width: 760px) { .phase-legend { grid-template-columns: repeat(2, 1fr); } }
.phase-pill {
  border-radius: var(--r-sm); padding: 10px 14px; font-size: 12.5px;
  border: 1px solid var(--app-line-soft); background: rgba(0,0,0,0.16);
  display: flex; align-items: center; gap: 9px; color: var(--app-dim);
}
.phase-pill .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.phase-pill.earned { border-color: rgba(69,184,149,0.45); color: var(--app-text); background: rgba(69,184,149,0.08); }
.phase-pill .badge-check { margin-left: auto; color: var(--emerald); font-weight: 800; }

/* day list under map */
.day-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
@media (max-width: 760px) { .day-list { grid-template-columns: 1fr; } }
.day-tile {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--app-panel); border: 1px solid var(--app-line-soft); border-radius: var(--r-md);
  padding: 14px 16px; cursor: pointer; color: inherit; font: inherit;
  transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out), transform 0.12s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .day-tile:hover:not([disabled]) { background: rgba(255,255,255,0.08); transform: translateY(-1px); }
}
/* locked: reads as locked, stays readable */
.day-tile[disabled] { cursor: not-allowed; background: rgba(0, 0, 0, 0.12); border-color: transparent; }
.day-tile[disabled] .dnum { border-style: dashed; color: var(--app-faint); }
.day-tile[disabled] .dt-txt b { color: var(--app-dim); font-weight: 600; }
.day-tile[disabled] .dt-txt span, .day-tile[disabled] .dt-meta { color: var(--app-faint); }
.day-tile .dt-meta .icon { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.day-tile .dnum {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-family: var(--display); font-weight: 800;
  border: 1.5px solid var(--app-line); color: var(--app-dim); font-variant-numeric: tabular-nums;
}
.day-tile.done .dnum { background: var(--emerald); border-color: var(--emerald); color: var(--navy-ink); }
.day-tile.current .dnum { border-color: var(--emerald); color: var(--emerald); }
.day-tile .dt-txt b { display: block; font-family: var(--display); font-weight: 700; font-size: 15px; }
.day-tile .dt-txt span { font-size: 13px; color: var(--app-dim); }
.day-tile .dt-meta { margin-left: auto; font-size: 12px; color: var(--app-faint); white-space: nowrap; }
.day-tile .dt-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font-weight: 600; }
.day-tile .dt-badge .icon { width: 13px; height: 13px; }
/* tiles cascade in gently when the map renders */
@media (prefers-reduced-motion: no-preference) {
  .day-tile { animation: tileIn 0.24s var(--ease-out) backwards; }
  .day-tile:nth-child(2)  { animation-delay: 30ms; }
  .day-tile:nth-child(3)  { animation-delay: 60ms; }
  .day-tile:nth-child(4)  { animation-delay: 90ms; }
  .day-tile:nth-child(5)  { animation-delay: 120ms; }
  .day-tile:nth-child(6)  { animation-delay: 150ms; }
  .day-tile:nth-child(7)  { animation-delay: 180ms; }
  .day-tile:nth-child(8)  { animation-delay: 210ms; }
  .day-tile:nth-child(9)  { animation-delay: 240ms; }
  .day-tile:nth-child(10) { animation-delay: 270ms; }
}
@keyframes tileIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- day player ---------- */
.player { max-width: 760px; margin: 0 auto; }
.player-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.player-top .crumb { font-size: 13px; color: var(--app-dim); display: flex; align-items: center; gap: 8px; }
.player-top .crumb b { color: var(--app-text); }

.slide-dots { display: flex; gap: 6px; justify-content: center; margin: 0 0 20px; }
.slide-dots i {
  width: 26px; height: 5px; border-radius: 4px; background: rgba(255,255,255,0.12);
  transition: background 0.2s;
}
.slide-dots i.on { background: var(--emerald); }
.slide-dots i.seen { background: rgba(69, 184, 149, 0.4); }

.slide {
  background: var(--app-panel); border: 1px solid var(--app-line-soft); border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px); min-height: 300px;
  animation: slideIn 0.32s var(--ease-out);
}
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.slide.back-anim { animation: slideInBack 0.32s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes slideInBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

.slide .s-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.slide .s-kicker .icon { color: var(--emerald); }
.slide h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; margin: 0 0 16px; }
.slide .hook { font-size: clamp(16px, 2vw, 18px); color: var(--app-text); max-width: 56ch; }
.slide .promise {
  margin-top: 20px; padding: 16px 20px; border-radius: var(--r-md);
  background: rgba(69, 184, 149, 0.08); border: 1px solid rgba(69, 184, 149, 0.3);
  font-size: 15px;
}
.slide .promise b { color: var(--emerald); }

.meta-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  padding: 7px 14px; border-radius: 30px; border: 1px solid var(--app-line);
  color: var(--app-dim); background: rgba(0,0,0,0.16);
}
.chip.scary { border-color: rgba(232, 138, 108, 0.4); color: var(--coral); }
.chip.badge-preview { border-color: rgba(231, 200, 106, 0.4); color: var(--gold); background: rgba(231, 200, 106, 0.07); }
.chip .icon { width: 15px; height: 15px; }

/* vocab cards */
.vocab-card {
  border: 1px solid var(--app-line-soft); border-radius: var(--r-md);
  background: rgba(0,0,0,0.18); padding: 20px 22px; margin-bottom: 14px;
}
.vocab-card .vc-term { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--sky); display: flex; align-items: center; gap: 10px; }
.vocab-card .vc-plain { font-size: 15px; margin: 10px 0 0; }
.vocab-card .vc-why { font-size: 14px; margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--app-line-soft); color: var(--app-dim); }
.vocab-card .vc-why b { color: var(--gold); font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }

/* concept cards (Chat / Cowork / Code and friends) */
.mode-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
@media (max-width: 720px) { .mode-cards { grid-template-columns: 1fr; } }
.mode-card {
  border: 1px solid var(--app-line-soft); border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.18); overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.mode-card.open { border-color: rgba(69, 184, 149, 0.5); background: rgba(69, 184, 149, 0.06); }
.mode-card .mc-top {
  width: 100%; background: none; border: 0; color: inherit; cursor: pointer; font: inherit;
  padding: 20px 16px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
@media (hover: hover) and (pointer: fine) {
  .mode-card .mc-top:hover .scene { transform: translateY(-2px); }
}
.scene { width: 116px; height: 87px; color: var(--sky); transition: transform 0.18s; }
/* scenes draw themselves in, stroke by stroke */
@media (prefers-reduced-motion: no-preference) {
  .scene path, .scene rect, .scene circle {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: sceneDraw 0.9s var(--ease-out) forwards;
  }
  .scene *:nth-child(2) { animation-delay: 0.10s; }
  .scene *:nth-child(3) { animation-delay: 0.20s; }
  .scene *:nth-child(4) { animation-delay: 0.30s; }
  .scene *:nth-child(5) { animation-delay: 0.40s; }
  .scene *:nth-child(6) { animation-delay: 0.50s; }
  .scene *:nth-child(7) { animation-delay: 0.60s; }
}
@keyframes sceneDraw { to { stroke-dashoffset: 0; } }
.mode-card.open .scene { color: var(--emerald); }
.mode-card .mc-title { font-family: var(--display); font-weight: 800; font-size: 19px; }
.mode-card .mc-tag { font-size: 13px; color: var(--app-dim); }
.mode-card .mc-hint {
  font-family: var(--display); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--emerald); margin-top: 5px;
}
.mode-card.open .mc-hint { visibility: hidden; }
/* the open card's detail renders full-width below the row */
.mode-detail {
  margin-top: 12px; padding: 20px 24px; border-radius: var(--r-md);
  border: 1px solid rgba(69, 184, 149, 0.35); background: rgba(69, 184, 149, 0.05);
}
.mode-detail[hidden] { display: none; }
.mode-detail.anim { animation: detailIn 0.25s var(--ease-out); }
@keyframes detailIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mode-detail .md-head { margin: 0 0 2px; font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--emerald); }
.mode-detail .mc-row { max-width: 62ch; font-size: 14.5px; }
.mc-row { margin: 10px 0 0; }
.mc-row b {
  display: block; margin-bottom: 3px; color: var(--sky);
  font-family: var(--display); font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.mc-row.mc-challenge b { color: var(--gold); }

/* analogy toggle (the house story and friends) */
.an-toggle { display: flex; gap: 8px; margin: 4px 0 14px; flex-wrap: wrap; }
.an-pill {
  font-family: var(--display); font-weight: 700; font-size: 13.5px; cursor: pointer;
  padding: 10px 20px; border-radius: 30px; border: 1.5px solid var(--app-line);
  background: transparent; color: var(--app-dim);
  transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .an-pill:hover { color: var(--app-text); }
}
.an-pill.active[data-side="a"] { border-color: rgba(232, 138, 108, 0.6); color: var(--coral); background: rgba(232, 138, 108, 0.08); }
.an-pill.active[data-side="b"] { border-color: rgba(69, 184, 149, 0.6); color: var(--emerald); background: rgba(69, 184, 149, 0.08); }
.an-panel {
  display: flex; gap: 24px; align-items: center;
  border: 1px solid var(--app-line-soft); border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.16); padding: 22px 24px; min-height: 150px;
  animation: slideIn 0.25s ease;
}
@media (max-width: 640px) { .an-panel { flex-direction: column; text-align: center; gap: 12px; } }
.an-scene { flex: none; }
.an-scene .scene { width: 156px; height: 117px; }
.an-panel.a .an-scene { color: var(--coral); }
.an-panel.b .an-scene { color: var(--emerald); }
.an-text h3 { margin: 0 0 8px; font-size: 20px; }
.an-text p { margin: 0; font-size: 14.5px; }
.an-nudge { font-size: 12.5px; color: var(--app-faint); margin-top: 12px; }

/* steps (checkable: tap the number chip to mark a step done) */
.steps-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.steps-list li { position: relative; padding-left: 48px; font-size: 15.5px; }
.step-num {
  position: absolute; left: 0; top: -4px;
  width: 34px; height: 34px; border-radius: 10px; padding: 0; cursor: pointer;
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 14px;
  background: rgba(69, 184, 149, 0.15); color: var(--emerald); border: 1px solid rgba(69, 184, 149, 0.4);
  font-variant-numeric: tabular-nums;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out), border-color 0.15s var(--ease-out), transform 0.12s var(--ease-out);
}
.step-num::after { content: ""; position: absolute; inset: -6px; } /* 46px touch target */
.step-num:active { transform: scale(0.94); }
.step-num:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.steps-list li.done .step-num { background: var(--emerald); border-color: var(--emerald); color: var(--navy-ink); }
.steps-list li.done .step-text { color: var(--app-dim); }
.steps-hint { font-size: 12.5px; color: var(--app-faint); margin-top: 14px; }
.tip-note {
  margin-top: 9px; font-size: 13.5px; color: var(--gold);
  background: rgba(231, 200, 106, 0.07); border: 1px dashed rgba(231, 200, 106, 0.3);
  border-radius: var(--r-sm); padding: 9px 13px; display: flex; gap: 8px;
}
.tip-note .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.coach-note {
  margin-top: 20px; padding: 14px 18px; border-radius: var(--r-md);
  background: rgba(108, 184, 232, 0.07); border: 1px solid rgba(108, 184, 232, 0.25);
  font-size: 14px; color: var(--app-text); display: flex; gap: 11px;
}
.coach-note .icon { color: var(--sky); flex: none; margin-top: 2px; }

/* prompt card */
.prompt-lead { font-size: 15.5px; margin: 0 0 16px; }
.prompt-card { border-radius: var(--r-md); overflow: hidden; border: 1px solid rgba(231, 200, 106, 0.3); background: rgba(231, 200, 106, 0.05); }
.prompt-card .pc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid rgba(231, 200, 106, 0.22);
  background: rgba(231, 200, 106, 0.07);
}
.prompt-card .pc-head span { font-family: var(--display); font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.copy-btn {
  font-family: var(--display); font-size: 12.5px; font-weight: 700; cursor: pointer;
  padding: 7px 16px; border-radius: 8px; border: 1.5px solid rgba(231, 200, 106, 0.5);
  background: transparent; color: var(--gold); display: inline-flex; gap: 7px; align-items: center;
  transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .copy-btn:hover { background: rgba(231, 200, 106, 0.14); }
}
.copy-btn.ok { border-color: var(--emerald); color: var(--emerald); background: rgba(69, 184, 149, 0.12); }
.prompt-card pre {
  margin: 0; padding: 18px 20px; font-family: var(--mono); font-size: 13.5px; line-height: 1.65;
  color: var(--app-text); white-space: pre-wrap; overflow-wrap: anywhere;
}
.bridge {
  margin-top: 18px; padding: 16px 20px; border-radius: var(--r-md);
  border: 1px solid var(--app-line-soft); background: rgba(0,0,0,0.18);
  font-size: 14.5px; display: flex; gap: 12px; align-items: flex-start;
}
.bridge .icon { color: var(--emerald); flex: none; margin-top: 2px; }
.bridge b { color: var(--emerald); }

/* check slide: both answers start neutral, the chosen one lights up */
.check-q { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 3vw, 26px); margin: 0 0 22px; }
.check-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.check-btns .btn.ghost.chosen-yes { border-color: var(--emerald); color: var(--emerald); background: rgba(69, 184, 149, 0.12); opacity: 1; }
.check-btns .btn.ghost.chosen-stuck { border-color: var(--coral); color: var(--coral); background: rgba(232, 138, 108, 0.10); opacity: 1; }
.check-result { margin-top: 20px; animation: slideIn 0.3s ease; }
.win-box {
  padding: 18px 22px; border-radius: var(--r-md);
  background: rgba(69, 184, 149, 0.10); border: 1px solid rgba(69, 184, 149, 0.4);
  font-size: 15.5px;
}
.stuck-box {
  padding: 18px 22px; border-radius: var(--r-md);
  background: rgba(232, 138, 108, 0.07); border: 1px solid rgba(232, 138, 108, 0.3);
  font-size: 14.5px;
}
.stuck-box ul { margin: 8px 0 0; padding-left: 20px; }
.stuck-box li { margin: 8px 0; }
.stuck-box .ask-coach-inline { margin-top: 12px; }

/* bonus slide */
.bonus-box {
  padding: 20px 24px; border-radius: var(--r-md);
  background: rgba(231, 200, 106, 0.07); border: 1px solid rgba(231, 200, 106, 0.3);
  margin-bottom: 14px;
}
.bonus-box .b-head { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.bonus-box p { margin: 0; font-size: 15px; }
.practice-box { background: rgba(255,255,255,0.03); border-color: var(--app-line-soft); }
.practice-box .b-head { color: var(--app-dim); }
.practice-box ul { margin: 0; padding-left: 20px; font-size: 14.5px; }
.practice-box li { margin: 6px 0; }
.bonus-claim { margin-top: 16px; }

/* demo feedback box (only rendered in DEMO_BUILD copies) */
.fb-box {
  padding: 18px 22px; border-radius: var(--r-md); margin-bottom: 20px;
  background: rgba(108, 184, 232, 0.06); border: 1px solid rgba(108, 184, 232, 0.3);
}
.fb-box .b-head { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.fb-rate { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.fb-rate .an-pill.active { border-color: rgba(69, 184, 149, 0.6); color: var(--emerald); background: rgba(69, 184, 149, 0.08); }
.fb-box textarea {
  width: 100%; font: inherit; font-size: 14px; padding: 10px 12px; margin: 10px 0;
  border-radius: 10px; border: 1.5px solid var(--app-line);
  background: rgba(255, 255, 255, 0.05); color: var(--app-text); resize: vertical;
}
.fb-box textarea:focus { outline: 2px solid var(--emerald); outline-offset: 1px; }

/* wrap slide */
.wrap-win {
  font-size: clamp(17px, 2.4vw, 20px); padding: 22px 26px; border-radius: var(--r-md);
  background: rgba(69, 184, 149, 0.10); border: 1px solid rgba(69, 184, 149, 0.4); margin-bottom: 18px;
}
.wrap-tomorrow { font-size: 14.5px; color: var(--app-dim); margin-bottom: 24px; }
.wrap-tomorrow b { color: var(--app-text); }

/* player nav */
.player-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }

/* ---------- celebration / certificate ---------- */
#confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.celebrate-screen { text-align: center; max-width: 640px; margin: 0 auto; }
.celebrate-screen .big { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin: 18px 0 14px; }
.celebrate-screen p { color: var(--app-dim); font-size: 16px; }
.cert {
  margin: 30px auto; padding: 40px 36px; border-radius: var(--r-lg); text-align: center;
  background: linear-gradient(160deg, #0b3d5c, var(--navy-ink));
  border: 1px solid rgba(231, 200, 106, 0.4); box-shadow: var(--shadow-pop);
}
.cert .c-kicker { color: var(--gold); }
.cert .c-name { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4.6vw, 40px); margin: 14px 0 6px; }
.cert .c-line { color: var(--app-dim); font-size: 15px; }
.cert .c-rank { display: inline-flex; margin-top: 18px; }
.cert .c-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cert .c-badge {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--gold);
  border: 1.5px solid rgba(231, 200, 106, 0.5); background: rgba(231, 200, 106, 0.08);
}
.cert .c-badge .icon { width: 15px; height: 15px; }
.cert .c-date { font-size: 12px; color: var(--app-faint); letter-spacing: 0.14em; text-transform: uppercase; margin: 14px 0 0; font-family: var(--display); font-weight: 700; }
.cert .c-sig {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(231, 200, 106, 0.25);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.cert .c-sig .seal {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 14px;
  color: var(--navy-ink); background: linear-gradient(140deg, var(--gold), #d4b04e);
  border: 2px solid rgba(231, 200, 106, 0.6);
}
.cert .c-sig span { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--app-dim); text-align: left; line-height: 1.35; }
.cert .c-sig span i { display: block; font-style: normal; font-size: 11px; color: var(--app-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.cert input.c-name-edit {
  display: block; width: 100%; max-width: 420px; margin: 8px auto 2px;
  background: rgba(255, 255, 255, 0.06); border: 1.5px solid var(--app-line); border-radius: 10px;
  color: var(--app-text); font-family: var(--display); font-weight: 800;
  font-size: clamp(24px, 4vw, 32px); text-align: center; padding: 6px 12px;
}
.cert input.c-name-edit:focus { outline: 2px solid var(--emerald); outline-offset: 1px; }
.cert-tools { margin-top: 10px; }
.cert-tools .btn.quiet { font-size: 13px; }
/* the one next step allowed on this screen */
.next-step-card {
  margin: 26px auto 0; max-width: 520px; text-align: left;
  border: 1px solid rgba(108, 184, 232, 0.3); background: rgba(108, 184, 232, 0.06);
  border-radius: var(--r-md); padding: 16px 20px; display: flex; gap: 12px; font-size: 14px;
}
.next-step-card .icon { color: var(--sky); flex: none; margin-top: 2px; }
.next-step-card b { color: var(--sky); }

/* ---------- word bank ---------- */
.bank-search { width: 100%; font: inherit; font-size: 16px; padding: 13px 18px; border-radius: 12px; border: 1.5px solid var(--app-line); background: rgba(255,255,255,0.05); color: var(--app-text); margin-bottom: 20px; }
.bank-search:focus { outline: 2px solid var(--emerald); outline-offset: 1px; }
.bank-group-title { font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--app-faint); margin: 26px 0 12px; }
.bank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .bank-grid { grid-template-columns: 1fr; } }
.bank-card { border: 1px solid var(--app-line-soft); border-radius: var(--r-md); background: rgba(0,0,0,0.16); padding: 16px 18px; }
.bank-card .bk-term { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--sky); display: flex; justify-content: space-between; gap: 10px; }
.bank-card .bk-day { font-size: 11px; color: var(--app-faint); white-space: nowrap; }
.bank-card .bk-plain { font-size: 13.5px; margin: 8px 0 0; }
.bank-card .bk-why { font-size: 12.5px; color: var(--app-dim); margin: 8px 0 0; }

/* ---------- the coach (floating bot) ---------- */
.coach-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 40px; border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  background: linear-gradient(140deg, var(--emerald), var(--emerald-deep)); color: var(--navy-ink);
  box-shadow: 0 12px 30px rgba(47, 160, 126, 0.45);
  transition: transform 0.16s var(--ease-out), opacity 0.16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .coach-fab:hover { transform: translateY(-2px); }
}
.coach-fab:active { transform: scale(0.97); }
/* hide the launcher while its panel is open */
body.coach-open .coach-fab { opacity: 0; pointer-events: none; transform: translateY(8px); }
@media (max-width: 560px) {
  .coach-fab { right: 14px; bottom: 14px; padding: 12px 16px; font-size: 13px; }
  .coach-panel { right: 10px; bottom: 74px; width: calc(100vw - 20px); }
}
.coach-panel {
  position: fixed; right: 22px; bottom: 88px; z-index: 55;
  width: min(400px, calc(100vw - 44px)); max-height: min(560px, 75vh);
  display: none; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: var(--app-panel-solid); border: 1px solid var(--app-line);
  box-shadow: var(--shadow-pop);
}
.coach-panel.open { display: flex; animation: coachUp 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes coachUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.coach-head { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--app-line-soft); background: rgba(0,0,0,0.14); }
.coach-head .icon { color: var(--emerald); }
.coach-head b { font-family: var(--display); font-size: 15px; }
.coach-head span { font-size: 12px; color: var(--app-dim); display: block; }
.coach-head .x { margin-left: auto; background: none; border: 0; color: var(--app-dim); font-size: 20px; cursor: pointer; padding: 4px 8px; }
.coach-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cmsg { max-width: 88%; padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.55; animation: coachUp 0.2s ease; }
.cmsg.bot { background: rgba(255,255,255,0.07); border: 1px solid var(--app-line-soft); border-bottom-left-radius: 4px; align-self: flex-start; }
.cmsg.user { background: rgba(69, 184, 149, 0.16); border: 1px solid rgba(69, 184, 149, 0.35); border-bottom-right-radius: 4px; align-self: flex-end; }
.cmsg.bot .cite { display: block; margin-top: 7px; font-size: 11.5px; color: var(--app-faint); }
.coach-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; }
.coach-chip {
  font-size: 12px; padding: 6px 12px; border-radius: 20px; cursor: pointer;
  border: 1px solid var(--app-line); background: transparent; color: var(--app-dim);
  transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .coach-chip:hover { border-color: var(--emerald); color: var(--emerald); }
}
.coach-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--app-line-soft); background: rgba(0,0,0,0.14); }
.coach-input input { flex: 1; font: inherit; font-size: 14px; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--app-line); background: rgba(255,255,255,0.05); color: var(--app-text); }
.coach-input input:focus { outline: 2px solid var(--emerald); outline-offset: 1px; }
.coach-input button { flex: none; padding: 10px 16px; border-radius: 10px; border: 0; cursor: pointer; background: var(--emerald); color: var(--navy-ink); font-family: var(--display); font-weight: 700; }
.coach-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.coach-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--app-dim); animation: blink 1.2s infinite; }
.coach-typing i:nth-child(2) { animation-delay: 0.2s; }
.coach-typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(90px);
  background: var(--app-panel-solid); border: 1px solid rgba(69, 184, 149, 0.5);
  color: var(--app-text); padding: 13px 22px; border-radius: 12px; font-size: 14.5px;
  box-shadow: var(--shadow-pop); z-index: 70; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  display: flex; gap: 10px; align-items: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .icon { color: var(--emerald); }
.toast.gold { border-color: rgba(231, 200, 106, 0.55); }
.toast.gold .icon { color: var(--gold); }

/* ---------- misc app ---------- */
.view { display: none; }
.view.active { display: block; }
.back-row { margin-bottom: 16px; }
.footer-app { margin-top: 50px; padding-top: 18px; border-top: 1px solid var(--app-line-soft); font-size: 12.5px; color: var(--app-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-app button { background: none; border: 0; color: var(--app-faint); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-app button:hover { color: var(--app-dim); }

/* =========================================================
   PRINT: only the certificate, on white, in brand navy
   ========================================================= */
@media print {
  body.app { background: #fff !important; }
  body.app * { visibility: hidden; }
  .cert, .cert * { visibility: visible; }
  .cert {
    position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%);
    width: 92%; max-width: 660px; margin: 0;
    background: #fff !important; box-shadow: none;
    border: 3px double #c9a94f; border-radius: 12px; padding: 56px 44px;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .cert .c-kicker { color: #a5852f !important; }
  .cert .c-name { color: var(--navy) !important; }
  .cert .c-line { color: var(--ink-soft) !important; }
  .cert .c-date { color: var(--ink-soft) !important; }
  .cert .c-rank { color: var(--emerald-deep) !important; border-color: rgba(47, 160, 126, 0.5); background: rgba(69, 184, 149, 0.08); }
  .cert .c-sig { border-top-color: rgba(6, 60, 94, 0.18); }
  .cert .c-badge { color: #a5852f !important; border-color: rgba(165, 133, 47, 0.5); background: rgba(231, 200, 106, 0.12); }
  .cert .c-sig span { color: var(--ink-soft) !important; }
  .cert .c-sig span i { color: #8a9aa5 !important; }
  .cert input.c-name-edit { display: none; }
  .cert-tools, .next-step-card, .coach-fab, .coach-panel, .toast, #confetti-canvas { display: none !important; }
}
