/* SOFTrobots OS website. Modern CSS only: custom properties, grid, flex, clamp(),
   container queries, prefers-color-scheme, prefers-reduced-motion. No external resources. */

:root {
  color-scheme: light dark;
  --amber: #F2A33A;
  --amber-ink: #8A5208;
  --amber-soft: #FDF1DF;
  --slate-950: #0E141C;
  --slate-900: #151E2A;
  --slate-800: #1F2B3A;
  --slate-700: #2C3B4E;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-100: #EEF2F6;
  --red: #E0454A;
  --green: #2FA36B;

  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --text: #17202B;
  --muted: #556274;
  --line: #DDE3EA;
  --card: #FFFFFF;

  --radius: 10px;
  --radius-small: 7px;
  --max: 72rem;
  --pad: clamp(1rem, 4vw, 2.5rem);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121A24;
    --bg-alt: #172230;
    --text: #E6EBF1;
    --muted: #9AA8B9;
    --line: #2A394B;
    --card: #1A2533;
    --amber-ink: #F2A33A;
    --amber-soft: #2A2216;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "tnum" 1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-ink); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0 0 0.6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.25rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; text-wrap: pretty; }
code { font-family: var(--mono); font-size: 0.92em; }

.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber-ink); margin-bottom: 0.8rem;
}
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.skip { position: absolute; left: -100vw; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--amber); color: #2A1903; padding: 0.5rem 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--slate-950);
  color: #fff;
  border-bottom: 1px solid var(--slate-800);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 3.75rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-weight: 700; }
.brand img { width: 1.9rem; height: 1.9rem; }
.brand span { color: var(--amber); font-weight: 600; }
.site-nav { display: flex; gap: 0.25rem 1.25rem; flex-wrap: wrap; margin-left: auto; font-size: 0.95rem; }
.site-nav a { color: var(--slate-300); text-decoration: none; padding: 0.3rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--amber); }
.estop {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; color: #fff; background: var(--red);
  border-radius: var(--radius-small); padding: 0.25rem 0.6rem; white-space: nowrap;
}
@media (width < 44rem) {
  .site-header .wrap { gap: 0.5rem 1rem; padding-block: 0.6rem; }
  .site-nav { margin-left: 0; width: 100%; font-size: 0.9rem; }
  .estop { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(transparent 0 calc(100% - 1px), rgb(255 255 255 / 0.035) 0) 0 0 / 100% 2.5rem,
    linear-gradient(90deg, transparent 0 calc(100% - 1px), rgb(255 255 255 / 0.035) 0) 0 0 / 2.5rem 100%,
    var(--slate-900);
  color: #fff;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem);
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: center; }
@media (width >= 62rem) { .hero-grid { grid-template-columns: 1fr 1.15fr; } }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { color: var(--slate-300); }
.hero .eyebrow { color: var(--amber); }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 2rem; }
.badge {
  font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--slate-700); color: var(--slate-300);
}
.badge.warn { border-color: var(--amber); color: var(--amber); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.2rem;
  border-radius: var(--radius-small); font-weight: 650; text-decoration: none;
  background: var(--amber); color: #2A1903; border: 1px solid var(--amber);
}
.button:hover { background: #F6B65C; }
.button.secondary { background: transparent; color: #fff; border-color: var(--slate-500); }
.button.secondary:hover { border-color: #fff; }
.screen {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--slate-700); background: var(--slate-800);
}
.screen figcaption { font-size: 0.8rem; color: var(--slate-300); padding: 0.55rem 0.85rem; border-top: 1px solid var(--slate-700); }

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1px;
  margin-top: clamp(2.5rem, 6vw, 4rem); background: var(--slate-700);
  border: 1px solid var(--slate-700); border-radius: var(--radius); overflow: hidden;
}
.hero-stats div { background: var(--slate-900); padding: 1.1rem 1.2rem; }
.hero-stats strong { display: block; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); font-weight: 750; color: var(--amber); line-height: 1.1; }
.hero-stats div > span { display: block; margin-top: 0.35rem; font-size: 0.85rem; color: var(--slate-300); line-height: 1.45; }
.hero-source { font-size: 0.8rem; color: var(--slate-500); margin-top: 0.75rem; }

