:root {
  --ink: #18221f;
  --muted: #58655f;
  --paper: #f8f7f2;
  --white: #ffffff;
  --green: #1f6b55;
  --green-dark: #124838;
  --copper: #b85d37;
  --gold: #e4b84b;
  --aqua: #d8eee7;
  --line: #d8ddd5;
  --shadow: 0 24px 80px rgba(13, 35, 27, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(248, 247, 242, 0.92);
  border-bottom: 1px solid rgba(24, 34, 31, 0.09);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.nav-action,
.secondary-button,
.primary-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.nav-action {
  padding: 10px 14px;
  color: var(--white);
  background: var(--green);
}

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 30, 26, 0.9), rgba(16, 30, 26, 0.66) 46%, rgba(16, 30, 26, 0.2)),
    linear-gradient(0deg, rgba(248, 247, 242, 0.12), rgba(248, 247, 242, 0.12));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 470px);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  width: min(1180px, calc(100% - 36px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 24px 0;
}

.hero-copy {
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5.7vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.85rem, 3vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-lede {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.intake-panel {
  padding: clamp(18px, 2.5vw, 24px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-head h2 {
  margin-bottom: 10px;
  font-size: 1.42rem;
}

label,
legend {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  margin-top: 5px;
  padding: 9px 12px;
  color: var(--ink);
  background: #fbfcf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

textarea {
  width: 100%;
  min-height: 110px;
  margin-top: 7px;
  padding: 12px;
  color: var(--ink);
  background: #fbfcf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(228, 184, 75, 0.58);
  outline-offset: 2px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 12px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  padding: 0 6px;
}

.check,
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-weight: 650;
}

.check input,
.consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
}

.consent {
  margin-top: 12px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.score-strip {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  padding: 10px 12px;
  background: var(--aqua);
  border-left: 4px solid var(--green);
  border-radius: 8px;
}

.score-strip.is-active {
  display: flex;
}

.score-strip span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.score-strip strong {
  text-align: right;
  font-size: 0.94rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.primary-button {
  width: 100%;
  color: var(--white);
  background: var(--green-dark);
}

.primary-button:hover,
.secondary-button:hover,
.nav-action:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-status {
  margin: 12px 0 0;
  color: var(--copper);
  font-size: 0.9rem;
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) 0;
}

.section-head {
  max-width: 680px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.service-card {
  min-height: 245px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card p,
.partner-cta p,
.site-footer p {
  color: var(--muted);
}

.service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  place-items: center;
  color: var(--white);
  background: var(--copper);
  border-radius: 8px;
  font-weight: 900;
}

.band {
  background: var(--green-dark);
  color: var(--white);
}

.band-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 72px) 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-grid div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.metric-grid strong {
  display: block;
  font-size: 1.9rem;
}

.metric-grid span {
  color: rgba(255, 255, 255, 0.78);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.city-list {
  display: grid;
  gap: 10px;
}

.city-list a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.city-list a:hover {
  border-color: var(--green);
}

.partner-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
}

.secondary-button {
  color: var(--white);
  background: var(--copper);
  white-space: nowrap;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: #111b18;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.84);
}

.credit {
  font-size: 0.82rem;
}

.hidden {
  display: none !important;
}

.content-page {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 92px) 0;
}

.content-page h1 {
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.content-page p,
.content-page li {
  color: var(--muted);
}

.content-page section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.provider-hero {
  background: var(--green-dark);
  color: var(--white);
}

.provider-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0;
}

.provider-hero h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.provider-hero p {
  max-width: 670px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.dark-row span {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.provider-summary {
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.provider-summary h2 {
  font-size: 1.65rem;
}

.pricing-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0 clamp(32px, 5vw, 64px);
}

.pricing-hero h1 {
  color: var(--ink);
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

.pricing-hero p {
  max-width: 790px;
  color: var(--muted);
  font-size: 1.08rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.price-card {
  display: grid;
  align-content: start;
  min-height: 500px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.price-card .price {
  display: block;
  margin: 6px 0 12px;
  color: var(--green-dark);
  font-size: 2.15rem;
  line-height: 1;
}

.price-card p,
.price-card li {
  color: var(--muted);
}

.price-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 18px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.step-grid article {
  min-height: 210px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-grid strong {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 28px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
}

.step-grid p,
.provider-application-wrap p {
  color: var(--muted);
}

.standards-grid {
  grid-template-columns: repeat(3, 1fr);
}

.provider-application-wrap {
  align-items: start;
}

.provider-form {
  position: static;
}

.wide-fieldset {
  grid-template-columns: 1fr 1fr;
}

.provider-score {
  display: flex;
}

.simple-form {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.simple-form textarea {
  margin-bottom: 12px;
}

.portal-page {
  background: #f4f6f1;
}

.portal-header {
  position: static;
}

.portal-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) 0 80px;
}

.portal-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.portal-auth h1,
.portal-topbar h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.portal-auth p {
  max-width: 650px;
  color: var(--muted);
}

.portal-login {
  box-shadow: 0 18px 60px rgba(13, 35, 27, 0.1);
}

.portal-login label + label,
.account-form label + label {
  margin-top: 12px;
}

.portal-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.portal-actions,
.portal-action-row,
.offer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.offer-actions .primary-button,
.offer-actions .secondary-button {
  width: 140px;
}

.portal-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--green-dark);
  background: var(--aqua);
  border: 1px solid rgba(31, 107, 85, 0.18);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill[data-status="unpaid"],
.status-pill[data-status="past_due"],
.status-pill[data-status="canceled"] {
  color: #7c331f;
  background: #f6dfd3;
  border-color: rgba(184, 93, 55, 0.28);
}

.portal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.portal-sidebar {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 18px;
}

.portal-tab {
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-align: left;
}

.portal-tab.is-active,
.portal-tab:hover {
  color: var(--white);
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.portal-view {
  display: none;
}

.portal-view.is-active {
  display: block;
}

.compact-head h2 {
  font-size: clamp(1.55rem, 2vw, 2.15rem);
}

.account-form .primary-button,
.portal-login .primary-button {
  margin-top: 14px;
}

.offer-list,
.payment-list {
  display: grid;
  gap: 12px;
}

.offer-card,
.payment-row,
.billing-card,
.portal-alert {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.offer-card h3 {
  margin-top: 10px;
  font-size: 1.24rem;
}

.offer-card p,
.billing-card p,
.muted-copy,
#billing-note {
  color: var(--muted);
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.offer-meta span {
  padding: 6px 8px;
  color: var(--ink);
  background: #eef2ea;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-reveal {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px;
  background: var(--aqua);
  border-radius: 8px;
}

.billing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.billing-card {
  display: grid;
  align-content: start;
  min-height: 268px;
  padding: 18px;
}

.billing-card .primary-button {
  align-self: end;
  margin-top: 16px;
}

.portal-alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  color: #7c331f;
  background: #f6dfd3;
  font-weight: 850;
}

.portal-action-row {
  flex-wrap: wrap;
  margin-top: 16px;
}

.portal-action-row .secondary-button {
  width: auto;
}

.payment-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.payment-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 920px) {
  .hero-inner,
  .provider-hero-inner,
  .band-inner,
  .split,
  .portal-auth,
  .portal-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: start;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .portal-sidebar {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-nav {
    gap: 10px;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 36px 0;
  }

  h1 {
    font-size: 2.55rem;
  }

  .field-grid,
  fieldset,
  .service-grid,
  .metric-grid,
  .wide-fieldset,
  .offer-card,
  .payment-row {
    grid-template-columns: 1fr;
  }

  .portal-topbar,
  .portal-actions,
  .offer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .offer-actions .primary-button,
  .portal-actions .secondary-button,
  .offer-actions .secondary-button {
    width: 100%;
  }

  .partner-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .secondary-button {
    width: 100%;
  }
}
