/* ==========================================================================
   NISSE — winter-night plum, brass lantern, cold frost held at the edge.

   Palette hexes live in js/brand.js and are mirrored into these custom
   properties by js/main.js at boot. The literals in :root below are the
   no-JS fallback and must match brand.js; tools/validate.mjs checks it.
   ========================================================================== */

:root {
  --ground:  #17121D;
  --raise:   #211A29;
  --raise2:  #2A2233;
  --line:    #352B40;
  --ink:     #F2EAE3;
  --muted:   #BCAEBC;
  --faint:   #9A8BA7;
  --lantern: #F2A749;
  --ember:   #E4643C;
  --frost:   #8FCBDD;
  --good:    #7FC79B;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SF Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --wrap: 1120px;
  --gut: clamp(20px, 5vw, 40px);
  --r: 14px;
  --r-sm: 9px;

  /* One shadow recipe, three depths. A plum ground swallows a neutral shadow,
     so these are tinted toward the ground rather than to black. */
  --sh-1: 0 1px 2px rgba(8, 5, 12, .5);
  --sh-2: 0 6px 22px -8px rgba(8, 5, 12, .7);
  --sh-3: 0 20px 60px -20px rgba(8, 5, 12, .85);
}

/* Scroll-reveal must never hide the page from a reader without JS. The .js
   class is set by an inline script before any stylesheet resolves, so the
   opacity:0 below can only ever apply where an observer exists to undo it. */
.js [data-reveal] { opacity: 0; transform: translateY(14px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

*, *::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: var(--ground);
  color: var(--ink);
  font: 400 16.5px/1.65 var(--sans);
  font-feature-settings: 'cv05' 1, 'ss03' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The night behind everything: two long radial washes, lantern-warm low and
   frost-cold high, so the page reads as a lit room under a cold sky. */
.night { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.night::before, .night::after { content: ''; position: absolute; border-radius: 50%; filter: blur(90px); }
.night::before { width: 900px; height: 700px; left: -180px; bottom: -260px; background: radial-gradient(closest-side, rgba(242,167,73,.15), transparent 70%); }
.night::after  { width: 820px; height: 640px; right: -200px; top: -220px;  background: radial-gradient(closest-side, rgba(143,203,221,.09), transparent 70%); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; }
code, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ============================== NAV ============================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.stuck { background: rgba(23,18,29,.82); backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-name { font-family: var(--serif); font-size: 19px; letter-spacing: .1em; }

/* The mark is the lantern: a warm core inside a cold ring. Drawn, not an asset. */
.mark { width: 22px; height: 22px; display: block; flex: none; }

.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  font: 500 14.5px/1 var(--sans); text-decoration: none; cursor: pointer;
  background: transparent; color: var(--ink);
  transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.btn:hover { border-color: var(--faint); transform: translateY(-1px); }
.btn-primary { background: var(--lantern); border-color: var(--lantern); color: #23180A; font-weight: 600; }
.btn-primary:hover { background: #F6B764; border-color: #F6B764; }
.btn-lg { padding: 13px 24px; font-size: 15.5px; }
.btn[aria-disabled='true'] { opacity: .5; cursor: not-allowed; transform: none; }
.icon-link { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--faint); transition: color .2s, background .2s; }
.icon-link:hover { color: var(--ink); background: var(--raise2); }

.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--raise); border-block: 1px solid var(--line); padding: 8px var(--gut) 16px;
  }
  .nav-links.open a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
}

/* ============================== HERO ============================== */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 84px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); padding: 7px 13px 7px 10px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--raise);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lantern); box-shadow: 0 0 0 3px rgba(242,167,73,.16); }
.dot.pulse { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(242,167,73,.16); } 50% { box-shadow: 0 0 0 6px rgba(242,167,73,.04); } }

h1 { font-size: clamp(38px, 6.1vw, 62px); margin: 22px 0 0; }
h1 em { font-style: normal; color: var(--lantern); }
.hero-sub { margin-top: 20px; font-size: clamp(16.5px, 1.7vw, 18.5px); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--faint); }

