/* ============================================================================
   Pharos — "The Log"

   Portalis' palette, deliberately: the two products are sold by the same
   company and the blue is the company's. Everything ABOVE colour is Pharos'
   own, because a status page has a visual language of its own — rules,
   timestamps, bars, tabular numbers, figure captions — and that is what this
   is built out of.

   What Portalis does that this does NOT do, on purpose:
     · rounded cards floating on shadows      → hairline rules, 4px radius, flat
     · centred section heads with pill chips   → a sticky numbered margin rail
     · macOS window chrome on screenshots      → labelled FIG. caption bars
     · a node diagram as the hero              → 90 days of real uptime, full bleed
     · gradient text, gradient CTA card        → solid ink, a full-bleed band
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Public+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- tokens ------------------------------------------------------ */
:root {
  /* Portalis palette, unchanged */
  --bg:      #fbfcfe;
  --bg-tint: #f2f6fb;
  --card:    #ffffff;
  --ink:     #0e1726;
  --ink-2:   #475467;
  --ink-3:   #667085;
  --line:    #e8edf4;
  --line-2:  #d6e0ed;
  --blue:    #0079d2;
  --blue-hi: #2ea3ff;
  --blue-soft: #e8f3fc;
  --navy:    #0a1729;
  --navy-2:  #0e2036;
  --green:   #12b76a;
  --green-ink: #027a48;
  --amber:   #f79009;
  --amber-ink: #b54708;
  --red:     #d92d20;

  --display: 'Archivo', 'Helvetica Neue', system-ui, sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r: 4px;                 /* almost square. Portalis is 16–22. */
  --rail: 132px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.5rem + 2.6vw, 3.85rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.6rem); }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }

p { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #005ea6; }

code {
  font-family: var(--mono);
  font-size: .86em;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .1em .35em;
  color: var(--ink);
}

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

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--blue); color: #fff; font-weight: 600; padding: .7rem 1.1rem; }
.skip:focus { left: 0; }

.wrap { width: min(1240px, 100% - 2.6rem); margin-inline: auto; }

