:root {
  color-scheme: light;
  --paper: #f4f8fb;
  --paper-deep: #e2edf5;
  --surface: #ffffff;
  --ink: #10283d;
  --ink-soft: #4a6073;
  --brand: #14507a;
  --brand-deep: #0d3855;
  --sky: #a9dbf2;
  --accent: #0b7285;
  --error: #b3261e;
  --line: #cfdce6;
  /* The staple color for bands, lines, and markers. */
  --navy: #0a1f33;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo: "Playfair Display", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
h1 em { color: var(--brand); }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.35; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 30;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  margin-bottom: 18px;
  color: var(--brand);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header::before { content: ""; display: block; height: 4px; background: var(--navy); }
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 1.4rem/1 var(--logo);
  letter-spacing: .05em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-sub { color: var(--brand); font: 500 .62em/1 var(--sans); letter-spacing: .2em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark rect { fill: var(--brand); }
.brand-mark text { fill: #fff; font: 800 21px var(--logo); letter-spacing: 0; }

nav { margin-left: auto; }
.nav-links { display: flex; gap: clamp(18px, 2.2vw, 30px); white-space: nowrap; }
.nav-links a {
  color: var(--ink-soft);
  font-size: .95rem;
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: 500 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-small { padding: 11px 20px; font-size: .92rem; white-space: nowrap; }

/* Hero */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 7vw, 88px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.lede { max-width: 33em; margin-top: 28px; color: var(--ink-soft); font-size: 1.2rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 38px; }

/* Hero illustration: northern lights over an Alaska mountain range */
.hero-art { display: block; width: 100%; height: auto; border-radius: 20px; }
.art-aurora-sky { fill: #0a1f33; }
.art-star, .art-snow { fill: var(--surface); }
.art-ridge { fill: var(--brand); }
.art-dark { fill: var(--ink); }
.au-lime { stop-color: #a8f7b4; }
.au-green { stop-color: #3fe08f; }
.au-teal { stop-color: #25c2c4; }
.au-violet { stop-color: #8f6bff; }
.au-pink { stop-color: #e268d2; }

/* Sections */
.section { padding: clamp(76px, 10vw, 136px) 0; }
.section-tint { background: var(--paper-deep); }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }

/* Services */
.service-list { border-top: 1px solid var(--line); }
.service-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: baseline;
  padding: 28px 12px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .4s var(--ease), background .3s;
}
.service-list li:hover { padding-left: 24px; background: var(--surface); }
.service-list h3 { display: flex; align-items: baseline; gap: 12px; font-size: 1.25rem; }
.service-list h3::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--navy);
}
.service-list p { color: var(--ink-soft); }
/* Alaska payers */
.section-note { max-width: 36em; margin-top: 20px; color: var(--ink-soft); font-size: 1.1rem; }
.line-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.line-list li {
  display: flex;
  align-items: center;
  min-height: 84px;
  padding: 18px 24px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
}

/* "Private payers" is a button that opens the full list. */
.line-list li.has-more { padding: 0; background: none; }
.payer-button {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  width: 100%;
  min-height: inherit;
  padding: 18px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .25s, transform .25s var(--ease);
}
.payer-button:hover { background: var(--brand); transform: translateY(-2px); }
.payer-more {
  padding: 5px 12px;
  border: 1px solid rgb(255 255 255 / .55);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
}
.payer-button:hover .payer-more { background: #fff; color: var(--navy); }

.payer-dialog {
  width: min(480px, 100% - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-top: 5px solid var(--navy);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 70px -30px rgb(10 31 51 / .6);
}
.payer-dialog::backdrop { background: rgb(10 31 51 / .55); }
.payer-dialog-inner { padding: clamp(24px, 4vw, 36px); }
.payer-dialog h2 { font-size: 1.9rem; }
.payer-names { margin: 16px 0 26px; }
.payer-names li { padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 500; }

/* Results strip under the top section */
.proof { padding: 30px 0; background: var(--navy); color: #dbe7f1; }
.proof-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; }
.proof-list { display: flex; flex-wrap: wrap; gap: 10px clamp(28px, 5vw, 64px); }
.proof-list li { font-weight: 500; }
.proof-list strong { margin-right: 8px; color: #fff; font: 400 2.3rem/1 var(--serif); }
.proof-note { color: #a9bccd; font-size: .88rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.contact-grid .section-head { margin-bottom: 0; }
.contact-note { max-width: 28em; margin-top: 22px; color: var(--ink-soft); font-size: 1.1rem; }
.contact-details { display: grid; gap: 12px; margin: 32px 0 0; }
.contact-details > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
.contact-details dt { font-weight: 600; }
.contact-details dd { margin: 0; }
.contact-form {
  display: grid;
  gap: 20px;
  padding: clamp(20px, 3vw, 34px);
  border-top: 5px solid var(--navy);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 40px -28px rgb(10 31 51 / .45);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field label { display: block; margin-bottom: 7px; font-size: .94rem; font-weight: 500; }
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--ink) 45%, #fff);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.hint { margin-top: 6px; color: var(--ink-soft); font-size: .88rem; }
.error { color: var(--error); font-size: .88rem; }
.error:not(:empty) { margin-top: 6px; }
.contact-form .btn { justify-self: start; }
.form-status { font-weight: 500; }
.form-status:empty { display: none; }

/* Footer */
.site-footer { padding: 30px 0; background: var(--navy); color: #b9c9d8; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.service-list li.reveal.is-visible { transition: opacity .8s var(--ease), transform .8s var(--ease), padding-left .4s var(--ease), background .3s; }

/* Tablet */
@media (max-width: 920px) {
  nav { display: none; }
  .header-inner { justify-content: space-between; gap: 16px; }
  .hero-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 480px; }
}

/* Phone */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  nav { display: none; }
  .header-inner { justify-content: space-between; gap: 16px; }
  .service-list li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-inline: 0; }
  .service-list li:hover { padding-left: 0; background: transparent; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .wide-only { display: none; }
  .line-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .line-list li { min-height: 72px; padding: 14px 16px; font-size: 1.02rem; }
  .payer-button { padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
