:root {
  --night: #070b16;
  --night-2: #0c1322;
  --panel: #111a2c;
  --line: #1e2b45;
  --ink: #e9eef8;
  --ink-dim: #9aa8c2;
  --green: #3ddc97;
  --teal: #2ec5c0;
  --violet: #b47cf0;
  --wrong: #ff7a8a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --measure: 68ch;
}

* {
  box-sizing: border-box;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

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

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  /* One faint aurora band, anchored top-left, not a hero gradient. */
  background-image: radial-gradient(
      120% 70% at 8% -10%,
      rgba(46, 197, 192, 0.16),
      transparent 60%
    ),
    radial-gradient(90% 60% at 75% -20%, rgba(180, 124, 240, 0.1), transparent 65%);
  background-repeat: no-repeat;
}

main,
.masthead,
footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 26px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.01em;
}

.masthead nav {
  display: flex;
  gap: 22px;
}

.masthead nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 15px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.masthead nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--teal);
}

/* ---------- intro ---------- */

.intro {
  padding: 34px 0 10px;
  border-top: 1px solid var(--line);
}

h1 {
  font: 400 clamp(30px, 4.4vw, 46px) / 1.15 var(--serif);
  margin: 0 0 18px;
  max-width: 24ch;
  letter-spacing: -0.01em;
}

.lede {
  max-width: var(--measure);
  color: var(--ink-dim);
  margin: 0;
}

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 36px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.figures > div {
  background: var(--night-2);
  padding: 16px 18px;
}

.figures dt {
  color: var(--ink-dim);
  font-size: 13px;
  margin-bottom: 6px;
}

.figures dd {
  margin: 0;
  font: 400 27px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--green);
}

/* ---------- practice ---------- */

.practice {
  padding: 54px 0 0;
}

.practice-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

h2 {
  font: 400 25px/1.2 var(--serif);
  margin: 0;
}

.focus {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-dim);
}

select {
  background: var(--night-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 10px;
  font: inherit;
  font-size: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
}

.qmeta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--ink-dim);
  font-size: 13.5px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.qmeta .rating {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--teal);
}

.stem {
  max-width: var(--measure);
  margin: 0 0 8px;
  white-space: pre-wrap;
}

