/* ===== Heron — cream ground, sage green, editorial serif ===== */

:root {
  --bg: #F6F4EC;
  --bg-deep: #EFEDE2;
  --panel: #FBFAF4;
  --card: #FFFFFF;
  --ink: #101511;
  --ink-2: #1C231D;
  --muted: #5D665F;
  --faint: #99A19A;
  --green: #6B9B7A;
  --green-deep: #4F7A5D;
  --green-bright: #9FCDAF;
  --green-text: #4F7A5D;
  --green-ghost: #E9F0EA;
  --amber: #F5A623;
  --amber-ghost: #FBEED3;
  --red: #C75B39;
  --line: #E4E0D2;
  --line-soft: #ECE9DD;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(16, 21, 17, .04), 0 10px 30px rgba(16, 21, 17, .05);
  --shadow-lift: 0 2px 4px rgba(16, 21, 17, .05), 0 20px 48px rgba(16, 21, 17, .10);
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-ui: "Inter", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--green); color: #fff; }

h1, h2, h3,
.tier-apy, .num strong, .hstat strong, .pv-num, .score-tier, .way-stat strong, .phone-brand {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.hl {
  color: var(--green-text);
  font-style: italic;
}
.strike { position: relative; color: var(--faint); }
.strike::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  top: 54%;
  height: 4px;
  background: var(--green);
  border-radius: 3px;
  transform: rotate(-2deg);
}

a { color: inherit; text-decoration: none; }

.tag-mono {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.tag-mono-green { color: var(--green-bright); }

.up { color: var(--green-text); }
.dn { color: var(--red); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font-ui);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(107, 155, 122, .35); }
.btn-green:hover { background: var(--green-deep); box-shadow: 0 6px 20px rgba(107, 155, 122, .45); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); background: var(--card); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-big { padding: 15px 30px; font-size: 16px; }

/* ===== Nav — floating pill ===== */
.nav-wrap {
  position: fixed;
  top: 18px;
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 8px 10px 8px 18px;
  box-shadow: var(--shadow);
}
.nav-brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 999px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg); }
.nav-cta { padding: 9px 20px; font-size: 13.5px; }

/* ===== Hero — centered ===== */
.hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 150px 24px 0;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}
.hero-glow-green {
  width: 520px; height: 520px;
  top: 20px; right: 6%;
  background: rgba(107, 155, 122, .16);
}
.hero-glow-amber {
  width: 400px; height: 400px;
  bottom: -40px; left: 2%;
  background: rgba(245, 166, 35, .10);
}
.hero-center {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: clamp(46px, 6vw, 82px);
  font-weight: 500;
  max-width: 15ch;
}
.hero-sub {
  margin-top: 24px;
  font-size: 17px;
  color: var(--muted);
  max-width: 52ch;
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }

/* Announcement pill */
.announce {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px 7px 11px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  transition: border-color .15s, color .15s;
}
.announce:hover { border-color: var(--amber); color: var(--ink); }
.a-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-ghost);
}
.a-arrow { color: var(--faint); }
.announce:hover .a-arrow { color: var(--amber); }

/* Coin row */
.coin-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.coin-stack { display: flex; }
.coin-stack .tk {
  margin-left: -11px;
  border: 2.5px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(16, 21, 17, .14);
  transition: transform .18s ease;
}
.coin-stack .tk:first-child { margin-left: 0; }
.coin-stack .tk:hover { transform: translateY(-5px); }
.coin-note { font-size: 13px; color: var(--muted); }

.hero-powered { margin-top: 44px; }
.hero-powered > span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.powered-logos {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.plogo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-ui);
  color: var(--muted);
}
.plogo svg { flex-shrink: 0; opacity: .8; }

/* Hero stat band */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 72px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}
.hstat { text-align: center; }
.hstat strong { display: block; font-size: 34px; }
.hstat span { font-size: 13px; color: var(--muted); }

