/* =========================================================================
   ADHD or Not — stylesheet
   Design idea: a clinical intake form that stopped taking itself seriously.
   Strict grid + mono labels (the "form") vs. acid colour, stickers and a
   slight tilt on everything (the "lost it").
   ========================================================================= */

/* ---- 1. Tokens ---------------------------------------------------------- */
:root {
  --bg:        #14141a;
  --bg-2:      #1a1a22;
  --surface:   #1f1f29;
  --surface-2: #262633;
  --line:      rgba(255, 255, 255, 0.10);
  --line-2:    rgba(255, 255, 255, 0.18);

  --ink:       #f3f1ec;
  --ink-dim:   #b7b3c2;
  --ink-mute:  #86828f;

  --lime:      #c9f24d;
  --coral:     #ff6b5e;
  --violet:    #b08cff;
  --cyan:      #57d9ff;
  --amber:     #ffc44d;

  /* Emoji families sit before the generic fallback so a missing glyph falls
     through to a real emoji font instead of rendering as a tofu box. */
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", "Segoe UI Symbol";
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, var(--emoji), sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", var(--emoji), monospace;

  --shell:  46rem;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px -24px rgba(0,0,0,.9);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1rem; text-wrap: pretty; }
img, svg { max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

kbd {
  font-family: var(--font-mono);
  font-size: .72em;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: .1em .38em;
  background: var(--surface-2);
}

/* ---- 3. Backdrop -------------------------------------------------------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  /* Faint graph-paper grid — the "clinical form" half of the idea. */
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 38px 38px;
}

.blob {
  position: absolute;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .17;
  will-change: transform;
}
.blob--1 { top: -18rem; left: -14rem; background: var(--lime);   animation: drift 34s var(--ease) infinite alternate; }
.blob--2 { top: 30%;    right: -20rem; background: var(--violet); animation: drift 41s var(--ease) infinite alternate-reverse; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6rem, 8rem, 0) scale(1.18); }
}

/* Scroll progress beam, injected by app.js. Yes, it's a distraction meter. */
.scrollbeam {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  z-index: 60;
  transition: width .1s linear;
}

/* ---- 4. Furniture ------------------------------------------------------- */
.masthead {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 1.4rem 1.25rem .6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.05rem;
}
.wordmark__mark {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  overflow: visible;
  color: var(--ink);
  transition: transform .35s var(--ease);
}
.wordmark:hover .wordmark__mark { transform: rotate(-10deg) scale(1.12); }
.wordmark__text em { font-style: normal; color: var(--ink-mute); }

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .9rem;
}
.masthead__nav a { color: var(--ink-dim); text-decoration: none; }
.masthead__nav a:hover { color: var(--ink); }
.masthead__nav a[aria-current] { color: var(--lime); }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.footer {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--ink-mute);
}
.footer__disclaimer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: .95rem 1.1rem;
  line-height: 1.55;
}
.footer__disclaimer strong { color: var(--ink-dim); }
.footer__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.footer__dot { opacity: .4; }
.footer a { color: var(--ink-dim); }

/* ---- 5. Bits and pieces ------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink-mute);
  margin: 0 0 .9rem;
}
.eyebrow::before { content: "// "; color: var(--lime); }
.eyebrow--center { text-align: center; }

.hl {
  position: relative;
  white-space: nowrap;
  padding: 0 .06em;
}
/* Rough marker-pen highlight sitting behind the word. */
.hl::after {
  content: "";
  position: absolute;
  left: -.06em; right: -.06em; bottom: .06em;
  height: .34em;
  z-index: -1;
  border-radius: 3px;
  transform: rotate(-.8deg);
}
.hl--lime::after  { background: rgba(201, 242, 77, .32); }
.hl--coral::after { background: rgba(255, 107, 94, .32); }

.sticker {
  position: absolute;
  top: -.5rem; right: .25rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #16160f;
  background: var(--lime);
  padding: .5rem .7rem;
  border-radius: 999px;
  transform: rotate(9deg);
  box-shadow: 0 8px 20px -10px rgba(201, 242, 77, .8);
  animation: sticker-wobble 6s ease-in-out infinite;
}
@keyframes sticker-wobble {
  0%, 100% { transform: rotate(9deg); }
  50%      { transform: rotate(4deg) translateY(-3px); }
}