/* ---------- Experimental notice ---------- */
.notice-band {
  background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, #2A1903 14px 28px);
  padding-block: 6px;
}
.notice {
  background: var(--amber-soft); border-radius: 0; padding-block: clamp(2rem, 5vw, 3rem);
}
.notice-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (width >= 56rem) { .notice-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.notice h2 { margin-bottom: 0.4em; }
.notice h2 .tag {
  display: inline-block; font-size: 0.8rem; vertical-align: middle; letter-spacing: 0.12em;
  background: #2A1903; color: var(--amber); padding: 0.25rem 0.6rem; border-radius: var(--radius-small); margin-right: 0.5rem;
}
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.checklist li { padding-left: 2rem; position: relative; }
.checklist li::before {
  content: "!"; position: absolute; left: 0; top: 0.1rem; width: 1.35rem; height: 1.35rem;
  display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 0.8rem;
  background: #2A1903; color: var(--amber);
}
.checklist.good li::before { content: "✓"; background: var(--green); color: #fff; }

/* ---------- Sections ---------- */
section { padding-block: clamp(3rem, 8vw, 5.5rem); }
section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.card {
  container-type: inline-size;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.3rem;
}
.card h3 { display: flex; align-items: center; gap: 0.55rem; }
.card h3::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--amber); flex: none; }
.card.red h3::before { background: var(--red); }
.card.green h3::before { background: var(--green); }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: center; }
@media (width >= 56rem) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }

.gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.shot figcaption { padding: 0.75rem 1rem; font-size: 0.9rem; color: var(--muted); }
.shot figcaption strong { color: var(--text); }

/* ---------- Speed ---------- */
.speed-hero { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin-bottom: 2.5rem; }
@media (width >= 62rem) { .speed-hero { grid-template-columns: repeat(3, 1fr); } }
.metric { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.metric .value { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 780; line-height: 1; letter-spacing: -0.02em; }
.metric .unit { font-size: 0.5em; font-weight: 650; color: var(--muted); margin-left: 0.15em; }
.metric .label { font-weight: 600; margin-top: 0.6rem; }
.metric .note { color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }

.timeline { display: grid; gap: 0.4rem; margin: 1rem 0 0.5rem; }
.tl-row { display: grid; grid-template-columns: 7.5rem 1fr 3.5rem; gap: 0.75rem; align-items: center; font-size: 0.9rem; }
.tl-bar { height: 0.8rem; background: var(--bg-alt); border-radius: 4px; position: relative; overflow: hidden; border: 1px solid var(--line); }
.tl-bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--t) / 1.2 * 100%); background: var(--slate-500); border-radius: 3px; }
.tl-row.kernel .tl-bar i { background: var(--amber); }
.tl-row.bg .tl-bar i { background: repeating-linear-gradient(90deg, var(--slate-300) 0 6px, transparent 6px 10px); }
.tl-row b { text-align: right; font-weight: 650; }
@media (width < 36rem) { .tl-row { grid-template-columns: 5.8rem 1fr 3.2rem; font-size: 0.82rem; } }

