:root {
  color-scheme: light;
  --bg: #faf9f7;
  --panel: #ffffff;
  --ink: #3a3936;
  --strong: #2d2c29;
  --muted: #595550;
  --line: #ebe7e2;
  --accent: #34783b;
  --accent-soft: #eaf3e9;
  --chat-column: #ffffff;
  --chart-live: #34783b;
  --user: #2d2c29;
  --display-font: "Libre Baskerville", serif;
  --ui-font: Inter, sans-serif;
}

/* Production audit fixes */
body.chat-mode .assistant-message h1 {
  margin: 0;
  color: #f6f8f4;
  font-family: var(--display-font);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 400;
  line-height: 0.98;
}

.account-data-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(220, 230, 218, 0.14);
  border-radius: 12px;
  background: rgba(14, 17, 15, 0.72);
}

.account-data-controls span {
  color: #00c805;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-data-controls h2 { margin: 5px 0 7px; color: #f6f8f4; }
.account-data-controls p { margin: 0; color: #9ba39b; line-height: 1.55; }
.account-data-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.account-data-actions button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(220, 230, 218, 0.2);
  border-radius: 8px;
  color: #dce5dc;
  background: #171a18;
  font: 400 13px/1 var(--ui-font);
  cursor: pointer;
}
.account-data-actions button:disabled { opacity: 0.55; cursor: wait; }

@media (max-width: 760px) {
  .admin-table td { grid-template-columns: 82px minmax(0, 1fr); }
  .admin-table td strong {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .account-data-controls { grid-template-columns: 1fr; }
  .account-data-actions { justify-content: stretch; }
  .account-data-actions button { flex: 1 1 150px; }
}

@media (max-width: 640px) {
  body.chat-mode .estimator-shell { padding-top: 164px; }
  body.chat-mode .flow { padding-top: 12px; }
  body.chat-mode #step-zip { margin-top: 0; }
}

/* Private operations ledger */
.admin-shell,
.admin-login-shell {
  --admin-bg: #11130f;
  --admin-panel: #191c16;
  --admin-line: #30352b;
  --admin-ink: #f1f0e9;
  --admin-muted: #969d8c;
  --admin-accent: #b9f227;
  min-height: 100vh;
  color: var(--admin-ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(185, 242, 39, 0.1), transparent 26rem),
    linear-gradient(90deg, transparent 0, transparent 79px, rgba(255, 255, 255, 0.025) 80px),
    var(--admin-bg);
  font-family: var(--ui-font);
}

.admin-shell { padding: 28px clamp(20px, 4vw, 68px) 64px; }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--admin-line);
}

.admin-brand {
  color: var(--admin-ink);
  font: 400 20px/1 var(--display-font);
  letter-spacing: -0.04em;
  text-decoration: none;
}

.admin-brand span {
  margin-left: 8px;
  color: var(--admin-accent);
  font: 400 10px/1 var(--ui-font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-header p,
.admin-kicker,
.admin-ledger-head p {
  margin: 10px 0 0;
  color: var(--admin-muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-header button,
.admin-login-card button {
  border: 1px solid var(--admin-accent);
  border-radius: 2px;
  color: #11130f;
  background: var(--admin-accent);
  font: 400 12px/1 var(--ui-font);
  cursor: pointer;
}

.admin-header button { padding: 12px 16px; }

.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--admin-line);
  border-top: 0;
}

.admin-summary > div { padding: clamp(24px, 3vw, 42px); }
.admin-summary > div + div { border-left: 1px solid var(--admin-line); }
.admin-summary span,
.admin-table td span { display: block; color: var(--admin-muted); font-size: 11px; line-height: 1.6; }
.admin-summary strong { display: block; margin-top: 12px; font: 400 clamp(32px, 5vw, 66px)/0.9 var(--display-font); letter-spacing: -0.04em; }

.admin-ledger { margin-top: clamp(42px, 7vw, 92px); }
.admin-ledger-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; }
.admin-ledger-head h1 { margin: 7px 0 0; font: 400 clamp(28px, 4vw, 46px)/1 var(--display-font); letter-spacing: -0.04em; }
.admin-ledger-head input,
.admin-login-card input {
  width: min(360px, 100%);
  border: 1px solid var(--admin-line);
  border-radius: 2px;
  outline: 0;
  color: var(--admin-ink);
  background: var(--admin-panel);
  font: 400 13px/1 var(--ui-font);
}
.admin-ledger-head input { padding: 13px 15px; }
.admin-ledger-head input:focus,
.admin-login-card input:focus { border-color: var(--admin-accent); box-shadow: 0 0 0 3px rgba(185, 242, 39, 0.1); }

.admin-table-wrap { overflow-x: auto; border: 1px solid var(--admin-line); }
.admin-table { width: 100%; min-width: 1050px; border-collapse: collapse; text-align: left; }
.admin-table th { padding: 14px 18px; color: var(--admin-muted); background: #151712; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; }
.admin-table td { padding: 20px 18px; border-top: 1px solid var(--admin-line); vertical-align: top; }
.admin-table tbody tr { transition: background 160ms ease; }
.admin-table tbody tr:hover { background: rgba(185, 242, 39, 0.035); }
.admin-table td strong { display: block; margin-bottom: 5px; color: var(--admin-ink); font-size: 12px; font-weight: 400; white-space: nowrap; }
.admin-status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--admin-accent); box-shadow: 0 0 12px rgba(185, 242, 39, 0.65); }
.admin-empty { padding: 44px; border: 1px solid var(--admin-line); color: var(--admin-muted); text-align: center; }
.admin-error { color: #ff9b88; font-size: 12px; }

.admin-login-shell { display: grid; place-items: center; padding: 24px; }
.admin-login-card { width: min(470px, 100%); padding: clamp(30px, 6vw, 58px); border: 1px solid var(--admin-line); background: rgba(25, 28, 22, 0.94); box-shadow: 24px 24px 0 rgba(185, 242, 39, 0.055); }
.admin-login-card h1 { margin: 34px 0 14px; font: 400 clamp(38px, 7vw, 64px)/0.92 var(--display-font); letter-spacing: -0.04em; }
.admin-login-card > p:not(.admin-kicker):not(.admin-error) { color: var(--admin-muted); font-size: 13px; line-height: 1.7; }
.admin-login-card form { display: grid; gap: 11px; margin-top: 32px; }
.admin-login-card label { color: var(--admin-muted); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.admin-login-card input { width: 100%; box-sizing: border-box; padding: 15px; }
.admin-login-card button { min-height: 48px; margin-top: 4px; }
.admin-login-card button:disabled { opacity: 0.55; cursor: wait; }

@media (max-width: 760px) {
  .admin-shell { padding: 20px 14px 40px; }
  .admin-summary { grid-template-columns: 1fr; }
  .admin-summary > div + div { border-left: 0; border-top: 1px solid var(--admin-line); }
  .admin-ledger-head { align-items: stretch; flex-direction: column; }
  .admin-ledger-head input { width: 100%; box-sizing: border-box; }
  .admin-table-wrap { overflow: visible; border: 0; }
  .admin-table { min-width: 0; }
  .admin-table thead { display: none; }
  .admin-table tbody, .admin-table tr, .admin-table td { display: block; }
  .admin-table tr { margin-bottom: 14px; border: 1px solid var(--admin-line); background: var(--admin-panel); }
  .admin-table td { display: grid; grid-template-columns: 92px minmax(0, 1fr); padding: 14px; border-top: 1px solid var(--admin-line); }
  .admin-table td:first-child { border-top: 0; }
  .admin-table td::before { content: attr(data-label); color: var(--admin-muted); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
}

/* Finance-style watchlist surface */
body:not(.chat-mode) {
  --bg: #faf9f7;
  --panel: #fffefd;
  --ink: #3a3936;
  --strong: #2d2c29;
  --muted: #77736d;
  --line: #ebe7e2;
  --accent: #34783b;
  --accent-soft: #eaf3e9;
  --chart-live: #34783b;
  background:
    linear-gradient(90deg, rgba(55, 120, 59, 0.025) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(0deg, rgba(55, 120, 59, 0.018) 1px, transparent 1px) 0 0 / 42px 42px,
    var(--bg);
}

body:not(.chat-mode) .site-header {
  min-height: 184px;
  display: grid;
  align-content: start;
  gap: 0;
  padding: 0 max(28px, calc((100vw - 1830px) / 2 + 28px));
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 247, 0.96);
  backdrop-filter: blur(14px);
}

.top-bar,
.market-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(420px, 580px) minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
}

.top-bar {
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.market-bar {
  min-height: 96px;
  grid-template-columns: minmax(0, 1fr) auto;
}

body:not(.chat-mode) .wordmark {
  color: #77736d;
  font-size: 22px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.global-search {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border: 1px solid #dedad5;
  border-radius: 13px;
  background: #fffefd;
  color: #9a9690;
  font-size: 22px;
  box-shadow: 0 1px 0 rgba(45, 44, 41, 0.03);
}

.global-search svg,
.header-actions svg,
.market-selector svg,
.manage-watchlist svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}

.auth-actions {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  justify-content: flex-end;
}

.price-alert-link,
body:not(.chat-mode) .header-tabs {
  position: static;
  transform: none;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.2vw, 36px);
}

body:not(.chat-mode) .header-tabs a,
body:not(.chat-mode) .header-tabs button {
  position: relative;
  min-height: 64px;
  color: #4e4c48;
  font-size: 21px;
  font-weight: 400;
  white-space: nowrap;
}

.market-selector {
  display: inline-flex !important;
  gap: 10px;
}

body:not(.chat-mode) .header-tabs .active-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -17px;
  height: 3px;
  background: var(--strong);
}

.market-status {
  justify-self: end;
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
}

.sentiment-bars {
  display: inline-flex;
  align-items: end;
  gap: 3px;
  margin-right: 8px;
  vertical-align: middle;
}

.sentiment-bars i {
  width: 4px;
  height: 14px;
  display: block;
  background: #367d3f;
}

.sentiment-bars i:nth-child(7),
.sentiment-bars i:nth-child(8) {
  opacity: 0.22;
}

.market-status strong {
  color: #367d3f;
  font-size: 20px;
}

body:not(.chat-mode) .hero {
  min-height: calc(100vh - 184px);
  max-height: none;
  display: block;
  padding: 44px max(28px, calc((100vw - 1830px) / 2 + 28px)) 56px;
  overflow: visible;
  background: transparent;
}

.finance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 52px;
  align-items: start;
}

.panel-head {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 26px 16px;
}

.panel-head h1,
.rail-section h2 {
  margin: 0;
  color: var(--strong);
  font-size: 23px;
  line-height: 1.2;
}

.manage-watchlist {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #817c75;
  font: inherit;
  font-size: 19px;
  font-weight: 400;
}

.market-brief {
  min-height: 780px;
  padding: 36px 28px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(#ece8e2 1.7px, transparent 1.7px) 0 0 / 34px 34px,
    rgba(255, 254, 253, 0.78);
  box-shadow: 0 24px 70px rgba(45, 44, 41, 0.05);
}

.market-brief p {
  max-width: 1220px;
  margin: 0 0 28px;
  color: #353330;
  font-family: var(--display-font);
  font-size: clamp(22px, 1.55vw, 29px);
  font-weight: 400;
  line-height: 1.34;
}

.market-brief strong {
  color: #302f2c;
  font-weight: 400;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 1px 9px 3px;
  border-radius: 7px;
  font-family: var(--ui-font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  vertical-align: 3px;
}

.pill.down,
.market-row .down {
  background: #f3e7e9;
  color: #a34f59;
}

.pill.up,
.market-row .up {
  background: #e8f2e7;
  color: #317a3b;
}

.ask-box {
  position: sticky;
  bottom: 18px;
  display: grid;
  gap: 18px;
  margin: 38px -1px 0;
  padding: 30px 34px 18px;
  border: 1px solid #ddd8d1;
  border-radius: 22px;
  background: #fffefd;
  box-shadow: 0 18px 50px rgba(45, 44, 41, 0.08);
}

.ask-box > span {
  color: #a09b94;
  font-size: 24px;
}

.ask-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ask-actions button {
  min-width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #69645e;
  font-size: 28px;
}

.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  padding: 0 18px !important;
  border: 1px solid #dedad5 !important;
  background: #fffefd !important;
  color: #2f2e2b !important;
  font-size: 20px !important;
  font-weight: 400;
}

.search-chip svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.send-button {
  margin-left: auto;
  background: #f0eee9 !important;
  color: #b9b4ad !important;
}

.finance-rail {
  display: grid;
  gap: 60px;
}

.rail-section {
  display: grid;
  gap: 18px;
}

.connect-card,
.prediction-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 254, 253, 0.82);
  box-shadow: 0 16px 44px rgba(45, 44, 41, 0.04);
}

.connect-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 16px 8px;
}

.connect-row > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f5f3ef;
  color: #20201e;
  font-size: 22px;
  font-weight: 400;
}

.connect-row strong {
  display: block;
  color: var(--strong);
  font-size: 22px;
}

.connect-row p {
  margin: 3px 0 0;
  color: #807b74;
  font-size: 19px;
  line-height: 1.2;
}

.connect-card button {
  width: 100%;
  height: 58px;
  margin-top: 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: rgba(250, 249, 247, 0.6);
  color: #7a756f;
  font: inherit;
  font-size: 18px;
  font-weight: 400;
}

.prediction-section {
  gap: 16px;
}

.prediction-card {
  border-radius: 14px;
}

.prediction-card h3 {
  margin: 0;
  padding: 20px 26px 16px;
  color: var(--strong);
  font-size: 23px;
  line-height: 1.35;
}

.market-row,
.market-foot {
  display: grid;
  grid-template-columns: 1fr 84px 96px;
  gap: 12px;
  align-items: center;
  padding: 4px 26px;
  color: #34322f;
  font-size: 22px;
}

.market-row > span:nth-child(2) {
  color: #817c75;
  text-align: right;
}

.market-row strong {
  justify-self: end;
  min-width: 88px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 18px;
  text-align: center;
}

.market-foot {
  grid-template-columns: 1fr 1fr;
  padding: 18px 26px 18px;
  color: #817c75;
  font-size: 18px;
}

.market-foot span:last-child {
  text-align: right;
}

