:root {
  --ink: #142b2a;
  --muted: #64716d;
  --paper: #fffaf1;
  --surface: #ffffff;
  --surface-warm: #fff3e8;
  --line: #eadfcf;
  --green: #173f39;
  --green-soft: #dcefe7;
  --coral: #f5665d;
  --coral-dark: #c84843;
  --gold: #ffd15a;
  --blue: #47799a;
  --shadow: 0 18px 50px rgba(20, 43, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 243, 232, 0.92), rgba(255, 250, 241, 0.96)),
    radial-gradient(circle at 18% 10%, rgba(255, 209, 90, 0.18), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(71, 121, 154, 0.14), transparent 30%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
select,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

.intl-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(234, 223, 207, 0.92);
  background: rgba(255, 250, 241, 0.92);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--gold);
  background: var(--green);
  font-weight: 900;
}

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

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  display: inline-flex;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.topnav a {
  padding: 8px 2px;
  text-decoration: none;
}

.locale-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.locale-control select {
  min-width: 126px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
}

main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.screen,
.science-section,
.version-strip,
.value-grid > article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.hero-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 34px;
  align-items: stretch;
  padding: clamp(26px, 5vw, 58px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
}

.proof-row,
.unlock-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.proof-row span,
.unlock-list span {
  padding: 8px 10px;
  border-radius: 7px;
  color: #83312e;
  background: #fff0ec;
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.result-actions,
.share-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action,
.text-button,
.buy-button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.primary-action,
.buy-button {
  color: white;
  background: var(--coral);
  box-shadow: 0 12px 26px rgba(245, 102, 93, 0.24);
}

.primary-action:hover,
.buy-button:hover {
  background: var(--coral-dark);
}

.secondary-action {
  display: grid;
  place-items: center;
  color: var(--green);
  background: #fff;
  border-color: var(--line);
}

.text-button {
  min-height: auto;
  padding: 0;
  color: var(--blue);
  background: transparent;
}

.result-teaser {
  display: flex;
  min-height: 400px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(160deg, rgba(23, 63, 57, 0.96), rgba(20, 43, 42, 0.94)),
    linear-gradient(45deg, rgba(255, 209, 90, 0.2), transparent);
  box-shadow: var(--shadow);
}

.result-chip {
  align-self: flex-start;
  margin-bottom: 22px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--green);
  background: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.mini-avatar,
.result-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background:
    conic-gradient(from 220deg, #ffd15a, #f5665d, #9dcfc2, #47799a, #ffd15a);
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.2);
}

.result-teaser h2 {
  margin: 16px 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.result-teaser p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.mini-bars {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.mini-bars span {
  display: block;
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.24);
}

.mini-bars span:nth-child(1) {
  width: 88%;
}

.mini-bars span:nth-child(2) {
  width: 62%;
}

.mini-bars span:nth-child(3) {
  width: 74%;
}

.version-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  background: rgba(255, 247, 231, 0.86);
}

.version-card {
  display: grid;
  gap: 3px;
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.version-card strong {
  font-size: 24px;
}

.version-card small {
  color: var(--muted);
}

.version-card.selected {
  border-color: var(--green);
  background: var(--green-soft);
}

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

.value-grid article {
  padding: 20px;
}

.value-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.value-grid p {
  margin: 0;
  color: var(--muted);
}

.quiz-screen,
.loading-screen,
.result-screen,
.science-section {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 42px);
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.progress-track {
  height: 10px;
  margin: 18px 0 32px;
  border-radius: 99px;
  background: #f0e5d6;
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  transition: width 0.25s ease;
}

.question-dimension {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 900;
}

.quiz-screen h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.08;
}

.answer-grid {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.answer-button {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  cursor: pointer;
  text-align: left;
}

.answer-button:hover,
.answer-button.selected {
  border-color: var(--green);
  background: var(--green-soft);
}

.answer-button strong {
  font-size: 17px;
}

.answer-button small {
  color: var(--muted);
}

.microcopy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.loading-screen {
  display: grid;
  justify-items: center;
  text-align: center;
}

.loading-orbit {
  width: 74px;
  height: 74px;
  border: 7px solid var(--green-soft);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.result-screen {
  background:
    linear-gradient(180deg, var(--green), #12302d 420px, rgba(255, 255, 255, 0.94) 421px);
}

.result-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: white;
}

.result-hero .eyebrow {
  color: var(--gold);
}

.result-hero h2 {
  margin: 0;
  font-size: clamp(44px, 7vw, 80px);
  line-height: 0.95;
}

.type-code {
  margin: 8px 0 0;
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}

.result-tagline {
  margin: 28px 0;
  padding: 20px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
}

.result-metrics,
.dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.result-metrics article,
.dimension-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.result-metrics strong {
  display: block;
  color: white;
  font-size: 24px;
}

.result-metrics span {
  color: rgba(255, 255, 255, 0.76);
}

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

.paywall,
.share-card,
.dimension-panel,
.ad-card {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.paywall {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 26px;
  align-items: center;
  border-color: rgba(245, 102, 93, 0.35);
  background: linear-gradient(110deg, white, #fff1ed);
}

.paywall h3,
.share-card h3,
.dimension-panel h3,
.science-section h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.paywall p,
.science-section p {
  color: var(--muted);
}

.buy-button {
  min-height: 62px;
  font-size: 20px;
}

.share-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 20px;
}

.qr-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.qr-panel img {
  width: 148px;
  height: 148px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.qr-panel small {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.share-actions {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.dimension-panel {
  background: rgba(255, 255, 255, 0.9);
}

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

.dimension-card {
  border-color: var(--line);
  background: #fffdfa;
}

.dimension-card strong {
  display: block;
  margin-bottom: 10px;
}

.dimension-bar {
  height: 9px;
  margin: 12px 0;
  border-radius: 99px;
  background: #efe5d7;
  overflow: hidden;
}

.dimension-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), #9dcfc2);
}

.dimension-card small {
  color: var(--muted);
}

.ad-card {
  border-style: dashed;
  background: #fbfaf7;
}

.ad-card > span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.ad-body {
  display: grid;
  min-height: 90px;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  background: #f2ede5;
  text-align: center;
}

.science-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 24px;
}

.science-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.science-section li {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  width: min(720px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.consent-banner p {
  margin: 4px 0 0;
  color: var(--muted);
}

.consent-banner > div:last-child {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hidden {
  display: none !important;
}

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

  .topnav {
    display: none;
  }

  .brand small,
  .locale-control span {
    display: none;
  }

  main {
    width: min(100% - 24px, 640px);
    padding-top: 18px;
  }

  .hero-screen,
  .science-section,
  .paywall,
  .share-card {
    grid-template-columns: 1fr;
  }

  .result-teaser {
    min-height: 300px;
  }

  .version-strip,
  .value-grid,
  .result-actions,
  .result-metrics,
  .dimension-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .buy-button {
    width: 100%;
  }

  .result-hero {
    align-items: flex-start;
  }

  .share-actions {
    grid-template-columns: 1fr;
  }

  .consent-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
  }

  .consent-banner > div:last-child {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 12px;
  }

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

  .locale-control select {
    min-width: 108px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-screen,
  .quiz-screen,
  .loading-screen,
  .result-screen,
  .science-section {
    padding: 20px;
  }
}
