:root {
  --ink: #17212b;
  --deep: #203543;
  --blue: #245f73;
  --teal: #4f9b8f;
  --sage: #dce9dd;
  --cream: #fffaf0;
  --paper: #f6f3ea;
  --card: #ffffff;
  --line: #d9d3c4;
  --muted: #647078;
  --gold: #d7a13a;
  --shadow: 0 18px 44px rgba(32, 53, 67, .12);
}

* {
  letter-spacing: 0;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(32, 53, 67, .04) 1px, transparent 1px),
    linear-gradient(180deg, var(--cream), var(--paper) 520px, #fff 100%);
  background-size: 72px 72px, auto;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--teal);
}

.top-strip {
  background: var(--deep);
  color: #fff;
  font-size: .9rem;
}

.top-strip a,
.site-footer a {
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 250, 240, .96);
  border-bottom: 1px solid rgba(32, 53, 67, .12);
  backdrop-filter: blur(14px);
}

.navbar {
  min-height: 76px;
}

.navbar-brand {
  color: var(--deep);
  font-size: 1.02rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--deep);
  color: #fff;
  font-weight: 850;
  box-shadow: inset 0 -5px 0 rgba(215, 161, 58, .9);
}

.nav-link {
  position: relative;
  color: var(--deep);
  font-weight: 750;
  padding: .55rem .78rem;
}

.navbar .nav-link.active,
.navbar .nav-link:hover,
.dropdown-item.active,
.dropdown-item:active {
  color: var(--blue);
  background: transparent;
}

.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.btn {
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}

.btn-primary {
  --bs-btn-bg: var(--blue);
  --bs-btn-border-color: var(--blue);
  --bs-btn-hover-bg: var(--deep);
  --bs-btn-hover-border-color: var(--deep);
}

.btn-warning {
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-color: #17212b;
  --bs-btn-hover-bg: #c38b22;
  --bs-btn-hover-border-color: #c38b22;
}

.btn-outline-primary {
  --bs-btn-color: var(--blue);
  --bs-btn-border-color: var(--blue);
  --bs-btn-hover-bg: var(--blue);
  --bs-btn-hover-border-color: var(--blue);
}

.hero {
  min-height: 74vh;
  display: grid;
  align-items: center;
  padding: 6rem 0 5rem;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(23, 33, 43, .94) 0%, rgba(23, 33, 43, .78) 45%, rgba(23, 33, 43, .16) 100%),
    url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1900&q=82&fm=webp") center/cover;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 420px);
  gap: 2rem;
  align-items: end;
}

.hero-inner {
  max-width: 760px;
}

.hero h1 {
  font-size: 45px;
  line-height: 1.05;
  font-weight: 850;
  max-width: 760px;
}

.hero-copy {
  font-size: 1.12rem;
  max-width: 720px;
  color: rgba(255, 255, 255, .9);
}

.hero-panel,
.glass-card {
  background: rgba(255, 250, 240, .12);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.hero-panel {
  border-left: 5px solid var(--gold);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1.1rem;
}

.glass-card {
  min-height: 82px;
  display: flex;
  align-items: center;
  font-weight: 750;
}

.section-pad {
  padding: 5rem 0;
}

.eyebrow {
  color: var(--blue);
  font-size: .78rem;
  text-transform: uppercase;
  font-weight: 850;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.12;
  font-weight: 820;
}

.muted {
  color: var(--muted);
}

.alt-band {
  background:
    linear-gradient(135deg, rgba(220, 233, 221, .9), rgba(255, 250, 240, .86)),
    linear-gradient(90deg, transparent 0 47%, rgba(36, 95, 115, .08) 47% 53%, transparent 53%);
}

.dark-band {
  background:
    linear-gradient(120deg, rgba(32, 53, 67, .97), rgba(36, 95, 115, .94)),
    url("https://images.unsplash.com/photo-1605146768851-eda79da39897?auto=format&fit=crop&w=1700&q=80&fm=webp") center/cover;
  color: #fff;
}

.dark-band .muted {
  color: rgba(255, 255, 255, .78);
}

.feature-panel,
.program-card,
.blog-card,
.calc-shell,
.toc-box,
.article-cta {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.35rem;
  box-shadow: 0 10px 28px rgba(32, 53, 67, .07);
}

.feature-panel {
  border-top: 4px solid var(--teal);
}

.program-card,
.blog-card {
  height: 100%;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.program-card:hover,
.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 155, 143, .5);
  box-shadow: var(--shadow);
}

