:root {
  color-scheme: light;
  --ink: oklch(17% 0.018 252);
  --ink-soft: oklch(31% 0.024 252);
  --muted: oklch(45% 0.035 252);
  --paper: oklch(99.4% 0.003 255);
  --panel: oklch(98.8% 0.004 255);
  --surface: oklch(96.5% 0.018 255);
  --surface-strong: oklch(90% 0.055 255);
  --line: oklch(82% 0.05 255);
  --line-strong: oklch(58% 0.18 262);
  --blue: oklch(52% 0.23 262);
  --blue-soft: oklch(94% 0.055 262);
  --green: oklch(64% 0.18 154);
  --green-soft: oklch(93% 0.06 154);
  --mint: oklch(74% 0.15 180);
  --amber: oklch(82% 0.17 85);
  --red: oklch(60% 0.2 28);
  --violet: oklch(54% 0.22 306);
  --cyan: oklch(72% 0.16 205);
  --radius: 8px;
  --max: 1160px;
  --shadow: 0 18px 50px oklch(30% 0.04 250 / 0.08);
  font-family: Aptos, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, var(--paper) 0 34%, oklch(96.5% 0.038 205) 34% 47%, var(--paper) 47% 72%, oklch(97.2% 0.032 262) 72% 87%, var(--paper) 87%),
    var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 16px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  border-radius: var(--radius);
}

.brand {
  width: 124px;
  height: 36px;
  padding: 8px 12px;
}

.brand img,
.footer-brand img {
  width: 100%;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.nav-links a,
.site-footer a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--blue);
  text-decoration-color: currentColor;
}

.header-cta,
.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 750;
  line-height: 1.1;
}

.header-cta {
  justify-self: end;
  padding: 0 16px;
  border: 1px solid var(--green);
  color: oklch(35% 0.13 154);
  background: var(--panel);
}

.header-actions {
  display: flex;
  justify-self: end;
  gap: 12px;
  align-items: center;
}

.language-switch {
  display: inline-flex;
  min-height: 36px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.language-switch button {
  min-width: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.language-switch button.is-active {
  background: var(--blue);
  color: var(--paper);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.66fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: end;
  max-width: var(--max);
  min-height: clamp(620px, 78svh, 760px);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 104px) clamp(20px, 4vw, 40px) clamp(40px, 6vw, 70px);
  border-bottom: 1px solid var(--line);
}

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

.eyebrow,
.section-kicker,
.panel-label,
.result-label,
.score-label,
.fine-print {
  margin: 0;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

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

h1 {
  max-width: 13ch;
  margin-bottom: 24px;
  font-size: clamp(3.15rem, 6.2vw, 5.9rem);
  font-weight: 850;
  line-height: 0.94;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.35vw, 1.28rem);
  line-height: 1.62;
}

.hero-copy::before {
  content: "";
  display: block;
  width: 96px;
  height: 8px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--amber));
}

.hero-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-action,
.secondary-action {
  padding: 0 18px;
}

.primary-action {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--paper);
}

.primary-action:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

.secondary-action {
  border: 1px solid var(--blue);
  background: var(--paper);
  color: var(--blue);
}

.button-reset {
  appearance: none;
}

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

.entry-card,
.eu-trust,
.result-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.entry-card {
  padding: clamp(24px, 4vw, 36px);
  border-top: 6px solid var(--violet);
  box-shadow: var(--shadow);
}

.entry-card h2 {
  margin: 10px 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.02;
}

.entry-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.48;
}

.entry-action {
  width: 100%;
  margin-top: 24px;
}

.eu-trust {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-color: oklch(80% 0.12 262);
  background: linear-gradient(135deg, oklch(97% 0.035 262), var(--panel));
}

.eu-hero {
  grid-template-columns: minmax(180px, 260px) minmax(220px, 1fr);
  gap: 18px;
  align-items: center;
  max-width: 700px;
  margin-top: 28px;
}

.eu-trust img {
  width: min(320px, 100%);
  mix-blend-mode: multiply;
}

.eu-trust p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px clamp(20px, 4vw, 40px) 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
}

.proof-section > * {
  max-width: var(--max);
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 12px;
  align-items: center;
  max-width: 540px;
}

.logo-row img {
  width: 100%;
  height: 52px;
  object-fit: contain;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.positioning-band {
  max-width: var(--max);
  margin: clamp(24px, 4vw, 52px) auto 0;
  padding: 0 clamp(20px, 4vw, 40px);
  background: transparent;
}

.positioning-band p {
  max-width: none;
  margin: 0 auto;
  color: var(--ink);
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--green);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  background: linear-gradient(135deg, oklch(96% 0.055 154), var(--panel));
  font-size: clamp(1.35rem, 2.5vw, 2.4rem);
  font-weight: 720;
  line-height: 1.16;
}

