/*
 * css/landing.css: the public pages around the studio (/, /guide, the 404 page). Same Graphite Ledger system as
 * css/studio.css: 52 px header, 1 px warm borders, 5 to 7 px radii, Geist for the interface and Geist Mono for
 * data. Every colour is a css/tokens.css custom property (alpha variants through color-mix).
 *
 *   .site-*   chrome shared by the three pages: header, buttons, wallet chip, $BRAINDEV controls, footer
 *   .lp-*     the landing: hero + globe, ledger strip, live board, research loop, on-chain rows, token row
 *   .nf-*     the 404 page
 */

:root {
  --site-max: 1302px;                         /* the default board is 1302 px wide: it sits at 100% on a 1440 screen */
  --site-gutter: clamp(16px, 2.6vw, 56px);
  --site-shadow: color-mix(in srgb, var(--background) 82%, transparent);
  --site-dots: radial-gradient(var(--studio-edge) 1px, transparent 1px);
}

body.site-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.5;
}
body.site-page > main { flex: 1 0 auto; min-width: 0; display: flex; flex-direction: column; }
.site-page a { text-decoration-thickness: 1px; }
.site-page :is(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.site-noscript { margin: 0; padding: 14px var(--site-gutter); border-top: 1px solid var(--studio-line); color: var(--muted-foreground); font-size: 13px; }
.site-skip {
  position: absolute; left: 12px; top: -60px; z-index: 60; padding: 9px 14px; border-radius: 6px;
  background: var(--green); color: var(--primary-foreground); font-size: 13px; font-weight: 650; text-decoration: none;
}
.site-skip:focus { top: 8px; }

.lp-wrap {
  width: 100%;
  max-width: calc(var(--site-max) + 2 * var(--site-gutter));
  margin-inline: auto;
  padding-inline: var(--site-gutter);
}

/* ------------------------------------------------------------------ header (the studio header, as a site bar) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  background: var(--studio-header);
  border-bottom: 1px solid var(--studio-line);
}
.site-brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; border-radius: 6px; color: var(--foreground); text-decoration: none; }
.site-brand img { width: 26px; height: 26px; border-radius: 7px; }
.site-brand strong { font-size: 17px; font-weight: 700; line-height: 1; letter-spacing: .13em; }
.site-brand strong em { font-style: normal; color: var(--green); }
.site-brand > span { padding-left: 8px; border-left: 1px solid var(--studio-field); color: var(--studio-dim); font: 9px/14px var(--font-mono); letter-spacing: .13em; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; min-width: 0; }
.site-nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 10px; border-radius: 5px;
  color: var(--muted-foreground); font-size: 13px; text-decoration: none; white-space: nowrap;
  transition: background-color 100ms ease-out, color 100ms ease-out;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--studio-hover); color: var(--foreground); }
.site-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }

.site-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 6px 11px;
  border: 1px solid var(--studio-edge); border-radius: 5px; background: transparent; color: var(--foreground);
  font-size: 12px; font-weight: 550; line-height: 1.25; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 100ms ease-out, border-color 100ms ease-out;
}
.site-btn:hover { background: var(--studio-hover); }
.site-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.site-btn-primary { border-color: var(--green); background: var(--green); color: var(--primary-foreground); font-weight: 650; }
.site-btn-primary:hover { border-color: var(--green-hover); background: var(--green-hover); }
.site-connect.is-connected { padding-inline: 9px; }
.site-connect .mono { letter-spacing: .02em; }
.site-connect .site-chev { width: 12px; height: 12px; color: var(--studio-dim); }
.site-dot { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 14%, transparent); }
.site-connect.is-wrong .site-dot { background: var(--ochre); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ochre) 16%, transparent); }
body.site-page .bd-notice { left: 20px; bottom: 20px; max-width: min(520px, calc(100vw - 40px)); }

/* ------------------------------------------------------------------ $BRAINDEV controls */

.site-token { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-token-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 6px 12px;
  border: 1px solid var(--studio-edge); border-radius: 6px; background: transparent; color: var(--foreground);
  font-size: 13px; font-weight: 550; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 100ms ease-out, border-color 100ms ease-out;
}
.site-token-btn svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--muted-foreground); }
.site-token-btn:is(:disabled, [aria-disabled="true"]) { color: var(--muted-foreground); cursor: default; }
.site-token-btn:not(:disabled, [aria-disabled="true"]):hover { border-color: var(--green); background: var(--green-wash); }
.site-token-btn em { padding: 4px 6px; border-radius: 99px; background: var(--muted); color: var(--muted-foreground); font: 600 9px/1 var(--font-mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; }
.site-token-btn .mono { font-size: 12px; letter-spacing: .02em; }

/* ------------------------------------------------------------------ footer */

.site-footer { flex-shrink: 0; border-top: 1px solid var(--studio-line); background: var(--studio-header); }
.site-footer-in { display: flex; align-items: center; gap: 12px; min-height: 56px; padding-bottom: var(--safe-bottom); color: var(--studio-label); font-size: 12px; }
.site-footer-brand { display: inline-flex; flex-shrink: 0; border-radius: 6px; }
.site-footer-brand img { width: 22px; height: 22px; border-radius: 6px; }
.site-footer-text { letter-spacing: .01em; white-space: nowrap; }
.site-footer-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-footer-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 10px; border-radius: 5px; color: var(--muted-foreground); text-decoration: none; }
.site-footer-nav a:hover { background: var(--studio-hover); color: var(--foreground); }

