:root {
  --ink: #08110d;
  --forest: #103b2d;
  --green: #00c875;
  --pulse: #35ed9d;
  --paper: #ffffff;
  --mist: #f3f6f3;
  --line: #dfe6e1;
  --body: #34413b;
  --muted: #68746e;
  --orange: #ffb000;
  --red: #ff5a52;
  --blue: #56b7ff;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Archivo", system-ui, sans-serif;
  --display: "Space Grotesk", system-ui, sans-serif;
  --shadow: 0 20px 60px rgb(8 17 13 / 10%);
  --ease: cubic-bezier(.2, .75, .2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  color: var(--body);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body,
button,
a { -webkit-font-smoothing: antialiased; }

a { color: inherit; }
button { font: inherit; }

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

code {
  padding: .12em .38em;
  border-radius: 5px;
  color: #006e43;
  background: #eaf8f1;
  font-size: .88em;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--display);
  letter-spacing: -.025em;
}

h1 {
  max-width: 830px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: .92;
}

h1 span { color: var(--pulse); }

.hero h1 { color: #fff; }

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 5vw, 4.1rem);
  line-height: 1.03;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--pulse);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.hero,
.wiring-section,
.code-section,
.footer {
  position: relative;
  overflow: hidden;
  color: #e9f2ed;
  background:
    radial-gradient(circle at 82% 13%, rgb(0 200 117 / 16%), transparent 24rem),
    radial-gradient(circle at 8% 90%, rgb(53 237 157 / 8%), transparent 19rem),
    var(--ink);
}

.hero::after,
.wiring-section::after,
.code-section::after,
.footer::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

.nav,
.hero-grid,
.section,
.footer > * {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: var(--green);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
}

.brand strong,
.brand small { display: block; }
.brand strong { font-family: var(--display); letter-spacing: -.01em; }
.brand small { color: rgb(255 255 255 / 58%); font: .66rem var(--mono); text-transform: uppercase; letter-spacing: .13em; }

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: rgb(255 255 255 / 68%);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover { color: var(--pulse); }

.hero-grid {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  min-height: 710px;
  margin: 0 auto;
  padding: 100px 0 120px;
  align-items: center;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, .72fr);
  gap: 68px;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--green);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: rgb(240 248 244 / 72%);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions,
.code-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.download-link,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.button { min-height: 50px; padding: 0 24px; }
.button:hover,
.copy-button:hover,
.download-link:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--green); }
.button-primary:hover { background: var(--pulse); }
.button-secondary { color: #fff; border-color: rgb(255 255 255 / 24%); background: transparent; }
.button-secondary:hover { color: var(--pulse); border-color: var(--pulse); }

.microcopy {
  margin-top: 18px;
  color: rgb(255 255 255 / 42%);
  font-size: .8rem;
}

.signal-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 22px;
  background: rgb(255 255 255 / 4%);
  box-shadow: 0 30px 80px rgb(0 0 0 / 24%);
  backdrop-filter: blur(12px);
}

.signal-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
}

.signal-row strong,
.signal-row small { display: block; }
.signal-row strong { color: #fff; font-family: var(--display); }
.signal-row small { color: rgb(255 255 255 / 48%); font-size: .75rem; }

.signal-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--pulse);
  border: 1px solid rgb(53 237 157 / 35%);
  border-radius: 12px;
  font-family: var(--mono);
}

.signal-line {
  height: 62px;
  margin-left: 21px;
  padding-left: 34px;
  border-left: 1px dashed rgb(53 237 157 / 38%);
  color: rgb(255 255 255 / 35%);
  font: .62rem var(--mono);
  letter-spacing: .06em;
}

.signal-line span { position: relative; top: 20px; }

.pulse {
  width: 10px;
  height: 10px;
  background: var(--pulse);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgb(53 237 157 / 50%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgb(53 237 157 / 0%); }
  100% { box-shadow: 0 0 0 0 rgb(53 237 157 / 0%); }
}

.status {
  padding: 4px 7px;
  color: var(--pulse);
  border: 1px solid rgb(53 237 157 / 25%);
  border-radius: 5px;
  font: .58rem var(--mono);
  letter-spacing: .08em;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0;
}