.compare { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); margin-top: 1rem; }
.bars { display: grid; gap: 0.55rem; margin: 0.75rem 0; }
.bar { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.75rem; align-items: center; font-size: 0.88rem; }
.bar span:last-child { height: 1.6rem; border-radius: 5px; background: var(--slate-300); width: var(--w); display: flex; align-items: center; padding-inline: 0.5rem; font-weight: 700; color: var(--slate-900); white-space: nowrap; min-width: max-content; }
.bar.after span:last-child { background: var(--amber); color: #2A1903; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; background: var(--bg-alt); }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; font-weight: 650; white-space: nowrap; }
td.nowrap { white-space: nowrap; }
.ok { color: var(--green); font-weight: 650; }
.miss { color: var(--amber-ink); font-weight: 650; }
.source {
  margin-top: 1.25rem; font-size: 0.85rem; color: var(--muted);
  border-left: 3px solid var(--amber); padding: 0.25rem 0 0.25rem 0.9rem;
}

/* ---------- Architecture ---------- */
.layers { display: grid; gap: 0.5rem; }
.layer { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 1rem; background: var(--card); }
.layer header { font-size: 0.75rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.layer.kernel { border-color: var(--amber); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips span { font-size: 0.82rem; padding: 0.2rem 0.55rem; border-radius: 6px; background: var(--bg-alt); border: 1px solid var(--line); }
.layer.kernel .chips span { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }

/* ---------- Roadmap ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.9rem; align-items: start; }
.steps li::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; font-weight: 750; border: 2px solid var(--amber); color: var(--amber-ink);
}
.steps li.done::before { content: "✓"; background: var(--amber); color: #2A1903; }

/* ---------- Updates teaser / page ---------- */
.update-box {
  border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--slate-900); color: #fff; display: grid; gap: 1.5rem; grid-template-columns: 1fr;
}
@media (width >= 56rem) { .update-box { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.update-box .lead { color: var(--slate-300); }
.update-box h2 em { font-style: normal; color: var(--amber); }
.pkg {
  font-family: var(--mono); font-size: 0.85rem; background: var(--slate-950); border: 1px solid var(--slate-700);
  border-radius: var(--radius); padding: 1rem 1.1rem; color: var(--slate-300); white-space: pre-wrap; margin: 0;
}
.pkg b { color: var(--amber); font-weight: 600; }
.status { display: inline-flex; gap: 0.5rem; align-items: center; font-weight: 700; font-size: 0.85rem; color: var(--amber); }
.status::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--amber); }

/* ---------- Legal pages ---------- */
.page-head { background: var(--slate-900); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.page-head .lead { color: var(--slate-300); }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose address { font-style: normal; }
.todo {
  background: #FFF3C4; color: #5A4300; padding: 0.05rem 0.35rem; border-radius: 4px; font-weight: 600;
  outline: 1px dashed #C99A00;
}
@media (prefers-color-scheme: dark) { .todo { background: #4A3B08; color: #FFE08A; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-950); color: var(--slate-300); padding-block: 2.5rem; font-size: 0.9rem; }
.site-footer .wrap { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.site-footer h3 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--slate-800); padding-top: 1.25rem; color: var(--slate-500); font-size: 0.8rem; }

/* ---------- Print ---------- */
@media print {
  :root { --bg: #fff; --bg-alt: #fff; --text: #000; --muted: #333; --line: #bbb; --card: #fff; --amber-ink: #6b3f00; }
  body { font-size: 10.5pt; }
  .site-header, .notice-band, .actions, .skip { display: none; }
  .hero, .page-head, .update-box, .site-footer { background: #fff !important; color: #000; }
  .hero .lead, .hero-stats div > span, .page-head .lead, .update-box .lead, .site-footer, .screen figcaption { color: #333; }
  .hero-stats { background: #bbb; }
  .hero-stats div { background: #fff; }
  .hero-stats strong { color: #000; }
  .pkg { background: #f4f4f4; color: #000; }
  .screen, .shot, .card, .metric, .layer, .table-wrap { break-inside: avoid; }
  section { padding-block: 1.25rem; }
  a { color: #000; }
  .prose a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}

/* ---------- Film slot ---------- */
.film { position: relative; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--slate-950); object-fit: contain; }

/* Features film: its own section after System, full 16:9 frame. */
#features { border-top: 1px solid var(--line); }
.feature-film { max-width: 64rem; margin-inline: auto; }
.feature-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--slate-950); object-fit: contain; }

/* Grid children may shrink below their content (the film and screenshots carry large intrinsic widths). */
.hero-grid > *, .split > *, .notice-grid > *, .update-box > *, .gallery > *, .compare > * { min-width: 0; }

/* ================= Launch polish ================= */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -10% auto auto; width: 70vmax; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(242 163 58 / 0.16), transparent 70%);
}
.hero-rings {
  position: absolute; z-index: -1; width: min(64rem, 110vw); right: -18rem; top: -14rem;
  fill: none; stroke: rgb(242 163 58 / 0.13); stroke-width: 1;
}
.hero h1 {
  font-size: clamp(2.6rem, 1.2rem + 5.6vw, 6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98;
  max-width: 15ch; margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.hero h1 em {
  background: linear-gradient(90deg, #F2A33A, #FFD08A 55%, #F2A33A);
  background-clip: text; color: transparent;
}
.hero-grid { align-items: start; }
.hero-warn {
  margin: 1.75rem 0 0; padding: 0.85rem 1rem 0.85rem 2.9rem; position: relative; font-size: 0.92rem; line-height: 1.5;
  border: 1px solid rgb(242 163 58 / 0.55); border-radius: var(--radius); background: rgb(242 163 58 / 0.08); color: #F6D9AE;
}
.hero-warn strong { color: var(--amber); }
.hero-warn::before {
  content: "!"; position: absolute; left: 0.9rem; top: 0.85rem; width: 1.35rem; height: 1.35rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--amber); color: #2A1903; font-weight: 800; font-size: 0.8rem;
}
.hero-warn.light { color: var(--text); background: var(--amber-soft); border-color: var(--amber); }
.hero-warn.light strong { color: var(--amber-ink); }
.warn-line { font-weight: 700; font-size: 1.05rem; border-left: 4px solid #2A1903; padding-left: 0.9rem; }
.nav-cta { color: #2A1903 !important; background: var(--amber); border-radius: var(--radius-small); padding: 0.3rem 0.7rem !important; font-weight: 650; box-shadow: none !important; }
.hero-source a { color: inherit; }

/* Realtime pulse: a 1 ms control loop drawn as a trace */
.pulse { margin: clamp(2rem, 5vw, 3.5rem) 0 0; }
.pulse svg { display: block; width: 100%; height: clamp(3rem, 6vw, 4.5rem); overflow: visible; }
.pulse path { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pulse-base { stroke: var(--slate-700); stroke-width: 2; }
.pulse-run { stroke: var(--amber); stroke-width: 2.5; stroke-dasharray: 90 910; animation: pulse-run 3.2s linear infinite; }
@keyframes pulse-run { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
.pulse figcaption { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font: 0.8rem/1.4 var(--mono); color: var(--slate-500); margin-top: 0.5rem; }
.pulse figcaption span:first-child { color: var(--amber); }
.hero-stats { margin-top: 1.5rem; }

/* Cards and metrics: quiet lift on hover */
.card, .metric, .shot, .layer { transition: border-color 160ms ease, translate 160ms ease; }
.card:hover, .metric:hover, .shot:hover { border-color: color-mix(in srgb, var(--amber) 70%, var(--line)); translate: 0 -2px; }
.metric { position: relative; overflow: hidden; }
.metric::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 2.5rem; height: 3px; background: var(--amber); }
.button { transition: background-color 140ms ease, border-color 140ms ease, translate 140ms ease; }
.button:hover { translate: 0 -1px; }
.shot img { transition: scale 400ms ease; }
.shot:hover img { scale: 1.015; }

@media (prefers-reduced-motion: reduce) {
  .pulse-run { animation: none; stroke-dasharray: none; stroke: var(--amber); opacity: 0.85; }
  .card, .metric, .shot, .layer, .button, .shot img { transition: none; }
  .card:hover, .metric:hover, .shot:hover, .button:hover { translate: none; }
  .shot:hover img { scale: none; }
}

/* Preview download */
.download { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: start; }
@media (width >= 56rem) { .download { grid-template-columns: 1.25fr 1fr; } }
.download > * { min-width: 0; }
.download h3 { margin-top: 1.5rem; }
.download h3:first-child { margin-top: 0; }
.download-card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--amber); border-radius: var(--radius); padding: 1.5rem; }
.download-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; margin: 1rem 0 1.25rem; font-size: 0.92rem; }
.download-card dt { color: var(--muted); font-weight: 600; }
.download-card dd { margin: 0; overflow-wrap: anywhere; }
.download-card .status { color: var(--amber-ink); }
.button.is-pending { background: transparent; color: var(--amber-ink); border: 1px dashed var(--amber); }
.button.is-pending:hover { translate: none; background: var(--amber-soft); }

@media print {
  .hero-rings, .pulse, .hero::before { display: none; }
  .hero h1 em { color: #000; background: none; }
  .hero-warn { color: #000; background: #fff; }
}

/* ================= Danger: Buddy's warning ================= */
.danger {
  --stripe: repeating-linear-gradient(-45deg, var(--red) 0 12px, #2A1903 12px 24px);
  border: 6px solid transparent; border-image: var(--stripe) 6;
  background: #FFF4F2; color: #3A0F12;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1rem 2rem; align-items: center;
  padding: clamp(1rem, 3vw, 1.75rem);
}
.danger-title { margin: 0 0 0.4rem; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); font-weight: 800; letter-spacing: -0.01em; color: #B4232A; }
.danger-title::before {
  content: "!"; display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: 0.5rem; vertical-align: -0.2em;
  border-radius: 50%; background: var(--red); color: #fff; font-size: 0.85em;
}
.danger p { margin: 0; }
.danger-text { font-size: 1.05rem; font-weight: 600; }
.buddy { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: end; margin-top: 1rem; }
.buddy img { width: clamp(5rem, 12vw, 7.5rem); height: auto; animation: buddy-bob 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes buddy-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.bubble {
  position: relative; background: #fff; color: var(--slate-900); border: 2px solid #2A1903; border-radius: 14px;
  padding: 0.75rem 1rem; font-weight: 600; line-height: 1.45; max-width: 40rem;
}
.bubble::before {
  content: ""; position: absolute; left: -11px; bottom: 18px; width: 18px; height: 18px; background: #fff;
  border-left: 2px solid #2A1903; border-bottom: 2px solid #2A1903; rotate: 45deg;
}
.bubble strong { color: #B4232A; }
.danger-wrap { background: var(--bg); padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.danger.compact { display: block; padding: 0.9rem 1rem; margin-top: 1rem; }
.danger.compact .danger-title { font-size: 1.05rem; }
.danger.compact .danger-text { font-size: 0.92rem; }
.danger.compact .buddy img { width: 4rem; }
.danger.compact .bubble { font-size: 0.85rem; padding: 0.55rem 0.75rem; }
@media (width < 40rem) { .danger { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { .danger { background: #2A1517; color: #FBE3E3; } .danger-title { color: #FF8A8F; } }
@media (prefers-reduced-motion: reduce) { .buddy img { animation: none; } }
.footer-danger { color: #FF8A8F; font-weight: 700; }
@media print { .danger { border: 3px solid #000; background: #fff; color: #000; } .buddy img { animation: none; } }
