:root {
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --surface: #ffffff;
  --surface-2: #fbfaf6;
  --ink: #13241c;
  --ink-2: #33463c;
  --muted: #66756c;
  --line: #e3ddd0;
  --line-strong: #cfc7b6;

  --forest: #1d5c40;
  --forest-2: #154632;
  --leaf: #3c9a61;
  --mint: #e4f1e7;
  --lime: #d9ec8f;

  --high: #b42318;
  --high-soft: #fdecea;
  --medium: #a15c07;
  --medium-soft: #fdf1dc;
  --check: #2e5e8c;
  --check-soft: #e8f0f8;
  --ok: #1f7a4d;
  --ok-soft: #e2f3e9;

  --leaf-a: var(--forest);
  --leaf-b: var(--leaf);
  --vein: var(--paper);

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(19, 36, 28, 0.05), 0 12px 32px rgba(19, 36, 28, 0.07);
  --shadow-lg: 0 2px 4px rgba(19, 36, 28, 0.05), 0 24px 60px rgba(19, 36, 28, 0.12);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1512;
    --paper-2: #161e1a;
    --surface: #18211c;
    --surface-2: #1c2621;
    --ink: #ebf1ec;
    --ink-2: #c8d4cc;
    --muted: #93a39a;
    --line: #26322b;
    --line-strong: #37453d;
    --forest: #5fbf86;
    --forest-2: #7fd3a0;
    --leaf: #9fd8b1;
    --mint: #1d2d24;
    --lime: #3f4f1f;
    --high: #ff8a7a;
    --high-soft: rgba(255, 138, 122, 0.13);
    --medium: #f2b35c;
    --medium-soft: rgba(242, 179, 92, 0.13);
    --check: #8fb9e6;
    --check-soft: rgba(143, 185, 230, 0.13);
    --ok: #74d39c;
    --ok-soft: rgba(116, 211, 156, 0.13);
    --vein: var(--paper);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

a {
  color: var(--forest);
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
}

.skip:focus {
  left: 16px;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--forest) 45%, transparent);
  outline-offset: 2px;
}

/* Header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

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

.brand-word {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.brand-word em {
  color: var(--forest);
}

.topnav {
  margin-left: auto;
  display: flex;
  gap: 2px;
}

.topnav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

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

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.lang button {
  border: 0;
  background: none;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--muted);
  font: 600 12px var(--sans);
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--forest) 28%, transparent);
}

.btn-primary:hover {
  background: var(--forest-2);
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    color: #0f1512;
  }
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--ink-2);
}

.btn-quiet {
  background: transparent;
  color: var(--ink-2);
  padding: 0 14px;
}

.btn-quiet:hover {
  background: var(--paper-2);
}

.btn-light {
  background: var(--paper);
  color: #13241c;
}

.btn-light:hover {
  background: #fff;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 76px 0 72px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 720px;
  height: 720px;
  right: -180px;
  top: -260px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) 70%, transparent), transparent);
  opacity: 0.55;
}

.hero::after {
  width: 560px;
  height: 560px;
  left: -260px;
  bottom: -320px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mint) 90%, transparent), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 64px;
  align-items: center;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(19, 36, 28, 0.04);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--high);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--high) 45%, transparent);
  animation: pulse 2.2s ease-out infinite;
}

.countdown[data-state="after"] .pulse {
  background: var(--forest);
  animation: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--high) 45%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

h1 {
  margin: 20px 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 6.4vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 em,
h2 em {
  color: var(--forest);
}

.lead {
  max-width: 54ch;
  color: var(--ink-2);
  font-size: clamp(17px, 1.55vw, 19px);
  line-height: 1.6;
}

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

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust svg {
  width: 16px;
  height: 16px;
  color: var(--forest);
}

/* Demo card */

.demo {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.4deg);
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-mark {
  width: 26px;
  height: 26px;
}

.demo-row {
  padding: 16px 18px 14px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.demo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.demo-when {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-quote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 27px);
  line-height: 1.25;
}