.soft-section {
  width: 100%;
  padding-right: max(24px, calc((100% - 1180px) / 2));
  padding-left: max(24px, calc((100% - 1180px) / 2));
  background: var(--mist);
}

.section-heading { max-width: 830px; }

.section-heading > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.stat-grid {
  display: grid;
  margin: 58px 0;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.stat-grid article {
  display: flex;
  padding: 6px 28px;
  align-items: center;
  gap: 18px;
  border-right: 1px solid var(--line);
}

.stat-grid article:first-child { padding-left: 0; }
.stat-grid article:last-child { border-right: 0; }
.stat-grid strong { color: var(--green); font: 700 3.4rem/1 var(--display); }
.stat-grid span { max-width: 145px; color: var(--muted); font-size: .86rem; line-height: 1.35; }

.feature-grid,
.shopping-grid,
.rules-grid,
.trouble-grid {
  display: grid;
  gap: 22px;
}

.feature-grid { grid-template-columns: repeat(3, 1fr); }

.feature-grid article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.feature-grid article:hover,
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-number { display: block; margin-bottom: 28px; color: var(--green); font: .7rem var(--mono); letter-spacing: .15em; }
.feature-grid p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }

.shopping-grid {
  margin-top: 52px;
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.product-card.recommended { border-color: rgb(0 200 117 / 50%); box-shadow: inset 0 3px 0 var(--green); }
.badge { display: inline-flex; padding: 5px 9px; color: #00653e; background: #dff7eb; border-radius: 5px; font: 700 .62rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.badge-neutral { color: #53605a; background: #edf0ee; }
.product-icon { display: grid; width: 70px; height: 56px; margin: 30px 0; place-items: center; color: var(--green); border: 2px solid var(--ink); border-radius: 7px; box-shadow: -6px 0 0 -4px var(--ink), 6px 0 0 -4px var(--ink); font: 700 .72rem var(--mono); }
.product-card p,
.product-card li { color: var(--muted); font-size: .9rem; }
.product-card ul { margin: 20px 0; padding-left: 20px; }
.product-card li + li { margin-top: 6px; }
.text-link { color: #007f4e; font-size: .84rem; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.wide-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, .85fr) 1.4fr;
  gap: 40px;
  align-items: center;
}

.connector-visual {
  display: flex;
  min-height: 170px;
  padding: 30px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--ink);
  background: var(--mist);
  border-radius: 14px;
  font: 700 .66rem var(--mono);
}

.connector-visual i { display: block; width: 8px; height: 72px; border-radius: 6px; background: var(--green); }
.connector-visual i:nth-of-type(2) { background: var(--orange); }
.connector-visual i:nth-of-type(3) { background: var(--blue); }
.connector-visual i:nth-of-type(4) { background: var(--red); }
.connector-visual i:nth-of-type(5) { background: #222; }
.connector-visual b { margin: 0 8px; font-size: 1.2rem; }
.warning-inline { padding-left: 14px; border-left: 3px solid var(--orange); color: #695316 !important; }

.power-options {
  display: grid;
  margin-top: 28px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.power-options > div p:last-child { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.power-options article { padding-left: 24px; border-left: 1px solid var(--line); }
.power-options article strong,
.power-options article span { display: block; }
.power-options article strong { margin-bottom: 8px; color: var(--ink); font-family: var(--display); }
.power-options article span { margin-bottom: 12px; color: var(--muted); font-size: .85rem; }
.power-options article a { color: #007f4e; font-size: .8rem; font-weight: 700; text-decoration: none; }

.wiring-section,
.code-section {
  width: 100%;
  padding-right: max(24px, calc((100% - 1180px) / 2));
  padding-left: max(24px, calc((100% - 1180px) / 2));
}

.light-heading h2 { color: #fff; }
.light-heading > p:not(.eyebrow) { color: rgb(255 255 255 / 60%); }

.danger-banner {
  display: grid;
  margin-top: 44px;
  padding: 20px 24px;
  color: #fff;
  border: 1px solid rgb(255 176 0 / 32%);
  border-radius: 12px;
  background: rgb(255 176 0 / 9%);
  grid-template-columns: auto 1fr;
  gap: 16px;
}

.danger-banner strong { color: #ffd06a; }
.danger-banner span { color: rgb(255 255 255 / 68%); }

.wiring-diagram {
  display: grid;
  margin: 34px 0;
  padding: 22px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 22px;
  background: rgb(255 255 255 / 4%);
  grid-template-columns: .9fr 80px 1.25fr;
  gap: 18px;
}

.wiring-zone { position: relative; min-height: 360px; padding: 26px; border-radius: 16px; }
.mains-zone { background: rgb(255 90 82 / 7%); }
.low-zone { display: grid; background: rgb(53 237 157 / 5%); grid-template-columns: 1fr 1fr; gap: 18px; }
.zone-label { position: absolute; top: 16px; left: 20px; color: rgb(255 255 255 / 44%); font: .62rem var(--mono); letter-spacing: .14em; }
.terminal-block,
.psu-box,
.esp-box,
.cn-box { position: relative; z-index: 1; border: 1px solid rgb(255 255 255 / 14%); border-radius: 12px; background: rgb(8 17 13 / 74%); }
.terminal-block { display: flex; margin-top: 42px; padding: 16px; justify-content: center; }
.terminal-block div { width: 33.333%; text-align: center; }
.terminal-block div + div { border-left: 1px solid rgb(255 255 255 / 12%); }
.terminal-block span { display: block; color: #fff; font: 700 1rem var(--mono); }
.terminal-block small { display: block; color: rgb(255 255 255 / 42%); font-size: .58rem; }
.terminal-block .forbidden span { color: var(--red); text-decoration: line-through; }
.psu-box { width: 170px; margin: 70px auto 0; padding: 18px; text-align: center; }
.psu-box strong,
.psu-box small { display: block; }
.psu-box strong { color: #fff; font: 700 .8rem/1.5 var(--mono); }
.psu-box small { color: var(--orange); font: .55rem var(--mono); }
.wire-live { position: absolute; top: 136px; left: 50%; width: 2px; height: 85px; background: var(--orange); }

.isolation-gap { display: grid; place-items: center; border-right: 1px dashed rgb(53 237 157 / 40%); border-left: 1px dashed rgb(255 176 0 / 40%); }
.isolation-gap span { color: rgb(255 255 255 / 35%); font: .57rem var(--mono); letter-spacing: .11em; writing-mode: vertical-rl; }

.esp-box,
.cn-box { margin-top: 42px; padding: 18px; }
.esp-box strong,
.cn-box strong { display: block; margin-bottom: 18px; color: var(--pulse); font: 700 .76rem var(--mono); letter-spacing: .12em; }
.esp-box div,
.cn-box div { padding: 8px 0; border-top: 1px solid rgb(255 255 255 / 8%); }
.esp-box span,
.cn-box span { display: block; color: #fff; font: .7rem var(--mono); }
.esp-box b,
.cn-box b { display: block; color: rgb(255 255 255 / 42%); font: 400 .6rem var(--mono); }
.cn-box div:not(.connected) { opacity: .42; }

.rules-grid { margin-top: 28px; grid-template-columns: repeat(4, 1fr); }
.rules-grid article { padding: 24px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 14px; background: rgb(255 255 255 / 3%); }
.rules-grid h3 { color: #fff; font-size: 1rem; }
.rules-grid p { margin-bottom: 0; color: rgb(255 255 255 / 53%); font-size: .82rem; }
.rules-grid strong { color: #fff; }
.rule-icon { display: grid; width: 34px; height: 34px; margin-bottom: 20px; place-items: center; color: var(--ink); background: var(--green); border-radius: 50%; font: 700 .78rem var(--mono); }

.technical-note { margin-top: 28px; padding: 20px 24px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 12px; background: rgb(255 255 255 / 3%); }
.technical-note summary { color: #fff; cursor: pointer; font-weight: 700; }
.technical-note p { margin: 16px 0 0; color: rgb(255 255 255 / 58%); }

.ai-tabs { display: inline-flex; margin-top: 42px; padding: 4px; background: var(--mist); border-radius: 999px; }
.ai-tab { padding: 9px 18px; color: var(--muted); border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 700; }
.ai-tab.active { color: #fff; background: var(--ink); }

.terminal-card,
.prompt-card { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.terminal-bar { display: flex; padding: 13px 16px; align-items: center; gap: 7px; color: rgb(255 255 255 / 55%); background: #111a16; }
.terminal-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #ff625a; }
.terminal-bar > span:nth-child(2) { background: #ffbe2f; }
.terminal-bar > span:nth-child(3) { background: #2ecb60; }
.terminal-bar strong { margin-left: 8px; font: .7rem var(--mono); }
.terminal-bar .compact { margin-left: auto; }
.terminal-card pre { margin: 0; padding: 24px; color: #dff7eb; background: var(--ink); font-size: .82rem; overflow-x: auto; }
.terminal-card code,
.prompt-card code,
.code-block code { padding: 0; color: inherit; background: none; font-size: inherit; }

.prompt-header { display: flex; padding: 20px 22px; align-items: center; justify-content: space-between; gap: 16px; background: var(--mist); }
.prompt-header .eyebrow { margin-bottom: 3px; }
.prompt-header strong { display: block; color: var(--ink); font-family: var(--display); }
.copy-button,
.download-link { min-height: 38px; padding: 0 16px; color: var(--ink); background: var(--green); font-size: .75rem; }
.copy-button.compact { min-height: 28px; padding: 0 11px; }
.prompt-card pre { max-height: 580px; margin: 0; padding: 28px; color: #d9e7df; background: #101713; font-size: .78rem; line-height: 1.7; white-space: pre-wrap; overflow: auto; }

.source-note { display: grid; margin-top: 28px; padding: 24px; border-left: 4px solid var(--green); background: var(--mist); grid-template-columns: 1.5fr 1fr; gap: 30px; }
.source-note p { margin: 0; font-size: .9rem; }
.source-note > div { display: flex; flex-direction: column; gap: 6px; }
.source-note a { color: #007f4e; font-size: .82rem; font-weight: 700; text-decoration: none; }

.code-toolbar { display: flex; margin-top: 42px; padding: 12px 16px; align-items: center; justify-content: space-between; color: rgb(255 255 255 / 60%); border: 1px solid rgb(255 255 255 / 12%); border-bottom: 0; border-radius: 14px 14px 0 0; background: #111a16; font: .7rem var(--mono); }
.code-toolbar > div { display: flex; gap: 8px; }
.dark-copy,
.download-link { min-height: 31px; color: #fff; border: 1px solid rgb(255 255 255 / 17%); background: transparent; }
.dark-copy:hover,
.download-link:hover { color: var(--pulse); border-color: var(--pulse); }
.code-block { max-height: 800px; margin: 0; padding: 30px; color: #d9e7df; border: 1px solid rgb(255 255 255 / 12%); border-radius: 0 0 14px 14px; background: #050a08; font-size: .78rem; line-height: 1.65; overflow: auto; }

.timeline { margin: 58px 0 0; padding: 0; list-style: none; }
.timeline li { display: grid; position: relative; padding: 0 0 42px; grid-template-columns: 68px 1fr; gap: 20px; }
.timeline li::after { position: absolute; top: 44px; bottom: 0; left: 21px; width: 1px; background: var(--line); content: ""; }
.timeline li:last-child::after { display: none; }
.timeline li > span { display: grid; width: 44px; height: 44px; place-items: center; color: #006f44; border: 1px solid rgb(0 200 117 / 35%); border-radius: 50%; background: #e7f9f0; font: 700 .67rem var(--mono); }
.timeline h3 { margin-bottom: 5px; }
.timeline p { max-width: 760px; margin-bottom: 0; color: var(--muted); }

.troubleshooting { margin-top: 34px; padding: 34px; background: var(--mist); border-radius: 18px; }
.trouble-grid { margin-top: 24px; grid-template-columns: repeat(2, 1fr); }
.trouble-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.trouble-grid strong { color: var(--ink); font: 700 .72rem var(--mono); }
.trouble-grid p { margin: 8px 0 0; color: var(--muted); font-size: .86rem; }

.sources-section { border-top: 1px solid var(--line); }
.sources-list { display: grid; margin-top: 38px; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sources-list a { padding: 18px 20px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; font-size: .88rem; font-weight: 600; text-decoration: none; }
.sources-list a:hover { border-color: var(--green); }
.sources-list span { display: block; color: var(--green); font: .62rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.license { margin-top: 34px; color: var(--muted); font-size: .78rem; }

.footer { display: grid; width: 100%; min-height: 440px; padding: 92px max(24px, calc((100% - 1180px) / 2)); align-content: center; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.footer h2 { margin: 0; color: #fff; }
.footer-actions { align-self: center; justify-content: flex-end; }
.footer-note { grid-column: 1 / -1; margin: 48px 0 0; padding-top: 20px; color: rgb(255 255 255 / 35%); border-top: 1px solid rgb(255 255 255 / 10%); font-size: .72rem; }

.toast { position: fixed; z-index: 99; right: 24px; bottom: 24px; padding: 12px 17px; color: var(--ink); background: var(--pulse); border-radius: 9px; box-shadow: var(--shadow); font-weight: 700; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .signal-card { max-width: 530px; }
  .shopping-grid { grid-template-columns: 1fr 1fr; }
  .product-card:nth-child(3) { grid-column: 1 / -1; }
  .power-options { grid-template-columns: 1fr 1fr; }
  .power-options > div { grid-column: 1 / -1; }
  .power-options article:first-of-type { padding-left: 0; border-left: 0; }
  .wiring-diagram { grid-template-columns: 1fr; }
  .isolation-gap { min-height: 70px; border: 0; border-top: 1px dashed rgb(255 176 0 / 40%); border-bottom: 1px dashed rgb(53 237 157 / 40%); }
  .isolation-gap span { writing-mode: initial; }
  .rules-grid { grid-template-columns: 1fr 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer-actions { justify-content: flex-start; }
}

@media (max-width: 700px) {
  h1 { font-size: clamp(3rem, 17vw, 5rem); }
  h2 { font-size: clamp(2rem, 11vw, 3.1rem); }
  .nav { width: min(100% - 32px, 1180px); }
  .nav-links { display: none; }
  .hero-grid,
  .section { width: min(100% - 32px, 1180px); }
  .hero-grid { min-height: auto; padding: 72px 0 88px; gap: 48px; }
  .section { padding: 80px 0; }
  .soft-section,
  .wiring-section,
  .code-section { width: 100%; padding-right: 16px; padding-left: 16px; }
  .hero-actions,
  .code-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-grid article { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-grid article:last-child { border-bottom: 0; }
  .feature-grid,
  .shopping-grid,
  .rules-grid,
  .trouble-grid,
  .sources-list { grid-template-columns: 1fr; }
  .product-card:nth-child(3) { grid-column: auto; }
  .wide-card { display: block; grid-column: auto; }
  .wide-card > div:last-child { margin-top: 26px; }
  .connector-visual { padding: 18px 10px; }
  .connector-visual span { font-size: .5rem; }
  .power-options { padding: 24px; grid-template-columns: 1fr; }
  .power-options > div { grid-column: auto; }
  .power-options article { padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .danger-banner { grid-template-columns: 1fr; }
  .wiring-diagram { padding: 10px; }
  .low-zone { grid-template-columns: 1fr; }
  .wiring-zone { padding: 16px; }
  .terminal-block small { display: none; }
  .source-note { grid-template-columns: 1fr; }
  .prompt-header { align-items: flex-start; flex-direction: column; }
  .copy-button:not(.compact) { width: 100%; }
  .code-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer { min-height: 520px; padding-right: 20px; padding-left: 20px; }
  .footer-actions { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
  .nav,
  .hero-actions,
  .copy-button,
  .footer-actions,
  .toast { display: none !important; }
  .hero,
  .wiring-section,
  .code-section,
  .footer { color: #111; background: #fff; }
  .light-heading h2,
  .rules-grid h3,
  .footer h2 { color: #111; }
  .section { padding: 42px 0; }
}
