:root {
  --ink: #10202a;
  --green: #0d6b4b;
  --green2: #35b67a;
  --muted: #667780;
  --line: #dde7e3;
  --pale: #f4f7f5;
  --amber: #a36308;
  --red: #a04444;
  --shadow: 0 15px 50px #183e2b18;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  color: var(--ink);
  font:
    14px/1.45 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #fff;
  overflow-x: hidden;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
header {
  max-width: 1180px;
  height: 72px;
  margin: auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 850;
  font-size: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -0.06em;
}
nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 13px;
  color: #5d6d73;
}
.navbtn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--ink);
  font-weight: 750;
}
.navbtn span {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  margin-left: 3px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--pale);
  font-size: 10px;
}
.hero {
  text-align: center;
  max-width: 960px;
  margin: auto;
  padding: 62px 22px 38px;
}
.ey {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  color: var(--green);
  text-transform: uppercase;
}
.hero h1 {
  font:
    500 67px/0.98 Georgia,
    serif;
  letter-spacing: -0.05em;
  margin: 15px 0;
}
.hero h1 em {
  color: var(--green);
  font-weight: 400;
}
.hero > p {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 23px;
  line-height: 1.55;
}
.search {
  max-width: 840px;
  margin: auto;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow);
  background: #fff;
}
.search:focus-within {
  outline: 3px solid #35b67a30;
  border-color: #89b9a5;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 13px;
  font-size: 16px;
}
.btn {
  border: 0;
  border-radius: 9px;
  padding: 12px 15px;
  font-weight: 800;
  transition:
    transform 0.15s,
    opacity 0.15s,
    background 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}
