@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --ink: #17211f;
  --muted: #65706d;
  --paper: #f7f4ed;
  --surface: #fffdf8;
  --line: rgba(23, 33, 31, 0.12);
  --green: #1f6b55;
  --blue: #315f8c;
  --gold: #c58d35;
  --rose: #b75f59;
  --shadow: 0 22px 70px rgba(36, 45, 42, 0.1);
  --container: min(1180px, calc(100vw - 32px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(49, 95, 140, 0.13), transparent 28%),
    linear-gradient(225deg, rgba(197, 141, 53, 0.16), transparent 30%),
    var(--paper);
  color: var(--ink);
  font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-header {
  width: 100%;
  min-height: 106px;
  margin: 0;
  padding: 0 max(32px, calc((100vw - 1180px) / 2 + 16px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(23, 33, 31, 0.1);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.58), rgba(237, 231, 219, 0.76)),
    rgba(230, 224, 212, 0.76);
  box-shadow: 0 18px 55px rgba(36, 45, 42, 0.05);
}

.brand {
  display: inline-flex;
  width: 168px;
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
  border-radius: 8px;
}

.nav a {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(31, 107, 85, 0.08);
}

.nav .demo-cta {
  background: var(--green);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(31, 107, 85, 0.18);
}

.nav .demo-cta:hover {
  background: #174f40;
  color: #ffffff;
}

main {
  width: var(--container);
  margin: 0 auto 64px;
}

.hero {
  min-height: calc(100vh - 118px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 34px 0 48px;
  text-align: center;
}

.hero-copy {
  max-width: 900px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(4.6rem, 12vw, 10.5rem);
}

.hero-title-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 26px;
}

.hero-title-wrap h1 {
  margin-bottom: 0;
}

.hero-title-wrap span {
  position: absolute;
  right: 0.28em;
  bottom: -1.16rem;
  color: var(--green);
  font-size: clamp(0.92rem, 1.45vw, 1.22rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.15;
}

.hero-copy > p,
.signal-copy > p {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-copy > p {
  margin: 0 auto;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  font-weight: 500;
}

.hero-showcase {
  width: min(1040px, 96vw);
  display: grid;
  grid-template-columns: minmax(420px, 1.12fr) minmax(300px, 0.88fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  margin-top: -24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(23, 33, 31, 0.18);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.7);
  color: var(--ink);
}

.hero-image-space {
  width: 100%;
  min-height: clamp(360px, 48vw, 650px);
  background: transparent;
}

.hero-image-space img {
  width: 100%;
  max-height: 650px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.hero-stat-stack {
  display: grid;
  gap: 16px;
}

.hero-stat-card {
  min-height: 142px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 18%, rgba(193, 219, 243, 0.42), transparent 35%),
    radial-gradient(circle at 88% 16%, rgba(242, 223, 170, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(237, 242, 236, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 18px 50px rgba(36, 45, 42, 0.08);
}

.hero-stat-card strong {
  color: var(--green);
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 0.95;
}

.hero-stat-card span {
  color: var(--ink);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  font-weight: 700;
  line-height: 1.22;
}

.payer-marquee-label {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.payer-marquee-break {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.46);
  overflow: hidden;
}

.payer-marquee {
  position: relative;
  height: 96px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.payer-marquee::before,
.payer-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 2;
  width: 13vw;
  height: 100%;
  pointer-events: none;
}

.payer-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper), rgba(247, 244, 237, 0));
}

.payer-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper), rgba(247, 244, 237, 0));
}

.payer-track {
  display: flex;
  width: max-content;
  animation: payer-marquee 38s linear infinite;
  will-change: transform;
}

.payer-logo-group {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
}

.payer-logo {
  width: auto;
  height: 32px;
  display: block;
  filter: grayscale(1);
  opacity: 0.32;
  object-fit: contain;
}

.payer-logo-small {
  height: 24px;
}

