/* ============================================================
   FreeFlow landing page
   Dark instrument panel: hairlines, mono metadata, one accent.
   ============================================================ */

:root {
  --bg:        #0A0A0B;
  --bg-2:      #111113;
  --bg-3:      #171719;
  --line:      #232326;
  --line-2:    #34343A;
  --ink:       #F5F4F0;
  --muted:     #8E8E88;
  --accent:    #FF5C1A;
  --accent-2:  #FF8A4C;

  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --rail: 190px;
  --gut: 28px;
  --max: 1180px;

  --r: 10px;
  --r-lg: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: var(--accent); color: #0A0A0B; }

/* Focus is never removed, only restyled. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #0A0A0B;
  padding: 12px 18px; font: 600 14px/1 var(--mono);
}
.skip:focus { left: 12px; top: 12px; }

.ic {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- shared type ---------- */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

.wrap--split {
  display: grid; gap: 48px 72px;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}

.eyebrow {
  font: 500 11px/1 var(--mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.eyebrow b { color: var(--accent); font-weight: 700; }
.eyebrow s { color: var(--line-2); text-decoration: none; }

.h2 {
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -.032em;
  font-weight: 600;
  margin: 0 0 24px;
}
.h2--center { text-align: center; }
.accent { color: var(--accent); }

.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink); margin: 0 0 20px; }
.lead--center {
  text-align: center; max-width: 62ch; margin-inline: auto;
  color: var(--muted);
}

.sec { padding: clamp(96px, 14vh, 168px) 0; position: relative; }
.sec__body p { color: var(--muted); margin: 0 0 18px; max-width: 62ch; }
.sec__head--center { text-align: center; }
.sec__head--center .eyebrow { justify-content: center; }

.pull {
  color: var(--ink) !important;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.35; letter-spacing: -.02em;
  border-left: 2px solid var(--accent);
  padding-left: 20px; margin: 32px 0 !important;
}

/* strong is a real signal here, so it gets weight and colour */
strong { font-weight: 600; color: var(--ink); }
.sec__body p strong, .claim p strong, details p strong { color: var(--ink); }

/* raw vs clean, side by side */
.vs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; margin: 28px 0;
}
.vs__side { background: var(--bg-2); padding: 18px 20px 20px; }
.vs__side--good { background: var(--bg-3); }
.vs__tag {
  display: block; font: 500 10px/1 var(--mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--line-2); margin-bottom: 12px;
}
.vs__side--good .vs__tag { color: var(--accent); }
.vs__side p {
  margin: 0 !important; font-size: 14.5px; line-height: 1.5;
  color: var(--muted) !important;
}
.vs__side--good p { color: var(--ink) !important; }

.strike { list-style: none; padding: 0; margin: 28px 0 0; }
.strike li {
  font: 400 14px/1.5 var(--mono);
  color: var(--muted);
  padding: 11px 0 11px 26px;
  border-top: 1px solid var(--line);
  position: relative;
}
.strike li::before {
  content: "—"; position: absolute; left: 0; color: var(--line-2);
}
.strike li:last-child { border-bottom: 1px solid var(--line); color: var(--accent); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 15px/1 var(--sans);
  padding: 14px 20px; min-height: 46px;
  border-radius: var(--r);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
  cursor: pointer;
}
.btn .ic { font-size: 17px; }
.btn--solid { background: var(--ink); color: #0A0A0B; }
.btn--solid:hover { background: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--muted); background: var(--bg-2); }
.btn--lg { padding: 17px 26px; font-size: 16px; min-height: 54px; }
.btn:active { transform: scale(.98); }