table.figures-table {
  border-collapse: collapse;
  margin: 16px 0;
  font-family: var(--mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

table.figures-table th,
table.figures-table td {
  border: 1px solid var(--line);
  padding: 7px 12px;
  text-align: right;
}

table.figures-table th:first-child,
table.figures-table td:first-child {
  text-align: left;
}

table.figures-table thead th {
  background: var(--night-2);
  color: var(--ink-dim);
  font-weight: 400;
}

.breakdown {
  margin-top: 26px;
}

.breakdown h3 {
  font: 400 17px/1.3 var(--sans);
  color: var(--ink-dim);
  margin: 0 0 12px;
}

.breakdown-table {
  width: 100%;
  max-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.breakdown-table th,
.breakdown-table td {
  text-align: right;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.breakdown-table th {
  color: var(--ink-dim);
  font-weight: 400;
}

.breakdown-table th:first-child,
.breakdown-table td:first-child {
  text-align: left;
}

.breakdown-table tr.is-focus td {
  color: var(--green);
}

.breakdown .note {
  font-size: 13.5px;
  margin-top: 12px;
}

.sequence {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 4px;
}

.figure {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  background: var(--night-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
}

.figure.is-unknown {
  border-style: dashed;
  border-color: var(--violet);
  color: var(--violet);
  font-family: var(--mono);
  font-size: 22px;
}

.options.is-figures {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.options.is-figures .option {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.options {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  max-width: var(--measure);
}

.option {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  background: var(--night-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 13px 15px;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 120ms ease,
    background 120ms ease;
}

.option:hover:not(:disabled) {
  border-color: var(--teal);
}

.option:disabled {
  cursor: default;
}

.option .key {
  font-family: var(--mono);
  color: var(--ink-dim);
  text-transform: uppercase;
}

.option.is-correct {
  border-color: var(--green);
  background: rgba(61, 220, 151, 0.09);
}

.option.is-correct .key {
  color: var(--green);
}

.option.is-chosen-wrong {
  border-color: var(--wrong);
  background: rgba(255, 122, 138, 0.08);
}

.option.is-chosen-wrong .key {
  color: var(--wrong);
}

/* ---------- outcome and worked example ---------- */

.outcome {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.verdict {
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
  font-family: var(--serif);
  font-size: 20px;
}

.verdict.correct {
  color: var(--green);
}

.verdict.incorrect {
  color: var(--wrong);
}

.deltas {
  font: 400 13.5px/1 var(--mono);
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

.worked {
  margin-top: 22px;
  max-width: var(--measure);
}

.worked h3 {
  font: 400 16px/1.3 var(--sans);
  color: var(--violet);
  margin: 24px 0 8px;
}

.worked h3:first-child {
  margin-top: 0;
}

.worked p {
  margin: 0 0 10px;
}

.worked ol.steps {
  margin: 0;
  padding-left: 22px;
}

.worked ol.steps li {
  margin-bottom: 10px;
}

.worked .heuristic {
  border-left: 2px solid var(--teal);
  padding: 4px 0 4px 16px;
  color: var(--ink);
}

.worked dl.distractors {
  margin: 0;
}

.worked dl.distractors dt {
  font-family: var(--mono);
  text-transform: uppercase;
  color: var(--ink-dim);
  float: left;
  margin-right: 10px;
}

.worked dl.distractors dd {
  margin: 0 0 9px;
  overflow: hidden;
}

.actions {
  margin-top: 26px;
}

button.primary {
  background: var(--green);
  color: #04220f;
  border: 0;
  border-radius: 5px;
  padding: 11px 20px;
  font: 500 15px/1 var(--sans);
  cursor: pointer;
}

button.primary:hover {
  background: #58e7a9;
}

/* ---------- method and footer ---------- */

.method {
  padding: 64px 0 0;
}

.method p {
  max-width: var(--measure);
  color: var(--ink-dim);
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--teal);
  background: var(--night-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
}

.muted {
  color: var(--ink-dim);
  margin: 0;
}

.entitlement-notice {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  margin: 12px 0;
}

.entitlement-notice p {
  margin: 0 0 8px;
}

.entitlement-notice a {
  color: var(--teal);
}

.entitlement-notice h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 500;
}

.premium-includes {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--ink-dim);
}

.plan-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 8px 0;
}

.plan-option {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  background: var(--panel);
}

.plan-option .plan-name {
  margin: 0;
  color: var(--ink);
}

.plan-option .plan-price {
  margin: 2px 0 10px;
  font-family: var(--mono);
  color: var(--teal);
}

footer {
  margin-top: 72px;
  padding-top: 22px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 14px;
}

footer p {
  margin: 0;
  max-width: var(--measure);
}

@media (max-width: 620px) {
  main,
  .masthead,
  footer {
    padding: 0 18px;
  }

  .card {
    padding: 20px;
  }
}

/* =======================================================================
   Aurora refinement
   Richer night-sky colour without a gradient hero: a drifting aurora
   field behind the page, luminous edges on the panels a user touches,
   and colour used to distinguish the four figures rather than decorate.
   ======================================================================= */

:root {
  --night-3: #0a1020;
  --teal-glow: rgba(46, 197, 192, 0.38);
  --green-glow: rgba(61, 220, 151, 0.34);
  --violet-glow: rgba(180, 124, 240, 0.4);
}

body {
  position: relative;
  background-image: radial-gradient(
      100% 60% at 6% -12%,
      rgba(46, 197, 192, 0.2),
      transparent 62%
    ),
    radial-gradient(80% 55% at 78% -18%, rgba(180, 124, 240, 0.16), transparent 68%);
}

/* Two slow aurora curtains, fixed behind the content, low opacity so text
   contrast is untouched. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 90vh;
  pointer-events: none;
  z-index: -1;
  filter: blur(52px);
  opacity: 0.95;
}

body::before {
  background: radial-gradient(48% 34% at 22% 30%, var(--green-glow), transparent 70%),
    radial-gradient(42% 30% at 58% 16%, var(--teal-glow), transparent 72%);
  animation: drift-a 34s ease-in-out infinite alternate;
}

body::after {
  background: radial-gradient(40% 30% at 76% 26%, var(--violet-glow), transparent 72%),
    radial-gradient(34% 26% at 40% 8%, rgba(46, 197, 192, 0.14), transparent 70%);
  animation: drift-b 46s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from {
    transform: translate3d(-3%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4%, 2%, 0) scale(1.08);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(3%, 1%, 0) scale(1.05);
  }
  to {
    transform: translate3d(-4%, -2%, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}

/* A hairline of aurora above each major section, instead of a flat grey rule. */
.manifesto,
.scope,
.pillars,
.doc-head,
.session,
.practice {
  border-top: 1px solid transparent;
  border-image: linear-gradient(
      90deg,
      var(--green) 0%,
      var(--teal) 28%,
      var(--violet) 58%,
      rgba(30, 43, 69, 0) 100%
    )
    1;
}

.practice {
  padding-top: 46px;
  margin-top: 48px;
}

/* The wordmark carries the palette. */
.wordmark {
  background: linear-gradient(92deg, var(--ink) 0%, var(--teal) 62%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.masthead nav a:hover {
  border-bottom-color: var(--teal);
  color: var(--ink);
}

/* Four figures, four readings, four colours — colour as a legend, not decoration. */
.figures {
  border-color: rgba(46, 197, 192, 0.28);
  background: linear-gradient(90deg, rgba(46, 197, 192, 0.3), rgba(180, 124, 240, 0.3));
}

.figures > div {
  background: linear-gradient(180deg, var(--night-3), var(--panel));
  position: relative;
}

.figures > div::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  opacity: 0.8;
}

.figures > div:nth-child(1) dd {
  color: var(--teal);
}
.figures > div:nth-child(2) dd {
  color: var(--violet);
}
.figures > div:nth-child(3) dd {
  color: var(--green);
}
.figures > div:nth-child(4) dd {
  color: #8fd3ff;
}

.figures > div:nth-child(1)::after {
  background: var(--teal);
}
.figures > div:nth-child(2)::after {
  background: var(--violet);
}
.figures > div:nth-child(3)::after {
  background: var(--green);
}
.figures > div:nth-child(4)::after {
  background: #8fd3ff;
}

/* The question card sits in its own pool of light. */
.card {
  background: linear-gradient(180deg, rgba(20, 30, 52, 0.96), rgba(12, 19, 34, 0.96));
  border-color: rgba(46, 197, 192, 0.24);
  box-shadow: 0 0 0 1px rgba(7, 11, 22, 0.6), 0 22px 60px -32px rgba(46, 197, 192, 0.45),
    0 10px 40px -30px rgba(180, 124, 240, 0.5);
}

.qmeta {
  border-bottom-color: rgba(46, 197, 192, 0.22);
}

.option {
  background: rgba(10, 16, 32, 0.72);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.option:hover:not(:disabled) {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px rgba(46, 197, 192, 0.35), 0 10px 26px -18px rgba(46, 197, 192, 0.7);
  transform: translateY(-1px);
}

.option .key {
  color: var(--teal);
}

.option.is-correct {
  box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.45), 0 12px 30px -20px rgba(61, 220, 151, 0.7);
}

.option.is-chosen-wrong {
  box-shadow: 0 0 0 1px rgba(255, 122, 138, 0.4);
}

.verdict.correct {
  text-shadow: 0 0 22px rgba(61, 220, 151, 0.35);
}

.worked h3 {
  color: var(--teal);
}

.worked .heuristic {
  border-left-color: var(--teal);
  background: linear-gradient(90deg, rgba(46, 197, 192, 0.12), transparent 70%);
  border-radius: 0 4px 4px 0;
}

.worked dl.distractors dt {
  color: var(--violet);
}

.sequence .figure {
  border-color: rgba(46, 197, 192, 0.3);
  background: rgba(10, 16, 32, 0.6);
}

.figure.is-unknown {
  border-color: var(--violet);
  color: var(--violet);
  box-shadow: inset 0 0 26px -10px rgba(180, 124, 240, 0.8);
}

.breakdown-table th {
  color: var(--teal);
}

.breakdown-table tr.is-focus td {
  background: rgba(61, 220, 151, 0.08);
}

.breakdown-table tr.is-focus td:first-child {
  box-shadow: inset 2px 0 0 var(--green);
}

button.primary {
  background: linear-gradient(94deg, var(--green), var(--teal) 72%, #4fb8e8);
  color: #05202a;
  border: 0;
  box-shadow: 0 10px 30px -18px rgba(61, 220, 151, 0.9);
}

button.primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 34px -16px rgba(61, 220, 151, 0.95);
}

footer {
  border-top: 1px solid transparent;
  border-image: linear-gradient(
      90deg,
      rgba(30, 43, 69, 0) 0%,
      var(--violet) 42%,
      var(--teal) 72%,
      var(--green) 100%
    )
    1;
}

code {
  color: #a9e8dd;
  background: rgba(46, 197, 192, 0.1);
  border-color: rgba(46, 197, 192, 0.22);
}

/* A third curtain low on the page so colour is not only at the top. */
main::before {
  content: "";
  position: fixed;
  left: -10%;
  right: -10%;
  bottom: -30vh;
  height: 70vh;
  pointer-events: none;
  z-index: -1;
  filter: blur(58px);
  opacity: 0.6;
  background: radial-gradient(40% 40% at 26% 60%, rgba(180, 124, 240, 0.3), transparent 72%),
    radial-gradient(44% 38% at 70% 70%, rgba(46, 197, 192, 0.26), transparent 74%);
  animation: drift-b 52s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  main::before {
    animation: none;
  }
}

/* Figures carry the whole question in abstract items, so they get room to be
   read: Latin-square grids and switch-code rows are unreadable at 68px. */
.figure {
  width: 112px;
  height: 112px;
}

.figure svg {
  width: 100%;
  height: 100%;
}

.figure.is-unknown {
  font-size: 28px;
}

.options.is-figures {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

@media (max-width: 520px) {
  .figure {
    width: 84px;
    height: 84px;
  }
}

.options.is-figures .option svg {
  width: 96px;
  height: 96px;
}

@media (max-width: 520px) {
  .options.is-figures .option svg {
    width: 76px;
    height: 76px;
  }
}

.options.is-figures {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 620px) {
  .options.is-figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.data-controls {
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.data-controls button {
  background: none;
  border: none;
  border-bottom: 1px solid var(--teal);
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.data-controls button[disabled] {
  border-bottom-color: var(--line);
  color: var(--ink-dim);
  cursor: default;
}

#erase-status {
  display: block;
  margin-top: 0.35rem;
}

.skip {
  background: var(--panel, #101a2e);
  border: 1px solid var(--teal);
  border-radius: 4px;
  color: var(--teal);
  left: 1rem;
  padding: 0.5rem 0.75rem;
  position: absolute;
  top: -4rem;
  transition: top 120ms ease-in;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

.verdict:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.share {
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.share button {
  background: none;
  border: 1px solid var(--teal);
  border-radius: 4px;
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  padding: 0.35rem 0.7rem;
}

.share button[disabled] {
  border-color: var(--line);
  color: var(--ink-dim);
  cursor: default;
}

#share-status {
  display: block;
  margin-top: 0.4rem;
}

#share-status button {
  border: none;
  border-bottom: 1px solid var(--teal);
  border-radius: 0;
  padding: 0;
}

#review .review-intro {
  color: var(--ink-dim);
  max-width: var(--measure);
}

#load-mistakes {
  background: none;
  border: 1px solid var(--teal);
  border-radius: 4px;
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  padding: 0.4rem 0.8rem;
}

details.miss {
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
}

details.miss summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

details.miss .miss-id {
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 0.85rem;
}

details.miss .miss-body {
  padding-top: 0.6rem;
}

/* The practice card keeps its reading measure and puts the adaptive context in
   a narrow rail beside it; on small screens the rail simply comes first. */
.rail {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  background: rgba(46, 197, 192, 0.04);
  margin-bottom: 1.75rem;
}

.rail-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem 1rem;
  margin: 0;
}

.rail-list dt {
  color: var(--ink-dim);
  font-size: 0.85rem;
}

.rail-list dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--teal);
  text-align: right;
}

.rail-note {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-dim);
}

@media (min-width: 62rem) {
  /* The question lives in .qmain so the rail is a sibling column rather than a
     tall first grid row, which would push the stem down the page. */
  .practice .card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14rem;
    column-gap: 2.5rem;
    align-items: start;
  }

  .practice .card > .qmain {
    grid-column: 1;
    min-width: 0;
  }

  .practice .card > .rail {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-bottom: 0;
    position: sticky;
    top: 1.5rem;
  }
}


/* ---------- multi-page structure ----------
   Three pages share one visual language: the landing manifesto, the standalone
   rating explanation, and the practice session. Page-specific rules live here
   so the shared components above stay untouched. */

.masthead nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--violet);
}

/* Landing */

.manifesto {
  padding: 46px 0 8px;
}

.manifesto h1 {
  max-width: 26ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 34px 0 0;
}

.cta {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  color: var(--night);
  background: linear-gradient(96deg, var(--green), var(--teal));
  border: 1px solid transparent;
}

.cta:hover {
  filter: brightness(1.08);
}

.cta-quiet {
  background: none;
  color: var(--ink);
  border-color: var(--line);
}

.cta-quiet:hover {
  border-color: var(--violet);
  filter: none;
}

.scope {
  margin-top: 56px;
  padding-top: 40px;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
}

.chips li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  background: var(--night-2);
}

.chips li:nth-child(1) {
  border-color: rgba(61, 220, 151, 0.5);
}
.chips li:nth-child(2) {
  border-color: rgba(46, 197, 192, 0.5);
}
.chips li:nth-child(3) {
  border-color: rgba(143, 211, 255, 0.5);
}
.chips li:nth-child(4) {
  border-color: rgba(180, 124, 240, 0.5);
}
.chips li:nth-child(5) {
  border-color: rgba(192, 38, 211, 0.5);
}

.chips .chip-excluded {
  color: var(--ink-dim);
  text-decoration: line-through;
  border-style: dashed;
  border-color: var(--line);
  background: none;
}

.scope-note {
  max-width: var(--measure);
  color: var(--ink-dim);
  margin: 20px 0 0;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 30px;
  margin-top: 56px;
  padding-top: 44px;
}

.pillars h3 {
  font: 400 21px/1.3 var(--serif);
  margin: 0 0 10px;
}

.pillars p {
  color: var(--ink-dim);
  margin: 0 0 12px;
}

.pillars a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 197, 192, 0.4);
  font-size: 15px;
}

