/* GitLineage — direction B "Specimen".
   Warm bone paper, near-black ink, one muted mineral pigment. Hard offsets,
   zero blur. Hue is reserved for evidence status; relationship family is encoded
   by line family and space, never by colour. */

:root {
  --paper: #F2F1EB;
  --paper-deep: #E9E8E0;
  --surface: #F8F7F2;
  --surface-hi: #FDFCFA;
  --surface-sunk: #E3E2DD;
  --ink: #17150F;
  --ink-2: #525048;
  --ink-3: #6B6961;
  --ink-4: #8D8C86;
  --rule: #D5D4CE;
  --rule-2: #BCBBB4;
  --brand: #33485A;
  --verified: #486884;
  --declared: #806151;
  --detected: #6B7177;
  --alert: #83564F;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --drawer-w: 384px;
  --bar-h: 52px;
  --status-h: 34px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.mono { font-family: var(--mono); }
code { font-family: var(--mono); background: var(--surface-sunk); padding: 1px 5px; border-radius: 3px; font-size: 0.94em; }

button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* ----------------------------------------------------------------- appbar */

.appbar {
  display: flex; align-items: center; gap: 12px;
  height: var(--bar-h); padding: 0 18px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  position: sticky; top: 0; z-index: 40;
}
.brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; font-size: 15px; letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { width: 15px; height: 15px; fill: var(--ink); stroke: var(--ink); stroke-width: 1.2; }
.brand-mark .mark-pig { fill: var(--verified); stroke: var(--verified); }
.appbar-mid { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1; }
.crumb-sep { color: var(--rule-2); }
.crumb-repo { font-size: 13px; font-weight: 650; white-space: nowrap; }
.crumb-rev, .crumb-count { font-size: 11px; color: var(--ink-4); white-space: nowrap; }

/* Phase / cache chip. Cached is always spelled out, never implied. */
.cache-chip {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  border: 1px solid var(--rule-2);
  padding: 1px 6px 0;
  white-space: nowrap;
}
.cache-chip.is-cached { color: var(--verified); border-color: color-mix(in srgb, var(--verified) 40%, var(--rule-2)); }
.appbar-right { display: flex; align-items: center; gap: 4px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; background: transparent; border: 1px solid transparent;
  border-radius: 4px; color: var(--ink-2);
}
.icon-btn:hover { border-color: var(--rule-2); color: var(--ink); }
.icon-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.icon-btn.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.text-btn {
  background: transparent; border: 1px solid transparent; border-radius: 4px;
  font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 5px 9px; text-decoration: none;
}
.text-btn:hover { border-color: var(--rule-2); color: var(--ink); }
.text-btn.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* --------------------------------------------------------------- searchbar */

.searchbar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-bottom: 1px solid var(--rule); background: var(--surface);
  position: sticky; top: var(--bar-h); z-index: 35;
}
.search-icon { width: 13px; height: 13px; fill: none; stroke: var(--ink-4); stroke-width: 1.3; }
#search-input { flex: 1; font-family: var(--mono); font-size: 13px; border: 0; background: transparent; color: var(--ink); outline: none; }
.search-count { font-size: 11px; color: var(--ink-4); }

/* -------------------------------------------------------------- layers pop */

