/* ihasvpn.org
   Carried over from ihasmail.org, whose layout and palette this site shares
   on purpose: ihasvpn is in the same family. The palette is lifted from the
   logo: the cat's orange (#F9A34B), the shield's teal (#46CAC3) and the ink
   outline both are drawn in. Teal leads, orange is the highlight, and the
   ink becomes the dark ground.

   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: #0d2430;
  --bg-alt: #0a1c26;
  --surface: #12303e;
  --surface-raised: #163a4a;
  --border: #21505f;
  --border-strong: #2e6a7a;

  --text: #eaf6f6;
  --text-muted: #a3c3cb;
  --text-faint: #86aab4;

  --accent: #46cac3;
  --accent-hot: #6fdcd6;
  --accent-soft: #46cac3;
  --on-accent: #062028;

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

  --tint: rgba(70, 202, 195, 0.10);
  --tint-warm: rgba(249, 163, 75, 0.12);
  --glow: rgba(70, 202, 195, 0.26);
  --shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.75);
  --code-bg: #0a1c26;

  --radius: 12px;
  --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: #f6fbfb;
  --bg-alt: #eaf4f4;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: #d2e3e5;
  --border-strong: #b3d0d3;

  --text: #10303d;
  --text-muted: #4a6b76;
  --text-faint: #57737c;

  /* Teal darkened for text and edges on a light ground, so it clears AA. */
  --accent: #0b6b67;
  --accent-hot: #095553;
  --accent-soft: #46cac3;
  --on-accent: #ffffff;

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

  --tint: rgba(11, 107, 103, 0.09);
  --tint-warm: rgba(156, 88, 12, 0.10);
  --glow: rgba(70, 202, 195, 0.22);
  --shadow: 0 18px 44px -26px rgba(16, 48, 61, 0.42);
  --code-bg: #edf6f6;
}

:root[data-theme="dark"] {
  --bg: #0d2430;
  --bg-alt: #0a1c26;
  --surface: #12303e;
  --surface-raised: #163a4a;
  --border: #21505f;
  --border-strong: #2e6a7a;

  --text: #eaf6f6;
  --text-muted: #a3c3cb;
  --text-faint: #86aab4;

  --accent: #46cac3;
  --accent-hot: #6fdcd6;
  --accent-soft: #46cac3;
  --on-accent: #062028;

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

  --tint: rgba(70, 202, 195, 0.10);
  --tint-warm: rgba(249, 163, 75, 0.12);
  --glow: rgba(70, 202, 195, 0.26);
  --shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.75);
  --code-bg: #0a1c26;
}

* { 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;
}

/* ---- nav ---- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; 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);
}

nav.primary { display: flex; align-items: center; gap: 24px; }
nav.primary a:not(.btn) {
  text-decoration: none; color: var(--text-muted);
  font-size: 14.5px; font-weight: 500; transition: color .15s;
}
nav.primary a:not(.btn):hover { color: var(--text); }

/* ---- theme toggle ---- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: none; padding: 0;
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 9px;
  cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover {
  color: var(--accent); border-color: var(--border-strong);
  background: var(--tint);
}
.theme-toggle svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Show the icon for the theme you'd switch *to*: a sun while dark, a moon
   while light. Dark is the default, so the sun is the default too, and
   light is the only state that has to be spelled out. */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---- 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; }

.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 .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) {
  nav.primary a.hide-mobile { display: none; }
  .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; }
  nav.primary { gap: 12px; }
  .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; } }