.pillars a:hover {
  color: var(--ink);
}

/* Rating explanation page */

.doc-head {
  padding: 46px 0 0;
}

.doc {
  padding: 8px 0 0;
}

.doc h2 {
  margin-top: 48px;
  max-width: var(--measure);
}

.doc p {
  max-width: var(--measure);
  color: var(--ink-dim);
}

.doc strong {
  color: var(--ink);
  font-weight: 400;
}

.formula {
  font-size: 18px;
  padding: 16px 0;
}

.formula code {
  display: inline-block;
  padding: 10px 14px;
  line-height: 1.9;
}

.doc-cta {
  margin-top: 52px;
}

/* Practice page: the session figures replace the old landing intro block. */

.session {
  padding: 40px 0 0;
}

.page-practice .practice {
  margin-top: 40px;
}

.page-practice .practice h1 {
  font: 400 clamp(24px, 3vw, 30px) / 1.2 var(--serif);
  margin: 0;
  max-width: none;
}

footer a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 197, 192, 0.35);
}

footer a:hover {
  color: var(--ink);
}

@media (max-width: 640px) {
  .masthead {
    flex-wrap: wrap;
    row-gap: 12px;
    padding-bottom: 18px;
  }

  .masthead nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    row-gap: 8px;
    gap: 14px;
    font-size: 13px;
    padding-bottom: 6px;
  }

  .masthead nav a { flex: 0 0 auto; white-space: nowrap; }

  main { margin-top: 4px; }

  .manifesto {
    padding-top: 30px;
  }

  .session {
    padding-top: 26px;
  }

  .cta,
  .cta-quiet {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* Legal pages, rendered from the drafts in content/ */

.legal h2 {
  margin-top: 40px;
  font-size: 23px;
}

.legal ul,
.legal ol {
  max-width: var(--measure);
  color: var(--ink-dim);
  padding-left: 22px;
}

.legal li {
  margin-bottom: 9px;
}

.draft-note {
  border: 1px solid rgba(192, 38, 211, 0.45);
  border-left-width: 3px;
  border-radius: 3px;
  padding: 4px 18px;
  margin: 0 0 34px;
  max-width: var(--measure);
  background: var(--night-2);
}

.legal-links {
  margin-top: 6px;
}

/* Progress dashboard */

.page-doc .metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px;
  margin: 24px 0 8px;
}

