/* ============================================================================
   Halo — techautomationpartners.github.io/halo
   Dark-first. No framework, no CDN, no external fonts, no JavaScript.
   ========================================================================= */

/* ---------- tokens: dark (default) ---------------------------------------- */
:root {
  --bg-0:   #0B0D12;
  --bg-1:   #161A24;
  --bg-2:   #1E2432;
  --text:   #E8EAF0;
  --muted:  #9AA3B8;

  /* fixed brand stops — used for gradients and rules in both schemes */
  --coral:  #FF6A5C;
  --violet: #966CFF;

  /* text-safe accents (checked >= 4.5:1 against --bg-0 and --bg-1) */
  --accent-ink:  #FF6A5C;   /* 6.91 on bg-0, 6.19 on bg-1 */
  --accent-ink2: #B79BFF;   /* 8.46 on bg-0, 7.58 on bg-1 */
  --on-accent:   #0B0D12;   /* ink on the coral→violet gradient: 5.45 worst case */

  /* gradient used as TEXT — must stay legible, so light mode darkens both stops */
  --grad-text-a: #FF6A5C;
  --grad-text-b: #B79BFF;

  --line:        rgba(232, 234, 240, 0.10);
  --line-strong: rgba(232, 234, 240, 0.20);
  --code-bg:     rgba(232, 234, 240, 0.06);

  --glow-a: rgba(255, 106, 92, 0.30);
  --glow-b: rgba(150, 108, 255, 0.32);
  --glow-strength: 1;
  --sheen: rgba(232, 234, 240, 0.05);
  --bubble: #161A24;          /* the webcam bubble interior — reads as a lens, not a hole */
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 44px);
  --section-y: clamp(76px, 10vw, 132px);
  --radius: 14px;
}

/* ---------- tokens: light ------------------------------------------------- */
@media (prefers-color-scheme: light) {
  :root {
    --bg-0:   #F2F3F7;
    --bg-1:   #FFFFFF;
    --bg-2:   #E7E9F0;
    --text:   #0E1117;
    --muted:  #4A5266;

    --accent-ink:  #B8382A;   /* 5.21 on bg-0, 5.77 on bg-1, 4.76 on bg-2 */
    --accent-ink2: #5B34C7;   /* 6.86 on bg-0, 7.61 on bg-1, 6.27 on bg-2 */
    --on-accent:   #0B0D12;

    --grad-text-a: #B8382A;
    --grad-text-b: #5B34C7;

    --line:        rgba(14, 17, 23, 0.12);
    --line-strong: rgba(14, 17, 23, 0.24);
    --code-bg:     rgba(14, 17, 23, 0.05);

    --glow-a: rgba(255, 106, 92, 0.30);
    --glow-b: rgba(150, 108, 255, 0.30);
    --glow-strength: 0.34;
    --sheen: rgba(14, 17, 23, 0.03);
    --bubble: #E7E9F0;
    --shadow: 0 24px 50px -32px rgba(11, 13, 18, 0.35);
  }
}

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

/* No overflow-x guard on html/body: it propagates to the viewport and can break
   the sticky header. Every wide thing is clipped or scrolled by its own wrapper
   instead — .hero (overflow: clip), .table-wrap and .code (overflow-x: auto). */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.68;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, ul, ol { margin: 0; }

a { color: var(--accent-ink); text-decoration-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--accent-ink2);
  outline-offset: 3px;
  border-radius: 5px;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.08em 0.36em;
}