/* copy-the-command control */
.cmd {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 14px; min-height: 46px;
  cursor: pointer; color: var(--ink);
  font: 400 13.5px/1 var(--mono);
  transition: border-color .18s ease, background .18s ease;
  max-width: 100%;
}
.cmd:hover { border-color: var(--line-2); background: var(--bg-3); }
.cmd__prompt { color: var(--accent); }
.cmd code { font: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd__copy {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  border-left: 1px solid var(--line); padding-left: 12px; margin-left: 2px;
}
.cmd.is-copied .cmd__copy { color: var(--accent); }

/* ---------- nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gut);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__mark {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 16px/1 var(--sans); letter-spacing: -.02em; text-decoration: none;
  margin-right: auto;
}
.nav__bars { display: inline-flex; align-items: center; gap: 2px; height: 16px; }
.nav__bars i {
  width: 2px; background: var(--accent); border-radius: 1px; display: block;
  animation: barpulse 1.4s ease-in-out infinite;
}
.nav__bars i:nth-child(1) { height: 6px;  animation-delay: 0s; }
.nav__bars i:nth-child(2) { height: 11px; animation-delay: .12s; }
.nav__bars i:nth-child(3) { height: 16px; animation-delay: .24s; }
.nav__bars i:nth-child(4) { height: 10px; animation-delay: .36s; }
.nav__bars i:nth-child(5) { height: 5px;  animation-delay: .48s; }
@keyframes barpulse { 0%,100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

.nav__links { display: flex; gap: 26px; }
.nav__links a {
  font: 400 13px/1 var(--mono); color: var(--muted);
  text-decoration: none; letter-spacing: .02em;
  padding: 8px 0;
  transition: color .18s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__gh { padding: 9px 14px; min-height: 38px; font-size: 13px; }

/* ---------- left rail ---------- */

.rail {
  position: fixed; left: 22px; top: 50%; transform: translateY(-50%);
  z-index: 40; display: none;
}
.rail ol { list-style: none; margin: 0; padding: 0; }
.rail li {
  font: 400 11px/1 var(--mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--line-2);
  padding: 9px 0 9px 14px;
  border-left: 1px solid var(--line);
  transition: color .3s ease, border-color .3s ease;
  display: flex; gap: 8px;
}
.rail li span { opacity: .55; }
.rail li.is-on { color: var(--accent); border-left-color: var(--accent); }

@media (min-width: 1360px) { .rail { display: block; } }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(140px, 22vh, 220px) 0 clamp(90px, 12vh, 140px);
  overflow: hidden;
}
/* Hairline grid instead of a glow. Drafting paper, not a lava lamp. */
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: .5;
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 92%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero__h1 {
  font-size: clamp(42px, 7.4vw, 92px);
  line-height: .98; letter-spacing: -.042em; font-weight: 600;
  margin: 0 0 28px; max-width: 17ch;
}
.hero__h1 .line { display: block; }
.hero__h1 .line--accent { color: var(--accent); }

/* words are wrapped by JS for the dictation reveal */
.hero__h1 .w { display: inline-block; }

.hero__sub {
  font-size: clamp(17px, 2vw, 20px); color: var(--muted);
  max-width: 56ch; margin: 0 0 38px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 64px; }

.specs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; margin: 0;
}
.specs > div { background: var(--bg); padding: 18px 20px; }
.specs dt {
  font: 400 10.5px/1 var(--mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.specs dd { margin: 0; font: 500 16px/1.2 var(--sans); letter-spacing: -.01em; }

/* ---------- demo ---------- */

.demo { height: 420vh; position: relative; }
.demo__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center;
  padding: 76px 0 20px; /* clears the fixed nav */
  overflow: hidden;
}
.demo__head { text-align: center; margin-bottom: clamp(16px, 3vh, 34px); }
.demo__head .eyebrow { justify-content: center; margin-bottom: clamp(10px, 2vh, 22px); }
.demo__head .h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 4.4vh + 1vw, 56px);
}
.demo__hint {
  font: 400 11px/1 var(--mono); letter-spacing: .16em;
  text-transform: uppercase; color: var(--line-2); margin: 0;
}

.mock {
  position: relative;
  max-width: 620px; margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
  overflow: hidden;
}
.mock__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dot--r { background: #FF5F57; } .dot--y { background: #FEBC2E; } .dot--g { background: #28C840; }
.mock__title {
  font: 400 12px/1 var(--mono); color: var(--muted);
  margin-left: 10px;
}
.mock__body {
  padding: clamp(14px, 2.4vh, 22px);
  min-height: clamp(190px, 30vh, 260px);
  display: flex; flex-direction: column;
}

.bubble {
  font-size: 14.5px; padding: 10px 14px; border-radius: 16px;
  max-width: 78%; margin-bottom: 18px;
}
.bubble--them { background: var(--bg-3); color: var(--muted); border-bottom-left-radius: 5px; }

.mock__field {
  margin-top: auto; position: relative;
  border: 1px solid var(--line-2); border-radius: 12px;
  padding: 13px 15px; min-height: 92px;
  background: var(--bg);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.mock__field.is-focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,92,26,.14);
}
.mock__text {
  margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap;
  min-height: 1.5em;
}
.mock__text .fill { color: var(--muted); }
.mock__ph {
  position: absolute; left: 15px; top: 13px;
  font-size: 15px; color: var(--line-2); pointer-events: none;
  transition: opacity .2s ease;
}
.caret {
  display: none; width: 2px; height: 1.05em; background: var(--accent);
  vertical-align: text-bottom; margin-left: 1px;
  animation: blink 1.05s steps(1) infinite;
}
.caret.is-on { display: inline-block; }
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