/* ---- the hero instrument ---- */
.pane {
  background: linear-gradient(180deg, var(--raise), var(--ground));
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-3); overflow: hidden;
}
.pane-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(42,34,51,.5);
}
.pane-title { font: 500 12px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--faint); margin-right: auto; }
.frost-wrap { position: relative; aspect-ratio: 4 / 3; background: #100C15; }
#frost { display: block; width: 100%; height: 100%; }
.frost-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 13px; font-size: 12.5px; color: var(--muted);
  background: linear-gradient(transparent, rgba(16,12,21,.94) 62%);
}
.readout { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.readout div { padding: 13px 16px; border-right: 1px solid var(--line); }
.readout div:last-child { border-right: 0; }
.readout dt { font: 500 10.5px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--faint); margin: 0 0 7px; }
.readout dd { margin: 0; font: 400 21px/1 var(--mono); font-variant-numeric: tabular-nums; }
.readout dd.cold { color: var(--frost); }
.readout dd.warm { color: var(--lantern); }

.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.track { width: 34px; height: 19px; border-radius: 999px; background: var(--raise2); border: 1px solid var(--line); position: relative; transition: background .25s, border-color .25s; flex: none; }
.track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--lantern); transition: transform .25s, background .25s; }
.switch input:checked + .track { background: rgba(143,203,221,.18); border-color: var(--frost); }
.switch input:checked + .track::after { transform: translateX(15px); background: var(--frost); }
.switch input:focus-visible + .track { outline: 2px solid var(--lantern); outline-offset: 2px; }

/* ============================== SECTIONS ============================== */
.section { padding: clamp(64px, 8.5vw, 108px) 0; border-top: 1px solid var(--line); }
.section-alt { background: linear-gradient(180deg, rgba(33,26,41,.55), transparent); }
.kicker { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--lantern); }
.section h2 { font-size: clamp(29px, 4vw, 42px); margin: 16px 0 0; max-width: 18ch; }
.section h2.wide { max-width: 24ch; }
.lede { margin-top: 18px; color: var(--muted); max-width: 60ch; font-size: 17px; }
.head-split { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
@media (max-width: 800px) { .head-split { grid-template-columns: 1fr; align-items: start; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--raise); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px 28px; box-shadow: var(--sh-1);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: rgba(242,167,73,.4); transform: translateY(-2px); box-shadow: var(--sh-2); }
.card-icon { width: 38px; height: 38px; display: block; margin-bottom: 18px; }
.card h3 { font-size: 21px; }
.card .term { display: block; font: 500 11px/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--faint); margin-bottom: 9px; }
.card p { margin-top: 12px; color: var(--muted); font-size: 15.2px; }

/* ---- flow diagram ---- */
.flow { margin-top: 46px; background: var(--raise); border: 1px solid var(--line); border-radius: var(--r); padding: 30px clamp(16px, 3vw, 30px); overflow-x: auto; }
.flow svg { display: block; min-width: 620px; width: 100%; height: auto; }
.flow-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.flow-legend span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 46px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 30px 26px 32px; border-right: 1px solid var(--line); background: var(--raise); }
.step:last-child { border-right: 0; }
@media (max-width: 860px) { .step { border-right: 0; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: 0; } }
.step-n { font: 400 13px/1 var(--mono); color: var(--lantern); letter-spacing: .1em; }
.step h3 { font-size: 20px; margin-top: 14px; }
.step p { margin-top: 11px; color: var(--muted); font-size: 15.2px; }