/* ---------- utilities ----------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--bg-1); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 10px 16px; text-decoration: none;
  transition: top 0.15s ease;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.grad {
  background: linear-gradient(105deg, var(--grad-text-a), var(--grad-text-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- header -------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-0) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex; align-items: center; gap: 28px;
  height: 62px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 620;
  letter-spacing: -0.02em; margin-right: auto;
}

.brand-mark {
  width: 17px; height: 17px; border-radius: 50%;
  background: conic-gradient(from 315deg, var(--coral), var(--violet) 50%, var(--coral));
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%);
  mask: radial-gradient(circle, transparent 46%, #000 47%);
  flex: none;
}

.brand-word { font-size: 1.05rem; }

.nav { display: flex; gap: 26px; }
.nav a {
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; letter-spacing: -0.005em;
}
.nav a:hover { color: var(--text); }

/* ---------- buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 0.945rem; font-weight: 560;
  letter-spacing: -0.012em;
  padding: 13px 22px; border-radius: 10px;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: linear-gradient(105deg, var(--coral), var(--violet));
  color: var(--on-accent);
  box-shadow: 0 10px 34px -16px var(--glow-b);
}
.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-1); border-color: var(--muted); }

.btn-sm { padding: 8px 15px; font-size: 0.875rem; border-radius: 8px; }

/* ---------- hero ---------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 96px) clamp(64px, 9vw, 116px);
  overflow: clip;
}

/* ambient wash behind the whole hero, keyed to the ring's position */
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto auto;
  width: min(900px, 92vw); aspect-ratio: 1;
  background:
    radial-gradient(circle at 62% 42%, var(--glow-b), transparent 62%),
    radial-gradient(circle at 42% 62%, var(--glow-a), transparent 58%);
  opacity: calc(0.55 * var(--glow-strength));
  filter: blur(40px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

h1 {
  font-size: clamp(2.6rem, 7.4vw, 4.75rem);
  line-height: 0.97;
  font-weight: 700;
  letter-spacing: -0.043em;
  margin-bottom: 26px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.0625rem, 0.98rem + 0.42vw, 1.28rem);
  line-height: 1.62;
  max-width: 34em;
}

.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 34px;
}

.specs {
  list-style: none; padding: 0;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 18px 20px;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.specs span {
  display: block;
  font-family: var(--sans);
  font-size: 1.06rem;
  font-weight: 620;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 3px;
}

/* ---------- hero visual: the ring over a screen --------------------------- */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.94;
  min-width: 0;
}

.screen {
  position: absolute; top: 0; right: 0;
  width: 84%; aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1) 60%);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screen-bar {
  height: 26px;
  display: flex; align-items: center; justify-content: flex-end;
  gap: 9px; padding-inline: 10px;
  background: var(--sheen);
  border-bottom: 1px solid var(--line);
}
.screen-time {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.menubar-icon {
  width: 14px; height: 14px; opacity: 0.9;
}
@media (prefers-color-scheme: light) {
  /* the menu-bar glyph ships as white pixels; invert it on a light surface */
  .menubar-icon { filter: invert(1); opacity: 0.75; }
}

.screen-body { position: relative; height: calc(100% - 26px); padding: 14px; }
.sk {
  position: absolute; display: block;
  background: currentColor; color: var(--muted);
  opacity: 0.16; border-radius: 4px;
}
.sk-a { left: 14px; top: 14px;  width: 34%; height: 9px; opacity: 0.42; }
.sk-b { left: 14px; top: 33px;  width: 62%; height: 7px; opacity: 0.22; }
.sk-c { left: 14px; top: 48px;  width: 48%; height: 7px; opacity: 0.22; }
.sk-d { left: 14px; bottom: 14px; width: 30%; height: 26%; opacity: 0.14; border-radius: 6px; }

/* The signature: the halo ring IS the circular webcam bubble, drawn in CSS and
   sitting over the screen it is being composited onto. Three layers paint in DOM
   order — ::before (glow), .ring-core (bubble interior), ::after (the ring band).
   The mask lives on ::after only; masking .ring itself would clip the glow and
   the bubble along with it. */
/* Sized like an actual webcam bubble — it overlaps the screen's lower-left corner
   rather than eclipsing it. At 66% it read as a dominant orb and the product
   metaphor (a bubble composited ONTO a screen) was lost. */
.ring {
  position: absolute; left: 2%; bottom: 2%;
  width: 38%; aspect-ratio: 1;
  border-radius: 50%;
}

/* glow: a blurred, unmasked duplicate of the gradient */
.ring::before {
  content: "";
  position: absolute; inset: -7%;
  border-radius: 50%;
  background: conic-gradient(from 315deg, var(--coral), var(--violet) 50%, var(--coral));
  filter: blur(26px);
  opacity: calc(0.8 * var(--glow-strength));
}

/* the bubble interior — what the circular mask actually frames */
.ring-core {
  position: absolute; inset: 13.5%;
  border-radius: 50%;
  overflow: hidden;               /* clips the shoulders to the circle */
  background:
    radial-gradient(circle at 34% 26%, var(--sheen), transparent 58%),
    var(--bubble);
  border: 1px solid var(--line);
}

/* A head-and-shoulders suggestion so the bubble reads as a camera feed rather
   than an empty disc. Deliberately low-contrast — it is a hint, not an avatar. */
.ring-core::before {          /* head */
  content: "";
  position: absolute;
  left: 50%; top: 26%;
  width: 30%; aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: currentColor; color: var(--muted);
  opacity: 0.30;
}
.ring-core::after {           /* shoulders */
  content: "";
  position: absolute;
  left: 50%; bottom: -18%;
  width: 68%; aspect-ratio: 1 / 0.72;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0;
  background: currentColor; color: var(--muted);
  opacity: 0.30;
}

/* the ring band itself */
.ring::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 315deg, var(--coral), var(--violet) 50%, var(--coral));
  -webkit-mask: radial-gradient(circle, transparent 61%, #000 61.8%);
  mask: radial-gradient(circle, transparent 61%, #000 61.8%);
  animation: ring-spin 34s linear infinite;
}

@keyframes ring-spin { to { transform: rotate(360deg); } }

/* ---------- section scaffolding ------------------------------------------- */
.section { padding-block: var(--section-y); }

.section-inset {
  background: color-mix(in srgb, var(--bg-1) 55%, var(--bg-0));
  border-block: 1px solid var(--line);
}

.sec-head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head-flush { margin-bottom: 0; }

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  line-height: 1.06;
  font-weight: 680;
  letter-spacing: -0.033em;
}