/* ===== Token coins ===== */
.tk { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.tk-18 { width: 18px; height: 18px; }
.tk-22 { width: 22px; height: 22px; }
.tk-28 { width: 28px; height: 28px; }
.tk-34 { width: 34px; height: 34px; }
.tk-40 { width: 40px; height: 40px; }

/* ===== Ticker — tilted tape bridging hero into markets ===== */
.ticker-band {
  position: relative;
  z-index: 5;
  margin: 40px 0 -14px;
}
.ticker {
  overflow: hidden;
  background: var(--ink);
  padding: 15px 0;
  width: 104vw;
  margin-left: -2vw;
  transform: rotate(-2deg);
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 3px solid var(--green);
  box-shadow: 0 16px 38px rgba(16, 21, 17, .18);
}
.ticker-band::before {
  content: "";
  position: absolute;
  inset: 12px -2vw -12px;
  background: var(--green-ghost);
  transform: rotate(-2deg);
  z-index: -1;
  border-radius: 2px;
}
.ticker-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: ticker 32s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .85);
  white-space: nowrap;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.ticker-track em { font-style: normal; color: rgba(255, 255, 255, .45); }
.ticker-track em.up { color: var(--green-bright); }
.ticker-track em.dn { color: #E08D6D; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ===== Intro ===== */
.intro { max-width: 640px; margin: 0 auto; padding: 76px 24px; text-align: center; }
.intro p { font-size: 15.5px; color: var(--muted); }
.intro strong { color: var(--ink); }

/* ===== Sections ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 84px 24px;
}
.section-panel { position: relative; }
.section-panel::before {
  content: "";
  position: absolute;
  inset: 0 -100vw;
  background: var(--bg-deep);
  z-index: -1;
}
.sec-head h2 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 500; max-width: 26ch; }
.section-sub {
  margin-top: 16px;
  font-size: 16px;
  color: var(--muted);
  max-width: 58ch;
}
.sec-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== Card grids ===== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; }

/* Way cards */
.way-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.way-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.way-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-ghost);
  color: var(--green-text);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.way-icon-amber { background: var(--amber-ghost); color: #A66E0F; }
.way-icon-blue { background: var(--bg-deep); color: var(--ink); }
.way-card h3 { font-size: 26px; margin-bottom: 8px; }
.way-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.way-stat { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.way-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 2px;
}
.way-stat strong { font-size: 32px; color: var(--green-text); }
.way-stat small { font-size: 17px; color: var(--faint); }
.learn {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  width: fit-content;
}
.learn::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.learn:hover::after { transform: scaleX(1); }

/* ===== Markets grid ===== */
.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.mkt {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.mkt:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.mkt .tk { grid-row: 1; }
.mkt-name { display: flex; flex-direction: column; line-height: 1.25; }
.mkt-name strong { font-family: var(--font-ui); font-weight: 700; font-size: 15px; }
.mkt-name span { font-size: 11.5px; color: var(--faint); }
.mkt-num { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.mkt-num strong { font-family: var(--font-ui); font-weight: 700; font-size: 14.5px; }
.mkt-num em { font-style: normal; font-family: var(--font-mono); font-size: 11px; }
.mkt-ltv {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border-radius: 999px;
  padding: 4px 10px;
  width: fit-content;
}

/* ===== How — numbered rows ===== */
.how-list { margin-top: 44px; border-top: 1px solid var(--line); }
.how-row {
  display: grid;
  grid-template-columns: 90px 1fr 110px;
  gap: 28px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.how-idx {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--green-text);
}
.how-body h3 { font-size: 24px; margin-bottom: 6px; }
.how-body p { font-size: 14.5px; color: var(--muted); max-width: 62ch; }
.how-ic { width: 52px; height: 52px; color: var(--ink); justify-self: end; opacity: .8; }

/* ===== Reputation ===== */
.score-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.score-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.score-range {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
}
.score-tier {
  display: block;
  font-size: 26px;
  margin: 6px 0;
}
.score-note { display: block; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.score-bar { height: 6px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.score-bar span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.score-card-prime { background: var(--ink); border-color: var(--ink); }
.score-card-prime .score-tier { color: var(--green-bright); }
.score-card-prime .score-range { color: rgba(255, 255, 255, .5); }
.score-card-prime .score-note { color: rgba(255, 255, 255, .75); }
.score-card-prime .score-bar { background: rgba(255, 255, 255, .12); }
.score-actions { display: flex; gap: 12px; margin-top: 36px; }

/* ===== Infra ===== */
.infra-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  margin-top: 44px;
  align-items: stretch;
}
.infra-cards { display: flex; flex-direction: column; gap: 18px; }
.infra-card {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.infra-card h3 { font-size: 22px; margin-bottom: 8px; }
.infra-card p { font-size: 14.5px; color: var(--muted); }

.code-card {
  background: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.code-head {
  display: flex; align-items: center; gap: 6px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.cdot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.code-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}
.code-card pre { padding: 22px 24px 26px; overflow-x: auto; }
.code-card code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: #E9EFE8;
}
.tk-k { color: var(--green-bright); }
.tk-s { color: #D8CBA0; }
.tk-n { color: #E8C27E; }
.tk-f { color: #CFE3D5; }
.tk-c { color: rgba(233, 239, 232, .38); }
.infra-links { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* ===== Exit cards ===== */
.exit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.exit-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--green-ghost);
  color: var(--green-text);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.exit-icon-amber { background: var(--amber-ghost); color: #A66E0F; }
.exit-card h3 { font-size: 23px; margin-bottom: 10px; }
.exit-card p { font-size: 14.5px; color: var(--muted); }

/* ===== Compare table ===== */
.compare-wrap { margin-top: 44px; overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 14px;
}
.compare th, .compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare thead th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel);
}
.compare td:first-child { color: var(--muted); }
.compare .col-heron { background: #F0F5EE; color: var(--ink); font-weight: 500; }
.compare thead .col-heron { background: var(--green-ghost); }
.th-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--font-ui); font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; }

/* ===== Dark numbers band ===== */
.dark-band { background: var(--ink); color: #fff; }
.dark-band .sec-head h2 { color: #fff; }
.numbers-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.num {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 24px;
}
.num strong { display: block; font-size: clamp(28px, 2.8vw, 40px); color: var(--green-bright); white-space: nowrap; }
.num span { font-size: 13px; color: rgba(255, 255, 255, .55); }

.loans-table {
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  overflow: hidden;
}
.lt-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr .8fr .8fr;
  gap: 12px;
  padding: 13px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, .85);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  align-items: center;
}
.lt-row:last-child { border-bottom: none; }
.lt-asset { display: inline-flex; align-items: center; gap: 8px; }
.lt-head {
  font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .04);
}
.lt-badge {
  justify-self: start;
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 600;
  border-radius: 999px;
  padding: 3px 11px;
}
.lt-live { background: rgba(159, 205, 175, .18); color: var(--green-bright); }
.lt-done { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .45); }

/* ===== Features ===== */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.feat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.feat-ic {
  width: 24px; height: 24px;
  color: var(--green-text);
  margin-bottom: 14px;
}
.feat h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.feat p { font-size: 13.5px; color: var(--muted); }

/* ===== Tiers ===== */
.tier-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
  align-items: stretch;
}
.tier {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.tier-mid {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow-lift);
  transform: translateY(-8px);
}
.tier-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-text);
  margin-bottom: 16px;
}
.tier-mid .tier-name { color: var(--amber); }
.tier-apy { display: block; font-size: 64px; font-weight: 500; line-height: 1; }
.tier-apy small { font-size: 32px; }
.tier-mid .tier-apy { color: #fff; }
.tier-sub { display: block; font-size: 12.5px; color: var(--faint); margin: 8px 0 18px; }
.tier-mid .tier-sub { color: rgba(255, 255, 255, .5); }
.tier p { font-size: 14px; color: var(--muted); }
.tier-mid p { color: rgba(255, 255, 255, .75); }
.tier-note { margin-top: 32px; font-size: 12.5px; color: var(--faint); }
.tier-note a { text-decoration: underline; }

/* ===== FAQ ===== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 44px;
  align-items: start;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 52px 19px 22px;
  font-family: var(--font-ui);
  font-size: 15.5px;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--green-text);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--muted);
}

/* ===== CTA — dark ===== */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 110px 24px;
}
.cta h2 { font-size: clamp(40px, 4.8vw, 62px); font-weight: 500; }
.cta-hl { color: var(--green-bright); font-style: italic; }
.cta p { margin-top: 16px; font-size: 16.5px; color: rgba(255, 255, 255, .6); }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; }
.cta-tokens { position: absolute; inset: 0; pointer-events: none; }
.cta-tokens .tk { position: absolute; opacity: .9; animation: bob 7s ease-in-out infinite; }
.ct-1 { top: 24%; left: 12%; animation-delay: 0s; }
.ct-2 { top: 58%; left: 20%; animation-delay: -2.5s; }
.ct-3 { top: 18%; left: 30%; animation-delay: -1.2s; }
.ct-4 { top: 26%; right: 13%; animation-delay: -3.8s; }
.ct-5 { top: 60%; right: 22%; animation-delay: -5s; }
.ct-6 { top: 16%; right: 30%; animation-delay: -1.8s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 70px 24px 34px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer .brand-name { color: #fff; }
.footer-tag { margin: 14px 0 22px; font-size: 14px; color: rgba(255, 255, 255, .55); max-width: 34ch; }
.footer-sub { display: flex; gap: 8px; max-width: 360px; }
.footer-sub input {
  flex: 1;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: #fff;
  outline: none;
}
.footer-sub input::placeholder { color: rgba(255, 255, 255, .4); }
.footer-sub input:focus { border-color: var(--green); }
.footer-sub .btn-green { font-size: 13.5px; padding: 10px 18px; box-shadow: none; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
  padding: 5px 0;
  transition: color .15s;
}
.footer-col a:hover { color: var(--green-bright); }
.footer-base {
  max-width: 1200px;
  margin: 54px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
}
.footer-fine { font-family: var(--font-display); font-style: italic; font-size: 13.5px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { padding-top: 120px; }
  .hero-glow { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .cards-3, .feat-grid, .tier-row { grid-template-columns: 1fr; }
  .cards-2, .faq-grid { grid-template-columns: 1fr; }
  .score-row { grid-template-columns: repeat(2, 1fr); }
  .infra-grid { grid-template-columns: 1fr; }
  .numbers-band { grid-template-columns: repeat(2, 1fr); }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-mid { transform: none; }
  .how-row { grid-template-columns: 50px 1fr; }
  .how-ic { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: column; gap: 8px; }
  .compare { font-size: 12.5px; }
  .compare th, .compare td { padding: 12px 12px; }
  .lt-row { grid-template-columns: 1fr 1fr; row-gap: 4px; }
  .lt-head { display: none; }
  .ct-3, .ct-6 { display: none; }
}
@media (max-width: 560px) {
  .hero-actions, .score-actions, .cta-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .score-row, .numbers-band, .market-grid { grid-template-columns: 1fr; }
  .coin-row { flex-direction: column; gap: 12px; }
  .cta-tokens { display: none; }
}

/* ===== Brand (brand.html) ===== */
.brand-main { max-width: 900px; margin: 0 auto; padding: 150px 24px 90px; }
.brand-head h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 500; }
.brand-head .hero-sub { margin-top: 14px; }
.brand-h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin: 54px 0 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.asset-grid-wide { grid-template-columns: 1fr; }
.asset-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.asset-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  min-height: 180px;
}
.stage-cream { background: var(--bg); }
.stage-ink { background: var(--ink); }
.stage-wide { min-height: 140px; }
.asset-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.asset-name { font-size: 13.5px; font-weight: 600; display: flex; flex-direction: column; }
.asset-name span { font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.asset-card .btn { padding: 8px 14px; font-size: 12.5px; }
.asset-dl { display: flex; align-items: center; gap: 10px; }
.asset-alt { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-decoration: underline; }
.asset-alt:hover { color: var(--ink); }
.stage-banner { padding: 0; min-height: 0; }
.stage-banner img { display: block; width: 100%; height: auto; }
.pal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.pal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.pal-chip { display: block; height: 56px; border-radius: 10px; margin-bottom: 10px; }
.pal code { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); font-weight: 400; }
.type-rows { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.type-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.type-row:last-child { border-bottom: none; }
.type-role { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }
@media (max-width: 980px) {
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
  .pal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .asset-grid, .pal-grid { grid-template-columns: 1fr; }
}

/* ===== App flows (borrow/lend/score) ===== */
.app-lede { font-size: 15.5px; color: var(--muted); max-width: 70ch; margin: -18px 0 30px; }
.app-lede-strong { color: var(--green-text); font-weight: 600; }
.inline-link { color: var(--green-text); text-decoration: underline; }

.borrow-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: start; }
.bpanel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.bpanel-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.asset-pick { display: flex; flex-direction: column; gap: 8px; }
.asset-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--panel);
  border: 1.5px solid var(--line-soft);
  border-radius: 13px;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: border-color .15s, background .15s;
}
.asset-row:hover { border-color: var(--line-dark, #D8DDD8); }
.asset-row.on { border-color: var(--green); background: var(--green-ghost); }
.asset-names { display: flex; flex-direction: column; line-height: 1.25; }
.asset-names strong { font-size: 14.5px; font-weight: 600; }
.asset-names span { font-size: 11.5px; color: var(--faint); }
.asset-side { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.asset-side strong { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.asset-side span { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); }

.bfield-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.bfield-hint { font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--faint); margin-left: 8px; }
.bfield {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: 6px 8px 6px 16px;
}
.bfield:focus-within { border-color: var(--green); }
.bfield input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink);
}
.bfield-sym { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.bfield-max {
  border: none;
  background: var(--green-ghost);
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
}
.bfield-max:hover { background: #DCEBDD; }

.range { width: 100%; appearance: none; height: 8px; border-radius: 999px; background: var(--bg-deep); outline: none; margin-top: 6px; }
.range::-webkit-slider-thumb {
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--green);
  cursor: pointer;
}
.range-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); margin-top: 8px; }
.range-val { color: var(--green-text); font-weight: 500; font-size: 14px; }