.demo-ref {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.demo-arrow {
  display: flex;
  justify-content: center;
  margin: 6px 0;
  color: var(--forest);
}

.demo-arrow svg {
  width: 22px;
  height: 22px;
}

/* Highlights */

mark.m {
  color: inherit;
  padding: 0 1px;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.m-high {
  background: var(--high-soft);
  box-shadow: inset 0 -2px 0 var(--high);
}

.m-medium {
  background: var(--medium-soft);
  box-shadow: inset 0 -2px 0 var(--medium);
}

.m-check {
  background: var(--check-soft);
  box-shadow: inset 0 -2px 0 var(--check);
}

.m-ok {
  background: var(--ok-soft);
  box-shadow: inset 0 -2px 0 var(--ok);
}

/* Badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.b-high { background: var(--high-soft); color: var(--high); }
.b-medium { background: var(--medium-soft); color: var(--medium); }
.b-check { background: var(--check-soft); color: var(--check); }
.b-ok { background: var(--ok-soft); color: var(--ok); }

/* Sections */

.section {
  padding: 80px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--forest);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.section-lead {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 17.5px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--forest);
  font-family: var(--serif);
  font-size: 17px;
}

/* Checker */

.check {
  padding-top: 40px;
}

.checker {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.field-label {
  display: block;
  margin: 0 0 8px 2px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

textarea {
  display: block;
  width: 100%;
  min-height: 220px;
  padding: 16px 18px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}

textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--forest) 16%, transparent);
}

.checker-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.spacer {
  flex: 1;
}

.select {
  min-height: 46px;
  max-width: 100%;
  padding: 0 40px 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2366756c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--ink);
  font: 500 15px var(--sans);
  appearance: none;
  cursor: pointer;
}

.count {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.form-hint {
  min-height: 0;
  color: var(--high);
  font-size: 14px;
  font-weight: 500;
}

.form-hint:not(:empty) {
  margin-top: 10px;
}

.checker-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.privacy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--forest);
}

/* Result */

.result {
  padding-top: 24px;
  animation: rise 0.45s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.print-head {
  display: none;
}

.summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px 30px;
  align-items: center;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--verdict, var(--forest));
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary[data-verdict="high"] { --verdict: var(--high); }
.summary[data-verdict="medium"] { --verdict: var(--medium); }
.summary[data-verdict="low"] { --verdict: var(--ok); }
.summary[data-verdict="none"] { --verdict: var(--line-strong); }

.gauge {
  width: 150px;
  height: auto;
}

.gauge-arc {
  fill: none;
  stroke-width: 11;
}

.gauge-needle {
  transform-box: view-box;
  transform-origin: 60px 60px;
  transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.15);
}

.gauge-label {
  fill: var(--muted);
  font: 600 9px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.verdict-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 42px);
  line-height: 1.05;
}

.verdict-text {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 16.5px;
}

.counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.counts .badge {
  font-size: 13px;
}

.counts .badge[data-zero] {
  opacity: 0.45;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.annotated {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 12px;
}

.panel-head h3,
.findings-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-hint {
  color: var(--muted);
  font-size: 12.5px;
}

.annotated-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.8;
}

.annotated-text mark {
  cursor: pointer;
}

.annotated-text mark:hover {
  filter: saturate(1.4);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 14px;
  height: 10px;
  border-radius: 3px;
}

.legend .l-high { background: var(--high-soft); box-shadow: inset 0 -2px 0 var(--high); }
.legend .l-medium { background: var(--medium-soft); box-shadow: inset 0 -2px 0 var(--medium); }
.legend .l-check { background: var(--check-soft); box-shadow: inset 0 -2px 0 var(--check); }
.legend .l-ok { background: var(--ok-soft); box-shadow: inset 0 -2px 0 var(--ok); }

.findings-title {
  margin: 4px 0 12px 2px;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  --c: var(--forest);
  --c-soft: var(--mint);
  border: 1px solid var(--line);
  border-left: 5px solid var(--c);
  border-radius: 18px;
  background: var(--surface);
  scroll-margin-top: 90px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card.lvl-high { --c: var(--high); --c-soft: var(--high-soft); }
.card.lvl-medium { --c: var(--medium); --c-soft: var(--medium-soft); }
.card.lvl-check { --c: var(--check); --c-soft: var(--check-soft); }
.card.lvl-ok { --c: var(--ok); --c-soft: var(--ok-soft); }

.card.is-flash {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent), var(--shadow);
}

.card > summary {
  display: block;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
  border-radius: 13px;
}

.card > summary::-webkit-details-marker {
  display: none;
}

