/* LA AGUJA · TranscendenceIA editorial graphite & faceted spectrum system */
:root {
  color-scheme: dark;
  --night: #090b10;
  --night-2: #11141b;
  --night-3: #191d26;
  --night-4: #222735;
  --white: #f7f6f1;
  --body: #c4c7d1;
  --muted: #9a9da6;
  --ink: #0b0d12;
  --line: #272b36;
  --border-soft: #3b3245;
  --brand-border: #887299;
  --ember: #ff4b0a;
  --magenta: #ff0a8a;
  --violet: #aa35ff;
  --electric: #3867ff;
  --cyan: #28d9f7;
  --pink-text: #ff9dcc;
  --violet-text: #d9afff;
  --blue-text: #a5baff;
  --warm-text: #ffad8a;
  --spectrum: linear-gradient(110deg, #ff4b0a 0%, #ff0a8a 34%, #aa35ff 64%, #3867ff 88%, #28d9f7 100%);
  --font-sans: Inter, "Noto Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-sans);
  background: var(--night);
  color: var(--white);
  scrollbar-color: #3d3448 var(--night);
  scrollbar-width: thin;
}

*, *::before, *::after { box-sizing: border-box; }
::selection { background: rgba(170, 53, 255, 0.36); color: var(--white); }

html {
  background: var(--night);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(900px 460px at 82% -60px, rgba(170, 53, 255, 0.09), transparent 70%),
    radial-gradient(640px 360px at 14% -40px, rgba(255, 10, 138, 0.06), transparent 68%),
    var(--night);
  color: var(--white);
  line-height: 1.65;
  caret-color: var(--pink-text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-text);
  text-underline-offset: 0.24em;
  text-decoration-thickness: 1px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
a:hover { color: var(--white); }

button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, a, input, select, summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 6px;
}

img { max-width: 100%; height: auto; }
p, li, h1, h2, h3, a, span { overflow-wrap: anywhere; }

h1, h2, h3 {
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.45rem, 5.1vw, 4.65rem);
  font-weight: 780;
  margin: 0 0 0.42em;
}
h2 {
  font-size: clamp(1.65rem, 2.9vw, 2.45rem);
  font-weight: 730;
  margin: 0 0 0.55em;
}
h3 {
  font-size: 1.18rem;
  font-weight: 680;
  letter-spacing: -0.018em;
  margin: 0 0 0.5em;
}
p {
  max-width: 70ch;
  color: var(--body);
  margin: 0 0 1em;
}
p:last-child { margin-bottom: 0; }

section {
  padding: 4rem 0;
  scroll-margin-top: 1.5rem;
}

.site-shell-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 48px) 0;
}

main, footer {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
}

/* Floating TranscendenceIA Editorial Header */
.site-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 22px;
  background: var(--night-2);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
}
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--spectrum);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  min-width: 0;
  max-width: 100%;
}
.brand > span { min-width: 0; }
.brand img {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font: 600 11px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 18px;
  font-size: 0.9rem;
}
.site-nav a {
  color: var(--body);
  text-decoration: none;
  padding: 6px 2px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover { color: var(--white); }
.site-nav .nav-cta {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
}
.site-nav .nav-cta:hover {
  background: #ffffff;
  color: var(--ink);
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 12px 6px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.83rem;
}
.language-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.language-nav a:hover { color: var(--white); }
.language-nav [aria-current="page"] {
  color: var(--white);
  font-weight: 650;
  border-bottom-color: var(--magenta);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(34px, 5vw, 64px) 0 44px;
}
.hero h1 span { color: var(--pink-text); }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.65;
  color: var(--body);
  max-width: 56ch;
}
.micro {
  font: 500 0.78rem/1.6 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 18px;
}

.hero-art {
  position: relative;
  margin: 0;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--night-2);
  overflow: hidden;
}
.hero-art::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--spectrum);
  z-index: 2;
}
.hero-art img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hero-art figcaption {
  padding: 16px 20px;
  color: var(--body);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 6px;
}
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--white);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  text-align: center;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.button:hover, button:hover, a.button:hover {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--pink-text);
  transform: translateY(-1px);
}
.button:active, button:active { transform: translateY(0); }

.secondary, a.button.secondary {
  background: var(--night-3);
  color: var(--white);
  border-color: var(--border-soft);
}
.secondary:hover, a.button.secondary:hover {
  background: var(--night-4);
  color: var(--white);
  border-color: var(--brand-border);
}