@media (max-width: 1180px) {
  .top-bar,
  .market-bar {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 0;
  }

  body:not(.chat-mode) .site-header {
    min-height: auto;
  }

  .global-search {
    width: 100%;
  }

  .header-actions,
  .market-status {
    justify-self: start;
  }

  body:not(.chat-mode) .header-tabs {
    max-width: calc(100vw - 56px);
    overflow-x: auto;
    padding-bottom: 6px;
  }

  body:not(.chat-mode) .hero {
    min-height: auto;
  }

  .finance-grid {
    grid-template-columns: 1fr;
  }

  .finance-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .global-search span,
  .price-alert-link {
    display: none;
  }

  .finance-rail {
    grid-template-columns: 1fr;
  }

  .panel-head {
    padding-inline: 0;
    align-items: flex-start;
  }

  .market-brief {
    padding: 24px 18px 0;
    border-radius: 16px;
  }

  .market-brief p {
    font-size: 20px;
  }

  .ask-box {
    padding: 22px 18px 16px;
  }

  .market-row {
    grid-template-columns: 1fr auto;
  }

  .market-row strong {
    grid-column: 2;
  }
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui-font);
}

.app-boot {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.app-boot .logo-mark {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

body.chat-mode .hero {
  min-height: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

body.chat-mode .estimator-shell {
  display: block;
  min-height: calc(100vh - 88px);
  padding-top: 104px;
}

body.chat-mode .site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  pointer-events: none;
}

body.chat-mode .wordmark,
body.chat-mode .header-tabs,
body.chat-mode .login-link {
  pointer-events: auto;
}

.site-header {
  width: 100%;
  margin: 0;
  padding: 0 max(24px, calc((100vw - 1380px) / 2 + 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(32, 33, 36, 0.08);
  backdrop-filter: blur(8px);
}

.wordmark {
  font-family: var(--display-font);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--strong);
}

.header-tabs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 44px);
}

.header-tabs button,
.header-tabs a {
  min-width: 0;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--strong);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.header-tabs button:hover,
.header-tabs button:focus-visible,
.header-tabs button.active,
.header-tabs a:hover,
.header-tabs a:focus-visible {
  color: var(--accent);
}

.login-link {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.login-link:hover,
.login-link:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(78vh, 760px);
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(247, 247, 248, 0.28), rgba(247, 247, 248, 0.72)),
    url("/assets/hero-street.png") center bottom / cover no-repeat;
  transition: min-height 420ms ease, max-height 420ms ease, opacity 240ms ease;
  max-height: min(78vh, 760px);
}

.how-panel {
  width: min(1080px, calc(100% - 32px));
  margin: 32px auto 42px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(32, 33, 36, 0.06);
}

.how-story {
  display: grid;
  gap: 18px;
}

.how-story p:not(.step-label) {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.45;
}

.how-illustration {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 10px 0 34px;
}

.how-illustration svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.paper-line,
.house-line,
.mail-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paper-line {
  stroke: var(--accent);
  stroke-width: 5;
}

.paper-line.faint {
  stroke: #dbe6ff;
  stroke-width: 16;
  opacity: 0.8;
}

.house-line,
.mail-line {
  stroke: #555;
  stroke-width: 4;
}

.how-node {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 5;
}

.how-node.active {
  fill: var(--accent);
}