/* ------------------------------------------------------------------ hero */

.lp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: min(calc(100vh - 52px), 920px);
  min-height: min(calc(100svh - 52px), 920px);
  background-color: var(--canvas);
  background-image: var(--site-dots);
  background-size: 20px 20px;
  border-bottom: 1px solid var(--studio-line);
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 72% 46%, transparent 0, color-mix(in srgb, var(--canvas) 45%, transparent) 62%, color-mix(in srgb, var(--background) 88%, transparent) 100%);
}
.lp-hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 56px);
  width: 100%;
  max-width: calc(var(--site-max) + 2 * var(--site-gutter));
  margin-inline: auto;
  padding: clamp(20px, 3.2vh, 40px) var(--site-gutter) clamp(16px, 2.4vh, 28px);
}
.lp-hero-copy { container-type: inline-size; min-width: 0; max-width: 620px; }
.lp-kicker { display: flex; align-items: center; gap: 10px; color: var(--green-muted); font: 650 11px/1 var(--font-mono); letter-spacing: .11em; text-transform: uppercase; }
.lp-live { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 14%, transparent); }
.lp-live[data-tone="partial"] { background: var(--ochre); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ochre) 16%, transparent); }
.lp-live[data-tone="down"] { background: var(--brick); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brick) 16%, transparent); }
.lp-hero h1 { margin-top: 24px; font-size: clamp(40px, 12.4cqi, 82px); font-weight: 450; line-height: 1; letter-spacing: -.055em; }
.lp-lead { max-width: 31em; margin-top: 26px; color: var(--muted-foreground); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; }
.lp-cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 34px; }
.lp-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 18px 10px 22px;
  border: 1px solid var(--green); border-radius: 7px; background: var(--green); color: var(--primary-foreground);
  font-size: 15px; font-weight: 650; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color 100ms ease-out, border-color 100ms ease-out;
}
.lp-cta:hover { border-color: var(--green-hover); background: var(--green-hover); }
.lp-cta svg { width: 17px; height: 17px; transition: transform 140ms ease-out; }
.lp-cta:hover svg { transform: translateX(3px); }
.lp-quiet { display: inline-flex; align-items: center; min-height: 32px; color: var(--sidebar-foreground); font-size: 14px; text-decoration: underline; text-decoration-color: var(--input); text-underline-offset: 5px; }
.lp-quiet:hover { color: var(--foreground); text-decoration-color: var(--green); }
.lp-fine { margin-top: 24px; color: var(--studio-dim); font: 11px/1.5 var(--font-mono); letter-spacing: .02em; }

/* ------------------------------------------------------------------ globe */