/* ---- tables ---- */
.table-wrap { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
/* A scroll container still has a min-content contribution; min-width:0 on the
   scroller is what actually stops the page widening under it. */
.scroller { overflow-x: auto; min-width: 0; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.6px; }
thead th {
  text-align: left; padding: 13px 18px; background: var(--raise2);
  font: 500 10.8px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--faint);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { color: var(--ink); font-weight: 500; }
tbody tr:hover td { background: rgba(42,34,51,.4); }
td .num { color: var(--ink); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 500 11.5px/1.5 var(--sans); border: 1px solid; white-space: nowrap; }
.tag.no   { color: var(--ember);   border-color: rgba(228,100,60,.4);  background: rgba(228,100,60,.09); }
.tag.yes  { color: var(--good);    border-color: rgba(127,199,155,.4); background: rgba(127,199,155,.09); }
.tag.cold { color: var(--frost);   border-color: rgba(143,203,221,.4); background: rgba(143,203,221,.09); }

/* ---- the thesis block ---- */
.thesis {
  margin-top: 44px; padding: clamp(26px, 4vw, 40px);
  border: 1px solid rgba(242,167,73,.34); border-radius: var(--r);
  background: linear-gradient(135deg, rgba(242,167,73,.09), rgba(228,100,60,.045) 60%, transparent);
}
.thesis p { font-family: var(--serif); font-size: clamp(20px, 2.7vw, 27px); line-height: 1.4; }
.thesis .attrib { font-family: var(--sans); font-size: 13.5px; color: var(--faint); margin-top: 18px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 46px); margin-top: 46px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.spec { list-style: none; margin: 0; padding: 0; }
.spec li { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.spec li:last-child { border-bottom: 0; }
.spec .k { color: var(--muted); white-space: nowrap; }
.spec .leader { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 14px; }
.spec .v { color: var(--ink); font-family: var(--mono); font-size: 14px; text-align: right; }

/* ---- FAQ ---- */
.faq { margin-top: 42px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex; align-items: center; gap: 16px; padding: 22px 4px; cursor: pointer;
  font-family: var(--serif); font-size: clamp(17.5px, 2.1vw, 20px); list-style: none;
  transition: color .2s;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--lantern); }
summary:focus-visible { outline: 2px solid var(--lantern); outline-offset: 3px; border-radius: 4px; }
.chev { margin-left: auto; flex: none; color: var(--faint); transition: transform .25s, color .2s; }
details[open] .chev { transform: rotate(180deg); color: var(--lantern); }
details .answer { padding: 0 4px 24px; color: var(--muted); max-width: 66ch; font-size: 15.4px; }
details .answer p + p { margin-top: 13px; }

/* ---- CTA + footer ---- */
.cta { text-align: center; padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--line); }
.cta h2 { margin-inline: auto; }
.cta .lede { margin-inline: auto; }
.cta .hero-actions { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 46px 0 40px; background: rgba(33,26,41,.4); }
.foot-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; font-size: 14px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.disclosure {
  margin-top: 30px; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--raise); color: var(--faint); font-size: 13.2px; max-width: 78ch;
}
.disclosure b { color: var(--muted); font-weight: 600; }
.legal { margin-top: 22px; color: var(--faint); font-size: 12.8px; }

::selection { background: rgba(242,167,73,.28); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lantern); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gut); top: 10px; z-index: 100; padding: 10px 16px; background: var(--lantern); color: #23180A; border-radius: var(--r-sm); }

/* ==========================================================================
   Data components — added when the site became a measurement rather than a
   product page. Everything below renders figures from data/summary.json.
   ========================================================================== */

.h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; }