.page-doc .metric dt {
  font: 400 13px/1.4 var(--mono);
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}

.page-doc .metric dd {
  margin: 6px 0 0;
  font: 400 26px/1.1 var(--mono);
  color: var(--ink);
}

.trail {
  display: block;
  width: 100%;
  height: 130px;
  margin: 22px 0 4px;
  color: var(--teal);
}

.trend-improving {
  color: var(--green);
}

.trend-slipping {
  color: var(--wrong);
}

.trend-steady {
  color: var(--ink-dim);
}

.doc .breakdown-table {
  margin-top: 20px;
}

/* Prose links inside a document body, so they do not fall back to the
   browser's blue and visited-purple. */
.doc a:not(.cta) {
  color: var(--teal);
  text-underline-offset: 3px;
}

.doc a:not(.cta):hover {
  color: var(--green);
}

.table-scroll {
  overflow-x: auto;
  margin-top: 20px;
}

.table-scroll:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.table-scroll .breakdown-table {
  margin-top: 0;
  min-width: 420px;
}

/* Rating by section: one line per section, labelled at its end. */
:root {
  --magenta: #e27ad6;
  --sky: #8fb8ff;
}
.section-chart {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.5rem 0 0.25rem;
  overflow: visible;
}
.section-chart .grid { stroke: var(--line); stroke-width: 1; }
.section-chart .axis { fill: var(--ink-dim); font: 11px var(--sans); }
.section-chart .series { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.section-chart .series-label { font: 600 12px var(--sans); }
.series-numerical { stroke: var(--green); fill: var(--green); }
.series-verbal { stroke: var(--teal); fill: var(--teal); }
.series-logical { stroke: var(--violet); fill: var(--violet); }
.series-abstract { stroke: var(--magenta); fill: var(--magenta); }
.series-situational { stroke: var(--sky); fill: var(--sky); }
.section-chart path.series { fill: none; }
.section-chart text.series-label { stroke: none; }

/* The practice year: 365 blocks, columns are weeks. */
.streak-scroll { overflow-x: auto; padding-bottom: 0.25rem; }
.streak-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 11px);
  grid-auto-columns: 11px;
  gap: 3px;
  width: max-content;
  margin-top: 0.75rem;
}
.block {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.block-pad { visibility: hidden; }
.block.level-1 { background: color-mix(in srgb, var(--green) 45%, var(--night-2)); box-shadow: none; }
.block.level-2 { background: var(--green); box-shadow: none; }
.block.level-3 { background: var(--teal); box-shadow: none; }
.block.level-4 { background: var(--violet); box-shadow: none; }
.streak-key { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; margin-top: 0.5rem; }
.streak-key span:first-child { margin-right: 4px; }
.streak-key span:last-child { margin-left: 4px; }

/* Today's objectives, above the question. */
.objectives { margin: 0 0 1rem; }
.objectives h2 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.objectives-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.objective {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem 4.5rem;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
}
.objective-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.objective-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--teal)); }
.objective.done .objective-fill { background: var(--violet); }
.objective-count { color: var(--ink-dim); text-align: right; font-variant-numeric: tabular-nums; }
.objective.done .objective-count { color: var(--violet); }
@media (max-width: 480px) {
  .objective { grid-template-columns: minmax(0, 1fr) 4.5rem; }
  .objective-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* Timed test. */
.test-setup fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.6rem;
}
.test-setup legend { padding: 0 0.4rem; color: var(--ink-dim); }
.test-setup label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}
.test-setup label:hover { background: var(--panel); }
.test-setup input[type='radio'] { accent-color: var(--teal); width: 1rem; height: 1rem; }
#start, #retake { font: inherit; }
.test-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.clock { font-family: var(--mono); font-size: 1.6rem; color: var(--teal); }
.tally { color: var(--ink-dim); font-size: 0.92rem; }
.miss-card {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
}