.card > summary:hover .card-title {
  color: var(--c);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-main {
  display: block;
  min-width: 0;
}

.card-title {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.card-ref {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.card-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.card-count {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.chevron {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.card[open] .chevron {
  transform: rotate(180deg);
}

.terms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.term {
  padding: 2px 9px;
  border-radius: 7px;
  background: var(--c-soft);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
}

.term b {
  color: var(--muted);
  font-weight: 600;
}

.card-body {
  display: grid;
  gap: 14px;
  margin: 0 20px;
  padding: 16px 0 20px;
  border-top: 1px dashed var(--line);
}

.card-body h5 {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-body p,
.card-body li {
  font-size: 15px;
  line-height: 1.6;
}

.note {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 14.5px !important;
}

.example {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ok-soft);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px !important;
  line-height: 1.35 !important;
}

.card-body ul {
  margin: 0;
  padding-left: 18px;
}

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

.where li {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14.5px !important;
}

.where li i {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
}

.where .d-high { background: var(--high); }
.where .d-medium { background: var(--medium); }
.where .d-check { background: var(--check); }
.where .d-ok { background: var(--ok); }

.general {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--paper-2);
}

.general h4 {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 650;
}

.general ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 14.5px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* Rules */

.rules {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--mint) 55%, transparent) 30%, transparent);
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.rule-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.rule-tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rule-tag.blacklist { background: var(--high-soft); color: var(--high); }
.rule-tag.caseByCase { background: var(--medium-soft); color: var(--medium); }

.rule-card .rule-claim {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.15;
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--high) 70%, transparent);
  text-decoration-thickness: 2px;
}

.rule-card h3 {
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.3;
}

.rule-card p {
  color: var(--ink-2);
  font-size: 14.5px;
}

.rule-ref {
  margin-top: auto !important;
  color: var(--muted) !important;
  font-size: 12.5px !important;
}

/* CTA */

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  padding: 48px;
  border-radius: 30px;
  background: radial-gradient(120% 140% at 100% 0%, #2a7a55 0%, #1d5c40 45%, #123a29 100%);
  color: #f6f3ec;
  box-shadow: var(--shadow-lg);
}

.cta .eyebrow {
  color: #cfe9b0;
}

.cta h2 {
  color: #fff;
}

.cta-copy p:last-child {
  margin-top: 16px;
  color: rgba(246, 243, 236, 0.85);
  font-size: 17px;
}

.cta-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.cta-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cta-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
}

.cta-points svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: #cfe9b0;
}

.cta .btn-light {
  align-self: flex-start;
}

.cta-note {
  color: rgba(246, 243, 236, 0.7);
  font-size: 13.5px;
}

/* Footer */

.footer {
  padding: 44px 0 56px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 32px;
}

.footer .brand-word {
  font-size: 25px;
}

.footer .brand-mark {
  width: 32px;
  height: 32px;
}

.footer-by {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.footer-text {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.noscript {
  padding: 16px 20px;
  text-align: center;
}

/* Imprint and privacy */

.legal-wrap {
  max-width: 760px;
}

.legal-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.018em;
}

.legal-updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.legal-body {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

.legal-section h2 {
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
}

.legal-section p {
  color: var(--ink-2);
  font-size: 16px;
}

.legal-section p + p {
  margin-top: 10px;
}

.legal-back {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .result-grid,
  .cta,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero-grid {
    gap: 44px;
  }

  .demo {
    transform: none;
  }

  .annotated {
    position: static;
    max-height: none;
  }

  .cta {
    padding: 34px 26px;
    gap: 26px;
  }
}

@media (max-width: 720px) {
  .topnav {
    display: none;
  }

  .lang {
    margin-left: auto;
  }

  .section {
    padding: 56px 0;
  }

  .check {
    padding-top: 28px;
  }

  .checker {
    padding: 16px;
  }

  .summary {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }

  .gauge {
    width: 128px;
  }

  .checker-bar .btn-primary {
    flex: 1 1 100%;
  }

  .select {
    flex: 1 1 auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Print: only the report */

@media print {
  :root {
    --paper: #fff;
    --surface: #fff;
    --surface-2: #fff;
    color-scheme: light;
  }

  body {
    background: #fff;
    font-size: 11pt;
  }

  .topbar,
  .hero,
  #check,
  .rules,
  #contact,
  .footer,
  .skip,
  .result-actions,
  .panel-hint,
  .result > .wrap > .eyebrow {
    display: none !important;
  }

  .result {
    display: block !important;
    padding: 0;
    animation: none;
  }

  .print-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ccc;
  }

  .print-head .brand-mark {
    width: 40px;
    height: 40px;
  }

  .print-title {
    margin-top: 4px;
    font-weight: 600;
  }

  .print-meta {
    color: #555;
    font-size: 10pt;
  }

  .summary,
  .card,
  .annotated {
    box-shadow: none;
  }

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

  .annotated {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .card,
  .where li,
  .summary {
    break-inside: avoid;
  }

  mark.m,
  .badge,
  .terms li,
  .example {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
