/* ihasvpn.org
   Its own palette and its own navigation, on purpose: the sibling sites
   (ihasmail.org, inbuxa.org) share a teal-navy sidebar shell, and a VPN
   should not look like a mail server's brochure.

   The palette is night traffic. The ground is a deep indigo, the colour of
   a network diagram after dark. The accent is signal mint -- the green a
   VPN client lights when the handshake lands -- and it is a cousin of the
   shield's teal in the mark, so the logo sits in it naturally. Violet is
   the tunnel: the route line, gradients, the second voice. The cat's
   orange (#F9A34B) stays as the warm highlight, the same as everywhere.

   Dark is the base definition on :root, and it is what everybody gets
   until they say otherwise -- the system preference is deliberately not
   consulted. Light exists only under [data-theme="light"], which the
   toggle sets and localStorage remembers. No colour is defined *only*
   inside that block, so a token can never go missing in the dark. */

:root {
  --bg: #090a1c;
  --bg-alt: #0c0e25;
  --surface: #11143a;
  --surface-raised: #151944;
  --border: #252a5e;
  --border-strong: #363d7c;

  --text: #eceeff;
  --text-muted: #a9aed8;
  --text-faint: #8d93c4;

  --accent: #4ff0b8;
  --accent-hot: #85f6cf;
  --accent-soft: #4ff0b8;
  --on-accent: #032a1d;

  --violet: #9a86ff;
  --violet-soft: #9a86ff;

  --warm: #f9a34b;
  --warm-soft: #f9a34b;

  --tint: rgba(79, 240, 184, 0.10);
  --tint-violet: rgba(154, 134, 255, 0.13);
  --tint-warm: rgba(249, 163, 75, 0.12);
  --glow: rgba(124, 104, 255, 0.30);
  --glow-mint: rgba(79, 240, 184, 0.18);
  --shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.8);
  --code-bg: #0c0e25;

  --radius: 16px;
  --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
}

:root[data-theme="light"] {
  --bg: #f4f4fb;
  --bg-alt: #ebebf8;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: #dcdcf0;
  --border-strong: #c2c3e4;

  --text: #13153a;
  --text-muted: #4b4f7e;
  --text-faint: #5b5f8c;

  /* Mint darkened until it clears AA as text on the ground and under white
     text on a button. */
  --accent: #00795a;
  --accent-hot: #005f47;
  --accent-soft: #4ff0b8;
  --on-accent: #ffffff;

  --violet: #5a43d6;
  --violet-soft: #9a86ff;

  /* Orange likewise darkened wherever it has to carry text. */
  --warm: #9c580c;
  --warm-soft: #f9a34b;

  --tint: rgba(0, 121, 90, 0.08);
  --tint-violet: rgba(90, 67, 214, 0.08);
  --tint-warm: rgba(156, 88, 12, 0.10);
  --glow: rgba(124, 104, 255, 0.20);
  --glow-mint: rgba(0, 160, 118, 0.12);
  --shadow: 0 18px 44px -26px rgba(19, 21, 58, 0.40);
  --code-bg: #efeffa;
}

:root[data-theme="dark"] {
  --bg: #090a1c;
  --bg-alt: #0c0e25;
  --surface: #11143a;
  --surface-raised: #151944;
  --border: #252a5e;
  --border-strong: #363d7c;

  --text: #eceeff;
  --text-muted: #a9aed8;
  --text-faint: #8d93c4;

  --accent: #4ff0b8;
  --accent-hot: #85f6cf;
  --accent-soft: #4ff0b8;
  --on-accent: #032a1d;

  --violet: #9a86ff;
  --violet-soft: #9a86ff;

  --warm: #f9a34b;
  --warm-soft: #f9a34b;

  --tint: rgba(79, 240, 184, 0.10);
  --tint-violet: rgba(154, 134, 255, 0.13);
  --tint-warm: rgba(249, 163, 75, 0.12);
  --glow: rgba(124, 104, 255, 0.30);
  --glow-mint: rgba(79, 240, 184, 0.18);
  --shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.8);
  --code-bg: #0c0e25;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
code, .mono { font-family: var(--mono); }
code { background: var(--code-bg); border-radius: 5px; padding: 1px 6px; font-size: 0.92em; }

/* A shell command is one thing, and inline `code` inside a paragraph breaks it
   wherever the line happens to end -- mid-flag, mid-path. These get their own
   block, keep their own line breaks, and scroll inside themselves rather than
   pushing the page sideways. */
pre.cmd {
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text);
  -webkit-overflow-scrolling: touch;
}
pre.cmd code {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit; white-space: pre;
}
pre.cmd .c { color: var(--text-faint); }

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

