/* ============================================================
   UNPROTON — design tokens + components
   Dark, cool-neutral canvas · one indigo-violet accent
   Per-product tints used sparingly · Manrope + IBM Plex Mono
   ============================================================ */

:root {
  /* ---- color: canvas (near-black, cool neutral, ~0 chroma) ---- */
  --bg-0: oklch(0.155 0.006 285);   /* page */
  --bg-1: oklch(0.190 0.007 285);   /* card */
  --bg-2: oklch(0.225 0.008 285);   /* hover / inset */
  --bg-3: oklch(0.270 0.009 285);

  --line:        oklch(0.30 0.010 285 / 0.7);  /* hairline */
  --line-strong: oklch(0.40 0.012 285 / 0.8);

  /* ---- color: text ---- */
  --tx-hi:  oklch(0.965 0.004 285);
  --tx-mid: oklch(0.760 0.007 285);
  --tx-low: oklch(0.575 0.008 285);

  /* ---- accent (tweakable) + per-product tints ---- */
  --accent:      oklch(0.74 0.145 285);   /* indigo-violet */
  --accent-soft: oklch(0.74 0.145 285 / 0.14);
  --accent-ink:  oklch(0.18 0.04 285);     /* text on accent */

  --c-explainly: oklch(0.75 0.15 300);     /* violet  */
  --c-invoice:   oklch(0.76 0.14 158);     /* green   */
  --c-stamp:     oklch(0.80 0.135 70);     /* amber   */

  /* ---- spacing scale (4px base) ---- */
  --s1: 0.25rem;  --s2: 0.5rem;  --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem;   --s6: 2rem;    --s7: 3rem;    --s8: 4rem;
  --s9: 6rem;     --s10: 8rem;   --s11: 10rem;

  /* ---- radius ---- */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;

  /* ---- type ---- */
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1180px;

  /* ---- motion ---- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* ---- background motif (tweakable: dots | grid | none) ----
     ink is accent-tinted so the canvas always matches the brand color */
  --motif-ink: color-mix(in oklch, var(--accent) 45%, oklch(0.5 0.02 285));
  --motif: radial-gradient(var(--motif-ink) 1px, transparent 1.6px);
  --motif-size: 24px 24px;
}

/* density (tweakable) */
:root[data-density="compact"] { --section-y: var(--s8); }
:root                          { --section-y: var(--s10); }
:root[data-density="comfy"]    { --section-y: var(--s11); }

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--tx-mid);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

/* fixed background FX layer (dots/grid + accent halo). A real element with
   explicit z-index so it reliably sits behind content. */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-fx .dots {
  position: absolute;
  inset: 0;
  background-image: var(--motif);
  background-size: var(--motif-size);
  background-position: center top;
  opacity: 0.5;
  /* bright at the top, gently fading to nothing toward the bottom */
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.55) 32%, rgba(0,0,0,0.18) 62%, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.55) 32%, rgba(0,0,0,0.18) 62%, transparent 88%);
}
.bg-fx .halo {
  position: absolute;
  top: -28vh;
  left: 50%;
  transform: translateX(-50%);
  width: 110vw;
  height: 78vh;
  background: radial-gradient(ellipse 55% 60% at 50% 50%, color-mix(in oklch, var(--accent) 24%, transparent), transparent 70%);
}

/* content sits above the FX layer */
main, footer { position: relative; z-index: 1; }

h1, h2, h3, h4 { color: var(--tx-hi); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent-soft); color: var(--tx-hi); }