/* ---- 5b. Icons --------------------------------------------------------- */
/* The sprite itself must never paint. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
  color: inherit;
}

.domain-card__icon {
  width: 1.6rem;
  height: 1.6rem;
  display: block;
  margin-bottom: .75rem;
  color: var(--lime);
  transition: transform .25s var(--ease);
}
/* Cycle the accents so six cards don't read as one flat wall of lime. */
.domain-card:nth-child(6n + 2) .domain-card__icon { color: var(--cyan); }
.domain-card:nth-child(6n + 3) .domain-card__icon { color: var(--amber); }
.domain-card:nth-child(6n + 4) .domain-card__icon { color: var(--coral); }
.domain-card:nth-child(6n + 5) .domain-card__icon { color: var(--violet); }
.domain-card:hover .domain-card__icon { transform: scale(1.12) rotate(-6deg); }

.trustline .icon { width: 1rem; height: 1rem; opacity: .85; }

.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink-mute);
  font: inherit;
  font-size: .85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.linkish:hover { color: var(--ink); }

/* ---- 6. Buttons --------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--lime);
  --btn-fg: #16160f;
  border-color: transparent;
  box-shadow: 0 12px 30px -16px rgba(201, 242, 77, .9);
}
.btn--primary:hover { --btn-bg: #d7ff62; }

.btn--ghost { --btn-bg: transparent; }
.btn--ghost:hover { --btn-bg: var(--surface-2); }

.btn--quiet {
  --btn-bg: transparent;
  --btn-fg: var(--ink-dim);
  border-color: var(--line);
}
.btn--quiet:hover { --btn-fg: var(--ink); border-color: var(--line-2); }

.btn--lg { padding: .95rem 1.5rem; font-size: 1.02rem; }
.btn--sm { padding: .45rem .8rem; font-size: .82rem; }
.btn__meta { opacity: .6; transition: transform .16s var(--ease); }
.btn:hover .btn__meta { transform: translateX(3px); }

/* ---- 7. Banners --------------------------------------------------------- */
.banner {
  border-radius: var(--radius);
  padding: .85rem 1.05rem;
  font-size: .92rem;
  border: 1px solid var(--line);
  background: var(--surface);
  margin: 0 0 1.75rem;
}
.banner--warn   { border-left: 3px solid var(--coral); }
.banner--info   { border-left: 3px solid var(--cyan); }
.banner--cheeky { border-left: 3px solid var(--violet); }

/* ---- 8. Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  padding: 2.5rem 0 3rem;
}
.hero__title {
  font-size: clamp(2.4rem, 9vw, 4rem);
  font-weight: 850;
  margin-bottom: 1.25rem;
}
.hero__lede {
  font-size: 1.1rem;
  color: var(--ink-dim);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }

.trustline {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--ink-mute);
}
.trustline li { display: flex; align-items: center; gap: .4rem; }

.hero--error { text-align: center; padding-top: 4rem; }
.hero--error .hero__lede { margin-inline: auto; }
.hero--error .hero__actions { justify-content: center; }

/* ---- 9. Sections -------------------------------------------------------- */
.section { padding: 3rem 0; border-top: 1px solid var(--line); }
.section__title {
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 800;
  margin-bottom: .8rem;
}
.section__title--sm { font-size: clamp(1.3rem, 4vw, 1.6rem); }
.section__lede { color: var(--ink-dim); max-width: 34rem; margin-bottom: 2rem; }

.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: .9rem;
}
.domain-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
/* Each card sits at a slightly different angle. Deliberate, not a bug. */
.domain-card:nth-child(odd)  { transform: rotate(-.5deg); }
.domain-card:nth-child(even) { transform: rotate(.5deg); }
.domain-card:hover { transform: rotate(0deg) translateY(-4px); border-color: var(--line-2); }

.domain-card__name { font-size: 1.05rem; font-weight: 750; margin-bottom: .35rem; }
.domain-card__blurb { font-size: .9rem; color: var(--ink-dim); margin-bottom: .9rem; }
.domain-card__scale {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-mute);
}
.domain-card__rule {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px);
}

.section--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}
.note-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  font-size: .94rem;
  color: var(--ink-dim);
}
.note-card--tilt { transform: rotate(-.7deg); }
.note-card--warn { border-left: 3px solid var(--amber); }
.note-card strong { color: var(--ink); }
.note-card p:last-child { margin-bottom: 0; }
.note-card__sig { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-mute); }

.cta-strip {
  margin-top: 3rem;
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
}
.cta-strip h2 { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; margin-bottom: .5rem; }
.cta-strip p { color: var(--ink-mute); margin-bottom: 1.5rem; }

/* ---- 10. Quiz ----------------------------------------------------------- */
.quiz-wrap { padding-top: 1rem; }