.quote { margin-top: 26px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.quote-main { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.quote-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.quote-big { font-family: var(--font-display); font-size: 34px; font-weight: 500; }
.quote-rows { display: flex; flex-direction: column; gap: 8px; }
.quote-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.quote-row strong { font-family: var(--font-mono); font-size: 13px; color: var(--ink); font-weight: 500; }
.quote-cta { width: 100%; margin-top: 20px; }
.quote-cta:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.quote-note { margin-top: 12px; font-size: 12px; color: var(--faint); text-align: center; }

.bt5 { grid-template-columns: 1.4fr 1fr .8fr .7fr auto; }
.bt4 { grid-template-columns: 1.4fr 1fr .8fr auto; }
.lt-warn { background: var(--amber-ghost); color: #A66E0F; }

.tranche-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tranche-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.tranche-mid { border-color: var(--green); box-shadow: var(--shadow-lift); }
.tranche-card p { font-size: 13.5px; color: var(--muted); margin-top: 4px; flex: 1; }
.tranche-stats { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.tranche-stats div { display: flex; flex-direction: column; align-items: flex-start; }
.tranche-stats div:last-child { align-items: flex-end; }
.tranche-stats span { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.tranche-stats strong { font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; }
.tranche-form { display: flex; gap: 8px; }
.tranche-form input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  padding: 9px 13px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  outline: none;
}
.tranche-form input:focus { border-color: var(--green); }
.tranche-withdraw { margin-top: 10px; width: 100%; }

.score-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; align-items: start; }
.score-dial-panel { text-align: center; }
.score-dial { width: 100%; max-width: 340px; margin: 6px auto 4px; display: block; }
#dial-arc { transition: stroke-dashoffset .8s ease; }
.score-facts { display: flex; justify-content: space-around; gap: 10px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.score-facts div { display: flex; flex-direction: column; }
.score-facts span { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.score-facts strong { font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.score-how { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.score-how li { font-size: 14px; color: var(--muted); padding-left: 16px; position: relative; }
.score-how li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.score-how strong { color: var(--ink); }
.tier-on td { background: var(--green-ghost); font-weight: 600; }

@media (max-width: 980px) {
  .borrow-grid, .score-grid { grid-template-columns: 1fr; }
  .tranche-grid { grid-template-columns: 1fr; }
  .bt5 { grid-template-columns: 1.4fr 1fr auto; }
  .bt4 { grid-template-columns: 1.4fr 1fr auto; }
}

/* ===== Blog (blog.html) ===== */
.blog-main { max-width: 760px; margin: 0 auto; padding: 150px 24px 90px; }
.blog-head { margin-bottom: 26px; }
.blog-head h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 500; }
.blog-head .hero-sub { margin-top: 14px; }
.post {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  margin-top: 26px;
  box-shadow: var(--shadow);
}
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post-date { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.post-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-text);
  background: var(--green-ghost);
  border-radius: 999px;
  padding: 3px 10px;
}
.post h2 { font-size: 30px; font-weight: 500; margin-bottom: 12px; }
.post p { font-size: 15px; color: var(--ink-2); margin: 12px 0; }
.post ul { margin: 12px 0 12px 22px; font-size: 15px; color: var(--ink-2); }
.post li { margin: 7px 0; }
.post a { color: var(--green-text); text-decoration: underline; }
@media (max-width: 560px) {
  .post { padding: 24px 22px; }
}

/* ===================================================== */
/* ===== App dashboard (app.html) ===== */
/* ===================================================== */

.appnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 244, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.appnav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.appnav-tabs {
  display: flex;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow);
}
.appnav-tabs a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 15px;
  border-radius: 999px;
  transition: color .15s, background .15s;
}
.appnav-tabs a:hover { color: var(--ink); }
.appnav-tabs a.on { background: var(--green); color: #fff; font-weight: 600; }
.appnav-side { display: flex; gap: 8px; align-items: center; }

.season {
  background: var(--green-ghost);
  border-bottom: 1px solid var(--line-soft);
}
.season-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.season-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.season-link { margin-left: auto; font-weight: 600; color: var(--green-text); text-decoration: underline; white-space: nowrap; }

.app-main { max-width: 1240px; margin: 0 auto; padding: 40px 24px 90px; }
.app-title { font-size: clamp(40px, 4.6vw, 58px); font-weight: 500; margin-bottom: 34px; }

.acard-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.acard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.acard-head { display: flex; align-items: center; gap: 9px; }
.acard-head span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}
.acard-val { font-family: var(--font-display); font-size: 30px; font-weight: 500; }
.acard-sub { font-size: 13px; color: var(--muted); flex: 1; }
.acard-actions { display: flex; gap: 8px; margin-top: 14px; }
.acard-actions .btn { flex: 1; padding: 10px 12px; font-size: 13.5px; }
.btn-soft { background: var(--bg); color: var(--ink); border-color: var(--line-soft); }
.btn-soft:hover { background: var(--bg-deep); }

.astat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.astat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.astat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}
.astat-val { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 500; margin: 6px 0 2px; }
.astat-sub { font-size: 12.5px; color: var(--muted); }

.app-h2 { font-family: var(--font-display); font-size: 30px; font-weight: 500; margin: 46px 0 8px; }
.app-h3 { font-size: 14px; font-weight: 600; margin: 18px 0 10px; }

.empty-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 14px;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.btable {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.btable-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.btable-row:last-child { border-bottom: none; }
.btable-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--panel);
}
.btable-tok { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.btable-num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.btable .btn { padding: 8px 18px; font-size: 13px; justify-self: end; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  z-index: 200;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

.app-footer {
  border-top: 1px solid var(--line);
  padding: 50px 24px 70px;
}
.app-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.app-footer .brand-name { color: var(--ink); }
.app-footer-tag { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--muted); margin-top: 12px; max-width: 24ch; }
.app-footer-note { margin-top: 20px; font-size: 12px; color: var(--faint); }
.app-footer h5 {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.app-footer a { display: block; font-size: 14px; color: var(--muted); padding: 4px 0; }
.app-footer a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .acard-row { grid-template-columns: 1fr; }
  .astat-row { grid-template-columns: repeat(2, 1fr); }
  .appnav-tabs { display: none; }
  .btable-row { grid-template-columns: 1.4fr 1fr auto; }
  .btable-row .bt-hide { display: none; }
  .app-footer-inner { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .astat-row { grid-template-columns: 1fr; }
}

/* ===================================================== */
/* ===== Docs (docs.html) ===== */
/* ===================================================== */

.docs-shell {
  display: grid;
  grid-template-columns: 264px 1fr;
  max-width: 1340px;
  margin: 0 auto;
  min-height: 100vh;
}
.docs-side {
  border-right: 1px solid var(--line);
  padding: 26px 22px 60px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--panel);
}
.docs-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.docs-brand .brand-name { font-size: 19px; }
.docs-brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-text);
  margin: 0 0 18px 36px;
}
.docs-search {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 13px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  outline: none;
  margin-bottom: 24px;
}
.docs-search::placeholder { color: var(--faint); }
.docs-search:focus { border-color: var(--green); }
.docs-group {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 22px 0 8px;
}
.docs-side nav a {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: color .15s, background .15s;
}
.docs-side nav a:hover { color: var(--ink); background: var(--bg); }
.docs-side nav a.on { color: var(--green-text); background: var(--green-ghost); font-weight: 600; }
.docs-side-foot { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.docs-side-foot a { font-size: 12.5px !important; color: var(--faint) !important; }

.docs-main { padding: 46px 56px 120px; max-width: 860px; }
.docs-main .crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-text);
}
.docs-main h1 { font-size: clamp(36px, 4vw, 52px); font-weight: 500; margin: 10px 0 14px; }
.docs-main .lede { font-size: 17px; color: var(--muted); max-width: 62ch; }
.docs-main h2 {
  font-size: 30px;
  font-weight: 500;
  margin: 60px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.docs-main h3 { font-size: 19px; font-weight: 500; margin: 28px 0 10px; font-family: var(--font-display); }
.docs-main p { font-size: 15px; color: var(--ink-2); margin: 12px 0; max-width: 68ch; }
.docs-main p.soft { color: var(--muted); }
.docs-main ul, .docs-main ol { margin: 12px 0 12px 22px; font-size: 15px; color: var(--ink-2); }
.docs-main li { margin: 6px 0; max-width: 64ch; }
.docs-main strong { font-weight: 600; }

.docs-callout {
  display: flex;
  gap: 12px;
  background: var(--green-ghost);
  border: 1px solid #D6E4D8;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--ink-2);
  margin: 18px 0;
  max-width: 68ch;
}
.docs-callout.warn { background: var(--amber-ghost); border-color: #EAD8AC; }
.docs-callout-ic { flex-shrink: 0; font-family: var(--font-mono); font-weight: 700; color: var(--green-text); }
.docs-callout.warn .docs-callout-ic { color: #A66E0F; }

.docs-fig {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin: 22px 0;
  box-shadow: var(--shadow);
}
.docs-fig svg { display: block; width: 100%; height: auto; }
.docs-fig figcaption {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--faint);
  text-align: center;
  font-style: italic;
  font-family: var(--font-display);
}

.docs-table-wrap { overflow-x: auto; margin: 18px 0; }
.docs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.docs-table th, .docs-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.docs-table tbody tr:last-child td { border-bottom: none; }
.docs-table thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel);
  font-weight: 500;
}
.docs-table .tok { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }

