/* ============================================================
   LikeYou · Executive Function Strengths Quiz
   Calm, low-glare, brand-matched. Quicksand (display) + Figtree (body).
   ============================================================ */

:root {
  --navy: #00114c;
  --ink: #1b2a5e;
  --ink-soft: #3a4a7e;
  --muted: #5c6a94;
  --faint: #8b96b8;

  --bg: #eef3fc;
  --bg-2: #fafcff;
  --card: #ffffff;
  --line: #dbe4f4;
  --line-soft: #e8eef9;

  --brand: #0f62c4;
  --brand-deep: #0d55ab;
  --brand-bright: #24a6ee;
  --brand-wash: #eaf3ff;

  --plan: #1d6fc2;
  --time: #0f8f7e;
  --org: #b0770e;
  --emo: #d05f7c;
  --behav: #7a63d2;

  --radius: 22px;
  --radius-s: 14px;
  --shadow:
    0 1px 2px rgba(9, 24, 66, 0.05),
    0 10px 34px -12px rgba(9, 24, 66, 0.14);
  --shadow-soft:
    0 1px 2px rgba(9, 24, 66, 0.04),
    0 6px 20px -10px rgba(9, 24, 66, 0.1);

  --font-display: 'Quicksand', 'Trebuchet MS', sans-serif;
  --font-body: 'Figtree', 'Avenir Next', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 85% -10%, #dcebff 0%, rgba(220, 235, 255, 0) 60%),
    radial-gradient(900px 700px at -15% 30%, #e7f0ff 0%, rgba(231, 240, 255, 0) 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #cfe4ff; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--brand-bright);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- layout shell ---------- */

.shell {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.wordmark img { width: 34px; height: 34px; display: block; }
.wordmark span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.topbar .quiz-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 999px;
  white-space: nowrap;
}

main { display: block; }

/* view transitions */
.view { animation: rise 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- shared bits ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sparkle { color: var(--brand-bright); flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  padding: 15px 30px;
  box-shadow: 0 8px 22px -8px rgba(15, 98, 196, 0.55);
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  text-decoration: none;
}
.btn:hover { background: var(--brand-deep); color: #fff; }
.btn:active { transform: scale(0.985); }

.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-soft);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 12px 22px;
  transition: border-color 0.18s ease, background 0.18s ease;
  text-decoration: none;
}
.btn-quiet:hover { border-color: #b9cbe9; background: #f6faff; color: var(--ink); }

.linkish {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linkish:hover { color: var(--ink); }

.finept {
  font-size: 0.84rem;
  color: var(--faint);
  line-height: 1.55;
}

/* ---------- welcome ---------- */

.hero {
  max-width: 720px;
  margin: 3vh auto 0;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-deep);
  background: var(--brand-wash);
  border: 1px solid #d3e5fb;
  border-radius: 999px;
  padding: 7px 15px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(1.9rem, 5.4vw, 2.9rem);
  font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero .lede {
  max-width: 56ch;
  margin: 18px auto 0;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.expectations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
  margin: 30px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.expectations li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.expectations .sparkle { margin-top: 3px; }

.hero-cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; }

.resume-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 14px 18px;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.what-ef {
  max-width: 620px;
  margin: 40px auto 0;
  text-align: left;
}
.what-ef details {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-s);
  padding: 4px 18px;
}
.what-ef summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  padding: 10px 0;
}
.what-ef summary::marker { color: var(--brand-bright); }
.what-ef p { padding: 2px 0 14px; color: var(--ink-soft); font-size: 0.98rem; }

.hero .finept { margin-top: 26px; }

/* ---------- quiz ---------- */

.quiz-wrap { max-width: 640px; margin: 0 auto; }

.progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.progress-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.progress-sub { font-size: 0.85rem; color: var(--faint); }

.progress-track {
  display: flex;
  gap: 5px;
  height: 8px;
  margin-bottom: 26px;
}
.progress-seg {
  flex: 1;
  border-radius: 99px;
  background: #dde6f5;
  overflow: hidden;
  position: relative;
}
.progress-seg > i {
  position: absolute;
  inset: 0;
  transform-origin: left;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-bright) 100%);
  border-radius: 99px;
  transform: scaleX(var(--fill, 0));
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.milestone {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #eaf3ff 0%, #f2f9ff 100%);
  border: 1px solid #d3e5fb;
  border-radius: var(--radius-s);
  padding: 11px 15px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--brand-deep);
  animation: rise 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.qcard { padding: clamp(22px, 4.5vw, 34px); }

.qcard .context {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--faint);
}

.statement {
  font-size: clamp(1.32rem, 3.6vw, 1.62rem);
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--navy);
  line-height: 1.38;
  margin: 10px 0 24px;
  min-height: 2.6em;
}

.answers { display: grid; gap: 10px; }

