:root {
  color-scheme: light dark;
  --bg: #f6f8fb;
  --bg-tinted: #edf2f8;
  --surface: #fbfcfe;
  --surface-strong: #e1ebf6;
  --ink: #0f172a;
  --ink-soft: #475569;
  --accent: #0161a3;
  --accent-hover: #014c80;
  --accent-ink: #f8fbff;
  --accent-soft: rgba(1, 97, 163, 0.09);
  --border: rgba(15, 23, 42, 0.13);
  --border-strong: rgba(15, 23, 42, 0.25);
  --code-bg: #0b1623;
  --code-ink: #e8f0f9;
  --code-muted: #93a7be;
  --code-border: rgba(232, 240, 249, 0.14);
  --badge-affected-bg: rgba(194, 65, 12, 0.12);
  --badge-affected-ink: #9a3412;
  --badge-clean-bg: rgba(21, 128, 61, 0.12);
  --badge-clean-ink: #166534;
  --badge-check-bg: rgba(161, 98, 7, 0.14);
  --badge-check-ink: #854d0e;
  --radius: 6px;
  --radius-sm: 4px;
  --font-body:
    "IBM Plex Sans", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic",
    sans-serif;
  --font-mono:
    "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c131d;
    --bg-tinted: #111b28;
    --surface: #152233;
    --surface-strong: #1c2d44;
    --ink: #e9f0f8;
    --ink-soft: #9fb0c5;
    --accent: #4fc3f7;
    --accent-hover: #7ad3fa;
    --accent-ink: #071929;
    --accent-soft: rgba(79, 195, 247, 0.13);
    --border: rgba(233, 240, 248, 0.13);
    --border-strong: rgba(233, 240, 248, 0.26);
    --code-bg: #070d15;
    --code-ink: #e9f0f8;
    --code-muted: #8fa4bd;
    --code-border: rgba(233, 240, 248, 0.12);
    --badge-affected-bg: rgba(251, 146, 60, 0.18);
    --badge-affected-ink: #fdba74;
    --badge-clean-bg: rgba(74, 222, 128, 0.16);
    --badge-clean-ink: #86efac;
    --badge-check-bg: rgba(250, 204, 21, 0.16);
    --badge-check-ink: #fde047;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-underline-offset: 0.24em;
  text-decoration-thickness: 1px;
}

button {
  font: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
}

code,
pre {
  font-family: var(--font-mono);
}

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

::selection {
  color: var(--accent-ink);
  background: var(--accent);
}

p,
li,
dt,
dd,
.plugin-head code {
  overflow-wrap: anywhere;
}

[lang="ko"] h1,
[lang="ko"] h2,
[lang="ko"] h3,
[lang="ko"] p,
[lang="ko"] li,
[lang="ko"] dt,
[lang="ko"] dd {
  word-break: keep-all;
}

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 32px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-mark > span {
  color: var(--accent);
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.site-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header nav a,
.language {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.site-header nav a:hover,
.language:hover {
  color: var(--ink);
}

.language {
  border-left: 1px solid var(--border);
  padding-left: 20px;
  color: var(--ink);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  padding-block: 56px 52px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

[lang="ko"] h1 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.24;
  letter-spacing: -0.035em;
}

.intro {
  margin: 20px 0 28px;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.15s var(--ease);
}

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

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
}

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

.button-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

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

.cli-preview {
  margin: 0;
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--code-ink);
  border: 1px solid var(--code-border);
  overflow: hidden;
}

.cli-preview figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--code-border);
  font-size: 12px;
  color: var(--code-muted);
}

.preview-cmd {
  font-family: var(--font-mono);
  color: var(--code-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-meta {
  flex-shrink: 0;
}

.cli-preview pre {
  margin: 0;
  padding: 18px 20px;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--code-ink);
}

.ansi-bold {
  font-weight: 600;
  color: #f8fbff;
}

.ansi-dim {
  color: var(--code-muted);
}

.ansi-cyan {
  color: #54c5f8;
}

.ansi-red {
  font-weight: 600;
  color: #f87171;
}

.ansi-yellow {
  font-weight: 600;
  color: #fbbf24;
}

.ansi-green {
  font-weight: 600;
  color: #4ade80;
}

/* Install Strip */
.install-strip {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.install-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px;
}

.install-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.command {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
}

.command code {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    transform 0.15s var(--ease);
}

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

.copy-button:active {
  transform: translateY(1px);
}

/* Sections */
.section {
  padding-block: 76px;
}

.section-tinted {
  background: var(--bg-tinted);
  border-block: 1px solid var(--border);
}

.section-heading {
  max-width: 65ch;
  margin-bottom: 36px;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

[lang="ko"] h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.3;
}

.section-heading p {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--ink-soft);
}

h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

/* Command Builder */
.builder-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.builder-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.builder-presets-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.preset-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-button {
  min-height: 40px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.15s var(--ease);
}

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

.preset-button:active {
  transform: translateY(1px);
}

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

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: border-color 0.2s var(--ease);
}

.field input::placeholder {
  color: var(--ink-soft);
  opacity: 0.85;
}

.field input:focus {
  border-color: var(--accent);
}

.builder-options {
  margin-top: 14px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.builder-result {
  margin-top: 18px;
}

.builder-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 10px;
}

