:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --paper-strong: #ffffff;
  --ink: #111211;
  --muted: #62645f;
  --soft: #ebe8df;
  --line: #d8d3c8;
  --line-strong: #aaa498;
  --accent: #164f4a;
  --accent-strong: #0d3d39;
  --accent-soft: #edf4f1;
  --gold: #9b7138;
  --rose: #8e4751;
  --shadow: 0 1px 2px rgba(17, 18, 17, 0.05), 0 18px 40px rgba(17, 18, 17, 0.05);
  --radius: 6px;
  --max: 1460px;
  --site-zoom: 1.35;
  --topbar-height: 75px;
  --display-serif: "Bodoni 72", Didot, "Times New Roman", Georgia, serif;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-anchor: none;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  padding-top: calc(var(--topbar-height) * var(--site-zoom));
  color: var(--ink);
  background: var(--paper);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

a.primary,
a.secondary,
a.ghost,
a.nav-link,
a.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.shell {
  width: calc(100% / var(--site-zoom));
  min-height: calc(100vh / var(--site-zoom));
  transform: scale(var(--site-zoom));
  transform-origin: top left;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: calc(100% / var(--site-zoom));
  max-width: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(216, 211, 200, 0.72);
  background: rgba(247, 246, 241, 0.86);
  backdrop-filter: blur(16px);
  transform: scale(var(--site-zoom));
  transform-origin: top left;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 16px 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-mark::before {
  display: block;
  width: 16px;
  height: 16px;
  content: "";
  background:
    linear-gradient(#ffffff, #ffffff) 0 9px / 4px 7px no-repeat,
    linear-gradient(#ffffff, #ffffff) 6px 5px / 4px 11px no-repeat,
    linear-gradient(#ffffff, #ffffff) 12px 0 / 4px 16px no-repeat;
}

.landing-topbar {
  border-bottom-color: rgba(216, 211, 200, 0.84);
  background: rgba(253, 252, 248, 0.92);
}

.landing-topbar .topbar-inner {
  max-width: min(960px, calc(100% - 48px));
  padding: 18px 0;
}

.landing-topbar .brand {
  gap: 13px;
  font-size: 1.22rem;
  font-weight: 820;
}

.landing-topbar .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 7px;
}

.landing-topbar .brand-mark::before {
  width: 24px;
  height: 24px;
  background:
    linear-gradient(#ffffff, #ffffff) 0 13px / 6px 11px no-repeat,
    linear-gradient(#ffffff, #ffffff) 9px 8px / 6px 16px no-repeat,
    linear-gradient(#ffffff, #ffffff) 18px 0 / 6px 24px no-repeat;
}

.top-actions,
.inline-actions,
.choice-actions,
.pager,
.nav-pills,
.meta-row,
.domain-tabs,
.result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-pills {
  justify-content: center;
}

.ghost,
.nav-link,
.icon-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.ghost,
.primary,
.secondary,
.nav-link,
.danger,
.checkout-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.primary,
.checkout-button {
  color: white;
  background: var(--ink);
  box-shadow: none;
}

.nav-cta {
  min-width: 158px;
  min-height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-size: 1.02rem;
  font-weight: 760;
  box-shadow:
    0 14px 32px rgba(22, 79, 74, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.menu-button {
  display: inline-grid;
  grid-template-rows: repeat(3, 3px);
  align-content: center;
  justify-items: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.landing-topbar .top-actions {
  flex-wrap: nowrap;
  gap: 26px;
}

.hero .inline-actions .primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 42px 0 18px;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 760;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 22px rgba(22, 79, 74, 0.22),
    0 10px 22px rgba(17, 18, 17, 0.12);
}

.hero .inline-actions .primary::after {
  position: absolute;
  right: 17px;
  top: 50%;
  content: ">";
  font-size: 1.1em;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 160ms ease;
}

.hero .inline-actions .primary:hover {
  background: #000000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 30px rgba(22, 79, 74, 0.34),
    0 14px 26px rgba(17, 18, 17, 0.15);
}

.hero .inline-actions .primary:hover::after {
  transform: translate(3px, -50%);
}

.secondary {
  color: var(--accent-strong);
  border: 1px solid rgba(22, 79, 74, 0.28);
  background: var(--accent-soft);
}

.danger {
  color: white;
  background: var(--rose);
}

.ghost:hover,
.primary:hover,
.secondary:hover,
.nav-link:hover,
.danger:hover,
.checkout-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

button:disabled,
button:disabled:hover {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.ghost:focus-visible,
.primary:focus-visible,
.secondary:focus-visible,
.nav-link:focus-visible,
.danger:focus-visible,
.checkout-button:focus-visible,
.choice:focus-visible,
.icon-button:focus-visible,
.menu-button:focus-visible,
.text-input:focus-visible,
.checkbox:focus-visible {
  outline: 3px solid rgba(10, 124, 114, 0.22);
  outline-offset: 2px;
}

.nav-link {
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-link.active {
  color: var(--ink);
  border-color: var(--ink);
}

.page {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 72px;
}

.landing-page {
  width: min(960px, calc(100% - 72px));
  margin: 0 auto;
  padding: 28px 0 76px;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 18px;
}

.landing-dot-field {
  position: absolute;
  top: 30px;
  right: -72px;
  width: min(430px, 48%);
  height: 390px;
  opacity: 0.72;
  background-image: radial-gradient(rgba(98, 100, 95, 0.24) 1.3px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 72%, transparent);
}

.landing-copy {
  position: relative;
  z-index: 1;
}

.landing-title {
  max-width: 760px;
  margin: 0;
  font-family: var(--display-serif);
  font-size: clamp(5rem, 8.4vw, 7.35rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

.landing-title em {
  display: block;
  font-style: italic;
  font-weight: 400;
}

.landing-lead {
  max-width: 690px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 1.38rem;
  line-height: 1.54;
}

.landing-cta {
  width: 100%;
  min-height: 72px;
  margin-top: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-size: 1.38rem;
  font-weight: 800;
  box-shadow:
    0 16px 32px rgba(22, 79, 74, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.landing-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.02rem;
}

.trust-item {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  white-space: nowrap;
}

.trust-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.trust-icon {
  position: relative;
  display: inline-block;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border: 1.7px solid currentColor;
  color: var(--muted);
}

.clock-icon {
  border-radius: 50%;
}

.clock-icon::before,
.clock-icon::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.8px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform-origin: center bottom;
}

.clock-icon::before {
  height: 7px;
  transform: translate(-50%, -100%);
}

.clock-icon::after {
  height: 6px;
  transform: translate(-50%, -100%) rotate(105deg);
}

.shield-icon {
  border: 0;
}

.shield-icon::before {
  position: absolute;
  inset: 1px 3px 0;
  border: 1.7px solid currentColor;
  border-radius: 6px 6px 9px 9px;
  clip-path: polygon(50% 0, 100% 18%, 88% 74%, 50% 100%, 12% 74%, 0 18%);
  content: "";
}

.shield-icon::after {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 5px;
  height: 9px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  content: "";
  transform: translate(-50%, -50%) rotate(42deg);
}

.landing-pattern-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px 132px;
  gap: 34px;
  align-items: stretch;
  margin: 42px auto 0;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 46px rgba(17, 18, 17, 0.045);
}

.pattern-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 38px;
}

.pattern-cell,
.pattern-option {
  display: grid;
  min-height: 92px;
  place-items: center;
}

.pattern-divider {
  width: 1px;
  background: var(--line);
}

.pattern-options {
  display: grid;
  gap: 18px;
}

.pattern-option {
  min-height: 82px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.74);
}

.pattern-lines,
.pattern-dots,
.nested-squares,
.ring-grid,
.small-square {
  display: block;
  width: 84px;
  height: 84px;
}

.pattern-lines.vertical {
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 9px);
}

.pattern-lines.horizontal {
  background: repeating-linear-gradient(0deg, var(--ink) 0 2px, transparent 2px 9px);
}

.pattern-lines.diagonal {
  background: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 11px);
}

.pattern-dots {
  background-image: radial-gradient(circle, var(--ink) 2px, transparent 2.4px);
  background-size: 16px 16px;
}

.pattern-dots.filled {
  background-image: radial-gradient(circle, var(--ink) 6px, transparent 6.4px);
  background-size: 28px 28px;
  background-position: 0 0;
}

.ring-grid {
  background-image: radial-gradient(circle, transparent 0 5px, var(--ink) 5.4px 6.6px, transparent 7px);
  background-size: 28px 28px;
}

.nested-squares {
  position: relative;
  border: 2px solid var(--ink);
}

.nested-squares span,
.nested-squares i {
  position: absolute;
  inset: 13px;
  border: 2px solid var(--ink);
}

.nested-squares span + span {
  inset: 26px;
}

.nested-squares i {
  inset: 39px;
  background: transparent;
}

.nested-squares.filled i,
.small-square.filled-center::before {
  background: var(--ink);
}

.question-cell-preview {
  min-height: 92px;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: linear-gradient(135deg, #ffffff, var(--accent-soft));
  font-size: 2.2rem;
  font-weight: 820;
}

.small-square {
  position: relative;
  width: 74px;
  height: 74px;
  border: 1.5px solid var(--ink);
}

.small-square::before {
  position: absolute;
  inset: 29px;
  content: "";
}

.pattern-lines.tiny,
.pattern-dots.tiny,
.ring-grid.tiny {
  width: 72px;
  height: 72px;
}

.landing-reference-intro {
  margin-top: 58px;
}

.landing-reference-intro h2 {
  max-width: none;
  margin-bottom: 18px;
  font-family: var(--display-serif);
  font-size: clamp(3.8rem, 6.4vw, 5.25rem);
  font-weight: 400;
  line-height: 0.96;
}

.landing-reference-intro p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.32rem;
  line-height: 1.52;
}

.landing-reference-card {
  margin-top: 34px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(17, 18, 17, 0.04);
}

.landing-reference-card .eyebrow {
  margin-bottom: 24px;
}

.landing-reference-card h3 {
  margin-bottom: 18px;
  font-size: 1.42rem;
  font-weight: 820;
}

.reference-preview-score {
  display: flex;
  gap: 26px;
  align-items: baseline;
}

.reference-preview-score span {
  font-size: 5.3rem;
  font-weight: 880;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.reference-preview-score small,
.landing-reference-card p:last-child {
  color: var(--muted);
  font-size: 1.04rem;
}

.reference-preview-meter {
  overflow: hidden;
  height: 9px;
  margin-top: 22px;
  border-radius: 999px;
  background: var(--soft);
}

.reference-preview-meter span {
  display: block;
  width: var(--percent);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 4px 16px rgba(22, 79, 74, 0.28);
}

.landing-reference-card p:last-child {
  margin: 18px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1fr);
  grid-template-areas:
    "intro reference"
    "actions reference";
  align-items: start;
  column-gap: 48px;
  row-gap: 0;
  min-height: auto;
  padding: 34px 0 42px;
}

.hero-intro {
  grid-area: intro;
}

.hero-actions-panel {
  grid-area: actions;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: 5.35rem;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 3.25rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.56;
}

.meta-row {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.meta-row li,
.pill,
.timer,
.domain-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  white-space: nowrap;
}

.hero-note,
.fine-print,
.caption,
.method-copy {
  color: var(--muted);
  line-height: 1.55;
}

.hero-note {
  max-width: 620px;
  margin-top: 18px;
  font-size: 0.92rem;
}

.lab-panel,
.card,
.test-stage,
.paywall-panel,
.result-hero,
.modal,
.method-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.lab-panel {
  padding: 16px;
}

.lab-panel-inner {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.mini-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-tile,
.choice-visual,
.question-cell,
.memory-cell,
.stat-card,
.locked-card,
.domain-card,
.seo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.mini-tile,
.question-cell,
.choice-visual {
  display: grid;
  min-height: 104px;
  place-items: center;
}

.missing {
  color: var(--accent-strong);
  border-style: dashed;
  background: #f3f1e9;
}

.mini-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero-stat-grid,
.domain-grid,
.locked-grid,
.seo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hero-stat-grid {
  margin-top: 18px;
}

.section-head,
.reference-title-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 26px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

.section-head p:last-child,
.reference-title-row p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-head h2,
.reference-title-row h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 2.45rem;
}

.reference-carousel {
  grid-area: reference;
  position: relative;
  min-height: 525px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fdfcf8;
  box-shadow: var(--shadow);
}

.carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.carousel-head .eyebrow {
  margin: 0;
}

.carousel-window {
  position: relative;
  overflow: hidden;
  height: 394px;
  margin-top: 18px;
}

.carousel-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 148px 1fr;
  gap: 24px;
  opacity: 0;
  transform: translate3d(14px, 0, 0);
  animation: cohort-slide var(--duration) linear infinite both;
  animation-delay: var(--delay);
  will-change: opacity, transform;
}

.asset-logo,
.reference-logo {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.asset-logo {
  width: 54px;
  height: 54px;
}

.asset-logo-large {
  width: 100%;
  height: 148px;
}

.asset-logo img,
.reference-logo img {
  position: relative;
  z-index: 2;
  width: var(--logo-width, 34px);
  height: var(--logo-height, 34px);
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform: scale(var(--logo-scale, 1));
  transform-origin: center;
}

.asset-logo span,
.reference-logo span {
  display: none;
}

.asset-logo-large img {
  width: var(--logo-width, 68px);
  height: var(--logo-height, 68px);
}

.asset-logo-large span {
  font-size: 1.5rem;
}

.cohort-category {
  margin: 0 0 10px;
  color: #657b94;
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reference-carousel h2 {
  margin: 0 0 18px;
  font-size: 2.25rem;
  line-height: 1.05;
}

.cohort-score-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.cohort-score {
  font-size: 6.4rem;
  font-weight: 850;
  line-height: 0.86;
  font-variant-numeric: tabular-nums;
}

.cohort-caption,
.cohort-footnote {
  color: var(--muted);
  font-size: 0.82rem;
}

.cohort-meter {
  position: relative;
  overflow: hidden;
  height: 7px;
  margin-top: 20px;
  border-radius: 999px;
  background: var(--soft);
}

.cohort-meter span {
  display: block;
  width: var(--percent);
  height: 100%;
  background: var(--ink);
  transform-origin: left;
  animation: fill-meter 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cohort-footnote {
  margin-top: 12px;
}

.carousel-disclaimer {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.test-reference-band,
.reference-set {
  margin-top: 48px;
}

.test-reference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.test-reference-card {
  display: grid;
  min-height: 204px;
  gap: 10px;
  align-content: start;
  padding: 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.test-reference-card:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.test-reference-card strong {
  margin-top: 8px;
  font-size: 1rem;
}

.test-reference-card span:not(.asset-logo),
.test-reference-card small {
  color: var(--muted);
  line-height: 1.45;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reference-card {
  min-height: 252px;
  padding: 28px 26px 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #ffffff;
}

.reference-logo {
  width: 100%;
  height: 72px;
  margin-bottom: 22px;
}

.reference-logo img {
  width: var(--logo-width, 52px);
  height: var(--logo-height, 52px);
}

.reference-card h3 {
  min-height: 48px;
  margin-bottom: 16px;
  font-size: 1.08rem;
  line-height: 1.18;
}

.reference-score-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.reference-score {
  font-size: 4.1rem;
  font-weight: 860;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.reference-score-line span:last-child {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.stat-card,
.domain-card,
.seo-card {
  padding: 14px;
}

.stat-number {
  display: block;
  margin-bottom: 4px;
  font-size: 1.45rem;
  font-weight: 800;
}

.stat-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.pretest {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: start;
  max-width: 1000px;
  margin: 48px auto 0;
}

.rule-list,
.source-list {
  display: grid;
  gap: 11px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.rule-list li,
.source-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.45;
}

.check {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(10, 124, 114, 0.32);
  border-radius: 5px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 0.8rem;
}

.summary-stack {
  display: grid;
  gap: 12px;
}

.test-wrap {
  max-width: 950px;
  margin: 22px auto 0;
}

.test-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.progress-label {
  text-align: center;
  color: var(--muted);
  font-weight: 680;
}

.timer {
  justify-self: end;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.timer.warn {
  color: #8f5d00;
  border-color: rgba(185, 133, 40, 0.42);
  background: rgba(255, 244, 221, 0.78);
}

.timer.hot {
  color: #8f2633;
  border-color: rgba(183, 91, 99, 0.38);
  background: rgba(255, 232, 234, 0.84);
}

.progress-track {
  overflow: hidden;
  height: 6px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--soft);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 180ms ease;
}

.test-stage {
  min-height: 630px;
  padding: 34px;
}

.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.domain-chip {
  color: var(--accent-strong);
  border-color: rgba(10, 124, 114, 0.26);
  background: var(--accent-soft);
}

.difficulty {
  color: var(--muted);
  font-size: 0.86rem;
}

.question-title {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 2rem;
  line-height: 1.12;
}

.question-area {
  display: grid;
  gap: 18px;
}

.sequence,
.matrix-grid,
.choice-grid,
.memory-grid {
  display: grid;
  gap: 10px;
}

.sequence {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.matrix-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 540px;
}

.logic-board,
.number-board,
.spatial-board,
.memory-board {
  display: grid;
  gap: 12px;
  max-width: 720px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4f2eb;
}

.number-line,
.equation-row,
.constraint-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.number-token,
.equation-token,
.constraint-token {
  display: grid;
  min-width: 52px;
  min-height: 48px;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  font-size: 1.08rem;
  font-weight: 720;
}

.choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

.choice {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 112px;
  align-content: center;
  align-items: center;
  justify-items: center;
  column-gap: 12px;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper-strong);
  cursor: pointer;
  text-align: center;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.choice:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 8px 20px rgba(17, 18, 17, 0.06);
}

.choice.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(22, 79, 74, 0.3);
}

.choice-letter {
  display: grid;
  grid-column: 1;
  grid-row: 1 / -1;
  width: 24px;
  height: 24px;
  align-self: center;
  justify-self: center;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 760;
}

.choice > :not(.choice-letter) {
  grid-column: 2;
  justify-self: center;
}

.choice .memory-grid {
  width: min(168px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.choice .memory-cell {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.choice-text {
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.choice svg,
.question-cell svg,
.mini-tile svg,
.choice-visual svg,
.spatial-board svg {
  width: min(92px, 72%);
  height: auto;
}

.matrix-grid .question-cell {
  aspect-ratio: 1;
  min-height: 0;
}

.memory-grid {
  grid-template-columns: repeat(4, 54px);
}

.memory-cell {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  font-weight: 800;
}

.memory-cell.on {
  color: white;
  border-color: var(--accent);
  background: var(--accent);
}

.memory-stage {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  text-align: center;
}

.memory-sequence {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.memory-token {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 1.35rem;
  font-weight: 820;
}

.memory-countdown {
  color: var(--accent-strong);
  font-weight: 760;
}

.pager {
  justify-content: space-between;
  margin-top: 22px;
}

.pager-left,
.pager-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.question-jump {
  display: grid;
  grid-template-columns: repeat(25, 1fr);
  gap: 5px;
  margin-top: 18px;
}

.jump-dot {
  height: 8px;
  border-radius: 999px;
  background: var(--soft);
}

.jump-dot.current {
  background: var(--ink);
}

.jump-dot.answered {
  background: var(--accent);
}

.processing {
  display: grid;
  max-width: 760px;
  min-height: 540px;
  place-items: center;
  margin: 32px auto 0;
  text-align: center;
}

.processing-loader {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(22, 79, 74, 0), var(--accent), var(--gold), rgba(22, 79, 74, 0));
  box-shadow: 0 18px 38px rgba(17, 18, 17, 0.08);
  animation: processing-spin 1200ms linear infinite;
}

.processing-loader::before {
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(216, 211, 200, 0.82);
  content: "";
}

.processing-loader::after {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
  transform: translateX(-50%);
}

.processing-list {
  display: grid;
  width: min(520px, 100%);
  gap: 10px;
  margin-top: 26px;
}

.processing-step {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.processing-step.done {
  border-color: rgba(10, 124, 114, 0.26);
  color: var(--accent-strong);
}

.paywall-panel,
.result-hero,
.method-panel {
  max-width: 980px;
  margin: 34px auto 0;
  padding: 38px;
}

.pretest-card {
  padding: 34px;
}

.locked-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0;
}

.locked-card {
  min-height: 116px;
  padding: 18px;
}

.locked-value {
  display: block;
  margin: 8px 0 4px;
  font-size: 2rem;
  font-weight: 860;
  filter: blur(4px);
  user-select: none;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 8px;
}

.price {
  font-size: 2.6rem;
  font-weight: 880;
}

.email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
}

.checkout-status,
.checkout-error {
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.45;
}

.checkout-status {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.checkout-error {
  color: #8f2633;
  border-color: rgba(183, 91, 99, 0.3);
  background: rgba(255, 232, 234, 0.82);
}

.verify-button {
  margin-top: 12px;
}

.checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.result-top {
  display: grid;
  grid-template-columns: minmax(210px, 0.6fr) 1fr;
  gap: 28px;
  align-items: center;
}

.score-number {
  display: block;
  color: var(--accent-strong);
  font-size: 7.5rem;
  font-weight: 820;
  line-height: 0.9;
}

.percentile {
  display: inline-flex;
  margin-top: 10px;
  color: var(--gold);
  font-weight: 800;
}

.domain-bars {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.bar-row {
  display: grid;
  grid-template-columns: 180px 1fr 68px;
  gap: 12px;
  align-items: center;
}

.bar-track {
  position: relative;
  display: block;
  overflow: hidden;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 24.7%, rgba(17, 18, 17, 0.08) 24.9%, transparent 25.1%),
    linear-gradient(90deg, transparent 49.7%, rgba(17, 18, 17, 0.12) 49.9%, transparent 50.1%),
    linear-gradient(90deg, transparent 74.7%, rgba(17, 18, 17, 0.08) 74.9%, transparent 75.1%),
    var(--soft);
}

.bar-fill {
  display: block;
  width: var(--percent);
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  transform-origin: left;
  animation: fill-meter 950ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.bar-marker {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: var(--percent);
  width: 2px;
  background: var(--ink);
  transform: translateX(-1px);
  animation: marker-in 700ms ease 180ms both;
}

.score-meter {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.score-meter-head,
.score-scale {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.score-meter-head {
  margin-bottom: 10px;
}

.score-meter-head strong {
  color: var(--ink);
}

.score-track {
  position: relative;
  display: block;
  overflow: hidden;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 24.7%, rgba(17, 18, 17, 0.08) 24.9%, transparent 25.1%),
    linear-gradient(90deg, transparent 49.7%, rgba(17, 18, 17, 0.16) 49.9%, transparent 50.1%),
    linear-gradient(90deg, transparent 74.7%, rgba(17, 18, 17, 0.08) 74.9%, transparent 75.1%),
    var(--soft);
}

.score-fill {
  display: block;
  width: var(--percent);
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #0d3d39, #6f633d);
  transform-origin: left;
  animation: fill-meter 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.score-marker {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: var(--percent);
  width: 2px;
  background: var(--ink);
  transform: translateX(-1px);
  animation: marker-in 760ms ease 210ms both;
}

.score-scale {
  margin-top: 8px;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

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

.share-card {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: white;
  background: var(--ink);
}

.share-kicker {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.share-score {
  font-size: 4.4rem;
  font-weight: 880;
  line-height: 0.94;
}

.method-panel {
  box-shadow: none;
}

@keyframes fill-meter {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes marker-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes processing-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cohort-slide {
  0% {
    opacity: 0;
    transform: translate3d(14px, 0, 0);
  }
  0.85%,
  5.15% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  6.25%,
  100% {
    opacity: 0;
    transform: translate3d(-14px, 0, 0);
  }
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.domain-card p,
.seo-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.source-list a {
  color: var(--accent-strong);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(21, 21, 20, 0.34);
  backdrop-filter: blur(8px);
}

.modal {
  width: min(520px, 100%);
  padding: 24px;
}

.payment-options {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.payment-option {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.text-input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper-strong);
}

.footer {
  max-width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 22px 42px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

@media (max-width: 1380px) {
  h1 {
    font-size: 4.3rem;
  }

  h2 {
    font-size: 2.6rem;
  }

  .hero,
  .pretest,
  .result-top {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-areas:
      "intro"
      "reference"
      "actions";
    row-gap: 20px;
    min-height: auto;
    padding-top: 20px;
  }

  .choice-grid,
  .hero-stat-grid,
  .domain-grid,
  .method-grid,
  .seo-grid,
  .test-reference-grid,
  .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head,
  .reference-title-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .test-header {
    grid-template-columns: 1fr;
  }

  .progress-label,
  .timer {
    justify-self: start;
    text-align: left;
  }

  .question-jump {
    grid-template-columns: repeat(13, 1fr);
  }

  .reference-carousel {
    min-height: 500px;
  }

  .landing-page {
    width: min(820px, calc(100% - 56px));
  }
}

@media (max-width: 930px) {
  :root {
    --site-zoom: 1;
    --topbar-height: 58px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: 3rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .lead {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .question-title {
    font-size: 1.38rem;
  }

  .score-number {
    font-size: 4.6rem;
  }

  .share-score {
    font-size: 2.75rem;
  }

  .topbar-inner {
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
  }

  .brand {
    gap: 7px;
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .top-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .top-actions .nav-link,
  .top-actions .primary,
  .top-actions .ghost {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .landing-topbar .topbar-inner {
    max-width: none;
    padding: 12px 26px;
  }

  .landing-topbar .brand {
    gap: 10px;
    font-size: 1.04rem;
  }

  .landing-topbar .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 6px;
  }

  .landing-topbar .brand-mark::before {
    width: 19px;
    height: 19px;
    background:
      linear-gradient(#ffffff, #ffffff) 0 10px / 5px 9px no-repeat,
      linear-gradient(#ffffff, #ffffff) 7px 6px / 5px 13px no-repeat,
      linear-gradient(#ffffff, #ffffff) 14px 0 / 5px 19px no-repeat;
  }

  .landing-topbar .top-actions {
    gap: 16px;
  }

  .landing-topbar .nav-cta {
    min-width: 124px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 0.95rem;
  }

  .landing-topbar .menu-button {
    width: 38px;
    height: 38px;
  }

  .landing-topbar .menu-button span {
    width: 25px;
    height: 3px;
  }

  .page {
    width: min(calc(100% - 28px), var(--max));
    padding-top: 0;
  }

  .landing-page {
    width: min(calc(100% - 52px), 720px);
    padding: 24px 0 64px;
  }

  .landing-hero {
    padding: 28px 0 10px;
  }

  .landing-dot-field {
    top: 10px;
    right: -86px;
    width: 54%;
    height: 310px;
    background-size: 17px 17px;
  }

  .landing-title {
    max-width: 100%;
    font-size: clamp(3.3rem, 14vw, 4.25rem);
  }

  .landing-lead {
    max-width: 100%;
    margin-top: 26px;
    font-size: 1.1rem;
    line-height: 1.58;
  }

  .landing-cta {
    min-height: 58px;
    margin-top: 30px;
    font-size: 1.12rem;
  }

  .landing-trust-row {
    gap: 11px;
    margin-top: 18px;
    font-size: 0.95rem;
  }

  .trust-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .landing-pattern-card {
    grid-template-columns: minmax(0, 1fr) 1px 84px;
    gap: 18px;
    margin-top: 30px;
    padding: 22px;
  }

  .pattern-matrix {
    gap: 18px 20px;
  }

  .pattern-cell,
  .pattern-option {
    min-height: 66px;
  }

  .pattern-options {
    gap: 14px;
  }

  .pattern-option {
    min-height: 64px;
  }

  .pattern-lines,
  .pattern-dots,
  .nested-squares,
  .ring-grid {
    width: 60px;
    height: 60px;
  }

  .pattern-lines.vertical {
    background: repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 7px);
  }

  .pattern-lines.horizontal {
    background: repeating-linear-gradient(0deg, var(--ink) 0 1.5px, transparent 1.5px 7px);
  }

  .pattern-lines.diagonal {
    background: repeating-linear-gradient(135deg, var(--ink) 0 1.5px, transparent 1.5px 8px);
  }

  .pattern-dots {
    background-image: radial-gradient(circle, var(--ink) 1.7px, transparent 2px);
    background-size: 12px 12px;
  }

  .pattern-dots.filled {
    background-image: radial-gradient(circle, var(--ink) 4.6px, transparent 5px);
    background-size: 20px 20px;
  }

  .ring-grid {
    background-image: radial-gradient(circle, transparent 0 3.8px, var(--ink) 4.1px 5.1px, transparent 5.4px);
    background-size: 20px 20px;
  }

  .nested-squares span,
  .nested-squares i {
    inset: 9px;
  }

  .nested-squares span + span {
    inset: 18px;
  }

  .nested-squares i {
    inset: 27px;
  }

  .question-cell-preview {
    min-height: 66px;
    font-size: 1.85rem;
  }

  .small-square,
  .pattern-lines.tiny,
  .pattern-dots.tiny,
  .ring-grid.tiny {
    width: 54px;
    height: 54px;
  }

  .small-square::before {
    inset: 21px;
  }

  .landing-reference-intro {
    margin-top: 46px;
  }

  .landing-reference-intro h2 {
    margin-bottom: 14px;
    font-size: clamp(2.8rem, 12vw, 3.72rem);
  }

  .landing-reference-intro p {
    font-size: 1.08rem;
    line-height: 1.58;
  }

  .landing-reference-card {
    margin-top: 30px;
    padding: 24px;
  }

  .landing-reference-card .eyebrow {
    margin-bottom: 22px;
  }

  .landing-reference-card h3 {
    font-size: 1.14rem;
  }

  .reference-preview-score {
    gap: 22px;
  }

  .reference-preview-score span {
    font-size: 4rem;
  }

  .reference-preview-score small,
  .landing-reference-card p:last-child {
    font-size: 0.94rem;
  }

  .hero {
    grid-template-areas:
      "intro"
      "actions"
      "reference";
    row-gap: 16px;
    padding: 14px 0 30px;
  }

  .hero .eyebrow {
    margin-bottom: 10px;
    font-size: 0.68rem;
  }

  .hero .lead {
    display: none;
  }

  .hero-actions-panel {
    display: grid;
    gap: 12px;
  }

  .hero .meta-row {
    justify-content: center;
    gap: 6px;
    margin: 0;
  }

  .hero .meta-row li {
    min-height: 29px;
    padding: 0 9px;
    font-size: 0.74rem;
  }

  .hero .inline-actions {
    width: 100%;
    flex-flow: row nowrap;
    gap: 8px;
  }

  .hero .inline-actions button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .hero .inline-actions .primary {
    min-height: 42px;
    padding: 0 32px 0 10px;
    font-size: 0.86rem;
  }

  .hero-note {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .test-stage,
  .paywall-panel,
  .result-hero,
  .method-panel,
  .pretest-card {
    padding: 20px;
  }

  .sequence,
  .choice-grid,
  .locked-grid,
  .hero-stat-grid,
  .domain-grid,
  .method-grid,
  .seo-grid,
  .test-reference-grid,
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .reference-carousel {
    min-height: 332px;
    padding: 14px;
  }

  .carousel-window {
    height: 238px;
    margin-top: 12px;
  }

  .carousel-head {
    padding-bottom: 10px;
    font-size: 0.62rem;
  }

  .asset-logo-large {
    height: 72px;
  }

  .carousel-card {
    grid-template-rows: 72px 1fr;
    gap: 12px;
  }

  .reference-carousel h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
  }

  .cohort-score-row {
    gap: 10px;
  }

  .cohort-score {
    font-size: 3.7rem;
  }

  .cohort-caption,
  .cohort-footnote {
    font-size: 0.72rem;
  }

  .cohort-meter {
    margin-top: 12px;
  }

  .cohort-footnote {
    margin-top: 8px;
  }

  .carousel-disclaimer {
    display: none;
  }

  .reference-card {
    min-height: 220px;
    padding: 22px 20px;
  }

  .mini-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bar-row {
    grid-template-columns: 1fr;
  }

  .pretest {
    gap: 14px;
    margin-top: 14px;
  }

  .pretest-card h2 {
    margin-bottom: 10px;
    font-size: 1.76rem;
    line-height: 1.08;
  }

  .pretest-card .lead {
    margin-bottom: 14px;
  }

  .pretest .rule-list {
    gap: 8px;
    margin: 16px 0;
  }

  .pretest .rule-list li,
  .summary-stack p {
    font-size: 0.86rem;
  }

  .summary-stack {
    gap: 8px;
  }

  .domain-card {
    padding: 14px;
  }

  .test-wrap {
    margin-top: 12px;
  }

  .test-header {
    gap: 8px;
    margin-bottom: 10px;
  }

  .test-header .pill,
  .timer {
    min-height: 30px;
    font-size: 0.78rem;
  }

  .progress-track {
    margin-bottom: 12px;
  }

  .test-stage {
    min-height: auto;
  }

  .question-meta {
    margin-bottom: 12px;
  }

  .question-title {
    margin-bottom: 14px;
    line-height: 1.14;
  }

  .question-area {
    gap: 14px;
  }

  .sequence,
  .matrix-grid,
  .choice-grid,
  .memory-grid {
    gap: 8px;
  }

  .mini-tile,
  .question-cell,
  .choice-visual {
    min-height: 82px;
  }

  .choice-grid {
    margin-top: 4px;
  }

  .choice {
    grid-template-columns: 24px minmax(0, 1fr);
    min-height: 88px;
    gap: 8px;
    padding: 10px 8px;
  }

  .choice-letter {
    top: 8px;
    left: 8px;
    width: 22px;
    height: 22px;
  }

  .choice .memory-grid {
    width: min(112px, 100%);
    gap: 4px;
  }

  .choice-text {
    font-size: 0.96rem;
  }

  .memory-stage {
    min-height: 210px;
    padding: 16px;
  }

  .memory-token,
  .memory-cell {
    width: 48px;
    height: 48px;
  }

  .pager {
    align-items: stretch;
  }

  .pager,
  .pager-left,
  .pager-right,
  .inline-actions,
  .result-actions {
    flex-direction: column;
  }

  .pager button,
  .inline-actions button,
  .result-actions button {
    width: 100%;
  }

  .test-wrap .pager {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
  }

  .test-wrap .sequence {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .test-wrap .matrix-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }

  .test-wrap .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .test-wrap .mini-tile,
  .test-wrap .question-cell,
  .test-wrap .choice-visual {
    min-height: 62px;
  }

  .test-wrap .choice {
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 78px;
    padding: 8px;
  }

  .test-wrap .choice svg,
  .test-wrap .question-cell svg,
  .test-wrap .mini-tile svg,
  .test-wrap .choice-visual svg,
  .test-wrap .spatial-board svg {
    width: min(62px, 68%);
  }

  .test-wrap .pager-left,
  .test-wrap .pager-right {
    flex-direction: row;
    gap: 8px;
  }

  .test-wrap .pager button {
    width: auto;
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.82rem;
  }
}

@media (max-width: 520px) {
  :root {
    --topbar-height: 54px;
  }

  h1 {
    margin-bottom: 12px;
    font-size: 2.62rem;
  }

  h2 {
    font-size: 1.82rem;
  }

  .lead {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .topbar-inner {
    gap: 6px;
    padding: 8px 10px;
  }

  .landing-topbar .topbar-inner {
    padding: 10px 18px;
  }

  .brand {
    gap: 6px;
    font-size: 0.88rem;
  }

  .landing-topbar .brand {
    gap: 9px;
    font-size: 1rem;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .landing-topbar .brand-mark {
    width: 32px;
    height: 32px;
  }

  .landing-topbar .top-actions {
    gap: 12px;
  }

  .landing-topbar .nav-cta {
    min-width: 116px;
    min-height: 42px;
    padding: 0 15px;
    font-size: 0.88rem;
  }

  .landing-topbar .menu-button {
    width: 36px;
    height: 36px;
  }

  .top-actions .nav-link,
  .top-actions .primary,
  .top-actions .ghost {
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.76rem;
  }

  .landing-topbar .nav-cta {
    min-height: 42px;
    padding: 0 15px;
    font-size: 0.88rem;
  }

  .page {
    width: min(calc(100% - 24px), var(--max));
  }

  .landing-page {
    width: min(calc(100% - 44px), 720px);
    padding: 18px 0 56px;
  }

  .landing-hero {
    padding-top: 22px;
  }

  .landing-title {
    font-size: clamp(2.92rem, 13.5vw, 3.45rem);
  }

  .landing-lead {
    margin-top: 22px;
    font-size: 1.02rem;
  }

  .landing-cta {
    min-height: 56px;
    margin-top: 26px;
    font-size: 1.06rem;
  }

  .landing-trust-row {
    font-size: 0.9rem;
  }

  .landing-pattern-card {
    grid-template-columns: minmax(0, 1fr) 1px 72px;
    gap: 14px;
    padding: 18px;
  }

  .pattern-matrix {
    gap: 15px 16px;
  }

  .pattern-cell,
  .pattern-option {
    min-height: 56px;
  }

  .pattern-lines,
  .pattern-dots,
  .nested-squares,
  .ring-grid {
    width: 50px;
    height: 50px;
  }

  .small-square,
  .pattern-lines.tiny,
  .pattern-dots.tiny,
  .ring-grid.tiny {
    width: 46px;
    height: 46px;
  }

  .small-square::before {
    inset: 18px;
  }

  .question-cell-preview {
    min-height: 56px;
    font-size: 1.65rem;
  }

  .landing-reference-intro h2 {
    font-size: clamp(2.42rem, 11.5vw, 3.1rem);
  }

  .reference-preview-score span {
    font-size: 3.45rem;
  }

  .hero {
    row-gap: 14px;
    padding-top: 10px;
  }

  .hero .eyebrow {
    margin-bottom: 9px;
    font-size: 0.66rem;
  }

  .hero .meta-row li {
    min-height: 27px;
    padding: 0 7px;
    font-size: 0.69rem;
  }

  .hero .inline-actions {
    gap: 7px;
  }

  .hero .inline-actions button {
    min-height: 38px;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .hero .inline-actions .primary {
    min-height: 40px;
    padding-right: 28px;
    font-size: 0.8rem;
  }

  .reference-carousel {
    min-height: 304px;
    padding: 12px;
  }

  .carousel-window {
    height: 218px;
  }

  .asset-logo-large {
    height: 62px;
  }

  .carousel-card {
    grid-template-rows: 62px 1fr;
  }

  .cohort-score {
    font-size: 3.1rem;
  }

  .pretest-card h2 {
    font-size: 1.5rem;
  }

  .test-stage {
    padding: 14px;
  }

  .question-title {
    font-size: 1.12rem;
  }

  .test-wrap .pager button {
    padding: 0 8px;
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) {
  .topbar-inner {
    padding-inline: 8px;
  }

  .brand span:last-child {
    display: none;
  }

  .landing-topbar .brand span:last-child {
    display: inline;
  }

  .landing-topbar .topbar-inner {
    padding-inline: 10px;
  }

  .landing-topbar .brand {
    gap: 7px;
    font-size: 0.9rem;
  }

  .landing-topbar .brand-mark {
    width: 30px;
    height: 30px;
  }

  .landing-topbar .top-actions {
    gap: 8px;
  }

  .landing-topbar .nav-cta {
    min-width: 104px;
    min-height: 39px;
    padding: 0 11px;
    font-size: 0.8rem;
  }

  .landing-topbar .menu-button {
    width: 31px;
    height: 34px;
  }

  .landing-topbar .menu-button span {
    width: 22px;
    height: 2.5px;
  }

  .top-actions .nav-link,
  .top-actions .primary,
  .top-actions .ghost {
    padding: 0 7px;
    font-size: 0.72rem;
  }

  .landing-topbar .nav-cta {
    padding: 0 11px;
    font-size: 0.8rem;
  }

  .landing-page {
    width: min(calc(100% - 32px), 720px);
  }

  .landing-title {
    font-size: clamp(2.55rem, 13.2vw, 3rem);
  }

  .landing-pattern-card {
    grid-template-columns: minmax(0, 1fr) 1px 64px;
    gap: 12px;
    padding: 14px;
  }

  .pattern-matrix {
    gap: 12px;
  }

  .pattern-cell,
  .pattern-option {
    min-height: 48px;
  }

  .pattern-lines,
  .pattern-dots,
  .nested-squares,
  .ring-grid {
    width: 42px;
    height: 42px;
  }

  .small-square,
  .pattern-lines.tiny,
  .pattern-dots.tiny,
  .ring-grid.tiny {
    width: 39px;
    height: 39px;
  }

  .question-cell-preview {
    min-height: 48px;
  }

  .hero .inline-actions button {
    padding: 0 6px;
    font-size: 0.74rem;
  }

  .hero .inline-actions .primary {
    font-size: 0.76rem;
  }

  .hero .inline-actions .primary::after {
    right: 11px;
  }

  .test-wrap .choice {
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 6px;
  }

  .test-wrap .choice-letter {
    width: 20px;
    height: 20px;
    font-size: 0.68rem;
  }
}
