/* ================================================================
   cargo-forge.dev -- style.css
   Warm industrial aesthetic: forge-fire amber on near-black
   ================================================================ */

:root {
  --bg:         #141210;
  --bg2:        #1c1916;
  --bg3:        #242018;
  --amber:      #e8943a;
  --amber-dim:  #a8642a;
  --amber-glow: #f5b56a;
  --cream:      #f0e4d0;
  --cream-dim:  #b8a898;
  --steel:      #7a8a8c;
  --green:      #4caf78;
  --blue:       #4a8fc4;
  --border:     rgba(232,148,58,0.18);
  --border-dim: rgba(232,148,58,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

/* ── Nav ──────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem;
  background: rgba(20,18,16,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--amber);
  letter-spacing: 0.05em;
  text-decoration: none;
}
.nav-brand span { color: var(--cream-dim); }

nav ul { list-style: none; display: flex; gap: 2.5rem; }
nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--cream-dim);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
nav a:hover { color: var(--amber); }

/* ── Shared typography ────────────────────────────────────────── */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
h2 em { color: var(--amber); font-style: italic; }

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  color: var(--amber);
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-primary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  background: var(--amber);
  color: var(--bg);
  padding: 0.8rem 1.8rem;
  border: none;
  text-decoration: none;
  letter-spacing: 0.05em;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--amber-glow); transform: translateY(-1px); }

.btn-ghost {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  background: transparent;
  color: var(--cream-dim);
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--border);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ── Sections ─────────────────────────────────────────────────── */
section { padding: 6rem 4rem; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(232,148,58,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--cream);
  max-width: 900px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.hero h1 em { font-style: italic; color: var(--amber); }

.hero-sub {
  font-size: 1.25rem;
  color: var(--cream-dim);
  max-width: 580px;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

/* ── Install bar ──────────────────────────────────────────────── */
.install-bar {
  background: #0e0c0a;
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 420px;
  margin-top: 2rem;
  cursor: pointer;
  transition: border-color 0.2s;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}
.install-bar:hover { border-color: var(--amber); }
.install-bar code { font-size: 0.85rem; color: var(--cream); }
.install-bar .prompt { color: var(--amber-dim); margin-right: 0.25rem; }
.copy-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--steel);
  margin-left: auto;
  letter-spacing: 0.08em;
}

/* ── Terminal ─────────────────────────────────────────────────── */
.terminal-wrap {
  margin-top: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 1.1s forwards;
}

.terminal {
  background: #0e0c0a;
  border: 1px solid var(--border);
  max-width: 680px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  overflow: hidden;
}

.terminal-bar {
  background: #1a1714;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #e05c5c; }
.dot-y { background: #e0b44a; }
.dot-g { background: #4caf78; }
.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--steel);
  margin-left: 0.5rem;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.9;
  min-height: 220px;
}

.t-cmd  { color: var(--cream); }
.t-ok   { color: var(--green); }
.t-info { color: var(--steel); }
.t-warn { color: #e0b44a; }
.t-cursor {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--amber);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

/* ── Cross-compile diagram ────────────────────────────────────── */
.cross-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cross-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.cross-header {
  text-align: center;
  margin-bottom: 3rem;
}

.cross-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.cross-sources,
.cross-targets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cross-host {
  border: 1px solid var(--border);
  background: var(--bg3);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--cream-dim);
  transition: border-color 0.3s, color 0.3s;
}

.cross-host:hover {
  border-color: var(--amber-dim);
  color: var(--cream);
}

.cross-host .host-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.host-freebsd .host-dot { background: #e8943a; }
.host-linux   .host-dot { background: #4caf78; }
.host-windows .host-dot { background: #5b9bd5; }

.cross-forge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
}

.forge-icon {
  width: 80px; height: 80px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(232,148,58,0.1) 0%, transparent 70%);
  font-size: 2rem;
  position: relative;
  animation: forgePulse 3s ease-in-out infinite;
}

.forge-icon::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(232,148,58,0.2);
  animation: forgeRing 3s ease-in-out infinite;
}

.forge-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--amber);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cross-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.6;
  font-size: 0.9rem;
  color: var(--amber-dim);
}