/* ---------------- layout ---------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); position: relative; z-index: 1; }

section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tx-low);
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  opacity: 0.8;
}

.section-head { max-width: 640px; margin-bottom: var(--s7); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-top: var(--s4); }
.section-head p { margin: var(--s4) 0 0; color: var(--tx-mid); font-size: 1.0625rem; max-width: 52ch; text-wrap: pretty; }

/* ---------------- buttons ---------------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 0.72em 1.25em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.18) inset, 0 8px 30px -12px var(--accent);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 1px 0 oklch(1 0 0 / 0.18) inset, 0 12px 40px -12px var(--accent); }

.btn-ghost {
  background: oklch(1 0 0 / 0.02);
  color: var(--tx-hi);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: oklch(1 0 0 / 0.05); border-color: var(--tx-low); }

.btn .ico { width: 1.05em; height: 1.05em; display: inline-block; }
.btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: oklch(0.155 0.006 285 / 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: var(--s6); height: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--s3); color: var(--tx-hi); font-weight: 700; letter-spacing: -0.01em; }
.brand .mark { width: 26px; height: 26px; color: var(--accent); flex: none; }
.brand .wordmark { font-size: 1.06rem; display: inline-flex; align-items: baseline; gap: 0.4em; }
.brand .wordmark b { font-weight: 700; }
.brand .wordmark .labs { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tx-low); transform: translateY(-1px); }

.nav-links { display: flex; gap: var(--s5); margin-left: auto; }
.nav-links a { color: var(--tx-mid); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--tx-hi); }
.nav-cta { display: flex; align-items: center; gap: var(--s3); }

.mark-spin { transform-origin: 16px 16px; animation: orbit-spin 14s linear infinite; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* ---------------- hero ---------------- */
.hero { padding-top: clamp(3.5rem, 9vw, 7rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s8); align-items: center; }
.hero-copy { max-width: 38ch; }
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-top: var(--s5);
}
.hero h1 .dim { color: var(--tx-low); }
.hero-sub { margin: var(--s5) 0 0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--tx-mid); max-width: 46ch; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--s5); margin-top: var(--s7); }
.hero-meta .m { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .m .k { font-family: var(--mono); font-size: 1.35rem; color: var(--tx-hi); font-weight: 500; letter-spacing: -0.02em; }
.hero-meta .m .l { font-size: 0.82rem; color: var(--tx-low); }
.hero-meta .div { width: 1px; background: var(--line); }

/* orbital composition */
.orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: min(460px, 56vh); margin-inline: auto; display: grid; place-items: center; }
.orbit .ring { position: absolute; border-radius: 50%; inset: 0; border: 1.5px solid color-mix(in oklch, var(--accent) 38%, transparent); box-shadow: 0 0 24px -8px color-mix(in oklch, var(--accent) 60%, transparent), 0 0 0 1px color-mix(in oklch, var(--accent) 8%, transparent) inset; }
.orbit .ring.r2 { inset: 13%; border-color: color-mix(in oklch, var(--accent) 48%, transparent); box-shadow: 0 0 30px -8px color-mix(in oklch, var(--accent) 70%, transparent); }
.orbit .ring.r3 { inset: 28%; border-style: dashed; border-color: color-mix(in oklch, var(--accent) 55%, transparent); box-shadow: none; }
.orbit .ring.tilt { inset: 6%; transform: rotateX(70deg); border-color: color-mix(in oklch, var(--accent) 30%, transparent); box-shadow: 0 0 40px -10px color-mix(in oklch, var(--accent) 55%, transparent); }
.orbit .core { width: 18%; height: 18%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--accent), oklch(0.45 0.12 285)); box-shadow: 0 0 60px -6px var(--accent), 0 0 0 1px oklch(1 0 0 / 0.1) inset; z-index: 2; }

/* electrons travel along their ring, carrying their label with them */
.orbit .electron { position: absolute; border-radius: 50%; transform-origin: 50% 50%; z-index: 3; }
.orbit .electron.e1 { inset: 0;   animation: orbit-cw 26s linear infinite; }
.orbit .electron.e2 { inset: 13%; animation: orbit-ccw 34s linear infinite -8s; }
.orbit .electron.e3 { inset: 28%; animation: orbit-cw 42s linear infinite -20s; }

/* pivot sitting on the ring at 12 o'clock; rides around as the electron spins */
.orbit .sat { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); }
/* counter-rotate (same speed/phase, opposite direction) so the unit stays upright */
.orbit .sat-inner { position: relative; transform-origin: 50% 50%; }
.orbit .e1 .sat-inner { animation: orbit-ccw 26s linear infinite; }
.orbit .e2 .sat-inner { animation: orbit-cw 34s linear infinite -8s; }
.orbit .e3 .sat-inner { animation: orbit-ccw 42s linear infinite -20s; }