.how-caption {
  position: absolute;
  bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.how-caption.left {
  left: 3%;
}

.how-caption.center {
  left: 50%;
  transform: translateX(-50%);
}

.how-caption.right {
  right: 3%;
}

.public-sections {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto 52px;
  display: grid;
  gap: 24px;
}

.dashboard-shell {
  width: min(1040px, calc(100% - 32px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 44px 0 64px;
}

.dashboard-card,
.dashboard-empty {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(32, 33, 36, 0.05);
}

.dashboard-card {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.dashboard-head h1,
.dashboard-empty h1 {
  margin: 8px 0 0;
  color: var(--strong);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
}

.dashboard-edit {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  border: 1px solid #d8dfd6;
  border-radius: 10px;
  color: var(--accent);
  font: 400 14px/1 var(--ui-font);
  text-decoration: none;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dashboard-metrics div {
  min-height: 90px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dashboard-metrics div:nth-child(3n) {
  border-right: 0;
}

.dashboard-metrics div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.dashboard-metrics span,
.dashboard-section-head span,
.dashboard-alerts > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.dashboard-metrics strong {
  color: var(--strong);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 400;
}

.editable-metric {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
}

.editable-metric span,
.editable-metric strong,
.editable-metric input,
.editable-metric select {
  grid-column: 1;
}

.editable-metric input,
.editable-metric select {
  width: min(220px, 100%);
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(0, 200, 5, 0.38);
  border-radius: 8px;
  background: rgba(8, 10, 9, 0.72);
  color: #f6f8f4;
  font: 500 15px/1 var(--ui-font);
}

.metric-edit,
.metric-save {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
}

.metric-edit {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(220, 230, 218, 0.18);
  border-radius: 999px;
  background: rgba(8, 10, 9, 0.72);
  color: #a7afa8;
  cursor: pointer;
}

.metric-edit svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-save {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #071008;
  font: 500 13px/1 var(--ui-font);
  cursor: pointer;
}

.dashboard-chart {
  display: grid;
}

.dashboard-chart-surface {
  display: grid;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.dashboard-plot {
  width: 100%;
  justify-self: stretch;
  display: grid;
  gap: 22px;
}

.dashboard-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 22px 0;
}

.dashboard-section-head h2 {
  width: auto;
  margin: 0;
  font-size: 22px;
}

.opportunity-note {
  max-width: none;
  margin: 0 22px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #426348;
  font-size: 14px;
  line-height: 1.4;
}

.dashboard-chart .hero-chart {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  min-height: 390px;
  padding: 8px 6px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-alerts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

.dashboard-alerts p {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
}

.dashboard-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: auto;
}

.dashboard-alert-actions .unsubscribe-button,
.dashboard-alert-actions .dashboard-subscribe {
  min-height: 44px;
  min-width: 140px;
  padding: 0 22px;
  border-radius: 10px;
  font: 400 14px/1 var(--ui-font);
  cursor: pointer;
}

.unsubscribe-button {
  border: 1px solid #d8dfd6;
  background: #fff;
  color: #625e58;
}

.unsubscribe-button:hover,
.unsubscribe-button:focus-visible {
  border-color: #b79d9f;
  color: #8b454d;
  background: #fff8f8;
}

.dashboard-subscribe {
  display: inline-grid;
  place-items: center;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: 400 14px/1 var(--ui-font);
  text-decoration: none;
}


.subscribe-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(32, 33, 36, 0.34);
  backdrop-filter: blur(4px);
}

.subscribe-dialog {
  position: relative;
  width: min(560px, 100%);
  padding: 30px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 68px rgba(32, 33, 36, 0.2);
}

.subscribe-dialog .dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #e2e5e0;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.subscribe-dialog h3 {
  padding-right: 40px;
}

.dashboard-login {
  width: fit-content;
  min-width: 220px;
  min-height: 52px;
  padding: 0 32px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: #071008;
  font: 500 16px/1 var(--ui-font);
  text-decoration: none;
  cursor: pointer;
}

.dashboard-login:hover,
.dashboard-login:focus-visible {
  background: #42904a;
  border-color: #42904a;
}

.signup-google {
  min-height: 50px;
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #071008;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.signup-google:hover,
.signup-google:focus-visible {
  border-color: #42904a;
  background: #42904a;
  color: #071008;
}

.dashboard-result-link {
  min-height: 50px;
  display: inline-grid;
  place-items: center;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #071008;
  font-weight: 400;
  text-decoration: none;
}

.dashboard-result-link.disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: wait;
}

.dashboard-empty-action {
  min-height: 240px;
  place-items: center;
}

.dashboard-empty-action .hero-cta {
  grid-column: auto;
  grid-row: auto;
  justify-self: center;
  margin-left: 0;
}

.loading-state {
  min-height: 300px;
}

.dashboard-spinner {
  width: 40px;
  height: 40px;
  margin: 120px auto;
  border: 3px solid rgba(220, 230, 218, 0.16);
  border-top-color: #00c805;
  border-radius: 50%;
  animation: dashboard-spin 0.8s linear infinite;
}

@keyframes dashboard-spin {
  to { transform: rotate(360deg); }
}

.good-to-know {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 38px 0 18px;
  text-align: center;
}

.good-to-know h2 {
  margin: 0;
  color: #4a4a4a;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.05;
}

.good-to-know p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.faq-section {
  display: grid;
  gap: 22px;
}

.faq-heading {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.faq-heading h2 {
  width: auto;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.12;
  text-align: center;
}

.switch-infographic,
.pricing-flow {
  display: grid;
  gap: 28px;
  justify-items: center;
  padding: clamp(34px, 5vw, 58px) clamp(18px, 4vw, 42px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.switch-copy,
.pricing-copy {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 880px;
  text-align: center;
}

.switch-copy h2,
.pricing-copy h2 {
  margin: 0;
  color: #4a4a4a;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
}

.section-copy {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
  text-align: center;
}

.public-panel .section-copy {
  text-align: left;
}

.switch-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.42;
}

.bubble-map {
  position: relative;
  width: min(720px, 100%);
  min-height: 360px;
}

.signal-bubble {
  position: absolute;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 999px;
  background: #f1f2f4;
  color: #4a4a4a;
  text-align: center;
}

.signal-bubble strong {
  font-weight: 400;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1;
}

.signal-bubble span {
  max-width: 150px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

.bubble-large {
  top: 16px;
  left: 54px;
  width: 250px;
  height: 250px;
}

.bubble-mid {
  top: 0;
  left: 344px;
  width: 198px;
  height: 198px;
}

.bubble-small {
  top: 54px;
  right: 36px;
  width: 142px;
  height: 142px;
}

.bubble-mid.alt {
  top: 184px;
  left: 274px;
}

.bubble-small.alt {
  top: 200px;
  right: 132px;
}

.pricing-flow {
  min-height: min(720px, calc(100vh - 112px));
  gap: clamp(22px, 4vw, 34px);
  align-content: center;
}

.pricing-visual {
  width: min(860px, 100%);
  margin: -10px 0 -2px;
}

.pricing-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

.pricing-house,
.pricing-envelope {
  fill: none;
  stroke: rgba(32, 33, 36, 0.17);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pricing-rate {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pricing-rate.ghost {
  stroke: rgba(32, 33, 36, 0.08);
  stroke-width: 20;
}

.pricing-node {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 7;
}

.pricing-node.active {
  filter: drop-shadow(0 0 16px rgba(52, 120, 59, 0.28));
}

.price-steps {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.price-steps article {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
}

.price-steps span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 400;
}

.price-steps strong {
  color: var(--strong);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.price-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.42;
}

.faq-card {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(32, 33, 36, 0.06);
}

.faq-card h3 {
  margin: 0;
  color: #4a4a4a;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.14;
}

.faq-card p {
  margin: 0;
  color: #777;
  font-size: 16px;
  line-height: 1.48;
}

.about-panel {
  overflow: hidden;
}

.about-copy {
  display: grid;
  gap: 12px;
}

.about-graphic {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: clamp(12px, 2vw, 20px);
}

.about-graphic svg {
  width: min(360px, 100%);
  height: auto;
  display: block;
}

.about-house,
.about-axis,
.about-card {
  fill: none;
  stroke: rgba(32, 33, 36, 0.16);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-axis {
  stroke-width: 4;
}

.about-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-dot {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 7;
  filter: drop-shadow(0 0 14px rgba(52, 120, 59, 0.24));
}

.about-graphic p {
  max-width: 320px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  text-align: center;
}

.public-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.public-panel h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.public-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.how-copy {
  display: grid;
  gap: 16px;
}

.how-copy h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
}

.how-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.how-card {
  min-height: 158px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.how-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.how-card strong {
  color: var(--strong);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.08;
}

.how-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.rate-card,
.alert-card {
  background: var(--accent-soft);
}

.trend-line {
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
}

.trend-line span {
  width: 100%;
  height: 3px;
  display: block;
  border-radius: 999px;
  background: var(--accent);
  transform-origin: center;
}

.trend-line.down span {
  transform: rotate(-8deg);
}

.trend-line.up span {
  transform: rotate(8deg);
}

.range-meter {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dfead9, var(--accent), #245a2b);
}

.range-meter span {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(52, 120, 59, 0.18);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.hero-copy {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  font-family: var(--ui-font);
  color: var(--strong);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  overflow-wrap: break-word;
}

.hero p {
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.hero-cta {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: start;
  width: auto;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 14px;
  white-space: nowrap;
  background: var(--accent);
  color: #fff;
  font-family: var(--ui-font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(52, 120, 59, 0.22);
}

.hero-chart {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 22px 28px 18px;
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(32, 33, 36, 0.08);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.compact-chart {
  width: min(620px, 100%);
  min-height: auto;
  grid-column: auto;
  grid-row: auto;
  padding: 16px 18px 14px;
  box-shadow: 0 12px 34px rgba(32, 33, 36, 0.05);
  overflow: visible;
}

.compact-chart svg {
  height: 150px;
}

.compact-chart .chart-dots .estimated-dot {
  opacity: 0.12;
}

.chart-head,
.chart-axis {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.chart-head span,
.chart-axis {
  color: var(--muted);
  font-size: 13px;
}

.chart-axis {
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  color: var(--ink);
  font-weight: 400;
}

.chart-axis button,
.chart-loan-toggle button {
  min-width: 0;
  min-height: 0;
  padding: 0 0 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.chart-axis button.active,
.chart-loan-toggle button.active {
  color: var(--chart-live);
  box-shadow: inset 0 -2px 0 var(--chart-live);
}

.chart-loan-toggle {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 400;
}

.chart-live-value {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.chart-live-value .chart-fixed-label {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.chart-head strong {
  color: var(--strong);
  font-size: 34px;
  line-height: 0.95;
}

.hero-chart svg {
  width: 100%;
  height: 250px;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.72);
  touch-action: none;
}

.hero-chart .chart-baseline {
  stroke: rgba(22, 33, 38, 0.38);
  stroke-width: 2;
  stroke-dasharray: 1 10;
  stroke-linecap: round;
}

.chart-x-axis line {
  stroke: rgba(220, 230, 218, 0.24);
  stroke-width: 1;
}

.chart-x-axis text {
  fill: #8d978f;
  font-family: var(--ui-font);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.alert-zone {
  fill: rgba(52, 120, 59, 0.08);
}

.current-rate-line {
  stroke: rgba(45, 44, 41, 0.38);
  stroke-width: 1.3;
  stroke-dasharray: 5 5;
}

.alert-threshold-line {
  stroke: rgba(52, 120, 59, 0.45);
  stroke-width: 1.4;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}

.hero-chart path {
  fill: none;
  stroke: var(--chart-live);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.chart-line {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  animation: none;
}

.chart-dots circle {
  fill: var(--chart-live);
  pointer-events: none;
  display: none;
}

.chart-dots .estimated-dot {
  opacity: 0.22;
}

.chart-dots .published-dot {
  opacity: 0.72;
}

.chart-hover-line {
  stroke: rgba(52, 120, 59, 0.5);
  stroke-width: 1.4;
  stroke-dasharray: 2 7;
  stroke-linecap: round;
}

.chart-x-date-label {
  fill: var(--muted);
  font-family: var(--ui-font);
  font-size: 10px;
  font-weight: 400;
}

.chart-pointer {
  filter: none;
  pointer-events: none;
}

.chart-pointer-glow {
  fill: rgba(52, 120, 59, 0.13);
}

.chart-pointer-dot {
  fill: #fff;
  stroke: var(--chart-live);
  stroke-width: 2.6;
}

.chart-runner {
  fill: #6aff70;
  filter: drop-shadow(0 0 7px rgba(0, 200, 5, 0.92));
  pointer-events: none;
}

.chart-runner-tooltip rect {
  fill: rgba(14, 17, 15, 0.92);
  stroke: rgba(220, 230, 218, 0.18);
  stroke-width: 1;
}

.chart-runner-tooltip text {
  fill: #f6f8f4;
  font-family: var(--ui-font);
  font-size: 10px;
  font-weight: 400;
}

.chart-minimum {
  pointer-events: none;
}

.chart-minimum-dot {
  fill: #b9f227;
  stroke: #0f1110;
  stroke-width: 2;
}

.chart-minimum rect {
  fill: rgba(14, 17, 15, 0.92);
  stroke: rgba(220, 230, 218, 0.18);
  stroke-width: 1;
}

.chart-minimum text {
  fill: #b9f227;
  font-family: var(--ui-font);
  font-size: 10px;
  font-weight: 400;
}

.opportunity-tooltip {
  pointer-events: none;
}

.opportunity-tooltip rect {
  fill: rgba(14, 17, 15, 0.92);
  stroke: rgba(220, 230, 218, 0.18);
  stroke-width: 1;
}

.opportunity-tooltip text {
  fill: #f6f8f4;
  font-family: var(--ui-font);
  font-size: 10px;
  font-weight: 400;
}

.opportunity-tooltip .opportunity-tooltip-title {
  fill: #b9f227;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.opportunity-halo {
  fill: rgba(52, 120, 59, 0.15);
  stroke: rgba(52, 120, 59, 0.2);
}

.opportunity-dot {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 2;
}

.missed-opportunity-point {
  pointer-events: none;
}

.missed-opportunity-halo {
  fill: rgba(185, 242, 39, 0.14);
}

.missed-opportunity-dot {
  fill: #b9f227;
  stroke: #101311;
  stroke-width: 2;
}

.signal-card,
.opportunity-list,
.ownership-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid rgba(52, 120, 59, 0.18);
  border-radius: 12px;
  background: #f5faf4;
}

.signal-card div,
.opportunity-list div {
  display: grid;
  gap: 4px;
}

.signal-card span,
.opportunity-list span,
.threshold-card span,
.why-card span,
.trust-note strong,
.apr-note summary {
  color: var(--accent);
  font-size: 14px;
  font-weight: 400;
}

.signal-card strong,
.opportunity-list strong,
.threshold-card strong {
  color: var(--strong);
  font-size: 22px;
  line-height: 1.15;
}

.signal-card p,
.opportunity-list p,
.ownership-card p,
.why-card p,
.trust-note p,
.apr-note p {
  margin: 0;
  color: #5f5b55;
  font-size: 15px;
  line-height: 1.45;
}

.ownership-card {
  gap: 18px;
  border-color: rgba(45, 44, 41, 0.12);
  background:
    linear-gradient(135deg, rgba(52, 120, 59, 0.11), rgba(255, 255, 255, 0) 48%),
    #fffefd;
}

.ownership-card-head {
  display: grid;
  gap: 6px;
}

.ownership-card-head span,
.ownership-bars span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 400;
}

.ownership-card-head strong {
  color: var(--strong);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
}

.ownership-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ownership-bars > div {
  display: grid;
  gap: 8px;
}

.ownership-bars strong {
  color: var(--strong);
  font-size: 24px;
}

.ownership-bars i {
  height: 12px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(45, 44, 41, 0.09);
}

.ownership-bars i b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--accent);
}

.ownership-bars > div:first-child i b {
  width: var(--principal-share);
}

.ownership-bars > div:nth-child(2) i b {
  width: var(--equity-share);
}

.ownership-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ownership-split p {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.opportunity-list p {
  padding-top: 10px;
  border-top: 1px solid rgba(52, 120, 59, 0.14);
}

.chart-tooltip {
  display: none;
}

.estimator-shell {
  position: relative;
  display: none;
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 88px);
  padding: 8px 0 32px;
}

.chat-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  grid-template-rows: minmax(520px, 1fr);
  min-height: calc(100vh - 128px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.onboard-art {
  position: absolute;
  top: 92px;
  left: 50%;
  width: min(560px, calc(100% - 48px));
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 14px;
  color: rgba(96, 100, 106, 0.62);
  pointer-events: none;
}

.onboard-art span {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 400;
}

.onboard-art svg {
  width: min(430px, 78%);
  height: auto;
  opacity: 0.16;
  transform: translateY(-4px);
}

.onboard-art path,
.onboard-art circle {
  fill: none;
  stroke: #60646a;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.onboard-art circle {
  fill: #fff;
  stroke: var(--accent);
}

.chat-panel::before {
  content: "";
  position: absolute;
  top: 84px;
  bottom: 0;
  left: 50%;
  width: min(760px, 100%);
  transform: translateX(-50%);
  border: 1px solid rgba(32, 33, 36, 0.06);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
  background: var(--chat-column);
  opacity: 0.86;
  box-shadow: 0 20px 60px rgba(32, 33, 36, 0.05);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.step-rail {
  position: fixed;
  left: max(48px, calc((100vw - 1380px) / 2 + 56px));
  top: 24vh;
  height: 360px;
  margin-top: 0;
  transform: none;
}

.flow {
  justify-self: center;
  position: relative;
  z-index: 1;
}

.step-rail ol {
  display: grid;
  align-content: space-between;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-rail li {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 28px;
  color: var(--muted);
}

.step-rail li span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #d7dfe2;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0;
  font-weight: 400;
}

.step-rail li strong,
.step-rail .step-link {
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 400;
}

.step-rail .step-link {
  min-width: 0;
  min-height: 28px;
  justify-self: start;
  padding: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-weight: 400;
}

.step-rail .step-link:hover,
.step-rail .step-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.step-rail li.active,
.step-rail li.complete {
  color: var(--ink);
}

.step-rail li.active span,
.step-rail li.complete span {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.progress-line {
  position: absolute;
  left: 8px;
  top: 11px;
  bottom: 11px;
  width: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f2;
}

.progress-line span {
  display: block;
  width: 100%;
  height: 0;
  margin: 0;
  background: var(--accent);
  transition: height 220ms ease;
}

.flow {
  display: grid;
  align-content: start;
  gap: 18px;
  width: min(760px, 100%);
  padding: 22vh 32px 58vh;
  scroll-margin-top: 22vh;
}

.flow-step {
  display: grid;
  justify-items: start;
  gap: 24px;
  width: min(760px, 100%);
  max-width: 760px;
  transition: opacity 220ms ease, transform 220ms ease;
  scroll-margin-top: 22vh;
}

.assistant-message {
  justify-self: center;
}

#step-loan {
  margin-top: 70px;
}

.assistant-message.answered {
  opacity: 0.72;
  transform: translateY(-24px);
  gap: 0;
}

.assistant-message.archived {
  min-height: 0;
}

.assistant-message.archived > :not(h2) {
  display: none;
}

.archived-answer + .assistant-message {
  margin-top: 72px;
}

.assistant-message.answered button,
.assistant-message.answered input {
  cursor: default;
}

.user-message {
  justify-self: end;
  max-width: min(360px, 80%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 22px;
  border-radius: 999px;
  background: #f0f3f7;
  color: var(--strong);
  font-size: 18px;
  line-height: 1.2;
  transition: opacity 220ms ease, transform 220ms ease;
}

.edit-answer {
  width: 32px;
  min-width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}

.edit-answer svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edit-answer:hover,
.edit-answer:focus-visible {
  color: var(--ink);
  border-color: rgba(52, 120, 59, 0.36);
}

.user-message + .assistant-message {
  margin-top: 72px;
}

.user-message.entering {
  opacity: 0;
  transform: translateY(18px);
}

.user-message.entering.entered {
  opacity: 1;
  transform: translateY(0);
}

.step-label {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 400;
}

h2 {
  max-width: 620px;
  width: min(620px, 100%);
  margin: 0;
  font-family: var(--display-font);
  color: var(--strong);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 280px));
  gap: 14px;
}

.option-grid button {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--strong);
  box-shadow: 0 18px 48px rgba(32, 33, 36, 0.05);
}

.option-grid button strong {
  font-family: var(--ui-font);
  font-size: 20px;
  font-weight: 400;
}

.option-grid button span {
  font-family: var(--ui-font);
  color: var(--muted);
  font-size: 14px;
}

.loan-term-grid {
  grid-template-columns: repeat(2, minmax(220px, 280px));
}

.more-products-toggle {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 0 6px;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.more-products-toggle span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(52, 120, 59, 0.32);
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
}

.more-products-toggle:hover,
.more-products-toggle:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.additional-products {
  margin-top: 14px;
}

.choice-grid {
  grid-template-columns: repeat(2, minmax(120px, 160px));
}

.single-input-card {
  display: grid;
  gap: 10px;
  width: min(360px, 100%);
}

.single-input-card span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
}

.single-input-card input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--strong);
  font-size: 24px;
}

.field-error {
  max-width: 460px;
  margin: -8px 0 0;
  color: #a34f59;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

input[aria-invalid="true"] {
  border-color: #a34f59;
  box-shadow: 0 0 0 3px rgba(163, 79, 89, 0.12);
}

.cta-button {
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #071008;
  font: 500 15px/1 var(--ui-font);
  cursor: pointer;
}

.slider-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px;
  gap: 12px;
  max-width: 620px;
  align-items: end;
}

.slider-card strong {
  grid-column: 1 / -1;
  font-family: var(--ui-font);
  font-size: clamp(20px, 2.2vw, 26px);
}

input[type="range"] {
  width: 100%;
  min-height: auto;
  padding: 0;
  border: 0;
  accent-color: var(--accent);
}

.direct-entry {
  display: grid;
  gap: 8px;
  width: 180px;
  text-align: left;
}

.direct-entry span {
  color: var(--muted);
  font-size: 14px;
}

.estimate-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid #d8ddd7;
  border-radius: 10px;
  width: 100%;
  max-width: 760px;
  margin-top: 24px;
  background:
    linear-gradient(90deg, rgba(48, 78, 55, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(48, 78, 55, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    #fbfcfa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.estimate-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 88px;
  border-left: 1px solid rgba(45, 44, 41, 0.08);
  border-bottom: 1px solid rgba(45, 44, 41, 0.08);
  background:
    linear-gradient(135deg, transparent 49%, rgba(52, 120, 59, 0.18) 50%, transparent 51%),
    rgba(255, 255, 255, 0.42);
}

.estimate-hero.wait {
  border-color: #d9dee4;
  background:
    linear-gradient(90deg, rgba(22, 33, 38, 0.045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(22, 33, 38, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    #f8fafb;
}

.estimate-hero.act {
  border-color: rgba(52, 120, 59, 0.22);
}

.estimate-hero h2 {
  font-family: var(--display-font);
  color: var(--strong);
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 400;
  line-height: 1.06;
}

.decision-question {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.estimate-hero strong {
  font-size: clamp(34px, 5vw, 52px);
}

.estimate-hero strong span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 18px;
}

.estimate-hero p {
  margin: 0;
  max-width: 560px;
  color: #4f544e;
  font-size: 16px;
  line-height: 1.48;
}

.watch-promise {
  display: grid;
  gap: 6px;
  max-width: 560px;
  padding: 14px 16px;
  border: 1px solid rgba(52, 120, 59, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.watch-promise strong {
  color: var(--strong);
  font-size: 17px;
  line-height: 1.25;
}

.watch-promise span {
  color: #596059;
  font-size: 14px;
  line-height: 1.4;
}

.savings-callout {
  display: grid;
  gap: 4px;
  padding-top: 4px;
}

.savings-callout span,
.quote-metrics span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.savings-callout strong {
  color: var(--accent);
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1;
}

.quote-metrics {
  width: 100%;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.chat-mode .quote-metrics div {
  border-color: rgba(220, 230, 218, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(8, 10, 9, 0.68);
}

body.chat-mode .quote-metrics strong {
  color: #f6f8f4;
}

.decision-math,
.cost-breakdown,
.ownership-preview {
  width: min(620px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cost-breakdown {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ownership-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.decision-math div,
.cost-breakdown div,
.ownership-preview div {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(45, 44, 41, 0.14);
  border-radius: 8px;
  background: #fff;
  min-height: 88px;
}

.decision-math div::before,
.cost-breakdown div::before,
.ownership-preview div::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #3a3936;
  opacity: 0.72;
}

.decision-math div:nth-child(1)::before,
.decision-math div:nth-child(2)::before {
  background: var(--accent);
}

.decision-math span,
.cost-breakdown span,
.ownership-preview span,
.threshold-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.decision-math strong,
.cost-breakdown strong {
  color: var(--strong);
  font-family: var(--ui-font);
  font-size: 20px;
  letter-spacing: 0;
}

.ownership-preview strong {
  color: var(--strong);
  font-size: 24px;
}

.ownership-preview p {
  margin: 0;
  color: #68635d;
  font-size: 14px;
  line-height: 1.35;
}

.why-card,
.threshold-card,
.trust-note,
.apr-note,
.quote-appendix,
.report-gate-message {
  width: min(620px, 100%);
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(45, 44, 41, 0.1);
}

.report-button {
  width: min(620px, 100%);
  min-height: 54px;
  border: 1px solid rgba(52, 120, 59, 0.28);
  border-radius: 8px;
  background: #34783b;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  box-shadow: 0 12px 28px rgba(52, 120, 59, 0.15);
}

.report-button:hover,
.report-button:focus-visible {
  background: #2d6934;
}

.report-gate-message {
  margin: 0;
  border-color: rgba(45, 44, 41, 0.14);
  background: #fffaf1;
  color: #5e5341;
  font-size: 14px;
  line-height: 1.45;
}

.research-panel {
  width: min(620px, 100%);
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dce2da;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(52, 120, 59, 0.035) 1px, transparent 1px) 0 0 / 24px 24px,
    #fbfcfa;
}

.quote-loading-card {
  width: min(620px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px 30px;
  border: 1px solid #dce2da;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(52, 120, 59, 0.035) 1px, transparent 1px) 0 0 / 24px 24px,
    #fbfcfa;
}

.quote-loading-card > span {
  color: #747973;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.quote-loading-card h2 {
  margin: 0;
  color: var(--strong);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.quote-loading-card p {
  margin: 0;
  color: #565a55;
  font-size: 15px;
  line-height: 1.45;
}

.model-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.model-progress i {
  height: 8px;
  border-radius: 999px;
  background: #dfe6dd;
  overflow: hidden;
}

.model-progress i::after {
  content: "";
  display: block;
  width: 46%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: model-scan 900ms ease-in-out infinite;
}

.model-progress i:nth-child(2)::after {
  animation-delay: 120ms;
}

.model-progress i:nth-child(3)::after {
  animation-delay: 240ms;
}

.model-progress i:nth-child(4)::after {
  animation-delay: 360ms;
}

.research-head,
.research-targets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.research-targets {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.research-head > div,
.research-targets > div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(45, 44, 41, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.research-panel span,
.research-factors span,
.source-ledger span {
  color: #747973;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.research-panel strong {
  color: var(--strong);
  font-size: 14px;
  line-height: 1.25;
}

.research-targets strong {
  font-family: var(--ui-font);
  font-size: 15px;
}

.research-factors {
  display: grid;
  gap: 8px;
}

.research-factors article {
  display: grid;
  grid-template-columns: minmax(136px, 0.76fr) auto;
  gap: 8px 12px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid rgba(45, 44, 41, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.research-factors article > div {
  display: grid;
  gap: 5px;
}

.research-factors b {
  justify-self: end;
  max-width: 145px;
  padding: 5px 7px;
  border: 1px solid rgba(52, 120, 59, 0.18);
  border-radius: 6px;
  background: #edf5eb;
  color: #34783b;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
}

.research-factors p {
  grid-column: 1 / -1;
  margin: 0;
  color: #565a55;
  font-size: 13px;
  line-height: 1.45;
}

.source-ledger {
  padding: 13px 14px;
  border: 1px solid rgba(45, 44, 41, 0.1);
  border-radius: 8px;
  background: #fff;
}

.source-ledger summary {
  cursor: pointer;
  color: var(--strong);
  font-weight: 400;
}

.source-ledger > div {
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.source-ledger a {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.source-ledger a:first-child {
  border-top: 0;
}

.threshold-card {
  background: #fbfcfa;
}

.dashboard-threshold {
  background: rgba(8, 10, 9, 0.68);
  border: 1px solid rgba(220, 230, 218, 0.14);
  border-radius: 12px;
  padding: 18px;
  color: #f6f8f4;
}

.dashboard-threshold > div:first-child strong {
  color: #f6f8f4;
}

.dashboard-threshold .threshold-current {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-threshold .threshold-current strong {
  color: #f6f8f4;
}

.dashboard-threshold .threshold-edit {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(220, 230, 218, 0.18);
  border-radius: 999px;
  background: rgba(8, 10, 9, 0.82);
  color: #a7afa8;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.dashboard-threshold .threshold-edit svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-threshold .threshold-edit:hover,
.dashboard-threshold .threshold-edit:focus-visible {
  border-color: rgba(0, 200, 5, 0.45);
  background: rgba(0, 200, 5, 0.1);
  color: #f6f8f4;
}

.dashboard-threshold .threshold-options button {
  background: rgba(14, 17, 15, 0.72);
  border-color: rgba(220, 230, 218, 0.18);
  color: #dce5dc;
}

.dashboard-threshold .threshold-options button.active {
  border-color: rgba(0, 200, 5, 0.56);
  background: rgba(0, 200, 5, 0.12);
  color: #8dff91;
}

.threshold-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 200, 5, 0.34);
  border-radius: 10px;
  background: rgba(0, 200, 5, 0.12);
  color: #8dff91;
  font: 500 14px/1.35 var(--ui-font);
}

.threshold-card > div:first-child {
  display: grid;
  gap: 5px;
}

.threshold-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.threshold-options button {
  min-width: 0;
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(52, 120, 59, 0.2);
  background: #fff;
  color: var(--accent);
}

.threshold-options button strong {
  color: inherit;
  font-size: 15px;
  line-height: 1;
}

.threshold-options button span {
  color: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.15;
  opacity: 0.72;
}

.threshold-options button.active {
  background: var(--accent);
  color: #fff;
}

.trust-note {
  border-color: rgba(52, 120, 59, 0.18);
  background: #f5faf4;
}

.apr-note {
  background: #faf9f7;
}

.apr-note summary {
  cursor: pointer;
}

.quote-appendix {
  background: #faf9f7;
}

.quote-appendix summary {
  cursor: pointer;
}

.quote-appendix > div {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.quote-appendix p {
  margin: 0;
  color: #5f5b55;
  font-size: 14px;
  line-height: 1.45;
}

.quote-metrics div {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.quote-metrics strong {
  font-size: 22px;
}

.payment-chart {
  width: min(620px, 100%);
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: clamp(18px, 4vw, 42px);
  padding-top: 8px;
}

.payment-bar-group {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.payment-bar-group > strong {
  font-size: 20px;
}

.payment-bar-group > span {
  color: var(--muted);
  font-size: 14px;
}

.payment-bar-track {
  width: min(120px, 100%);
  height: 118px;
  display: flex;
  align-items: end;
  border-radius: 8px;
  background: #f2f4f5;
}

.payment-bar {
  display: block;
  width: 100%;
  height: 0;
  border-radius: inherit;
  animation: grow-payment-bar 700ms ease forwards;
}

.payment-bar-group.current .payment-bar {
  background: #162126;
}

.payment-bar-group.refi .payment-bar {
  background: var(--accent);
  animation-delay: 260ms;
}

.payment-savings {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 6px;
  opacity: 0;
  animation: reveal-savings 360ms ease 720ms forwards;
}

.payment-savings span {
  color: var(--muted);
  font-size: 14px;
}

.payment-savings strong {
  font-size: 21px;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.result-meta span,
.fine-print {
  color: var(--muted);
  font-size: 14px;
}

.result-meta {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.fine-print,
.signup-block h3,
.signup-block p {
  margin: 0;
}

.signup-block {
  display: grid;
  gap: 12px;
  width: min(620px, 100%);
  margin-top: 0;
  padding: 20px;
  border: 1px solid rgba(52, 120, 59, 0.18);
  border-radius: 16px;
  background: #f5faf4;
}

#step-quote {
  width: 100%;
  max-width: 760px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  margin-top: 16px;
}

#step-quote .estimate-hero,
#step-quote .decision-math,
#step-quote .cost-breakdown,
#step-quote .ownership-preview,
#step-quote .why-card,
#step-quote .threshold-card,
#step-quote .quote-metrics,
#step-quote .quote-chart-wrap,
#step-quote .trust-note,
#step-quote .apr-note,
#step-quote .quote-appendix,
#step-quote .signup-block {
  width: 100%;
  max-width: 760px;
}

#step-quote .estimate-hero {
  margin-top: 0;
}

.quote-chart-wrap {
  position: relative;
  width: 100%;
  max-width: 760px;
  isolation: isolate;
}

.quote-chart-wrap .compact-chart {
  width: 100%;
}

.signup-block h3 {
  color: var(--strong);
  font-size: 24px;
  font-weight: 400;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 16px;
}

button {
  min-width: 88px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 400;
  cursor: pointer;
}

.secondary-action {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.secondary-action:disabled {
  color: #9aa5a9;
  cursor: not-allowed;
  background: #f6f8f8;
}

.signup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.email-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(168px, 194px);
  gap: 10px;
  width: 100%;
}

.email-form input {
  width: 100%;
  min-height: 56px;
  border-color: #d8dfd6;
  background: #fff;
}

.signup-cta {
  min-width: 168px;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 400;
  box-shadow: 0 12px 28px rgba(52, 120, 59, 0.17);
}

.signup-cta:hover,
.signup-cta:focus-visible {
  background: #2d6934;
}

.primary-action,
.secondary-action {
  min-height: 42px;
}

.primary-action {
  padding: 10px 14px;
}

@keyframes grow-payment-bar {
  to {
    height: var(--target-height);
  }
}

@keyframes reveal-savings {
  to {
    opacity: 1;
  }
}

@keyframes model-scan {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(230%);
  }
}

@keyframes pulse-chart-pointer {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.82);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.2);
  }
}

@keyframes redraw-chart-line {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .site-header {
    align-items: start;
    min-height: 104px;
    padding-top: 18px;
  }

  .header-tabs {
    top: 62px;
    gap: 18px;
  }

  .header-tabs button,
  .header-tabs a {
    min-height: 32px;
    font-size: 14px;
  }

  .how-panel,
  .public-panel,
  .dashboard-card {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bubble-map {
    min-height: 300px;
  }

  .bubble-large {
    left: 0;
    width: 210px;
    height: 210px;
  }

  .bubble-mid {
    left: 250px;
    width: 164px;
    height: 164px;
  }

  .bubble-small {
    right: 0;
    width: 124px;
    height: 124px;
  }

  .bubble-mid.alt {
    top: 160px;
    left: 210px;
  }

  .bubble-small.alt {
    top: 184px;
    right: 96px;
  }

  .how-copy {
    position: static;
  }

  .dashboard-shell {
    padding-top: 132px;
  }

  .chat-panel {
    grid-template-columns: minmax(0, 640px);
  }

  .step-rail {
    top: 74px;
    left: 50%;
    width: min(640px, calc(100% - 32px));
    height: auto;
    transform: translateX(-50%);
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
  }

  .step-rail ol {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    align-items: start;
    height: auto;
  }

  .step-rail li {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    min-height: 0;
    text-align: center;
  }

  .step-rail li strong {
    font-size: 13px;
  }

  .progress-line {
    top: 17px;
    right: 10%;
    bottom: auto;
    left: 10%;
    width: auto;
    height: 4px;
  }

  .progress-line span {
    width: 0;
    height: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 20px);
    min-height: 104px;
  }

  .wordmark {
    font-size: 26px;
  }

  .login-link {
    min-width: 76px;
    height: 38px;
    min-height: 38px;
    padding: 0 14px;
  }

  .how-grid,
  .quote-metrics,
  .decision-math,
  .cost-breakdown,
  .ownership-preview,
  .ownership-bars,
  .ownership-split,
  .email-form,
  .faq-grid,
  .price-steps,
  .dashboard-card {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    width: calc(100% - 20px);
    padding: 124px 0 36px;
  }

  .dashboard-card,
  .dashboard-empty {
    padding: 22px;
  }

  .dashboard-head {
    align-items: start;
    flex-direction: column;
  }

  .dashboard-head h1,
  .dashboard-empty h1 {
    font-size: 30px;
  }

  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-metrics div:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .dashboard-metrics div:nth-child(2n) {
    border-right: 0;
  }

  .dashboard-metrics div:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .dashboard-metrics div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .threshold-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-section-head {
    align-items: start;
    flex-direction: column;
  }

  .dashboard-alerts {
    align-items: start;
    flex-direction: column;
  }

  .unsubscribe-button,
  .dashboard-subscribe {
    margin-left: 0;
  }

  .dashboard-card .hero-chart {
    width: 100%;
    min-height: 0;
    padding: 4px 0 0;
  }

  .dashboard-chart-surface {
    padding: 18px 16px 12px;
  }

  .bubble-map {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .signal-bubble,
  .bubble-large,
  .bubble-mid,
  .bubble-small,
  .bubble-mid.alt,
  .bubble-small.alt {
    position: static;
    width: 100%;
    height: auto;
    min-height: 132px;
    border-radius: 18px;
  }

  .step-rail {
    top: 104px;
    width: calc(100% - 20px);
  }

  .step-rail li strong {
    font-size: 11px;
  }

  .estimator-shell {
    width: calc(100% - 20px);
    min-height: calc(100vh - 72px);
    padding: 112px 0 28px;
  }

  .flow {
    padding: 168px 16px 42vh;
    scroll-margin-top: 156px;
  }

  #step-loan {
    margin-top: 48px;
  }

  #step-quote {
    margin-top: 14px;
  }

  .onboard-art {
    top: 124px;
    width: calc(100% - 32px);
  }

  .onboard-art svg {
    width: min(330px, 78%);
  }

  .hero {
    min-height: 720px;
    padding-top: 112px;
    background-position: center bottom;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-chart {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-copy {
    justify-items: center;
    text-align: center;
  }

  .hero-cta {
    justify-self: stretch;
    margin-left: 0;
    width: 100%;
  }

  .hero p {
    font-size: 16px;
  }

  .chat-panel {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 170px);
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .user-message {
    font-size: 18px;
  }

  .payment-chart {
    min-height: 220px;
    gap: 14px;
  }

  .payment-bar-track {
    height: 150px;
  }

  .payment-savings strong {
    font-size: 20px;
  }

  .slider-card {
    grid-template-columns: 1fr;
  }

  .slider-card strong {
    grid-column: auto;
  }

  .direct-entry {
    width: min(240px, 100%);
  }
}

/* Final landing hero layout */
body:not(.chat-mode) .hero {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: clamp(56px, 8vh, 96px) max(24px, calc((100vw - 1380px) / 2 + 24px));
}

body:not(.chat-mode) .hero-content {
  width: 100%;
  max-width: 1180px;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  grid-template-rows: auto;
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}

body:not(.chat-mode) .hero-copy {
  display: grid;
  justify-items: start;
  gap: 22px;
  text-align: left;
}

body:not(.chat-mode) .hero-copy p {
  max-width: 560px;
  margin: 0;
  color: #68635d;
  font-family: var(--ui-font);
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 400;
  line-height: 1.42;
}

body:not(.chat-mode) .hero-copy .hero-cta {
  grid-column: auto;
  grid-row: auto;
  justify-self: center;
  margin-left: 0;
  margin-top: 8px;
}

body:not(.chat-mode) .hero-chart {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-height: 390px;
  opacity: 1;
  visibility: visible;
}

body:not(.chat-mode) .hero-chart svg {
  min-height: 250px;
}

.market-strip {
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.35fr);
  gap: 22px 32px;
  align-items: end;
  margin: -28px auto 56px;
  padding: 24px 0 18px;
  border-top: 1px solid rgba(45, 44, 41, 0.12);
  border-bottom: 1px solid rgba(45, 44, 41, 0.12);
}

.market-strip-copy {
  display: grid;
  gap: 8px;
}

.market-strip-copy span {
  color: var(--accent);
  font-size: 15px;
  font-weight: 400;
}

.market-strip-copy p,
.market-source {
  margin: 0;
  color: #68635d;
  font-family: var(--ui-font);
  font-size: 15px;
  line-height: 1.45;
}

.market-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid rgba(45, 44, 41, 0.12);
}

.market-tile {
  display: grid;
  gap: 6px;
  min-height: 92px;
  align-content: center;
  padding: 0 20px;
  border-right: 1px solid rgba(45, 44, 41, 0.12);
}

.market-tile span {
  color: #706b65;
  font-size: 14px;
  font-weight: 400;
}

.market-tile strong {
  color: var(--strong);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.98;
}

.market-tile small {
  color: #706b65;
  font-size: 13px;
  font-weight: 400;
}

.market-tile small.down {
  color: var(--accent);
}

.market-tile small.up {
  color: #8b454d;
}

.market-source {
  grid-column: 1 / -1;
  color: #7c766f;
  font-size: 13px;
}

@media (max-width: 860px) {
  body:not(.chat-mode) .hero {
    min-height: auto;
    padding-top: 44px;
  }

  body:not(.chat-mode) .hero-content {
    grid-template-columns: 1fr;
  }

  body:not(.chat-mode) .hero-chart {
    grid-column: 1;
    grid-row: auto;
  }

  .market-strip {
    grid-template-columns: 1fr;
    margin-top: 8px;
  }

  .market-strip-grid {
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .market-strip {
    width: min(100% - 32px, 560px);
    margin-bottom: 42px;
  }

  .market-strip-grid {
    grid-template-columns: 1fr;
    border-top: 1px solid rgba(45, 44, 41, 0.12);
  }

  .market-tile {
    min-height: 76px;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(45, 44, 41, 0.12);
  }

  .market-tile:last-child {
    border-bottom: 0;
  }
}

.simple-sections {
  width: min(1320px, calc(100% - 48px));
  display: grid;
  gap: 22px;
  margin: 0 auto 96px;
  padding-top: 10px;
}

.simple-section {
  scroll-margin-top: 112px;
  display: grid;
  gap: 24px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(45, 44, 41, 0.11);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(52, 120, 59, 0.08), rgba(255, 255, 255, 0) 38%),
    #fffefd;
  box-shadow: 0 18px 54px rgba(45, 44, 41, 0.05);
}

.simple-section:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(183, 157, 159, 0.16), rgba(255, 255, 255, 0) 42%),
    #fffefd;
}

.simple-section:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(234, 243, 233, 0.88), rgba(255, 255, 255, 0) 44%),
    #fffefd;
}

.legal-shell {
  width: min(1060px, calc(100% - 48px));
  display: grid;
  gap: 22px;
  margin: 0 auto 72px;
  padding: clamp(64px, 10vh, 110px) 0 24px;
}

.legal-hero {
  display: grid;
  gap: 12px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(45, 44, 41, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(52, 120, 59, 0.1), rgba(255, 255, 255, 0) 44%),
    #fffefd;
}

.legal-hero span,
.legal-grid strong {
  color: var(--accent);
  font-size: 14px;
  font-weight: 400;
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--strong);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
}

.legal-hero p,
.legal-grid p,
.site-footer p {
  margin: 0;
  color: #5f5b55;
  font-size: 17px;
  line-height: 1.45;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.legal-grid article {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(45, 44, 41, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.legal-prose .legal-grid {
  grid-template-columns: 1fr;
  gap: 32px;
}

.legal-prose .legal-grid article {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.legal-prose .legal-grid strong {
  color: var(--strong);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
}

.legal-prose .legal-grid p {
  max-width: 760px;
}

.legal-body {
  max-width: 800px;
}

.legal-body p {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.65;
  color: var(--muted);
}

.site-footer {
  width: min(1180px, calc(100% - 48px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid rgba(45, 44, 41, 0.12);
}

.site-footer strong {
  color: var(--strong);
  font-family: var(--display-font);
  font-size: 24px;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: var(--accent);
  font-weight: 400;
  text-decoration: none;
}

.section-kicker {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 400;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
}

.simple-section h2 {
  width: auto;
  max-width: none;
  margin: 0;
  color: #2d2c29;
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 400;
  line-height: 0.98;
}

.section-heading p,
.signal-roadmap p,
.pricing-signal p,
.faq-signal-grid p {
  margin: 0;
  color: #4c4944;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 400;
  line-height: 1.42;
}

.signal-roadmap,
.pricing-signal,
.faq-signal-grid {
  display: grid;
  gap: 14px;
}

.signal-infographic {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(190px, 0.85fr) minmax(220px, 0.95fr) minmax(180px, 0.72fr) minmax(210px, 0.85fr);
  gap: clamp(18px, 3vw, 38px);
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px) 0 0 / 52px 52px,
    radial-gradient(circle at 58% 50%, rgba(0, 200, 5, 0.12), transparent 30%),
    rgba(8, 10, 9, 0.72);
  overflow: visible;
}

.signal-infographic::before,
.signal-infographic::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 5, 0.78), transparent);
  filter: drop-shadow(0 0 10px rgba(0, 200, 5, 0.46));
  transform: translateY(-50%);
  animation: signal-flow 2.8s ease-in-out infinite;
}

.signal-infographic::before {
  left: 15%;
  width: 42%;
}

.signal-infographic::after {
  right: 13%;
  width: 24%;
  animation-delay: 0.6s;
}

.signal-card-node,
.ratewatch-signal {
  position: relative;
  z-index: 1;
}

.signal-card-node {
  display: grid;
  gap: 12px;
  min-height: 170px;
  align-content: center;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid rgba(220, 230, 218, 0.18);
  border-radius: 8px;
  background: rgba(18, 22, 20, 0.92);
  box-shadow: inset 0 2px 0 rgba(0, 200, 5, 0.45);
  animation: signal-card-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.signal-card-node::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #6aff70;
  box-shadow: 0 0 18px rgba(0, 200, 5, 0.76);
  transform: translate(50%, -50%);
  animation: signal-pulse-right 1.9s ease-in-out infinite;
}

.alert-signal::after {
  left: -8px;
  right: auto;
  transform: translate(-50%, -50%);
  animation-name: signal-pulse-left;
}

.signal-card-node span {
  color: #00c805;
  font-family: var(--ui-font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.signal-card-node strong {
  color: #f5f8f4;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.02;
}

.signal-card-node p {
  max-width: 280px;
  margin: 0;
  color: #b9c0b8;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.35;
}

.signal-stack {
  display: grid;
  gap: 18px;
}

.ratewatch-signal {
  display: grid;
  justify-items: center;
  gap: 14px;
  color: #8dff91;
  text-align: center;
  text-shadow: 0 0 18px rgba(0, 200, 5, 0.5);
  animation: signal-breathe 2.4s ease-in-out infinite;
}

.ratewatch-signal i {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 999px;
  background: #6aff70;
  box-shadow: 0 0 0 12px rgba(0, 200, 5, 0.1), 0 0 34px rgba(0, 200, 5, 0.78);
}

.ratewatch-signal strong {
  max-width: 190px;
  color: #8dff91;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 0.98;
}

.source-map::before,
.source-map::after {
  display: none;
}

.source-map {
  min-height: 0;
}

.source-node,
.source-core,
.source-output {
  position: relative;
  z-index: 2;
}

.source-node,
.source-output {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(220, 230, 218, 0.16);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(14, 17, 15, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 2px 0 rgba(0, 200, 5, 0.28);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.source-node span,
.source-core span,
.source-output span {
  color: #00c805;
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-core span,
.source-output span {
  color: #8dff91;
}

.source-node strong,
.source-core strong,
.source-output strong {
  color: #f5f8f4;
  font-size: clamp(22px, 2.35vw, 34px);
  line-height: 1.05;
}

.source-core strong {
  font-size: clamp(34px, 3.6vw, 50px);
}

.source-node p,
.source-core p,
.source-output p {
  margin: 0;
  color: #a7afa8;
  font-size: clamp(14px, 1.12vw, 16px);
  line-height: 1.35;
}

.decision-branches {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.decision-branches p {
  padding: 10px 12px;
  border: 1px solid rgba(220, 230, 218, 0.12);
  border-radius: 7px;
  background: rgba(8, 10, 9, 0.38);
}

.decision-branches b {
  color: #8dff91;
}

.flow-line {
  position: absolute;
  z-index: 1;
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(0, 200, 5, 0.08), rgba(0, 200, 5, 0.86), rgba(106, 255, 112, 0.15));
  box-shadow: 0 0 16px rgba(0, 200, 5, 0.42);
  transform-origin: right center;
  animation: source-flow 2.6s ease-in-out infinite;
}

.flow-line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #6aff70;
  box-shadow: 0 0 18px rgba(0, 200, 5, 0.82);
  transform: translateY(-50%);
}

.flow-line {
  display: none;
}

.source-node::after,
.source-node::before,
.source-core::after,
.source-core::before {
  display: none;
}

.source-flow-svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}

.source-route {
  fill: none;
  stroke: rgba(106, 255, 112, 0.72);
  stroke-width: 0.38;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 5 7;
  filter: drop-shadow(0 0 5px rgba(0, 200, 5, 0.62));
  animation: route-current 1.7s linear infinite, source-flow 2.4s ease-in-out infinite;
}

.source-route-2 {
  animation-delay: 0.22s;
}

.source-route-3 {
  animation-delay: 0.44s;
}

.source-route-4 {
  animation-delay: 0.66s;
}

.source-route-out {
  stroke: rgba(255, 207, 102, 0.78);
  filter: drop-shadow(0 0 5px rgba(255, 176, 32, 0.54));
  animation-delay: 0.9s;
}

#flowArrow path {
  fill: #6aff70;
}

#flowArrowAmber path {
  fill: #ffcf66;
}

.signal-roadmap {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-signal {
  grid-template-columns: minmax(0, 1fr);
}

.faq-signal-grid {
  grid-template-columns: minmax(0, 1fr);
}

.signal-roadmap article,
.pricing-signal > div,
.faq-signal-grid article {
  min-height: 178px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(45, 44, 41, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.pricing-signal > div,
.faq-signal-grid article {
  min-height: 0;
  grid-template-columns: minmax(130px, 0.35fr) minmax(180px, 0.7fr) minmax(0, 1fr);
  align-items: center;
  align-content: center;
}

.faq-signal-grid article {
  min-height: 0;
  grid-template-columns: 1fr;
  align-items: start;
  align-content: start;
  gap: 12px;
}

.signal-roadmap span,
.pricing-signal span {
  width: fit-content;
  color: var(--accent);
  font-size: 15px;
  font-weight: 400;
}

.pricing-signal span {
  color: #8b454d;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
}

.signal-roadmap strong,
.pricing-signal strong,
.faq-signal-grid strong {
  color: var(--strong);
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.08;
}

.faq-signal-grid article:nth-child(1) {
  border-color: rgba(52, 120, 59, 0.24);
}

.faq-signal-grid article:nth-child(2) {
  border-color: rgba(139, 69, 77, 0.2);
}

.faq-signal-grid article:nth-child(3) {
  border-color: rgba(45, 44, 41, 0.16);
}

@media (max-width: 860px) {
  .section-heading,
  .legal-grid,
  .signal-roadmap,
  .pricing-signal,
  .faq-signal-grid {
    grid-template-columns: 1fr;
  }

  .signal-infographic {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .signal-infographic:not(.signal-cake)::before,
  .signal-infographic:not(.signal-cake)::after {
    top: auto;
    bottom: 96px;
    left: 50%;
    width: 2px;
    height: calc(100% - 180px);
    background: linear-gradient(180deg, transparent, rgba(0, 200, 5, 0.78), transparent);
    transform: translateX(-50%);
  }

  .signal-infographic:not(.signal-cake)::after {
    display: none;
  }

  .signal-infographic:not(.signal-cake) .signal-card-node::after,
  .alert-signal::after {
    top: auto;
    right: auto;
    bottom: -8px;
    left: 50%;
    transform: translate(-50%, 50%);
    animation-name: signal-pulse-down;
  }

  .flow-line,
  .source-node::before,
  .source-node::after,
  .source-core::before,
  .source-core::after {
    display: none;
  }

  .pricing-signal > div,
  .faq-signal-grid article {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .signal-roadmap article,
  .pricing-signal > div,
  .faq-signal-grid article {
    min-height: 0;
  }
}

@keyframes signal-card-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes signal-pulse-right {
  0%,
  100% {
    opacity: 0.72;
    transform: translate(50%, -50%) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translate(50%, -50%) scale(1.12);
  }
}

@keyframes signal-pulse-left {
  0%,
  100% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

@keyframes signal-pulse-down {
  0%,
  100% {
    opacity: 0.72;
    transform: translate(-50%, 50%) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 50%) scale(1.12);
  }
}

@keyframes signal-flow {
  0%,
  100% {
    opacity: 0.28;
  }
  50% {
    opacity: 1;
  }
}

@keyframes signal-breathe {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.86;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

@keyframes source-flow {
  0%,
  100% {
    opacity: 0.32;
    filter: saturate(0.8);
  }
  50% {
    opacity: 1;
    filter: saturate(1.25);
  }
}

@keyframes source-spark {
  0% {
    background-position: -44px 0;
  }
  100% {
    background-position: calc(100% + 44px) 0;
  }
}

@keyframes route-current {
  from {
    stroke-dashoffset: 24;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* RateWatch finance-terminal landing direction */
body:not(.chat-mode) {
  --bg: #0f1110;
  --panel: #171a18;
  --ink: #e8ece7;
  --strong: #f6f8f4;
  --muted: #98a09a;
  --line: rgba(220, 230, 218, 0.14);
  --accent: #00c805;
  --accent-soft: rgba(0, 200, 5, 0.12);
  --chart-live: #00c805;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 52px 52px,
    radial-gradient(circle at 82% 18%, rgba(0, 200, 5, 0.11), transparent 30%),
    #0f1110;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.logo-mark img {
  display: block;
  width: 112%;
  height: auto;
  filter: invert(1) brightness(1.7) contrast(1.12);
}

.logo-text {
  color: #f5f8f4;
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
}

body:not(.chat-mode) .hero {
  min-height: calc(100vh - 76px);
  padding: clamp(42px, 7vh, 82px) max(20px, calc((100vw - 1380px) / 2 + 24px)) 38px;
  background:
    linear-gradient(90deg, rgba(15, 17, 16, 0.08), rgba(15, 17, 16, 0.72)),
    url("/assets/hero-street.png") center bottom / cover no-repeat;
  isolation: isolate;
}

body:not(.chat-mode) .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(15, 17, 16, 0.78);
}

body:not(.chat-mode) .hero-content {
  max-width: 1240px;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.82fr);
  gap: clamp(34px, 6vw, 82px);
}

.terminal-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(0, 200, 5, 0.32);
  border-radius: 4px;
  background: rgba(0, 200, 5, 0.08);
  color: #6aff70;
  font-family: var(--ui-font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

body:not(.chat-mode) .hero h1 {
  max-width: 100%;
  color: #f6f8f4;
  font-family: var(--display-font);
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 400;
  line-height: 1.0;
  overflow-wrap: break-word;
}

body:not(.chat-mode) .hero-copy p {
  max-width: 100%;
  color: #b9c0b8;
  font-family: var(--ui-font);
  font-size: clamp(17px, 1.55vw, 22px);
  overflow-wrap: break-word;
}

.terminal-tape {
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(8, 10, 9, 0.76);
}

.terminal-tape div {
  min-height: 96px;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.terminal-tape div:last-child {
  border-right: 0;
}

.terminal-tape span,
.terminal-tape small,
.market-source {
  font-family: var(--ui-font);
}

.terminal-tape span {
  color: #8d978f;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.terminal-tape strong {
  color: #f7fbf5;
  font-family: var(--ui-font);
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1;
}

.terminal-tape strong.down,
.market-tile small.down {
  color: #00c805;
}

.terminal-tape small {
  color: #808982;
  font-size: 12px;
}

body:not(.chat-mode) .hero-copy .hero-cta {
  justify-self: start;
  min-height: 56px;
  background: #00c805;
  color: #071008;
  box-shadow: 0 18px 44px rgba(0, 200, 5, 0.18);
}

body:not(.chat-mode) .hero-chart {
  min-height: 430px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(220, 230, 218, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 27, 25, 0.96), rgba(12, 14, 13, 0.96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

body:not(.chat-mode) .chart-head span,
body:not(.chat-mode) .chart-axis,
body:not(.chat-mode) .chart-live-value .chart-fixed-label {
  color: #8f998f;
  font-family: var(--ui-font);
}

body:not(.chat-mode) .chart-head strong {
  color: #f4f8f2;
  font-family: var(--ui-font);
}

body:not(.chat-mode) .hero-chart svg {
  background: #101311;
}

body:not(.chat-mode) .market-strip {
  width: min(1240px, calc(100% - 40px));
  margin: 36px auto 54px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 14, 13, 0.86);
}

body:not(.chat-mode) .market-strip-copy span,
.section-kicker,
.signal-roadmap span {
  color: #00c805;
}

body:not(.chat-mode) .market-strip-copy p,
body:not(.chat-mode) .market-source,
body:not(.chat-mode) .market-tile span,
body:not(.chat-mode) .market-tile small {
  color: #99a39a;
}

body:not(.chat-mode) .market-strip-grid {
  border-left: 1px solid var(--line);
}

body:not(.chat-mode) .market-tile {
  border-right: 1px solid var(--line);
}

body:not(.chat-mode) .market-tile strong {
  color: #f5f8f4;
  font-family: var(--ui-font);
}

body:not(.chat-mode) .market-tile small.up {
  color: #ff6b6b;
}

body:not(.chat-mode) .simple-section,
body:not(.chat-mode) .legal-hero,
body:not(.chat-mode) .legal-grid article {
  border-color: var(--line);
  background: rgba(18, 21, 19, 0.88);
  box-shadow: none;
}

body:not(.chat-mode) .legal-prose .legal-grid article {
  background: transparent;
  border: 0;
}

body:not(.chat-mode) .simple-section h2,
body:not(.chat-mode) .simple-section strong,
body:not(.chat-mode) .legal-hero h1,
body:not(.chat-mode) .site-footer strong {
  color: #f5f8f4;
}

body:not(.chat-mode) .section-heading p,
body:not(.chat-mode) .signal-roadmap p,
body:not(.chat-mode) .pricing-signal p,
body:not(.chat-mode) .faq-signal-grid p,
body:not(.chat-mode) .legal-hero p,
body:not(.chat-mode) .legal-grid p,
body:not(.chat-mode) .legal-body p,
body:not(.chat-mode) .site-footer p {
  color: #a7afa8;
}

body:not(.chat-mode) .signal-roadmap article,
body:not(.chat-mode) .pricing-signal > div,
body:not(.chat-mode) .faq-signal-grid article {
  border-color: var(--line);
  border-radius: 6px;
  background: rgba(9, 11, 10, 0.52);
}

body:not(.chat-mode) .faq-signal-grid article {
  padding: 24px 0;
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
}

body:not(.chat-mode) .faq-signal-grid article:last-child {
  border-bottom: 1px solid var(--line);
}

body:not(.chat-mode) .pricing-signal span {
  color: #ffb020;
  font-family: var(--ui-font);
}

body:not(.chat-mode) .site-footer {
  border-top-color: var(--line);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body:not(.chat-mode) .site-footer a {
  color: #00c805;
}

@media (max-width: 860px) {
  body:not(.chat-mode) .wordmark {
    width: auto;
  }

  body:not(.chat-mode) .hero-content {
    grid-template-columns: 1fr;
  }

  .terminal-tape {
    grid-template-columns: 1fr;
  }

  .terminal-tape div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .terminal-tape div:last-child {
    border-bottom: 0;
  }
}

/* Dashboard chart stays a single stacked surface, independent of landing hero layout. */
body:not(.chat-mode) .dashboard-plot {
  width: 100%;
  justify-self: stretch;
  grid-template-columns: minmax(0, 1fr);
}

body:not(.chat-mode) .dashboard-chart .hero-chart {
  grid-column: 1;
  grid-row: auto;
  width: 100%;
  min-height: 0;
  padding: 28px 36px 24px;
  border: 1px solid rgba(220, 230, 218, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%),
    rgba(8, 10, 9, 0.58);
  box-shadow: none;
  gap: 18px;
}

body:not(.chat-mode) .dashboard-chart .hero-chart svg {
  width: 100%;
  height: auto;
  min-height: 300px;
  aspect-ratio: 420 / 190;
  border-radius: 12px;
}

body:not(.chat-mode) .dashboard-chart .chart-head {
  padding: 18px 20px 8px;
}

body:not(.chat-mode) .dashboard-chart .chart-axis {
  padding: 14px 20px 18px;
}

body:not(.chat-mode) .dashboard-chart .chart-line {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  animation: none;
}

@media (max-width: 640px) {
  body:not(.chat-mode) .dashboard-chart .hero-chart {
    padding: 20px 18px 18px;
  }

  body:not(.chat-mode) .dashboard-chart .hero-chart svg {
    min-height: 220px;
  }
}

/* Final hero polish */
body:not(.chat-mode) .hero-copy .hero-cta {
  justify-self: center;
  margin-right: auto;
  margin-left: auto;
}

/* Final app-wide dark system: onboarding must match the landing page. */
body.chat-mode {
  --bg: #0f1110;
  --panel: #171a18;
  --ink: #e8ece7;
  --strong: #f6f8f4;
  --muted: #98a09a;
  --line: rgba(220, 230, 218, 0.14);
  --accent: #00c805;
  --accent-soft: rgba(0, 200, 5, 0.12);
  --chart-live: #00c805;
  --chat-column: transparent;
  background:
    radial-gradient(circle at 78% 22%, rgba(0, 200, 5, 0.11), transparent 30%),
    #0f1110;
}

.site-header,
body:not(.chat-mode) .site-header,
body.chat-mode .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: clamp(22px, 4vw, 44px);
  padding: 10px max(20px, calc((100vw - 1380px) / 2 + 24px));
  border-bottom: 1px solid rgba(220, 230, 218, 0.14);
  background: rgba(15, 17, 16, 0.9);
  backdrop-filter: blur(18px);
}

body.chat-mode .site-header {
  position: fixed;
  pointer-events: auto;
}

.site-header .wordmark,
body:not(.chat-mode) .site-header .wordmark,
body.chat-mode .site-header .wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  color: #f5f8f4;
  font-family: var(--display-font);
  text-decoration: none;
}

.site-header .header-tabs,
body:not(.chat-mode) .site-header .header-tabs,
body.chat-mode .site-header .header-tabs {
  position: static;
  transform: none;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  margin: 0;
}

.site-header .header-tabs a,
.site-header .header-tabs button,
body:not(.chat-mode) .site-header .header-tabs a,
body:not(.chat-mode) .site-header .header-tabs button,
body.chat-mode .site-header .header-tabs a,
body.chat-mode .site-header .header-tabs button {
  min-height: 32px;
  padding: 8px 0;
  color: #c5ccc5;
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header .header-tabs a:hover,
.site-header .header-tabs a:focus-visible,
body.chat-mode .site-header .header-tabs a:hover,
body.chat-mode .site-header .header-tabs a:focus-visible {
  color: #00c805;
}

.auth-actions,
.account-menu,
body:not(.chat-mode) .auth-actions,
body:not(.chat-mode) .account-link,
body.chat-mode .auth-actions,
body.chat-mode .account-menu {
  justify-self: end;
}

.auth-actions,
body.chat-mode .auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 52px;
}

.auth-loading {
  width: 260px;
  height: 52px;
  border-radius: 999px;
  background: rgba(220, 230, 218, 0.08);
}

.auth-actions .clerk-userButton-trigger {
  flex: 0 0 auto;
}

.auth-actions .signup-link,
.auth-actions .login-link,
.account-link,
body:not(.chat-mode) .auth-actions .signup-link,
body:not(.chat-mode) .auth-actions .login-link,
body.chat-mode .auth-actions .signup-link,
body.chat-mode .auth-actions .login-link,
body.chat-mode .account-link {
  width: auto;
  height: 52px;
  min-width: 150px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 36px;
  border-radius: 14px;
  font-family: var(--ui-font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.account-link,
body:not(.chat-mode) .account-link,
body.chat-mode .account-link {
  flex: 0 0 auto;
  min-width: 260px;
}

.auth-actions .signup-link,
body.chat-mode .auth-actions .signup-link {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #071008;
}

.auth-actions .signup-link:hover,
body.chat-mode .auth-actions .signup-link:hover,
.auth-actions .signup-link:focus-visible,
body.chat-mode .auth-actions .signup-link:focus-visible {
  transform: translateY(-1px);
  background: #42904a;
  border-color: #42904a;
}

.auth-actions .login-link,
.account-link,
body.chat-mode .auth-actions .login-link,
body.chat-mode .account-link {
  border: 1px solid rgba(220, 230, 218, 0.45);
  background: transparent;
  color: #f5f8f4;
  box-shadow: none;
}

.auth-actions .login-link:hover,
body.chat-mode .auth-actions .login-link:hover,
.auth-actions .login-link:focus-visible,
body.chat-mode .auth-actions .login-link:focus-visible,
.account-link:hover,
body.chat-mode .account-link:hover,
.account-link:focus-visible,
body.chat-mode .account-link:focus-visible {
  background: rgba(220, 230, 218, 0.1);
}

.account-menu {
  position: relative;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  min-width: 190px;
  display: none;
  padding: 8px;
  border: 1px solid rgba(220, 230, 218, 0.16);
  border-radius: 10px;
  background: rgba(14, 17, 15, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.account-menu.open .account-dropdown {
  display: grid;
}

.account-dropdown a,
.account-dropdown button {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #dce5dc;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
}

.account-dropdown a:hover,
.account-dropdown button:hover,
.account-dropdown a:focus-visible,
.account-dropdown button:focus-visible {
  background: rgba(0, 200, 5, 0.12);
  color: #8dff91;
}

body.chat-mode .estimator-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  padding: 148px 0 72px;
}

body.chat-mode .chat-panel {
  min-height: calc(100vh - 180px);
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  gap: 0;
  overflow: visible;
}

body.chat-mode .chat-panel::before {
  display: none;
}

body.chat-mode .step-rail {
  position: fixed;
  top: 50%;
  left: max(22px, calc(50vw - 560px));
  z-index: 14;
  height: auto;
  width: 210px;
  padding: 18px 14px;
  transform: translateY(-50%);
  background: transparent;
  backdrop-filter: none;
}

body.chat-mode .step-rail ol {
  grid-template-columns: 1fr;
  gap: 34px;
}

body.chat-mode .step-rail li {
  grid-template-columns: 26px 1fr;
  gap: 14px;
  color: #8d978f;
  text-align: left;
}

body.chat-mode .step-rail li span {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(220, 230, 218, 0.18);
  background: #101311;
  box-shadow: 0 0 0 4px #0f1110;
}

body.chat-mode .step-rail li.active span,
body.chat-mode .step-rail li.complete span {
  border-color: #00c805;
  background: #00c805;
  box-shadow: 0 0 18px rgba(0, 200, 5, 0.38);
}

body.chat-mode .step-rail li strong,
body.chat-mode .step-rail .step-link {
  color: inherit;
  font-family: var(--ui-font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.chat-mode .step-rail li.active,
body.chat-mode .step-rail li.complete {
  color: #f5f8f4;
}

body.chat-mode .progress-line {
  top: 31px;
  bottom: 31px;
  left: 25px;
  width: 3px;
  background: rgba(220, 230, 218, 0.12);
}

body.chat-mode .progress-line span {
  background: #00c805;
  box-shadow: 0 0 16px rgba(0, 200, 5, 0.45);
}

body.chat-mode .flow {
  width: min(760px, 100%);
  padding: 12vh 22px 42vh;
}

body.chat-mode .flow-step {
  width: 100%;
  max-width: 760px;
  gap: 28px;
}

body.chat-mode .assistant-message {
  padding: 30px;
  border: 1px solid rgba(220, 230, 218, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(14, 17, 15, 0.92);
  box-shadow: inset 0 2px 0 rgba(0, 200, 5, 0.24);
}

body.chat-mode .assistant-message.answered {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.chat-mode .assistant-message h2 {
  margin: 0 0 4px;
  color: #f6f8f4;
  font-family: var(--display-font);
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 400;
  line-height: 1.04;
}

body.chat-mode .single-input-card,
body.chat-mode .slider-card,
body.chat-mode .option-grid button,
body.chat-mode .threshold-card,
body.chat-mode .signup-block,
body.chat-mode .estimate-hero,
body.chat-mode .research-panel,
body.chat-mode .quote-loading-card,
body.chat-mode .decision-math div,
body.chat-mode .cost-breakdown div,
body.chat-mode .ownership-preview div,
body.chat-mode .why-card,
body.chat-mode .trust-note,
body.chat-mode .apr-note,
body.chat-mode .quote-appendix,
body.chat-mode .watch-promise {
  border-color: rgba(220, 230, 218, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(8, 10, 9, 0.68);
  box-shadow: none;
}

body.chat-mode .single-input-card input,
body.chat-mode .direct-entry input,
body.chat-mode .email-form input {
  min-height: 58px;
  border: 1px solid rgba(220, 230, 218, 0.18);
  border-radius: 8px;
  background: #0f1110;
  color: #f6f8f4;
}

body.chat-mode .single-input-card span,
body.chat-mode .direct-entry span,
body.chat-mode .decision-math span,
body.chat-mode .cost-breakdown span,
body.chat-mode .ownership-preview span,
body.chat-mode .threshold-card span,
body.chat-mode .research-panel span,
body.chat-mode .research-factors span,
body.chat-mode .source-ledger span {
  color: #8d978f;
}

body.chat-mode .slider-card strong,
body.chat-mode .option-grid button strong,
body.chat-mode .decision-math strong,
body.chat-mode .cost-breakdown strong,
body.chat-mode .ownership-preview strong,
body.chat-mode .threshold-card strong,
body.chat-mode .estimate-hero h2,
body.chat-mode .watch-promise strong,
body.chat-mode .research-panel strong {
  color: #f6f8f4;
}

body.chat-mode .option-grid button {
  min-height: 118px;
  padding: 22px;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

body.chat-mode .option-grid button:hover,
body.chat-mode .option-grid button:focus-visible {
  border-color: rgba(0, 200, 5, 0.5);
  background: rgba(0, 200, 5, 0.08);
  transform: translateY(-2px);
}

.zip-step-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(240px, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
}

.zip-entry-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.zip-entry-stack .single-input-card {
  margin: 0;
}

.zip-entry-stack .field-error {
  margin: 0;
}

.zip-entry-stack .cta-button {
  width: 100%;
}

.zip-map-slot {
  min-height: 244px;
}

.zip-map-slot.empty {
  visibility: hidden;
}

.zip-map-card {
  min-height: 220px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(220, 230, 218, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(8, 10, 9, 0.68);
}

.zip-map-card iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 6px;
}

.zip-map-card small {
  color: #8d978f;
  font-size: 12px;
  line-height: 1.4;
}

.zip-map-card small a {
  color: #8dff91;
  text-decoration: none;
}

.zip-map-card small a:hover {
  text-decoration: underline;
}

.zip-map-loading {
  place-items: center;
  color: #8d978f;
  font-size: 14px;
}

@media (max-width: 640px) {
  .zip-step-layout {
    grid-template-columns: 1fr;
  }

  .zip-map-slot {
    min-height: 204px;
  }

  .zip-map-card iframe {
    height: 180px;
  }
}

.currency-slider-card {
  display: grid;
  gap: 20px;
  width: min(460px, 100%);
  padding: 22px;
  border: 1px solid rgba(220, 230, 218, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(8, 10, 9, 0.68);
}

.currency-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.currency-slider-head > span {
  color: #8d978f;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.currency-slider-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.currency-slider-head-no-label .currency-slider-display {
  width: 100%;
}

.currency-slider-display strong {
  color: #f6f8f4;
  font-family: var(--ui-font);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.currency-slider-display input {
  width: min(220px, 60vw);
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(0, 200, 5, 0.45);
  border-radius: 8px;
  background: #0f1110;
  color: #f6f8f4;
  font-family: var(--ui-font);
  font-size: 22px;
  font-weight: 400;
}

.currency-slider-edit {
  position: relative;
  width: 30px;
  height: 30px;
  min-width: 30px;
  max-width: 30px;
  flex: 0 0 30px;
  margin-left: auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(220, 230, 218, 0.18);
  border-radius: 999px;
  background: rgba(8, 10, 9, 0.82);
  color: #a7afa8;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.currency-slider-edit::after {
  content: "";
  position: absolute;
  inset: -7px;
}

.currency-slider-edit svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.currency-slider-edit:hover,
.currency-slider-edit:focus-visible {
  border-color: rgba(0, 200, 5, 0.45);
  background: rgba(0, 200, 5, 0.1);
  color: #f6f8f4;
}

.currency-slider-card input[type="range"] {
  width: 100%;
  height: 6px;
  margin: 8px 0 0;
  appearance: none;
  border-radius: 999px;
  background: rgba(220, 230, 218, 0.14);
  outline: none;
}

.currency-slider-card input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #0f1110;
  border-radius: 999px;
  background: #51c83f;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 200, 5, 0.35);
}

.currency-slider-card input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid #0f1110;
  border-radius: 999px;
  background: #51c83f;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 200, 5, 0.35);
}

@media (max-width: 640px) {
  .currency-slider-card {
    padding: 18px;
  }

  .currency-slider-display strong {
    font-size: 26px;
  }
}

.slider-card-v2 {
  display: grid;
  gap: 20px;
  width: min(460px, 100%);
  padding: 22px;
  border: 1px solid rgba(220, 230, 218, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(8, 10, 9, 0.68);
}

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.slider-head > span {
  color: #8d978f;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slider-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-display strong {
  color: #f6f8f4;
  font-family: var(--ui-font);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.slider-display input {
  width: min(140px, 40vw);
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(0, 200, 5, 0.45);
  border-radius: 8px;
  background: #0f1110;
  color: #f6f8f4;
  font-family: var(--ui-font);
  font-size: 22px;
  font-weight: 400;
}

.slider-card-v2 input[type="range"] {
  width: 100%;
  height: 6px;
  margin: 8px 0 0;
  appearance: none;
  border-radius: 999px;
  background: rgba(220, 230, 218, 0.14);
  outline: none;
}

.slider-card-v2 input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #0f1110;
  border-radius: 999px;
  background: #51c83f;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 200, 5, 0.35);
}

.slider-card-v2 input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid #0f1110;
  border-radius: 999px;
  background: #51c83f;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 200, 5, 0.35);
}

@media (max-width: 640px) {
  .slider-card-v2 {
    padding: 18px;
  }

  .slider-display strong {
    font-size: 26px;
  }
}

body.chat-mode .cta-button,
body.chat-mode .report-button,
body.chat-mode .signup-cta,
body.chat-mode .dashboard-result-link {
  min-height: 54px;
  border: 1px solid rgba(0, 200, 5, 0.5);
  border-radius: 999px;
  background: #51c83f;
  color: #071008;
  font-weight: 400;
  box-shadow: 0 18px 44px rgba(0, 200, 5, 0.12);
}

body.chat-mode .user-message {
  border: 1px solid rgba(0, 200, 5, 0.28);
  background: rgba(0, 200, 5, 0.1);
  color: #f5f8f4;
}

body.chat-mode .edit-answer {
  border-color: rgba(220, 230, 218, 0.16);
  background: rgba(8, 10, 9, 0.82);
  color: #a7afa8;
}

body.chat-mode .estimate-hero p,
body.chat-mode .watch-promise span,
body.chat-mode .ownership-preview p,
body.chat-mode .why-card p,
body.chat-mode .trust-note p,
body.chat-mode .apr-note p,
body.chat-mode .quote-appendix p,
body.chat-mode .research-factors p,
body.chat-mode .quote-loading-card p {
  color: #a7afa8;
}

body.chat-mode .estimate-hero::after {
  display: none;
}

body.chat-mode .threshold-options button {
  border-color: rgba(220, 230, 218, 0.16);
  background: rgba(8, 10, 9, 0.72);
  color: #dce5dc;
}

body.chat-mode .threshold-options button.active {
  border-color: rgba(0, 200, 5, 0.56);
  background: rgba(0, 200, 5, 0.12);
  color: #8dff91;
}

body.chat-mode .threshold-options button strong,
body.chat-mode .threshold-options button span {
  color: inherit;
}

/* Dashboard must use the same dark RateWatch surface as landing/onboarding. */
body:not(.chat-mode) .dashboard-shell {
  width: min(1180px, calc(100% - 40px));
  padding-top: 52px;
}

body:not(.chat-mode) .dashboard-card,
body:not(.chat-mode) .dashboard-empty {
  border: 1px solid rgba(220, 230, 218, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(14, 17, 15, 0.94);
  box-shadow: inset 0 2px 0 rgba(0, 200, 5, 0.22), 0 28px 80px rgba(0, 0, 0, 0.24);
}

body:not(.chat-mode) .dashboard-head h1,
body:not(.chat-mode) .dashboard-empty h1,
body:not(.chat-mode) .dashboard-metrics strong,
body:not(.chat-mode) .dashboard-section-head h2,
body:not(.chat-mode) .signal-card strong,
body:not(.chat-mode) .ownership-card-head strong,
body:not(.chat-mode) .ownership-bars strong,
body:not(.chat-mode) .ownership-split strong,
body:not(.chat-mode) .source-ledger summary,
body:not(.chat-mode) .research-panel strong {
  color: #f6f8f4;
}

body:not(.chat-mode) .dashboard-metrics span,
body:not(.chat-mode) .dashboard-section-head span,
body:not(.chat-mode) .dashboard-alerts > span,
body:not(.chat-mode) .ownership-bars span,
body:not(.chat-mode) .ownership-card-head span,
body:not(.chat-mode) .signal-card span,
body:not(.chat-mode) .research-panel span,
body:not(.chat-mode) .research-factors span,
body:not(.chat-mode) .source-ledger span {
  color: #8d978f;
}

body:not(.chat-mode) .dashboard-empty p,
body:not(.chat-mode) .signal-card p,
body:not(.chat-mode) .ownership-card p,
body:not(.chat-mode) .ownership-preview p,
body:not(.chat-mode) .research-factors p,
body:not(.chat-mode) .source-ledger p,
body:not(.chat-mode) .opportunity-note {
  color: #a7afa8;
}

body:not(.chat-mode) .dashboard-edit,
body:not(.chat-mode) .dashboard-subscribe,
body:not(.chat-mode) .unsubscribe-button {
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid rgba(0, 200, 5, 0.42);
  border-radius: 12px;
  background: rgba(0, 200, 5, 0.12);
  color: #8dff91;
  font-weight: 500;
  box-shadow: none;
}

body:not(.chat-mode) .dashboard-login {
  min-width: 260px;
  min-height: 56px;
  padding: 0 36px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: var(--accent);
  color: #071008;
  font-weight: 500;
  font-size: 17px;
  box-shadow: none;
}

body:not(.chat-mode) .dashboard-edit:hover,
body:not(.chat-mode) .dashboard-edit:focus-visible,
body:not(.chat-mode) .dashboard-subscribe:hover,
body:not(.chat-mode) .dashboard-subscribe:focus-visible,
body:not(.chat-mode) .unsubscribe-button:hover,
body:not(.chat-mode) .unsubscribe-button:focus-visible {
  background: #51c83f;
  color: #071008;
}

body:not(.chat-mode) .dashboard-login:hover,
body:not(.chat-mode) .dashboard-login:focus-visible {
  background: #42904a;
  border-color: #42904a;
}

body:not(.chat-mode) .dashboard-metrics {
  border-color: rgba(220, 230, 218, 0.14);
}

body:not(.chat-mode) .dashboard-metrics div {
  border-color: rgba(220, 230, 218, 0.14);
  background: rgba(8, 10, 9, 0.32);
}

body:not(.chat-mode) .dashboard-chart-surface,
body:not(.chat-mode) .signal-card,
body:not(.chat-mode) .opportunity-list,
body:not(.chat-mode) .ownership-card,
body:not(.chat-mode) .research-panel,
body:not(.chat-mode) .source-ledger,
body:not(.chat-mode) .research-head > div,
body:not(.chat-mode) .research-targets > div,
body:not(.chat-mode) .research-factors article,
body:not(.chat-mode) .ownership-split p {
  border-color: rgba(220, 230, 218, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%),
    rgba(8, 10, 9, 0.58);
  box-shadow: none;
}

body:not(.chat-mode) .dashboard-chart .hero-chart svg {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 42px 42px,
    #101311;
}

body:not(.chat-mode) .ownership-bars i {
  background: rgba(220, 230, 218, 0.12);
}

body:not(.chat-mode) .opportunity-note {
  border: 1px solid rgba(0, 200, 5, 0.22);
  background: rgba(0, 200, 5, 0.1);
}

/* Final button geometry: rounded-square fintech controls, not pill buttons. */
.signup-link,
.login-link,
.account-link,
.hero-cta,
.cta-button,
.report-button,
.signup-cta,
.dashboard-result-link,
.dashboard-edit,
.dashboard-subscribe,
.dashboard-login,
.unsubscribe-button,
.signup-google,
.threshold-options button,
.option-grid button,
.email-form button,
button {
  border-radius: 10px;
}

body:not(.chat-mode) .auth-actions .signup-link,
body:not(.chat-mode) .auth-actions .login-link,
body.chat-mode .auth-actions .signup-link,
body.chat-mode .auth-actions .login-link,
body.chat-mode .account-link,
.auth-actions .signup-link,
.auth-actions .login-link,
.account-link,
body:not(.chat-mode) .hero-copy .hero-cta,
body.chat-mode .cta-button,
body.chat-mode .report-button,
body.chat-mode .signup-cta,
body.chat-mode .dashboard-result-link,
body:not(.chat-mode) .dashboard-edit,
body:not(.chat-mode) .dashboard-subscribe,
body:not(.chat-mode) .dashboard-login,
body:not(.chat-mode) .unsubscribe-button {
  border-radius: 12px;
}

/* Infographic cleanup: no outer box, visible routed current, centered model. */
#how.simple-section {
  width: min(1180px, calc(100% - 48px));
  justify-self: center;
}

body:not(.chat-mode) #how.simple-section {
  width: min(1240px, calc(100% - 40px));
  justify-self: center;
  border: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

.source-flow-svg {
  z-index: 3;
}

.source-route {
  stroke-width: 0.52;
  opacity: 0.95;
}

.source-node,
.source-core,
.source-output {
  z-index: 4;
}

.source-node::selection,
.source-core::selection,
.source-output::selection {
  background: rgba(0, 200, 5, 0.28);
}

@media (max-width: 980px) {
  .site-header,
  body:not(.chat-mode) .site-header,
  body.chat-mode .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px 20px;
    min-height: 132px;
    align-content: center;
  }

  .site-header .header-tabs,
  body:not(.chat-mode) .site-header .header-tabs,
  body.chat-mode .site-header .header-tabs {
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  body.chat-mode .estimator-shell {
    width: min(760px, calc(100% - 28px));
    padding-top: 168px;
  }

  body.chat-mode .chat-panel {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body.chat-mode .step-rail {
    position: sticky;
    top: 132px;
    z-index: 12;
    width: 100%;
    height: auto;
    padding: 12px 0;
    background: rgba(15, 17, 16, 0.92);
    border-bottom: 1px solid rgba(220, 230, 218, 0.12);
    overflow-x: auto;
  }

  body.chat-mode .step-rail ol {
    grid-template-columns: repeat(8, minmax(76px, 1fr));
    min-width: 680px;
    height: auto;
    align-items: start;
  }

  body.chat-mode .step-rail li {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 7px;
    text-align: center;
  }

  body.chat-mode .progress-line {
    top: 24px;
    right: 6%;
    bottom: auto;
    left: 6%;
    width: auto;
    height: 3px;
  }

  body.chat-mode .progress-line span {
    width: 0;
    height: 100%;
  }

  body.chat-mode .flow {
    padding: 40px 0 42vh;
  }

  .source-flow-svg {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header,
  body:not(.chat-mode) .site-header,
  body.chat-mode .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 152px;
    padding: 16px 14px;
  }

  .site-header .wordmark,
  body:not(.chat-mode) .site-header .wordmark,
  body.chat-mode .site-header .wordmark,
  .auth-actions,
  .account-menu,
  body:not(.chat-mode) .auth-actions,
  body:not(.chat-mode) .account-link,
  body.chat-mode .auth-actions,
  body.chat-mode .account-menu {
    justify-self: center;
  }

  .site-header .header-tabs,
  body:not(.chat-mode) .site-header .header-tabs,
  body.chat-mode .site-header .header-tabs {
    grid-column: auto;
    justify-content: center;
  }

  .logo-mark {
    width: 42px;
    height: 42px;
  }

  .logo-text {
    font-size: 20px;
  }

  .auth-actions .signup-link,
  .auth-actions .login-link,
  body.chat-mode .auth-actions .signup-link,
  body.chat-mode .auth-actions .login-link {
    width: auto;
    min-width: 120px;
    height: 48px;
    min-height: 48px;
    padding: 0 28px;
    font-size: 16px;
  }

  .account-link,
  body:not(.chat-mode) .account-link,
  body.chat-mode .account-link {
    width: auto;
    min-width: 240px;
    height: 48px;
    min-height: 48px;
    padding: 0 36px;
    font-size: 16px;
  }

  body.chat-mode .estimator-shell {
    width: calc(100% - 24px);
    padding-top: 186px;
  }

  body.chat-mode .step-rail {
    top: 152px;
  }

  body.chat-mode .assistant-message {
    padding: 22px 18px;
  }

  body.chat-mode .option-grid,
  body.chat-mode .loan-term-grid,
  body.chat-mode .choice-grid,
  body.chat-mode .slider-card,
  body.chat-mode .decision-math,
  body.chat-mode .cost-breakdown,
  body.chat-mode .ownership-preview,
  body.chat-mode .research-head,
  body.chat-mode .research-targets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-table td { grid-template-columns: 82px minmax(0, 1fr); }
  .admin-table td strong {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  body.chat-mode .estimator-shell { padding-top: 164px; }
  body.chat-mode .chat-panel { grid-template-rows: auto auto; }
  body.chat-mode .flow { padding-top: 12px; }
}

/* Final radial source-to-signal composition. */
.offer-marquee {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid rgba(0, 200, 5, 0.3);
  background: rgba(0, 200, 5, 0.08);
}

.offer-marquee-track {
  width: max-content;
  display: flex;
  animation: offer-marquee-roll 20s linear infinite;
}

.offer-marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 13px 18px;
  color: #8dff91;
  font: 400 12px/1 var(--ui-font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.offer-marquee-track i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #51c83f;
}

@keyframes offer-marquee-roll {
  to { transform: translateX(-25%); }
}

.pricing-signal .early-access-price {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.early-access-price del {
  color: #8d978f;
  font-size: 0.6em;
  text-decoration-thickness: 2px;
}

.early-access-price ins {
  color: inherit;
  text-decoration: none;
}

.signal-infographic.source-map { display: block; width: 100%; padding: 0; background: transparent; }
.source-map-grid { position: relative; width: 100%; aspect-ratio: 1000 / 600; min-height: 0; margin-top: 0; display: block; isolation: isolate; }
.source-map-grid::before {
  content: ""; position: absolute; top: 50%; left: 50%; z-index: 0;
  width: 50%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 200, 5, 0.09), rgba(0, 200, 5, 0.025) 42%, transparent 70%);
  transform: translate(-50%, -50%); pointer-events: none;
}
.source-node {
  position: absolute; z-index: 4; width: clamp(220px, 22%, 280px); min-height: 112px;
  display: grid; gap: 8px; align-content: center; padding: 16px 18px; border-radius: 10px;
  transform: translate(-50%, -50%);
}
.source-node-1 { top: 28%; left: 28%; }
.source-node-2 { top: 72%; left: 28%; }
.source-node-3 { top: 28%; left: 72%; }
.source-node-4 { top: 72%; left: 72%; }
.source-node:hover, .source-node:focus-within { transform: translate(-50%, -50%); }
.source-core {
  position: absolute; inset: 50% auto auto 50%; z-index: 5;
  width: clamp(200px, 18%, 280px); min-height: auto;
  display: grid; place-items: center; align-content: center; gap: 10px; padding: 28px 22px;
  border: 1px solid rgba(106, 255, 112, 0.48); border-radius: 20px;
  background: radial-gradient(circle at 50% 32%, rgba(65, 160, 60, 0.26), transparent 70%), linear-gradient(160deg, rgba(24, 32, 26, 0.98), rgba(7, 10, 8, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -24px 50px rgba(0, 0, 0, 0.28), 0 24px 70px rgba(0, 0, 0, 0.32);
  text-align: center; transform: translate(-50%, -50%); animation: none;
}
.source-core:hover, .source-core:focus-within { transform: translate(-50%, -50%); }
.source-core::before, .source-core::after { content: ""; position: absolute; display: block; border-radius: 20px; pointer-events: none; }
.source-core::before { inset: -13px; border: 1px solid rgba(106, 255, 112, 0.16); }
.source-core::after { inset: -27px; border: 1px dashed rgba(106, 255, 112, 0.12); }
.source-core strong { font-size: clamp(24px, 2.8vw, 36px); letter-spacing: -0.03em; line-height: 1; }
.source-core p { max-width: 28ch; font-size: 14px; }
.signal-state {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 5px; padding: 8px 11px;
  border: 1px solid rgba(106, 255, 112, 0.2); border-radius: 999px; background: rgba(0, 200, 5, 0.08);
  color: #b9eeba; font: 400 10px/1.2 var(--ui-font);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.signal-state i { width: 7px; height: 7px; border-radius: 50%; background: #62df5a; animation: signal-state-pulse 2.2s ease-in-out infinite; }
.source-flow-svg { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; display: block; overflow: visible; pointer-events: none; }
.source-route { fill: none; stroke: rgba(106, 255, 112, 0.62); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 8 12; filter: none; opacity: 0.9; animation: route-current 1.8s linear infinite; }
.source-route-2 { animation-delay: -0.45s; }
.source-route-3 { animation-delay: -0.9s; }
.source-route-4 { animation-delay: -1.35s; }

@media (max-width: 760px) {
  .source-map-grid { min-height: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .source-map-grid::before, .source-flow-svg { display: none; }
  .source-node, .source-core { position: relative; inset: auto; grid-area: auto; width: 100%; min-height: 0; aspect-ratio: auto; transform: none; }
  .source-node-1 { order: 1; }
  .source-node-2 { order: 2; }
  .source-node-3 { order: 3; }
  .source-node-4 { order: 4; }
  .source-node { display: grid; gap: 6px; }
  .source-node strong { font-size: 20px; }
  .source-node p { font-size: 13px; }
  .source-node:hover, .source-node:focus-within, .source-core:hover, .source-core:focus-within { transform: none; }
  .source-core { order: 5; margin-top: 10px; padding: 28px 22px; border-radius: 20px; }
  .source-core::before, .source-core::after { border-radius: 20px; display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .offer-marquee-track { animation: none; }
}

/* Compact navigation and estimator progress for phone-sized screens. */
.mobile-menu-toggle { display: none; }
.mobile-menu-content { display: contents; }

@media (max-width: 640px) {
  .site-header,
  body:not(.chat-mode) .site-header,
  body.chat-mode .site-header {
    min-height: 74px;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    gap: 12px;
    padding: 10px 12px;
  }

  .site-header .wordmark,
  body:not(.chat-mode) .site-header .wordmark,
  body.chat-mode .site-header .wordmark {
    justify-self: start;
  }

  .mobile-menu-toggle {
    position: relative;
    inset: auto;
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    display: grid;
    place-content: center;
    gap: 3px;
    padding: 0;
    border: 1px solid rgba(220, 230, 218, 0.24);
    border-radius: 10px;
    background: transparent;
    color: #f5f8f4;
    cursor: pointer;
    justify-self: end;
  }

  .mobile-menu-toggle span {
    width: 21px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 120ms ease;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2),
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3),
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(4) { opacity: 0; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(5) { transform: translateY(-10px) rotate(-45deg); }

  .mobile-menu-content {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 12px 14px 16px;
    border-bottom: 1px solid rgba(220, 230, 218, 0.14);
    background: rgba(15, 17, 16, 0.98);
  }

  .mobile-menu-content.open {
    display: grid;
    gap: 12px;
  }

  .site-header .mobile-menu-content .header-tabs,
  body:not(.chat-mode) .site-header .mobile-menu-content .header-tabs,
  body.chat-mode .site-header .mobile-menu-content .header-tabs {
    order: 0;
    width: 100%;
    display: grid;
    gap: 0;
    padding: 0;
    overflow: visible;
  }

  .site-header .mobile-menu-content .header-tabs a,
  body:not(.chat-mode) .site-header .mobile-menu-content .header-tabs a,
  body.chat-mode .site-header .mobile-menu-content .header-tabs a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(220, 230, 218, 0.1);
  }

  .mobile-menu-content .auth-actions,
  .mobile-menu-content .account-menu,
  body:not(.chat-mode) .mobile-menu-content .auth-actions,
  body.chat-mode .mobile-menu-content .auth-actions {
    width: 100%;
    order: 1;
    flex-direction: column;
    justify-self: stretch;
  }

  .mobile-menu-content .auth-actions > a:not(.account-link) {
    width: 100%;
    min-width: 0;
    flex: 0 0 48px;
  }

  .mobile-menu-content .auth-actions > .account-link {
    width: 100%;
    min-width: 240px;
    flex: 0 0 48px;
  }

  body.chat-mode .estimator-shell {
    padding-top: 86px;
  }

  body.chat-mode .step-rail {
    position: fixed;
    top: 50%;
    right: 12px;
    left: 12px;
    z-index: 14;
    width: auto;
    height: 48px;
    padding: 0 10px;
    overflow: hidden;
    transform: translateY(-50%);
    border: 1px solid rgba(220, 230, 218, 0.16);
    border-radius: 12px;
    background: rgba(15, 17, 16, 0.88);
    backdrop-filter: blur(10px);
  }

  body.chat-mode .step-rail ol {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(8, 1fr);
    align-items: center;
  }

  body.chat-mode .step-rail li {
    min-width: 0;
    display: grid;
    place-items: center;
    gap: 0;
  }

  body.chat-mode .step-rail li span {
    z-index: 1;
    width: 14px;
    height: 14px;
    border-width: 2px;
    box-shadow: 0 0 0 3px #0f1110;
  }

  body.chat-mode .step-rail li.active span,
  body.chat-mode .step-rail li.complete span {
    box-shadow: 0 0 0 3px #0f1110, 0 0 12px rgba(0, 200, 5, 0.32);
  }

  body.chat-mode .step-rail li strong,
  body.chat-mode .step-rail .step-link {
    display: none;
  }

  body.chat-mode .progress-line {
    top: 23px;
    right: 6.25%;
    left: 6.25%;
    height: 2px;
  }

  body.chat-mode .flow {
    padding-top: 24px;
  }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .mobile-menu-toggle span { transition: none; }
}

/* Clerk auth controls */
.auth-actions > span,
.auth-actions > button,
.auth-actions .clerk-userButton-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-actions > span {
  gap: inherit;
}

.mobile-menu-content .auth-actions > span {
  display: contents;
}

.auth-actions button {
  font: inherit;
  cursor: pointer;
  border: 0;
}

.auth-actions .clerk-userButton-trigger {
  color: #f5f8f4;
}

body:not(.chat-mode) .auth-actions .clerk-userButton-trigger {
  color: #20231f;
}

body:not(.chat-mode) .mobile-menu-content .auth-actions button,
body.chat-mode .mobile-menu-content .auth-actions button,
body:not(.chat-mode) .mobile-menu-content .auth-actions a:not(.account-link),
body.chat-mode .mobile-menu-content .auth-actions a:not(.account-link) {
  width: 100%;
  min-width: 0;
  flex: 0 0 48px;
}

body:not(.chat-mode) .mobile-menu-content .auth-actions .account-link,
body.chat-mode .mobile-menu-content .auth-actions .account-link {
  width: 100%;
  min-width: 240px;
  flex: 0 0 48px;
}

.clerk-signup-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.clerk-signup-actions .signup-helper {
  margin: 0;
  color: #a7afa8;
  font-size: 14px;
}

.clerk-signup-actions button {
  font: inherit;
  cursor: pointer;
}
