/* ==========================================================================
   YAV Viewer — site stylesheet, shared by every page
   Visual system follows the ui-set-ev reference kit: cool near-white ground,
   white cards on soft diffuse shadow, indigo -> blue -> cyan ribbon accents,
   small tracked uppercase labels, tight display numerals.
   ========================================================================== */

:root{
  color-scheme: light;

  --bg:        #F4F7FC;
  --bg-deep:   #EAF0FA;
  --card:      #FFFFFF;
  --line:      #E3E9F4;
  --line-soft: #EEF2F9;

  /* Every muted step is measured against the page ground (#F4F7FC), not
     eyeballed: the palette is light-on-light, where "looks subtle enough"
     and "passes 4.5:1" diverge fast. Lowest here is ink-4 at 4.73:1.       */
  --ink:   #0C1424;   /* 18.4:1 */
  --ink-2: #3B475A;   /*  9.4:1 */
  --ink-3: #5C687B;   /*  5.3:1 */
  --ink-4: #656F80;   /*  4.7:1 — smallest type on the page uses this */

  --indigo:   #4F46E5;
  --blue:     #3B82F6;
  --cyan:     #06B6D4;
  --mint:     #10B981;

  --tint-indigo: #EEF0FE;
  --tint-blue:   #EAF2FE;
  --tint-cyan:   #E6F8FC;
  --tint-mint:   #E7F8F1;

  /* --ribbon is decorative: borders, the logo mark, gradient text, SVG strokes.
     --ribbon-solid is the version that ever sits behind white text. Bright cyan
     only reaches 2.4:1 against white, so anything with a label on it stops at
     #0E7490 (5.4:1) instead — the label passes across the whole sweep, not just
     the dark end.                                                            */
  --ribbon: linear-gradient(100deg, #4F46E5 0%, #3B82F6 46%, #06B6D4 100%);
  --ribbon-solid: linear-gradient(100deg, #4F46E5 0%, #2563EB 52%, #0E7490 100%);

  --e1: 0 1px 2px rgba(12,20,36,.04), 0 4px 12px rgba(12,20,36,.04);
  --e2: 0 2px 4px rgba(12,20,36,.04), 0 12px 32px rgba(12,20,36,.07);
  --e3: 0 4px 8px rgba(12,20,36,.05), 0 24px 64px rgba(12,20,36,.10);
  --e-indigo: 0 10px 30px rgba(79,70,229,.22);

  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --r-xl: 28px;

  --shell: 1200px;

  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:88px; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--f-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; }
a:focus-visible,button:focus-visible{ outline:2px solid var(--indigo); outline-offset:3px; }
section[id],main[id]{ scroll-margin-top:88px; }

.skip-link{
  position:fixed; z-index:100; top:10px; left:10px;
  padding:10px 14px; border-radius:9px; background:var(--ink); color:#fff;
  font-weight:600; transform:translateY(-160%); transition:transform .18s ease;
}
.skip-link:focus{ transform:translateY(0); }
.sr-only{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }

body::before{
  content:"";
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(900px 520px at 78% -8%,  rgba(99,102,241,.16), transparent 62%),
    radial-gradient(760px 460px at 6% 4%,    rgba(6,182,212,.12),  transparent 60%),
    radial-gradient(1000px 620px at 50% 108%,rgba(59,130,246,.10), transparent 62%);
}

.shell{ width:100%; max-width:var(--shell); margin-inline:auto; padding-inline:24px; }

/* ---------- shared type -------------------------------------------------- */
.eyebrow{
  font-size:11px; font-weight:600;
  letter-spacing:.14em; text-transform:uppercase;
  color:var(--ink-4);
  margin:0 0 14px;
}
.h2{
  font-family:var(--f-display);
  font-size:clamp(28px,3.6vw,44px);
  font-weight:600; line-height:1.14; letter-spacing:-.022em;
  margin:0 0 14px;
}
.lede{ font-size:17px; color:var(--ink-3); max-width:62ch; margin:0; }
.grad{ background:var(--ribbon-solid); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* ---------- buttons ------------------------------------------------------ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  height:46px; padding:0 22px; border-radius:999px;
  font-size:14.5px; font-weight:600; letter-spacing:-.005em;
  border:1px solid transparent; cursor:pointer; white-space:nowrap;
  transition:transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s, background .18s, border-color .18s;
}
.btn-primary{ background:var(--ribbon-solid); color:#fff; box-shadow:var(--e-indigo); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 14px 38px rgba(79,70,229,.30); }
.btn[aria-disabled="true"]{ opacity:.7; cursor:wait; transform:none; }
.btn-ghost{ background:var(--card); color:var(--ink); border-color:var(--line); box-shadow:var(--e1); }
.btn-ghost:hover{ transform:translateY(-2px); box-shadow:var(--e2); border-color:#D3DBEA; }
.btn-lg{ height:54px; padding:0 30px; font-size:16px; }
.btn:focus-visible{ outline:2px solid var(--indigo); outline-offset:3px; }

/* ---------- chips -------------------------------------------------------- */
.chip{
  display:inline-flex; align-items:center; gap:7px;
  height:30px; padding:0 13px; border-radius:999px;
  background:var(--card); border:1px solid var(--line);
  font-size:12.5px; font-weight:500; color:var(--ink-2);
  box-shadow:var(--e1);
}
.chip .dot{ width:6px; height:6px; border-radius:50%; background:var(--mint); flex:none; }
.chip-mint{ background:var(--tint-mint); border-color:#C9EDDD; color:#0B7355; box-shadow:none; }
.chip-indigo{ background:var(--tint-indigo); border-color:#DADCFD; color:#3F35D8; box-shadow:none; }

/* ---------- nav ---------------------------------------------------------- */
.nav{
  position:sticky; top:0; z-index:60;
  background:rgba(244,247,252,.78);
  backdrop-filter:blur(16px) saturate(160%);
  -webkit-backdrop-filter:blur(16px) saturate(160%);
  border-bottom:1px solid transparent;
  transition:border-color .25s, background .25s;
}
.nav.is-stuck{ border-bottom-color:var(--line); background:rgba(244,247,252,.93); }
.nav-in{ display:flex; align-items:center; gap:28px; height:70px; position:relative; }
.brand{ display:flex; align-items:center; gap:11px; min-height:44px; font-family:var(--f-display); font-weight:700; font-size:17.5px; letter-spacing:-.02em; white-space:nowrap; }
.mark{
  width:32px; height:32px; border-radius:9px; flex:none;
  background:var(--ribbon); box-shadow:var(--e-indigo);
  display:grid; place-items:center;
}
.nav-links{ display:flex; gap:4px; margin-left:auto; }
.nav-links a{
  padding:8px 14px; border-radius:999px; font-size:14px; font-weight:500; color:var(--ink-3);
  transition:color .16s, background .16s;
}
.nav-links a:hover{ color:var(--ink); background:rgba(255,255,255,.9); }
.nav-links a[aria-current="page"]{ color:var(--indigo); background:var(--tint-indigo); }
.nav-cta{ display:flex; align-items:center; gap:10px; }
.nav-toggle{ display:none; }

/* ---------- hero --------------------------------------------------------- */
.hero{ padding:64px 0 30px; }
.hero-grid{ display:grid; grid-template-columns:minmax(0,1.02fr) minmax(0,1fr); gap:52px; align-items:center; }
.hero h1{
  font-family:var(--f-display);
  font-size:clamp(36px,4.1vw,55px);
  font-weight:600; line-height:1.06; letter-spacing:-.032em;
  margin:18px 0 20px;
  text-wrap:balance;
}
.hero .sub{ font-size:18.5px; line-height:1.62; color:var(--ink-3); max-width:50ch; margin:0 0 30px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.hero-note{ margin:16px 0 0; font-size:13.5px; color:var(--ink-4); display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.hero-note b{ color:var(--ink-2); font-weight:600; }

/* ---------- signature: the live handshake -------------------------------- */
.stage{ position:relative; }
.stage-glow{
  /* Stays inside the column: a negative horizontal inset here pushes the page
     wider than the viewport on narrow screens. The blur does the spreading. */
  position:absolute; inset:-14% 0 -18%; z-index:0; pointer-events:none;
  background:
    radial-gradient(58% 52% at 26% 46%, rgba(99,102,241,.20), transparent 68%),
    radial-gradient(58% 52% at 78% 56%, rgba(6,182,212,.20),  transparent 68%);
  filter:blur(14px);
}
.rig{ position:relative; z-index:1; display:grid; grid-template-columns:1fr 104px 1fr; gap:8px; align-items:center; }

.dev{
  background:var(--card); border:1px solid var(--line); border-radius:var(--r-l);
  box-shadow:var(--e3); overflow:hidden;
}
.dev-head{
  display:flex; align-items:center; gap:8px;
  padding:11px 14px; border-bottom:1px solid var(--line-soft); background:#FCFDFF;
}
.dev-role{ font-size:10px; font-weight:700; letter-spacing:.11em; text-transform:uppercase; color:var(--ink-4); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dev-role b{ color:var(--ink-2); font-weight:700; }
.dev-dots{ display:flex; gap:5px; margin-left:auto; }
.dev-dots i{ width:7px; height:7px; border-radius:50%; background:#E1E7F1; }
.dev-body{ padding:16px 15px 17px; }

.field-label{ font-size:10.5px; font-weight:600; letter-spacing:.11em; text-transform:uppercase; color:var(--ink-4); margin-bottom:6px; }
.field{
  border:1px solid var(--line); border-radius:var(--r-s); background:#FBFCFE;
  padding:8px 11px; font-family:var(--f-mono); font-size:13px; color:var(--ink-2);
  display:flex; align-items:center; justify-content:space-between; gap:8px;
}
.field + .field-label{ margin-top:13px; }
/* The demo's quiet text still has to clear 4.5:1 on the field ground (#FBFCFE). */
.field .port{ color:var(--ink-4); }
.field.is-status{ color:var(--ink-3); }
.field.is-status.is-ok{ color:#0B7355; }

.code-field{
  font-size:15px; font-weight:700; letter-spacing:.08em; color:var(--ink);
  background:linear-gradient(180deg,#FFFFFF,#F7F9FE);
  border-color:#D9E1F0; padding:11px 13px; justify-content:center;
  min-height:52px;
}
.code-field.is-live{ border-color:#BFC6FA; box-shadow:0 0 0 4px rgba(99,102,241,.10); }
.caret{
  display:inline-block; width:2px; height:22px; margin-left:2px; vertical-align:-4px;
  background:var(--indigo); animation:blink 1.05s steps(1,end) infinite;
}
@keyframes blink{ 50%{ opacity:0; } }

.mini{
  border:1px solid var(--line); border-radius:var(--r-m); overflow:hidden;
  background:#F1F5FC; aspect-ratio:16/10; position:relative;
}
.mini-bar{ height:18px; background:#E7EDF8; border-bottom:1px solid #DCE4F2; display:flex; align-items:center; gap:4px; padding:0 7px; }
.mini-bar i{ width:5px; height:5px; border-radius:50%; background:#C3CFE4; }
.mini-canvas{ position:absolute; inset:18px 0 0; padding:9px; display:grid; gap:6px; grid-template-columns:1fr 1fr; align-content:start; }
.mini-canvas span{ height:7px; border-radius:3px; background:#DCE5F4; }
.mini-canvas span:nth-child(1){ grid-column:1/-1; width:52%; background:#C7D3EA; }
.mini-canvas span:nth-child(4){ grid-column:1/-1; }
.mini-canvas span:nth-child(6){ width:66%; }
.mini-plot{
  grid-column:1/-1; height:44px; border-radius:6px; margin-top:3px;
  background:linear-gradient(180deg, rgba(99,102,241,.16), rgba(99,102,241,0));
  border-bottom:1.5px solid rgba(79,70,229,.45);
}
.mini-idle{
  position:absolute; inset:18px 0 0; display:grid; place-items:center;
  background:#F1F5FC; color:var(--ink-4); font-size:11.5px; font-weight:500;
  transition:opacity .5s ease; z-index:2;
}
.mini.is-live .mini-idle{ opacity:0; pointer-events:none; }
.mini-cursor{
  /* Rests where roam starts and ends, so it never snaps to the corner and
     parks on the title bar once the animation is over. */
  position:absolute; top:0; left:0; width:13px; height:13px; z-index:3; opacity:0;
  transform:translate(230%,520%);
  transition:opacity .4s ease;
  filter:drop-shadow(0 1px 2px rgba(12,20,36,.3));
}
.mini.is-live .mini-cursor{ opacity:1; animation:roam 7s ease-in-out 1 forwards; }
@keyframes roam{
  0%{   transform:translate(230%,520%); }
  28%{  transform:translate(600%,210%); }
  55%{  transform:translate(360%,410%); }
  80%{  transform:translate(730%,560%); }
  100%{ transform:translate(230%,520%); }
}

.link{ position:relative; height:150px; display:grid; place-items:center; }
.link > svg{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.link-trace{ stroke:#D2DBEA; stroke-width:2; stroke-dasharray:4 5; fill:none; }
.link-live{
  /* The gradient stroke is set on the element itself (stroke="url(#ribbon)"):
     a fragment URL written in an external stylesheet is not reliably resolved
     against the page that holds the gradient. */
  stroke-width:3.5; fill:none; stroke-linecap:round;
  stroke-dasharray:220; stroke-dashoffset:220;
  transition:stroke-dashoffset 1.1s cubic-bezier(.65,0,.35,1);
  filter:drop-shadow(0 2px 7px rgba(79,70,229,.42));
}
.rig.is-linked .link-live{ stroke-dashoffset:0; }
/* Packets are started by the script when the link opens (begin="indefinite"),
   shown once both are moving, and faded out before the last pass ends — an
   ended SMIL motion would otherwise leave a stray dot at the SVG origin. */
.link-pkt{ opacity:0; transition:opacity .4s ease; }
.rig.is-linked .link-pkt{ opacity:1; transition:opacity .5s ease 1.1s; }
.rig.is-linked.pkt-done .link-pkt{ opacity:0; transition:opacity .4s ease; }
.lock{
  position:relative; z-index:2;
  width:44px; height:44px; border-radius:50%;
  display:grid; place-items:center;
  background:var(--card); border:1px solid var(--line); box-shadow:var(--e2);
  transition:background .45s, border-color .45s, box-shadow .45s, transform .45s;
}
.lock svg{ width:17px; height:17px; }
.lock path,.lock rect{ stroke:var(--ink-4); transition:stroke .45s; }
.rig.is-linked .lock{ background:var(--ribbon); border-color:transparent; box-shadow:var(--e-indigo); transform:scale(1.06); }
.rig.is-linked .lock path,.rig.is-linked .lock rect{ stroke:#fff; }
.link-label{
  position:absolute; bottom:10px; left:50%; transform:translateX(-50%);
  font-family:var(--f-mono); font-size:9px; letter-spacing:.04em;
  color:var(--ink-4); white-space:nowrap; text-align:center;
  padding:3px 8px; border-radius:999px;
  background:rgba(255,255,255,.86); border:1px solid var(--line);
  backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
  transition:color .4s, border-color .4s;
  z-index:3;
}
.rig.is-linked .link-label{ color:var(--indigo); border-color:#CFD4FB; }

.readouts{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:20px; position:relative; z-index:1; }
.readout{
  background:var(--card); border:1px solid var(--line); border-radius:var(--r-m);
  padding:11px 13px; box-shadow:var(--e1);
}
.readout .k{ font-size:9.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-4); }
.readout .v{ font-family:var(--f-display); font-size:20px; font-weight:600; letter-spacing:-.02em; margin-top:2px; }
.readout .v small{ font-size:11.5px; font-weight:500; color:var(--ink-4); letter-spacing:0; }

/* ---------- section rhythm ----------------------------------------------- */
.sec{ padding:84px 0; }
.sec-head{ margin-bottom:40px; }
.sec-head.center{ text-align:center; }
.sec-head.center .lede{ margin-inline:auto; }

/* ---------- stat strip --------------------------------------------------- */
.strip{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.stat{
  background:var(--card); border:1px solid var(--line); border-radius:var(--r-l);
  padding:20px 20px 18px; box-shadow:var(--e1);
  transition:transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s;
}
.stat:hover{ transform:translateY(-3px); box-shadow:var(--e2); }
.stat .k{ font-size:10.5px; font-weight:600; letter-spacing:.13em; text-transform:uppercase; color:var(--ink-4); }
.stat .v{ font-family:var(--f-display); font-size:clamp(26px,3vw,33px); font-weight:600; letter-spacing:-.03em; line-height:1.1; margin:8px 0 4px; }
.stat .v sup{ font-size:.5em; line-height:0; vertical-align:.85em; letter-spacing:0; }
.stat .d{ font-size:13px; color:var(--ink-3); }

/* ---------- steps -------------------------------------------------------- */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.step{
  background:var(--card); border:1px solid var(--line); border-radius:var(--r-l);
  padding:24px 22px 22px; box-shadow:var(--e1);
}
.step-n{
  font-family:var(--f-mono); font-size:12px; font-weight:700; letter-spacing:.06em;
  color:var(--indigo); background:var(--tint-indigo); border:1px solid #DEE0FD;
  width:38px; height:26px; border-radius:999px; display:grid; place-items:center; margin-bottom:14px;
}
.step h3{ font-family:var(--f-display); font-size:18px; font-weight:600; letter-spacing:-.015em; margin:0 0 8px; }
.step p{ margin:0; font-size:14.5px; color:var(--ink-3); }
.step code{ font-family:var(--f-mono); font-size:12.5px; background:var(--bg-deep); padding:2px 6px; border-radius:5px; color:var(--ink-2); }

/* ---------- feature grid ------------------------------------------------- */
.feats{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.feat{
  background:var(--card); border:1px solid var(--line); border-radius:var(--r-l);
  padding:24px 22px; box-shadow:var(--e1);
  transition:transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s, border-color .22s;
}
.feat:hover{ transform:translateY(-3px); box-shadow:var(--e2); border-color:#D6DEEE; }
.ficon{
  width:38px; height:38px; border-radius:11px; display:grid; place-items:center; margin-bottom:15px;
  background:var(--tint-indigo); color:var(--indigo);
}
.ficon.b{ background:var(--tint-blue); color:var(--blue); }
.ficon.c{ background:var(--tint-cyan); color:#0A93AE; }
.ficon.m{ background:var(--tint-mint); color:#0B7355; }
.feat h3{ font-family:var(--f-display); font-size:16.5px; font-weight:600; letter-spacing:-.012em; margin:0 0 7px; }
.feat p{ margin:0; font-size:14.5px; color:var(--ink-3); }

/* ---------- security panel ----------------------------------------------- */
.panel{
  background:var(--card); border:1px solid var(--line); border-radius:var(--r-xl);
  box-shadow:var(--e2); overflow:hidden;
  display:grid; grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);
}
.panel-copy{ padding:44px 42px; }
.panel-copy h1,.panel-copy h2{ font-family:var(--f-display); font-size:clamp(25px,3vw,34px); font-weight:600; letter-spacing:-.024em; line-height:1.16; margin:14px 0 14px; }
/* :not(.eyebrow) — the eyebrow is a <p> too, and this rule used to out-rank it. */
.panel-copy p:not(.eyebrow){ color:var(--ink-3); font-size:15.5px; margin:0 0 22px; }
.checks{ list-style:none; margin:0; padding:0; display:grid; gap:13px; }
.checks li{ display:flex; gap:11px; align-items:flex-start; font-size:14.5px; }
.checks b{ font-weight:600; }
.checks span{ color:var(--ink-3); }
.tick{ flex:none; width:19px; height:19px; border-radius:50%; background:var(--tint-mint); display:grid; place-items:center; margin-top:2px; }

.panel-viz{
  background:linear-gradient(155deg,#F7F9FE,#EDF2FB);
  border-left:1px solid var(--line);
  padding:38px 34px; display:grid; align-content:center; gap:16px;
}
.route{
  background:var(--card); border:1px solid var(--line); border-radius:var(--r-m);
  padding:16px 17px; box-shadow:var(--e1);
}
.route-k{ font-size:10px; font-weight:700; letter-spacing:.13em; text-transform:uppercase; color:var(--ink-4); margin-bottom:12px; }
.hops{ display:flex; align-items:center; gap:8px; }
.hop{
  flex:1; text-align:center; font-size:11px; font-weight:600; color:var(--ink-2);
  padding:9px 4px; border-radius:9px; background:var(--bg-deep); border:1px solid var(--line);
}
.hop.warn{ background:#FEF1F3; border-color:#FBD8DE; color:#B5344B; }
.hop.good{ background:var(--tint-mint); border-color:#C9EDDD; color:#0B7355; }
.wire{ flex:none; width:22px; height:2px; border-radius:2px; background:#D5DEEE; }
.wire.warn{ background:#F4B9C4; }
.wire.good{ background:linear-gradient(90deg,#4F46E5,#06B6D4); }
.route-note{ margin:12px 0 0; font-size:12.5px; color:var(--ink-3); }
.route.is-ours{ border-color:#CFD4FB; box-shadow:0 0 0 3px rgba(99,102,241,.09), var(--e1); }

/* ---------- comparison --------------------------------------------------- */
.table-hint{ display:none; margin:0 0 10px; color:var(--ink-4); font-size:13px; }
.tbl-wrap{ background:var(--card); border:1px solid var(--line); border-radius:var(--r-l); box-shadow:var(--e1); overflow-x:auto; }
.tbl-wrap:focus-visible{ outline:2px solid var(--indigo); outline-offset:3px; }
table.cmp{ width:100%; border-collapse:collapse; min-width:640px; }
table.cmp th, table.cmp td{ padding:15px 20px; text-align:left; border-bottom:1px solid var(--line-soft); font-size:14.5px; vertical-align:top; }
table.cmp thead th{ font-size:10.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-4); background:#FBFCFE; }
table.cmp thead th.us{ color:var(--indigo); }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td{ border-bottom:0; }
table.cmp .q{ font-weight:600; width:30%; }
table.cmp td.us{ background:rgba(99,102,241,.045); font-weight:500; }
table.cmp td.them{ color:var(--ink-3); }
.tag-good,.tag-mid,.tag-bad{ display:inline-flex; align-items:center; gap:6px; font-weight:600; font-size:13.5px; }
.tag-good{ color:#0B7355; } .tag-mid{ color:#96650A; } .tag-bad{ color:#B5344B; }

/* ---------- pricing ------------------------------------------------------ */
.bill{
  display:inline-flex; gap:3px; padding:4px; border-radius:999px;
  background:var(--card); border:1px solid var(--line); box-shadow:var(--e1); margin-top:22px;
}
.bill button{
  border:0; background:transparent; cursor:pointer; border-radius:999px;
  min-height:44px; padding:8px 18px; font-size:13.5px; font-weight:600; color:var(--ink-3);
  transition:background .2s, color .2s;
}
.bill button[aria-pressed="true"]{ background:var(--ribbon-solid); color:#fff; box-shadow:var(--e-indigo); }
.bill button:focus-visible{ outline:2px solid var(--indigo); outline-offset:2px; }
/* #0B7355, not --mint: bright mint is 2.5:1 on white, and this is 11px text. */
.bill .save{ font-size:11px; font-weight:700; letter-spacing:.04em; color:#0B7355; margin-left:6px; }
.bill button[aria-pressed="true"] .save{ color:#D6FBE9; }

.plans{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; align-items:stretch; }
.plan{
  background:var(--card); border:1px solid var(--line); border-radius:var(--r-xl);
  padding:28px 26px 26px; box-shadow:var(--e1); position:relative;
  display:flex; flex-direction:column;
  transition:transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s;
}
.plan:hover{ transform:translateY(-4px); box-shadow:var(--e2); }
.plan.is-featured{
  border:1.5px solid transparent; box-shadow:var(--e3);
  background:linear-gradient(#fff,#fff) padding-box, var(--ribbon) border-box;
}
.plan-flag{
  position:absolute; top:-13px; left:50%; transform:translateX(-50%);
  background:var(--ribbon-solid); color:#fff; box-shadow:var(--e-indigo);
  font-size:10.5px; font-weight:700; letter-spacing:.11em; text-transform:uppercase;
  padding:6px 15px; border-radius:999px; white-space:nowrap;
}
.plan h2,.plan h3{ font-family:var(--f-display); font-size:19px; font-weight:600; letter-spacing:-.015em; margin:0 0 5px; }
.plan .who{ font-size:13.5px; color:var(--ink-3); margin:0 0 20px; min-height:42px; }
.price{ display:flex; align-items:baseline; gap:4px; }
.price .amt{ font-family:var(--f-display); font-size:44px; font-weight:600; letter-spacing:-.04em; line-height:1; }
.price .per{ font-size:13.5px; color:var(--ink-4); font-weight:500; }
.price-sub{ font-size:12.5px; color:var(--ink-4); margin:8px 0 0; min-height:19px; }
.plan .btn{ width:100%; margin:22px 0 0; }
.plan-list{ list-style:none; margin:20px 0 0; padding:20px 0 0; border-top:1px solid var(--line-soft); display:grid; gap:11px; }
.plan-list li{ display:flex; gap:10px; font-size:14px; color:var(--ink-2); align-items:flex-start; }
.plan-list .tick{ width:17px; height:17px; }
.plan-list .lead{ font-weight:600; color:var(--ink); }

/* Not-yet-shipping items. Deliberately not ticked: a tick is a promise, and
   these are still in development. Muted, dotted, and labelled as such. */
.plan-list .soon-head{
  margin-top:6px; font-size:10.5px; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase; color:var(--ink-4);
}
.plan-list .soon{ color:var(--ink-4); }
.soon-dot{
  flex:none; width:17px; height:17px; border-radius:50%;
  border:1.5px dashed #C3CCDC; margin-top:2px;
}

/* download block */
.dl-wrap{ display:grid; gap:10px; justify-items:start; }
.dl-meta{ margin:0; font-size:12px; color:var(--ink-4); line-height:1.5; }
.dl-hash{ display:inline-flex; align-items:center; min-height:44px; font-family:var(--f-mono); font-size:11px; text-decoration:underline; text-underline-offset:3px; }

.perp{
  margin-top:22px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--r-xl);
  box-shadow:var(--e1); padding:32px 34px;
  display:grid; grid-template-columns:minmax(0,1.35fr) auto; gap:34px; align-items:center;
}
.perp h2,.perp h3{ font-family:var(--f-display); font-size:21px; font-weight:600; letter-spacing:-.02em; margin:12px 0 9px; }
.perp p{ margin:0 0 14px; color:var(--ink-3); font-size:14.5px; max-width:66ch; }
.perp-pts{ display:flex; flex-wrap:wrap; gap:8px; }
.perp-buy{ text-align:right; }
.perp-buy .amt{ font-family:var(--f-display); font-size:42px; font-weight:600; letter-spacing:-.04em; line-height:1; }
.perp-buy .per{ font-size:13px; color:var(--ink-4); display:block; margin-top:6px; }
.perp-buy .btn{ margin-top:16px; }

.pricing-foot,.sec-note{ text-align:center; margin-top:26px; font-size:13.5px; color:var(--ink-4); }
.pricing-foot b{ color:var(--ink-2); font-weight:600; }

/* ---------- trial band --------------------------------------------------- */
.trial{
  border-radius:var(--r-xl); padding:40px;
  background:linear-gradient(135deg,#F0F3FE,#E9F6FA);
  border:1px solid #DCE5F5;
  display:grid; grid-template-columns:auto 1fr auto; gap:28px; align-items:center;
}
.trial-mark{
  width:58px; height:58px; border-radius:17px; flex:none;
  background:var(--ribbon); box-shadow:var(--e-indigo); display:grid; place-items:center;
}
.trial h2,.trial h3{ font-family:var(--f-display); font-size:22px; font-weight:600; letter-spacing:-.02em; margin:0 0 6px; }
.trial p{ margin:0; color:var(--ink-3); font-size:14.5px; }

/* ---------- faq ---------------------------------------------------------- */
.faq{ display:grid; gap:10px; max-width:860px; margin-inline:auto; }
.qa{ background:var(--card); border:1px solid var(--line); border-radius:var(--r-m); box-shadow:var(--e1); overflow:hidden; }
.qa summary{
  cursor:pointer; list-style:none; padding:18px 22px;
  font-family:var(--f-display); font-size:16px; font-weight:500; letter-spacing:-.01em;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.qa summary::-webkit-details-marker{ display:none; }
.qa summary:focus-visible{ outline:2px solid var(--indigo); outline-offset:-3px; }
.plus{ flex:none; width:22px; height:22px; border-radius:50%; background:var(--bg-deep); display:grid; place-items:center; transition:transform .25s, background .25s; }
.qa[open] .plus{ transform:rotate(45deg); background:var(--tint-indigo); }
.qa .ans{ padding:0 22px 20px; font-size:14.5px; color:var(--ink-3); }
.qa .ans code{ font-family:var(--f-mono); font-size:12.5px; background:var(--bg-deep); padding:2px 6px; border-radius:5px; color:var(--ink-2); }

/* ---------- closing cta -------------------------------------------------- */
.close-cta{ text-align:center; padding:96px 0 84px; }
.close-cta h2{ font-family:var(--f-display); font-size:clamp(30px,4.4vw,52px); font-weight:600; letter-spacing:-.03em; line-height:1.08; margin:0 0 16px; }
.close-cta p{ font-size:17.5px; color:var(--ink-3); max-width:52ch; margin:0 auto 30px; }
.close-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* ---------- footer ------------------------------------------------------- */
.foot{ border-top:1px solid var(--line); padding:44px 0 40px; }
.foot-in{ display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:34px; }
.foot-brand p{ margin:14px 0 0; font-size:13.5px; color:var(--ink-4); max-width:32ch; }
.foot-h{ font-size:10.5px; font-weight:700; letter-spacing:.13em; text-transform:uppercase; color:var(--ink-4); margin:0 0 14px; }
.foot ul{ list-style:none; margin:0; padding:0; display:grid; gap:9px; }
.foot a{ font-size:14px; color:var(--ink-3); }
.foot a:hover{ color:var(--ink); }
.foot-base{
  margin-top:36px; padding-top:22px; border-top:1px solid var(--line-soft);
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  font-size:13px; color:var(--ink-4);
}

/* ---------- sub-page head ------------------------------------------------
   Every page except the home page opens with this: where you are, the page's
   one h1, and a lede. It is never a .rise — the h1 is the largest paint on
   these pages, and hiding it until the script runs would only delay it.     */
.page-head{ padding:56px 0 8px; }
.page-head.center{ text-align:center; }
.page-head.center .lede{ margin-inline:auto; }
.crumbs{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  list-style:none; margin:0 0 14px; padding:0;
  font-size:13px; color:var(--ink-4);
}
.page-head.center .crumbs{ justify-content:center; }
.crumbs li{ display:inline-flex; align-items:center; gap:8px; min-height:32px; }
.crumbs li + li::before{ content:"/"; color:var(--ink-4); }
.crumbs a{
  display:inline-flex; align-items:center; min-height:32px; color:var(--ink-3);
  text-decoration:underline; text-decoration-color:#C3CCDC; text-underline-offset:3px;
}
.crumbs a:hover{ color:var(--ink); text-decoration-color:currentColor; }
.h1{
  font-family:var(--f-display);
  font-size:clamp(32px,3.9vw,50px);
  font-weight:600; line-height:1.08; letter-spacing:-.03em;
  margin:0 0 16px;
  text-wrap:balance;
}
/* Two classes on purpose: the narrow-screen rule further down resets .sec padding,
   and a single-class modifier would lose to it on source order alone. */
.sec.sec-after-head{ padding-top:36px; }
.sec.sec-flush{ padding-top:0; }

/* A link inside running text. Everything else on the site is a button, a nav
   item or a card, so inline links are the only ones that need an underline. */
.tl{ color:var(--indigo); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.tl:hover{ text-decoration-thickness:2px; }

/* ---------- home: the contents list --------------------------------------
   Rows, not cards. The rest of the site is card-heavy; the list that points
   at it should read as an index.                                            */
.tour{ list-style:none; margin:0; padding:0; border-top:1px solid var(--line); }
.tour li{ border-bottom:1px solid var(--line); }
.tour a{
  display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,2fr) auto;
  gap:28px; align-items:baseline;
  padding:22px 10px; border-radius:var(--r-m);
  transition:background .16s;
}
.tour a:hover{ background:rgba(255,255,255,.72); }
.tour a:focus-visible{ outline-offset:-2px; }
.tour-t{ font-family:var(--f-display); font-size:21px; font-weight:600; letter-spacing:-.02em; margin:0; }
.tour-d{ margin:0; color:var(--ink-3); font-size:15.5px; }
.tour-go{ font-size:14px; font-weight:600; color:var(--indigo); white-space:nowrap; }

/* ---------- generic card + grids ----------------------------------------- */
.card{
  min-width:0;
  background:var(--card); border:1px solid var(--line); border-radius:var(--r-l);
  padding:24px 22px 22px; box-shadow:var(--e1);
}
.card h2,.card h3{ font-family:var(--f-display); font-size:18px; font-weight:600; letter-spacing:-.015em; margin:0 0 8px; }
.card p{ margin:0 0 12px; font-size:14.5px; color:var(--ink-3); }
.card > :last-child{ margin-bottom:0; }
.card code,.lede code{ font-family:var(--f-mono); font-size:12.5px; background:var(--bg-deep); padding:2px 6px; border-radius:5px; color:var(--ink-2); }
.cards-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.routes{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.routes .route{ padding:20px 20px 18px; }
.routes .route h3{ font-family:var(--f-display); font-size:17px; font-weight:600; letter-spacing:-.015em; margin:0 0 14px; }
.routes .route-note{ font-size:14px; }
.routes .route-note code{ font-family:var(--f-mono); font-size:12.5px; background:var(--bg-deep); padding:2px 6px; border-radius:5px; color:var(--ink-2); }

/* feature groups on the features page */
.group + .group,.group + .perp{ margin-top:48px; }
.group-head{ font-family:var(--f-display); font-size:23px; font-weight:600; letter-spacing:-.02em; margin:0 0 6px; }
.group-sub{ margin:0 0 22px; color:var(--ink-3); font-size:15px; max-width:78ch; text-wrap:pretty; }
.feat code{ font-family:var(--f-mono); font-size:12.5px; background:var(--bg-deep); padding:2px 6px; border-radius:5px; color:var(--ink-2); }

/* a command to copy, and the checksum it should print */
.cmd{
  margin:0 0 12px; padding:12px 14px; border-radius:var(--r-s);
  background:var(--bg-deep); border:1px solid var(--line);
  font-family:var(--f-mono); font-size:12.5px; line-height:1.55; color:var(--ink-2);
  overflow-x:auto; white-space:pre;
}
.cmd:focus-visible{ outline:2px solid var(--indigo); outline-offset:3px; }
.hash{ font-family:var(--f-mono); font-size:12px; color:var(--ink-2); word-break:break-all; }

/* ---------- reveal -------------------------------------------------------
   Visible by default. Only a page that has actually run its script hides
   these to animate them in, so a blocked or broken script leaves a plain,
   complete page rather than an empty one.                                  */
.js .rise{ opacity:0; transform:translateY(18px); transition:opacity .38s ease, transform .38s cubic-bezier(.2,.7,.3,1); }
.js .rise.in{ opacity:1; transform:none; }

/* ---------- responsive --------------------------------------------------- */
@media (max-width:1040px){
  .hero-grid{ grid-template-columns:1fr; gap:46px; }
  .panel{ grid-template-columns:1fr; }
  .panel-viz{ border-left:0; border-top:1px solid var(--line); }
  .strip{ grid-template-columns:repeat(2,1fr); }
  .feats{ grid-template-columns:repeat(2,1fr); }
  .plans{ grid-template-columns:1fr; max-width:460px; margin-inline:auto; }
  .plan.is-featured{ order:-1; }
  .perp{ grid-template-columns:1fr; gap:22px; }
  .perp-buy{ text-align:left; }
  .foot-in{ grid-template-columns:1fr 1fr; }
}
@media (max-width:860px){
  .nav-links{ display:none; }
  .nav-links.is-open{
    display:grid; position:absolute; top:64px; left:16px; right:16px;
    background:var(--card); border:1px solid var(--line); border-radius:var(--r-m);
    box-shadow:var(--e3); padding:8px; gap:2px; margin:0;
  }
  .nav-links.is-open a{ padding:12px 14px; font-size:15px; }
  .nav-toggle{
    display:grid; place-items:center; margin-left:auto;
    width:44px; height:44px; border-radius:11px;
    background:var(--card); border:1px solid var(--line); cursor:pointer;
  }
  .nav-in{ gap:12px; }
  .nav-cta .btn{ height:44px; padding:0 16px; font-size:13.5px; }
  .steps{ grid-template-columns:1fr; }
  .sec{ padding:64px 0; }
  .panel-copy,.panel-viz{ padding:30px 24px; }
  .trial{ grid-template-columns:1fr; }
}
@media (max-width:620px){
  .strip,.feats{ grid-template-columns:1fr; }
  .rig{ grid-template-columns:1fr; }
  .link{ height:96px; }
  .link > svg{ display:none; }
  .readouts{ grid-template-columns:1fr; }
  .foot-in{ grid-template-columns:1fr; }
  .hero{ padding:40px 0 20px; }
  .hero-actions .btn{ width:100%; }
  .hero-actions{ flex-direction:column; align-items:stretch; }
  .close-actions .btn{ width:100%; }
  .brand{ font-size:16px; gap:9px; }
  .mark{ width:28px; height:28px; border-radius:8px; }
  .nav-toggle{ width:44px; height:44px; }
  .table-hint{ display:block; }
  .foot li a{ display:inline-flex; align-items:center; min-width:44px; min-height:44px; }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  html{ scroll-behavior:auto; }
  .js .rise{ opacity:1; transform:none; }
  .link-pkt{ display:none !important; }
}
@media (forced-colors:active){
  .grad{ background:none; color:CanvasText; }
  .btn-primary,.plan-flag{ background:ButtonFace; color:ButtonText; border-color:ButtonText; }
}

/* ---------- sub-page components, responsive ------------------------------ */
@media (max-width:1040px){
  .routes,.cards-2{ grid-template-columns:1fr; }
}
@media (max-width:860px){
  .page-head{ padding:40px 0 4px; }
  .sec.sec-after-head{ padding-top:28px; }
  .tour a{ grid-template-columns:1fr; gap:6px; padding:20px 6px; }
  .tour-go{ margin-top:4px; }
  .group + .group{ margin-top:40px; }
}
@media (max-width:620px){
  .crumbs li,.crumbs a{ min-height:44px; }
}