.orbit .pip { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--c); transform: translate(-50%, -50%); box-shadow: 0 0 22px 0 var(--c), 0 0 0 4px color-mix(in oklch, var(--c) 18%, transparent); }
.orbit .lbl { position: absolute; left: 50%; top: 50%; transform: translate(-50%, 16px); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--tx-mid); white-space: nowrap; text-shadow: 0 1px 8px var(--bg-0); }

/* gentle pause on hover so the labels are easy to read */
.orbit:hover .electron, .orbit:hover .sat-inner { animation-play-state: paused; }
@keyframes orbit-cw  { to { transform: rotate(360deg); } }
@keyframes orbit-ccw { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) {
  .orbit .electron, .orbit .sat-inner, .mark-spin { animation: none !important; }
}

/* ---------------- product showcase ---------------- */
.products { display: grid; gap: var(--s4); }
.product-card {
  --c: var(--accent);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
  background: linear-gradient(180deg, var(--bg-1), oklch(0.17 0.007 285));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s7);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.product-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 0% 0%, color-mix(in oklch, var(--c) 14%, transparent), transparent 42%);
  opacity: 0.55; pointer-events: none;
}
.product-card:hover { border-color: color-mix(in oklch, var(--c) 45%, var(--line)); transform: translateY(-3px); }
.product-card:nth-child(even) { grid-template-columns: 1fr 1fr; }
.product-card:nth-child(even) .pc-media { order: -1; }

.pc-body { position: relative; z-index: 1; max-width: 40ch; }
.pc-tag { display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c); }
.pc-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px -1px var(--c); }
.pc-icon { width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; background: color-mix(in oklch, var(--c) 16%, var(--bg-2)); border: 1px solid color-mix(in oklch, var(--c) 30%, transparent); color: var(--c); margin-bottom: var(--s4); }
.pc-icon svg { width: 24px; height: 24px; }
.product-card h3 { font-size: 1.55rem; letter-spacing: -0.025em; }
.product-card .pc-pos { color: var(--tx-mid); margin: var(--s3) 0 0; font-size: 1.02rem; }
.pc-points { list-style: none; padding: 0; margin: var(--s5) 0 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.pc-points li { font-size: 0.86rem; color: var(--tx-mid); display: flex; align-items: center; gap: var(--s2); }
.pc-points li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--c); }
.pc-actions { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s6); }
.pc-link { display: inline-flex; align-items: center; gap: var(--s2); color: var(--tx-hi); font-weight: 600; font-size: 0.95rem; }
.pc-link:hover { color: var(--c); }
.pc-link-soon { display: inline-flex; align-items: center; gap: var(--s2); color: var(--tx-low); font-weight: 500; font-size: 0.88rem; font-family: var(--mono); cursor: default; }
.pc-rating { font-family: var(--mono); font-size: 0.78rem; color: var(--tx-low); display: inline-flex; align-items: center; gap: var(--s2); }

.pc-media { position: relative; z-index: 1; }
.pc-frame {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 24px 60px -30px oklch(0 0 0 / 0.8);
  transition: border-color 0.4s var(--ease);
}
.product-card:hover .pc-frame { border-color: color-mix(in oklch, var(--c) 35%, var(--line)); }
.pc-frame .pc-shot { background: var(--bg-2); }
.pc-shot {
  width: 100%; aspect-ratio: 16/10; border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, oklch(0.24 0.008 285) 0 2px, transparent 2px 11px),
    var(--bg-2);
  display: grid; place-items: center;
  color: var(--tx-low); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em;
  position: relative; overflow: hidden;
}
.pc-shot::after { content: attr(data-label); opacity: 0.8; }
.browser-bar { position: absolute; top: 0; left: 0; right: 0; height: 30px; background: oklch(0.2 0.007 285); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding-inline: 12px; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-3); }