.lp-globe-col { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.lp-globe {
  position: relative;
  width: 100%;
  max-width: clamp(320px, calc(100vh - 226px), 800px);
  max-width: clamp(320px, calc(100svh - 226px), 800px);
  aspect-ratio: 1;
}
.lp-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.lp-globe.is-dragging { cursor: grabbing; }
.lp-globe-read {
  position: absolute; left: 2px; top: 0; display: flex; align-items: center; gap: 9px; pointer-events: none;
  color: var(--studio-dim); font: 10px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.lp-globe-read [data-stat="health"] { color: var(--muted-foreground); }
.lp-globe-read [data-stat="block"]:empty { display: none; }
.lp-caption { display: none; }
.lp-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 2px 0 0; padding: 0; list-style: none; color: var(--studio-dim); font: 10px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.lp-legend li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.lp-key { display: inline-block; width: 9px; height: 9px; flex-shrink: 0; border: 1.5px solid var(--muted-foreground); border-radius: 50%; }
.lp-key-size { width: 11px; height: 11px; border-color: var(--studio-dim); box-shadow: inset 0 0 0 2px var(--canvas), inset 0 0 0 5px var(--studio-dim); }
.lp-key-up { border-color: var(--teal); }
.lp-key-down { border-color: var(--brick); }
.lp-key-arc { width: 14px; height: 7px; border: 0; border-top: 1.5px solid var(--green); border-radius: 14px 14px 0 0 / 9px 9px 0 0; }

/* the card a node opens (the studio popover: flat border, restrained shadow, mono data) */
.lp-tip {
  position: absolute; left: 0; top: 0; z-index: 5; width: max-content; min-width: 200px; max-width: 256px; padding: 12px 14px 11px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--popover); box-shadow: 0 18px 50px var(--site-shadow);
  color: var(--foreground); pointer-events: none; will-change: transform;
}
.lp-tip-head { display: flex; align-items: center; gap: 10px; }
.lp-tip-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lp-tip-id strong { font: 650 13px/1 var(--font-mono); letter-spacing: .04em; }
.lp-tip-id span { max-width: 132px; overflow: hidden; color: var(--muted-foreground); font-size: 11px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.lp-tip-chg { display: inline-flex; align-items: center; gap: 3px; align-self: flex-start; padding-top: 1px; color: var(--muted-foreground); font: 650 11px/1 var(--font-mono); white-space: nowrap; }
.lp-tip-chg svg { width: 12px; height: 12px; }
.lp-tip-chg small { margin-left: 4px; color: var(--studio-dim); font-size: 9px; font-weight: 500; }
.lp-tip-price { margin-top: 13px; font: 700 25px/1 var(--font-mono); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.lp-tip-rows { display: grid; margin: 12px 0 0; }
.lp-tip-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 26px; border-top: 1px solid var(--border); }
.lp-tip-rows dt { color: var(--muted-foreground); font-size: 10px; }
.lp-tip-rows dd { margin: 0; font: 600 11px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.lp-tip-src { display: flex; align-items: center; gap: 6px; padding-top: 9px; border-top: 1px solid var(--border); color: var(--teal); font-size: 10px; }
.lp-tip-src i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.lp-tip-note { max-width: 216px; margin-top: 10px; color: var(--muted-foreground); font-size: 12px; line-height: 1.5; }
.lp-tip-hub { width: 28px; height: 28px; flex-shrink: 0; border: 1.5px solid var(--green); border-radius: 50%; background: radial-gradient(var(--green-bright) 0 3px, transparent 3.5px); }

/* ------------------------------------------------------------------ ledger strip under the hero */

.lp-ledger-band { border-top: 1px solid var(--studio-line); background: color-mix(in srgb, var(--studio-toolbar) 94%, transparent); }
.lp-ledger {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%;
  max-width: calc(var(--site-max) + 2 * var(--site-gutter)); margin: 0 auto; padding-inline: var(--site-gutter);
}
.lp-ledger > div { min-width: 0; padding: 15px 20px 16px; border-left: 1px solid var(--studio-line); }
.lp-ledger > div:first-child { padding-left: 0; border-left: 0; }
.lp-ledger dt { overflow: hidden; color: var(--muted-foreground); font: 600 10px/1.2 var(--font-mono); letter-spacing: .1em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.lp-ledger dd { margin: 9px 0 0; overflow: hidden; font: 650 19px/1 var(--font-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------ section heads */

.lp-section-head .eyebrow { color: var(--green-muted); }
.lp-section-head h2 { max-width: 20em; margin-top: 16px; font-size: clamp(28px, 3.1vw, 44px); font-weight: 450; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.lp-section-lead { max-width: 37em; margin-top: 16px; color: var(--muted-foreground); font-size: 15px; line-height: 1.65; }

/* ------------------------------------------------------------------ live board (the studio canvas, read only) */

.lp-board {
  padding-top: clamp(56px, 7vw, 96px);
  background-color: var(--canvas);
  background-image: var(--site-dots);
  background-size: 20px 20px;
  border-bottom: 1px solid var(--studio-line);
}
.lp-board-bar { margin-top: 36px; border-block: 1px solid var(--studio-line); background: var(--studio-toolbar); }
.lp-board-bar-in { display: flex; align-items: center; gap: 14px; min-height: 44px; overflow: hidden; color: var(--muted-foreground); font-size: 12px; white-space: nowrap; }
.lp-board-bar-in svg { width: 15px; height: 15px; flex-shrink: 0; }
.lp-bar-title { display: inline-flex; align-items: center; gap: 8px; color: var(--foreground); font-size: 13px; font-weight: 550; }
.lp-bar-title svg { color: var(--muted-foreground); }
.lp-bar-tab { padding: 6px 10px; border-radius: 5px; background: var(--green-soft); color: var(--foreground); line-height: 1.25; }
.lp-bar-asset { display: inline-flex; align-items: center; gap: 7px; padding-left: 14px; border-left: 1px solid var(--studio-field); }
.lp-bar-asset svg { color: var(--green); }
.lp-bar-asset b { padding: 4px 8px; border: 1px solid var(--studio-field); border-radius: 5px; background: var(--studio-bg); color: var(--foreground); font: 500 12px/1.2 var(--font-mono); letter-spacing: .02em; }
.lp-bar-count { margin-left: auto; }
.lp-bar-health { display: inline-flex; align-items: center; gap: 7px; font: 11px/1 var(--font-mono); letter-spacing: .02em; }
.lp-bar-health i { width: 7px; height: 7px; border-radius: 50%; background: var(--studio-dim); }
.lp-bar-health[data-tone="ok"] i { background: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 14%, transparent); }
.lp-bar-health[data-tone="partial"] i { background: var(--ochre); }
.lp-bar-health[data-tone="down"] i { background: var(--brick); }
.lp-bar-open { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 10px; border: 1px solid var(--studio-edge); border-radius: 5px; color: var(--foreground); font-weight: 550; text-decoration: none; }
.lp-bar-open:hover { background: var(--studio-hover); }
.lp-bar-open svg { width: 13px; height: 13px; color: var(--green); }

.lp-board-view { padding-block: 16px clamp(40px, 6vw, 72px); }
.lp-stage-scale { position: relative; margin-inline: auto; }
.lp-stage { position: absolute; left: 0; top: 0; width: 1302px; height: 656px; transform-origin: 0 0; }
.lp-block {
  position: absolute; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--studio-edge); border-radius: 7px;
  background: var(--card); box-shadow: 0 2px 3px color-mix(in srgb, var(--background) 60%, transparent);
}
.lp-block-head { display: flex; align-items: center; gap: 8px; flex-shrink: 0; height: 40px; min-height: 40px; padding: 0 12px 0 9px; border-bottom: 1px solid var(--studio-line); background: var(--studio-block-head); font-size: 13px; font-weight: 550; }
.lp-block-head svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--studio-dim); }
.lp-block-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-block-body { position: relative; flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--studio-scroll) var(--studio-scroll-track); }
.lp-block-host { display: flex; flex-direction: column; min-height: 100%; height: 100%; }
.lp-block-host > * { flex: 1; }
.lp-skel { display: flex; flex-direction: column; gap: 16px; padding: 17px 18px 12px; }
.lp-skel i { display: block; height: 24px; border-radius: 4px; background: var(--muted); animation: lp-pulse 1.6s ease-in-out infinite; }
.lp-skel i:nth-child(2) { width: 70%; height: 56px; }
.lp-skel i:nth-child(3) { width: 46%; height: 16px; }
@keyframes lp-pulse { 50% { opacity: .45; } }
.lp-links { position: absolute; left: 0; top: 0; z-index: 1; overflow: visible; pointer-events: none; }
.lp-links path { fill: none; stroke: var(--green); stroke-width: 1.4; opacity: .7; }
.lp-links path.lp-links-head { fill: var(--green); stroke: none; }
.lp-links text { fill: var(--green-bright); font: 9px var(--font-sans); paint-order: stroke; stroke: var(--canvas); stroke-width: 4px; }
.lp-board-fail { margin: 0; padding: 22px 0 6px; color: var(--muted-foreground); font-size: 14px; }
.lp-board-fail a { color: var(--green-bright); }

/* narrow screens: the same six widgets in reading order, like the studio's List view */
.lp-board.is-grid .lp-stage-scale { height: auto !important; width: auto !important; }
.lp-board.is-grid .lp-stage { position: static; width: auto !important; height: auto !important; transform: none !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-board.is-grid .lp-block { position: relative; left: auto !important; top: auto !important; width: auto !important; height: 320px !important; }
.lp-board.is-grid .lp-links { display: none; }

/* ------------------------------------------------------------------ research loop */

.lp-loop { padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); background: var(--background); }
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 44px 0 0; padding: 0; border-top: 1px solid var(--border); list-style: none; }
.lp-steps > li { min-width: 0; padding: 26px 32px 6px; border-left: 1px solid var(--border); }
.lp-steps > li:first-child { padding-left: 0; border-left: 0; }
.lp-steps > li:last-child { padding-right: 0; }
.lp-step-top { display: flex; align-items: flex-start; justify-content: space-between; }
.lp-mark { width: 44px; height: 44px; margin-left: -6px; }
.lp-mark path { fill: none; stroke: var(--input); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.lp-mark path.is-on { stroke: var(--green); }
.lp-step-no { color: var(--studio-dim); font: 600 11px/1 var(--font-mono); letter-spacing: .1em; }
.lp-steps h3 { margin-top: 20px; font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.03em; }
.lp-steps p { margin-top: 10px; color: var(--muted-foreground); font-size: 14.5px; line-height: 1.65; }
.lp-steps .lp-step-foot { margin-top: 18px; color: var(--green-muted); font: 600 10px/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

/* ------------------------------------------------------------------ on-chain primitives: quiet rows */

.lp-prims { padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 96px); background: var(--background); }
.lp-rows { margin: 40px 0 0; padding: 0; border-top: 1px solid var(--border); list-style: none; }
.lp-row { display: grid; grid-template-columns: minmax(190px, .9fr) minmax(0, 2.4fr) minmax(0, 1.1fr); align-items: baseline; gap: 10px 36px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.lp-row h3 { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 550; line-height: 1.3; letter-spacing: -.02em; }
.lp-row h3 svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--green); }
.lp-row p { max-width: 46em; color: var(--muted-foreground); font-size: 14.5px; line-height: 1.6; }
.lp-row-verbs { justify-self: end; color: var(--studio-dim); font: 600 10px/1.6 var(--font-mono); letter-spacing: .1em; text-align: right; text-transform: uppercase; }
.lp-prims-note { margin-top: 26px; color: var(--sidebar-foreground); font-size: 14px; }

/* ------------------------------------------------------------------ $BRAINDEV row */

.lp-token { border-top: 1px solid var(--border); background: var(--background); }
.lp-token-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; padding-block: 24px; }
.lp-token h2 { font: 650 20px/1 var(--font-mono); letter-spacing: -.01em; }
.lp-token-text { color: var(--muted-foreground); font-size: 13px; }
.lp-token .site-token { margin-left: auto; }