.fit-section,
.signals-section,
.system-section,
.assessment-section,
.final-cta {
  padding: clamp(64px, 8vw, 104px) clamp(20px, 4vw, 48px);
}

.fit-grid,
.assessment-intro,
.assessment-shell,
.final-cta,
.footer-top,
.footer-bottom {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.fit-copy h2,
.signals-section h2,
.system-section h2,
.assessment-intro h2,
.final-cta h2 {
  margin: 12px 0 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
}

.fit-copy p,
.assessment-intro p,
.final-cta p {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.64;
}

.fit-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.fit-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.fit-row span {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
}

.fit-row p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  font-weight: 650;
  line-height: 1.42;
}

.signals-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, oklch(98.8% 0.012 255) 0%, oklch(94.8% 0.052 205) 62%, oklch(96.5% 0.048 154) 100%);
}

.signals-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.system-section > .section-kicker,
.system-section > h2 {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.signals-copy h2 {
  max-width: 690px;
}

.signals-copy p {
  max-width: 590px;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.2vw, 1.2rem);
  line-height: 1.58;
}

.signals-visual {
  position: relative;
  min-height: 520px;
  margin: 0;
}

.signals-visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  border: 1px solid oklch(78% 0.07 205);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px oklch(35% 0.07 220 / 0.16);
}

.floating-headline {
  position: absolute;
  max-width: 250px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--paper);
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 850;
  line-height: 1.02;
  box-shadow: 0 16px 40px oklch(24% 0.06 245 / 0.18);
}

.floating-headline-primary {
  top: 38px;
  left: -24px;
  background: var(--blue);
}

.floating-headline-secondary {
  right: -22px;
  top: 47%;
  background: var(--green);
  color: var(--ink);
}

.floating-headline-tertiary {
  left: 12%;
  bottom: 34px;
  background: var(--violet);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(36px, 6vw, 86px);
  row-gap: 0;
  max-width: var(--max);
  margin: clamp(44px, 6vw, 70px) auto 0;
}

.signal-grid article {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 190px;
  padding: 28px 0;
  border-top: 1px solid oklch(73% 0.07 205);
  background: transparent;
}

.signal-grid article::before {
  content: "";
  width: 36px;
  height: 8px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--blue);
}

.signal-grid article:nth-child(2)::before {
  background: var(--green);
}

.signal-grid article:nth-child(3)::before {
  background: var(--amber);
}

.signal-grid article:nth-child(4)::before {
  background: var(--violet);
}

.signal-grid h3 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  line-height: 1.08;
}

.signal-grid p {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.55;
}

.signal-grid a,
.source-note a {
  width: fit-content;
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.source-note {
  max-width: var(--max);
  margin: 18px auto 0;
  padding-top: 18px;
  border-top: 1px solid oklch(73% 0.07 205);
  color: var(--ink-soft);
  line-height: 1.55;
}

.system-section {
  background: transparent;
}

.system-lede {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.6;
}

.system-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: var(--max);
  margin: 38px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 16px 46px oklch(30% 0.04 250 / 0.06);
}

.system-step {
  min-height: 230px;
  padding: clamp(22px, 2.8vw, 32px);
}

.system-step:nth-child(1) {
  border-top: 5px solid var(--blue);
}

.system-step:nth-child(2) {
  border-top: 5px solid var(--violet);
}

.system-step:nth-child(3) {
  border-top: 5px solid var(--green);
}

.system-step + .system-step {
  border-left: 1px solid var(--line);
}

.system-step span {
  display: block;
  margin-bottom: 48px;
  color: var(--blue);
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  font-weight: 820;
}

.system-step p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.56;
}

.assessment-section {
  background:
    linear-gradient(180deg, oklch(96% 0.055 262 / 0.72), transparent 34%),
    transparent;
  color: var(--ink);
}

.assessment-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.58fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.assessment-intro .section-kicker,
.assessment-intro p {
  color: var(--muted);
}

.assessment-intro h2 {
  margin-bottom: 0;
}

.assessment-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: 18px;
  align-items: start;
}

.assessment-form {
  display: grid;
  gap: 14px;
}

