:root {
  color-scheme: light;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Sora", var(--font-body);
  --font-mono: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  --ink: #172033;
  --muted: #526076;
  --paper: #f2f5f9;
  --line: #d5dfeb;
  --line-strong: #b3c1d3;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.84);
  --blue: #1d4ed8;
  --cyan: #0f8dc7;
  --green: #13795a;
  --amber: #8a5000;
  --rose: #b4235a;
  --ink-inverse: #f4f7fb;
  --shadow: 0 24px 70px rgba(15, 23, 40, 0.12);
  --shadow-soft: 0 18px 42px rgba(15, 23, 40, 0.08);
  --focus: #0d63ff;
  --focus-ring: rgba(13, 99, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(15, 141, 199, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f9fc 0%, var(--paper) 35%, #edf2f8 100%);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.8), transparent 18%),
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.5), transparent 16%);
  pointer-events: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

main:focus-visible {
  outline: none;
  box-shadow: none;
}

main {
  position: relative;
  z-index: 1;
}

.skip-link,
.sr-only {
  position: absolute;
}

.skip-link {
  left: 18px;
  top: -64px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 16px;
}

.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 80px;
  margin: 16px clamp(18px, 4vw, 40px) 0;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(179, 193, 211, 0.55);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

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

.brand-copy strong,
h1,
h2,
.status-panel strong {
  font-family: var(--font-display);
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(160deg, #0f1728 0%, #203259 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.brand-mark-sheet {
  position: absolute;
  inset: 10px 12px 12px 12px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(15, 141, 199, 0.18), transparent 24%) top right / 44% 44% no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 246, 251, 0.94));
}

.brand-mark-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  background: rgba(15, 141, 199, 0.32);
  border-top-right-radius: 14px;
}

.brand-mark-line {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 4px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.2);
  top: 20px;
}

.brand-mark-line-second {
  top: 28px;
  right: 24px;
}

.brand-mark-stamp {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #13795a, #1d4ed8);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 20px rgba(15, 23, 40, 0.22);
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.topbar nav a,
.language {
  text-decoration: none;
}

.topbar nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(179, 193, 211, 0.75);
  transform: translateY(-1px);
}

.language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(29, 78, 216, 0.18);
  background: rgba(29, 78, 216, 0.08);
  font-weight: 800;
  color: var(--blue);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  margin: 26px clamp(18px, 4vw, 40px) 0;
  min-height: min(860px, calc(100vh - 152px));
  padding: clamp(44px, 7vw, 80px);
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(77, 209, 255, 0.2), transparent 26%),
    radial-gradient(circle at bottom left, rgba(83, 182, 125, 0.22), transparent 30%),
    linear-gradient(135deg, #0f1728 0%, #1a2740 45%, #203259 100%);
  box-shadow: 0 32px 100px rgba(15, 23, 40, 0.26);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.1), transparent 36%),
    linear-gradient(transparent 0 0);
  opacity: 0.7;
}

.hero::after {
  width: 280px;
  height: 280px;
  right: -70px;
  bottom: -90px;
  border-radius: 50%;
  background: rgba(83, 182, 125, 0.12);
  filter: blur(18px);
}

.hero-copy,
.status-panel,
.section-shell,
.ad-slot,
footer,
.consent {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 780px;
  margin: 8px 0 18px;
  font-size: clamp(2.45rem, 7vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-inverse);
}

.hero p {
  max-width: 720px;
  color: rgba(232, 239, 248, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--rose);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.final-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.primary,
.secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 30px rgba(29, 78, 216, 0.28);
}

.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(179, 193, 211, 0.8);
}

.primary:hover,
.secondary:hover {
  transform: translateY(-1px);
}

.status-panel,
.result,
.template,
.ad-slot {
  border: 1px solid rgba(179, 193, 211, 0.7);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.status-panel {
  padding: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.status-panel strong {
  display: block;
  margin-bottom: 18px;
  font-size: 1.35rem;
  color: #fff;
}

.status-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(232, 239, 248, 0.86);
}

.status-list p {
  margin: 0;
  font-size: 0.98rem;
}

.status-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
}

.section {
  padding: 28px clamp(18px, 4vw, 40px) 0;
}

