:root {
  --pine: #173f31;
  --forest: #235d46;
  --leaf: #4f8b61;
  --mint: #cde6c8;
  --lime: #e4f4b8;
  --cream: #f7f4e8;
  --paper: #fffdf6;
  --ink: #173228;
  --muted: #5d6c63;
  --orange: #ec8f4d;
  --line: rgba(23, 63, 49, .17);
}

.side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  width: 190px;
  flex-direction: column;
  padding: 24px 16px;
  border-right: 1px solid var(--line);
  background: rgba(247, 244, 232, .94);
  backdrop-filter: blur(16px);
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 30px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.rail-logo {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--pine);
  color: var(--lime);
  font: 500 19px/1 "Newsreader", Georgia, serif;
  transform: rotate(-8deg);
}

.rail-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.rail-nav a:hover {
  color: var(--ink);
  background: rgba(205, 230, 200, .55);
  transform: translateX(2px);
}

.rail-nav a.active {
  color: white;
  background: var(--pine);
}

.rail-icon {
  width: 20px;
  text-align: center;
  font: 500 13px/1 "DM Mono", monospace;
}

.rail-bottom {
  padding: 16px 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 400 9px/1.45 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.rail-social {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-top: auto;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid #d8dbd3;
  border-radius: 10px;
  color: var(--ink);
  background: #fbfaf6;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}

.rail-social:hover { border-color: var(--pine); background: var(--mint); }
.x-mark { font: 500 16px/1 "DM Sans", sans-serif; }

body { padding-left: 190px; }

.eligibility-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 30px;
  background: var(--orange);
}

.eligibility-copy,
.eligibility-form-wrap { padding: clamp(34px, 6vw, 76px); }

.eligibility-copy h2 {
  max-width: 720px;
  margin: 18px 0 22px;
  font: 400 clamp(52px, 7vw, 92px)/.9 "Newsreader", Georgia, serif;
  letter-spacing: -.05em;
}

.eligibility-copy p { max-width: 580px; line-height: 1.6; }

.eligibility-form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--pine);
  color: white;
}

.eligibility-form-wrap h3 {
  margin: 0 0 10px;
  font: 400 36px/1 "Newsreader", Georgia, serif;
}

.eligibility-form-wrap > p { margin: 0 0 28px; color: #c8d7cd; line-height: 1.55; }

.wallet-form { display: grid; gap: 12px; }

.wallet-form label {
  font: 500 11px/1 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.wallet-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 15px;
  outline: none;
  background: rgba(255,255,255,.08);
  color: white;
}

.wallet-form input::placeholder { color: #91a99b; }
.wallet-form input:focus { border-color: var(--lime); }

.wallet-form button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--pine);
  font-weight: 700;
  cursor: pointer;
}

.wallet-status {
  display: none;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(228,244,184,.4);
  border-radius: 15px;
  background: rgba(228,244,184,.09);
  color: #e9f6c9;
  font-size: 13px;
  line-height: 1.5;
}

.wallet-status.visible { display: block; }

.page-shell {
  width: min(1080px, calc(100% - 64px));
  margin-inline: auto;
  padding: 72px 0 100px;
}