.answer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 13px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  font-size: 1.04rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.answer:hover { border-color: #a8c3ea; background: #f6faff; }
.answer:active { transform: scale(0.99); }
.answer kbd {
  font: 600 0.78rem/1 var(--font-body);
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 7px;
  background: #f7fafe;
}
.answer[aria-pressed='true'] {
  border-color: var(--brand);
  background: var(--brand-wash);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.answer .picked-mark { display: none; color: var(--brand); }
.answer[aria-pressed='true'] .picked-mark { display: inline-flex; }
.answer[aria-pressed='true'] kbd { display: none; }

.quiz-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  min-height: 40px;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.back-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.85); }
.quiz-foot .hint { font-size: 0.85rem; color: var(--faint); }

/* ---------- gate ---------- */

.gate {
  max-width: 620px;
  margin: 4vh auto 0;
  padding: clamp(26px, 5vw, 42px);
  text-align: center;
}
.gate .sparkle-lg {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  color: var(--brand-bright);
  animation: twinkle 2.6s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(0.88) rotate(9deg); opacity: 0.8; }
}
.gate h2 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); }
.gate .tease {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  background: var(--brand-wash);
  border: 1px solid #d3e5fb;
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--brand-deep);
}
.gate .pitch {
  max-width: 46ch;
  margin: 20px auto 0;
  color: var(--ink-soft);
}
.gate .gate-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.gate .finept { margin-top: 20px; }

/* lead form */
.lead-form {
  display: grid;
  gap: 15px;
  max-width: 380px;
  margin: 26px auto 0;
  text-align: left;
}
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.field label .opt {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--faint);
  font-size: 0.8rem;
  margin-left: 6px;
}
.field input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}
.field input:hover { border-color: #b9cbe9; }
.field input:focus-visible {
  outline: 3px solid var(--brand-bright);
  outline-offset: 1px;
  border-color: var(--brand);
}
.field input[aria-invalid='true'] { border-color: #c2597a; }
.field-err {
  font-size: 0.85rem;
  color: #a83a57;
  margin-top: 5px;
}
.field-err:empty { display: none; }
.lead-form .btn { width: 100%; margin-top: 4px; }
.lead-form .btn:disabled { opacity: 0.72; cursor: default; }
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- results ---------- */

.results-head { text-align: center; max-width: 700px; margin: 1vh auto 0; }
.results-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.results-head h1 {
  font-size: clamp(1.9rem, 5.2vw, 2.7rem);
  margin-top: 10px;
}
.results-head h1 em { font-style: normal; color: var(--brand); }
.results-head .arch-line {
  max-width: 52ch;
  margin: 14px auto 0;
  font-size: 1.06rem;
  color: var(--ink-soft);
}
.profile-note {
  max-width: 56ch;
  margin: 18px auto 0;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-s);
  padding: 14px 18px;
  font-size: 0.98rem;
  color: var(--ink-soft);
  text-align: left;
}

.chart-panel {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  margin: 36px auto 0;
  padding: clamp(22px, 4vw, 38px);
  max-width: 900px;
}
@media (max-width: 760px) {
  .chart-panel { grid-template-columns: 1fr; justify-items: center; }
}

.chart-box { position: relative; width: 100%; max-width: 420px; margin: 0 auto; }
.chart-box svg { display: block; width: 100%; height: auto; }

.ring-val { stroke-width: 30; }

/* ---- ambient chart motion (opt-out via the stillness checkbox) ----
   Animated on the HTML wrapper + SVG paint properties only — cross-browser safe. */
.flower-wrap { display: block; }
.chart-box.alive .flower-wrap {
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3.2deg) scale(1); }
  50% { transform: translateY(-12px) rotate(3.2deg) scale(1.035); }
}
.chart-box.alive .rim { animation: dotcrawl 10s linear infinite; }
@keyframes dotcrawl { to { stroke-dashoffset: -65; } }
.chart-box.alive .hub-spark { animation: hubtwinkle 2.6s ease-in-out infinite; }
@keyframes hubtwinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.chart-box.alive .ring-val { animation: breath 4.6s ease-in-out infinite; }
.chart-box.alive .arc-g:nth-of-type(2) .ring-val { animation-delay: 0.8s; }
.chart-box.alive .arc-g:nth-of-type(3) .ring-val { animation-delay: 1.6s; }
.chart-box.alive .arc-g:nth-of-type(4) .ring-val { animation-delay: 2.4s; }
.chart-box.alive .arc-g:nth-of-type(5) .ring-val { animation-delay: 3.2s; }
@keyframes breath {
  0%, 100% { stroke-width: 30; }
  50% { stroke-width: 35; }
}
/* legend dots pulse in sympathy with the flower */
.chart-panel:has(.chart-box.alive) .legend-dot { animation: dotpulse 2.8s ease-in-out infinite; }
.chart-panel:has(.chart-box.alive) .legend-row:nth-child(2) .legend-dot { animation-delay: 0.55s; }
.chart-panel:has(.chart-box.alive) .legend-row:nth-child(3) .legend-dot { animation-delay: 1.1s; }
.chart-panel:has(.chart-box.alive) .legend-row:nth-child(4) .legend-dot { animation-delay: 1.65s; }
.chart-panel:has(.chart-box.alive) .legend-row:nth-child(5) .legend-dot { animation-delay: 2.2s; }
@keyframes dotpulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.45); }
}