/* Floating panel. Deliberately 100% opaque and a shade lighter than the
   question card: anything translucent lets the big bold question text ghost
   through as it scrolls underneath, which is what made this look broken. */
.quiz__chrome {
  position: sticky;
  /* Flush to the viewport top on purpose. Any offset leaves a gap that the
     question card scrolls through, and plugging that gap with a solid strip
     doesn't work — the backdrop's grid and blob glow sit over --bg there, so
     no flat colour ever matches it. */
  top: 0;
  z-index: 20;
  margin-bottom: 1.1rem;
  padding: .85rem 1.1rem .75rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #23232f;
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 1);
}

.progress {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  transition: width .45s var(--ease);
}
.quiz__counter {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .1rem .3rem;
  margin: .65rem 0 0;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--ink-mute);
}
.quiz__counter-sep { opacity: .5; }
.quiz__counter-hint {
  margin-left: auto;
  font-style: italic;
  opacity: .8;
  text-align: right;
}

.quiz__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }

.qcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  /* Keep anchored/scrolled cards clear of the floating panel above. */
  scroll-margin-top: 7rem;
}
.qcard.is-missing { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,107,94,.12); }

.qcard__num {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--lime);
  margin: 0 0 .9rem;
}
.qcard__num span { color: var(--ink-mute); }

.qcard__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.qcard__text {
  font-size: clamp(1.15rem, 3.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  padding: 0;
  margin-bottom: .5rem;
}
.qcard__sub {
  font-size: .88rem;
  color: var(--ink-mute);
  font-style: italic;
  margin-bottom: 1.2rem;
}

.qcard__options { display: grid; gap: .45rem; }

.opt { display: block; cursor: pointer; }
.opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.opt__body {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-2);
  transition: border-color .14s var(--ease), background .14s var(--ease), transform .14s var(--ease);
}
.opt:hover .opt__body { border-color: var(--line-2); transform: translateX(3px); }

.opt__key {
  flex: none;
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--ink-mute);
  transition: inherit;
}
.opt__label { font-weight: 650; }
.opt__aside {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--ink-mute);
  text-align: right;
}

.opt input:checked + .opt__body {
  border-color: var(--lime);
  background: rgba(201, 242, 77, .09);
}
.opt input:checked + .opt__body .opt__key { background: var(--lime); color: #16160f; }
.opt input:focus-visible + .opt__body { outline: 2px solid var(--lime); outline-offset: 2px; }

.qcard__nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}
.qcard__keyhint { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-mute); }

.quiz__submit { margin-top: 1.5rem; text-align: center; }
.quiz__submit-note {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--ink-mute);
  margin: .8rem 0 0;
}
.quiz__restart { text-align: center; margin-top: 1.5rem; }

/* --- Enhanced mode: one question at a time. Set by quiz.js. --- */
.quiz.is-enhanced .qcard { display: none; }
.quiz.is-enhanced .qcard.is-active {
  display: block;
  animation: card-in .32s var(--ease) both;
}
.quiz.is-enhanced .qcard__nav { display: flex; }
/* The sticky panel already shows the count — no need to print it twice. */
.quiz.is-enhanced .qcard__num { display: none; }
.quiz.is-enhanced .quiz__submit { display: none; }
.quiz.is-enhanced .quiz__submit.is-ready { display: block; animation: card-in .32s var(--ease) both; }
.quiz.is-enhanced .qcard:first-child .qcard__nav [data-quiz-back] { visibility: hidden; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px) rotate(-.6deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0); }
}

/* ---- 11. Result --------------------------------------------------------- */
.result__head { text-align: center; padding: 1rem 0 2rem; }
.result__head .eyebrow { text-align: center; }

