/* ==========================================================================
   Quasar — marketing + legal site
   Hand-written CSS. No framework, no build step.

   Design is grounded in the real Quasar app design system
   (quasar-frontend/src/theme): blaze orange on deep navy, steel/slate text,
   Orbitron / Saira / JetBrains Mono type, Tabler icon vocabulary, chamfered
   tactical corners. The cartographic contour linework is the signature
   element, rendered blaze-on-navy so it reads as *this* product.

   Committed dark theme (the brand's hero look). Fonts are self-hosted
   (SIL OFL) — no third-party requests, keeping the site's own privacy
   posture trivially clean.
   ========================================================================== */

/* ----- Self-hosted fonts (SIL OFL) -------------------------------------- */
@font-face {
  font-family: "Orbitron"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("assets/fonts/orbitron-700.woff2") format("woff2");
}
@font-face {
  font-family: "Orbitron"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("assets/fonts/orbitron-500.woff2") format("woff2");
}
@font-face {
  font-family: "Saira"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("assets/fonts/saira-400.woff2") format("woff2");
}
@font-face {
  font-family: "Saira"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("assets/fonts/saira-600.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("assets/fonts/jetbrains-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("assets/fonts/jetbrains-mono-500.woff2") format("woff2");
}

/* ----- Design tokens (ported from quasar-frontend theme) ---------------- */
:root {
  /* Navy backgrounds */
  --bg-void:     #04090f;
  --bg-base:     #050c15;
  --bg-surface:  #0b1a2a;
  --bg-panel:    #102439;
  --bg-elevated: #142b43;
  --bg-inset:    #081320;
  --bg-hover:    rgba(255,255,255,0.04);
  --bg-active:   rgba(255,106,26,0.14);
  --glass:       rgba(11,26,42,0.82);

  /* Blaze brand */
  --blaze:       #ff6a1a;
  --blaze-600:   #f2580a;
  --blaze-400:   #ff8b41;
  --blaze-300:   #ffae76;
  --on-blaze:    #1a0a02;
  --blaze-haze:  rgba(255,106,26,0.12);

  /* Steel / slate text */
  --text-hi:     #eaf2fa;
  --text-mid:    #8fa8c2;
  --text-lo:     #6e8ca8;
  --steel:       #4e789f;

  /* Lines */
  --line:        rgba(142,168,194,0.12);
  --line-soft:   rgba(142,168,194,0.18);
  --line-strong: rgba(142,168,194,0.30);
  --line-blaze:  rgba(255,106,26,0.55);
  --grid-line:   rgba(120,150,180,0.06);

  /* Signal palette (used sparingly) */
  --sig-lock:    #25e08a;
  --sig-caution: #ffb020;
  --sig-sos:     #ff3b45;
  --sig-track:   #34c9ff;
  --sig-route:   #b98cff;

  /* Fonts */
  --font-display: "Orbitron", "Saira", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ui: "Saira", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Rhythm */
  --measure: 66ch;
  --wrap: 70rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 3px;
  --radius-lg: 6px;
  --chamfer: 10px;

  --focus: var(--sig-track);
}

/* ----- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--bg-base);
  color: var(--text-mid);
  font-family: var(--font-ui);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* faint graticule wash — pure CSS, no image request */
  background-image:
    linear-gradient(to right,  var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center top;
}

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

h1, h2, h3, h4 { color: var(--text-hi); line-height: 1.12; margin: 0 0 0.5em; }
h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem);
  letter-spacing: 0.01em; line-height: 1.05;
}
h2 {
  font-family: var(--font-ui); font-weight: 600;
  font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.3rem); letter-spacing: -0.01em;
}
h3 { font-family: var(--font-ui); font-weight: 600; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); }
p { margin: 0 0 1rem; }
strong { color: var(--text-hi); font-weight: 600; }

a { color: var(--blaze); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blaze-400); }

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

::selection { background: var(--blaze); color: var(--on-blaze); }