.green {
  background: var(--green);
  color: #fff;
}
.green:hover {
  background: #095a3e;
}
.light {
  background: #fff;
  border: 1px solid var(--line);
}
.note {
  font-size: 12px;
  color: #83918b;
  margin-top: 12px;
}
.error {
  min-height: 20px;
  color: var(--red);
  margin-top: 10px;
}
.recent {
  min-height: 0;
  width: fit-content;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 6px 8px;
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px #183e2b0d;
}
.recent:empty {
  display: none;
}
.recent button {
  border: 1px solid var(--line);
  background: var(--pale);
  color: #56665f;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.section {
  padding: 58px max(22px, calc(50vw - 590px));
}
.alt,
.report {
  background: var(--pale);
  border-top: 1px solid var(--line);
}
.report {
  padding: 38px max(22px, calc(50vw - 590px)) 70px;
}
.hide {
  display: none;
}
.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 15px;
}
.head h2 {
  font:
    500 35px Georgia,
    serif;
  margin: 5px 0;
}
.head p {
  color: var(--muted);
  margin: 0;
}
.actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.facts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.fact,
.metric,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
}
.fact span,
.metric span,
.result span,
.ceilingitem span {
  font-size: 11px;
  color: #7e8e88;
}
.fact b,
.metric b {
  display: block;
  font-size: 18px;
  margin-top: 4px;
}
.metric small {
  font-size: 11px;
  color: var(--green);
}
.snap {
  background: var(--ink);
  color: #fff;
  border-radius: 15px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  margin: 13px 0;
}
.ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 8px solid var(--green2);
  text-align: center;
}
.ring b {
  font:
    600 29px Georgia,
    serif;
}
.ring small {
  font-size: 10px;
}
.snap h3 {
  font-size: 18px;
  margin: 4px 0;
}
.snap p {
  font-size: 12px;
  color: #b8c3bf;
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.stats div {
  display: flex;
  flex-direction: column;
}
.stats span {
  font-size: 11px;
  color: #9daca6;
}
.stats b {
  font-size: 17px;
  margin-top: 3px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin: 12px 0;
}
.coverage {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}
.coverage span {
  padding: 5px 8px;
  border-radius: 6px;
  background: #e9edeb;
  font-size: 10px;
  color: #6a7672;
}
.coverage .ok {
  background: #e4f3eb;
  color: var(--green);
}
.coverage .ready {
  background: #fff3db;
  color: var(--amber);
}
.risk {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 15px;
  margin-bottom: 25px;
}
.risk h3 {
  margin: 5px 0;
}
.risk ul {
  margin: 0;
  color: #5e6c72;
  font-size: 13px;
  line-height: 1.7;
}
.sectionhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 9px;
}
.sectionhead h3 {
  margin: 4px 0 0;
}
.presets {
  display: flex;
  background: #e9eeeb;
  border-radius: 9px;
  padding: 3px;
}
.presets button {
  border: 0;
  background: transparent;
  padding: 7px 10px;
  border-radius: 7px;
  color: #64736d;
  font-size: 12px;
}
.presets .active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px #10202a12;
  font-weight: 800;
}
.inputs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.inputs label {
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
}
.inputs input {
  width: 100%;
  margin-top: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
}
.results {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}
.result {
  display: flex;
  flex-direction: column;
}
.result b {
  margin-top: 4px;
  font-size: 15px;
}
.ceiling {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  margin-top: 14px;
}
.ceiling h3 {
  margin: 4px 0;
}
.ceiling p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.ceilinggrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.ceilingitem {
  border: 1px solid #e8efec;
  border-radius: 9px;
  padding: 10px;
}
.ceilingitem b {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}
.ceilingitem.binding {
  border-color: #78ae96;
  background: #eff8f4;
}
.ceilingitem.binding span {
  color: var(--green);
  font-weight: 750;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.row,
.school {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #edf1ef;
  padding: 10px 0;
  gap: 10px;
}
.row:first-child,
.school:first-child {
  border-top: 0;
}
.row span,
.school span {
  font-size: 12px;
  color: var(--muted);
}
.school {
  flex-direction: column;
  gap: 2px;
}
.school small {
  color: #7b8983;
}
.comps {
  margin-top: 20px;
}
.comphead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
}
.comphead h3 {
  margin: 4px 0 5px;
}
.compnote {
  color: var(--muted);
  font-size: 12px;
}
.compsummary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.compsummary:empty {
  display: none;
}
.compsummary span {
  background: #e5eee9;
  border-radius: 7px;
  padding: 6px 8px;
  color: #4c6259;
  font-size: 11px;
}
.tablewrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-top: 9px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}
th,
td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid #edf1ef;
  font-size: 12px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafcfb;
}
th {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #71817a;
  background: #fafcfb;
}
.empty {
  padding: 26px;
  color: var(--muted);
  text-align: center;
}
.empty b {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}
.intro {
  max-width: 720px;
}
.intro h2 {
  font:
    500 40px Georgia,
    serif;
  margin: 8px 0;
}
.intro p {
  color: var(--muted);
  line-height: 1.6;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 25px;
}
.plan {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 21px;
  background: #fff;
}
.plan.hot {
  border-color: #8ebaa7;
  box-shadow: 0 10px 35px #0d6b4b12;
}
.plan h3 {
  margin-top: 0;
}
.plan p,
.plan li {
  color: var(--muted);
  line-height: 1.55;
}
.plan ul {
  padding-left: 18px;
}
.amount {
  font:
    600 35px Georgia,
    serif;
  margin: 12px 0;
}
.lock {
  background: #e8f3ee;
  color: var(--green);
  padding: 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 750;
}
.lock.neutral {
  background: var(--pale);
  color: #5c6964;
}
.badge {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #e6f3ed;
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
footer {
  text-align: center;
  padding: 25px;
  color: #7c8984;
  font-size: 12px;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
  width: min(470px, calc(100vw - 12px));
  max-width: calc(100vw - 12px);
  height: 100dvh;
  background: #fff;
  padding: 24px;
  box-shadow: -20px 0 60px #10202a20;
  transform: translateX(105%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
.drawer.open {
  transform: translateX(0);
}
.drawerhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}
.drawerhead h2 {
  font:
    500 30px Georgia,
    serif;
  margin: 4px 0;
}
.iconbtn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 22px;
  flex: 0 0 auto;
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: #10202a55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.scrim.show {
  opacity: 1;
  pointer-events: auto;
}
.saveditem {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.saveditem h3 {
  font-size: 14px;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.savedmeta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0;
}
.savedmeta span {
  background: var(--pale);
  padding: 7px;
  border-radius: 7px;
  font-size: 11px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.savedactions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.savedactions button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 11px;
  max-width: 100%;
}
.toast {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 30;
  max-width: calc(100vw - 24px);
  background: var(--ink);
  color: #fff;
  padding: 10px 13px;
  border-radius: 9px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: none;
}
@media (max-width: 900px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
  .metrics,
  .inputs {
    grid-template-columns: 1fr 1fr;
  }
  .results {
    grid-template-columns: repeat(3, 1fr);
  }
  .snap {
    grid-template-columns: auto 1fr;
  }
  .stats {
    grid-column: 1/-1;
  }
  .two,
  .plans {
    grid-template-columns: 1fr;
  }
  .ceiling {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  header {
    height: 64px;
  }
  nav > a {
    display: none;
  }
  .hero {
    padding-top: 44px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero > p {
    font-size: 16px;
  }
  .search {
    flex-direction: column;
  }
  .facts,
  .metrics,
  .inputs {
    grid-template-columns: 1fr 1fr;
  }
  .results {
    grid-template-columns: 1fr 1fr;
  }
  .snap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ring {
    margin: auto;
  }
  .stats {
    grid-template-columns: 1fr 1fr 1fr;
    text-align: left;
  }
  .head {
    align-items: flex-start;
    flex-direction: column;
  }
  .actions {
    width: 100%;
  }
  .actions .btn {
    flex: 1;
    padding: 10px 8px;
  }
  .risk {
    grid-template-columns: 1fr;
  }
  .sectionhead {
    align-items: flex-start;
    flex-direction: column;
  }
  .presets {
    width: 100%;
  }
  .presets button {
    flex: 1;
  }
  .ceilinggrid {
    grid-template-columns: 1fr;
  }
  .intro h2 {
    font-size: 34px;
  }
  .drawer {
    width: calc(100vw - 8px);
    max-width: calc(100vw - 8px);
    padding: 18px;
  }
  .savedmeta {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 400px) {
  .facts,
  .metrics,
  .inputs {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .actions .btn {
    flex-basis: 45%;
  }
}
@media print {
  header,
  .hero,
  #pricing,
  #method,
  .actions,
  footer,
  .coverage,
  .presets,
  .drawer,
  .scrim,
  .toast {
    display: none !important;
  }
  .report {
    display: block !important;
    background: #fff;
    padding: 0;
  }
  .snap {
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
  }
  .snap p {
    color: #555;
  }
  .panel,
  .fact,
  .metric,
  .tablewrap {
    break-inside: avoid;
  }
}

.offer-engine,
.scenario-panel {
  margin-top: 14px;
}
.offer-engine > div:first-child,
.scenario-heading,
.rate-sensitivity > div:first-child {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.offer-engine h3,
.scenario-panel h3,
.rate-sensitivity h4 {
  margin: 4px 0;
}
.offer-engine p,
.scenario-heading p,
.rate-sensitivity p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}
.offer-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.offer-card {
  padding: 16px;
  border-radius: 11px;
  background: var(--pale);
  border: 1px solid #dce8e2;
}
.offer-card span,
.offer-card b,
.offer-card small,
.scenario-table td:first-child small {
  display: block;
}
.offer-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.offer-card b {
  font:
    600 27px Georgia,
    serif;
  margin: 7px 0;
}
.offer-card small,
.scenario-table td:first-child small {
  color: var(--muted);
  line-height: 1.4;
}
.offer-card.walkaway {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.offer-card.walkaway span,
.offer-card.walkaway small {
  color: #b8c3bf;
}
.offer-engine h4 {
  margin: 8px 0;
}
.offer-policy {
  margin-top: 12px !important;
}
.scenario-heading {
  margin-bottom: 14px;
}
.scenario-table table,
.rate-sensitivity table {
  min-width: 850px;
}
.scenario-table td.pass,
.rate-sensitivity td.pass {
  color: var(--green);
  font-weight: 800;
}
.scenario-table td.fail,
.rate-sensitivity td.fail {
  color: #a24632;
  font-weight: 800;
}
.rate-sensitivity {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 22px;
}
.rate-sensitivity > div:first-child {
  display: block;
}
.current-rate {
  background: #eff8f4;
}
@media (max-width: 760px) {
  .offer-engine > div:first-child,
  .scenario-heading,
  .rate-sensitivity {
    display: block;
  }
  .offer-summary {
    grid-template-columns: 1fr;
  }
  .scenario-heading p,
  .rate-sensitivity .tablewrap {
    margin-top: 12px;
  }
}
@media print {
  .offer-engine,
  .scenario-panel {
    break-inside: avoid;
  }
}
/* Free-source research tools follow the existing dashboard styling. */
.free-panel {
  margin-top: 24px;
}
.free-panel p {
  line-height: 1.6;
}
.model-note {
  padding: 14px 18px;
  background: #edf4fc;
  border-left: 3px solid #2962a8;
  font-size: 14px;
  line-height: 1.6;
}
.muted {
  color: #526579;
  font-size: 14px;
}
.unit-row {
  display: grid;
  grid-template-columns: 1.2fr 0.65fr 0.65fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
}
.unit-row label,
.file-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
}
.unit-row input,
.free-panel select,
.free-panel input {
  font: inherit;
  min-width: 0;
  width: 100%;
  padding: 11px;
  border: 1px solid #bdcbd7;
  border-radius: 8px;
  background: white;
  color: #162c3f;
  box-sizing: border-box;
}
.free-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.file-label input {
  font-size: 14px;
}
.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.benchmark-grid > div {
  background: #eef5fa;
  padding: 16px;
  border-radius: 10px;
}
.benchmark-grid span,
.benchmark-grid b {
  display: block;
}