/* Match Mode */
.match-join { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 1rem; }
.match-join input,
.match-link {
  background: var(--night-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font-family: var(--mono);
}
.match-join input { width: 8ch; text-transform: uppercase; letter-spacing: 0.12em; }
.match-link { width: min(100%, 36ch); }
.match-code { font-family: var(--mono); font-size: 2.4rem; letter-spacing: 0.3em; color: var(--teal); margin: 0.6rem 0; }
.opponent-status { color: var(--violet); font-size: 0.92rem; }
.option.is-chosen { border-color: var(--teal); }
.match-scoreboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.match-player { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; }
.match-player h2 { margin: 0; font-family: var(--serif); }
.match-score { font-family: var(--mono); font-size: 2rem; color: var(--green); margin: 0.3rem 0; }
.match-sections { width: 100%; overflow-x: auto; display: block; }
.match-review { margin: 1rem 0; }
.match-review.is-missed { border-left: 3px solid var(--wrong); }
.match-answers { display: grid; grid-template-columns: max-content 1fr; gap: 0.2rem 1rem; }
.match-answers dt { color: var(--ink-dim); }
.match-answers dd { margin: 0; font-family: var(--mono); font-size: 0.92rem; }
.match-answers dd.is-right { color: var(--green); }
.match-answers dd.is-wrong { color: var(--wrong); }

.match-join button,
#copy-link {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 5px;
  padding: 9px 16px;
  font: 500 14px/1 var(--sans);
  cursor: pointer;
}
.match-join button:hover,
#copy-link:hover { background: var(--night-2); }
.match-scoreboard { margin-bottom: 1.6rem; }