/* ----- Layout helpers --------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 0.5rem; top: -3.5rem;
  background: var(--blaze); color: var(--on-blaze); font-weight: 600;
  padding: 0.5rem 0.9rem; border-radius: var(--radius);
  z-index: 100; transition: top 0.15s ease;
}
.skip-link:focus { top: 0.5rem; color: var(--on-blaze); }

/* Mono cartographic label */
.eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text-lo); margin: 0 0 1.1rem; display: block;
}
.eyebrow .tick { color: var(--blaze); }

/* Spot-height list marker */
.spots { list-style: none; margin: 0; padding: 0; }
.spots li { position: relative; padding-left: 1.7rem; margin-bottom: 0.55rem; color: var(--text-mid); }
.spots li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.72em;
  width: 7px; height: 7px; background: var(--blaze);
  transform: translateY(-50%) rotate(45deg);
}
.spots strong { color: var(--text-hi); }

/* Inline Tabler icons via same-document <use> */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.5rem; height: 1.5rem; flex: none; color: inherit; }
.icon-lg { width: 2rem; height: 2rem; }
.icon-sm { width: 1.1rem; height: 1.1rem; }

/* ----- Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 62px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: var(--text-hi); font-size: 1.05rem;
}
.brand:hover { color: var(--text-hi); }
.brand .mark { width: 28px; height: 28px; flex: none; }
.site-nav { display: flex; gap: clamp(0.85rem, 3vw, 1.9rem); align-items: center; }
.site-nav a {
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mid); text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blaze); }

/* ----- Buttons ---------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn-row--center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-ui); font-weight: 600;
  padding: 0.72rem 1.15rem; border-radius: var(--radius);
  border: 1px solid var(--blaze); background: var(--blaze); color: var(--on-blaze);
  text-decoration: none; line-height: 1.15;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { color: var(--on-blaze); background: var(--blaze-400); border-color: var(--blaze-400); transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn .btn-sub { display: block; font-size: 0.6rem; letter-spacing: 0.09em; text-transform: uppercase; opacity: 0.78; font-weight: 600; }
.btn .btn-main { display: block; font-size: 0.98rem; font-weight: 600; }

/* Stubbed store button (links not live yet) */
.btn--stub {
  background: transparent; color: var(--text-mid);
  border: 1px solid var(--line-strong); cursor: not-allowed;
}
.btn--stub[aria-disabled="true"] { pointer-events: none; }
.btn--stub .badge {
  font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blaze);
  border: 1px solid var(--line-blaze); border-radius: 999px;
  padding: 0.1rem 0.4rem; margin-left: 0.4rem;
}

.btn--ghost { background: transparent; color: var(--text-hi); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--bg-hover); color: var(--text-hi); border-color: var(--line-strong); }

/* ----- Sections --------------------------------------------------------- */
.section { padding-block: clamp(3rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.section-head { max-width: 48rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head p { color: var(--text-mid); font-size: 1.08rem; margin-bottom: 0; }

/* Chamfered tactical card with corner ticks */
.card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  padding: clamp(1.3rem, 3vw, 1.85rem);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.card .icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem; margin-bottom: 1rem;
  border: 1px solid var(--line-blaze); color: var(--blaze);
  background: var(--blaze-haze);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}
.card .icon-badge .icon { width: 1.5rem; height: 1.5rem; }
.card h3 { margin-top: 0; color: var(--text-hi); }
.card p { color: var(--text-mid); }
.card p:last-child { margin-bottom: 0; }
.card .idx { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--blaze); display: block; margin-bottom: 0.75rem; }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* ----- Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-top: none; background:
  radial-gradient(120% 120% at 85% 12%, rgba(255,106,26,0.10), transparent 55%),
  linear-gradient(180deg, var(--bg-void), var(--bg-base)); }
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(3.5rem, 11vw, 8rem); max-width: 62rem; }
.hero h1 { max-width: 16ch; color: var(--text-hi); }
.hero h1 .accent { color: var(--blaze); }
.hero .lede { font-size: clamp(1.1rem, 1rem + 0.7vw, 1.4rem); color: var(--text-mid); max-width: 48ch; }