/* ------------------------------------------------------------------ the 404 page */

.nf-main {
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; padding: 48px var(--site-gutter);
  background-color: var(--canvas); background-image: var(--site-dots); background-size: 20px 20px;
}
.nf-main::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 50% 46%, transparent 0, color-mix(in srgb, var(--background) 86%, transparent) 100%); }
.nf-box { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 560px; text-align: center; }
.nf-globe { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin-bottom: 4px; }
.nf-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.nf-box .eyebrow { color: var(--green-muted); }
.nf-box h1 { margin-top: 16px; font-size: clamp(28px, 6vw, 44px); font-weight: 450; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.nf-box p.nf-lead { max-width: 30em; margin-top: 14px; color: var(--muted-foreground); font-size: 15px; line-height: 1.65; text-wrap: balance; }
.nf-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 28px; }

/* ------------------------------------------------------------------ tablets: one column, centred hero */

@media (max-width: 1023px) {
  .lp-hero { min-height: 0; }
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; padding-top: 48px; }
  .lp-hero-copy { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 680px; text-align: center; }
  .lp-kicker { justify-content: center; }
  .lp-cta-row { justify-content: center; }
  .lp-globe-col { width: 100%; margin-top: 18px; }
  .lp-globe { max-width: 580px; }
  .lp-ledger > div { padding-inline: 14px; }
  .lp-ledger dd { font-size: 17px; }
  .lp-row { grid-template-columns: minmax(170px, .8fr) minmax(0, 2fr); }
  .lp-row-verbs { grid-column: 2; justify-self: start; text-align: left; }
  .lp-steps > li { padding-inline: 22px; }
  .lp-bar-count { display: none; }
  .lp-bar-health { margin-left: auto; }
}