.dial { position: relative; width: 190px; margin: .5rem auto 1.5rem; }
.dial__svg { display: block; transform: rotate(-90deg); }
.dial__track {
  fill: none;
  stroke: var(--surface-2);
  stroke-width: 10;
}
.dial__value {
  fill: none;
  stroke: var(--lime);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.dial__value--linear  { stroke: var(--cyan); }
.dial__value--drifty  { stroke: var(--lime); }
.dial__value--tabs    { stroke: var(--amber); }
.dial__value--engine  { stroke: var(--coral); }
.dial__value--pinball { stroke: var(--violet); }

.dial__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.dial__number {
  display: block;
  font-size: 2.9rem;
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dial__unit { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-mute); }

.result__band {
  font-size: clamp(2rem, 7.5vw, 3rem);
  font-weight: 850;
  margin-bottom: .5rem;
}
.result__band-icon {
  display: block;
  width: 2.3rem;
  height: 2.3rem;
  margin: 0 auto .6rem;
  color: var(--lime);
}
.result__band-icon--linear  { color: var(--cyan); }
.result__band-icon--drifty  { color: var(--lime); }
.result__band-icon--tabs    { color: var(--amber); }
.result__band-icon--engine  { color: var(--coral); }
.result__band-icon--pinball { color: var(--violet); }
.result__tagline { color: var(--ink-dim); font-size: 1.05rem; }

.verdict {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 3rem;
}
.verdict__text { font-size: 1.05rem; }
.verdict__spike {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--ink-mute);
  line-height: 1.7;
}
.verdict__spike strong { color: var(--ink-dim); font-weight: 500; }

.breakdown { padding-bottom: 3rem; }
.bars { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.4rem; }

.bar__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .5rem;
}
.bar__name { font-weight: 700; font-size: .98rem; display: inline-flex; align-items: center; gap: .45rem; }
.bar__icon { width: 1.05rem; height: 1.05rem; color: var(--cyan); }
.bar--mid  .bar__icon { color: var(--lime); }
.bar--high .bar__icon { color: var(--coral); }
.bar__score {
  font-family: var(--font-mono);
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-mute);
}
.bar__track {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--cyan);
  transition: width .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.bar--low  .bar__fill { background: var(--cyan); }
.bar--mid  .bar__fill { background: var(--lime); }
.bar--high .bar__fill { background: linear-gradient(90deg, var(--amber), var(--coral)); }
.bar--high .bar__score { color: var(--coral); }

.bar__line { margin: .55rem 0 0; font-size: .88rem; color: var(--ink-dim); }

.kicker {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-2);
  margin-bottom: 3rem;
}
.kicker p { margin: 0; font-size: 1.05rem; font-weight: 650; }

.share { text-align: center; padding-bottom: 3rem; border-top: 1px solid var(--line); padding-top: 3rem; }
.share__link {
  display: flex;
  gap: .5rem;
  margin: 1.75rem 0 1rem;
}
.share__input {
  flex: 1;
  min-width: 0;
  padding: .7rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: .78rem;
  text-overflow: ellipsis;
}
.share__buttons { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.share__note {
  margin: 1.5rem auto 0;
  max-width: 30rem;
  font-size: .82rem;
  color: var(--ink-mute);
}

.next { border-top: 1px solid var(--line); padding-top: 3rem; }
.next__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.5rem;
}
.next__card h3 { font-size: 1.1rem; font-weight: 750; margin-bottom: .6rem; }
.next__card p { margin: 0; color: var(--ink-dim); font-size: .94rem; }
.next__actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

/* ---- 12. Prose ---------------------------------------------------------- */
.prose { padding: 1.5rem 0 2rem; }
.prose h1 { font-size: clamp(2.1rem, 7vw, 3rem); font-weight: 850; margin-bottom: 1.25rem; }
.prose h2 {
  font-size: 1.3rem;
  font-weight: 780;
  margin: 2.75rem 0 .8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.prose p { color: var(--ink-dim); }
.prose__lede { font-size: 1.1rem; color: var(--ink) !important; }
.prose strong { color: var(--ink); }
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.callout--warn { border-left: 3px solid var(--amber); }
.prose__domains { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .7rem; }
.prose__domains li {
  font-size: .92rem;
  color: var(--ink-dim);
  padding-left: 1rem;
  border-left: 2px solid var(--line-2);
}
.prose__domains strong { color: var(--ink); }
.prose__domains .icon { color: var(--lime); margin-right: .15rem; }
.prose__cta { margin-top: 2.5rem; text-align: center; }

/* ---- 13. Responsive ----------------------------------------------------- */
@media (max-width: 30rem) {
  body { font-size: 16px; }
  .masthead { padding-inline: 1rem; }
  .shell, .footer { padding-inline: 1rem; }
  .qcard { padding: 1.25rem 1.05rem; }
  .opt__aside { display: none; }
  .share__link { flex-direction: column; }
  .share__link .btn { justify-content: center; }
  .sticker { right: auto; left: 0; top: -1rem; }
}

/* ---- 14. Motion + print ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .domain-card, .note-card--tilt, .sticker { transform: none !important; }
}

@media print {
  .backdrop, .masthead__nav, .share, .next__actions, .scrollbeam { display: none; }
  body { background: #fff; color: #000; }
}