.mock__hud {
  position: absolute; left: 50%; bottom: 16px; translate: -50% 0;
  display: flex; align-items: center; gap: 8px;
  background: rgba(28,28,30,.94);
  border: .5px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 5px 8px;
  opacity: 0; scale: .9;
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
}
.hud__x, .hud__check {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 9px; line-height: 1;
}
.hud__x { background: rgba(255,255,255,.16); color: #fff; }
.hud__check { background: #fff; color: #1C1C1E; }
.hud__wave { display: block; width: 46px; height: 13px; }

.pointer {
  position: absolute; left: 0; top: 0; z-index: 5;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.6));
  opacity: 0; pointer-events: none;
}
.keycap {
  position: absolute; right: 20px; top: 62px; z-index: 5;
  font: 500 11px/1 var(--mono); text-transform: lowercase;
  padding: 8px 11px; border-radius: 7px;
  background: var(--bg-3); border: 1px solid var(--line-2);
  color: var(--muted);
  opacity: 0;
}
.keycap.is-down {
  background: var(--accent); border-color: var(--accent); color: #0A0A0B;
  box-shadow: 0 0 22px rgba(255,92,26,.5);
}

.demo__legend {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 26px;
}
.legend {
  font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--line-2); transition: color .3s ease;
}
.legend--on { color: var(--accent); }
.legend__arrow { font-size: 14px; color: var(--line-2); }

/* ---------- feature strip ---------- */

.box { position: relative; }
.box__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 76px 0 20px;
  overflow: hidden;
}
.box__head { margin-bottom: clamp(18px, 3vh, 34px); }
.box__head .h2 { font-size: clamp(26px, 4.4vh + 1vw, 56px); margin-bottom: 0; }