.page-eyebrow {
  font: 500 11px/1 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.page-title {
  max-width: 900px;
  margin: 22px 0 25px;
  font: 400 clamp(62px, 9vw, 122px)/.84 "Newsreader", Georgia, serif;
  letter-spacing: -.055em;
}

.page-lead {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 70px;
}

.info-card {
  min-height: 300px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
}

.info-card.green { background: var(--pine); color: white; }
.info-card.lime { background: var(--lime); }
.info-card.orange { background: var(--orange); }
.info-card h2 { margin: 72px 0 13px; font: 400 40px/1 "Newsreader", Georgia, serif; }
.info-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.info-card.green p { color: #c8d7cd; }

.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 70px;
  margin-top: 75px;
}

.doc-toc { position: sticky; top: 30px; align-self: start; }
.doc-toc a { display: block; padding: 9px 0; color: var(--muted); font-size: 13px; text-decoration: none; }
.doc-content article { padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.doc-content h2 { margin: 0 0 17px; font: 400 42px/1 "Newsreader", Georgia, serif; }
.doc-content p, .doc-content li { color: var(--muted); line-height: 1.7; }
.doc-content code { padding: 3px 7px; border-radius: 6px; background: var(--mint); color: var(--pine); }

.explorer-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.cycle-card {
  min-width: 250px;
  padding: 23px;
  border-radius: 22px;
  background: var(--lime);
}

.cycle-card strong {
  display: block;
  margin-top: 8px;
  font: 400 42px/1 "DM Mono", monospace;
}

.explorer-table {
  margin-top: 65px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
}

.table-head {
  display: grid;
  grid-template-columns: 1.4fr .8fr .7fr .6fr;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 500 10px/1 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.empty-state {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 40px;
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  font-size: 28px;
}

.empty-state h2 { margin: 0 0 10px; font: 400 34px/1 "Newsreader", Georgia, serif; }
.empty-state p { max-width: 440px; margin: 0; color: var(--muted); line-height: 1.55; }

/* Minimal direction: quiet surfaces and one connected navigation stack. */
body { background: #faf9f3; }
body::before { display: none; }

.side-rail {
  width: 176px;
  padding: 28px 18px;
  border-right-color: #dedfd7;
  background: #f4f3ed;
  backdrop-filter: none;
}

.rail-brand { padding: 0 2px 28px; }
.rail-logo { transform: none; }

.rail-nav {
  flex: 0 0 auto;
  gap: 0;
  overflow: hidden;
  border: 1px solid #d8dbd3;
  border-radius: 10px;
  background: #fbfaf6;
}

.rail-nav a {
  min-height: 46px;
  padding: 0 12px;
  border-bottom: 1px solid #d8dbd3;
  border-radius: 0;
}

.rail-nav a:last-child { border-bottom: 0; }
.rail-nav a:hover { background: #eef2ea; transform: none; }
.rail-nav a.active { color: var(--pine); background: var(--mint); }
.rail-bottom { margin-top: 0; }
body { padding-left: 176px; }

.hero {
  display: block !important;
  min-height: auto !important;
  padding: 72px 0 100px !important;
}

.hero-copy {
  min-height: 0 !important;
  max-width: 920px;
  padding: 0 !important;
  background: transparent !important;
}

.hero-copy h1 {
  max-width: 850px !important;
  font-size: clamp(58px, 8vw, 102px) !important;
  line-height: .92 !important;
}

.hero-copy p { max-width: 650px !important; }
.hero-visual, .ticker { display: none !important; }

section { padding-block: 82px !important; }
.section-head { margin-bottom: 42px !important; }
.section-head h2 { font-size: clamp(42px, 5vw, 66px) !important; }

.account-card,
.step,
.calculator-wrap,
.info-card,
.explorer-table,
.cycle-card {
  border-color: #d8dbd3 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.account-card.featured {
  color: var(--ink) !important;
  background: var(--mint) !important;
}

.account-card.featured p { color: var(--muted) !important; }
.versus span { border-radius: 8px !important; }

.flow {
  color: var(--ink) !important;
  background: #f0f1ea !important;
}

.flow .section-head p,
.step p { color: var(--muted) !important; }

.step {
  min-height: 280px !important;
  background: #faf9f3 !important;
}

.step:hover { background: white !important; transform: none !important; }
.step-icon { border-radius: 8px !important; background: var(--mint) !important; }
.step h3 { margin-top: 74px !important; }

.calc-result { background: #eef2ea !important; }
.eligibility-panel { border: 1px solid #d8dbd3; border-radius: 14px; background: #f0f1ea; }
.eligibility-form-wrap { background: var(--pine); }

.page-shell { padding-top: 76px; }
.page-title { font-size: clamp(58px, 8vw, 96px); line-height: .9; }
.page-grid { gap: 10px; margin-top: 54px; }
.info-card { min-height: 250px; background: #fbfaf6; }
.info-card.green { color: var(--ink); background: var(--mint); }
.info-card.green p { color: var(--muted); }
.info-card.lime { background: #eef2ea; }
.info-card.orange { background: #f3e5d8; }
.cycle-card { background: #eef2ea; }

@media (max-width: 900px) {
  body { padding-left: 0; padding-bottom: 72px; }
  .side-rail {
    inset: auto 0 0;
    width: 100%;
    height: 64px;
    padding: 7px 10px;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .rail-brand, .rail-bottom { display: none; }
  .rail-social {
    position: fixed;
    bottom: 76px;
    left: 12px;
    z-index: 60;
    width: 42px;
    min-height: 42px;
    margin: 0;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 5px 16px rgba(23, 63, 49, .12);
  }
  .rail-social-label { display: none; }
  .rail-nav { flex: 1; flex-direction: row; border: 0; border-radius: 0; background: transparent; }
  .rail-nav a { flex: 1; min-height: 50px; flex-direction: column; justify-content: center; gap: 4px; padding: 0 4px; border: 0; border-radius: 8px; font-size: 10px; }
  .rail-icon { font-size: 11px; }
  .eligibility-panel, .page-grid, .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .explorer-head { align-items: stretch; flex-direction: column; }
}

@media (max-width: 600px) {
  .page-shell { width: min(100% - 28px, 560px); padding-top: 44px; }
  .table-head { display: none; }
  .page-title { font-size: 66px; }
}