/* ---- brand ---- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand .mark { height: 40px; width: auto; display: block; }
.brand .wordmark { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 8px; font-size: 14.5px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: var(--sans); transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hot); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--tint); }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---- hero ---- */
.hero {
  padding: 92px 0 84px; text-align: center;
  position: relative; overflow: hidden; border-top: none;
}
.hero::before {
  content: ""; position: absolute; inset: -45% -10% auto -10%; height: 540px;
  background: radial-gradient(ellipse at center, var(--glow), transparent 65%);
  pointer-events: none;
}
.hero .hero-mark {
  height: 132px; width: auto; margin: 0 auto 26px;
  display: block; position: relative;
  filter: drop-shadow(0 14px 30px rgba(16, 48, 61, 0.22));
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; letter-spacing: -0.035em;
  margin: 0 0 18px; position: relative; line-height: 1.08;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lede {
  max-width: 660px; margin: 0 auto 34px; color: var(--text-muted);
  font-size: 18.5px; position: relative;
}
.hero-ctas {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; position: relative;
}
.hero-ctas .btn { padding: 12px 26px; font-size: 15.5px; }
.hero-note {
  margin: 22px auto 0; color: var(--text-muted); font-size: 15px; position: relative;
}
.hero-note a { color: var(--accent); }

.badges {
  display: flex; gap: 10px; justify-content: center;
  margin-top: 30px; flex-wrap: wrap; position: relative;
}
.badge {
  font-family: var(--mono); font-size: 12px; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: 100px; padding: 4px 13px;
  background: var(--surface);
}
.badge strong { color: var(--accent); font-weight: 600; }

/* ---- not found ---- */
/* 404.php reuses the hero shell -- same glow, same centred mark -- and only
   needs the page to fill the viewport, since it has no sections under it to
   stop the footer riding up. */
.notfound { min-height: calc(100vh - 240px); display: flex; align-items: center; }
.notfound .wrap { width: 100%; }
.notfound-path {
  font-family: var(--mono); font-size: 13px; color: var(--text-faint);
  margin: 0 0 30px; position: relative;
}
.notfound-path code {
  color: var(--text-muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px;
  word-break: break-all;
}
/* The badge row is links here rather than labels, so it has to say so. */
.notfound a.badge { text-decoration: none; transition: border-color .15s, color .15s; }
.notfound a.badge:hover { border-color: var(--accent); color: var(--accent); }

/* ---- section shell ---- */
section { padding: 88px 0; border-top: 1px solid var(--border); }
section.tinted { background: var(--bg-alt); }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase; margin: 0 0 12px;
}
h2.section-title {
  font-size: clamp(27px, 3.4vw, 37px); font-weight: 800;
  letter-spacing: -0.02em; margin: 0 0 14px;
}
p.section-sub {
  color: var(--text-muted); max-width: 660px;
  font-size: 16.5px; margin: 0 0 48px;
}
.section-head { text-align: center; margin: 0 auto; max-width: 740px; }
.section-head p.section-sub { margin-left: auto; margin-right: auto; }
main > section[id] { scroll-margin-top: 86px; }
/* A heading linked to directly, rather than a whole section: same sticky
   header to clear, and nothing above it to absorb the overlap. */
.legal h2[id] { scroll-margin-top: 86px; }

/* ---- feature grid ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
}
.card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tint); color: var(--accent);
  margin-bottom: 16px;
}
.card .icon svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.card.warm .icon { background: var(--tint-warm); color: var(--warm); }
.card h3 { font-size: 17px; margin: 0 0 8px; }
.card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.card p + p { margin-top: 10px; }

/* ---- screenshots ---- */
/* align-items: start so the portrait phone card doesn't stretch the
   landscape card beside it into a block of empty white. */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.shot {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.shot img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--border); }
/* The phone capture is only 500px wide -- stretching it to a full grid
   cell just makes it soft, so cap it and centre it in the card instead. */
.shot.narrow { display: flex; flex-direction: column; align-items: center; }
.shot.narrow img { max-width: 340px; }
.shot.narrow .cap { width: 100%; border-top: 1px solid var(--border); }
.shot .cap { padding: 15px 18px; }
.shot .cap h4 { margin: 0 0 4px; font-size: 14.5px; }
.shot .cap p { margin: 0; color: var(--text-muted); font-size: 13.5px; }
.shot-note {
  text-align: center; color: var(--text-faint); font-size: 13.5px;
  margin: 28px auto 0; max-width: 640px; font-family: var(--mono);
}

/* ---- check lists ---- */
ul.checks { list-style: none; padding: 0; margin: 18px 0 0; }
ul.checks li {
  padding-left: 27px; position: relative; margin-bottom: 11px;
  color: var(--text-muted); font-size: 15px;
}
ul.checks li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}