.docs-code {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 20px 22px;
  overflow-x: auto;
  margin: 18px 0;
}
.docs-code code { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: #E9EFE8; }

.docs-next {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 70px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.docs-next a {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  background: var(--card);
  transition: border-color .15s;
}
.docs-next a:hover { border-color: var(--green); }
.docs-next .dn-label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.docs-next .dn-title { font-weight: 600; font-size: 14.5px; }
.docs-next a:last-child { text-align: right; }

/* Docs chart bits */
.dc-axis { stroke: var(--line); stroke-width: 1; }
.dc-grid { stroke: var(--line-soft); stroke-width: 1; }
.dc-curve { stroke: var(--green); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.dc-label { font-family: var(--font-mono); font-size: 10px; fill: var(--faint); }
.dc-anno { font-family: var(--font-body); font-size: 11px; fill: var(--muted); }
.dc-box { fill: var(--card); stroke: var(--line); rx: 10; }
.dc-box-green { fill: var(--green-ghost); stroke: #CBDCCE; }
.dc-box-ink { fill: var(--ink); stroke: var(--ink); }
.dc-box-amber { fill: var(--amber-ghost); stroke: #EAD8AC; }
.dc-txt { font-family: var(--font-body); font-size: 12px; font-weight: 600; fill: var(--ink); }
.dc-txt-sub { font-family: var(--font-body); font-size: 10px; fill: var(--muted); font-weight: 400; }
.dc-txt-light { fill: #fff; }
.dc-arrow { stroke: var(--faint); stroke-width: 1.4; fill: none; marker-end: url(#dc-arr); }

@media (max-width: 980px) {
  .docs-shell { grid-template-columns: 1fr; }
  .docs-side {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 26px;
  }
  .docs-main { padding: 36px 24px 90px; }
  .docs-next { flex-direction: column; }
  .docs-next a:last-child { text-align: left; }
}