/* Triad chip: Plan · Navigate · Operate */
.triad {
  display: inline-flex; flex-wrap: wrap; gap: 0.5rem 0.85rem;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-top: 1.9rem; align-items: center;
  border: 1px solid var(--line); padding: 0.6rem 1rem; border-radius: 999px;
  background: var(--bg-surface); color: var(--text-hi);
}
.triad .sep { color: var(--blaze); }

/* Hero contour backdrop */
.hero-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-art svg { position: absolute; right: -8%; top: 50%; transform: translateY(-50%); width: min(1150px, 120%); height: auto; }
@media (max-width: 800px) { .hero-art svg { right: -34%; opacity: 0.42; width: 175%; } }
.hero-art .contour { fill: none; stroke: var(--blaze); stroke-width: 1.3; opacity: 0.32; }
.hero-art .contour--index { stroke-width: 2; opacity: 0.62; }
.hero-art .coast { fill: none; stroke: var(--sig-track); stroke-width: 1.6; opacity: 0.5; }
.hero-art .spot-dot { fill: var(--blaze); }
.hero-art .spot-label { fill: var(--text-lo); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; }
.hero-art .grat { stroke: var(--line); stroke-width: 1; opacity: 0.55; }

/* One considered motion moment: contours draw in on load */
.hero-art .contour, .hero-art .coast {
  stroke-dasharray: 3000; stroke-dashoffset: 3000;
  animation: draw 2.6s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-art .contour:nth-of-type(2) { animation-delay: 0.07s; }
.hero-art .contour:nth-of-type(3) { animation-delay: 0.14s; }
.hero-art .contour:nth-of-type(4) { animation-delay: 0.21s; }
.hero-art .contour:nth-of-type(5) { animation-delay: 0.28s; }
.hero-art .contour:nth-of-type(6) { animation-delay: 0.35s; }
.hero-art .contour:nth-of-type(7) { animation-delay: 0.42s; }
.hero-art .contour:nth-of-type(8) { animation-delay: 0.49s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-art .contour, .hero-art .coast { animation: none; stroke-dashoffset: 0; }
}

/* ----- Layers strip ----------------------------------------------------- */
.layers { display: grid; gap: 1rem; }
@media (min-width: 640px) { .layers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .layers { grid-template-columns: repeat(4, 1fr); } }
.layer { border: 1px solid var(--line); padding: 1.2rem; background: var(--bg-surface); border-top: 2px solid var(--layer-accent, var(--blaze)); }
.layer .icon { color: var(--layer-accent, var(--blaze)); margin-bottom: 0.85rem; }
.layer h3 { font-size: 1.05rem; margin-bottom: 0.3rem; color: var(--text-hi); }
.layer p { font-size: 0.92rem; color: var(--text-mid); margin: 0; }
.layer--topo    { --layer-accent: var(--blaze); }
.layer--aerial  { --layer-accent: var(--sig-lock); }
.layer--nautical{ --layer-accent: var(--sig-track); }
.layer--terrain { --layer-accent: var(--blaze-300); }

/* ----- Activities ------------------------------------------------------- */
.activities { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.activities li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-hi);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.42rem 0.95rem;
  background: var(--bg-surface);
}
.activities li .icon-sm { color: var(--blaze); }