/* ---- license band ---- */
.license-band {
  background: linear-gradient(135deg, var(--tint), transparent 70%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; display: flex; align-items: center; gap: 32px;
  justify-content: space-between; flex-wrap: wrap;
}
.license-band h3 { margin: 0 0 8px; font-size: 20px; }
.license-band p { margin: 0; color: var(--text-muted); font-size: 15px; max-width: 540px; }

/* ---- about + AI disclosure ----
   Two cards in one band. align-items: start so the short disclosure card
   does not stretch to the height of the About story beside it and end in a
   block of empty surface. minmax(0, ...) on both tracks because the prose
   carries <code> and long URLs that would otherwise push the grid wider
   than the wrap. */
.about-cols {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px; align-items: start;
}
.about-cols .panel {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 34px;
}
/* .prose centres itself at 780px, which is what this card is already doing
   for it -- let it fill the track instead. */
.about-cols .prose { max-width: none; margin: 0; }
.about-cols p:last-child { margin-bottom: 0; }

.disclosure {
  background: linear-gradient(135deg, var(--tint-warm), transparent 70%);
}
.disclosure .eyebrow { color: var(--warm); }
.disclosure h2 {
  font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 22px;
}
.disclosure h3 {
  font-size: 14px; margin: 0 0 7px; color: var(--text);
  letter-spacing: 0.01em;
}
.disclosure p { color: var(--text-muted); font-size: 14.8px; margin: 0 0 18px; }
.disclosure a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---- prose ---- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 {
  font-size: clamp(24px, 3vw, 32px); font-weight: 800;
  letter-spacing: -0.02em; margin: 0 0 24px;
}
.prose p { color: var(--text-muted); font-size: 16.5px; margin: 0 0 20px; }
.prose p strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  margin: 32px 0; padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent);
  color: var(--text); font-size: 18px; font-style: normal;
}

/* ---- footer ---- */
footer { border-top: 1px solid var(--border); padding: 46px 0; background: var(--bg-alt); }
footer .wrap {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 24px;
}
footer .brand { margin-bottom: 12px; }
footer .brand .mark { height: 36px; }
footer .copy { color: var(--text-faint); font-size: 12.5px; margin-top: 8px; max-width: 420px; }
footer .copy a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
footer .copy a:hover { color: var(--accent); }
footer .built-with { text-align: center; color: var(--text-faint); font-size: 12.5px; margin-top: 28px; padding: 0 24px; }
footer .built-with a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
footer .built-with a:hover { color: var(--accent); }
footer .links { display: flex; gap: 22px; font-size: 13.5px; color: var(--text-faint); flex-wrap: wrap; }
footer .links a { text-decoration: none; }
footer .links a:hover { color: var(--accent); }

/* ---- footer: the permanent consent control ---- */
/* A <button> because it acts on this page rather than navigating, styled to
   sit in the link row without announcing itself as something different. */
footer .links .linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit; font-size: 13.5px;
}
footer .links .linklike:hover { color: var(--accent); }
footer .links .linklike[hidden] { display: none; }

/* ---- consent banner ---- */
/* Fixed to the bottom, over the page rather than in front of it: a visitor
   who never answers must still be able to read every word here. Consent
   conditioned on access is not freely given, so a wall would not just be
   rude, it would fail to be consent at all. */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--surface-raised);
  border-top: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  padding: 18px 0;
}
.consent[hidden] { display: none; }
.consent-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 26px; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.consent-text { flex: 1 1 460px; min-width: 0; }
.consent-title {
  font-size: 16px; font-weight: 700; margin: 0 0 6px;
  letter-spacing: -0.01em; color: var(--text);
}
.consent p { margin: 0 0 6px; color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.consent p:last-child { margin-bottom: 0; }
.consent-current { color: var(--text-faint); font-style: italic; }
.consent-more a {
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
}

/* Both buttons are deliberately identical in size, weight and colour.
   Dressing Accept up as the primary action and leaving Decline a quiet
   outline is the dark pattern regulators name first, and equal prominence
   is the actual requirement -- so it is pinned here rather than left to
   whoever next edits the markup. */
.consent-actions { display: flex; gap: 12px; flex: 0 0 auto; }
.consent-actions .btn {
  padding: 11px 24px; font-size: 15px; min-width: 132px; justify-content: center;
}

@media (max-width: 640px) {
  .consent { padding: 16px 0; }
  .consent-inner { gap: 14px; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1 1 0; min-width: 0; }
}

/* ---- long-form document pages ---- */
/* Scoped to .legal, NOT to bare .prose. .prose is shared with the License
   and About sections, and defining these on .prose put a second rule set
   later in the file that quietly won the cascade against the first --
   headings there dropped from clamp(24px,3vw,32px)/800 to 21px/700 and body
   text from 16.5px to 15.5px, on a page nobody had touched. A long document
   does want different spacing from a marketing section, so the difference
   is real; it just has to be asked for by name. */
.legal h2 {
  font-size: 21px; font-weight: 700; letter-spacing: -0.02em;
  margin: 36px 0 10px; color: var(--text);
}
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 20px; margin: 10px 0 18px; color: var(--text-muted); }
.legal li { margin-bottom: 8px; }
.legal code {
  font-family: var(--mono); font-size: 13px;
  background: var(--code-bg); padding: 2px 6px; border-radius: 5px; color: var(--text);
}
.legal .updated { color: var(--text-faint); font-size: 13px; margin-bottom: 26px; }
.legal table {
  width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 14.5px;
}
.legal th, .legal td {
  text-align: left; padding: 10px 12px; vertical-align: top;
  border-bottom: 1px solid var(--border); color: var(--text-muted);
}
.legal th { color: var(--text); font-weight: 600; }
/* A table of cookie names has no useful narrow layout, so it scrolls in its
   own box rather than pushing the page sideways on a phone. */