/* Version & Component Strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-strip strong {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--night-3);
  border: 1px solid var(--line);
}

/* Section header with version tag inline (not an eyebrow above) */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0; }
.version-tag {
  font: 600 0.78rem/1.4 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--violet-text);
  background: var(--night-3);
  border: 1px solid var(--border-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Command Post 4-Pillar Deck */
.command-deck {
  padding-top: 4.2rem;
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--night-2);
  min-width: 0;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.pillar-card:hover {
  border-color: var(--brand-border);
  background: #141822;
}
.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: var(--night-3);
  border: 1px solid var(--border-soft);
  color: var(--pink-text);
  flex-shrink: 0;
}
.pillar-card:nth-child(2) .pillar-icon { color: var(--violet-text); }
.pillar-card:nth-child(3) .pillar-icon { color: var(--blue-text); }
.pillar-card:nth-child(4) .pillar-icon { color: var(--warm-text); }
.pillar-meta {
  font: 600 0.76rem/1.4 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.pillar-card h3 { margin: 6px 0 2px; font-size: 1.24rem; }
.pillar-card p { font-size: 0.95rem; margin: 0; color: var(--body); }
.pillar-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--violet-text);
}
.pillar-link:hover { color: var(--white); text-decoration: underline; }

/* Operational Topology Bar */
.topology {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--night-2);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.topology-node {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--night-3);
  min-width: 0;
}
.topology-node strong {
  display: block;
  color: var(--white);
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.topology-node span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Grids & Cards */
.intro { max-width: 880px; }

.feature-grid, .plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-grid article, .plan-card, .case-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--night-2);
  min-width: 0;
}
.feature-grid { padding-bottom: 16px; }
.feature-grid article h3, .plan-card h3 { color: var(--white); }

.number {
  display: inline-block;
  margin-bottom: 10px;
  font: 600 0.75rem/1.4 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--violet-text);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.case-grid article {
  background: var(--night-2);
  border-color: var(--line);
}
.case-tag {
  display: block;
  margin-bottom: 6px;
  font: 600 0.74rem/1.4 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.plan-grid { margin-top: 24px; }
.plan-card ol { padding-left: 20px; margin: 12px 0 16px; }
.plan-card li { margin: 0.55em 0; color: var(--body); font-size: 0.93rem; }
.stop {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}
.stop strong { color: var(--warm-text); }

label { display: block; color: var(--body); font-size: 0.9rem; }
select, input[type="search"] {
  width: 100%;
  max-width: 540px;
  padding: 12px 14px;
  background: var(--night-2);
  color: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  margin-top: 8px;
  min-width: 0;
}
select:hover, input[type="search"]:hover { border-color: var(--brand-border); }

.boundary {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Downloads & Installers */
.download-band {
  border-top: 1px solid var(--line);
}
.installer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.installer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 15px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--night-2);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.installer-links a:hover {
  border-color: var(--brand-border);
  background: var(--night-3);
  color: var(--white);
}
.meta-links {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 10px;
}

/* IoT Showcase Band */
#iot-mcu .iot-panel {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--night-2);
  overflow: hidden;
}
#iot-mcu .iot-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--spectrum);
}
#iot-mcu .feature-grid { margin-top: 22px; padding-bottom: 8px; }
#iot-mcu .feature-grid article {
  background: var(--night-3);
  border-color: var(--line);
}
#iot-mcu .installer-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

/* Disclosures / FAQ */
details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--night-2);
  padding: 16px 20px;
  margin: 10px 0;
}
details[open] { border-color: var(--border-soft); }
summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--white);
}
details p { margin-top: 12px; margin-bottom: 0; }

.support-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.support-heading h2 { margin: 0; }
.support-qr {
  margin-top: 18px;
  max-width: 100%;
  border-radius: 12px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 28px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  padding-bottom: 44px;
  font-size: 0.84rem;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  top: 0;
  left: 16px;
  transform: translateY(-160%);
  padding: 12px 16px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  border-radius: 8px;
  z-index: 20;
}
.skip-link:hover { color: var(--ink); }
.skip-link:focus { transform: translateY(12px); }

/* 26-Chapter Documentation View */
.guide-intro { max-width: 920px; padding-bottom: 2.2rem; }
.guide-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 44px;
}
.contents {
  align-self: start;
  position: sticky;
  top: 16px;
  max-height: 92vh;
  overflow: auto;
  padding-bottom: 12px;
}
.contents details { margin: 0; padding: 16px; }
.contents nav { display: grid; gap: 4px; margin-top: 16px; }
.contents nav a {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  padding: 5px 0;
  color: var(--muted);
  text-decoration: none;
}
.contents nav a:hover { color: var(--pink-text); }
.contents input { font-size: 0.85rem; }
.contents label { font-size: 0.8rem; margin-top: 14px; }
#search-status { font-size: 0.78rem; color: var(--muted); margin-top: 8px; }