/* ---------------- pillars ---------------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.pillar { padding: var(--s6) var(--s5); border: 1px solid var(--line); border-radius: var(--r-lg); background: oklch(1 0 0 / 0.012); transition: border-color .3s var(--ease), background .3s var(--ease); }
.pillar:hover { border-color: var(--line-strong); background: oklch(1 0 0 / 0.025); }
.pillar .pi { width: 38px; height: 38px; color: var(--accent); margin-bottom: var(--s5); }
.pillar h4 { font-size: 1.08rem; letter-spacing: -0.01em; }
.pillar p { margin: var(--s3) 0 0; font-size: 0.92rem; color: var(--tx-mid); }
.pillar .note { display: block; margin-top: var(--s3); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--tx-low); }

/* ---------------- trust strip ---------------- */
.trust { border-block: 1px solid var(--line); background: oklch(1 0 0 / 0.012); }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; padding-block: var(--s6); }
.trust .lead { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tx-low); }
.trust .chips { display: flex; gap: var(--s3); flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: var(--s2); padding: 0.5em 0.9em; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 0.84rem; color: var(--tx-mid); background: var(--bg-1); }
.chip svg { width: 15px; height: 15px; color: var(--tx-low); }
.chip b { color: var(--tx-hi); font-weight: 600; }

/* ---------------- future kits ---------------- */
.future { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.future-card { padding: var(--s6); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--bg-1), oklch(0.165 0.007 285)); transition: border-color .3s, background .3s; }
.future-card:hover { background: var(--bg-2); border-color: color-mix(in oklch, var(--accent) 35%, var(--line-strong)); }
.future-card .fk-name { font-family: var(--sans); font-weight: 700; color: var(--tx-hi); font-size: 1.1rem; letter-spacing: -0.01em; display: flex; align-items: center; justify-content: space-between; }
.future-card .fk-name span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--tx-mid); border: 1px solid var(--line-strong); padding: 2px 7px; border-radius: var(--r-pill); }
.future-card p { margin: var(--s3) 0 0; font-size: 0.9rem; color: var(--tx-mid); }

/* ---------------- about ---------------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s8); align-items: start; }
.about-grid h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.about-lede { font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--tx-hi); line-height: 1.35; letter-spacing: -0.015em; font-weight: 500; text-wrap: pretty; }
.about-body p { margin: 0 0 var(--s4); max-width: 56ch; }
.about-body p:last-child { margin-bottom: 0; }
.principles { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; gap: var(--s4); }
.principles li { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); align-items: baseline; padding-top: var(--s4); border-top: 1px solid var(--line); }
.principles .n { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.principles .t b { color: var(--tx-hi); font-weight: 600; }
.principles .t span { display: block; color: var(--tx-low); font-size: 0.9rem; margin-top: 2px; }

/* ---------------- CTA band ---------------- */
.cta-band { text-align: center; }
.cta-band .container { max-width: 760px; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta-band p { margin: var(--s4) auto 0; color: var(--tx-mid); max-width: 46ch; }
.cta-band .hero-actions { justify-content: center; }

/* ---------------- footer ---------------- */
footer { border-top: 1px solid var(--line); padding-block: var(--s8) var(--s6); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s6); }
.foot-brand .brand { margin-bottom: var(--s4); }
.foot-brand p { font-size: 0.9rem; color: var(--tx-low); max-width: 34ch; }
.foot-col h5 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tx-low); margin: 0 0 var(--s4); font-weight: 500; }
.foot-col a { display: block; color: var(--tx-mid); font-size: 0.92rem; padding-block: var(--s2); transition: color 0.2s; }
.foot-col a:hover { color: var(--tx-hi); }
.foot-col a.foot-all { color: var(--accent); font-weight: 600; margin-top: var(--s2); }
.foot-col a.foot-all:hover { color: var(--tx-hi); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line); }
.foot-bottom .meta { font-family: var(--mono); font-size: 0.76rem; color: var(--tx-low); letter-spacing: 0.04em; }