.legal .scroll-x { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .twocol { grid-template-columns: 1fr; gap: 32px; }
  .twocol + .twocol { margin-top: 32px; }
  .shots { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; gap: 20px; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .license-band { padding: 26px; }
  .about-cols .panel { padding: 26px 22px; }
  .hero { padding: 64px 0 56px; }
  footer .wrap { flex-direction: column; }
}

/* --- Screenshots carousel -------------------------------------------------
   The grid above is what ships in the markup and what a reader without
   JavaScript keeps. shots.js adds .is-carousel, and everything below only
   applies once it has. */
.shots.is-carousel { display: block; position: relative; }
.shots.is-carousel .shot { display: none; }
.shots.is-carousel .shot.is-current { display: block; }
.shots.is-carousel .shot { cursor: zoom-in; }
.shots.is-carousel .shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shots.is-carousel .shot.narrow img { max-width: 340px; }

.shots-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.shots-nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  background: var(--surface-raised); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
}
.shots-nav:hover { border-color: var(--accent); color: var(--accent); }
.shots-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shots-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.shots-dots { display: flex; align-items: center; gap: 8px; }
.shots-dot {
  width: 8px; height: 8px; padding: 0; border-radius: 999px; cursor: pointer;
  background: var(--border); border: 0; transition: background .12s, transform .12s;
}
.shots-dot:hover { background: var(--text-faint); }
.shots-dot.is-current { background: var(--accent); transform: scale(1.35); }
.shots-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- The larger view ------------------------------------------------------ */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: clamp(12px, 4vw, 48px);
  background: rgba(0, 0, 0, .82);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1420px, 100%); max-height: 100%; display: flex; flex-direction: column; }
.lightbox img {
  display: block; max-width: 100%; max-height: calc(100vh - 160px);
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.lightbox figcaption { color: #fff; text-align: center; font-size: 14px; padding: 14px 4px 0; }
.lightbox-close, .lightbox-nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; flex: none;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; cursor: pointer;
}
.lightbox-close { position: absolute; top: 16px; right: 16px; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .2); }
.lightbox-close:focus-visible, .lightbox-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 700px) {
  /* No room for arrows either side of the picture; the dots and swipe-sized
     targets under it are enough. */
  .lightbox-nav { position: absolute; bottom: 18px; }
  .lightbox-nav.prev { left: 18px; }
  .lightbox-nav.next { right: 18px; }
  .lightbox figcaption { padding-bottom: 68px; }
}

/* --- Feature tiles --------------------------------------------------------
   The section ships as the card grid above and stays one without JavaScript.
   features.js adds .is-deck, and everything here hangs off that. */
.grid.is-deck { grid-template-columns: repeat(4, 1fr); gap: 14px; }

.tile {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 14px; text-align: left; cursor: pointer;
  background: var(--surface-raised); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; font-size: 14.5px; line-height: 1.35;
  transition: border-color .12s, background .12s, transform .12s;
}
.tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile.is-open { border-color: var(--accent); background: var(--surface); }
.tile .icon { flex: none; margin: 0; width: 30px; height: 30px; }
/* The tile clones the card's icon (features.js), which puts the same <svg>
   outside `.card .icon` -- where every paint property it had was set. Without
   these it falls back to the SVG default of a solid black fill, which is what
   the tiles rendered until 2026-09-10. Size here, paint from the same values
   the card uses. */
.tile .icon svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.tile-label { flex: 1 1 auto; font-weight: 550; }
.tile-chev { flex: none; color: var(--text-faint); display: inline-flex; transition: transform .16s; }
.tile-chev svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile.is-open .tile-chev { transform: rotate(180deg); color: var(--accent); }

/* Spans every column, so opening one never leaves the row ragged. */
/* The open panel takes the emphasis the stylesheet already uses for a picked
   state -- accent border over an accent tint, the same pairing as a ghost
   button under the pointer. The tint is translucent, so it is laid over an
   opaque surface rather than over whatever the section happens to be. */