/* ----- Toolbelt (instrument-panel icon grid) ---------------------------- */
.toolbelt { display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); background: var(--line); border: 1px solid var(--line); margin-top: 1.5rem;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
@media (min-width: 620px) { .toolbelt { grid-template-columns: repeat(4, 1fr); } }
.toolbelt .tool { background: var(--bg-surface); padding: 1.15rem 1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.toolbelt .tool .icon { color: var(--blaze); }
.toolbelt .tool span { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.05em; color: var(--text-hi); text-transform: uppercase; }

/* ----- Split feature ---------------------------------------------------- */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1.05fr 0.95fr; } }
.split-art { border: 1px solid var(--line); background: var(--bg-surface); padding: 1.5rem; overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
.split-art svg { width: 100%; height: auto; }
.split-art .contour { fill: none; stroke: var(--blaze); stroke-width: 1.2; opacity: 0.4; }
.split-art .contour--index { stroke-width: 1.9; opacity: 0.7; }
.split-art .coast { fill: none; stroke: var(--sig-track); stroke-width: 1.4; opacity: 0.6; }
.split-art .spot-dot { fill: var(--blaze); }
.split-art .spot-label { fill: var(--text-lo); font-family: var(--font-mono); font-size: 12px; }
.split-art .grat { stroke: var(--line); stroke-width: 1; }

/* ----- Device mockups --------------------------------------------------- */
.devices { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); align-items: flex-end; justify-content: center; }
.device { position: relative; flex: none; }
.device__screen { position: relative; width: 100%; height: 100%; overflow: hidden;
  background: linear-gradient(160deg, #0c1c2b, #071019 62%); }
.device__screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.device__slot { position: absolute; inset: 0; display: grid; place-content: center; gap: 0.5rem;
  text-align: center; color: var(--text-lo); font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 1rem;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 26px 26px; }
.device__slot .icon { color: var(--blaze); margin-inline: auto; }
.device__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-hi); background: linear-gradient(transparent, rgba(4,9,15,0.85) 55%);
  padding: 1.4rem 0.8rem 0.7rem; text-align: center; }

/* Corner radius is proportional (percentage) so it reads as a real iPhone corner
   (~13% of width) at any device size, not a fixed px that looks huge when small.
   Screenshots are full-screen captures that already include the status bar, so the
   frame carries no fake notch, and the screen aspect matches the image exactly. */
.device--phone { width: min(272px, 74vw); padding: 7px; border-radius: 16% / 7.4%;
  background: #05090d; border: 1px solid var(--line-strong);
  box-shadow: 0 34px 64px -26px rgba(0,0,0,0.85), inset 0 0 0 1.5px rgba(255,255,255,0.05); }
.device--phone .device__screen { aspect-ratio: 660 / 1431; height: auto; border-radius: 13% / 6%; }

.device--tablet { width: min(340px, 82vw); padding: 12px; border-radius: 24px;
  background: #05090d; border: 1px solid var(--line-strong);
  box-shadow: 0 34px 64px -26px rgba(0,0,0,0.85), inset 0 0 0 1.5px rgba(255,255,255,0.05); }
.device--tablet .device__screen { aspect-ratio: 1908 / 2746; height: auto; border-radius: 12px; }

.device--web { width: min(620px, 94vw); border-radius: 12px; overflow: hidden;
  background: #05090d; border: 1px solid var(--line-strong);
  box-shadow: 0 34px 64px -26px rgba(0,0,0,0.85); }
.device--web .device__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px;
  background: #0a141d; border-bottom: 1px solid var(--line); }
.device--web .device__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.device--web .device__screen { aspect-ratio: 2490 / 1810; height: auto; }

/* Hero device cluster: web browser with a phone overlapping in front */
.hero-cluster { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
.hero-cluster .device--web { width: 100%; }
.hero-cluster .device--phone { position: absolute; left: -7%; bottom: -13%; width: 33%; z-index: 4; }
@media (max-width: 919px) {
  .hero-cluster { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; max-width: 420px; }
  .hero-cluster .device--phone { position: static; width: min(210px, 56vw); }
}

/* Platform tags */
.platform-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.platform-tags li { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-mono);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-hi);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.42rem 0.95rem; background: var(--bg-surface); }
.platform-tags li::before { content: ""; width: 7px; height: 7px; background: var(--blaze); transform: rotate(45deg); }

/* Hero two-column (with device) */
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero-device { justify-self: center; }