.builder-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--badge-clean-bg);
  color: var(--badge-clean-ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
}

.builder-case-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}

.builder-command-block {
  margin: 0;
}

.builder-result[data-state="error"] .builder-command-block {
  opacity: 0.5;
}

.builder-error {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--badge-affected-ink);
  background: var(--badge-affected-bg);
  color: var(--badge-affected-ink);
  font-size: 13.5px;
  font-weight: 500;
}

/* Cases */
.case-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.case-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 88px;
}

.case-choice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.case-choice strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.case-subtitle {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.case-choice[aria-current="true"] {
  border-color: var(--accent);
  background: var(--surface-strong);
  box-shadow: inset 3px 0 0 var(--accent);
}

@media (hover: hover) {
  .case-choice:not([aria-current="true"]):hover {
    border-color: var(--border-strong);
    background: var(--bg-tinted);
  }
}

.case-panel {
  min-width: 0;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.case-panel:not([hidden]) ~ .case-panel:not([hidden]) {
  margin-top: 28px;
}

.case-panel-head h3 {
  margin-top: 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.case-intro {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 65ch;
}

.command-block {
  margin: 22px 0 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--code-ink);
  border: 1px solid var(--code-border);
}

.command-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--code-muted);
}

.command-secondary {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--bg-tinted);
  border: 1px solid var(--border);
}

.facts {
  margin: 20px 0;
  padding-left: 20px;
  font-size: 15px;
}

.facts li {
  padding: 5px 0;
}

.facts li::marker {
  color: var(--accent);
}

/* Plugin checks grid inside SPM case */
.plugins-block {
  margin: 24px 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.plugins-block h4 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
}

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

.plugin-card {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}

.plugin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 10px;
  margin-bottom: 6px;
}

.plugin-head code {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.plugin-versions {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
}

.plugin-from {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.plugin-to {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}

.case-note {
  margin: 20px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
  font-size: 14px;
  color: var(--ink);
}

/* Scrollable comparison image viewer */
.compare-figure {
  margin: 24px 0;
}

.compare-viewport {
  max-height: 460px;
  overflow-y: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg);
}

.compare-viewport img {
  display: block;
  width: 100%;
  height: auto;
}

.compare-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.compare-figure figcaption a {
  font-weight: 500;
  color: var(--accent);
}

/* Report disclosure */
.report {
  margin-top: 20px;
  border-block: 1px solid var(--border);
}

.report summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
  list-style-position: inside;
}

.report pre {
  margin: 0 0 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--code-ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 460px;
  overflow-y: auto;
  font-size: 12.5px;
  line-height: 1.55;
}

.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

/* CLI Reference */
.ref-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: start;
}

.ref-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ref-group h3 {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-strong);
}

.ref-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ref-row {
  display: grid;
  grid-template-columns: minmax(115px, auto) minmax(0, 1fr);
  gap: 8px 18px;
  align-items: baseline;
}

.ref-codes .ref-row {
  grid-template-columns: 48px minmax(0, 1fr);
}

.ref-row dt {
  font-weight: 600;
}

.ref-row dt code {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--accent);
}

.ref-row dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.ref-fallback p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.command-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.command-surface {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

/* Workflow & Evidence */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.workflow-steps li {
  padding-top: 18px;
  border-top: 2px solid var(--border-strong);
}

.step-index {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.workflow-steps p {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.pinned-callout {
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.pinned-callout p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 78ch;
}

.pinned-exception {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

/* Scope & Verdicts */
.scope-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 40px;
  align-items: start;
}

.verdict-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.verdict-row dt {
  margin-bottom: 8px;
}

.verdict-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.verdict-affected {
  background: var(--badge-affected-bg);
  color: var(--badge-affected-ink);
}

.verdict-not-affected {
  background: var(--badge-clean-bg);
  color: var(--badge-clean-ink);
}

.verdict-needs-check {
  background: var(--badge-check-bg);
  color: var(--badge-check-ink);
}

.verdict-row dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.scope-details {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scope-details .ref-row {
  grid-template-columns: 1fr;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.scope-details .ref-row:first-child {
  padding-top: 0;
  border-top: none;
}

.scope-details dt {
  font-size: 15px;
  color: var(--ink);
}

.scope-details dd {
  font-size: 15px;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  padding-block: 48px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
}

.footer-readme {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-bottom p {
  margin: 0;
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Responsive */
@media (max-width: 960px) {
  .wrap {
    padding-inline: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 44px 40px;
  }

  .case-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
  }

  .builder-fields,
  .plugins-grid,
  .ref-grid,
  .scope-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding-inline: 16px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-block: 10px;
    min-height: 60px;
  }

  .brand-name {
    display: none;
  }

  .site-header nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 14px;
    overflow-x: auto;
    border-top: 1px solid var(--border);
    padding-top: 2px;
  }

  .language {
    margin-left: auto;
    border-left: none;
    padding-left: 0;
  }

  .install-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .section {
    padding-block: 52px;
  }

  .case-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-picker {
    position: static;
  }

  .builder-card,
  .case-panel {
    padding: 20px 16px;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ref-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pinned-callout {
    padding: 20px 16px;
  }

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