.tile-panel {
  grid-column: 1 / -1; position: relative;
  background: linear-gradient(var(--tint), var(--tint)), var(--surface-raised);
  border: 1px solid var(--accent); border-radius: var(--radius);
  box-shadow: 0 0 0 3px var(--tint);
  padding: 20px 52px 20px 22px;
  opacity: 0; transform: translateY(-4px); transition: opacity .18s ease, transform .18s ease;
}
.tile-panel.is-in { opacity: 1; transform: none; }
.tile-panel[hidden] { display: none; }
.tile-panel h3 { margin: 0 0 8px; font-size: 16px; color: var(--accent); }
.tile-panel p { margin: 0; color: var(--text-muted); max-width: 68ch; }
.tile-panel p + p { margin-top: 10px; }
.tile-panel-close {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; cursor: pointer;
  background: transparent; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: 999px;
}
.tile-panel-close:hover { color: var(--accent); border-color: var(--accent); }
.tile-panel-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile-panel-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 1040px) { .grid.is-deck { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .grid.is-deck { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid.is-deck { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   Archivo, self-hosted, for headings.

   Google's CSS would pull the files from fonts.gstatic.com on every visit,
   which hands a third party the IP address of everyone who reads the page --
   and privacy.php promises the opposite. The two files are in fonts/, with
   their OFL license. Taken from inbuxa.org, which took this layout from here.
   --------------------------------------------------------------------------- */

:root {
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/archivo-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/archivo-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Site-wide, unlike inbuxa.org, which scopes this to its front page because
   that site's privacy and 404 pages were designed against the system stack.
   This site's were not: one face everywhere is the simpler promise. */
h1, h2, h3, h4 { font-family: var(--display); }


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

/* =========================================================================
   THE ROUTE BAR
   Not the sidebar shell the sibling sites share. One capsule floats over
   the page, and the page's sections sit in it as hops on a route, joined
   by a line that fills as the page is read -- the way a packet crosses a
   tunnel. Everything else (resources, the other products, privacy) lives
   in the route menu, laid out like a VPN client's server list. What stays
   familiar from the family: the jump palette on Ctrl K and /, the
   segmented theme switch, Get started on the right.
   ========================================================================= */
:root {
  --ground: var(--bg); --surface-2: var(--surface-raised); --raised: var(--surface-raised);
  --ink: var(--text); --ink-soft: var(--text-muted); --ink-faint: var(--text-faint);
  --line: var(--border); --line-strong: var(--border-strong);
  --accent-ink: var(--on-accent);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
  --font-mono: var(--mono);
  --rb-h: 58px; --rb-top: 12px; --rb-max: 1240px;
  --tone-mint: #4ff0b8; --tone-orange: #f9a34b; --tone-sky: #6cc8ff; --tone-violet: #a896ff;
  --tone-amber: #f5c84f; --tone-pink: #ff7ac6; --tone-slate: #a9aed8;
  --tone-mix: 16%;
}
:root[data-theme="light"] {
  --shadow-lg: 0 30px 60px -30px rgba(19, 21, 58, 0.35);
  --tone-mint: #00795a; --tone-orange: #b0600c; --tone-sky: #1a6fb0; --tone-violet: #5a43d6;
  --tone-amber: #8a6400; --tone-pink: #b3246f; --tone-slate: #4b4f7e;
  --tone-mix: 11%;
}
html { color-scheme: dark; scroll-padding-top: calc(var(--rb-h) + var(--rb-top) + 18px); }
:root[data-theme="light"] { color-scheme: light; }
.tone-mint { --t: var(--tone-mint); } .tone-orange { --t: var(--tone-orange); }
.tone-sky { --t: var(--tone-sky); } .tone-violet { --t: var(--tone-violet); }
.tone-amber { --t: var(--tone-amber); } .tone-pink { --t: var(--tone-pink); }
.tone-slate { --t: var(--tone-slate); }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 90;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 0.8rem;
  padding: 0.6rem 1rem; text-decoration: none;
}
.skip:focus { left: 0; }

.itile {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  color: var(--t, var(--accent));
  background: color-mix(in oklab, var(--t, var(--accent)) var(--tone-mix), transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--t, var(--accent)) 20%, transparent);
}
.itile-md { width: 1.85rem; height: 1.85rem; border-radius: 9px; font-size: 1rem; }

kbd {
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft);
  background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 0.05rem 0.4rem;
}

/* The page behind it all: a faint violet bloom at the top, so the capsule
   has something to float over. Fixed, so it never moves with the page. */
body {
  background:
    radial-gradient(1200px 520px at 78% -160px, var(--glow), transparent 70%),
    radial-gradient(900px 420px at 0% -120px, var(--glow-mint), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

/* ---- the capsule ---- */
.routebar {
  position: sticky; top: var(--rb-top); z-index: 40;
  padding: 0 16px; margin-top: var(--rb-top);
  pointer-events: none;
}
.rb-capsule {
  pointer-events: auto; position: relative;
  max-width: var(--rb-max); margin: 0 auto; height: var(--rb-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 8px 0 14px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border: 1px solid color-mix(in oklab, var(--line-strong) 80%, transparent);
  box-shadow: 0 1px 0 0 color-mix(in oklab, #fff 6%, transparent) inset, var(--shadow-lg);
}
:root[data-theme="light"] .rb-capsule {
  background: color-mix(in oklab, #fff 82%, transparent);
  box-shadow: 0 14px 40px -22px rgba(19, 21, 58, 0.35);
}
.rb-capsule .brand { gap: 8px; }
.rb-capsule .brand .mark { height: 32px; }
.rb-capsule .brand .wordmark { font-size: 18.5px; }

/* The reading line along the capsule's foot: only where the hops have
   folded away, since there the hops' own line is not there to show it. */
.rb-progress {
  position: absolute; left: 26px; right: 26px; bottom: -1px; height: 2px;
  overflow: hidden; border-radius: 2px; display: none;
}
.rb-progress > span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  transform-origin: left; transform: scaleX(0);
}

/* ---- the hops ---- */
.hops {
  position: relative; flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 4px; height: 100%; padding: 0 6px;
}
.hop-track {
  position: absolute; left: 20px; right: 20px; top: 50%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px);
  transform: translateY(13px);
}
.hop-fill {
  position: absolute; left: 0; top: -0.5px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  box-shadow: 0 0 10px var(--accent);
  border-radius: 2px;
  transition: width .18s linear;
}
.hop {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 4px 8px 0; min-width: 0;
  text-decoration: none; color: var(--ink-faint);
  font-size: 13px; font-weight: 550; line-height: 1.2; white-space: nowrap;
  transition: color .15s;
}
.hop:hover { color: var(--ink); }
.hop-no {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em;
  color: var(--ink-faint); opacity: 0.8;
}
.hop-node {
  order: 3; margin-top: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 0 0 1.5px var(--line-strong);
  transition: background .2s, box-shadow .2s;
}
.hop.passed .hop-node { background: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
.hop.here { color: var(--ink); }
.hop.here .hop-no { color: var(--accent); opacity: 1; }
.hop.here .hop-node {
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 28%, transparent), 0 0 12px var(--accent);
}

/* ---- the capsule's right end ---- */
.rb-end { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.rb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; min-width: 38px; padding: 0 10px; border-radius: 999px;
  background: transparent; color: var(--ink-soft);
  border: 1px solid transparent; font: inherit; font-size: 1rem; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.rb-btn:hover { background: var(--surface-2); color: var(--ink); }
.rb-btn[hidden] { display: none; }
.rb-swag { font-size: 13.5px; font-weight: 600; text-decoration: none; }
.rb-jump kbd { font-size: 0.62rem; }
.rb-route { border-color: var(--line); }
.rb-route:hover { border-color: var(--accent); color: var(--accent); }
.rb-route .rt-here { display: none; }

.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 999px; border: 1px solid var(--line); }
.seg button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.95rem; height: 1.7rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-faint); font-size: 0.92rem; cursor: pointer;
  transition: background .15s, color .15s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.rb-start { border-radius: 999px; }

/* ---- the route menu: a VPN client's server list ---- */
.route {
  /* The UA puts a popover in the middle of the screen; this one drops from
     the capsule's right end instead. */
  position: fixed; inset: auto;
  top: calc(var(--rb-top) + var(--rb-h) + 10px);
  right: max(16px, calc((100vw - var(--rb-max)) / 2 + 16px));
  width: 22rem; max-height: calc(100dvh - var(--rb-top) - var(--rb-h) - 26px);
  margin: 0; padding: 10px; overflow-y: auto; scrollbar-width: thin;
  background: var(--raised); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 20px;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-6px) scale(.985); transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease, overlay .16s allow-discrete, display .16s allow-discrete;
}
.route:popover-open { opacity: 1; transform: none; }
@starting-style { .route:popover-open { opacity: 0; transform: translateY(-6px) scale(.985); } }
.route::backdrop { background: transparent; }

.route-head {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 4px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}
.route-label {
  margin: 0; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
}
.route-status {
  display: inline-flex; align-items: center; gap: 7px; margin-left: auto;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent);
  padding: 3px 10px; border-radius: 999px; background: var(--tint);
}
.lamp {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
  animation: lamp 2.4s ease-in-out infinite;
}
@keyframes lamp { 50% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 0%, transparent); } }
.route-close { height: 32px; min-width: 32px; padding: 0; }
.route-group { padding: 8px 0 4px; }
.route-group > .route-label { padding: 2px 10px 6px; }
.route-list { display: flex; flex-direction: column; gap: 2px; }
.route-item {
  display: flex; align-items: center; gap: 0.7rem;
  min-height: 2.6rem; padding: 0.3rem 0.55rem; border-radius: 12px;
  text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; font-weight: 500;
  transition: background .12s, color .12s;
}
.route-item:hover { background: var(--surface-2); color: var(--ink); }
:root[data-theme="light"] .route-item:hover { background: var(--bg-alt); }
.route-item.here { background: var(--tint); color: var(--ink); font-weight: 600; }
.route-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-no { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-faint); }
.route-item.here .route-no { color: var(--accent); }
.route-item.here .route-no::before { content: "you are here · "; }
.route-item .out { font-size: 0.85rem; color: var(--ink-faint); }
.route-item-note .route-text { display: flex; flex-direction: column; line-height: 1.25; }
.route-item-note .route-text small { font-size: 11.5px; color: var(--text-faint); font-weight: 400; }
.route-item-note b.inbuxa { color: var(--warm); }
/* On a wide screen the hops are already in the bar; the menu keeps the rest. */
.route-hops-group { display: none; }