.layers-pop {
  position: absolute; right: 18px; top: calc(var(--bar-h) + 8px); width: 268px; z-index: 50;
  background: var(--surface-hi); border: 1px solid var(--rule-2); border-radius: 5px;
  box-shadow: 3px 3px 0 rgba(23,21,15,0.10); padding: 11px 12px 10px;
}
.pop-head { font-size: 9px; font-weight: 800; letter-spacing: 0.08em; color: var(--ink-3); margin: 0 0 8px; }
.layer-row { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 12px; color: var(--ink-2); width: 100%; background: transparent; border: 0; text-align: left; }
.layer-row:hover { color: var(--ink); }
.layer-swatch { width: 22px; height: 0; border-top-width: 2px; border-top-style: solid; display: inline-block; flex: none; }
.layer-name { flex: 1; text-transform: capitalize; }
.layer-count { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.layer-row.is-off { opacity: 0.45; }
.pop-note { font-size: 10px; line-height: 1.5; color: var(--ink-4); margin: 9px 0 0; border-top: 1px solid var(--rule); padding-top: 8px; }

/* ---------------------------------------------------------------- landing */

.landing { max-width: 900px; margin: 0 auto; padding: 72px 24px 56px; }
.eyebrow { font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: 0.09em; color: var(--ink-3); margin: 0 0 20px; display: flex; align-items: center; gap: 14px; }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.landing h1 { font-size: clamp(38px, 6.2vw, 64px); line-height: 1.0; letter-spacing: -0.045em; font-weight: 700; margin: 0 0 20px; }
.lede { font-size: 18px; line-height: 1.5; color: var(--ink-2); margin: 0 0 34px; max-width: 46ch; }

.input-card { background: var(--surface); border: 1px solid var(--rule-2); border-radius: 6px; padding: 14px; box-shadow: 3px 3px 0 rgba(23,21,15,0.10); }
.input-row { display: flex; gap: 10px; align-items: stretch; }
.input-icon { width: 15px; height: 15px; align-self: center; margin-left: 12px; fill: var(--ink-4); flex: none; }
#repo-input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px; padding: 13px 12px; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--surface-hi); color: var(--ink); }
#repo-input:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
#submit { font-size: 14px; font-weight: 650; padding: 13px 22px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: var(--paper); white-space: nowrap; }
#submit:hover { background: #000; }

.sub-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.sub-label { font-size: 9px; font-weight: 800; letter-spacing: 0.08em; color: var(--ink-3); }
.seg { display: inline-flex; border: 1px solid var(--rule-2); border-radius: 4px; overflow: hidden; background: var(--paper); }
.seg-btn { font-size: 12px; font-weight: 500; padding: 6px 11px; border: 0; border-right: 1px solid var(--rule-2); background: transparent; color: var(--ink-2); }
.seg-btn:last-child { border-right: 0; }
.seg-btn.is-active { background: var(--ink); color: var(--paper); }
.check { font-size: 11px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.check.is-disabled { color: var(--ink-4); }

.foot { font-size: 12px; color: var(--ink-3); margin: 16px 2px 0; }
.samples { font-size: 11px; color: var(--ink-3); margin: 26px 2px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.samples a { color: var(--brand); text-decoration: none; border: 1px solid var(--rule-2); border-radius: 4px; padding: 5px 9px; background: var(--surface-hi); }
.samples a:hover { border-color: var(--brand); }
.sample-tag { font-size: 10px; color: var(--ink-4); margin-right: 8px; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 40px; }
.trust-cell { background: var(--surface); padding: 14px 16px; }
.trust-head { font-size: 9px; font-weight: 800; letter-spacing: 0.07em; color: var(--ink-3); margin: 0 0 7px; }
.trust-body { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.mini-pill { font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: 0.05em; padding: 2px 5px; border: 1px solid currentColor; border-radius: 3px; }
.mini-pill.v { color: var(--verified); } .mini-pill.d { color: var(--declared); } .mini-pill.t { color: var(--detected); }

/* --------------------------------------------------------------- explorer */

.status-line {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline;
  font-size: 11px; color: var(--ink-2); padding: 8px 18px;
  border-bottom: 1px solid var(--rule); background: var(--paper);
}
.status-line .sep { color: var(--rule-2); }
.status-line .cache-hit { color: var(--verified); font-weight: 700; }

.explorer-body { display: grid; grid-template-columns: minmax(0, 1fr) 0; }
.explorer-body.with-drawer { grid-template-columns: minmax(0, 1fr) var(--drawer-w); }

.stage { position: relative; height: calc(100vh - var(--bar-h) - var(--status-h)); overflow: hidden; }
.canvas { display: block; width: 100%; height: 100%; cursor: grab; }

/*
 * The `hidden` attribute is the client's only state signal for panels, and the
 * layout rules below set `display` on those same elements. Without this, a
 * `display: flex` rule beats the user-agent `[hidden] { display: none }` and a
 * hidden panel stays on screen.
 */
[hidden] { display: none !important; }
.canvas.is-panning { cursor: grabbing; }

.overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center;
  padding: 32px; background: var(--paper); z-index: 5;
}
.overlay[hidden] { display: none; }
/*
 * Analysis progress.
 *
 * A stepped list of real phases, not a bar. There is no percentage anywhere: the
 * server reports a phase only once it has reached it, and between two stages
 * there is nothing honest to interpolate.
 */
.phases { list-style: none; margin: 0 0 16px; padding: 0; text-align: left; min-width: 320px; }
.phase { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-4); padding: 3px 0; }
.phase-dot { width: 7px; height: 7px; border: 1px solid var(--rule-2); border-radius: 50%; flex: none; background: transparent; }
.phase.is-done { color: var(--ink-3); }
.phase.is-done .phase-dot { background: var(--verified); border-color: var(--verified); }
.phase.is-current { color: var(--ink); font-weight: 650; }
.phase.is-current .phase-dot { background: var(--paper); border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--paper); }
.progress-label { font-size: 12px; color: var(--ink-2); margin: 0; }
.progress-note { font-size: 10px; color: var(--ink-4); margin: 8px 0 0; }
.progress-job { font-size: 10px; color: var(--ink-4); margin: 4px 0 0; }

.loading-bar { width: 280px; height: 3px; background: var(--surface-sunk); border-radius: 2px; overflow: hidden; }
.loading-fill { display: block; height: 100%; width: 14%; background: var(--verified); animation: sweep 1.6s linear infinite; }
@keyframes sweep { 0% { transform: translateX(-110%); } 100% { transform: translateX(760%); } }
.loading-label { font-size: 12px; color: var(--ink-2); margin: 0; }
.loading-note { font-size: 11px; color: var(--ink-4); margin: 0; max-width: 44ch; }
.empty-head, .failure-head { font-size: 18px; font-weight: 650; margin: 0; }
.failure-head { color: var(--alert); }
.empty-body, .failure-body { font-size: 12px; color: var(--ink-3); margin: 0; max-width: 56ch; line-height: 1.55; }

.viewport-controls { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 4px; z-index: 6; }
.vp-btn {
  width: 28px; height: 28px; background: var(--paper); border: 1px solid var(--rule-2);
  border-radius: 4px; color: var(--ink-2); font-size: 14px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.vp-btn:hover { border-color: var(--ink-4); color: var(--ink); }
.vp-fit { font-size: 12px; }

.bundles { position: absolute; left: 16px; bottom: 16px; max-width: 260px; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 8px 9px; z-index: 6; }
.bundles[hidden] { display: none; }
.bundles-head { font-size: 9px; font-weight: 800; letter-spacing: 0.07em; color: var(--ink-3); margin: 0 0 6px; }
.bundle-row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: transparent; border: 0; border-top: 1px solid var(--rule); padding: 5px 2px; font-size: 11px; color: var(--ink-2); }
.bundle-row:hover { color: var(--ink); }
.bundle-row.is-open { color: var(--ink); font-weight: 650; }
.bundle-count { font-size: 11px; font-weight: 800; color: var(--ink); }
.bundle-label { flex: 1; }
.bundle-status { font-size: 9px; letter-spacing: 0.05em; color: var(--ink-4); }

.legend { position: absolute; left: 16px; top: 16px; display: flex; gap: 13px; flex-wrap: wrap; font-family: var(--mono); font-size: 10px; color: var(--ink-3); background: var(--paper); padding: 5px 8px; border: 1px solid var(--rule); border-radius: 4px; z-index: 6; max-width: 60%; }
.legend[hidden] { display: none; }

/*
 * Bundle representative cards.
 *
 * Drawn only when nothing else would be drawn, so a graph with many grouped
 * relationships never resembles an empty one. Visually distinct from an entity:
 * dashed outline, a count, and a connector with no arrowhead, because a bundle is
 * not a relationship and has no direction.
 */
.bundle-link { fill: none; stroke: var(--rule-2); stroke-width: 1.5; }
.bundle-card { cursor: pointer; }
.bundle-card-box {
  fill: var(--surface-hi);
  stroke: var(--ink-4);
  stroke-width: 1.2;
  stroke-dasharray: 5 3;
}
.bundle-card:hover .bundle-card-box, .bundle-card:focus .bundle-card-box { stroke: var(--ink); stroke-dasharray: none; }
.bundle-card.is-open .bundle-card-box { stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: none; }
.bundle-card-count { font-family: var(--mono); font-size: 13px; font-weight: 700; fill: var(--ink); }
.bundle-card-label { font-family: var(--mono); font-size: 10px; fill: var(--ink-4); }
.bundles-note { font-size: 10px; color: var(--ink-4); margin: 6px 2px 4px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.legend-note { color: var(--ink-4); }

/* ------------------------------------------------------------------ graph */

.node-box { fill: var(--surface); stroke: var(--rule-2); stroke-width: 1; }
.node-box.is-subject { fill: var(--surface-hi); stroke: var(--ink); stroke-width: 2; }
.node-box.is-package { fill: var(--surface-sunk); stroke: none; }
.node-label { font-family: var(--mono); font-size: 12px; font-weight: 650; fill: var(--ink); }
.node-fact { font-family: var(--mono); font-size: 10px; fill: var(--ink-4); }
.subject-tag { font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: 0.08em; fill: var(--ink-3); }
.node-hit { fill: transparent; cursor: pointer; }
.node.is-selected .node-box { stroke: var(--ink); stroke-width: 2; }
.node.is-dim { opacity: 0.16; }

.edge-line { fill: none; stroke: var(--verified); }
.edge-line.fam-ancestry { stroke-width: 2; }
.edge-line.fam-dependency { stroke-width: 1.5; }
.edge-line.fam-attribution { stroke-width: 1.5; stroke-dasharray: 6 4; }
.edge-line.fam-source-identity { stroke-width: 2; }
.edge-line.fam-similarity { stroke-width: 1; stroke-dasharray: 1.5 3; opacity: 0.55; }
.edge-line.st-DECLARED { stroke: var(--declared); }
.edge-line.st-DETECTED { stroke: var(--detected); }
.edge-hit { fill: none; stroke: transparent; stroke-width: 12; cursor: pointer; }

/*
 * Dense fan: the label stays in the DOM and is revealed by CSS, because
 * redrawing on hover would rebuild the canvas under the pointer and re-fire the
 * event in a loop.
 */
.edge-group.is-dense .edge-label,
.edge-group.is-dense .edge-badge { opacity: 0; }
.edge-group.is-dense:hover .edge-label,
.edge-group.is-dense:hover .edge-badge { opacity: 1; }
.edge-group.is-dense.is-selected .edge-label,
.edge-group.is-dense.is-selected .edge-badge { opacity: 1; }
.node:hover .node-box { stroke: var(--ink-3); }
/*
 * Labels are decoration, not hit targets. Without this they swallow clicks on
 * the line beneath — including when they are hidden with `opacity: 0`, which
 * still hit-tests. Pointer events go to `.edge-hit` only.
 */
.edge-label, .edge-badge, .edge-ontology, .node-label, .node-fact, .subject-tag { pointer-events: none; }

.edge-label { font-family: var(--mono); font-size: 11px; fill: var(--ink-2); }
.edge-ontology { font-family: var(--mono); font-size: 9px; fill: var(--ink-4); }
.edge-badge { font-family: var(--mono); font-size: 10px; fill: var(--ink-4); }
.edge-group.is-selected .edge-line { stroke: var(--ink); }
.edge-group.is-dim { opacity: 0.13; }
.edge-group.is-match .edge-label { fill: var(--ink); font-weight: 700; }

/* ----------------------------------------------------------------- drawer */

.drawer { border-left: 2px solid var(--ink); background: var(--surface); overflow-y: auto; height: calc(100vh - var(--bar-h) - var(--status-h)); }
.drawer[hidden] { display: none; }
.drawer-inner { padding: 16px 18px 40px; position: relative; }
.drawer-close { position: absolute; top: 12px; right: 14px; font-family: var(--mono); font-size: 11px; color: var(--ink-4); background: transparent; border: 1px solid var(--rule-2); border-radius: 3px; padding: 2px 8px; }
.drawer-close:hover { color: var(--ink); border-color: var(--ink-4); }

.d-eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: var(--ink-4); margin: 0 0 6px; }
.d-head { font-size: 17px; font-weight: 650; margin: 0 0 6px; padding-right: 52px; }
.d-sub { font-size: 12px; color: var(--ink-2); margin: 0 0 10px; }
.d-sub .mono { font-size: 10px; color: var(--ink-4); }
.d-pair { font-family: var(--mono); font-size: 12px; color: var(--ink); margin: 0 0 12px; word-break: break-all; }
.d-arrow { color: var(--ink-4); padding: 0 6px; }

.d-block { border-top: 1px solid var(--rule); padding: 11px 0 0; margin-top: 11px; }
.d-block:first-of-type { border-top: 0; }
.d-block-head { font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: 0.08em; color: var(--ink-3); margin: 0 0 8px; }
.d-kv { display: grid; grid-template-columns: 88px 1fr; gap: 3px 10px; font-family: var(--mono); font-size: 11px; margin: 0; }
.d-kv dt { color: var(--ink-4); }
.d-kv dd { margin: 0; color: var(--ink-2); word-break: break-word; }

.d-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: 0.06em; padding: 3px 7px; border: 1px solid currentColor; border-radius: 3px; }
.d-pill.st-VERIFIED { color: var(--verified); }
.d-pill.st-DECLARED { color: var(--declared); }
.d-pill.st-DETECTED { color: var(--detected); }
.pill-sw { width: 14px; height: 0; border-top-width: 2px; border-top-style: solid; display: inline-block; }