.match-name-field { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 1rem; }
.match-name-field input {
  background: var(--night-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font-family: var(--sans);
  width: min(100%, 20ch);
}
.match-scoreline {
  font: 400 clamp(28px, 4vw, 42px) / 1.2 var(--serif);
  color: var(--ink);
  margin: 0.4rem 0 1.4rem;
}
.match-scoreline-mini {
  font-family: var(--mono);
  color: var(--teal);
  font-size: 0.95rem;
}

/* ---------- account ---------- */

.masthead nav a.nav-account {
  color: var(--teal);
}

.account h2 {
  margin-top: 32px;
}

.account-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.account-form label {
  flex-basis: 100%;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.account-form input {
  background: var(--night-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  font: 15px/1 var(--sans);
  padding: 10px 12px;
  min-width: 16rem;
}

.account-form input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.account-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
}

.account-facts dt {
  color: var(--ink-dim);
}

.account-facts dd {
  margin: 0;
}

.account-facts .num {
  font-family: var(--mono);
}

.account-error {
  color: var(--wrong);
}

.home-pricing { margin-top: 3.5rem; max-width: 46rem; }
.home-pricing p { color: var(--ink-dim); }
.home-pricing strong { color: var(--ink); }
.home-pricing a { color: var(--teal); }
.pricing-plan { margin-top: 2.4rem; max-width: 46rem; }

.link-code {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 2.2rem;
  letter-spacing: 0.25em;
  margin: 0.5rem 0;
}

/* =======================================================================
   Question screens: aurora transition and one-viewport fit
   (practice, timed test, match)
   ======================================================================= */

/* A soft aurora band sweeps once across the card as a new question lands;
   the content rises in underneath it. Transform/opacity only, so there is
   no layout shift and the options are clickable from the first frame. */
#question-host.card {
  position: relative;
  overflow: clip;
}

#question-host.q-enter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 0%,
    color-mix(in srgb, var(--green) 22%, transparent) 30%,
    color-mix(in srgb, var(--teal) 30%, transparent) 42%,
    color-mix(in srgb, var(--violet) 24%, transparent) 56%,
    color-mix(in srgb, var(--magenta) 16%, transparent) 66%,
    transparent 80%
  );
  transform: translateX(-100%);
  animation: aurora-sweep 580ms cubic-bezier(0.3, 0.6, 0.3, 1) both;
}

#question-host.q-enter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--green), var(--teal), var(--violet), var(--magenta));
  transform-origin: left;
  animation: aurora-edge 600ms ease-out both;
}