.route-foot {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 6px; padding: 10px 10px 4px; border-top: 1px solid var(--line);
}
.route-foot a { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); text-decoration: none; }
.route-foot a:hover { color: var(--accent); }
.route-seg { margin-right: auto; }

/* ---- narrower: the hops fold away, numbers first ---- */
@media (max-width: 1240px) {
  .hop-no { display: none; }
  .hop-track { transform: translateY(8px); }
}
@media (max-width: 1080px) {
  .hops { display: none; }
  .rb-progress { display: block; }
  .rb-route { padding: 0 12px 0 14px; }
  .rb-route .rt-here:not([hidden]) {
    display: inline-flex; align-items: baseline; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--ink);
  }
  .rt-here .rt-no { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); }
  .route .route-hops-group { display: block; }
  .rb-end { margin-left: auto; }
}
@media (max-width: 680px) {
  :root { --rb-h: 54px; --rb-top: 8px; }
  .routebar { padding: 0 10px; }
  .rb-capsule { gap: 8px; padding: 0 6px 0 10px; }
  .rb-seg, .rb-start, .rb-jump kbd, .rb-swag span { display: none; }
  .rb-jump { padding: 0; }
  .rb-capsule .brand .mark { height: 28px; }
  .rb-capsule .brand .wordmark { font-size: 17px; }

  /* A bottom sheet, in thumb reach, rather than a drop-down. */
  .route {
    inset: auto 0 0 0; width: auto; max-height: 82dvh;
    border-radius: 22px 22px 0 0; border-bottom: 0;
    padding: 8px 10px calc(14px + env(safe-area-inset-bottom));
    transform: translateY(24px); transform-origin: bottom center;
  }
  .route:popover-open { transform: none; }
  @starting-style { .route:popover-open { opacity: 0; transform: translateY(24px); } }
  .route::backdrop { background: rgba(4, 5, 16, 0.55); }
  .route::before {
    content: ""; display: block; width: 40px; height: 4px; border-radius: 4px;
    background: var(--line-strong); margin: 2px auto 10px;
  }
}
@media (max-width: 380px) {
  .rb-route .rt-here .rt-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .route, .hop-fill { transition: none; }
  .lamp { animation: none; }
}