/* ----- Safety notice ---------------------------------------------------- */
.safety {
  border: 1px solid var(--sig-caution); border-left-width: 4px;
  background: rgba(255,176,32,0.06); padding: clamp(1.15rem, 3vw, 1.7rem) clamp(1.3rem, 3vw, 1.85rem);
}
.safety .eyebrow { color: var(--sig-caution); }
.safety .eyebrow .tick { color: var(--sig-caution); }
.safety p { margin-bottom: 0; color: var(--text-mid); }
.safety p + p { margin-top: 0.6rem; }
.safety strong { color: var(--text-hi); }

/* ----- Footer ----------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4rem); font-size: 0.92rem; background: var(--bg-void); }
.site-footer .cols { display: grid; gap: 1.75rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .site-footer .cols { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-lo); margin: 0 0 0.9rem; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--text-mid); text-decoration: none; }
.site-footer a:hover { color: var(--blaze); }
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.85rem; }
.footer-brand .mark { width: 30px; height: 30px; }
.footer-brand .brand { font-size: 1.1rem; }
.footer-tag { color: var(--text-lo); max-width: 30ch; font-size: 0.88rem; }
.footer-meta { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--text-lo); font-size: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; }
.footer-meta .attr { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ----- Legal / prose pages --------------------------------------------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal .wrap { max-width: 54rem; }
.legal-head { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.legal-head h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin-bottom: 0.6rem; }
.legal-head .lede { color: var(--text-mid); font-size: 1.1rem; max-width: var(--measure); }
.updated { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; color: var(--text-lo); text-transform: uppercase; }
.prose { max-width: var(--measure); color: var(--text-mid); }
.prose h2 { font-size: 1.4rem; margin-top: 2.75rem; scroll-margin-top: 5rem; color: var(--text-hi); }
.prose h2 .num { font-family: var(--font-mono); color: var(--blaze); font-size: 0.95rem; margin-right: 0.6rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.85rem; color: var(--text-hi); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--blaze); }
.prose a { color: var(--blaze); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.35rem 0; font-size: 0.92rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line-soft); padding: 0.65rem 0.8rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-panel); color: var(--text-hi); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.prose .placeholder {
  font-family: var(--font-mono); font-size: 0.85em; font-weight: 500;
  background: var(--blaze-haze); color: var(--blaze-300);
  padding: 0.05em 0.4em; border-radius: 3px; border: 1px dashed var(--line-blaze);
  white-space: nowrap;
}

.toc { border: 1px solid var(--line); background: var(--bg-surface); padding: 1.15rem 1.4rem; margin-bottom: 2.25rem;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.toc h2 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-lo); margin: 0 0 0.75rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: 0.35rem; break-inside: avoid; }
.toc a { color: var(--text-mid); text-decoration: none; }
.toc a:hover { color: var(--blaze); }
@media (max-width: 580px) { .toc ol { columns: 1; } }

.callout { border: 1px solid var(--line-blaze); border-left-width: 4px; padding: 1rem 1.3rem; background: var(--blaze-haze); margin: 1.6rem 0; }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-color: var(--sig-caution); background: rgba(255,176,32,0.06); }
.callout--info { border-color: var(--sig-track); background: rgba(52,201,255,0.05); }
.callout strong { color: var(--text-hi); }

/* ----- 404 -------------------------------------------------------------- */
.notfound { min-height: 72vh; display: grid; place-content: center; text-align: center; padding-block: 4rem; }
.notfound .code { font-family: var(--font-mono); font-size: clamp(3rem, 12vw, 6rem); color: var(--blaze); letter-spacing: 0.12em; margin: 0 0 0.5rem; }
.notfound h1 { font-size: clamp(1.4rem, 1rem + 2vw, 2rem); }
.notfound p { color: var(--text-mid); }

/* ----- Utilities -------------------------------------------------------- */
.lead { font-size: 1.12rem; color: var(--text-mid); }
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
