:root {
  --ink: #17211f;
  --ink-soft: #53615d;
  --paper: #f7f3ec;
  --paper-deep: #efe8dc;
  --night: #111c1b;
  --night-soft: #1d2b29;
  --gold: #d9a85f;
  --gold-light: #f1d6a4;
  --coral: #e7856f;
  --green: #72b595;
  --line: rgba(23, 33, 31, 0.14);
  --white-line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(31, 43, 40, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
summary {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible + span {
  outline: 3px solid rgba(217, 168, 95, 0.55);
  outline-offset: 4px;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 28, 27, 0.94);
  color: #fff;
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(241, 214, 164, 0.48);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.desktop-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  display: grid;
  width: 44px;
  height: 44px;
  cursor: pointer;
  list-style: none;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--white-line);
  border-radius: 50%;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary span {
  display: block;
  width: 17px;
  height: 1px;
  background: #fff;
}

.mobile-nav nav {
  position: absolute;
  top: 54px;
  right: 0;
  display: grid;
  width: 220px;
  padding: 12px;
  gap: 2px;
  border: 1px solid var(--white-line);
  border-radius: 16px;
  background: #152321;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
}

.mobile-nav nav a {
  padding: 13px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  text-decoration: none;
}

.mobile-nav nav a:hover {
  background: rgba(255, 255, 255, 0.07);
}

.hero {
  position: relative;
  min-height: 770px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 38%, rgba(113, 171, 151, 0.09), transparent 28%),
    radial-gradient(circle at 8% 92%, rgba(217, 168, 95, 0.08), transparent 30%),
    var(--night);
  color: #fff;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 120px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.12));
  content: "";
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: 690px;
  margin: 0 auto;
  padding: 90px 0 80px;
  align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
}

.hero-copy {
  max-width: 690px;
}

.kicker,
.eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kicker span {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  max-width: 680px;
  margin: 26px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.hero h1 em {
  display: block;
  color: var(--gold-light);
  font-weight: 400;
}

.hero-lead {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.48;
}

.hero-detail {
  max-width: 610px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  margin-top: 34px;
  align-items: center;
  gap: 26px;
}

.primary-button,
.secondary-button,
.link-button {
  display: inline-flex;
  min-height: 54px;
  padding: 0 24px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
}

.primary-button {
  background: var(--gold);
  color: #18201e;
}

.primary-button:hover,
.secondary-button:hover,
.link-button:hover {
  transform: translateY(-2px);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
  transform: none;
}

.primary-button.light {
  background: #fff;
}

.primary-button span {
  font-size: 18px;
}

.secondary-button {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.text-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 7px;
}

.trust-row {
  display: flex;
  margin-top: 42px;
  gap: 28px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.trust-row span {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.trust-row strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.moon-visual {
  position: relative;
  width: 470px;
  height: 470px;
  justify-self: end;
}

.moon-visual::before {
  position: absolute;
  inset: 80px;
  border-radius: 50%;
  background: rgba(217, 168, 95, 0.11);
  box-shadow: 0 0 100px rgba(217, 168, 95, 0.16);
  content: "";
  filter: blur(5px);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.orbit-one {
  inset: 36px;
}

.orbit-two {
  inset: 0;
  border-style: dashed;
  animation: spin 50s linear infinite;
}

.moon {
  position: absolute;
  top: 118px;
  left: 128px;
  width: 220px;
  height: 220px;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff8e9 0 5%, transparent 6%),
    radial-gradient(circle at 60% 68%, rgba(105, 93, 70, 0.12) 0 7%, transparent 8%),
    radial-gradient(circle at 45% 58%, rgba(105, 93, 70, 0.08) 0 4%, transparent 5%),
    linear-gradient(135deg, #f7e2bb, #d7ac67);
  box-shadow: 0 0 80px rgba(217, 168, 95, 0.28);
}

.moon-cutout {
  position: absolute;
  top: -20px;
  right: -50px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--night);
}

.thought-card {
  position: absolute;
  display: flex;
  padding: 13px 17px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(28, 44, 42, 0.85);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.thought-card-one {
  top: 52px;
  left: 12px;
  animation: float 5s ease-in-out infinite;
}

.thought-card-two {
  top: 238px;
  right: -12px;
  animation: float 6s 0.8s ease-in-out infinite;
}

.thought-card-three {
  bottom: 24px;
  left: 94px;
  animation: float 5.4s 0.3s ease-in-out infinite;
}

.thought-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.thought-dot.gold {
  background: var(--gold);
}

.thought-dot.coral {
  background: var(--coral);
}

.thought-dot.green {
  background: var(--green);
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

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

.intro-section,
.method-section,
.sources-section,
.result-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-section,
.method-section {
  padding: 110px 0;
}

.section-heading {
  display: grid;
  margin-bottom: 48px;
  grid-template-columns: 70px 1fr;
  gap: 20px;
}

.section-heading.compact {
  margin-bottom: 38px;
}

.section-index {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.section-heading .eyebrow {
  margin: 2px 0 10px;
}

.section-heading h2,
.split-copy h2,
.cta-section h2,
.result-next h2 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4.2vw, 59px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.profile-card {
  position: relative;
  min-height: 360px;
  padding: 28px 24px 32px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.3);
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.profile-card:hover {
  z-index: 2;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.profile-number {
  display: block;
  margin-bottom: 60px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.profile-mental {
  color: #e4b56d;
}

.profile-threat {
  color: #e7856f;
}

.profile-boundaries {
  color: #83b6c7;
}

.profile-body {
  color: #9f9ad8;
}

.profile-environment {
  color: #72b595;
}

.line-mental,
.fill-mental {
  background-color: #e4b56d;
}

.line-threat,
.fill-threat {
  background-color: #e7856f;
}

.line-boundaries,
.fill-boundaries {
  background-color: #83b6c7;
}

.line-body,
.fill-body {
  background-color: #9f9ad8;
}

.line-environment,
.fill-environment {
  background-color: #72b595;
}

.profile-card h3 {
  min-height: 48px;
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.12;
}

.profile-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.profile-line {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  height: 2px;
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform 250ms ease;
}

.profile-card:hover .profile-line {
  transform: scaleX(1);
}

.split-section {
  display: grid;
  background: var(--paper-deep);
  grid-template-columns: 1fr 1fr;
}

.split-quote,
.split-copy {
  min-height: 520px;
  padding: 90px max(40px, calc((100vw - 1180px) / 2));
}

.split-quote {
  position: relative;
  display: flex;
  overflow: hidden;
  justify-content: center;
  background:
    linear-gradient(rgba(17, 28, 27, 0.92), rgba(17, 28, 27, 0.94)),
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 14px,
      rgba(255, 255, 255, 0.03) 14px,
      rgba(255, 255, 255, 0.03) 15px
    );
  color: #fff;
  flex-direction: column;
}

.quote-mark {
  position: absolute;
  top: 26px;
  right: 50px;
  color: rgba(217, 168, 95, 0.16);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 220px;
  line-height: 1;
}

.split-quote blockquote {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, 0.93);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 43px);
  line-height: 1.28;
}

.split-quote p {
  margin: 30px 0 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.split-copy {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.split-copy .eyebrow {
  margin: 0 0 16px;
}

.split-copy h2 {
  max-width: 520px;
  font-size: clamp(35px, 4vw, 54px);
}

.split-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.method-section {
  padding-bottom: 80px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.method-grid article {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.42);
}

.method-grid strong {
  display: block;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  font-weight: 400;
  letter-spacing: -0.06em;
}

.method-grid h3 {
  margin: 10px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
}

.method-grid p,
.method-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.method-note {
  display: grid;
  margin-top: 20px;
  padding: 28px 34px;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(217, 168, 95, 0.35);
  border-radius: var(--radius-md);
  background: rgba(241, 214, 164, 0.18);
  grid-template-columns: auto 1fr;
}

.note-icon,
.question-insight > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(217, 168, 95, 0.55);
  border-radius: 50%;
  color: #946821;
  font-family: Georgia, "Times New Roman", serif;
}

.cta-section {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 20px auto 80px;
  padding: 60px 70px;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  border-radius: var(--radius-lg);
  background: var(--night);
  color: #fff;
}

.cta-section h2 {
  font-size: clamp(35px, 4vw, 52px);
}

.cta-section > div > p:last-child {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
}

.sources-section {
  padding-bottom: 90px;
}

.sources-section details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sources-section summary {
  padding: 22px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sources-content {
  max-width: 800px;
  padding: 0 0 28px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.sources-content a {
  text-underline-offset: 4px;
}

.sources-content cite {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 80px 0 26px;
  background: #0d1615;
  color: #fff;
}

.footer-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  width: 580px;
  height: 260px;
  border-radius: 50%;
  background: rgba(217, 168, 95, 0.08);
  filter: blur(70px);
  transform: translateX(-50%);
}

.footer-grid,
.footer-bottom {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  padding-bottom: 60px;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 80px;
  border-bottom: 1px solid var(--white-line);
}

.footer-intro p {
  max-width: 380px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 14px;
  line-height: 1.75;
}

.footer-grid h2 {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-grid address,
.footer-grid nav {
  display: flex;
  gap: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
  flex-direction: column;
}

.footer-grid address strong {
  color: rgba(255, 255, 255, 0.88);
}

.footer-grid a {
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  padding-top: 24px;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 11px;
}

.test-shell {
  position: relative;
  min-height: 860px;
  padding: 52px 20px 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(217, 168, 95, 0.1), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(114, 181, 149, 0.08), transparent 30%),
    var(--night);
  color: #fff;
}

.test-shell:focus {
  outline: none;
}

.test-ambient {
  position: absolute;
  top: 190px;
  left: 50%;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  transform: translateX(-50%);
}

.test-ambient::before,
.test-ambient::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  content: "";
}

.test-ambient::before {
  inset: 80px;
}

.test-ambient::after {
  inset: 160px;
}

.test-topbar,
.question-card,
.privacy-line {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.test-topbar {
  display: grid;
  align-items: center;
  grid-template-columns: 80px 1fr 80px;
  gap: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.progress-track {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--gold);
  transition: width 240ms ease;
}

.quiet-button {
  padding: 0;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-card {
  margin-top: 60px;
  padding: 56px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(25, 40, 38, 0.82);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.27);
  backdrop-filter: blur(20px);
}

.question-eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.question-card h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.question-card fieldset {
  min-width: 0;
  margin: 40px 0 0;
  padding: 0;
  border: 0;
}

.question-card legend {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.answer-grid {
  display: grid;
  gap: 10px;
}

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

.flag-grid {
  grid-template-columns: repeat(3, 1fr);
}

.answer-option {
  position: relative;
  display: flex;
  min-height: 100px;
  padding: 15px 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  text-align: center;
  flex-direction: column;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.answer-option:hover {
  border-color: rgba(217, 168, 95, 0.45);
  transform: translateY(-2px);
}

.answer-option.selected {
  border-color: var(--gold);
  background: rgba(217, 168, 95, 0.12);
  color: #fff;
}

.answer-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.answer-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
}

.answer-check {
  position: absolute;
  top: 9px;
  right: 10px;
  display: grid;
  width: 19px;
  height: 19px;
  opacity: 0;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--night);
  font-size: 11px;
}

.answer-option.selected .answer-check {
  opacity: 1;
}

.question-insight {
  display: grid;
  margin-top: 24px;
  padding: 18px 20px;
  align-items: center;
  gap: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  grid-template-columns: auto 1fr;
}

.question-insight > span {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.question-insight p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.6;
}

.question-actions {
  display: flex;
  margin-top: 34px;
  align-items: center;
  justify-content: space-between;
}

.question-card .secondary-button {
  border-color: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.68);
}

.privacy-line {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 11px;
  text-align: center;
}

.result-page {
  background: var(--paper);
}

.result-hero {
  padding: 90px 20px;
  background:
    radial-gradient(circle at 80% 20%, rgba(217, 168, 95, 0.08), transparent 30%),
    var(--night);
  color: #fff;
}

.result-hero-inner {
  display: grid;
  width: min(1080px, 100%);
  margin: 0 auto;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 70px;
}

.result-summary {
  max-width: 690px;
}

.result-summary h1 {
  margin: 14px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.result-summary > p:not(.eyebrow, .share-status) {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  line-height: 1.75;
}

.result-actions {
  display: flex;
  margin-top: 32px;
  gap: 12px;
}

.result-summary .secondary-button {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.share-status {
  margin-top: 16px;
  color: var(--gold-light);
  font-size: 12px;
}

.score-ring {
  position: relative;
  display: grid;
  width: 230px;
  height: 230px;
  place-items: center;
}

.score-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring circle {
  fill: none;
  stroke-width: 7;
}

.score-ring-bg {
  stroke: rgba(255, 255, 255, 0.09);
}

.score-ring-value {
  stroke: var(--gold);
  stroke-linecap: round;
}

.score-ring > div {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.score-ring strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 47px;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.score-ring span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-content {
  padding: 90px 0 110px;
}

.result-content > section {
  margin-bottom: 100px;
}

.primary-profile-grid {
  display: grid;
  padding: 50px;
  align-items: center;
  gap: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.42);
  grid-template-columns: 1fr 260px;
}

.primary-profile-grid.mixed-profile-grid {
  grid-template-columns: 1fr 380px;
}

.primary-profile-grid > div:first-child > p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
}

.primary-profile-grid > div:first-child > .mixed-profile-detail {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
}

.profile-badge {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.single-score {
  display: grid;
  place-items: center;
}

.mixed-score-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.big-profile-score {
  display: flex;
  min-height: 190px;
  padding: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-radius: 50%;
  text-align: center;
  flex-direction: column;
}

.compact-profile-score {
  display: flex;
  min-width: 0;
  aspect-ratio: 1;
  padding: 22px 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-radius: 50%;
  text-align: center;
  flex-direction: column;
}

.big-profile-score.border-mental,
.compact-profile-score.border-mental {
  border-color: #e4b56d;
}

.big-profile-score.border-threat,
.compact-profile-score.border-threat {
  border-color: #e7856f;
}

.big-profile-score.border-boundaries,
.compact-profile-score.border-boundaries {
  border-color: #83b6c7;
}

.big-profile-score.border-body,
.compact-profile-score.border-body {
  border-color: #9f9ad8;
}

.big-profile-score.border-environment,
.compact-profile-score.border-environment {
  border-color: #72b595;
}

.big-profile-score strong,
.compact-profile-score strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 51px;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.compact-profile-score strong {
  font-size: 37px;
}

.big-profile-score span,
.compact-profile-score span {
  max-width: 150px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.compact-profile-score span {
  max-width: 120px;
  margin-top: 4px;
  font-size: 9px;
}

.bar-list {
  display: grid;
  gap: 18px;
}

.bar-item {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.38);
}

.bar-label {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.bar-label h3 {
  margin: 0 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.bar-label span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bar-label strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
}

.bar-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(23, 33, 31, 0.08);
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.pct-0 { width: 0%; }
.pct-5 { width: 5%; }
.pct-10 { width: 10%; }
.pct-15 { width: 15%; }
.pct-20 { width: 20%; }
.pct-25 { width: 25%; }
.pct-30 { width: 30%; }
.pct-35 { width: 35%; }
.pct-40 { width: 40%; }
.pct-45 { width: 45%; }
.pct-50 { width: 50%; }
.pct-55 { width: 55%; }
.pct-60 { width: 60%; }
.pct-65 { width: 65%; }
.pct-70 { width: 70%; }
.pct-75 { width: 75%; }
.pct-80 { width: 80%; }
.pct-85 { width: 85%; }
.pct-90 { width: 90%; }
.pct-95 { width: 95%; }
.pct-100 { width: 100%; }

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.action-grid article {
  min-height: 290px;
  padding: 34px;
  border-radius: var(--radius-md);
  background: var(--night);
  color: #fff;
}

.action-grid article > span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.action-grid h3 {
  margin: 42px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}

.action-grid p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.57);
  font-size: 13px;
  line-height: 1.72;
}

.action-grid .experiment-rule {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--gold-light);
  font-weight: 700;
}

.tips-panel {
  margin-top: 18px;
  padding: 34px;
  border: 1px solid rgba(217, 168, 95, 0.32);
  border-radius: var(--radius-md);
  background: rgba(241, 214, 164, 0.16);
}

.tips-panel h3 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
}

.tips-panel ul {
  display: grid;
  margin: 0;
  padding-left: 20px;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.sleep-pressure-panel {
  display: grid;
  padding: 38px;
  align-items: start;
  gap: 24px;
  border: 1px solid rgba(217, 168, 95, 0.4);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 10% 0%, rgba(217, 168, 95, 0.17), transparent 38%),
    #fffaf1;
  box-shadow: var(--shadow);
  grid-template-columns: auto 1fr;
}

.sleep-pressure-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--night);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.sleep-pressure-panel h2 {
  margin: 8px 0 14px;
  font-size: clamp(29px, 3.2vw, 42px);
}

.sleep-pressure-panel p:not(.eyebrow) {
  max-width: 850px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.72;
}

.sleep-pressure-panel ul {
  display: grid;
  margin: 22px 0 0;
  padding-left: 20px;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

.sleep-opportunity-panel {
  border-color: rgba(114, 181, 149, 0.46);
  background:
    radial-gradient(circle at 10% 0%, rgba(114, 181, 149, 0.17), transparent 38%),
    #f4fbf7;
}

.sleep-opportunity-panel .sleep-pressure-mark {
  background: var(--green);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
}

.decision-list {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  counter-reset: decision;
  list-style: none;
}

.decision-list li {
  position: relative;
  min-height: 180px;
  padding: 32px 30px 30px 86px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.42);
  counter-increment: decision;
}

.decision-list li::before {
  position: absolute;
  top: 30px;
  left: 28px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(217, 168, 95, 0.55);
  border-radius: 50%;
  color: #8a611d;
  content: counter(decision, decimal-leading-zero);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.decision-list li.priority {
  border-color: rgba(231, 133, 111, 0.38);
  background: rgba(231, 133, 111, 0.07);
}

.decision-list li.priority::before {
  border-color: rgba(231, 133, 111, 0.62);
  color: #a64637;
}

.decision-list h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
}

.decision-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.sleep-log-intro {
  max-width: 840px;
  margin: -24px 0 26px 76px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.72;
}

.sleep-log-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(31, 43, 40, 0.08);
  -webkit-overflow-scrolling: touch;
}

.sleep-log table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  table-layout: fixed;
}

.sleep-log caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sleep-log th,
.sleep-log td {
  height: 48px;
  padding: 11px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.sleep-log th {
  background: var(--night);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sleep-log tbody th {
  width: 72px;
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 11px;
}

.sleep-log tr:last-child th,
.sleep-log tr:last-child td {
  border-bottom: 0;
}

.sleep-log th:last-child,
.sleep-log td:last-child {
  border-right: 0;
}

.sleep-log-note {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.comparison-intro {
  max-width: 840px;
  margin: -24px 0 28px 76px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.72;
}

.result-code-panel,
.compare-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.48);
}

.compare-panel {
  margin-top: 16px;
  background: var(--night);
  color: #fff;
}

.result-code-panel > label,
.compare-panel > label {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare-panel > label {
  color: var(--gold-light);
}

.code-row {
  display: grid;
  align-items: stretch;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.result-code-input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.result-code-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 168, 95, 0.18);
}

.result-code-input[aria-invalid="true"] {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(231, 133, 111, 0.16);
}

.result-code-print {
  display: none;
}

.compact-button {
  min-height: 54px;
  white-space: nowrap;
}

.compare-panel .result-code-input {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

.code-note,
.comparison-status {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.compare-panel .comparison-status {
  color: rgba(255, 255, 255, 0.62);
}

.comparison-output:empty {
  display: none;
}

.comparison-output {
  margin-top: 26px;
}

.comparison-summary {
  margin: 0 0 18px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.65;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.comparison-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  text-align: left;
}

.comparison-table thead th {
  color: var(--gold-light);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.comparison-table tbody th {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 400;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
  border-right: 0;
}

.comparison-table .delta-down {
  color: #a9dfc4;
}

.comparison-table .delta-up {
  color: #f3ac9e;
}

.comparison-table .delta-steady {
  color: rgba(255, 255, 255, 0.55);
}

.alert-index {
  border-color: rgba(231, 133, 111, 0.55);
  background: rgba(231, 133, 111, 0.1);
  color: #b94e3c;
}

.flag-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.flag-list article {
  padding: 32px;
  border: 1px solid rgba(231, 133, 111, 0.32);
  border-radius: var(--radius-md);
  background: rgba(231, 133, 111, 0.07);
}

.flag-status {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.flag-status.yes {
  background: rgba(231, 133, 111, 0.18);
  color: #a64637;
}

.flag-status.unsure {
  background: rgba(217, 168, 95, 0.19);
  color: #8a611d;
}

.flag-list h3 {
  margin: 20px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
}

.flag-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.clear-flags {
  display: grid;
  padding: 34px;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(114, 181, 149, 0.42);
  border-radius: var(--radius-md);
  background: rgba(114, 181, 149, 0.1);
  grid-template-columns: auto 1fr;
}

.clear-flags > span {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.clear-flags h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.clear-flags p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.result-disclaimer {
  padding: 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-disclaimer h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.result-disclaimer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.result-next {
  display: flex;
  padding: 52px 58px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-radius: var(--radius-lg);
  background: var(--paper-deep);
}

.result-next h2 {
  font-size: clamp(32px, 3.8vw, 48px);
}

.result-next > div:first-child > p:last-child {
  max-width: 600px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.result-next > div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: column;
}

@media (max-width: 1040px) {
  .hero-inner {
    grid-template-columns: 1fr 0.72fr;
  }

  .moon-visual {
    width: 360px;
    height: 430px;
    transform: scale(0.88);
    transform-origin: right center;
  }

  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-card {
    min-height: 300px;
  }

  .profile-card:last-child {
    grid-column: span 2;
  }

  .footer-grid {
    gap: 42px;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 70px;
    grid-template-columns: 1fr;
  }

  .moon-visual {
    display: none;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .split-quote,
  .split-copy {
    min-height: auto;
    padding: 70px max(20px, calc((100vw - 1180px) / 2));
  }

  .method-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .action-grid article {
    min-height: auto;
  }

  .action-grid h3 {
    margin-top: 24px;
  }

  .cta-section {
    padding: 50px 40px;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-intro {
    grid-column: span 2;
  }

  .result-hero-inner,
  .primary-profile-grid {
    grid-template-columns: 1fr;
  }

  .primary-profile-grid.mixed-profile-grid {
    grid-template-columns: 1fr;
  }

  .score-ring {
    justify-self: start;
  }

  .big-profile-score {
    width: 220px;
    justify-self: center;
  }

  .mixed-score-pair {
    width: min(100%, 380px);
    justify-self: center;
  }

  .result-next {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-next > div:last-child {
    align-items: flex-start;
    flex-direction: row;
  }
}

@media (max-width: 620px) {
  .header-inner {
    width: min(100% - 28px, 1180px);
    min-height: 68px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy small {
    font-size: 8px;
  }

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

  .hero-inner,
  .intro-section,
  .method-section,
  .sources-section,
  .result-content,
  .cta-section {
    width: min(100% - 28px, 1180px);
  }

  .hero-inner {
    padding: 60px 0 72px;
  }

  .hero h1 {
    font-size: clamp(56px, 19vw, 78px);
  }

  .hero-lead {
    font-size: 20px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .trust-row span {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-section,
  .method-section {
    padding: 76px 0;
  }

  .section-heading {
    grid-template-columns: 46px 1fr;
    gap: 13px;
  }

  .section-index {
    width: 40px;
    height: 40px;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .profile-grid {
    border-left: 0;
    grid-template-columns: 1fr;
  }

  .profile-card,
  .profile-card:last-child {
    min-height: auto;
    padding: 26px 24px 48px;
    grid-column: auto;
    border-left: 1px solid var(--line);
  }

  .profile-number {
    margin-bottom: 30px;
  }

  .profile-card h3 {
    min-height: 0;
  }

  .profile-card p {
    -webkit-line-clamp: 4;
  }

  .split-quote blockquote {
    font-size: 28px;
  }

  .split-copy h2 {
    font-size: 38px;
  }

  .method-grid article {
    padding: 30px;
  }

  .method-note {
    padding: 24px;
    align-items: flex-start;
  }

  .cta-section {
    margin-bottom: 50px;
    padding: 38px 28px;
  }

  .cta-section .primary-button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-intro {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .test-shell {
    min-height: 790px;
    padding: 30px 14px 60px;
  }

  .test-topbar {
    grid-template-columns: 52px 1fr 52px;
    gap: 10px;
  }

  .question-card {
    margin-top: 34px;
    padding: 30px 20px;
    border-radius: 22px;
  }

  .question-card h1 {
    font-size: 31px;
  }

  .scale-grid {
    grid-template-columns: 1fr;
  }

  .flag-grid {
    grid-template-columns: 1fr;
  }

  .answer-option {
    min-height: 58px;
    padding: 12px 48px 12px 14px;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    flex-direction: row;
  }

  .question-actions {
    gap: 10px;
  }

  .question-actions .primary-button,
  .question-actions .secondary-button {
    min-height: 50px;
    padding: 0 16px;
    font-size: 10px;
  }

  .result-hero {
    padding: 65px 14px;
  }

  .result-hero-inner {
    gap: 40px;
  }

  .result-summary h1 {
    font-size: 48px;
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .score-ring {
    width: 200px;
    height: 200px;
  }

  .result-content {
    padding: 70px 0 80px;
  }

  .result-content > section {
    margin-bottom: 74px;
  }

  .primary-profile-grid {
    padding: 28px 22px;
  }

  .bar-item {
    padding: 20px;
  }

  .action-grid article,
  .tips-panel,
  .flag-list article,
  .result-code-panel,
  .compare-panel {
    padding: 26px 22px;
  }

  .sleep-pressure-panel {
    padding: 28px 22px;
    grid-template-columns: 1fr;
  }

  .sleep-log-intro {
    margin: -12px 0 22px;
  }

  .comparison-intro {
    margin: -12px 0 22px;
  }

  .decision-list {
    grid-template-columns: 1fr;
  }

  .decision-list li {
    min-height: 0;
  }

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

  .compact-button {
    width: 100%;
  }

  .flag-list {
    grid-template-columns: 1fr;
  }

  .clear-flags {
    align-items: flex-start;
  }

  .result-disclaimer {
    padding: 30px 4px;
  }

  .result-next {
    padding: 36px 24px;
  }

  .result-next > div:last-child {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    margin: 14mm;
    size: A4;
  }

  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .site-footer,
  .no-print {
    display: none !important;
  }

  .result-hero {
    padding: 24px 0;
    background: #fff;
    color: #111;
  }

  .result-hero-inner {
    width: 100%;
    grid-template-columns: 1fr auto;
  }

  .result-summary > p:not(.eyebrow, .share-status),
  .score-ring span {
    color: #444;
  }

  .score-ring-bg {
    stroke: #ddd;
  }

  .result-content {
    width: 100%;
    padding: 20px 0;
  }

  .result-content > section {
    margin-bottom: 34px;
    break-inside: avoid;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  .primary-profile-grid,
  .bar-item,
  .action-grid article,
  .flag-list article,
  .tips-panel,
  .clear-flags,
  .sleep-pressure-panel,
  .decision-list li,
  .sleep-log-wrap {
    box-shadow: none;
    break-inside: avoid;
  }

  .result-code-panel {
    box-shadow: none;
    break-inside: avoid;
  }

  .result-code-print {
    display: block;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #ccc;
    font-family: "Courier New", Courier, monospace;
    font-size: 11pt;
    font-weight: 700;
  }

  .sleep-log {
    break-before: page;
    break-inside: auto !important;
  }

  .sleep-log-intro {
    margin: -8px 0 16px;
  }

  .sleep-log-wrap {
    overflow: visible;
    border-radius: 0;
  }

  .sleep-log table {
    min-width: 0;
    font-size: 7pt;
  }

  .sleep-log th,
  .sleep-log td {
    height: 11mm;
    padding: 2mm 1.2mm;
    overflow-wrap: anywhere;
  }

  .sleep-log th {
    font-size: 6.5pt;
    letter-spacing: 0;
  }

  .action-grid article {
    min-height: 0;
    border: 1px solid #ccc;
    background: #fff;
    color: #111;
  }

  .action-grid p {
    color: #444;
  }
}