/* =========================================================================
   JUMP PALETTE
   ========================================================================= */
.palette {
  width: min(36rem, calc(100vw - 2rem)); max-height: min(28rem, 70vh);
  margin: 12vh auto auto; padding: 0; border: 1px solid var(--line-strong); border-radius: 18px;
  background: var(--raised); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden;
}
.palette::backdrop { background: rgba(4, 5, 16, 0.6); backdrop-filter: blur(2px); }
.palette-box { display: flex; flex-direction: column; max-height: inherit; }
.palette-input { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink-faint); }
.palette-input .i { font-size: 1.1rem; }
.palette-input input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 1rem; color: var(--ink);
}
.palette-list { list-style: none; margin: 0; padding: 0.4rem; overflow-y: auto; }
.palette-list li {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.6rem; border-radius: 11px; cursor: pointer;
}
.palette-list li[aria-selected="true"] { background: var(--tint); }
.palette-list .pl-name { font-weight: 600; font-size: 0.92rem; }
.palette-list .pl-note { color: var(--ink-faint); font-size: 0.8rem; margin-left: auto; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.palette-list .pl-empty { color: var(--ink-faint); cursor: default; justify-content: center; padding: 1.2rem; }


/* =========================================================================
   PAGE
   ========================================================================= */
.wrap { max-width: 1200px; }
main { display: block; }

/* The hero, split: words left, the console right, in a tunnel. */
/* overflow-x: clip, not hidden: the tunnel may spill past the window's
   edge on a phone, but the hero must not become a scroll container. */
.hero-split { text-align: left; padding: 64px 0 88px; overflow: visible; overflow-x: clip; }
.hero-split::before { display: none; }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 60px); align-items: center;
}
@media (max-width: 1100px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-split h1 { font-size: clamp(40px, 5.4vw, 68px); margin-bottom: 20px; letter-spacing: -0.04em; }
.hero h1 .accent {
  color: var(--accent);
  background: linear-gradient(95deg, var(--accent) 10%, var(--violet) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-split p.lede { margin: 0 0 30px; max-width: 560px; }
.hero-split .hero-ctas, .hero-split .badges { justify-content: flex-start; }
.hero-split .hero-note { margin-left: 0; }
.hero-ctas .btn { border-radius: 999px; }
.release-note {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px;
  font-family: var(--mono); font-size: 12px; color: var(--text-muted);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 14px 5px 8px;
}
.release-note .lamp { margin: 0 2px 0 4px; }
.release-note a { color: var(--accent); text-decoration: none; }
.release-mark { height: 22px; width: auto; }
.badge { border-radius: 999px; background: color-mix(in oklab, var(--surface) 70%, transparent); }

.hero-shot { position: relative; }
/* The tunnel: rings narrowing to a vanishing point behind the console. */
.tunnel {
  position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 50%; width: 165%; height: auto; max-width: none;
  transform: translate(-50%, -52%);
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.tunnel .ring { fill: none; stroke: url(#tunnel-stroke); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
:root[data-theme="light"] .tunnel .ring { stroke-width: 1.25; }
.tunnel .s0 { stop-color: var(--accent); stop-opacity: .75; }
.tunnel .s1 { stop-color: var(--violet); stop-opacity: .75; }
.tunnel .packet { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.tunnel .packet.v { fill: var(--violet); }
@media (prefers-reduced-motion: reduce) { .tunnel .packet { display: none; } }
.window {
  position: relative; z-index: 1;
  border: 1px solid var(--border-strong); border-radius: 16px; overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 80px -20px var(--glow);
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-raised); }
.window-bar .lamp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.window-bar .lamp-dot.on { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.window-name { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: var(--text-faint); margin-left: 6px; }
.window-state {
  margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.window img { display: block; width: 100%; height: auto; }
.window .shot-light { display: none; }
:root[data-theme="light"] .window .shot-light { display: block; }
:root[data-theme="light"] .window .shot-dark { display: none; }
/* The cat, peeking over the window's corner. */
.hero-cat {
  position: absolute; z-index: 2; width: auto; height: 86px; right: -10px; top: -58px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}
@media (max-width: 560px) { .hero-cat { height: 64px; top: -42px; right: 4px; } }
.hero-shot-note { position: relative; z-index: 1; margin: 14px 0 0; font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
.hero-shot-note a { color: var(--accent); }

/* Sections. No rules between them: each band is set off by its ground, and
   the head carries its hop number, the same one the bar shows. */
section { padding: 84px 0; border-top: 0; }
section.tinted {
  background:
    radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--violet) 14%, transparent) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--bg-alt);
  border-block: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}
.section-head { text-align: left; margin: 0 0 42px; max-width: 760px; }
.section-head p.section-sub { margin-left: 0; margin-right: 0; margin-bottom: 0; }
main { counter-reset: hop; }
main > section[id]:not(#home) { counter-increment: hop; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6;
}
main > section[id]:not(#home) .eyebrow::before {
  content: counter(hop, decimal-leading-zero);
  width: auto; height: auto; opacity: 1; background: var(--tint);
  font-size: 11px; letter-spacing: 0.06em; line-height: 1;
  padding: 5px 8px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 35%, transparent);
}
main > section[id] .panel + .panel .eyebrow::before { content: none; display: none; }
main > section[id] .panel + .panel .eyebrow { color: var(--warm); }
h2.section-title { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -0.035em; line-height: 1.06; }

/* Cards with a lit top edge: mint fading into the border, as if the
   light at the end of the tunnel caught them. */
.card, .shot, .about-cols .panel, .twocol, .license-band, .tile {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface-raised), var(--surface-raised)) padding-box,
    linear-gradient(170deg, color-mix(in oklab, var(--accent) 45%, var(--border)), var(--border) 38%, var(--border)) border-box;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 14px 32px -16px rgba(0, 0, 0, 0.6);
}
:root[data-theme="light"] .card, :root[data-theme="light"] .shot, :root[data-theme="light"] .about-cols .panel,
:root[data-theme="light"] .twocol, :root[data-theme="light"] .license-band, :root[data-theme="light"] .tile {
  box-shadow: 0 1px 2px rgba(19, 21, 58, 0.05), 0 10px 26px -14px rgba(19, 21, 58, 0.2);
}
.card { transition: transform .15s; }
.card:hover { transform: translateY(-2px); }
.card .icon { border-radius: 12px; }
.card:nth-child(3n+2) .icon { background: var(--tint-violet); color: var(--violet); }
.tile:hover, .tile.is-open {
  background:
    linear-gradient(var(--surface-raised), var(--surface-raised)) padding-box,
    linear-gradient(var(--accent), var(--accent)) border-box;
}
.tile-panel { border-radius: var(--radius); }
.twocol {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 44px;
  border-radius: var(--radius); padding: 32px 34px;
}
.twocol h3 { margin: 0; font-size: 17px; }
@media (max-width: 860px) { .twocol { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 560px) { .twocol { padding: 22px 20px; } }
.license-band {
  background:
    radial-gradient(600px 200px at 0% 0%, var(--tint), transparent 70%) padding-box,
    radial-gradient(500px 200px at 100% 100%, var(--tint-violet), transparent 70%) padding-box,
    linear-gradient(var(--surface-raised), var(--surface-raised)) padding-box,
    linear-gradient(170deg, color-mix(in oklab, var(--accent) 45%, var(--border)), var(--border) 38%, var(--border)) border-box;
}
.btn { border-radius: 999px; }
.btn-primary { box-shadow: 0 6px 22px -8px color-mix(in oklab, var(--accent) 70%, transparent); }
ul.checks li::before {
  content: ""; top: 0.45em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--tint);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
ul.checks li::after {
  content: ""; position: absolute; left: 4.5px; top: calc(0.45em + 4.5px);
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.shot-note, .companions > h3 { text-align: left; margin-left: 0; }
.prose { margin-left: 0; margin-right: 0; }
.about-cols .panel { border-radius: var(--radius); }
.shots-dot.is-current { background: var(--accent); }

footer { background: var(--bg-alt); border-top: 1px solid var(--border); }
footer .wrap { max-width: 1200px; }

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