.cross-target {
  border: 1px solid var(--border);
  background: var(--bg3);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--cream-dim);
  position: relative;
  overflow: hidden;
}

.cross-target::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--green);
  opacity: 0.6;
}

.cross-target.target-windows::after { background: #5b9bd5; }
.cross-target.target-arm::after     { background: var(--amber); }
.cross-target.target-freebsd::after { background: #e8943a; }

.cross-target .target-ext {
  font-size: 0.68rem;
  color: var(--steel);
  margin-left: auto;
}

.cross-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.98rem;
  color: var(--cream-dim);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Why ──────────────────────────────────────────────────────── */
.why {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.why-text p,
.why-right p {
  color: var(--cream-dim);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.why-text p strong,
.why-right p strong { color: var(--cream); font-weight: 600; }

.origin-quote {
  border-left: 3px solid var(--amber);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: rgba(232,148,58,0.04);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream-dim);
  line-height: 1.6;
  margin-top: 2rem;
}
.origin-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--amber-dim);
  letter-spacing: 0.08em;
}

/* ── How it works ─────────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 3rem auto 0;
}

.how-card {
  padding: 2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  position: relative;
}
.how-card::before {
  content: attr(data-n);
  position: absolute;
  top: -1px; right: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(232,148,58,0.07);
  line-height: 1;
}
.how-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.how-card p { font-size: 1rem; color: var(--cream-dim); line-height: 1.6; }
.how-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

/* ── Platform matrix ──────────────────────────────────────────── */
.matrix-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.matrix-inner { max-width: 900px; margin: 0 auto; }

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
}
.matrix-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--amber);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.matrix-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--cream-dim);
}
.matrix-table tr:hover td { background: rgba(232,148,58,0.025); }
.tag-native {
  color: var(--green);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(76,175,120,0.5);
}
.tag-zig {
  color: var(--amber);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(232,148,58,0.4);
}
.tag-skip {
  color: #555;
  letter-spacing: 0.1em;
}

/* Matrix legend */
.matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-dim);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--cream-dim);
}

.legend-dot {
  font-size: 1rem;
  line-height: 1;
}

.legend-dot.native {
  color: var(--green);
  text-shadow: 0 0 10px rgba(76,175,120,0.6);
}

.legend-dot.zig {
  color: var(--amber);
  text-shadow: 0 0 10px rgba(232,148,58,0.5);
}

.legend-dot.skip {
  color: #555;
  letter-spacing: 0.15em;
}

/* ── Cheatsheet ───────────────────────────────────────────────── */
.cheat { max-width: 900px; margin: 0 auto; }

.cheat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.cheat-card {
  background: #0e0c0a;
  border: 1px solid var(--border);
  padding: 1.5rem;
}
.cheat-card h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.cheat-cmd { display: flex; flex-direction: column; gap: 0.65rem; }
.cheat-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
}
.cheat-line code {
  font-size: 0.78rem;
  color: var(--cream);
  background: rgba(255,255,255,0.04);
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}
.cheat-desc {
  font-size: 0.82rem;
  color: var(--cream-dim);
  font-family: 'Crimson Text', serif;
  white-space: nowrap;
}
.cheat-toml {
  margin-top: 1.5rem;
  background: #0e0c0a;
  border: 1px solid var(--border);
  padding: 1.5rem;
}
.cheat-toml h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.cheat-toml pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--cream-dim);
  line-height: 1.9;
  overflow-x: auto;
}
.toml-section { color: var(--amber); }
.toml-string  { color: var(--green); }
.toml-comment { color: var(--steel); }