.strip { display: flex; gap: 22px; padding-left: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); will-change: transform; }
.card {
  flex: 0 0 340px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 24px 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  min-height: min(430px, 58vh);
  /* the screenshot is meant to run off the bottom edge of the card */
  max-height: min(560px, 74vh);
}
.card__ic { font-size: 20px; color: var(--accent); margin-bottom: 16px; }
.card h3 { font-size: 19px; letter-spacing: -.02em; margin: 0 0 8px; font-weight: 600; }
.card p { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.card img {
  margin-top: auto; border-radius: 8px 8px 0 0;
  border: 1px solid var(--line); border-bottom: 0;
  box-shadow: 0 -8px 30px -12px rgba(0,0,0,.8);
}
.card code { font: 400 .92em var(--mono); color: var(--accent-2); }
.keys { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-bottom: 24px; }
kbd {
  font: 400 12px/1 var(--mono); color: var(--ink);
  background: var(--bg-3); border: 1px solid var(--line-2);
  border-bottom-width: 2px; border-radius: 6px; padding: 8px 10px;
}

/* ---------- local / pipeline ---------- */

.sec--local { border-top: 1px solid var(--line); }

.pipe { position: relative; margin: 60px auto 0; max-width: 900px; }
.pipe__svg { width: 100%; height: auto; display: block; overflow: visible; }
.pipe__track { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.pipe__live  { fill: none; stroke: var(--accent); stroke-width: 2; }
.pipe__dot   { fill: var(--accent); }
.pipe__edge  { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 5 5; }

.pipe__steps {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 74%;
}
.pipe__steps li { display: flex; flex-direction: column; gap: 3px; }
.pipe__steps b { font-size: 15px; font-weight: 600; }
.pipe__steps span { font: 400 11px/1 var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.pipe__edgelabel {
  position: absolute; right: 0; top: 0;
  font: 400 10.5px/1 var(--mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--line-2);
  margin: 0; text-align: right; max-width: 22%;
}

.claims {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; margin-top: 84px;
}
.claim { background: var(--bg); padding: 30px 26px; }
.claim .ic { font-size: 20px; color: var(--accent); margin-bottom: 18px; }
.claim h3 { font-size: 17px; letter-spacing: -.015em; margin: 0 0 8px; font-weight: 600; line-height: 1.3; }
.claim p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- platform switch ---------- */

.plat {
  display: flex; gap: 6px; justify-content: center;
  margin: 44px auto 0; padding: 5px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 999px; width: fit-content;
}
.plat__btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 14px/1 var(--sans); color: var(--muted);
  background: transparent; border: 0; border-radius: 999px;
  padding: 11px 20px; min-height: 42px; cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
.plat__btn:hover { color: var(--ink); }
.plat__btn[aria-selected="true"] { color: #0A0A0B; background: var(--ink); }
.plat__btn .ic { font-size: 16px; stroke-width: 1.9; }

/* ---------- download card ---------- */

.dl {
  max-width: 860px; margin: 28px auto 0;
  display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9);
}
.dl__main { padding: 34px 32px; border-right: 1px solid var(--line); }
.dl__tag {
  font: 400 11.5px/1 var(--mono); letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 16px;
}
.dl__tag s { color: var(--line-2); text-decoration: none; margin: 0 4px; }
.dl__h { font-size: 24px; letter-spacing: -.02em; font-weight: 600; margin: 0 0 10px; }
.dl__sub { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0 0 24px; }
.dl__sub b { color: var(--ink); font-weight: 600; }
.dl__btn { width: 100%; justify-content: center; }
.dl__note {
  font-size: 12.5px; line-height: 1.6; color: var(--muted);
  margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line);
}
.dl__note b { color: var(--ink); font-weight: 600; }

.dl__steps {
  margin: 0; padding: 34px 32px; list-style: none;
  counter-reset: dl; background: var(--bg-3);
}
.dl__steps li {
  position: relative; counter-increment: dl;
  padding: 0 0 18px 34px; font-size: 14px; line-height: 1.55; color: var(--muted);
}
.dl__steps li:last-child { padding-bottom: 0; }
.dl__steps li::before {
  content: counter(dl); position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font: 500 11.5px/1 var(--mono); color: var(--accent);
  border: 1px solid var(--line-2);
}
.dl__steps b { color: var(--ink); font-weight: 600; }

/* The terminal now sits under the switch, so it needs the same gap as the card. */
#install .term { margin-top: 28px; }
[data-plat-panel][hidden] { display: none; }

@media (max-width: 720px) {
  .dl { grid-template-columns: 1fr; }
  .dl__main { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 22px; }
  .dl__steps { padding: 26px 22px; }
  .plat { width: 100%; }
  .plat__btn { flex: 1; justify-content: center; }
}

/* ---------- terminal ---------- */

.term {
  max-width: 860px; margin: 52px auto 0;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9);
}
.term__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-3);
  flex-wrap: wrap;
}
.term__title { font: 400 12px/1 var(--mono); color: var(--muted); margin-left: 10px; }
.term__tabs { display: flex; gap: 4px; margin-left: auto; }
.term__tabs button {
  font: 400 12px/1 var(--mono); color: var(--muted);
  background: transparent; border: 1px solid transparent;
  padding: 8px 12px; border-radius: 7px; cursor: pointer; min-height: 34px;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.term__tabs button:hover { color: var(--ink); }
.term__tabs button[aria-selected="true"] {
  color: var(--accent); border-color: var(--line-2); background: var(--bg-2);
}
.term__body {
  font: 400 13.5px/1.85 var(--mono);
  padding: 22px; min-height: 300px;
  white-space: pre-wrap; word-break: break-word;
}
.term__body .p { color: var(--accent); }
.term__body .c { color: var(--ink); }
.term__body .o { color: var(--muted); }
.term__body .ok { color: #4ADE80; }
.term__cursor {
  display: inline-block; width: 8px; height: 1em; background: var(--accent);
  vertical-align: text-bottom; animation: blink 1.05s steps(1) infinite;
}
.term__foot {
  text-align: center; font-size: 14px; color: var(--muted);
  margin: 22px auto 0; max-width: 60ch;
}
.term__foot a { color: var(--accent); text-underline-offset: 3px; }

/* when the install didn't end with an app */
.fix {
  max-width: 860px; margin: 28px auto 0; padding: 24px 22px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  scroll-margin-top: 90px;
}
.fix__h { font-size: 18px; letter-spacing: -.01em; font-weight: 600; margin: 0 0 8px; }
.fix__p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; }
.fix__p b { color: var(--ink); font-weight: 600; }
.fix__p code { font: 400 12.5px var(--mono); color: var(--ink); }
.cmd--wrap { display: flex; width: 100%; align-items: flex-start; text-align: left; background: var(--bg-3); }
.cmd--wrap code { white-space: normal; word-break: break-word; line-height: 1.6; flex: 1; }
.cmd--wrap .cmd__prompt { line-height: 1.6; }
.cmd--wrap .cmd__copy { align-self: center; }

/* ---------- faq ---------- */

details {
  border-top: 1px solid var(--line);
}
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none;
  padding: 20px 34px 20px 0; position: relative;
  font-size: 17px; font-weight: 500; letter-spacing: -.012em;
  min-height: 60px; display: flex; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 11px; height: 11px; margin-top: -6px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  rotate: 45deg; transition: rotate .25s ease, border-color .2s ease;
}
details[open] summary::after { rotate: -135deg; border-color: var(--accent); }
details p { color: var(--muted); font-size: 15.5px; margin: 0 0 22px; max-width: 66ch; }