.d-card { border: 1px solid var(--rule-2); border-radius: 4px; background: var(--surface-hi); padding: 10px 11px; margin-bottom: 9px; }
.d-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.d-card-type { font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: 0.06em; color: var(--ink-3); }
.d-card-loc { font-family: var(--mono); font-size: 11px; color: var(--ink); margin: 0 0 4px; }
.d-quote { font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--ink-2); background: var(--surface-sunk); border-left: 2px solid var(--rule-2); padding: 7px 9px; margin: 6px 0; white-space: pre-wrap; word-break: break-word; }
.d-data { font-family: var(--mono); font-size: 10px; color: var(--ink-3); display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 6px 0 0; }
.d-data dt { color: var(--ink-4); }
.d-data dd { margin: 0; word-break: break-all; }
.d-src { font-family: var(--mono); font-size: 10px; color: var(--brand); text-decoration: none; border-bottom: 1px solid var(--rule-2); display: inline-block; margin-top: 4px; }
.d-src:hover { border-bottom-color: var(--brand); }

.d-why { border: 1px solid var(--rule); border-left: 3px solid var(--verified); background: var(--surface-hi); padding: 10px 11px; font-size: 12px; line-height: 1.55; color: var(--ink-2); }
.d-why.st-DECLARED { border-left-color: var(--declared); }
.d-why.st-DETECTED { border-left-color: var(--detected); }
.d-why strong { font-weight: 650; color: var(--ink); }
.d-actions { display: flex; gap: 8px; margin-top: 12px; }
.d-action { font-family: var(--mono); font-size: 11px; padding: 6px 10px; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--surface-hi); color: var(--ink-2); text-decoration: none; }
.d-action:hover { border-color: var(--ink-4); color: var(--ink); }