/* ---- the three headline numbers ---- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }
.stat {
  background: var(--raise); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 7px;
}
.stat.accent { border-color: rgba(242,167,73,.42); background: linear-gradient(150deg, rgba(242,167,73,.08), var(--raise) 62%); }
.stat-n { font: 400 clamp(38px, 5.4vw, 52px)/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat.accent .stat-n { color: var(--lantern); }
.stat-l { font: 500 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
.stat-s { font-size: 14px; color: var(--muted); }

/* ---- share bar inside a table cell ---- */
.bar { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.bar i { display: block; height: 7px; width: var(--w); min-width: 2px; border-radius: 999px; background: var(--lantern); flex: none; }
.bar b { font: 400 13px/1 var(--mono); color: var(--muted); font-weight: 400; }
.mono-link { font-family: var(--mono); font-size: 13.4px; color: var(--frost); text-decoration: none; border-bottom: 1px solid rgba(143,203,221,.3); }
.mono-link:hover { border-bottom-color: var(--frost); }
td .num.warn { color: var(--ember); }

/* ---- cadence histogram ---- */
.chart { margin-top: 42px; background: var(--raise); border: 1px solid var(--line); border-radius: var(--r); padding: 30px clamp(16px,3vw,30px) 24px; }
.hbars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: clamp(4px,1vw,10px); align-items: end; min-height: 210px; }
.hbar { display: grid; grid-template-rows: 1fr auto auto; gap: 9px; align-items: end; text-align: center; min-width: 0; }
.hbar-t { display: block; height: 150px; display: flex; align-items: flex-end; }
.hbar-t i { display: block; width: 100%; height: var(--h); min-height: 2px; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--lantern), rgba(242,167,73,.28)); }
.hbar-n { font: 400 12px/1 var(--mono); color: var(--muted); }
.hbar-l { font: 400 10.5px/1.3 var(--sans); color: var(--faint); word-break: break-word; order: 3; }
.chart-note { margin-top: 20px; font-size: 13px; color: var(--faint); }

/* ---- live re-run panel ---- */
.live { margin-top: 42px; background: var(--raise); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px,3vw,30px); }
.live-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.live-field { display: flex; flex-direction: column; gap: 8px; font: 500 11.5px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
.live-field select {
  font: 400 15px/1 var(--sans); color: var(--ink); background: var(--raise2);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; min-width: 190px;
}
.live-bar { height: 4px; border-radius: 999px; background: var(--raise2); margin-top: 22px; overflow: hidden; }
.live-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--lantern); border-radius: 999px; transition: width .3s; }
.live-status { margin-top: 11px; font: 400 12.6px/1.5 var(--mono); color: var(--faint); }
.live-out { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.live-readout { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.live-readout dd { color: var(--lantern); }
.live-top { margin-top: 16px; font-size: 14.6px; color: var(--muted); }
.live-top span { font-family: var(--mono); color: var(--ink); }
.live-verdict { margin-top: 10px; font-size: 14.6px; color: var(--muted); }
.live-verdict.ok { color: var(--good); }
.live-verdict.differs { color: var(--lantern); }


/* ==========================================================================
   Planned markers. Every section describing something unbuilt carries one.
   The category convention is a single disclosure in the footer; this site
   puts it on each claim instead, because a footer nobody scrolls to is not a
   disclosure.
   ========================================================================== */

.planned {
  display: inline-flex; align-items: center; gap: 8px; vertical-align: middle;
  padding: 5px 12px 5px 9px; border-radius: 999px; margin-left: 12px;
  border: 1px dashed rgba(228,100,60,.55); background: rgba(228,100,60,.08);
  color: var(--ember); font: 500 11px/1 var(--sans); letter-spacing: .1em;
  text-transform: uppercase; white-space: nowrap;
}
.planned::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ember); flex: none; }
h2 .planned, h3 .planned { transform: translateY(-2px); }

/* A whole section that is unbuilt gets a left rule as well as a chip, so the
   status survives someone screenshotting the middle of it. */
.section[data-planned-section] .wrap > *:not(.planned-note) { position: relative; }
.planned-note {
  margin-top: 20px; padding: 13px 16px; border-left: 2px solid rgba(228,100,60,.5);
  background: rgba(228,100,60,.05); color: var(--muted); font-size: 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.planned-note b { color: var(--ember); font-weight: 600; }

/* The one section that is not a proposal. */
.measured {
  display: inline-flex; align-items: center; gap: 8px; vertical-align: middle;
  padding: 5px 12px 5px 9px; border-radius: 999px; margin-left: 12px;
  border: 1px solid rgba(127,199,155,.5); background: rgba(127,199,155,.08);
  color: var(--good); font: 500 11px/1 var(--sans); letter-spacing: .1em;
  text-transform: uppercase; white-space: nowrap;
}
.measured::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--good); flex: none; }