.question {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.question legend {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  width: 100%;
  padding: 20px 0 12px;
  font-weight: 780;
  line-height: 1.32;
}

.question-number {
  color: var(--violet);
}

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

.option {
  position: relative;
}

.option input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.option span {
  display: flex;
  min-height: 70px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink-soft);
  line-height: 1.3;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.option:hover span {
  border-color: var(--blue);
  background: oklch(97% 0.035 262);
}

.option input:checked + span {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--paper);
  box-shadow: none;
}

.option input:focus-visible + span {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.option input:checked:focus-visible + span {
  outline-color: var(--amber);
}

.option input:checked + span::before {
  content: "✓";
  display: inline-grid;
  flex: 0 0 auto;
  width: 24px;
  aspect-ratio: 1;
  margin-right: 10px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue);
  font-weight: 900;
}

.result-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 22px;
  padding: 22px;
  color: var(--ink);
  border-top: 6px solid var(--green);
  box-shadow: var(--shadow);
}

.score-block {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
}

.score-ring {
  display: grid;
  width: 88px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0deg, var(--surface-strong) 0deg);
}

.score-ring span {
  display: grid;
  width: 64px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  font-size: 1.48rem;
  font-weight: 850;
}

.score-label {
  margin-bottom: 4px;
}

#score-status {
  display: block;
  font-size: 1.2rem;
  line-height: 1.2;
}

.result-content,
.dimension-bars,
.agenda-box,
.result-actions {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.result-content h3 {
  margin: 8px 0 10px;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.08;
}

.result-content p:last-child,
.agenda-box ol {
  color: var(--ink-soft);
  line-height: 1.5;
}

.dimension-bars {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 780;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
}

.bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 240ms ease-out;
}

.bar-row:nth-child(1) .bar span {
  background: var(--red);
}

.bar-row:nth-child(3) .bar span {
  background: var(--amber);
}

.bar-row:nth-child(4) .bar span {
  background: var(--green);
}

.agenda-box ol {
  display: grid;
  gap: 9px;
  margin: 10px 0 0;
  padding-left: 20px;
}

.result-actions .primary-action,
.result-actions .secondary-action {
  flex: 1 1 165px;
}

.fine-print {
  min-height: 18px;
  color: var(--muted);
  text-transform: none;
}

.summary-output {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.4;
}

.summary-output[hidden] {
  display: none;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.64fr) auto;
  gap: 30px;
  align-items: end;
  background: transparent;
}

.final-cta p {
  margin: 0;
}

.site-footer {
  padding: 44px clamp(20px, 4vw, 48px) 28px;
  background: var(--ink);
  color: oklch(86% 0.01 92);
}

.footer-top,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-top {
  align-items: flex-start;
  padding-bottom: 34px;
}

.footer-brand {
  width: 132px;
  height: 38px;
  padding: 8px 12px;
  background: var(--ink);
}

.footer-top p {
  max-width: 360px;
  margin: 0;
  color: oklch(78% 0.012 92);
  line-height: 1.5;
  text-align: right;
}

.footer-bottom {
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid oklch(90% 0.01 92 / 0.18);
  color: oklch(72% 0.012 92);
  font-size: 0.92rem;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 1040px) {
  .hero,
  .signals-layout,
  .fit-grid,
  .assessment-intro,
  .assessment-shell,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .signal-grid,
  .system-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-step + .system-step {
    border-left: 0;
  }

  .system-step:nth-child(2n) {
    border-left: 1px solid var(--line);
  }

  .system-step:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .result-panel {
    position: static;
  }
}

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

  .nav-links {
    display: none;
  }

  .header-cta {
    font-size: 0.9rem;
  }

  .brand {
    width: 112px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .hero-actions,
  .result-actions {
    align-items: stretch;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

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

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

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

  .signals-visual,
  .signals-visual img {
    min-height: 410px;
  }

  .floating-headline {
    max-width: 175px;
    padding: 11px 12px;
    font-size: 0.98rem;
  }

  .floating-headline-primary {
    top: 14px;
    left: 10px;
  }

  .floating-headline-secondary {
    top: 45%;
    right: 10px;
  }

  .floating-headline-tertiary {
    bottom: 16px;
    left: 10px;
  }

  .signal-grid,
  .system-track,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .system-step,
  .system-step:nth-child(2n),
  .system-step:nth-child(n + 3) {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .system-step:first-child {
    border-top: 0;
  }

  .system-step span {
    margin-bottom: 24px;
  }

  .question legend {
    grid-template-columns: 34px 1fr;
  }

  .score-block {
    grid-template-columns: 78px 1fr;
  }

  .score-ring {
    width: 78px;
  }

  .score-ring span {
    width: 56px;
  }

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

  .footer-top p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
