:root {
  color-scheme: light;
  --ink: #18211d;
  --muted: #657069;
  --line: #d9ded7;
  --panel: #ffffff;
  --paper: #f4f1ea;
  --paper-strong: #fffdf8;
  --accent: #0c7c59;
  --accent-strong: #07533d;
  --amber: #c9861a;
  --rose: #b85d5d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.96);
  backdrop-filter: blur(12px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: grid;
  gap: 3px;
}

.brand strong {
  font-size: 19px;
  letter-spacing: 0;
}

.brand span,
.topbar nav,
.score-card small {
  color: var(--muted);
  font-size: 13px;
}

.topbar nav {
  display: flex;
  gap: 16px;
  font-weight: 700;
}

main {
  padding: 34px 0 46px;
}

.api-note {
  max-width: 840px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 18px;
}

.intro {
  display: grid;
  align-content: end;
  min-height: 260px;
  padding: 28px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro p:last-child {
  max-width: 710px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.score-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
  background: var(--accent);
  color: white;
}

.score-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.score-card strong {
  font-size: 56px;
  line-height: 1;
}

.score-card p {
  margin-bottom: 0;
  line-height: 1.35;
}

.score-card small {
  color: rgba(255, 255, 255, 0.72);
}

.controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.controls div {
  display: grid;
  gap: 5px;
  min-height: 86px;
  align-content: center;
  padding: 16px;
  background: #fbfaf6;
}

.controls span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.controls strong {
  font-size: 15px;
  line-height: 1.35;
}

.section-heading {
  margin-bottom: 16px;
}

.experiment-heading {
  margin-top: 40px;
}

.section-heading h2 {
  max-width: 700px;
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p.form-note,
.form-note {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.value-panel {
  min-height: 178px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.value-panel h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.15;
}

.value-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.sample-packet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 34px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.sample-packet h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
}

.sample-packet p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.sample-packet pre {
  margin: 0;
  overflow: auto;
  padding: 18px;
  background: #18211d;
  color: #f5fbf7;
  font-size: 13px;
  line-height: 1.55;
}

.pricing-heading {
  margin-top: 6px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.price-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 258px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.price-card.featured {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #ffffff;
}

.price-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-card.featured span,
.price-card.featured p,
.price-card.featured small {
  color: rgba(255, 255, 255, 0.74);
}

.price-card strong {
  font-size: 38px;
  line-height: 1;
}

.price-card strong small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.price-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.price-card .button {
  align-self: end;
  justify-self: start;
}

.price-card.featured .button {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--accent-strong);
}

.scope-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  margin-bottom: 34px;
  padding: 22px;
  background: #fbfaf6;
  border: 1px solid var(--line);
}

.scope-section h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
}

.scope-section p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.scope-grid {
  display: grid;
  gap: 10px;
}

.scope-grid article {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.scope-grid strong {
  font-size: 15px;
  line-height: 1.35;
}

.scope-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.opportunity {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 460px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.opportunity h3 {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.opportunity h4 {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rank {
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.score {
  color: var(--accent-strong);
  font-size: 32px;
  font-weight: 900;
}

.score-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fbfaf6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge.testen,
.badge.test {
  border-color: rgba(12, 124, 89, 0.22);
  color: var(--accent-strong);
  background: rgba(12, 124, 89, 0.1);
}

.badge.watchlist {
  border-color: rgba(201, 134, 26, 0.28);
  color: #8a5b0f;
  background: rgba(201, 134, 26, 0.12);
}

.badge.later {
  border-color: rgba(101, 112, 105, 0.24);
  color: var(--muted);
  background: #f1f1ed;
}

.platform {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  color: #28332e;
  font-size: 14px;
  line-height: 1.45;
}

.bars {
  display: grid;
  gap: 8px;
}

.bar {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.track {
  height: 7px;
  background: #e9ece6;
}

.fill {
  display: block;
  height: 100%;
  background: var(--accent);
}

.fill.warn {
  background: var(--rose);
}

.evidence {
  margin: 0;
  padding-left: 18px;
  color: #39443e;
  font-size: 13px;
  line-height: 1.4;
}

.evidence li + li {
  margin-top: 6px;
}

.evidence a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.evidence span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.loading,
.error {
  grid-column: 1 / -1;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
}

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

.experiment-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.experiment-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.experiment-card ul {
  margin: 0;
  padding-left: 18px;
  color: #28332e;
  font-size: 14px;
  line-height: 1.5;
}

.experiment-rate {
  color: var(--accent-strong);
  font-size: 30px;
  font-weight: 900;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metric-row span {
  display: grid;
  gap: 3px;
  min-height: 62px;
  align-content: center;
  padding: 10px;
  background: #fbfaf6;
  color: var(--muted);
  font-size: 12px;
}

.metric-row strong {
  color: var(--ink);
  font-size: 20px;
}

.experiment-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 900;
}

.button.secondary {
  border-color: var(--line);
  background: #fbfaf6;
  color: var(--accent-strong);
}

.button.small {
  min-height: 34px;
  font-size: 12px;
}

.evidence.compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.landing-summary {
  margin-top: 20px;
}

.audit-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.intake-form,
.audit-output {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.intake-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intake-form small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.intake-form input,
.intake-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfaf6;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0;
  padding: 11px 12px;
  text-transform: none;
}

.intake-form textarea {
  min-height: 96px;
  resize: vertical;
}

.output-panel {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.audit-card h4 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vendor-map {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.vendor-map li span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .summary,
  .controls,
  .grid,
  .experiment-grid,
  .audit-layout,
  .value-grid,
  .sample-packet,
  .pricing-grid,
  .scope-section {
    grid-template-columns: 1fr;
  }

  .opportunity {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .intro,
  .score-card,
  .opportunity {
    padding: 18px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .bar {
    grid-template-columns: 86px minmax(0, 1fr) 38px;
  }

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