#question-host.q-enter > * {
  animation: question-rise 420ms 60ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes aurora-sweep {
  from { transform: translateX(-100%); opacity: 1; }
  80% { opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

@keyframes aurora-edge {
  from { transform: scaleX(0); opacity: 1; }
  70% { transform: scaleX(1); opacity: 1; }
  to { transform: scaleX(1); opacity: 0; }
}

@keyframes question-rise {
  from { opacity: 0.25; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.qcount {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--teal);
  letter-spacing: 0.02em;
}

.count-bump {
  animation: count-bump 600ms ease-out;
}

@keyframes count-bump {
  0% { color: var(--ink); text-shadow: 0 0 12px var(--teal); }
  100% { text-shadow: 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
  #question-host.q-enter::before,
  #question-host.q-enter::after {
    display: none;
  }
  #question-host.q-enter > * {
    animation: question-fade 160ms ease-out both;
  }
  .count-bump {
    animation: none;
  }
}

@keyframes question-fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Compact chrome on the question pages. */
.page-practice .masthead,
.page-test .masthead,
.page-match .masthead {
  padding-top: 14px;
  padding-bottom: 14px;
}

.page-practice .session {
  padding-top: 4px;
  border-top: 0;
}

.page-practice .figures {
  margin: 0;
}

.page-practice .figures > div {
  padding: 8px 14px 10px;
}

.page-practice .figures dt {
  font-size: 12px;
}

.page-practice .figures dd {
  font-size: 20px;
  margin-top: 2px;
}

.page-practice .figures > div::after {
  bottom: 0;
}

.page-practice .practice {
  margin-top: 14px;
  padding-top: 14px;
}

.page-practice .practice-head {
  margin-bottom: 10px;
}

.page-practice .objectives {
  margin-bottom: 10px;
}

.page-practice .objectives h2 {
  display: none;
}

@media (min-width: 48rem) {
  .page-practice .objectives-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 1.5rem;
  }
  .page-practice .objective {
    grid-template-columns: minmax(0, 1fr) 3.5rem;
    row-gap: 4px;
    font-size: 12.5px;
    color: var(--ink-dim);
  }
  .page-practice .objective-bar {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 4px;
  }
}

.page-practice #question-host.card,
.page-test #question-host.card,
.page-match #question-host.card {
  padding: 18px 24px 20px;
}

