:root {
  color-scheme: light;
  --ink: #161616;
  --muted: #666a73;
  --line: #d9d8d2;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --sage: #dfe9dc;
  --rose: #f4d6d2;
  --gold: #f2cc6b;
  --teal: #0f766e;
  --plum: #5a3a6b;
  --shadow: 0 18px 60px rgba(30, 25, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
}

.topnav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.language-switch {
  justify-self: end;
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.lang-button {
  min-width: 48px;
  border: 0;
  border-radius: 6px;
  padding: 7px 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-button.active {
  background: var(--ink);
  color: white;
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: clamp(48px, 9vw, 110px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(115deg, rgba(223, 233, 220, 0.96), rgba(244, 214, 210, 0.74)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800'%3E%3Cg fill='none' stroke='%23161616' stroke-opacity='.10'%3E%3Cpath d='M0 520c150-80 250-110 410-90s245 92 410 55 250-155 380-135'/%3E%3Cpath d='M0 590c180-85 312-98 455-52s240 120 410 78 220-145 335-118'/%3E%3Cpath d='M90 160h1010M130 215h940M170 270h860'/%3E%3C/g%3E%3Cg fill='%23161616' fill-opacity='.12'%3E%3Ccircle cx='260' cy='392' r='5'/%3E%3Ccircle cx='588' cy='338' r='6'/%3E%3Ccircle cx='842' cy='430' r='5'/%3E%3Ccircle cx='988' cy='278' r='6'/%3E%3C/g%3E%3C/svg%3E")
      center/cover;
}

.hero-inner {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: #383a3d;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action,
.share-actions button,
.back-button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  padding: 11px 16px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.secondary-action,
.share-actions button,
.back-button {
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-weight: 700;
}

.primary-action:hover,
.secondary-action:hover,
.share-actions button:hover,
.back-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(22, 22, 22, 0.12);
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: var(--panel);
}

.metrics-band div {
  padding: 22px clamp(18px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.metrics-band div:last-child {
  border-right: 0;
}

.metrics-band strong {
  display: block;
  font-size: 2rem;
}

.metrics-band span {
  color: var(--muted);
}

.section {
  padding: clamp(52px, 8vw, 92px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

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

.test-grid.small {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.test-card,
.insight-card,
.launch-columns > div,
.quiz-panel,
.conversion-panel,
.result-content,
.share-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(22, 22, 22, 0.03);
}

.test-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.test-card h3 {
  margin: 10px 0;
  font-size: 1.28rem;
  line-height: 1.1;
}

.test-card p,
.insight-card p,
.launch-columns p,
.conversion-panel p,
.result-content p {
  color: var(--muted);
}

.test-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}

.test-card button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.quiz-shell,
.result-shell {
  padding: clamp(26px, 5vw, 56px);
}

.quiz-panel {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.quiz-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  color: var(--muted);
  font-weight: 700;
}

.progress-track {
  height: 9px;
  margin: 14px 0 28px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece9df;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 220ms ease;
}

#quizTitle {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

#quizQuestion {
  font-size: 1.25rem;
  color: #333;
}

.answer-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.answer-list button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.answer-list button:hover {
  border-color: var(--ink);
}

.hidden {
  display: none !important;
}

.result-hero {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(22px, 5vw, 48px);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ink), var(--plum) 55%, var(--teal));
  color: white;
}

.result-hero .eyebrow {
  margin-top: 48px;
  color: var(--gold);
}

.result-hero h2 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 0.98;
}

.result-hero p:last-child {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
}

.ad-slot {
  max-width: 1120px;
  min-height: 112px;
  display: grid;
  place-items: center;
  margin: 22px auto;
  border: 1px dashed #aaa59a;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  text-align: center;
}

.ad-slot span {
  font-size: 0.76rem;
  text-transform: uppercase;
}

.ad-slot p {
  margin: 2px 0 0;
}

.ad-slot.compact {
  min-height: 92px;
  margin: 26px 0;
}

.result-layout {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  margin: 0 auto;
  align-items: start;
}

.result-content,
.conversion-panel,
.share-panel {
  padding: clamp(20px, 4vw, 32px);
}

.result-content h3,
.conversion-panel h3,
.share-panel h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.result-content section + section {
  margin-top: 26px;
}

.result-content ul {
  padding-left: 20px;
}

.result-content li + li {
  margin-top: 8px;
}

.conversion-panel {
  position: sticky;
  top: 96px;
}

.price {
  margin: 18px 0;
  font-size: 2.2rem;
  font-weight: 900;
}

.full-width {
  width: 100%;
  margin-bottom: 10px;
}

.microcopy {
  font-size: 0.86rem;
}

.share-panel {
  max-width: 1120px;
  margin: 18px auto 0;
}

#shareCanvas {
  width: 100%;
  max-width: 760px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #202020;
}

.insight-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.insight-card {
  min-height: 180px;
  padding: 18px;
}

.insight-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.launch-board {
  background: #eff4ef;
}

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

.launch-columns > div {
  padding: 22px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: white;
}

.footer p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: start;
}

@media (max-width: 1040px) {
  .test-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .result-layout,
  .launch-columns {
    grid-template-columns: 1fr;
  }

  .conversion-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .topnav {
    order: 3;
    overflow-x: auto;
  }

  .language-switch {
    justify-self: start;
  }

  .hero {
    min-height: auto;
  }

  .metrics-band,
  .test-grid,
  .test-grid.small,
  .insight-list {
    grid-template-columns: 1fr;
  }

  .metrics-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer {
    display: block;
  }
}