.node-detail { font-size: 12px; color: var(--ink-2); line-height: 1.55; }

/* -------------------------------------------------------------- site foot */

.site-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 18px; border-top: 1px solid var(--rule); font-size: 11px; color: var(--ink-4); background: var(--paper); }
.foot-links { display: flex; gap: 14px; }
.foot-links a { color: var(--ink-3); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* ------------------------------------------------------------- responsive */

.drawer-scrim { display: none; }

@media (max-width: 1100px) {
  .trust { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --drawer-w: 100%; }
  .appbar-mid { flex-wrap: wrap; }
  .crumb-count { display: none; }
  .explorer-body.with-drawer { grid-template-columns: minmax(0, 1fr); }
  .drawer {
    position: fixed; inset: var(--bar-h) 0 0 auto; width: min(420px, 100%); height: auto;
    z-index: 60; box-shadow: -3px 0 0 rgba(23,21,15,0.08);
  }
  .drawer-scrim { display: block; position: fixed; inset: 0; background: rgba(23,21,15,0.18); border: 0; z-index: 55; }
  .drawer-scrim[hidden] { display: none; }
  .stage { height: calc(100vh - var(--bar-h) - var(--status-h)); }
  .landing { padding: 44px 18px 40px; }
  .lede { font-size: 16px; }
  .bundles { max-width: calc(100% - 32px); }
  .site-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 560px) {
  .input-row { flex-direction: column; }
  .input-icon { display: none; }
  .trust { margin-top: 28px; }
  .layers-pop { right: 10px; left: 10px; width: auto; }
}