/* drifting sparkles over the chart — pure whimsy, HTML-animated */
.firefly {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  display: none;
}
.chart-box.alive .firefly {
  display: block;
  animation: firefly var(--fdur, 8s) ease-in-out infinite;
  animation-delay: var(--fdelay, 0s);
  filter: drop-shadow(0 0 7px currentColor);
}
.firefly:nth-of-type(1) { left: 8%;  top: 64%; --fdur: 8s;   --fdelay: 0s;   color: #24a6ee; }
.firefly:nth-of-type(2) { left: 74%; top: 86%; --fdur: 9.5s; --fdelay: 2.2s; color: #d05f7c; }
.firefly:nth-of-type(3) { left: 88%; top: 40%; --fdur: 8.5s; --fdelay: 4.6s; color: #0f8f7e; }
.firefly:nth-of-type(4) { left: 4%;  top: 30%; --fdur: 10s;  --fdelay: 6.4s; color: #7a63d2; }
.firefly:nth-of-type(5) { left: 46%; top: 90%; --fdur: 9s;   --fdelay: 8.2s; color: #b0770e; }
@keyframes firefly {
  0%   { transform: translate(0, 0) scale(0.75) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(22px, -100px) scale(1.15) rotate(50deg); opacity: 1; }
  75%  { opacity: 0.85; }
  100% { transform: translate(-16px, -205px) scale(0.6) rotate(100deg); opacity: 0; }
}

.chart-legend { display: grid; gap: 8px; width: 100%; }
.legend-row {
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-s);
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.legend-row:hover, .legend-row.active { background: #f4f8ff; border-color: var(--line); }
.legend-dot { width: 13px; height: 13px; border-radius: 50%; }
.legend-name { font-weight: 600; color: var(--ink); font-size: 0.99rem; }

/* strength cards */
.cards-title { text-align: center; margin: 52px 0 6px; font-size: 1.5rem; }
.cards-sub { text-align: center; color: var(--muted); font-size: 0.97rem; max-width: 52ch; margin: 0 auto; }

.strength-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.strength-card {
  padding: 22px 22px 20px;
  border-top: 4px solid var(--accent, var(--brand));
  scroll-margin-top: 20px;
}
.strength-card h3 { font-size: 1.12rem; }
.strength-card .what {
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--faint);
}
.strength-card .blurb { margin-top: 12px; color: var(--ink-soft); font-size: 0.97rem; }
.strength-card .tip {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 11px 13px;
  background: #f7fafe;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.strength-card .tip .sparkle { margin-top: 2px; }

/* numbers section */
.numbers { max-width: 720px; margin: 40px auto 0; }
.numbers details {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-s);
  padding: 6px 20px;
}
.numbers summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 10px 0;
  color: var(--ink);
}
.numbers summary::marker { color: var(--brand-bright); }
.numbers .tbl-wrap { overflow-x: auto; }
.numbers table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin: 8px 0 6px;
}
.numbers th, .numbers td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.numbers th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--muted);
}
.numbers td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.numbers td:first-child { font-weight: 600; color: var(--ink); white-space: normal; }
.numbers .note { font-size: 0.88rem; color: var(--muted); padding: 6px 0 14px; }

/* results CTA */
.cta-band {
  margin: 52px auto 0;
  max-width: 860px;
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
  background: linear-gradient(135deg, #072162 0%, var(--navy) 60%, #001038 100%);
  border: none;
  border-radius: calc(var(--radius) + 4px);
  color: #dfe9ff;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 80% -20%, rgba(36, 166, 238, 0.28) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 2rem); }
.cta-band p { max-width: 54ch; margin: 14px auto 0; color: #c3d3f5; }
.cta-band .cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}
.cta-band .btn { background: #fff; color: var(--navy); box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.5); }
.cta-band .btn:hover { background: #eaf3ff; }
.cta-band .btn-quiet { background: transparent; color: #dfe9ff; border-color: rgba(223, 233, 255, 0.35); }
.cta-band .btn-quiet:hover { border-color: rgba(223, 233, 255, 0.7); background: rgba(255, 255, 255, 0.06); color: #fff; }

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

/* footer */
.foot {
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.foot .finept a { color: var(--muted); }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.foot-brand img { width: 22px; height: 22px; }
.foot-brand span { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1rem; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 0.93rem;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.25s ease, translate 0.25s ease;
  z-index: 50;
  pointer-events: none;
}
.toast.show { opacity: 1; translate: 0 0; }

/* confetti-sparkles on results (gentle, one-shot) */
.sparkle-fall {
  position: fixed;
  top: -20px;
  z-index: 40;
  pointer-events: none;
  animation: fall var(--dur, 2.4s) ease-in forwards;
  opacity: 0.9;
}
@keyframes fall {
  to { transform: translateY(105vh) rotate(200deg); opacity: 0; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- motion & preference guards ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .sparkle-fall { display: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .expectations { grid-template-columns: 1fr; }
  .answer kbd { display: none; }
  .topbar { padding-bottom: 18px; }
  .topbar .quiz-tag { display: none; }
}