/* ---------- close + footer ---------- */

.close { padding: clamp(110px, 16vh, 190px) 0; border-top: 1px solid var(--line); text-align: center; }
.close__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.foot { border-top: 1px solid var(--line); padding: 40px 0 120px; }
.foot__in p { margin: 0 0 8px; font: 400 12.5px/1.6 var(--mono); color: var(--muted); }
.foot__in b { color: var(--ink); font-weight: 500; }
.foot__in s { color: var(--line-2); text-decoration: none; margin: 0 6px; }
.foot__fine { max-width: 60ch; color: var(--line-2) !important; }
.foot a { color: var(--accent); }

/* ---------- persistent pill ---------- */

.pill {
  position: fixed; left: 50%; bottom: 22px; translate: -50% 0;
  z-index: 55;
  display: flex; align-items: center; gap: 9px;
  background: rgba(23,23,25,.92);
  border: .5px solid rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  border-radius: 999px; padding: 7px 14px;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.8);
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.pill.is-on { opacity: 1; }
.pill canvas { display: block; width: 46px; height: 13px; }
.pill__label {
  font: 400 10.5px/1 var(--mono); letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
}

/* Touch: every control clears the 44px minimum */
@media (pointer: coarse) {
  .nav__gh { min-height: 44px; padding: 12px 16px; }
  .term__tabs button { min-height: 44px; padding: 12px 14px; }
  .cmd { min-height: 48px; }
  summary { min-height: 64px; }
}

/* Short viewports: drop the optional chrome so the pinned scenes still fit */
@media (max-height: 720px) {
  .demo__sticky, .box__sticky { padding: 64px 0 12px; }
  .demo__head { margin-bottom: 12px; }
  .demo__head .eyebrow, .demo__hint { display: none; }
  .demo__head .h2 { font-size: clamp(22px, 3.4vh + 1vw, 34px); }
  .box__head .eyebrow { margin-bottom: 8px; }
  .box__head .h2 { font-size: clamp(22px, 3.4vh + 1vw, 34px); }
  .bubble { display: none; }
  .demo__legend { margin-top: 14px; }
  .card { min-height: 0; }
}

/* CDN blocked: unpin everything, strip becomes a normal scroller */
.no-gsap .demo, .no-gsap .box { height: auto; }
.no-gsap .demo__sticky, .no-gsap .box__sticky { position: static; height: auto; padding: 96px 0; }
.no-gsap .strip { overflow-x: auto; padding-bottom: 18px; }
.no-gsap .mock__hud, .no-gsap .keycap { opacity: 1; }
.no-gsap .pill { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .wrap--split { grid-template-columns: 1fr; gap: 30px; }
  .vs { grid-template-columns: 1fr; }
  .claims { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .pipe__steps { max-width: 100%; }
  .pipe__edgelabel { position: static; text-align: left; max-width: none; margin-top: 14px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --gut: 20px; }
  .nav__links { display: none; }
  .demo { height: 340vh; }
  .demo__sticky { height: 100svh; }
  .mock__body { min-height: 220px; }
  .card { flex-basis: 78vw; min-height: 380px; }
  .strip { padding-left: var(--gut); }
  .cmd { font-size: 12px; }
  .cmd__label { display: none; }
  .term__body { font-size: 12.5px; padding: 16px; }
  .term__tabs { width: 100%; margin: 6px 0 0; }
  .close__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- reduced motion ----------
   Everything scroll-driven is decorative. With this on, all content is
   present and readable immediately and nothing animates or pins. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .demo { height: auto; }
  .demo__sticky { position: static; height: auto; padding: 96px 0; }
  .box__sticky { position: static; height: auto; padding: 96px 0; }
  .strip { overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; }
  .card { scroll-snap-align: start; }
  .mock__hud { opacity: 1; scale: 1; }
  .keycap { opacity: 1; }
  .pill { display: none; }
  .hero__h1 .w { opacity: 1 !important; transform: none !important; }
  .demo__hint { display: none; }
}
