:root {
  --navy: #191d37;
  --navy2: #242a4a;
  --gold: #caa66a;
  --cream: #f6f3ed;
  --ink: #171925;
  --muted: #656879;
  --line: #dedbd3;
  --white: #fff;
  --shadow: 0 18px 55px rgba(25, 29, 55, 0.12);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background: var(--white);
  line-height: 1.65;
}
a {
  color: inherit;
}
.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(25, 29, 55, 0.97);
  backdrop-filter: blur(12px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.mark {
  width: 35px;
  height: 42px;
  position: relative;
  border-left: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}
.mark:before,
.mark:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  border-top: 2px solid var(--gold);
}
.mark:before {
  top: 15px;
}
.mark:after {
  top: 25px;
}
.brand strong {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
}
.brand small {
  display: block;
  color: #b8bbca;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: -4px;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 24px;
}
.navlinks a {
  text-decoration: none;
  font-size: 0.88rem;
  color: #e8e9ee;
}
.navlinks a:hover,
.navlinks a.active {
  color: var(--gold);
}
.navcta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--navy) !important;
  text-decoration: none;
  font-weight: 750;
  border: 1px solid var(--gold);
  transition: 0.2s;
}
.navcta:hover,
.button:hover {
  transform: translateY(-1px);
  background: #d7b97f;
}
.mobile {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
}
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0 68%, var(--navy2) 68%);
  color: #fff;
  padding: 90px 0;
}
.eyebrow {
  color: var(--gold);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.74rem;
}
.page-hero h1 {
  font:
    500 clamp(2.7rem, 5vw, 4.9rem)/1.04 Georgia,
    serif;
  letter-spacing: -0.035em;
  margin: 15px 0 20px;
  max-width: 880px;
}
.page-hero p {
  font-size: 1.12rem;
  color: #d4d6df;
  max-width: 720px;
  margin: 0;
}
.section {
  padding: 90px 0;
}
.section.alt {
  background: var(--cream);
}
.section-head {
  max-width: 800px;
  margin-bottom: 42px;
}
.section-head h2 {
  font:
    500 clamp(2.15rem, 4vw, 3.5rem)/1.1 Georgia,
    serif;
  margin: 10px 0 16px;
  letter-spacing: -0.025em;
}
.section-head p,
.lead {
  font-size: 1.06rem;
  color: var(--muted);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.quote {
  font:
    500 2rem/1.35 Georgia,
    serif;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding-left: 25px;
}
.checks {
  display: grid;
  gap: 14px;
}
.check {
  background: #fff;
  padding: 20px 20px 20px 48px;
  position: relative;
  border: 1px solid #e7e3db;
}
.check:before {
  content: "✓";
  position: absolute;
  left: 20px;
  color: #927039;
  font-weight: 900;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 235px;
}
.card .kicker {
  color: #9b763d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.card h3 {
  font:
    500 1.55rem Georgia,
    serif;
  margin: 16px 0 10px;
}
.card p {
  color: var(--muted);
  font-size: 0.94rem;
}
.portal-shell {
  border: 1px solid #d9d6ce;
  background: #eef0f5;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.portal-top {
  background: var(--navy);
  color: #fff;
  padding: 19px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.portal-top > div {
  display: grid;
  gap: 2px;
}
.portal-top strong {
  font-family: Georgia, serif;
  font-size: 1.15rem;
}
.portal-top small {
  color: #aeb2c5;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.sample-tag {
  background: var(--gold);
  color: var(--navy);
  padding: 5px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.portal-body {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: 650px;
}
.portal-side {
  background: #222744;
  color: #bec2d1;
  padding: 26px 16px;
}
.portal-side-label {
  display: block;
  padding: 0 10px 12px;
  color: #8f94a9;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.portal-tab {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: start;
  padding: 13px 10px;
  margin-bottom: 5px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: #bec2d1;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.portal-tab b {
  color: #777e99;
  font-size: 0.72rem;
  padding-top: 2px;
}
.portal-tab span {
  font-size: 0.84rem;
}
.portal-tab small {
  display: block;
  color: #858ba3;
  font-size: 0.68rem;
  line-height: 1.35;
}
.portal-tab:hover,
.portal-tab:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  outline: none;
}
.portal-tab.selected {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--gold);
}
.portal-tab.selected b,
.portal-tab.selected small {
  color: var(--gold);
}
.portal-side-note {
  margin: 24px 10px 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #969caf;
  font-size: 0.7rem;
  line-height: 1.55;
}
.portal-side-note strong {
  display: block;
  color: #d8dae4;
  margin-bottom: 4px;
}
.portal-main {
  padding: 28px;
  min-width: 0;
}
.portal-panel[hidden] {
  display: none;
}
.portal-panel.active {
  animation: portalFade 0.24s ease;
}
@keyframes portalFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.portal-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}
.portal-title h3 {
  font:
    500 1.65rem Georgia,
    serif;
  margin: 0;
}
.portal-title span {
  font-size: 0.76rem;
  color: var(--muted);
}
.portal-title .portal-kicker,
.portal-kicker {
  display: block;
  color: #9b763d;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat {
  background: #fff;
  border: 1px solid #dddfe6;
  padding: 17px;
}
.stat small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat strong {
  font-size: 1.35rem;
  color: var(--navy);
}
.stat em {
  display: block;
  color: #4d7b5c;
  font-size: 0.72rem;
  font-style: normal;
}
.stat em.watch {
  color: #a05d42;
}
.insight-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 16px 18px;
  background: #fffaf0;
  border: 1px solid #e8d7b5;
}
.insight-strip span {
  color: #9b763d;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.insight-strip strong {
  font-size: 0.85rem;
}
.portal-row {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
  margin-top: 14px;
}
.panel {
  background: #fff;
  border: 1px solid #dddfe6;
  padding: 20px;
}
.panel h4 {
  font: 600 0.85rem;
  margin: 0 0 17px;
}
.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.panel-heading h4 {
  margin: 0;
}
.panel-heading span {
  color: var(--muted);
  font-size: 0.69rem;
}
.bars {
  height: 175px;
  display: flex;
  align-items: end;
  gap: 8px;
  border-bottom: 1px solid #dfe1e7;
}
.bar {
  flex: 1;
  background: var(--gold);
  min-height: 30px;
  position: relative;
}
.bar:nth-child(even) {
  background: var(--navy2);
}
.bar.risk {
  background: #b86e52;
}
.bar span {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  color: #8a8d99;
  font-size: 0.59rem;
}
.priority {
  padding: 13px 0;
  border-top: 1px solid #ececf0;
  font-size: 0.82rem;
  display: flex;
}
.priority b {
  color: #9b763d;
  margin-right: 7px;
}
.priority span {
  color: var(--ink);
}
.priority small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}
.cash-row,
.profit-row {
  grid-template-columns: 1.2fr 0.8fr;
}
.aging-bar {
  display: flex;
  height: 48px;
  overflow: hidden;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 750;
}
.aging-bar span {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #475174;
  border-right: 2px solid #fff;
}
.aging-bar span:nth-child(2) {
  background: var(--gold);
  color: var(--navy);
}
.aging-bar .aging-risk {
  background: #b88455;
}
.aging-bar .aging-late {
  background: #a45c49;
}
.aging-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 0.65rem;
}
.aging-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: #475174;
}
.aging-legend span:nth-child(2) i {
  background: var(--gold);
}
.aging-legend span:nth-child(3) i {
  background: #b88455;
}
.aging-legend span:nth-child(4) i {
  background: #a45c49;
}
.mini-table {
  border-top: 1px solid #e7e7eb;
}
.mini-table div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e7e7eb;
  font-size: 0.75rem;
}
.mini-table span {
  color: var(--muted);
}
.positive {
  color: #3f7453;
}
.recommendation-panel {
  background: #fbfaf6;
}
.recommendation-panel h4 {
  margin: 8px 0 10px;
  font:
    500 1.35rem/1.25 Georgia,
    serif;
  color: var(--navy);
}
.recommendation-panel p,
.portal-list {
  color: var(--muted);
  font-size: 0.78rem;
}
.portal-list {
  padding-left: 18px;
  margin: 16px 0 0;
}
.portal-list li {
  margin: 6px 0;
}
.service-table {
  font-size: 0.75rem;
}
.service-table > div {
  display: grid;
  grid-template-columns: 1.25fr 0.65fr 0.55fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 13px 8px;
  border-bottom: 1px solid #e7e7eb;
}
.service-table .service-head {
  padding-top: 0;
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
}
.margin-good {
  color: #3f7453;
  font-weight: 800;
}
.margin-watch {
  color: #a05d42;
  font-weight: 800;
}
.impact-box {
  margin-top: 20px;
  padding: 14px;
  background: var(--navy);
  color: #fff;
}
.impact-box span {
  display: block;
  color: #bbc0d0;
  font-size: 0.66rem;
  text-transform: uppercase;
}
.impact-box strong {
  color: var(--gold);
  font-size: 1.25rem;
}
.plan-summary {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 14px;
  background: var(--navy);
  color: #fff;
}
.plan-summary strong {
  font-family: Georgia, serif;
  font-size: 1.1rem;
}
.plan-summary span {
  max-width: 520px;
  color: #cfd2dc;
  font-size: 0.76rem;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.action-card {
  padding: 18px;
  background: #fff;
  border: 1px solid #dddfe6;
}
.action-card > div {
  display: flex;
  justify-content: space-between;
  color: #9b763d;
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
}
.action-card h4 {
  margin: 15px 0 8px;
  font:
    500 1.15rem Georgia,
    serif;
}
.action-card p {
  min-height: 102px;
  color: var(--muted);
  font-size: 0.74rem;
}
.action-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 9px;
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid #e7e7eb;
  font-size: 0.68rem;
}
.action-card dt {
  color: var(--muted);
}
.action-card dd {
  margin: 0;
  font-weight: 750;
  text-align: right;
}
.decision-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 14px;
  background: #d9dbe2;
  border: 1px solid #d9dbe2;
}
.decision-footer div {
  padding: 14px;
  background: #f9f9fb;
}
.decision-footer span {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
}
.decision-footer strong {
  color: var(--navy);
  font-size: 0.95rem;
}
.caption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
}
.fit-band {
  background: var(--navy);
  color: #fff;
}
.fit-band .lead {
  color: #c8cad5;
}
.fit-list {
  display: grid;
  gap: 10px;
}
.fit-item {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}
.fit-item strong {
  color: var(--gold);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.step {
  background: #fff;
  padding: 36px;
}
.step span {
  display: block;
  color: var(--gold);
  font:
    500 2rem Georgia,
    serif;
}
.step h3 {
  font:
    500 1.35rem Georgia,
    serif;
}
.step p {
  color: var(--muted);
  font-size: 0.93rem;
}
.contact-panel {
  background: var(--navy2);
  color: #fff;
  padding: 55px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.contact-panel h2 {
  font:
    500 clamp(2rem, 4vw, 3.2rem)/1.1 Georgia,
    serif;
  margin: 0 0 12px;
}
.contact-panel p {
  color: #ced0d9;
  max-width: 700px;
}
.note {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--muted);
}
footer {
  background: #111427;
  color: #afb2c2;
  padding: 44px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 35px;
  align-items: start;
}
.footer-brand {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}
.legal {
  font-size: 0.77rem;
  max-width: 760px;
  margin-top: 18px;
  color: #8f93a6;
}
.footlinks a {
  color: #d8dae3;
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.85rem;
}
@media (max-width: 900px) {
  .navlinks {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    padding: 20px;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
  }
  .mobile {
    display: block;
  }
  .two-col,
  .contact-panel {
    grid-template-columns: 1fr;
  }
  .cards,
  .process-grid {
    grid-template-columns: 1fr;
  }
  .portal-body {
    grid-template-columns: 1fr;
  }
  .portal-side {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 12px;
    scrollbar-width: thin;
  }
  .portal-side-label,
  .portal-side-note {
    display: none;
  }
  .portal-tab {
    flex: 0 0 190px;
    margin: 0;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  .portal-tab.selected {
    border-bottom-color: var(--gold);
  }
  .action-grid,
  .decision-footer {
    grid-template-columns: 1fr;
  }
  .action-card p {
    min-height: 0;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portal-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footlinks a {
    margin: 0 16px 0 0;
  }
}
@media (max-width: 520px) {
  .wrap {
    width: min(100% - 28px, 1160px);
  }
  .section,
  .page-hero {
    padding: 66px 0;
  }
  .brand strong {
    font-size: 0.94rem;
  }
  .brand small {
    font-size: 0.54rem;
  }
  .nav {
    height: 68px;
  }
  .navlinks {
    top: 68px;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .portal-main {
    padding: 16px;
  }
  .portal-top {
    align-items: flex-start;
    gap: 12px;
  }
  .portal-top small {
    display: none;
  }
  .sample-tag {
    white-space: nowrap;
    font-size: 0.58rem;
  }
  .portal-title {
    display: block;
  }
  .portal-title > span {
    display: block;
    margin-top: 5px;
  }
  .insight-strip,
  .plan-summary {
    grid-template-columns: 1fr;
    display: grid;
  }
  .service-table {
    overflow-x: auto;
  }
  .service-table > div {
    min-width: 560px;
  }
  .aging-bar {
    font-size: 0;
  }
  .contact-panel {
    padding: 34px 24px;
  }
}