.ilink { color: var(--lantern); text-decoration: none; border-bottom: 1px solid rgba(242,167,73,.34); }
.ilink:hover { border-bottom-color: var(--lantern); }
.index-cards { grid-template-columns: repeat(3, 1fr); }

/* ========================= /app ========================= */
.app-body { padding-top: 0; }
.app-main { padding: 28px 0 80px; }
.chain-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--line);
  border-radius: 999px; font: 500 12px/1 var(--mono); color: var(--faint); background: var(--raise); }
.chain-pill .dot { background: var(--good); box-shadow: 0 0 0 3px rgba(127,199,155,.14); }
.acct { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--raise); font-size: 13px; }
.acct .dot.ok { background: var(--good); }
.acct code { font-size: 12.5px; color: var(--ink); }


.wallet-pick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.wbtn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--raise); color: var(--ink); cursor: pointer; font-size: 14.5px; }
.wbtn:hover { border-color: var(--lantern); }

.app-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; margin-top: 34px; align-items: start; }
@media (max-width: 900px) { .app-grid { grid-template-columns: 1fr; } }
.app-h { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.app-sub { color: var(--faint); font-size: 13.6px; margin-top: 7px; }

.vaults { display: grid; gap: 12px; margin-top: 18px; }
.vault { text-align: left; width: 100%; padding: 18px 20px; border-radius: var(--r); cursor: pointer;
  border: 1px solid var(--line); background: var(--raise); color: var(--ink); font: inherit;
  transition: border-color .2s, transform .2s; }
.vault:hover { border-color: rgba(242,167,73,.45); transform: translateY(-1px); }
.vault.on { border-color: var(--lantern); background: linear-gradient(150deg, rgba(242,167,73,.09), var(--raise) 60%); }
.vault.dead { opacity: .55; cursor: not-allowed; }
.v-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.v-top b { font-size: 16.5px; }
.v-tvl { font: 400 13px/1 var(--mono); color: var(--faint); }
.v-px { font: 400 12.8px/1.5 var(--mono); color: var(--muted); margin-top: 7px; }
.v-you { margin-top: 7px; font-size: 13px; color: var(--good); }
.v-note { margin-top: 9px; font-size: 12.8px; color: var(--faint); }
.v-warn { margin-top: 9px; font-size: 12.8px; color: var(--ember); border-left: 2px solid rgba(228,100,60,.5); padding-left: 10px; }
.v-err { margin-top: 8px; font-size: 12.6px; color: var(--ember); }

.panel { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--raise); padding: 22px; }
.p-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.p-head b { font-size: 17px; }
.p-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 4px;
  border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.p-stats div { padding: 12px 14px; }
.p-stats div + div { border-left: 1px solid var(--line); }
.p-stats dt { font: 500 10.4px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
.p-stats dd { margin: 7px 0 0; font: 400 15px/1.2 var(--mono); }
.live-field { margin-top: 16px; }
.live-field.amt .amt-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--raise2); padding: 0 14px; }
.live-field.amt input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink);
  font: 400 19px/1 var(--mono); padding: 14px 0; }
.unit { font: 500 13px/1 var(--sans); color: var(--faint); }
.preview { margin-top: 14px; font-size: 14px; color: var(--muted); min-height: 20px; }
.preview b { color: var(--ink); font-family: var(--mono); }
#go { width: 100%; margin-top: 16px; }
.fineprint { margin-top: 12px; font-size: 12.4px; color: var(--faint); }
.status { margin-top: 16px; font-size: 14px; color: var(--muted); }
.status.err { color: var(--ember); }
.status.ok { color: var(--good); }
.status a { color: var(--lantern); }
.err { color: var(--ember); }