.band {
  background: transparent;
}

.section-shell {
  padding: clamp(28px, 5vw, 44px);
  border-radius: 30px;
  border: 1px solid rgba(179, 193, 211, 0.68);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(252, 253, 255, 0.84));
  box-shadow: var(--shadow-soft);
}

.band .section-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.9)),
    linear-gradient(135deg, rgba(19, 121, 90, 0.04), rgba(29, 78, 216, 0.04));
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.section-heading p:not(.eyebrow),
.notice,
footer {
  color: var(--muted);
}

.diagnostic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1040px;
}

.question {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(179, 193, 211, 0.7);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
}

.question legend {
  padding: 0 6px;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1rem;
}

.question label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
  color: var(--muted);
}

.question input[type="radio"] {
  accent-color: var(--blue);
}

.question:focus-within,
.check-item:focus-within,
.template:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.diagnostic .primary {
  width: fit-content;
}

.result {
  max-width: 760px;
  margin-top: 24px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.98));
}

.official-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.official-card,
.mentions-box {
  border: 1px solid rgba(179, 193, 211, 0.7);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.98));
}

.official-card {
  padding: 18px;
}

.official-card h3,
.mentions-box h3,
.section-subgrid h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
}

.official-card p,
.mentions-box li,
.source-list li {
  color: var(--muted);
}

.official-date {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(19, 121, 90, 0.1);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
}

.section-subgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.35fr);
  gap: 18px;
  align-items: start;
}

.mentions-box {
  padding: 20px;
}

.mentions-box ul,
.source-list {
  margin: 0 0 20px;
  padding-left: 20px;
}

.source-list a {
  color: var(--blue);
  font-weight: 700;
}

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

.check-item {
  display: flex;
  gap: 12px;
  min-height: 56px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid rgba(179, 193, 211, 0.7);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.98));
}

.progress {
  max-width: 720px;
  margin-top: 24px;
  font-weight: 800;
}

.progress-track {
  height: 14px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7e3ec;
}

.progress span span,
[data-progress-bar] {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width 0.25s ease;
}

.template {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.98));
}

.template h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
}

pre {
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: #f5f8fc;
  color: #273244;
  font: 0.92rem/1.6 var(--font-mono);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(179, 193, 211, 0.7);
  border-radius: 22px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-family: var(--font-display);
  font-size: 0.98rem;
}

td span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.ad-slot {
  margin: 28px clamp(18px, 4vw, 40px) 0;
  padding: 20px 24px;
  color: var(--amber);
  background: linear-gradient(90deg, rgba(255, 248, 234, 0.95), rgba(255, 255, 255, 0.92));
  text-align: center;
  box-shadow: none;
}

.final {
  padding-bottom: 28px;
}

.final-shell {
  justify-content: space-between;
  padding: clamp(28px, 5vw, 42px);
  border-radius: 30px;
  border: 1px solid rgba(23, 121, 90, 0.14);
  background:
    radial-gradient(circle at top right, rgba(15, 141, 199, 0.24), transparent 28%),
    linear-gradient(135deg, #0f1728 0%, #18304a 100%);
  color: #fff;
  box-shadow: 0 32px 90px rgba(15, 23, 40, 0.2);
}

.final-shell p {
  color: #d9e0e8;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px clamp(18px, 4vw, 40px) 24px;
  padding: 24px 28px;
  border: 1px solid rgba(179, 193, 211, 0.68);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

footer p {
  flex: 1 1 100%;
  margin: 0;
}

.consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  max-width: 720px;
  padding: 16px;
  border: 1px solid rgba(179, 193, 211, 0.7);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .topbar {
    top: 8px;
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin-left: 12px;
    margin-right: 12px;
    border-radius: 22px;
  }

  .topbar nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .diagnostic,
  .checklist,
  .templates,
  .official-grid,
  .section-subgrid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    margin-left: 12px;
    margin-right: 12px;
    padding: 28px 22px;
    border-radius: 28px;
  }

  .section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section-shell,
  .final-shell,
  footer,
  .ad-slot {
    border-radius: 24px;
  }

  .consent {
    left: 12px;
    right: 12px;
    grid-template-columns: 1fr;
  }
}