.program-card::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin-bottom: 1rem;
  background: var(--gold);
}

.blog-card .eyebrow {
  color: var(--teal);
}

.calc-shell {
  background: linear-gradient(180deg, #fff, #fffaf0);
}

.form-control {
  border-color: var(--line);
  border-radius: 8px;
  min-height: 46px;
}

.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 .2rem rgba(79, 155, 143, .18);
}

.result-box {
  background: var(--sage);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.link-grid a {
  display: block;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background:
    linear-gradient(90deg, rgba(32, 53, 67, .96), rgba(36, 95, 115, .86)),
    url("https://images.unsplash.com/photo-1600566752355-35792bedcfea?auto=format&fit=crop&w=1700&q=82&fm=webp") center/cover;
  color: #fff;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: max(1.5rem, 8vw);
  bottom: -42px;
  width: 220px;
  height: 220px;
  border: 22px solid rgba(215, 161, 58, .5);
  border-radius: 50%;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin-left: max(var(--bs-gutter-x, .75rem), calc((100vw - 1140px) / 2));
}

.page-hero h1 {
  max-width: 880px;
  line-height: 1.08;
}

.page-hero .lead {
  max-width: 720px;
  color: rgba(255, 255, 255, .84);
}

.article-wrap {
  max-width: 920px;
}

.article-wrap h2,
.article-wrap h3 {
  margin-top: 2rem;
  color: var(--deep);
}

.article-wrap p,
.article-wrap li {
  font-size: 1.04rem;
  line-height: 1.72;
}

.article-wrap > h2:first-child,
.article-wrap > h3:first-child {
  margin-top: 0;
}

.article-cta {
  background: var(--sage);
  margin: 1.5rem 0;
  border-left: 5px solid var(--gold);
}

.accordion-item {
  border-color: var(--line);
}

.accordion-button {
  font-weight: 750;
}

.accordion-button:not(.collapsed) {
  color: var(--deep);
  background: var(--sage);
  box-shadow: none;
}

.site-footer {
  background: #17212b;
  color: rgba(255, 255, 255, .78);
}

.site-footer .brand-mark {
  background: #fffaf0;
  color: var(--deep);
}

.site-footer a {
  color: rgba(255, 255, 255, .88);
}

.sticky-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: none;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: .65rem;
  box-shadow: 0 -12px 34px rgba(32, 53, 67, .13);
}

.columns-list {
  columns: 2;
}

@media (min-width: 992px) {
  main > .section-pad:not(.alt-band):not(.dark-band) .row.g-5 {
    align-items: start;
  }

  main > .section-pad:not(.alt-band):not(.dark-band) .article-wrap {
    background: rgba(255, 255, 255, .72);
    border-left: 5px solid var(--gold);
    padding: 1.6rem 1.8rem;
  }
}

@media (max-width: 1199.98px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    padding: 4.5rem 0 3.5rem;
  }

  .section-pad {
    padding: 3.5rem 0;
  }

  .navbar .nav-link.active::after {
    display: none;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 76px;
  }

  .navbar-brand span:last-child {
    max-width: 210px;
    white-space: normal;
    line-height: 1.15;
  }

  .hero h1 {
    font-size: 45px;
  }

  .hero-stats,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .columns-list {
    columns: 1;
  }

  .sticky-mobile-cta {
    display: block;
  }
}