.sec-lead {
  color: var(--muted);
  margin-top: 18px;
  max-width: 40em;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 620;
  letter-spacing: -0.018em;
  line-height: 1.35;
}

/* ---------- feature cards ------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr));
  gap: 14px;
}

.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: border-color 0.18s ease;
}
.card:hover { border-color: var(--line-strong); }

.card-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink2);
  margin-bottom: 14px;
}

.card h3 { margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 0.965rem; line-height: 1.62; }

/* ---------- what it isn't ------------------------------------------------- */
.not-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.not-list {
  list-style: none; padding: 0;
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.not-list li {
  border-bottom: 1px solid var(--line);
  padding: 13px 0 13px 26px;
  position: relative;
  font-family: var(--mono);
  font-size: 0.83rem;
  letter-spacing: -0.005em;
  color: var(--text);
}
.not-list li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 13px; height: 1px;
  background: var(--accent-ink);
}

.not-note {
  color: var(--muted);
  margin-top: 26px;
  max-width: 38em;
}

/* ---------- pipeline ------------------------------------------------------ */
.pipeline {
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.stage { position: relative; padding-top: 30px; }

/* the rail: one hairline running behind the stage numbers */
.stage::before {
  content: "";
  position: absolute; top: 6px; left: 0; right: -26px;
  height: 1px;
  background: var(--line-strong);
}
.stage:last-child::before { right: 0; }

.stage-num {
  position: absolute; top: -3px; left: 0;
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
  background: var(--bg-0);
  padding-right: 12px;
}

.stage-api {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: -0.01em;
  color: var(--accent-ink2);
  margin-bottom: 12px;
}

.stage h3 { margin-bottom: 8px; }
.stage p { color: var(--muted); font-size: 0.94rem; line-height: 1.6; }
.stage code { font-size: 0.84em; }

.pipeline-note {
  margin-top: clamp(38px, 5vw, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 1.02rem;
  max-width: 40em;
}

/* ---------- comparison table ---------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-1);
  -webkit-overflow-scrolling: touch;
}

.cmp {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.cmp th, .cmp td {
  text-align: left;
  padding: 15px 20px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.cmp tbody tr:last-child th,
.cmp tbody tr:last-child td { border-bottom: 0; }

.cmp thead th {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding-block: 14px;
  border-bottom-color: var(--line-strong);
}

.cmp tbody th {
  font-weight: 560;
  color: var(--text);
  letter-spacing: -0.012em;
  width: 30%;
}

.cmp td { color: var(--muted); }

/* the Halo column is marked, not weighted — every honest loss is tagged too */
.cmp .col-halo {
  background: color-mix(in srgb, var(--violet) 7%, transparent);
  color: var(--text);
}
.cmp thead .col-halo {
  color: var(--text);
  box-shadow: inset 0 2px 0 0 var(--coral);
}

.win {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent-ink) 45%, transparent);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 8px;
  white-space: nowrap;
  vertical-align: 1px;
}