.page-practice .qmeta,
.page-test .qmeta,
.page-match .qmeta {
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.page-practice .options,
.page-test .options,
.page-match .options {
  margin-top: 14px;
  gap: 8px;
}

.page-practice .option,
.page-test .option,
.page-match .option {
  min-height: 44px;
  padding: 10px 14px;
  align-items: center;
}

/* Short text options sit two to a row on wide screens. */
@media (min-width: 48rem) {
  .options.is-short {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The timed-test and match header stays in view with the clock. */
.page-test .test-head,
.page-match .test-head {
  position: sticky;
  top: 0;
  z-index: 5;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  backdrop-filter: blur(6px);
}

.page-test .clock,
.page-match .clock {
  font-size: 1.3rem;
}

.page-test #running,
.page-match #running {
  padding-top: 4px;
}

/* After answering, "Next question" stays reachable while the worked
   solution scrolls beneath it. */
.page-practice .outcome .actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  margin: 18px 0 0;
  padding: 10px 0 12px;
  background: var(--panel);
  box-shadow: 0 -12px 16px -8px var(--panel);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
}

.page-practice .outcome {
  margin-top: 16px;
  padding-top: 14px;
}

@media (max-width: 620px) {
  .page-practice .masthead,
  .page-test .masthead,
  .page-match .masthead {
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 8px;
  }
  .page-practice .masthead nav,
  .page-test .masthead nav,
  .page-match .masthead nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
  }
  .page-practice .masthead nav a,
  .page-test .masthead nav a,
  .page-match .masthead nav a {
    white-space: nowrap;
  }
  .page-practice .figures {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-practice .figures > div {
    padding: 6px 8px 8px;
  }
  .page-practice .figures dt {
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .page-practice .figures dd {
    font-size: 16px;
  }
  .page-practice .session::after,
  .page-practice .session::before {
    display: none;
  }
  /* On a phone the question comes first; the context follows it. */
  .page-practice .practice {
    display: flex;
    flex-direction: column;
  }
  .page-practice .practice > .objectives {
    order: 3;
    margin-top: 16px;
  }
  .page-practice .practice > #breakdown {
    order: 4;
  }
  .page-practice #question-host.card {
    display: flex;
    flex-direction: column;
    padding: 14px 16px 16px;
  }
  .page-test #question-host.card,
  .page-match #question-host.card {
    padding: 14px 16px 16px;
  }
  .page-practice .card > .rail {
    order: 2;
    margin: 16px 0 0;
  }
  .page-practice .outcome .actions {
    margin: 16px -16px -16px;
    padding: 10px 16px 12px;
  }
  .page-practice .outcome .actions .primary {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .page-practice .sequence .figure,
  .page-test .sequence .figure,
  .page-match .sequence .figure {
    width: 64px;
    height: 64px;
  }
  .page-practice .sequence,
  .page-test .sequence,
  .page-match .sequence {
    margin-top: 12px;
    gap: 8px;
  }
  .page-practice .options.is-figures,
  .page-test .options.is-figures,
  .page-match .options.is-figures {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .page-practice .options.is-figures .option,
  .page-test .options.is-figures .option,
  .page-match .options.is-figures .option {
    padding: 6px 4px;
  }
  .page-practice .options.is-figures .option svg,
  .page-test .options.is-figures .option svg,
  .page-match .options.is-figures .option svg {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 620px) {
  .page-practice .share {
    margin: 8px 0 0;
  }
  .page-practice .share button {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 13px;
  }
  .page-practice .practice-head {
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
  }
  .page-practice .practice-head h1 {
    font-size: 1.5rem;
    margin: 0;
  }
  .page-practice .practice {
    margin-top: 10px;
    padding-top: 10px;
  }
}

@media (max-width: 620px) {
  .page-practice .practice-head .focus {
    flex: 1;
    min-width: 0;
  }
  .page-practice .practice-head .focus select {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .page-practice .option,
  .page-test .option,
  .page-match .option {
    font-size: 15px;
    line-height: 1.4;
    padding: 8px 12px;
  }
  .page-practice .stem,
  .page-test .stem,
  .page-match .stem {
    font-size: 16px;
    line-height: 1.5;
  }
}

@media (min-width: 48rem) {
  .page-practice .session {
    display: flex;
    align-items: stretch;
    gap: 12px;
  }
  .page-practice .session .figures {
    flex: 1;
  }
  .page-practice .session .share {
    display: flex;
    align-items: center;
    margin: 0;
  }
  .page-practice .session .share[hidden] {
    display: none;
  }
  .page-practice .session .share button {
    height: 100%;
    max-width: 11rem;
    white-space: normal;
  }
  .page-practice .sequence .figure,
  .page-test .sequence .figure,
  .page-match .sequence .figure {
    width: 84px;
    height: 84px;
  }
  .page-practice .sequence,
  .page-test .sequence,
  .page-match .sequence {
    margin-top: 12px;
  }
  .page-practice .options.is-figures .option,
  .page-test .options.is-figures .option,
  .page-match .options.is-figures .option {
    padding: 6px;
    gap: 2px;
  }
  .page-practice .options.is-figures .option svg,
  .page-test .options.is-figures .option svg,
  .page-match .options.is-figures .option svg {
    width: 72px;
    height: 72px;
  }
}

.page-practice .options:not(.is-figures),
.page-test .options:not(.is-figures),
.page-match .options:not(.is-figures) {
  max-width: none;
}

.page-practice .option,
.page-test .option,
.page-match .option {
  font-size: 15.5px;
  line-height: 1.4;
}

/* Problem report: a small, dim line beneath a question; no extra height
   until the link is clicked. */
.report { margin-top: 0.5rem; }
.report-link {
  background: none;
  border: none;
  padding: 0;
  font: 400 0.82rem var(--sans);
  color: var(--ink-dim);
  cursor: pointer;
  text-decoration: underline;
}
.report-link:hover,
.report-link:focus-visible { color: var(--ink); }
.report-form {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--night-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.5rem;
}
.report-legend { color: var(--ink-dim); font-size: 0.88rem; margin: 0; }
.report-reasons { display: grid; gap: 0.25rem; }
.report-reason {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.report-reason input[type='radio'] { accent-color: var(--teal); width: 1rem; height: 1rem; }
.report-comment-label { color: var(--ink-dim); font-size: 0.88rem; }
.report-form textarea,
.report-form input[type='text'] {
  background: var(--night); 
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  font: 400 0.9rem var(--sans);
  resize: vertical;
}
.report-actions { display: flex; align-items: center; gap: 0.75rem; }
.report-status { color: var(--ink-dim); font-size: 0.85rem; }

/* Shapefinder */
.sf-grid { display: flex; justify-content: center; margin: 0 auto 1.25rem; }
.sf-grid svg { max-width: 100%; width: 26rem; height: auto; }
.sf-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin: 1rem auto; }
.sf-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem;
  width: 5.5rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-dim);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.sf-option svg { width: 100%; height: auto; }
.sf-option:hover:not(:disabled) { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); }
.sf-option:focus-visible { border-color: var(--teal); outline: 2px solid var(--teal); outline-offset: 2px; }
.sf-option.is-key { border-color: var(--green); color: var(--green); }
.sf-option.is-wrong { border-color: var(--wrong); color: var(--wrong); }
.sf-letter { font-family: var(--mono); font-size: 0.95rem; }
.sf-explain p { margin: 0.25rem 0; color: var(--ink-dim); font-size: 0.92rem; max-width: var(--measure); }
.sf-score #score { font-family: var(--mono); font-size: 2.4rem; color: var(--teal); }
.sf-practice, .sf-review { margin-bottom: 1rem; }
#results h2 + p.sf-score,
p.sf-score + p.muted,
p.muted + h2 { margin-top: 1.5rem; }
.clock.is-low { color: var(--wrong); }

@media (max-width: 480px) {
  .sf-grid svg { width: 100%; }
  .sf-option { width: 4.6rem; padding: 0.5rem; }
}


.signup-steps { padding-left: 1.4rem; }
.signup-steps li { margin: 0 0 0.7rem; padding-left: 0.3rem; }
.signup-steps li::marker { color: var(--green); font-family: var(--mono, monospace); }
.pricing-plan a:not(.cta) { color: var(--teal); }
.signup-cta { align-items: center; display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.2rem 0; }