/* ── Roadmap ──────────────────────────────────────────────────── */
.roadmap {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.roadmap-inner { max-width: 800px; margin: 0 auto; }

.roadmap-list {
  list-style: none;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.roadmap-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(232,148,58,0.025);
  border: 1px solid var(--border);
}
.roadmap-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.6rem;
  border: 1px solid;
  white-space: nowrap;
  margin-top: 0.25rem;
}
.tag-done  { color: var(--green); border-color: var(--green); }
.tag-soon  { color: var(--amber); border-color: var(--amber-dim); }
.tag-later { color: var(--steel); border-color: var(--steel); }
.roadmap-text h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}
.roadmap-text p { font-size: 0.95rem; color: var(--cream-dim); }

/* ── Made by ──────────────────────────────────────────────────── */
.madeby-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.madeby-card {
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--bg2);
  display: flex;
  flex-direction: column;
}
.org-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin-bottom: 0.75rem;
}

.logo-wrap {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
}
/* Wavelet Solutions logo: invert for dark background */
.logo-wavelet {
  height: 36px;
  width: auto;
  filter: invert(1) brightness(0.85);
  opacity: 0.9;
}
/* Nexus Workshops: transparent PNG, colors work on dark bg */
.logo-nexus {
  height: 52px;
  width: auto;
  opacity: 0.92;
}

.madeby-card p {
  font-size: 0.98rem;
  color: var(--cream-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.madeby-card p strong { color: var(--cream); }
.madeby-card a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--amber);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--amber-dim);
  padding-bottom: 1px;
  transition: color 0.2s;
  align-self: flex-start;
}
.madeby-card a:hover { color: var(--amber-glow); }

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo-wavelet {
  height: 24px;
  width: auto;
  filter: invert(1) brightness(0.65);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-logo-wavelet:hover { opacity: 1; }

.footer-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.footer-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--amber);
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--steel);
}

.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--steel);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--amber); }

/* ── Animations ───────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink { 50% { opacity: 0; } }

@keyframes forgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(232,148,58,0.2); }
  50%       { box-shadow: 0 0 40px rgba(232,148,58,0.4), 0 0 80px rgba(232,148,58,0.1); }
}

@keyframes forgeRing {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50%       { transform: scale(1.1); opacity: 0.1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  nav ul { display: none; }
  .hero { padding: 7rem 1.5rem 4rem; }
  section { padding: 4rem 1.5rem; }
  .why-grid,
  .how-grid,
  .cheat-grid,
  .madeby-grid,
  .cross-diagram { grid-template-columns: 1fr; gap: 1.5rem; }
  .cross-forge { flex-direction: row; justify-content: center; }
  .cross-arrows { display: none; }
  .matrix-table { font-size: 0.7rem; }
  .matrix-table th, .matrix-table td { padding: 0.5rem 0.6rem; }
  footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
}

/* ── Pi callout ───────────────────────────────────────────────── */
.pi-callout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 820px;
  margin: 3rem auto 0;
  padding: 2rem 2.5rem;
  background: rgba(76,175,120,0.05);
  border: 1px solid rgba(76,175,120,0.25);
  border-left: 4px solid var(--green);
}

.pi-icon {
  font-size: 2.8rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.15rem;
}

.pi-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.pi-text p {
  font-size: 1rem;
  color: var(--cream-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.pi-cmd {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--green);
  background: rgba(76,175,120,0.08);
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(76,175,120,0.2);
}

@media (max-width: 600px) {
  .pi-callout { flex-direction: column; gap: 1rem; }
}

/* ── Zig aside (expandable tooltip-style) ─────────────────────── */
.zig-aside {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  background: rgba(232,148,58,0.03);
}

.zig-aside summary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--amber-dim);
  padding: 0.65rem 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s, background 0.2s;
  user-select: none;
}

.zig-aside summary::before {
  content: '+ ';
  color: var(--amber);
  font-size: 0.9rem;
}

.zig-aside[open] summary::before {
  content: '- ';
}

.zig-aside summary:hover {
  color: var(--amber);
  background: rgba(232,148,58,0.05);
}

.zig-aside p {
  font-size: 0.95rem;
  color: var(--cream-dim);
  line-height: 1.65;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border);
  margin: 0;
}