/* =====================================================================
   Denise Explains Sales
   Cherry-soda notebook look. All colors are tokens on :root so you can retheme
   in one place. Text colors were picked to pass WCAG AA on their backgrounds.
   ===================================================================== */
@font-face { font-family: "Sniglet"; src: url("../assets/fonts/sniglet-800-latin.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../assets/fonts/nunito-latin.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  /* "Cherry Soda" palette. NOTE: token names are inherited from the sister sites:
     --pink = blush, --pink-deep = cherry (white text on it passes AA), --lav = baby blue, --lav-deep = link blue. */
  --cream: #f6fbff;
  --paper: #ffffff;
  --ink: #1f2a5a;
  --muted: #4d5985;
  --pink: #ffb3c7;
  --pink-soft: #ffe3ea;
  --pink-deep: #c2255c;
  --lav: #cfe8ff;
  --lav-soft: #eaf4ff;
  --lav-deep: #1c5fa8;
  --mint: #d5f5e3;
  --mint-deep: #0f6e53;
  --butter: #fff0b3;
  --sky: #e8dcff;
  --danger: #a3262e;
  --radius: 20px;
  --font-display: "Sniglet", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 4px 4px 0 var(--lav);
  --shadow-pink: 4px 4px 0 var(--pink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 18px/1.65 var(--font-body);
  background-color: var(--cream);
  background-image: radial-gradient(var(--pink-soft) 2px, transparent 2.5px), radial-gradient(var(--lav) 1.5px, transparent 2px);
  background-size: 34px 34px, 34px 34px; background-position: 0 0, 17px 17px;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 24px 16px 56px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
a { color: var(--lav-deep); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--pink-deep); }
:focus-visible { outline: 3px solid var(--lav-deep); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sparkle-deco { color: var(--pink-deep); }

/* ---------- header / nav ---------- */
.site-header { background: var(--paper); border-bottom: 3px solid var(--ink); position: relative; z-index: 5; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 8px; background: repeating-linear-gradient(90deg, var(--pink) 0 14px, var(--lav) 14px 28px, var(--mint) 28px 42px); border-bottom: 2px solid var(--ink); }
.header-inner { max-width: 1040px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 400 1.7rem/1 var(--font-display); color: var(--ink); text-decoration: none; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo small { display: block; font: 700 .72rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; padding: 0; list-style: none; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: .98rem; border: 2px solid transparent; }
.nav a:hover { background: var(--pink-soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--lav); border-color: var(--ink); }
.trail-toggle { appearance: none; cursor: pointer; font: 800 .85rem/1 var(--font-body); color: var(--ink); background: var(--butter); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 12px; }
.trail-toggle[aria-pressed="true"] { background: var(--mint); }
.trail-toggle[disabled] { opacity: .6; cursor: not-allowed; }
@media (max-width: 760px) { .nav { margin-left: 0; width: 100%; } .nav a { padding: 8px 11px; font-size: .92rem; } }

/* ---------- washi tape headers, stickers, notebook cards ---------- */
.washi { display: inline-block; position: relative; padding: 6px 26px; margin: 0 0 14px; font: 400 1.25rem/1.3 var(--font-display); color: var(--ink); transform: rotate(-1.5deg);
  background: repeating-linear-gradient(135deg, var(--pink) 0 10px, #ffd0dc 10px 20px); box-shadow: 0 2px 0 rgba(58,37,80,.18);
  clip-path: polygon(0 8%, 4% 0, 8% 8%, 12% 0, 100% 0, 100% 100%, 12% 100%, 8% 92%, 4% 100%, 0 92%, 3% 50%); }
.washi.mint { background: repeating-linear-gradient(135deg, #a9e9cc 0 10px, var(--mint) 10px 20px); }
.washi.lav { background: repeating-linear-gradient(135deg, #a8d3ff 0 10px, var(--lav) 10px 20px); }
.washi.butter { background: repeating-linear-gradient(135deg, #ffe27a 0 10px, var(--butter) 10px 20px); }

.card { position: relative; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); padding: 26px 22px 22px; margin: 0 0 26px; box-shadow: var(--shadow);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(28,95,168,.09) 31px 32px); }
.card.plain { background-image: none; }
.card::before { content: ""; position: absolute; top: -9px; left: 24px; right: 24px; height: 14px; background: radial-gradient(circle at 10px 7px, var(--cream) 0 5px, var(--ink) 5.5px 7px, transparent 7.5px) 0 0 / 40px 14px repeat-x; pointer-events: none; }
.card.pink { background-color: var(--pink-soft); box-shadow: var(--shadow-pink); }
.card.mint { background-color: var(--mint); }
.card.lav { background-color: var(--lav-soft); }
.card.butter { background-color: #fff8d6; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.note { background: var(--butter); border: 2px dashed var(--ink); border-radius: 14px; padding: 12px 16px; margin: 0 0 1em; }
.note strong:first-child { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }
.sticker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--mint); border: 2px solid var(--ink); font-weight: 800; font-size: .85rem; transform: rotate(-2deg); }
.sticker.pink { background: var(--pink-soft); } .sticker.lav { background: var(--lav); } .sticker.butter { background: var(--butter); }

/* ---------- buttons ---------- */
.btn { appearance: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 800 1.05rem/1.1 var(--font-body); text-decoration: none; padding: 13px 22px; min-height: 48px;
  color: #fff; background: var(--pink-deep); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); position: relative; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { color: #fff; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.secondary { background: var(--mint); color: var(--ink); }
.btn.lav { background: var(--lav); color: var(--ink); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.small { padding: 8px 14px; min-height: 40px; font-size: .92rem; box-shadow: 2px 2px 0 var(--ink); }
.btn.big { font-size: 1.3rem; padding: 16px 30px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn.danger { background: var(--danger); }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; margin: 12px 0 34px; }
.hero h1 .hl { background: linear-gradient(transparent 60%, var(--pink) 60% 92%, transparent 92%); padding: 0 .1em; }
.hero p.lead { font-size: 1.25rem; }
.hero-art { display: grid; place-items: center; }
.hero-art svg { width: min(100%, 320px); height: auto; filter: drop-shadow(5px 5px 0 var(--lav)); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-art { order: -1; } .hero-art svg { width: 200px; } }
.letter { transform: rotate(-.6deg); }
.letter .sign { font: 400 1.8rem/1 var(--font-display); color: var(--pink-deep); margin: 8px 0 0; }
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 26px; }
.steps3 .card { margin: 0; }
.steps3 .num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--pink-deep); color: #fff; font: 400 1.6rem/1 var(--font-display); border: 3px solid var(--ink); margin-bottom: 8px; }
.privacy-card { display: flex; gap: 16px; align-items: flex-start; }
.privacy-card .big-emoji { font-size: 2.4rem; line-height: 1; }

/* ---------- lessons list ---------- */
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; padding: 0; list-style: none; margin: 0; }
.lesson-tile { position: relative; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; height: 100%; }
.lesson-tile .em { font-size: 2.2rem; line-height: 1; }
.lesson-tile h3 { margin: 4px 0 2px; font-size: 1.45rem; }
.lesson-tile p { margin: 0 0 8px; font-size: 1rem; color: var(--muted); }
.lesson-tile .btn { margin-top: auto; align-self: flex-start; }
.lesson-tile.soon { background: var(--lav-soft); border-style: dashed; box-shadow: none; }
.lesson-tile.done { background: var(--mint); }
.tile-num { position: absolute; top: 12px; right: 14px; font: 400 1.4rem/1 var(--font-display); color: var(--pink-deep); }
.progress { height: 18px; border: 3px solid var(--ink); border-radius: 999px; background: var(--paper); overflow: hidden; }
.progress > span { display: block; height: 100%; background: repeating-linear-gradient(135deg, var(--pink) 0 10px, #ffc0d0 10px 20px); transition: width .4s ease; }

/* ---------- lesson page ---------- */
.lesson-head { margin-bottom: 18px; }
.lesson-head .crumbs { font-weight: 800; font-size: .95rem; margin-bottom: 8px; }
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0 0 1em; padding: 0; list-style: none; }
.term { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; }
.term .plain { display: block; font-weight: 800; }
.term .arrow { color: var(--pink-deep); font-weight: 800; }
.term .official { display: inline-block; margin-top: 4px; font-family: var(--font-display); font-size: 1.3rem; background: var(--lav); border-radius: 8px; padding: 0 10px; }
.activity h3, .quiz h3 { display: flex; align-items: center; gap: 10px; }
.sort-list { display: grid; gap: 12px; padding: 0; margin: 14px 0; list-style: none; }
.sort-item { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; }
.sort-item p { margin: 0 0 8px; font-weight: 700; }
.sort-item .choices { display: flex; flex-wrap: wrap; gap: 8px; }
.sort-item.right { background: var(--mint); }
.sort-item.wrong { animation: wiggle .35s ease; border-color: var(--danger); }
.feedback { margin: 8px 0 0; font-size: .98rem; }
.feedback.good { color: var(--mint-deep); font-weight: 800; }
.feedback.hmm { color: var(--danger); font-weight: 800; }
.quiz fieldset { border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); margin: 0 0 16px; padding: 14px 16px; }
.quiz legend { font-weight: 800; padding: 0 8px; font-size: 1.05rem; }
.quiz label { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.quiz label:hover { background: var(--pink-soft); }
.quiz input[type="radio"] { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--pink-deep); flex: none; }
.quiz .q-right legend { color: var(--mint-deep); }
.quiz .q-wrong legend { color: var(--danger); }
.result-box { border: 3px solid var(--ink); border-radius: 16px; padding: 14px 18px; background: var(--butter); }
.result-box.win { background: var(--mint); }
.complete-sticker { display: inline-grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 8%, var(--butter) 9% 60%, #ffd45e 61%); border: 4px solid var(--ink); font: 400 1.25rem/1.1 var(--font-display); text-align: center; transform: rotate(-8deg); box-shadow: 4px 4px 0 var(--pink); padding: 10px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- planner ---------- */
.stepper { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 12px; list-style: none; }
.stepper button { appearance: none; cursor: pointer; font: 800 .82rem/1 var(--font-body); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 7px 11px; min-height: 36px; }
.stepper button[aria-current="step"] { background: var(--pink-deep); color: #fff; }
.stepper button.done { background: var(--mint); }
.stepper button[disabled] { opacity: .5; cursor: not-allowed; }
.denise-says { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.denise-says .bubble { background: var(--lav-soft); border: 2px solid var(--ink); border-radius: 18px; padding: 12px 16px; position: relative; flex: 1; }
.denise-says .avatar-mini { width: 54px; height: 54px; flex: none; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding: 0; list-style: none; margin: 0; }
.tpl { appearance: none; text-align: left; cursor: pointer; width: 100%; height: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); display: block; }
.tpl:hover { background: var(--pink-soft); }
.tpl[aria-pressed="true"] { background: var(--mint); box-shadow: var(--shadow-pink); }
.tpl .em { font-size: 2rem; display: block; line-height: 1.1; }
.tpl strong { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; display: block; margin: 4px 0; }
.tpl span.b { font-size: .95rem; color: var(--muted); display: block; }
.tpl[aria-disabled="true"] { opacity: .6; cursor: not-allowed; border-style: dashed; box-shadow: none; }
.field { display: block; margin: 0 0 14px; }
.field > span, .field > label { display: block; font-weight: 800; margin-bottom: 4px; }
.field small { display: block; color: var(--muted); font-weight: 400; }
input[type="text"], input[type="number"], input[type="date"], select, textarea { width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 12px; min-height: 44px; }
textarea { min-height: 84px; resize: vertical; }
.rows { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.row { display: grid; gap: 8px 10px; align-items: end; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 12px; }
.row .f > label { display: block; font-weight: 800; font-size: .82rem; color: var(--muted); margin-bottom: 2px; }
.row .del { align-self: end; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
.step-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs button { appearance: none; cursor: pointer; font: 800 1rem/1 var(--font-body); color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; padding: 10px 18px; min-height: 44px; }
.tabs button[aria-selected="true"] { background: var(--lav); box-shadow: 3px 3px 0 var(--ink); }

/* plan sheet (printable one-pager) */
.sheet { background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-pink); }
.sheet h2 { font-size: 2.2rem; margin: 0; }
.sheet .sub { color: var(--muted); margin: 0 0 12px; }
.sheet h3 { font-size: 1.3rem; margin: 16px 0 4px; padding-bottom: 2px; border-bottom: 3px dotted var(--pink); }
.sheet ul { margin: 0; padding-left: 1.2em; }
.sheet table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sheet th, .sheet td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--lav); vertical-align: top; }
.sheet th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sheet .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
@media (max-width: 700px) { .sheet .grid2 { grid-template-columns: 1fr; } .sheet { padding: 16px; } .table-wrap { overflow-x: auto; } }
.goal-line { background: var(--butter); border: 2px dashed var(--ink); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }

/* board */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .board { grid-template-columns: 1fr; } }
.col { border: 3px solid var(--ink); border-radius: 18px; padding: 12px; min-height: 160px; background: var(--paper); }
.col.over { background: var(--pink-soft); }
.col h3 { font-size: 1.4rem; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.col[data-status="todo"] { background: var(--lav-soft); } .col[data-status="doing"] { background: #fff8d6; } .col[data-status="done"] { background: var(--mint); }
.task { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 10px 12px; margin: 0 0 10px; cursor: grab; box-shadow: 2px 2px 0 var(--ink); }
.task.dragging { opacity: .5; }
.task p { margin: 0 0 6px; font-weight: 700; line-height: 1.35; }
.task .meta { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.task .moves { display: flex; gap: 6px; flex-wrap: wrap; }
.task .moves button { appearance: none; cursor: pointer; font: 800 .8rem/1 var(--font-body); color: var(--ink); background: var(--lav); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 10px; min-height: 32px; }
.col ul { list-style: none; margin: 0; padding: 0; min-height: 60px; }

/* timeline */
.tl-wrap { overflow-x: auto; border: 3px solid var(--ink); border-radius: 18px; background: #fff; padding: 10px; }
.tl { display: grid; min-width: 640px; gap: 4px 0; align-items: center; }
.tl .wk { text-align: center; font: 800 .75rem/1 var(--font-body); color: var(--muted); padding: 4px 0; border-left: 1px dashed var(--lav); }
.tl .lab { font-weight: 700; font-size: .92rem; padding: 4px 10px 4px 2px; line-height: 1.25; }
.tl .bar { height: 22px; border-radius: 999px; background: var(--pink); border: 2px solid var(--ink); }
.tl .bar.done { background: var(--mint); }
.tl .bar.doing { background: var(--butter); }
.tl .star { text-align: center; font-size: 1.3rem; line-height: 1; color: var(--pink-deep); }
.tl .gridline { border-left: 1px dashed var(--lav); height: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .9rem; margin: 10px 0 0; }

/* ---------- glossary & badges ---------- */
.gloss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.gloss { background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); transform: rotate(var(--tilt, 0deg)); }
.gloss:target { background: var(--butter); outline: 3px solid var(--pink-deep); }
.gloss dt, .gloss h3 { margin: 0 0 4px; font-size: 1.5rem; }
.gloss .official { font-weight: 800; color: var(--lav-deep); font-size: .9rem; }
.gloss p { margin: 4px 0 0; font-size: 1rem; }
.search { max-width: 420px; margin-bottom: 18px; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.badge { text-align: center; padding: 16px 10px; background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); }
.badge .disc { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 8px; border-radius: 50%; border: 4px solid var(--ink); font-size: 2.6rem; background: radial-gradient(circle at 35% 30%, #fff, var(--butter) 55%, #ffd45e); box-shadow: 3px 3px 0 var(--pink); }
.badge.locked .disc { background: var(--lav-soft); filter: grayscale(1); opacity: .55; box-shadow: none; border-style: dashed; }
.badge.locked { border-style: dashed; box-shadow: none; background: var(--lav-soft); }
.badge strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.2; }
.badge span.st { font-size: .85rem; font-weight: 800; color: var(--muted); }

/* ---------- footer, dialog, toasts, effects ---------- */
.site-footer { background: var(--paper); border-top: 3px solid var(--ink); padding: 22px 16px 30px; margin-top: 30px; }
.footer-inner { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; font-size: .95rem; }
.footer-inner p { margin: 0; }
dialog { border: 3px solid var(--ink); border-radius: 20px; padding: 22px; max-width: 440px; width: calc(100% - 32px); background: var(--paper); color: var(--ink); box-shadow: 6px 6px 0 var(--pink); }
dialog::backdrop { background: rgba(58, 37, 80, .55); }
.toast-zone { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast { background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 16px; font-weight: 700; text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); animation: pop .3s ease; }
.toast.badge-toast { background: var(--lav-deep); }
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall linear forwards; }
.spark { position: fixed; pointer-events: none; z-index: 85; color: var(--pink-deep); font-size: 14px; line-height: 1; animation: twinkle .7s ease-out forwards; }
.trail-dot { position: fixed; pointer-events: none; z-index: 85; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; animation: fade .6s ease-out forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .9; } }
@keyframes twinkle { 0% { transform: scale(.3) rotate(0); opacity: 1; } 100% { transform: translateY(-22px) scale(1.2) rotate(120deg); opacity: 0; } }
@keyframes fade { to { transform: scale(.2); opacity: 0; } }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wiggle { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fx-layer, .spark, .trail-dot { display: none !important; }
  .btn:hover { transform: none; }
}

/* ---------- print: only the plan sheet and timeline ---------- */
@media print {
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .no-print, .skip, .toast-zone, .tabs, .stepper, .denise-says, .step-nav, .fx-layer { display: none !important; }
  main { max-width: none; padding: 0; }
  .sheet { box-shadow: none; border: 2px solid #000; break-inside: auto; }
  .print-only-block { display: block !important; }
  .tl-wrap { border: 2px solid #000; overflow: visible; }
  .tl { min-width: 0; }
  #panel-board { display: none !important; }
  #panel-sheet, #panel-timeline { display: block !important; }
  a { color: #000; text-decoration: none; }
}

/* planner row collapse on phones */
@media (max-width: 700px) { .row { grid-template-columns: 1fr !important; } .row .del { justify-self: start; } }
.empty-note { color: var(--muted); font-style: italic; margin: 0 0 10px; }
.goal-preview { background: var(--butter); border: 2px dashed var(--ink); border-radius: 14px; padding: 12px 16px; margin: 6px 0 16px; }
.existing { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.total-line { font-weight: 800; margin: 0 0 14px; }

/* make the hidden attribute always win over component display rules */
[hidden] { display: none !important; }

/* ---------- more sparkle: floaties, emoji bursts, art, toggles ---------- */
.floaties { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.floaties span { position: absolute; opacity: .9; animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
.emoji-burst { position: fixed; z-index: 90; pointer-events: none; font-size: 24px; line-height: 1; animation: burst 1s ease-out forwards; }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.3) rotate(25deg); opacity: 0; } }
main, .site-header, .site-footer { position: relative; z-index: 1; }
.toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.art { display: block; max-width: 100%; height: auto; }
.art-float { float: right; width: min(210px, 42%); margin: 0 0 8px 16px; }
.art-sm { width: 120px; margin: 0 auto 6px; }
.page-title-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.page-title-row .art { width: 170px; flex: none; }
.card::after { content: ""; display: table; clear: both; }
.sticker-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 28px; padding: 0; list-style: none; }
.sticker-strip li { font-size: 2rem; background: var(--paper); border: 3px solid var(--ink); border-radius: 50%; width: 62px; height: 62px; display: grid; place-items: center; box-shadow: 3px 3px 0 var(--pink); transform: rotate(var(--r, 0deg)); }
@media (prefers-reduced-motion: reduce) { .floaties span { animation: none !important; } .emoji-burst { display: none !important; } }
@media print { .floaties, .emoji-burst { display: none !important; } }
@media (max-width: 760px) { .art-float { float: none; margin: 0 auto 12px; width: 150px; } .floaties span { opacity: .6; } }

/* compact header: logo + toggles on the first row, nav below */
.header-inner nav { order: 3; width: 100%; }
.header-inner .toggles { order: 2; margin-left: auto; }
.header-inner .nav { margin-left: 0; }

/* ---------- marketing extras: calculators and metric cards ---------- */
.calc { display: grid; gap: 16px; }
.calc-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.calc .field { margin: 0; }
.calc .affix { display: flex; align-items: center; gap: 6px; }
.calc .affix span { font-weight: 800; color: var(--muted); }
.calc-outputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.calc-out { background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; padding: 12px 14px; box-shadow: 3px 3px 0 var(--pink); }
.calc-out .k { display: block; font-weight: 800; font-size: .9rem; color: var(--muted); }
.calc-out .v { display: block; font: 400 2rem/1.1 var(--font-display); color: var(--pink-deep); }
.calc-out .n { display: block; font-size: .88rem; color: var(--muted); }
.calc-out.good { background: var(--mint); } .calc-out.warn { background: var(--butter); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; padding: 0; margin: 0; list-style: none; }
.metric-card { background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.metric-card h2 { font-size: 1.7rem; margin: 0; }
.metric-card .formula { font-family: ui-monospace, Menlo, monospace; background: var(--butter); border: 2px dashed var(--ink); border-radius: 10px; padding: 6px 10px; font-size: .92rem; }
.metric-card .rule { font-size: .92rem; color: var(--muted); margin: 0; }
.metric-card details { border-top: 2px dotted var(--pink); padding-top: 8px; }
.metric-card summary { cursor: pointer; font-weight: 800; color: var(--lav-deep); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.pill-row button { appearance: none; cursor: pointer; font: 800 .9rem/1 var(--font-body); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 14px; min-height: 40px; }
.pill-row button[aria-pressed="true"] { background: var(--pink-deep); color: #fff; }
.biz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1em; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); }
h1, h2, h3, .washi, .logo, .sign { letter-spacing: 0; font-weight: 800; }
.logo small, .washi { font-weight: 800; }

.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 14px; clear: both; }
.case { background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; padding: 14px; box-shadow: 3px 3px 0 var(--pink); }
.case p { margin: 8px 0 0; font-size: 1rem; line-height: 1.55; }
.case-head { display: flex; align-items: center; gap: 12px; }
.case-head strong { display: block; font: 400 1.35rem/1.1 var(--font-display); }
.case-em { font-size: 2rem; line-height: 1; }

.about-card { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
@media (max-width: 600px) { .about-card { grid-template-columns: 1fr; } }
.cast .card { text-align: center; }
.cast .big-em { font-size: 3rem; display: block; line-height: 1.1; margin-bottom: 6px; }

/* polish */
.page-title-row > div { flex: 1 1 360px; min-width: 0; }
.page-title-row .art { width: 150px; }
.calc .field { display: flex; flex-direction: column; justify-content: flex-end; }

/* ---------- sales extras: psychology cards, stats, scripts ---------- */
.psy-grid, .stat-grid, .script-grid { display: grid; gap: 20px; padding: 0; margin: 0; list-style: none; }
.psy-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.stat-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.script-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.psy-card, .stat-card, .script-card { background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.psy-card h2, .stat-card h2, .script-card h2 { font-size: 1.45rem; margin: 0; }
.psy-card .src, .stat-card .src { font-size: .85rem; color: var(--muted); margin: 0; }
.psy-card details, .stat-card details { border-top: 2px dotted var(--pink); padding-top: 8px; }
.psy-card summary, .stat-card summary { cursor: pointer; font-weight: 800; color: var(--lav-deep); }
.psy-card ul { margin: 6px 0 0; padding-left: 1.1em; }
.psy-card li { margin: 0 0 6px; font-size: .97rem; }
.kind { background: var(--mint); border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px; font-size: .95rem; margin: 0; }
.dont { background: var(--pink-soft); border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px; font-size: .95rem; margin: 0; }
.big-stat { font: 800 2.2rem/1.1 var(--font-display); color: var(--pink-deep); margin: 0; }
.conf { display: inline-block; font-weight: 800; font-size: .8rem; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--ink); }
.conf.solid { background: var(--mint); } .conf.care { background: var(--butter); } .conf.myth { background: var(--pink-soft); }
.script-card pre { white-space: pre-wrap; word-break: break-word; font: 400 .97rem/1.55 var(--font-body); background: var(--lav-soft); border: 2px dashed var(--ink); border-radius: 12px; padding: 12px; margin: 0; }
.script-card .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.section-title { margin: 30px 0 12px; }

/* Sniglet runs large, so scale type down a notch */
h1 { font-size: clamp(1.9rem, 4.8vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.8rem); }
h3 { font-size: 1.25rem; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3rem); }
.logo { font-size: 1.4rem; }
.washi { font-size: 1.05rem; padding: 6px 22px; }
.sign { font-size: 1.5rem; }
.psy-card h2, .stat-card h2, .script-card h2 { font-size: 1.2rem; }
.big-stat { font-size: 1.7rem; }
.case-head strong, .case-head .case-em + div strong { font-size: 1.1rem; }
.calc-out .v { font-size: 1.6rem; }
.page-title-row .art { width: 140px; }
.cast { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.nav a { padding: 8px 9px; font-size: .9rem; }
.lesson-tile h3, .tpl strong, .badge strong { font-size: 1.15rem; }

/* ---------- family bar (shared across Denise Explains sites) ---------- */
.family-bar { background: var(--ink); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 6px 16px; font: 800 .85rem/1.2 var(--font-body); position: relative; z-index: 6; }
.family-bar a { color: #fff; text-decoration: none; padding: 5px 11px; border-radius: 999px; display: inline-block; }
.family-bar a:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.family-bar a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.family-bar .fam-brand { font: 400 1.15rem/1 var(--font-display); font-weight: 800; padding-left: 0; letter-spacing: .01em; }
.family-bar ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.family-bar a[aria-current="page"] { background: #fff; color: var(--ink); }
@media print { .family-bar { display: none !important; } }

.play-card-grid, .play-grid { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 0; margin: 0 0 30px; list-style: none; }
.play-card { background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.play-card h2 { margin: 0; font-size: 1.5rem; }
.play-card h3 { margin: 6px 0 2px; font-size: 1.1rem; }
.play-card ul, .play-card ol { margin: 0; padding-left: 1.2em; } .play-card li { margin: 0 0 6px; }
.tech { list-style: none; padding-left: 0 !important; display: grid; gap: 8px; }
.tech li { background: var(--lav-soft); border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px; margin: 0; }
.tech .sticker a { color: inherit; }
.play-card details { border-top: 2px dotted var(--pink); padding-top: 8px; } .play-card summary { cursor: pointer; font-weight: 800; color: var(--lav-deep); }
.start-pick { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; } .start-pick legend { font: 800 1.1rem/1.4 var(--font-body); margin-bottom: 8px; }
.radio-row { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 14px; cursor: pointer; }
.radio-row input { width: 22px; height: 22px; accent-color: var(--pink-deep); flex: none; }
.radio-row:has(input:checked) { background: var(--mint); }

/* keep label stickers compact inside grid cards */
.metric-card > .sticker, .play-card > .sticker, .psy-card > .sticker, .stat-card > .conf, .tpl-card > .sticker { justify-self: start; }
