:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --ink: #1d2428;
  --muted: #5d6971;
  --line: #d9ddd6;
  --panel: #ffffff;
  --code: #12181c;
  --code-ink: #e8eef2;
  --risk: #b42318;
  --risk-bg: #fff0ec;
  --safe: #087443;
  --safe-bg: #eaf7ef;
  --accent: #176b87;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

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

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 24px;
  align-items: end;
  padding: 20px 0 28px;
}

.workspace__intro {
  max-width: 760px;
}

.eyebrow,
.label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.25rem, 3.8rem, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.lede {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--panel);
}

.status-strip > div {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.status-strip > div:last-child {
  border-right: 0;
}

.status-strip strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}

.comparison {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) repeat(2, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.panel,
.checks {
  border: 1px solid var(--line);
  background: var(--panel);
}

.panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.panel__heading {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 800;
}

.badge--risk {
  color: var(--risk);
  background: var(--risk-bg);
}

.badge--safe {
  color: var(--safe);
  background: var(--safe-bg);
}

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.summary {
  margin: 0;
  padding: 18px 18px 0;
  line-height: 1.5;
}

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

.features li {
  padding: 10px 12px;
  border-left: 3px solid var(--line);
  background: #fafbf9;
  line-height: 1.35;
}

.vulnerable .features li {
  border-left-color: var(--risk);
}

.hardened .features li {
  border-left-color: var(--safe);
}

.code-surface {
  flex: 1 1 auto;
  min-height: 380px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  background: var(--code);
  color: var(--code-ink);
  font: 0.86rem/1.5 "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  white-space: pre-wrap;
}

.code-surface--small {
  min-height: 180px;
  border-top: 1px solid #283138;
}

.checks {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  margin-top: 16px;
  padding: 18px;
}

.checks__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.checks__list li {
  line-height: 1.45;
}

@media (max-width: 980px) {
  .workspace,
  .comparison,
  .checks {
    grid-template-columns: 1fr;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .status-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-strip > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  h1 {
    font-size: 2.25rem;
  }

  .panel__heading,
  .checks {
    padding: 14px;
  }

  .code-surface {
    min-height: 260px;
    font-size: 0.78rem;
  }
}