/* ---------------- scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.06s; }
.reveal[data-d="2"] { transition-delay: 0.12s; }
.reveal[data-d="3"] { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .mark-spin { animation: none !important; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .orbit { max-width: min(320px, 46vh); order: -1; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .product-card { grid-template-columns: 1fr; gap: var(--s5); padding: var(--s6); }
  .product-card:nth-child(even) .pc-media { order: 0; }
  .future { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  .nav-links { display: none; }
}
/* short viewports: keep the orbit from dominating the screen */
@media (max-height: 720px) {
  .orbit { max-width: min(360px, 50vh); }
}
@media (max-width: 540px) {
  body { font-size: 1rem; }
  .pillars { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-meta .div { display: none; }
  .pc-actions { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { width: 100%; }
  /* product screenshot collapses to a compact icon instead of a full-width panel */
  .pc-media { order: -1; width: 64px; margin-bottom: var(--s2); }
  .product-card:nth-child(even) .pc-media { order: -1; }
  .pc-media .browser-bar { display: none; }
  .pc-frame { border-radius: var(--r-md); box-shadow: 0 10px 24px -16px oklch(0 0 0 / 0.8); }
  .pc-frame .pc-shot { height: 64px !important; }
}


/* ---------------- production static additions ---------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 0.9rem;
  border-radius: var(--r-pill);
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { left: 12px; }
.nav-links a[aria-current="page"], .foot-col a[aria-current="page"] { color: var(--tx-hi); }
.pc-frame .pc-shot {
  height: 260px;
  border: 0;
  border-radius: 0;
  padding-top: 30px;
}
.page-hero {
  padding-top: clamp(4.25rem, 9vw, 7rem);
  padding-bottom: var(--s7);
}
.page-hero .container { max-width: 920px; }
.page-hero h1 {
  font-size: clamp(2.35rem, 5.2vw, 4.15rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-top: var(--s5);
}
.page-hero p {
  margin: var(--s5) 0 0;
  color: var(--tx-mid);
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  max-width: 62ch;
  text-wrap: pretty;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s6);
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: oklch(1 0 0 / 0.018);
  color: var(--tx-low);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.8rem;
}
.document-section { padding-top: 0; }
.document-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: var(--s6);
  align-items: start;
}
.toc-card, .doc-card, .info-card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--bg-1), oklch(0.17 0.007 285));
  box-shadow: 0 24px 60px -42px oklch(0 0 0 / 0.85);
}
.toc-card {
  position: sticky;
  top: 92px;
  padding: var(--s5);
}
.toc-card h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tx-low);
  font-weight: 500;
  margin: 0 0 var(--s4);
}
.toc-card a {
  display: block;
  color: var(--tx-mid);
  font-size: 0.9rem;
  padding-block: 0.42rem;
  border-top: 1px solid color-mix(in oklch, var(--line) 65%, transparent);
}
.toc-card a:hover { color: var(--tx-hi); }
.doc-card { padding: clamp(1.5rem, 4vw, 3rem); }
.prose { max-width: 74ch; }
.prose h2 {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  margin: var(--s7) 0 var(--s4);
  padding-top: var(--s2);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.08rem;
  margin: var(--s5) 0 var(--s3);
  color: var(--tx-hi);
}
.prose p, .prose li { color: var(--tx-mid); font-size: 1rem; }
.prose p { margin: 0 0 var(--s4); }
.prose ul { margin: var(--s3) 0 var(--s5); padding-left: 1.2rem; }
.prose li { margin: 0.45rem 0; }
.prose strong { color: var(--tx-hi); font-weight: 700; }
.prose a { color: var(--accent); font-weight: 700; }
.prose a:hover { color: var(--tx-hi); }
.callout {
  margin: var(--s5) 0;
  padding: var(--s5);
  border: 1px solid color-mix(in oklch, var(--accent) 35%, var(--line));
  border-radius: var(--r-lg);
  background: color-mix(in oklch, var(--accent) 8%, transparent);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  margin-top: var(--s6);
}
.info-card {
  padding: var(--s6);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.info-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.info-card h2, .info-card h3 {
  font-size: 1.12rem;
  margin: 0 0 var(--s3);
}
.info-card p { margin: 0; color: var(--tx-mid); font-size: 0.94rem; }
.info-card .pc-tag { margin-bottom: var(--s4); }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s5);
  color: var(--tx-hi);
  font-weight: 700;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 0.72rem 1rem;
  background: oklch(1 0 0 / 0.025);
}
.contact-email:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 920px) {
  .document-grid { grid-template-columns: 1fr; }
  .toc-card { position: relative; top: auto; }
  .card-grid { grid-template-columns: 1fr; }
}