/* ---------- reveal ------------------------------------------------------ */
.rv { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- mono label, the thing this page is made of ------------------ */
.lbl, .rail, .eyebrow, .fig-cap, .stage-cap, .foot-grid b, .docs-nav b, thead th, .per, .faq-n {
  font-family: var(--mono);
  font-size: .69rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* ---------- buttons ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: .93rem;
  line-height: 1;
  padding: .85rem 1.3rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: .58rem .9rem; font-size: .86rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }

.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: #0063ad; border-color: #0063ad; color: #fff; }

/* an arrow that moves, instead of a lift-and-shadow */
.btn-plain { border-color: transparent; background: transparent; color: var(--blue); padding-inline: .3rem; }
.btn-plain:hover { color: #005ea6; }
.btn-plain span { transition: transform .25s var(--ease); }
.btn-plain:hover span { transform: translateY(3px); }

.btn-white { background: #fff; border-color: #fff; color: var(--navy); }
.btn-white:hover { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--navy); }

/* ---------- nav --------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fbfcfeeb;
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 1.5rem; padding-block: .7rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.03em;
  color: var(--ink);
  text-decoration: none;
}
.nav-links { display: flex; gap: 0; margin-left: auto; }
/* nav items separated by hairlines — the ledger, again */
.nav-links a {
  font-size: .87rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: .3rem .9rem;
  border-left: 1px solid var(--line);
}
.nav-links a:first-child { border-left: 0; }
.nav-links a:hover { color: var(--blue); }
.nav-in .btn { margin-left: 1.2rem; }

/* ---------- hero -------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); }

/* Column guides. Faint enough to read as paper, not as a grid overlay —
   the page is a ledger and this is the ledger's ruling. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(to right, #eef3f9 0 1px, transparent 1px 8.3333%);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  opacity: .8;
}

.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 3rem; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }

.eyebrow { color: var(--ink-3); display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }
.eyebrow s { text-decoration: none; color: var(--line-2); }

.hero h1 { max-width: 22ch; }
/* the line break is authored, so let it be the only one above 900px */
@media (max-width: 900px) { .hero h1 br { display: none; } }
/* the emphasis is a solid colour with a rule under it, not gradient text */
.hl { color: var(--blue); box-shadow: inset 0 -.09em 0 var(--blue-soft); }

.lede { color: var(--ink-2); font-size: clamp(1.02rem, .96rem + .3vw, 1.18rem); max-width: 60ch; }
.lede em { font-style: normal; font-weight: 600; color: var(--ink); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

.hero-diffs { display: flex; flex-wrap: wrap; gap: 0 1.4rem; color: var(--ink-3); font-size: .85rem; }
.hero-diffs span { display: inline-flex; align-items: center; gap: .45rem; }
.diff-dot { width: 4px; height: 4px; background: var(--blue); display: inline-block; }



/* ---------- the install column ------------------------------------------ */
/* The hero terminal. The figure terminals further down wear a FIG. caption
   bar; this one wears the file it is editing, and it is the only one on the
   page with a live caret — it is the thing you are meant to type. */
.install {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 1px solid var(--line);
  padding-left: 2rem;
}
.install .lbl { color: var(--ink-3); padding-bottom: .7rem; border-bottom: 1px solid var(--ink); }

.term-hero {
  position: relative;
  background: var(--navy);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 18px 40px -26px #0a172999;
}
.term-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), #2ea3ff 45%, transparent);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .5rem .5rem .85rem;
  border-bottom: 1px solid #1b3350;
}
/* a literal command, so it stays lowercase — the uppercase mono labels
   elsewhere on the page are labels, not things you type */
.tb-t {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: #7e9ab5;
}
.tb-t::before { content: "\203A"; color: var(--blue-hi); margin-right: .5rem; }

.term-body {
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 1.05rem .9rem 1.2rem;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.95;
  color: #eaf2fb;
  white-space: pre-wrap;          /* wrap; a scrollbar in the hero is worse */
  overflow-wrap: anywhere;
}
.term-body .c    { color: #5d7794; }
.term-body .star { color: var(--blue-hi); letter-spacing: .14em; }
.term-body .fn   { color: #6ee7a8; }
.term-body .op   { color: #7e9ab5; }

.caret {
  display: inline-block;
  width: .55em;
  height: 1.05em;
  translate: 0 .18em;
  background: var(--blue-hi);
  animation: caret 1.15s steps(1) infinite;
}
@keyframes caret { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* copy, sitting in the title bar */
.copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #7e9ab5;
  background: transparent;
  border: 0;
  border-radius: var(--r);
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.copy svg { width: 14px; height: 14px; flex: none; }
.copy .tick { display: none; }
.copy:hover { color: #fff; background: #ffffff14; }
.copy.done { color: #6ee7a8; }
.copy.done svg:first-of-type { display: none; }
.copy.done .tick { display: block; }
.copy.manual { color: #ffc46b; }

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

.install-note { margin-top: auto; font-size: .85rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: .9rem; }

/* ---------- the stage: one incident, writing itself -------------------- */
.stage { position: relative; margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); border-block: 1px solid var(--line); background: var(--card); }

.stage-cap {
  display: flex; align-items: center; gap: .7rem;
  padding-block: .7rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
}
.stage-cap .clock {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.live { display: inline-flex; align-items: center; gap: .4rem; color: var(--green-ink); }
.live b { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: beat 2.2s var(--ease) infinite; }
@keyframes beat { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.stage-in {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 2.6rem;
  padding-block: 1.5rem 1.7rem;
  min-height: 292px;                 /* reserved, so nothing jumps as it fills */
  align-items: start;
}
.stage-inc { border-left: 1px solid var(--line); padding-left: 2.6rem; position: relative; }
.lbl { color: var(--ink-3); margin-bottom: .9rem; }

/* the component rows */
.crow { display: flex; align-items: center; gap: .6rem; padding: .62rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.crow i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; transition: background .3s var(--ease); }
.crow span { color: var(--ink); }
.crow b { margin-left: auto; font-weight: 500; font-size: .82rem; color: var(--green-ink); transition: color .3s var(--ease); }
.crow[data-st="warn"] i { background: var(--amber); }
.crow[data-st="warn"] b { color: var(--amber-ink); }
.crow[data-st="down"] i { background: var(--red); }
.crow[data-st="down"] b { color: var(--red); }
/* the one under the microscope keeps a rule beside it */
.crow.tgt { box-shadow: inset 2px 0 0 var(--line-2); padding-left: .7rem; transition: box-shadow .3s var(--ease); }
.crow.tgt[data-st="warn"] { box-shadow: inset 2px 0 0 var(--amber); }
.crow.tgt[data-st="down"] { box-shadow: inset 2px 0 0 var(--red); }

.meta {
  font-family: var(--mono); font-size: .69rem; letter-spacing: .06em;
  color: var(--ink-3);
  padding: .8rem 0 0 .7rem;
  border-top: 1px solid var(--line);
  margin-top: -1px;
}

/* the incident as the product renders it */
.inc-empty { color: var(--ink-3); font-size: .92rem; transition: opacity .4s var(--ease); }
.inc-empty.gone { opacity: 0; }
.inc { margin-top: -1.45rem; }
.inc h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.inc ol { list-style: none; margin: 0; padding: 0; }
.inc li { display: grid; grid-template-columns: 52px 106px minmax(0, 1fr); gap: .6rem; align-items: baseline; padding: .42rem 0; }
.inc li b { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); }
.inc li em {
  font-style: normal; font-family: var(--mono); font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px;
  padding: .16rem .5rem; text-align: center;
}
.inc li em.dn { color: var(--red); border-color: #d92d2033; background: #d92d200a; }
.inc li em.up { color: var(--green-ink); border-color: #12b76a33; background: #12b76a0a; }
.inc li p { color: var(--ink-2); font-size: .92rem; }
.inc-foot { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-3); }
.inc-foot b { color: var(--ink); font-weight: 600; }
.never { color: var(--blue); font-weight: 600; }

/* everything the script reveals shares one transition */
.stage [data-at] { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.stage [data-at].on { opacity: 1; transform: none; }

/* ---------- sections: numbered margin rail ------------------------------ */
.sec { border-top: 1px solid var(--line); padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.sec-tint { background: var(--bg-tint); }
.sec-in { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: clamp(1.6rem, 1rem + 2vw, 3.2rem); align-items: start; }
/* grid items default to min-width:auto, so a 660px table drags the column
   wider than the page and .tablewrap's own overflow never gets a chance. */
.sec-in > *, .cta-in > * { min-width: 0; }

.rail { position: sticky; top: 92px; color: var(--ink-3); line-height: 1.7; }
.rail b { display: block; font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em; color: var(--line-2); margin-bottom: .1rem; }
.rail span { display: block; }

.sec-head { max-width: 64ch; margin-bottom: 2.2rem; }
.sec-head h2 { margin-bottom: .9rem; }
.sec-head p { color: var(--ink-2); }

/* ---------- figures: caption bars, not window chrome -------------------- */
.fig { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; transition: border-color .2s var(--ease); }
figure:hover .fig { border-color: var(--line-2); }
/* Every screenshot is the same shape, cropped from the top. Three different
   aspect ratios down one column is what made this section read as noise. */
.fig img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; width: 100%; }
/* the tall one is cropped hardest, so say so instead of just cutting it */
.fig.crop::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 84px;
  pointer-events: none;
  background: linear-gradient(to bottom, #fff0, #fff);
}
.fig-cap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .55rem .85rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  background: var(--bg-tint);
}
.fig-cap b { color: var(--blue); font-weight: 500; }
.fig-cap .r { margin-left: auto; text-transform: none; letter-spacing: .04em; }
.fig figcaption { font-size: .87rem; color: var(--ink-3); padding: .8rem .1rem 0; letter-spacing: 0; text-transform: none; font-family: var(--body); }
figure { margin: 0; }
figure > figcaption { font-size: .87rem; color: var(--ink-3); margin-top: .75rem; }

.figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 1.4rem; }
/* Screenshots of a dense admin screen are unreadable at half width, and an
   unreadable screenshot reads as clutter. These get the full column. */
.figs-stack { grid-template-columns: 1fr; gap: 2.2rem; margin-top: 2.2rem; }

/* terminals, same caption bar, dark body */
.fig-term { background: var(--navy); border-color: var(--navy-2); }
.fig-term .fig-cap { background: var(--navy-2); border-bottom-color: #1b3350; color: #7e9ab5; }
.fig-term .fig-cap b { color: var(--blue-hi); }
.term { font-family: var(--mono); font-size: .81rem; line-height: 1.85; padding: 1rem 1.1rem; color: #cfe0f0; overflow-x: auto; }

/* ---------- ledger rows (facts, key/value) ------------------------------ */
.facts { border-top: 1px solid var(--line); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 1.4rem 0; border-left: 1px solid var(--line); padding-left: 1.2rem; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--ink);
}
.fact > span { display: block; margin-top: .4rem; font-size: .84rem; color: var(--ink-3); }

/* ---------- ticks ------------------------------------------------------- */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding: .85rem 0 .85rem 2.3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .95rem;
}
.ticks li:first-child { border-top: 0; padding-top: .2rem; }
.ticks li b { color: var(--ink); font-weight: 600; }
/* a counter, not a checkmark — this is a log */
.ticks { counter-reset: t; }
.ticks li::before {
  counter-increment: t;
  content: counter(t, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .95rem;
  font-family: var(--mono);
  font-size: .69rem;
  letter-spacing: .1em;
  color: var(--blue);
}
.ticks li:first-child::before { top: .3rem; }

/* the compact variant used inside price columns */
.ticks-plain li { border-top: 0; padding: .28rem 0 .28rem 1.2rem; font-size: .9rem; }
.ticks-plain li::before, .ticks-plain li:first-child::before { content: "—"; color: var(--line-2); top: .28rem; letter-spacing: 0; }

/* ---------- notes ------------------------------------------------------- */
.note {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1rem;
  border-top: 2px solid var(--blue);
  background: var(--card);
  padding: 1rem 0 1.1rem;
  color: var(--ink-2);
  font-size: .93rem;
}
.note > span[aria-hidden] {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue);
}
.note > span[aria-hidden]::after { content: " NOTE"; }
.note b { color: var(--ink); }
.note.warn { border-top-color: var(--amber); }
.note.warn > span[aria-hidden] { color: var(--amber-ink); }
.note.warn > span[aria-hidden]::after { content: " CAUTION"; }

/* ---------- tables ------------------------------------------------------ */
.tablewrap { overflow-x: auto; border-top: 1px solid var(--ink); }
table { border-collapse: collapse; width: 100%; min-width: 660px; font-size: .92rem; }
th, td { text-align: left; padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--ink-3); padding-block: .7rem; border-bottom: 1px solid var(--line-2); }
tbody th { font-weight: 500; color: var(--ink); width: 34%; }
td { color: var(--ink-2); }

/* our column: a rule on top and a wash, no border box */
.cmp-us { background: #0079d20a; padding-left: 1rem; }
thead th.cmp-us { color: var(--blue); box-shadow: inset 0 2px 0 var(--blue); }

.yes, .no { display: inline-flex; align-items: baseline; gap: .4rem; font-weight: 500; }
.yes { color: var(--green-ink); }
.no  { color: var(--ink-3); }
.yes::before { content: "●"; font-size: .55em; color: var(--green); }
.no::before  { content: "○"; font-size: .55em; color: var(--ink-3); }

/* ---------- pricing: columns divided by rules, not cards ---------------- */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.price { display: flex; flex-direction: column; align-items: flex-start;
         padding: 1.6rem 1.4rem 1.8rem 0; border-left: 1px solid var(--line); padding-left: 1.4rem; }
.price:first-child { border-left: 0; padding-left: 0; }
.price h3 { margin-bottom: .8rem; }
.price .amount { font-family: var(--display); font-size: 1.85rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.price .yr { font-family: var(--body); font-size: .82rem; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.price .per { display: block; color: var(--ink-3); margin: .55rem 0 1.1rem; }
.price-free { box-shadow: inset 0 2px 0 var(--blue); }
/* the last tier is for a different reader — mark it, do not shout */
.price-comm { background: var(--bg-tint); }
/* margin-top:auto only bottom-aligns inside a flex column — the rule was
   there before .price was one, so the buttons sat wherever the text ended. */
.buy { margin-top: auto; }
.price .ticks { margin-bottom: 1.4rem; }
.price-free .amount { color: var(--blue); }

/* ---------- faq: ruled rows ---------------------------------------------- */
.faq-list { border-top: 1px solid var(--ink); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: baseline; gap: 1.1rem; padding: 1.05rem 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-n { color: var(--blue); flex: none; }
.faq-q { font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.faq summary i { margin-left: auto; width: 12px; height: 12px; position: relative; flex: none; align-self: center; }
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 1px; background: var(--ink-3);
  transition: transform .25s var(--ease);
}
.faq summary i::after { transform: rotate(90deg); }
.faq[open] summary i::after { transform: rotate(0); }
.faq-a { padding: 0 0 1.2rem 3.1rem; color: var(--ink-2); font-size: .94rem; max-width: 76ch; }

/* ---------- cta: a full-bleed band -------------------------------------- */
.cta { background: var(--navy); color: #eaf2fb; padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.cta-in { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: clamp(1.6rem, 1rem + 2vw, 3.2rem); align-items: start; }
.cta .rail { color: #5d7794; }
.cta .rail b { color: #24405f; }
.cta h2 { color: #fff; max-width: 18ch; }
.cta p { color: #b9c8da; max-width: 58ch; margin-top: 1.1rem; }

/* ---------- footer ------------------------------------------------------ */
.foot { background: var(--navy); color: #b9c8da; border-top: 1px solid var(--navy-2); }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; padding-block: 2.4rem 1.6rem; }
.foot-grid b { display: block; color: #5d7794; margin-bottom: .7rem; }
.foot-grid a, .foot-grid span { display: block; color: #b9c8da; text-decoration: none; font-size: .88rem; line-height: 2; }
.foot-grid a:hover { color: #fff; }
.foot-end {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
  border-top: 1px solid var(--navy-2);
  padding-block: .9rem;
  font-family: var(--mono); font-size: .69rem; letter-spacing: .1em; text-transform: uppercase; color: #4f6a88;
}
.foot-end .r { margin-left: auto; }

/* ---------- docs -------------------------------------------------------- */
.docs { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); padding-block: 2.6rem 5rem; align-items: start; }
.docs-nav {
  position: sticky; top: 92px;
  display: flex; flex-direction: column;
  max-height: calc(100vh - 118px); overflow-y: auto;
  border-right: 1px solid var(--line); padding-right: .8rem;
}
.docs-nav b { color: var(--ink-3); margin: 1.2rem 0 .35rem; }
.docs-nav b:first-child { margin-top: 0; }
.docs-nav a {
  font-size: .875rem; color: var(--ink-2); text-decoration: none;
  padding: .3rem 0 .3rem .75rem; border-left: 2px solid transparent; margin-left: -1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.docs-nav a:hover { color: var(--ink); }
.docs-nav a.on { color: var(--blue); border-left-color: var(--blue); font-weight: 600; }

.docs-body { min-width: 0; max-width: 78ch; }
.docs-body .lead { color: var(--ink-2); font-size: 1.06rem; margin-top: .9rem; }
.docs-body h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.8rem); margin: 3.2rem 0 1rem; padding-top: 1.4rem; border-top: 1px solid var(--ink); scroll-margin-top: 96px; }
.docs-body h3 { margin: 1.9rem 0 .6rem; }
.docs-body p { margin: 0 0 1rem; color: var(--ink-2); }
.docs-body ul, .docs-body ol { color: var(--ink-2); padding-left: 1.15rem; margin: 0 0 1rem; }
.docs-body li { margin-bottom: .35rem; }
.docs-body .note, .docs-body .tablewrap { margin: 1.4rem 0; }

pre {
  font-family: var(--mono); font-size: .81rem; line-height: 1.8;
  background: var(--navy); color: #cfe0f0;
  border-radius: var(--r); padding: 1rem 1.1rem;
  overflow-x: auto; margin: 1.2rem 0;
}
pre .k { color: var(--blue-hi); }
pre .c { color: #7e9ab5; }
pre .s { color: #6ee7a8; }

/* ---------- responsive -------------------------------------------------- */
/* Below this the copy needs the full measure, so the command lies down under it. */
@media (max-width: 1060px) {
  .hero-in { grid-template-columns: 1fr; gap: 2rem; }
  .install { border-left: 0; border-top: 1px solid var(--line); padding: 1.4rem 0 0; max-width: 46ch; }
  .install-note { margin-top: 0; }
}

@media (max-width: 1000px) {
  :root { --rail: 100px; }
  .figs { grid-template-columns: 1fr; }
  .prices { grid-template-columns: repeat(2, 1fr); }
  .price { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .price:first-child { border-top: 0; }
  .facts-in { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .docs { grid-template-columns: 1fr; }
  .docs-nav {
    position: static; max-height: none; border-right: 0;
    border-bottom: 1px solid var(--line); padding: 0 0 1.2rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: .1rem 1rem;
  }
  .docs-nav b { grid-column: 1 / -1; }
  .docs-nav a { border-left: 0; padding-left: 0; }
  .docs-nav a.on { border-left: 0; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-in .btn { margin-left: auto; }
  /* the rail lies down and becomes a header rule */
  .sec-in, .cta-in { grid-template-columns: 1fr; gap: 1.2rem; }
  .rail { position: static; display: flex; align-items: baseline; gap: .6rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
  .rail b { display: inline; font-size: .85rem; margin: 0; }
  .cta .rail { border-bottom-color: var(--navy-2); }
  .note { grid-template-columns: 1fr; gap: .4rem; }
  .hero::before { display: none; }
  .stage-in { grid-template-columns: 1fr; gap: 1.6rem; min-height: 0; }
  .stage-inc { border-left: 0; border-top: 1px solid var(--line); padding: 1.4rem 0 0; }
  .inc { margin-top: 0; }
  .inc li { grid-template-columns: 46px 100px; }
  .inc li p { grid-column: 1 / -1; }
  .foot-end .r { margin-left: 0; }
}

@media (max-width: 520px) {
  .facts-in, .prices { grid-template-columns: 1fr; }
  .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .faq-a { padding-left: 0; }
}
