:root {
  --ink: #142126;
  --muted: #637178;
  --paper: #fbfaf7;
  --line: #dfe5e1;
  --teal: #103f48;
  --teal-2: #176f72;
  --gold: #c4923f;
  --green: #557a54;
  --red: #8f3f35;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(20, 33, 38, 0.15);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: calc(10px + env(safe-area-inset-top)) clamp(16px, 4vw, 52px) 10px;
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.topbar[data-elevated="true"] {
  background: rgba(16, 63, 72, 0.96);
  box-shadow: 0 12px 35px rgba(16, 63, 72, 0.24);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 850;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: clamp(12px, 3vw, 30px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.nav a:hover,
.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-cta,
.button,
.quote-button,
.segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
}

.nav-cta {
  padding: 0 16px;
  background: var(--gold);
  color: #21190d;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
}

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

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(7, 34, 41, 0.91) 0%, rgba(7, 34, 41, 0.62) 48%, rgba(7, 34, 41, 0.2) 100%),
    linear-gradient(0deg, rgba(7, 34, 41, 0.78) 0%, transparent 48%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 140px 0 clamp(54px, 10vh, 96px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
}

.nurse-dropdown,
.service-dropdown {
  position: relative;
}

.nurse-dropdown > summary,
.service-dropdown > summary {
  width: 100%;
  list-style: none;
}

.nurse-dropdown > summary::-webkit-details-marker,
.service-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nurse-dropdown > summary::after,
.service-dropdown > summary::after {
  content: "▾";
  margin-left: 10px;
}

.nurse-dropdown[open] > summary::after,
.service-dropdown[open] > summary::after {
  content: "▴";
}

.nurse-menu {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.nurse-menu > .button {
  width: 100%;
}

.service-menu {
  width: min(320px, calc(100vw - 32px));
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.service-menu a {
  display: block;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.service-menu a + a {
  border-top: 1px solid var(--line);
}

.service-menu a:hover,
.service-menu a:focus-visible {
  background: #edf4f2;
}

.button {
  padding: 0 18px;
}

.button.primary {
  background: var(--gold);
  color: #21190d;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button.payment {
  background: var(--teal);
  color: var(--white);
}

.trust-band,
.process-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-band > div,
.process-band > div {
  min-height: 132px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--white);
}

.trust-band strong,
.trust-band span,
.process-band strong,
.process-band p {
  display: block;
}

.trust-band strong,
.process-band strong {
  font-size: 1.1rem;
}

.trust-band span,
.process-band p,
.section-heading p,
.offer-card p,
.offer-card li {
  color: var(--muted);
  line-height: 1.55;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) 0;
}

.audience-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 28px;
}

.section-heading {
  max-width: 720px;
}

.section-heading p {
  margin: 16px 0 0;
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.segment {
  min-height: 42px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
}

.segment.active {
  background: var(--teal);
  color: var(--white);
}

.offers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.offer-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 35px rgba(20, 33, 38, 0.06);
}

.offer-card[hidden] {
  display: none;
}

.offer-card.featured {
  border-color: rgba(196, 146, 63, 0.65);
  box-shadow: var(--shadow);
}

.offer-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  background: #edf4f2;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 850;
}

.offer-card ul {
  margin: 8px 0 18px;
  padding-left: 20px;
}

.price {
  margin-top: auto;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 1.05rem;
}

.quote-button {
  width: 100%;
  background: var(--teal);
  color: var(--white);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.diagnostic-panel,
.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 35px rgba(20, 33, 38, 0.08);
}

.contact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 740;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 46px;
  padding: 10px 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(196, 146, 63, 0.28);
  border-color: var(--gold);
}

input[type="range"] {
  padding: 0;
  accent-color: var(--gold);
}

.wide {
  grid-column: 1 / -1;
}

.result,
.form-status {
  display: block;
  width: 100%;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f2eb;
  color: var(--ink);
  line-height: 1.5;
}

.payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(196, 146, 63, 0.55);
  border-radius: 8px;
  background: #fff7e8;
}

.payment-summary strong,
.payment-summary span {
  display: block;
}

.payment-summary span {
  margin-top: 4px;
  color: var(--muted);
}

.process-band span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 8px;
  background: var(--gold);
  color: #22180b;
  font-weight: 850;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(16px, 4vw, 52px) calc(26px + env(safe-area-inset-bottom));
  background: var(--teal);
  color: var(--white);
}

.footer span {
  color: rgba(255, 255, 255, 0.72);
}

.form-page .topbar {
  position: sticky;
  background: var(--teal);
  box-shadow: 0 12px 35px rgba(16, 63, 72, 0.2);
}

.form-main {
  width: min(940px, calc(100% - 32px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) 0;
}

.form-main .section-heading {
  margin-bottom: 24px;
}

.form-main h1 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1;
}

@media (max-width: 980px) {
  .offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .audience-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .nav {
    order: 3;
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    padding-top: 2px;
    font-size: 0.78rem;
  }

  .nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    white-space: nowrap;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .form-page .topbar {
    flex-wrap: nowrap;
  }

  .hero {
    min-height: 88svh;
  }

  .trust-band,
  .process-band,
  .offers,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .segmented {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .payment-summary {
    align-items: stretch;
    flex-direction: column;
  }
}