/* ------------------------------------------------------------------ phones: logo, one line, the globe, one button */

@media (max-width: 760px) {
  .site-header { gap: 8px; padding: 0 6px 0 14px; }
  .site-brand { min-height: 44px; }
  .site-brand strong { font-size: 15px; letter-spacing: .11em; }
  .site-nav { margin-left: auto; gap: 0; }
  .site-nav a { min-width: 46px; min-height: 44px; padding-inline: 12px; font-size: 14px; }
  .site-nav a[href="/studio"], .site-actions { display: none; }

  .lp-hero { flex: 1 0 auto; min-height: 0; }
  .lp-hero::before { background: radial-gradient(ellipse 90% 60% at 50% 50%, transparent 0, color-mix(in srgb, var(--background) 80%, transparent) 100%); }
  .lp-hero-grid { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; padding: 22px 16px 20px; }
  .lp-hero-copy { display: contents; }
  .lp-kicker, .lp-lead, .lp-fine, .lp-quiet, .lp-legend, .lp-globe-read, .lp-ledger-band { display: none; }
  .lp-hero h1 { order: 1; margin: 0; font-size: clamp(21px, 6.7vw, 31px); font-weight: 500; letter-spacing: -.045em; line-height: 1.15; text-align: center; white-space: nowrap; }
  .lp-hero h1 br { display: none; }
  .lp-globe-col { order: 2; width: auto; margin: 6px -16px 0; }
  .lp-globe { max-width: clamp(240px, calc(100vh - 286px), 520px); max-width: clamp(240px, calc(100svh - 286px), 520px); }
  .lp-caption { display: block; margin: 0; padding: 0 16px; color: var(--muted-foreground); font: 11px/1.5 var(--font-mono); letter-spacing: .03em; text-align: center; }
  .lp-cta-row { order: 3; margin-top: 16px; }
  .lp-cta { width: 100%; min-height: 50px; font-size: 16px; }
  .lp-tip { min-width: 188px; padding: 10px 12px 9px; }
  .lp-tip-price { margin-top: 10px; font-size: 22px; }
  .lp-tip-rows { margin-top: 10px; }
  .lp-tip-rows > div:nth-child(n+3) { display: none; }

  .lp-board, .lp-loop, .lp-prims { display: none; }
  .lp-token { border-top: 0; }
  .lp-token-row { justify-content: space-between; gap: 8px 10px; padding-block: 10px; }
  .lp-token h2 { font-size: 14px; }
  .lp-token-text, .site-token-tick { display: none; }
  .lp-token .site-token { gap: 6px; margin-left: 0; }
  .site-token-btn { min-height: 44px; padding-inline: 10px; }

  .site-footer-in { gap: 10px; min-height: 52px; }
  .site-footer-brand { align-items: center; justify-content: flex-start; min-width: 30px; min-height: 44px; }
  .site-footer-nav a { min-width: 44px; min-height: 44px; }
  .site-footer-studio { display: none !important; }
  body.site-page .bd-notice { left: 12px; right: 12px; bottom: calc(12px + var(--safe-bottom)); max-width: none; }

  .nf-main { padding-block: 28px 36px; }
  .nf-globe { width: min(72%, 240px); }
  .nf-actions .lp-cta { width: 100%; }
  .nf-actions { flex-direction: column; width: 100%; }
  .nf-actions .lp-quiet { display: inline-flex; min-height: 44px; }
}

@media (max-width: 400px) {
  .site-brand > span { display: none; }
  .site-footer-text { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-skel i { animation: none; }
}