.fineprint {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.6;
  max-width: 48em;
}

/* ---------- install ------------------------------------------------------- */
.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.reqs {
  list-style: none; padding: 0;
  margin-top: 30px;
  display: grid; gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}
.reqs span { color: var(--text); font-weight: 560; }

.code {
  margin: 0;
  background: var(--bg-0);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 2;
  color: var(--text);
  -webkit-overflow-scrolling: touch;
}
.code code {
  background: none; border: 0; padding: 0;
  font-size: inherit; white-space: pre;
}

.steps { display: grid; gap: 18px; margin-top: 26px; }
.steps p { color: var(--muted); font-size: 0.955rem; }
.steps b { color: var(--text); font-weight: 600; }

/* ---------- faq ----------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.faq-list { border-top: 1px solid var(--line); }

.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 40px 19px 0;
  position: relative;
  font-weight: 560;
  font-size: 1.02rem;
  letter-spacing: -0.018em;
  color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--accent-ink);
  line-height: 1;
}
.faq-list details[open] summary::after { content: "\2212"; }

.faq-list summary:hover { color: var(--accent-ink); }

.faq-list details p {
  color: var(--muted);
  font-size: 0.965rem;
  padding-bottom: 22px;
  padding-right: 40px;
  max-width: 46em;
  margin-top: -3px;
}

/* ---------- license ------------------------------------------------------- */
.license-block { max-width: 44rem; }  /* child of .wrap — must not itself be .wrap, or margin-inline:auto centers it */
.license-copy { color: var(--muted); margin-top: 20px; }

/* ---------- footer -------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 60px);
  background: var(--bg-0);
}

.foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px 40px;
  align-items: center;
}

.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { border-radius: 9px; }
.foot-word { font-weight: 620; letter-spacing: -0.02em; }
.foot-sub { color: var(--muted); font-size: 0.875rem; }

.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-self: end; }
.foot-nav a { color: var(--muted); text-decoration: none; font-size: 0.875rem; }
.foot-nav a:hover { color: var(--text); }

.foot-legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

/* ---------- responsive ---------------------------------------------------- */
@media (max-width: 980px) {
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 26px; }
  .stage:nth-child(2)::before { right: 0; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .not-grid,
  .install-grid,
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-head-flush { margin-bottom: 4px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .head-inner { gap: 16px; }
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
  .foot-nav { justify-self: start; }
}

@media (max-width: 620px) {
  .pipeline { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  /* stacked: every stage keeps its own rule, the sequence reads top to bottom */
  .stage::before { right: 0; }
  .cmp { min-width: 540px; }
}

@media (max-width: 420px) {
  h1 { letter-spacing: -0.035em; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* scoped to .cta-row: the header button is a flex child and would stretch */
  .cta-row .btn { width: 100%; }
  .cta-row { gap: 10px; }
}

/* ---------- motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn-primary:hover { transform: none; }
}

/* ---------- print --------------------------------------------------------- */
@media print {
  .site-head, .hero-visual, .skip { display: none; }
  body { background: #fff; color: #000; }
  .faq-list details p { display: block; }
}

/* ---------- install options ---------------------------------------------- */
/* Three distinct blocks rather than prose: the install path a visitor needs
   depends entirely on who they are, and burying Homebrew inside a paragraph
   made the fastest route the hardest one to find. */
.opt {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(20px, 2.6vw, 28px);
  background: var(--bg-1);
  margin-bottom: 18px;
}
.opt:last-of-type { margin-bottom: 0; }

.opt-head {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 10px;
}
.opt-num {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--muted); letter-spacing: 0.08em;
}
.opt-head h3 {
  margin: 0; font-size: 1.16rem; letter-spacing: -0.02em;
}
.opt-tag {
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.1em; color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 3px 9px;
}
.opt-lead { margin: 0 0 14px; color: var(--muted); }
.opt-cta { margin: 0 0 14px; }
.opt-steps { margin: 14px 0 0; padding-left: 1.2em; color: var(--muted); }
.opt-steps li { margin-bottom: 6px; }
.opt-note { margin: 14px 0 0; font-size: 0.93rem; color: var(--muted); }
.opt-after { margin-top: 22px; }

@media (max-width: 640px) {
  .opt-head { gap: 8px; }
  .opt-tag { display: none; }   /* the label is decorative; the heading carries it */
}