.chapters { min-width: 0; }
.doc-section {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.doc-section h2 {
  margin-top: 6px;
  font-size: clamp(1.5rem, 2.3vw, 2.05rem);
}
.chapter-index {
  display: inline-block;
  margin-bottom: 6px;
  font: 600 0.75rem/1.4 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.doc-section figure {
  margin: 24px 0;
  background: var(--night-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
}
.doc-section figure img { display: block; width: 100%; }
.zoom-image { display: block; cursor: zoom-in; }
.doc-section figcaption {
  padding: 14px 18px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.doc-section figcaption span {
  display: block;
  color: var(--violet-text);
  margin-top: 6px;
}
.doc-section .plan-grid { grid-template-columns: 1fr; }
.doc-section .case-grid { grid-template-columns: 1fr 1fr; }
.doc-section .planner { padding: 20px 0; }

.checklist {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--night-2);
  padding: 20px;
  margin: 24px 0;
  min-width: 0;
}
.checklist legend { font-weight: 700; color: var(--white); padding: 0 8px; }
.checklist label {
  display: flex;
  gap: 12px;
  align-items: start;
  margin: 14px 0;
  cursor: pointer;
}
.checklist input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 3px 0;
  accent-color: var(--violet);
}
.checklist p { font-size: 0.86rem; }
.check-status {
  color: var(--pink-text);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #06080c;
  padding: 18px 20px;
  color: var(--white);
  font: 0.85rem/1.7 var(--font-mono);
}
pre button {
  display: block;
  margin-top: 14px;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.82rem;
  background: var(--night-3);
  color: var(--white);
  border-color: var(--border-soft);
}
pre button:hover {
  background: var(--night-4);
  color: var(--white);
  border-color: var(--brand-border);
}

.prompt {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--night-2);
  padding: 18px 20px;
  margin: 26px 0;
}
.prompt h3 { font-size: 0.98rem; color: var(--violet-text); }

.search-match { border-top-color: var(--violet); }

dialog {
  max-width: min(96vw, 1500px);
  max-height: 94vh;
  padding: 18px;
  background: var(--night-2);
  color: var(--white);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
}
dialog::backdrop { background: rgba(5, 7, 12, 0.86); }
dialog img { display: block; max-height: 75vh; object-fit: contain; margin: 12px auto; }
dialog p { font-size: 0.86rem; }
dialog button { margin-left: auto; display: flex; }

.table-wrap { overflow: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
th, td { padding: 12px; border: 1px solid var(--line); text-align: left; }
th { background: var(--night-2); color: var(--white); }
.flow { display: flex; flex-wrap: wrap; gap: 14px; }
.walkthrough li { margin: 14px 0; }
.doc-section ul, .doc-section ol { padding-left: 22px; }
.callout {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--night-2);
  padding: 14px 18px;
}

/* Product Walkthrough Videos & Fresh Visual Gallery */
.demo-showcase {
  border-top: 1px solid var(--line);
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.demo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--night-2);
  overflow: hidden;
  min-width: 0;
}
.demo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--spectrum);
  z-index: 2;
}
.demo-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #06080c;
  object-fit: contain;
}
.demo-body {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-body h3 {
  margin: 0;
  font-size: 1.08rem;
}
.demo-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--body);
}
.demo-meta {
  font: 500 0.76rem/1.45 var(--font-mono);
  color: var(--muted);
  margin-top: 4px;
}
.demo-stills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.demo-stills figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--night-2);
  overflow: hidden;
}
.demo-stills figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.demo-stills figcaption {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--body);
  border-top: 1px solid var(--line);
}
.doc-section .demo-card {
  margin: 24px 0;
}

[hidden] { display: none !important; }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 680px; }
  .site-header { flex-wrap: wrap; }
  .site-nav { justify-content: flex-start; }
  .pillar-grid, .feature-grid, .plan-grid, #iot-mcu .installer-links, .demo-grid, .demo-stills { grid-template-columns: 1fr; }
  .topology { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-layout { grid-template-columns: 1fr; }
  .contents { position: static; max-height: none; }
  .contents nav { grid-template-columns: 1fr 1fr; gap: 8px 20px; }
}

@media (max-width: 600px) {
  h1 { font-size: 2.25rem; }
  section { padding: 2.6rem 0; }
  .site-shell-top { padding-top: 12px; }
  .site-header { padding: 12px 14px; border-radius: 14px; }
  .brand { font-size: 1rem; }
  .brand img { width: 36px; height: 36px; flex-basis: 36px; }
  .site-nav { font-size: 0.85rem; gap: 8px 14px; }
  .case-grid, .doc-section .case-grid, .installer-links, .contents nav, .topology { grid-template-columns: 1fr; }
  .actions > * { width: 100%; }
  .pillar-card, .feature-grid article, .plan-card, .case-grid article, #iot-mcu .iot-panel { padding: 20px; }
  .checklist { padding: 14px; }
  .guide-layout { gap: 22px; }
  .trust-strip { gap: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  body { background: white; color: black; }
  .site-shell-top, .contents, .actions, .planner-controls, pre button, .print-guide, footer { display: none !important; }
  main { padding: 0; }
  .guide-layout { display: block; }
  p, li { color: #222 !important; }
  h1, h2, h3, .number, .chapter-index { color: black !important; }
  section { break-inside: auto; }
  figure, .plan-card, .case-grid article, .pillar-card { break-inside: avoid; }
  a { color: black; }
  .pillar-grid, .plan-grid, .case-grid, .topology { display: block; }
  .plan-card[hidden] { display: block !important; }
  pre { background: white; color: black; }
  img { max-height: 400px; object-fit: contain; }
  details { border: 0; background: white; }
}