.payer-logo-tiny {
  height: 18px;
}

@keyframes payer-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.hero-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.panel-topline,
.claim-card,
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-topline {
  min-height: 48px;
  padding: 0 8px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel-topline strong {
  color: var(--green);
}

.claim-card {
  min-height: 108px;
  margin-top: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.claim-card.active {
  background: #eaf3ef;
  border-color: rgba(31, 107, 85, 0.25);
}

.claim-label,
.metric-row span,
.note-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.claim-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
}

.confidence {
  color: var(--green);
  font-size: 1.3rem;
  font-weight: 800;
}

.workflow,
.security,
.review {
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.payer-marquee-break + .workflow {
  border-top: 0;
}

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

.feature-stack {
  display: grid;
  gap: 26px;
  margin-top: 34px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 30px;
  align-items: center;
  padding: 30px;
}

.feature-row.reverse {
  grid-template-columns: minmax(360px, 1.08fr) minmax(0, 0.92fr);
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-tag {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.feature-copy h3 {
  margin-bottom: 10px;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.08;
}

.feature-copy p:last-child {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.65;
}

.diagram-panel {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 16%, rgba(193, 219, 243, 0.48), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(242, 223, 170, 0.3), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(237, 242, 236, 0.6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  overflow: hidden;
  padding: 26px;
}

.media-placeholder {
  min-height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background:
    radial-gradient(circle at 15% 18%, rgba(193, 219, 243, 0.45), transparent 26%),
    radial-gradient(circle at 80% 18%, rgba(242, 223, 170, 0.28), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(237, 242, 236, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.media-frame {
  overflow: hidden;
  padding: 0;
}

.feature-media {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
}

.billi-node,
.loop-card,
.insurance-card,
.outcome-card,
.issue-card,
.insight-card,
.metric-cloud span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 14px 34px rgba(36, 45, 42, 0.08);
}

.billi-node {
  width: 120px;
  min-height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
}

.face-node {
  width: 82px;
  min-height: 82px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.face-node img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.payment-diagram .face-node {
  width: 106px;
  min-height: 106px;
}

.hub-spoke .face-node {
  width: 88px;
  min-height: 88px;
}

.flow-line {
  width: 2px;
  min-height: 42px;
  margin: 10px auto;
  background: linear-gradient(180deg, var(--line), rgba(31, 107, 85, 0.46));
}

.payment-diagram {
  display: grid;
  align-content: center;
  gap: 0;
}

.insurance-card {
  width: min(220px, 100%);
  min-height: 112px;
  margin: 0 auto;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(49, 95, 140, 0.14), rgba(31, 107, 85, 0.08)),
    rgba(255, 253, 248, 0.94);
}

.insurance-card span,
.insurance-card small,
.outcome-card small,
.insight-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.insurance-card strong {
  display: block;
  margin: 8px 0;
  font-size: 1.28rem;
}

.split-lines {
  width: min(340px, 74%);
  height: 50px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
}

.split-lines span {
  width: 2px;
  height: 52px;
  background: rgba(31, 107, 85, 0.35);
  transform-origin: top;
}

.split-lines span:first-child {
  transform: rotate(28deg);
}

.split-lines span:last-child {
  transform: rotate(-28deg);
}

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

.outcome-card {
  min-height: 116px;
  padding: 16px 14px;
}

.outcome-card strong {
  display: block;
  margin: 14px 0 2px;
}

.status-icon {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(31, 107, 85, 0.12);
}

.status-icon.check::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 8px;
  height: 14px;
  border: solid var(--green);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.status-icon.flag {
  border-radius: 7px;
  background: rgba(197, 141, 53, 0.15);
}

.status-icon.flag::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 2px;
  height: 17px;
  background: var(--gold);
}

.status-icon.flag::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  width: 12px;
  height: 9px;
  border-radius: 2px 5px 5px 2px;
  background: var(--gold);
}

.recovery-diagram {
  min-height: 560px;
}

.loop-track {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(430px, 70%);
  aspect-ratio: 1;
  border: 2px dashed rgba(31, 107, 85, 0.24);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.stage-group {
  position: absolute;
  z-index: 3;
  width: 220px;
}

.loop-card {
  width: 100%;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  place-items: center;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px;
  color: var(--ink);
  font-weight: 750;
  text-align: center;
}

.stage-outcome {
  position: absolute;
  z-index: 4;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 28px rgba(36, 45, 42, 0.07);
  font-size: 0.52rem;
  line-height: 1;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.stage-outcome span {
  color: #a9433d;
}

.stage-outcome b {
  color: var(--muted);
}

.stage-outcome strong {
  color: var(--green);
}

.stage-claim {
  left: 50%;
  top: 11%;
  transform: translateX(-50%);
}

.stage-outcome {
  left: 50%;
  top: -19px;
  transform: translateX(-50%);
}

.stage-expected {
  right: 5%;
  top: 42%;
}

.stage-received {
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
}

.stage-posted {
  left: 5%;
  top: 42%;
}

.loop-center {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 33%;
  transform: translate(-50%, -50%);
}

.recovery-diagram .face-node {
  width: 118px;
  min-height: 118px;
}

.insight-diagram {
  display: grid;
  align-content: center;
  gap: 16px;
}

.hub-spoke {
  position: relative;
  min-height: 250px;
}

.spoke-svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.spoke-svg path {
  fill: none;
  stroke: rgba(31, 107, 85, 0.34);
  stroke-width: 2;
  stroke-linecap: round;
}

.spoke-svg polygon {
  fill: rgba(31, 107, 85, 0.62);
}

.spoke-card {
  position: absolute;
  z-index: 3;
  min-height: 50px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 12px 30px rgba(36, 45, 42, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.spoke-one {
  left: 4%;
  top: 8%;
  width: 168px;
}

.spoke-two {
  left: 50%;
  top: 0;
  width: 220px;
  transform: translateX(-50%);
}

.spoke-three {
  right: 4%;
  top: 8%;
  width: 140px;
}

.spoke-four {
  left: 17%;
  top: 42%;
  width: 130px;
}

.spoke-five {
  right: 17%;
  top: 42%;
  width: 160px;
}

.hub-node {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
}

.insight-card {
  width: min(300px, 100%);
  margin: 0 auto;
  padding: 18px;
  background: #ffffff;
}

.insight-card strong {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  color: var(--ink);
}

.insight-card b {
  color: var(--green);
}

.feature-copy p,
.security-copy p,
.note-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.security {
  min-height: 230vh;
  padding-bottom: 96px;
}

.security-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 0.85fr);
  gap: 48px;
  align-items: start;
  position: sticky;
  top: 110px;
}

.security-copy {
  max-width: 650px;
  padding-top: 24px;
}

.security-lede {
  margin-top: 22px;
  max-width: 700px;
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  font-weight: 600;
  line-height: 1.58;
}

.vault {
  width: min(520px, 100%);
  min-height: 500px;
  justify-self: end;
  position: relative;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: default;
  perspective: 1400px;
  overflow: visible;
}

.vault::before,
.vault::after {
  content: "";
  position: absolute;
  bottom: 8px;
  width: 72px;
  height: 34px;
  border: 5px solid rgba(23, 33, 31, 0.86);
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #4f5a55, #25312e);
  box-shadow: 0 10px 20px rgba(36, 45, 42, 0.16);
  z-index: 0;
}

.vault::before {
  left: 84px;
}

.vault::after {
  right: 84px;
}

.vault::before,
.vault::after {
  z-index: 2;
}

.vault-case {
  position: relative;
  width: 100%;
  min-height: 450px;
  display: block;
  border: 6px solid rgba(23, 33, 31, 0.9);
  border-radius: 54px;
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 255, 255, 0.9), transparent 30%),
    radial-gradient(circle at 80% 12%, rgba(242, 223, 170, 0.18), transparent 28%),
    linear-gradient(135deg, #eef0e9 0%, #d8ded4 45%, #f7f5ee 100%);
  box-shadow:
    inset 0 0 0 12px rgba(255, 255, 255, 0.58),
    inset 18px 0 26px rgba(31, 47, 43, 0.1),
    inset -14px 0 26px rgba(255, 255, 255, 0.42),
    0 28px 76px rgba(36, 45, 42, 0.12);
  overflow: visible;
  transform-style: preserve-3d;
  z-index: 1;
}

.vault-case::before {
  content: "";
  position: absolute;
  inset: 48px 54px 50px 62px;
  border: 6px solid rgba(23, 33, 31, 0.86);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.16);
  box-shadow:
    inset 0 0 0 8px rgba(31, 47, 43, 0.08),
    0 10px 20px rgba(36, 45, 42, 0.09);
  z-index: 2;
}

.vault-case::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(35deg, transparent 12%, rgba(255, 255, 255, 0.45) 13%, rgba(255, 255, 255, 0.12) 34%, transparent 35%),
    linear-gradient(208deg, transparent 48%, rgba(31, 47, 43, 0.1) 49%, transparent 68%),
    linear-gradient(28deg, transparent 64%, rgba(255, 255, 255, 0.34) 65%, transparent 84%);
  pointer-events: none;
  z-index: 7;
}

.vault-interior {
  position: absolute;
  inset: 62px 70px 66px 82px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 13px;
  padding: 26px;
  border: 1px solid rgba(31, 107, 85, 0.26);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(31, 107, 85, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31, 107, 85, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 24% 16%, rgba(193, 219, 243, 0.58), transparent 30%),
    radial-gradient(circle at 78% 20%, rgba(242, 223, 170, 0.32), transparent 28%),
    linear-gradient(145deg, #fffdf8, #edf2ec);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  box-shadow:
    inset 0 0 34px rgba(31, 107, 85, 0.12),
    inset 0 0 0 8px rgba(255, 255, 255, 0.28);
  z-index: 1;
}

.vault-status {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.security-card {
  min-height: 66px;
  display: flex;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(31, 107, 85, 0.2);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.22;
  box-shadow: 0 12px 30px rgba(36, 45, 42, 0.07);
}

.security-card:last-child {
  grid-column: 1 / -1;
}

.vault-door {
  position: absolute;
  inset: 58px 64px 58px 72px;
  z-index: 5;
  display: block;
  border: 6px solid rgba(23, 33, 31, 0.9);
  border-radius: 24px;
  background:
    linear-gradient(36deg, transparent 18%, rgba(255, 255, 255, 0.34) 19%, rgba(255, 255, 255, 0.1) 38%, transparent 39%),
    linear-gradient(146deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0) 30%),
    linear-gradient(145deg, #e9ebe3 0%, #cfd7cb 48%, #f4f1e8 100%);
  box-shadow:
    inset 0 0 0 8px rgba(31, 47, 43, 0.08),
    inset 12px 0 28px rgba(31, 47, 43, 0.09),
    8px 10px 22px rgba(23, 33, 31, 0.14);
  transform: translateX(var(--door-open-x, 0px)) rotateY(var(--door-open-rotate, 0deg));
  transform-origin: left center;
  transition: box-shadow 220ms ease;
}

.vault.is-open .vault-door {
  box-shadow:
    inset 0 0 0 8px rgba(31, 47, 43, 0.08),
    28px 0 44px rgba(23, 33, 31, 0.22);
}

.vault-shine {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(28deg, transparent 16%, rgba(255, 255, 255, 0.4) 17%, transparent 40%),
    linear-gradient(204deg, transparent 56%, rgba(23, 33, 31, 0.08) 57%, transparent 74%);
  pointer-events: none;
}

.vault-wheel {
  position: absolute;
  left: 52%;
  top: 47%;
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  border: 7px solid rgba(23, 33, 31, 0.88);
  border-radius: 50%;
  background:
    radial-gradient(circle, #fbf9f1 0 12%, #cbd0c7 13% 22%, #22302d 23% 30%, transparent 31%),
    conic-gradient(from 18deg, #66726b, #eef0e7, #889289, #d8dbd1, #5d6962, #66726b);
  transform: translate(-50%, -50%) rotate(var(--wheel-rotate, 0deg));
  box-shadow:
    0 14px 24px rgba(36, 45, 42, 0.16),
    inset 0 0 0 10px rgba(255, 255, 255, 0.42);
  transition: none;
}

.vault-wheel span {
  position: absolute;
  width: 78px;
  height: 6px;
  border-radius: 999px;
  background: rgba(23, 33, 31, 0.84);
}

.vault-wheel span:nth-child(2) {
  transform: rotate(45deg);
}

.vault-wheel span:nth-child(3) {
  transform: rotate(90deg);
}

.vault-wheel span:nth-child(4) {
  transform: rotate(135deg);
}

.vault-keyhole {
  position: absolute;
  right: 70px;
  bottom: 84px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--ink);
}

.vault-keyhole::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  width: 10px;
  height: 24px;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.vault-hinge {
  position: absolute;
  left: 42px;
  width: 32px;
  height: 74px;
  border: 6px solid rgba(23, 33, 31, 0.88);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.45), transparent 45%),
    #d8ded4;
  box-shadow: 0 10px 20px rgba(36, 45, 42, 0.12);
  z-index: 6;
}

.vault-hinge-top {
  top: 112px;
}

.vault-hinge-bottom {
  bottom: 112px;
}

.review-shell {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 0;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(36, 45, 42, 0.07);
}

.review-shell aside {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border-right: 1px solid var(--line);
  background: rgba(23, 33, 31, 0.04);
}

.tab {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.tab.is-active,
.tab:hover {
  background: #ffffff;
  color: var(--ink);
}

.review-body {
  padding: 22px;
}

.metric-row {
  align-items: stretch;
}

.metric-row div {
  flex: 1;
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-row strong {
  display: block;
  margin-top: 12px;
  font-size: 1.35rem;
}

.note-card {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid rgba(183, 95, 89, 0.22);
  border-radius: 8px;
  background: rgba(183, 95, 89, 0.08);
}

.note-card p {
  margin-top: 8px;
}

.action-section {
  display: flex;
  justify-content: center;
}

.standalone-action {
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 58px 0 78px;
}

.action-panel {
  width: min(720px, 100%);
  padding: 36px 34px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 14%, rgba(193, 219, 243, 0.36), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(242, 223, 170, 0.22), transparent 24%),
    rgba(255, 253, 248, 0.76);
  box-shadow: 0 22px 70px rgba(36, 45, 42, 0.08);
}

.action-panel .section-heading {
  max-width: 620px;
  margin-bottom: 26px;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-success {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(31, 107, 85, 0.24);
  border-radius: 8px;
  background: rgba(31, 107, 85, 0.09);
  color: var(--green);
  font-weight: 800;
}

.contact-form label {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 15px 16px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(31, 107, 85, 0.36);
  box-shadow: 0 0 0 3px rgba(31, 107, 85, 0.09);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.thanks-panel {
  text-align: center;
}

.thanks-panel .section-heading {
  margin-right: auto;
  margin-left: auto;
}

.billi-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(34px, 5vw, 62px) max(24px, calc((100vw - 1180px) / 2)) clamp(30px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(49, 95, 140, 0.14), transparent 36%),
    linear-gradient(225deg, rgba(197, 141, 53, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(237, 242, 236, 0.76));
  overflow: hidden;
}

.footer-mark {
  border-top: 1px solid rgba(23, 33, 31, 0.12);
  border-bottom: 1px solid rgba(23, 33, 31, 0.12);
  padding: clamp(12px, 3vw, 28px) 0;
}

.footer-mark span {
  display: block;
  color: rgba(23, 33, 31, 0.1);
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(7rem, 22vw, 18rem);
  font-weight: 600;
  line-height: 0.8;
  text-align: center;
}

@media (max-width: 860px) {
  .page-header {
    min-height: 82px;
  }

  .brand {
    width: 132px;
  }

  .nav {
    gap: 4px;
    padding: 4px;
  }

  .nav a {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 0.82rem;
  }

  .hero,
  .security-stage {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 10px;
  }

  .hero-image-space {
    min-height: 0;
  }

  .hero-image-space img {
    max-height: 520px;
    object-position: center;
  }

  .hero-stat-stack {
    width: min(560px, 100%);
    margin: 0 auto;
  }

  .hero-stat-card {
    min-height: 112px;
  }

  .payer-marquee {
    height: 76px;
  }

  .payer-logo-group {
    gap: 48px;
    padding-right: 48px;
  }

  .metric-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .feature-row.reverse .feature-copy {
    order: 0;
  }

  .media-placeholder {
    min-height: 300px;
  }

  .recovery-diagram {
    min-height: 620px;
  }

  .loop-track {
    width: min(390px, 78%);
  }

  .stage-group {
    width: 190px;
  }

  .stage-expected {
    right: 3%;
  }

  .stage-received {
    left: 50%;
    bottom: 11%;
  }

  .stage-posted {
    left: 3%;
    top: 42%;
    bottom: auto;
  }

  .hub-spoke {
    min-height: 310px;
  }

  .spoke-card {
    min-height: 46px;
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  .spoke-one {
    left: 0;
    width: 138px;
  }

  .spoke-two {
    width: 176px;
  }

  .spoke-three {
    right: 0;
    width: 116px;
  }

  .spoke-four {
    left: 8%;
    top: 40%;
    width: 112px;
  }

  .spoke-five {
    right: 8%;
    top: 40%;
    width: 130px;
  }

  .feature-media {
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .security-stage {
    position: relative;
    top: auto;
  }

  .vault {
    justify-self: center;
    min-height: 460px;
  }

  .vault-case {
    min-height: 430px;
  }

  .vault-wheel {
    width: 108px;
    height: 108px;
  }

  .vault-wheel span {
    width: 70px;
  }

  .review-shell {
    grid-template-columns: 1fr;
  }

  .review-shell aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tab {
    text-align: center;
  }
}

@media (max-width: 520px) {
  :root {
    --container: min(100vw - 22px, 1180px);
  }

  h1 {
    font-size: 4.2rem;
  }

  .hero-stat-card {
    min-height: 96px;
    padding: 18px;
  }

  .payer-marquee {
    height: 66px;
  }

  .payer-logo-group {
    gap: 34px;
    padding-right: 34px;
  }

  .payer-logo {
    height: 26px;
  }

  .payer-logo-small {
    height: 20px;
  }

  .payer-logo-tiny {
    height: 15px;
  }

  .security {
    padding: 58px 0;
    min-height: auto;
  }

  .vault {
    min-height: 450px;
  }

  .vault-case {
    min-height: 410px;
  }

  .vault-interior {
    inset: 34px 22px 30px 38px;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 18px;
  }

  .security-card {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .vault-door {
    inset: 28px 28px 28px 42px;
  }

  .vault-wheel {
    width: 84px;
    height: 84px;
    border-width: 6px;
  }

  .vault-wheel span {
    width: 54px;
    height: 4px;
  }

  .vault-keyhole {
    right: 34px;
    bottom: 56px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .claim-card,
  .panel-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-shell aside {
    grid-template-columns: 1fr;
  }
}
