/* ============================================
   HEALTHBILLS MICROSITE
   A calmer layer on top of shared.css.
   Same brand DNA, dialed way back: cream reading
   surfaces, minimal rotation, generous measure.
   ============================================ */

/* ---- Reading surfaces ------------------------------------ */
.sheet {
  background: var(--cream);
  color: #2a1a3e;
}

.sheet--dark {
  background: var(--deep-purple);
  color: var(--cream);
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.wrap--wide { max-width: 880px; }

@media (min-width: 768px) {
  .wrap { padding: 5.5rem 2rem; }
}

/* ---- Type rhythm ----------------------------------------- */
.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 1.1rem;
}

.sheet--dark .eyebrow { color: var(--salmon); }

h1.head, h2.head, .head {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--deep-purple);
}

.sheet--dark .head { color: var(--cream); }

h1.head { font-size: clamp(34px, 7vw, 60px); }
h2.head { font-size: clamp(26px, 5vw, 42px); }

.head em {
  font-style: normal;
  color: var(--coral);
}

.lede {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(17px, 2.3vw, 21px);
  line-height: 1.55;
  color: #4a3a5e;
  margin-top: 1.4rem;
  max-width: 38ch;
}

.sheet--dark .lede { color: rgba(250, 245, 239, 0.78); }

.prose p {
  font-size: 17px;
  line-height: 1.7;
  color: #3a2a4e;
  margin-top: 1.1rem;
}

.prose p:first-child { margin-top: 0; }

.prose strong { color: var(--deep-purple); font-weight: 700; }
.sheet--dark .prose strong,
.sheet--dark .lede strong { color: var(--salmon); }

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 0.6rem;
}

.subhead {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 3.5vw, 28px);
  text-transform: uppercase;
  color: var(--deep-purple);
  line-height: 1.05;
  margin: 3.5rem 0 0.4rem;
}

/* ---- Citation chips (receipts-first) --------------------- */
.cite {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-family: 'Space Mono', monospace;
  font-size: 0.72em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--magenta);
  text-decoration: none;
  border-bottom: 1px dotted rgba(155, 77, 202, 0.5);
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.cite::after { content: '↗'; font-size: 0.85em; opacity: 0.7; }

.cite:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.sheet--dark .cite { color: var(--salmon); border-color: rgba(244, 132, 95, 0.5); }
.sheet--dark .cite:hover { color: var(--hot-pink); border-color: var(--hot-pink); }

/* A small inline source line under a claim block */
.source-line {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #8a6a9e;
  margin-top: 0.5rem;
  line-height: 1.6;
}
.source-line a { color: var(--magenta); }
.source-line a:hover { color: var(--coral); }

/* ---- Hero ------------------------------------------------ */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--midnight) 0%, #160a28 45%, #241046 100%);
  padding: 6rem 1.5rem 3.5rem;
  overflow: hidden;
}

.hero__inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }

.hero__eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--salmon);
  margin-bottom: 1.3rem;
}

.hero__title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 9vw, 86px);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--cream);
}

.hero__title em { font-style: normal; color: var(--coral); }

.hero__sub {
  font-family: 'IBM Plex Mono', monospace;
  font-style: italic;
  font-size: clamp(14px, 2.2vw, 19px);
  line-height: 1.6;
  color: rgba(250, 245, 239, 0.72);
  margin-top: 1.6rem;
  max-width: 46ch;
}

.hero__scrawl {
  font-family: 'Rock Salt', cursive;
  font-size: clamp(11px, 1.6vw, 14px);
  color: var(--hot-pink);
  opacity: 0.7;
  margin-top: 1.4rem;
}

@media (min-width: 768px) {
  .hero { padding: 7rem 2rem 4.5rem; }
}

/* ---- Door grid (index) ----------------------------------- */
.doorset {
  display: grid;
  gap: 1.1rem;
  max-width: 780px;
  margin: 0 auto;
}

.door {
  display: block;
  position: relative;
  padding: 1.6rem 3.5rem 1.6rem 5.9rem;
  background: white;
  border-left: 5px solid var(--coral);
  box-shadow: 6px 6px 0 rgba(26, 10, 46, 0.07);
  text-decoration: none;
  color: var(--deep-purple);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.door:nth-child(2) { border-left-color: var(--magenta); }
.door:nth-child(3) { border-left-color: var(--hot-pink); }
.door:nth-child(4) { border-left-color: var(--salmon); }

.door:hover {
  transform: translateY(-3px);
  box-shadow: 10px 10px 0 rgba(26, 10, 46, 0.11);
}

.door__num {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 27px;
  color: var(--coral);
  opacity: 0.85;
}
.door:nth-child(2) .door__num { color: var(--magenta); }
.door:nth-child(3) .door__num { color: var(--hot-pink); }
.door:nth-child(4) .door__num { color: var(--salmon); }

.door__title {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 4vw, 24px);
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--deep-purple);
  transition: color 0.15s ease;
}

.door:hover .door__title { color: var(--coral); }

.door__teaser {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-style: italic;
  font-size: 14px;
  color: #7a5a8e;
  margin-top: 0.4rem;
  padding-right: 0.5rem;
}

.door__arrow {
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  color: var(--coral);
  transition: transform 0.18s ease;
}
.door:hover .door__arrow { transform: translateY(-50%) translateX(5px); }

@media (max-width: 480px) {
  .door { padding: 1.3rem 1.6rem 1.3rem 4.4rem; }
  .door__num { font-size: 23px; left: 1.1rem; }
  .door__arrow { display: none; }
}

/* ---- EOB decoder (centerpiece) --------------------------- */
.decoder {
  max-width: 560px;
  margin: 2.5rem auto 0;
  background: white;
  border: 2px solid var(--deep-purple);
  box-shadow: 9px 9px 0 rgba(155, 77, 202, 0.18);
}

.decoder__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 1.3rem;
  background: var(--deep-purple);
  color: var(--cream);
}

.decoder__head-title {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.decoder__head-meta {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(250, 245, 239, 0.5);
}

.decoder__rows { padding: 0.4rem 1.3rem; }

.drow {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px dashed rgba(155, 77, 202, 0.25);
  transition: opacity 0.4s ease;
}
.drow:last-child { border-bottom: none; }

.drow__label {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--deep-purple);
}

.drow__amount {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 4vw, 22px);
  color: var(--deep-purple);
  white-space: nowrap;
}

.drow__note {
  grid-column: 1 / -1;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #6a4a7e;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.3s ease;
}

.drow__tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  margin-top: 0.5rem;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.drow__tag--fake { background: rgba(232, 85, 109, 0.15); color: var(--coral); border: 1px solid rgba(232, 85, 109, 0.4); }
.drow__tag--real { background: rgba(76, 175, 80, 0.14); color: #2e7d32; border: 1px solid rgba(76, 175, 80, 0.4); }

/* The total row */
.drow--total {
  background: rgba(241, 91, 181, 0.06);
  margin: 0 -1.3rem;
  padding: 1.1rem 1.3rem;
}
.drow--total .drow__label { font-family: 'Syne', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 17px; }
.drow--total .drow__amount { color: var(--coral); font-size: clamp(22px, 5vw, 28px); }

/* Decoded state */
.decoder.is-decoded .drow--fake { opacity: 0.42; }
.decoder.is-decoded .drow--fake .drow__amount { text-decoration: line-through; text-decoration-color: var(--coral); }
.decoder.is-decoded .drow__note { max-height: 140px; opacity: 1; margin-top: 0.5rem; }
.decoder.is-decoded .drow__tag { opacity: 1; }

.decoder__toggle {
  width: 100%;
  border: none;
  border-top: 2px solid var(--deep-purple);
  background: var(--coral);
  color: white;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.decoder__toggle:hover { background: var(--hot-pink); }
.decoder__toggle:focus-visible { outline: 3px solid var(--magenta); outline-offset: -3px; }

/* Itemized charge detail (realistic receipt) */
.decoder__items-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--magenta);
  padding: 0.9rem 1.3rem 0.3rem;
}

.decoder__items {
  padding: 0 1.3rem 0.6rem;
}

.ditem {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'Space Mono', monospace;
  font-size: 12.5px;
  color: #5e4a72;
  padding: 0.32rem 0;
  line-height: 1.35;
}
.ditem span:last-child { white-space: nowrap; }

.ditem--sum {
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(155, 77, 202, 0.3);
  color: var(--deep-purple);
  font-weight: 700;
}

.decoder.is-decoded .decoder__items { opacity: 0.5; transition: opacity 0.4s ease; }
.decoder.is-decoded .ditem--sum span:last-child { text-decoration: line-through; text-decoration-color: var(--coral); }

/* Deductible / coinsurance sub-lines inside the total row */
.dsub {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #6a4a7e;
  padding: 0.15rem 0 0 1rem;
}
.dsub span:first-child::before { content: '\00b7\00a0'; opacity: 0.6; }

/* ---- Insured vs. uninsured split --------------------------- */
.split {
  display: grid;
  gap: 1.2rem;
  margin: 2.2rem 0 1.5rem;
}
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; } }

.split__col {
  background: white;
  border-top: 5px solid var(--magenta);
  padding: 1.5rem 1.6rem 1.7rem;
  box-shadow: 6px 6px 0 rgba(26, 10, 46, 0.18);
}
.split__col--cash { border-top-color: var(--coral); }

.split__tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.35rem;
}
.split__col--cash .split__tag { color: var(--coral); }

.split__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 3vw, 21px);
  text-transform: uppercase;
  color: var(--deep-purple);
  line-height: 1.05;
  margin-bottom: 0.8rem;
}

.split__lead {
  font-size: 14.5px;
  line-height: 1.55;
  color: #4a3a5e;
  margin-bottom: 0.5rem;
}
.split__lead strong { color: var(--deep-purple); font-weight: 700; }

.split__list { list-style: none; margin-top: 0.3rem; }
.split__list li {
  font-size: 14.5px;
  line-height: 1.5;
  color: #3a2a4e;
  padding-left: 1.3rem;
  position: relative;
  margin-top: 0.5rem;
}
.split__list li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--magenta);
  font-weight: 700;
}
.split__col--cash .split__list li::before { color: var(--coral); }

/* ---- Callout boxes --------------------------------------- */
.callout {
  margin: 2.2rem 0;
  padding: 1.4rem 1.6rem;
  background: white;
  border-left: 4px solid var(--magenta);
  box-shadow: 5px 5px 0 rgba(26, 10, 46, 0.06);
}

.callout__label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.5rem;
}

.callout p { font-size: 15.5px; line-height: 1.6; color: #3a2a4e; }
.callout strong { color: var(--deep-purple); }

.callout--warn { border-left-color: var(--coral); }
.callout--warn .callout__label { color: var(--coral); }

.callout--key {
  background: var(--deep-purple);
  border-left-color: var(--hot-pink);
}
.callout--key .callout__label { color: var(--hot-pink); }
.callout--key p { color: rgba(250, 245, 239, 0.85); }
.callout--key strong { color: var(--cream); }

/* ---- Big stat -------------------------------------------- */
.bigstat {
  text-align: center;
  margin: 3rem auto;
  max-width: 520px;
}
.bigstat__num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(56px, 14vw, 110px);
  line-height: 0.85;
  color: var(--coral);
}
.sheet--dark .bigstat__num { color: var(--salmon); }
.bigstat__cap {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #6a4a7e;
  margin-top: 0.9rem;
}
.sheet--dark .bigstat__cap { color: rgba(250, 245, 239, 0.65); }

/* ---- Step list (playbook) -------------------------------- */
.steps { counter-reset: step; margin-top: 2rem; }

.step {
  position: relative;
  padding: 0 0 2rem 3.4rem;
  border-left: 2px solid rgba(155, 77, 202, 0.3);
  margin-left: 1rem;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -1.05rem;
  top: -0.3rem;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--coral);
  color: white;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15px;
  border-radius: 50%;
}

.step__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(17px, 3vw, 21px);
  text-transform: uppercase;
  color: var(--deep-purple);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.step p { font-size: 15.5px; line-height: 1.65; color: #3a2a4e; }
.step p + p { margin-top: 0.6rem; }

/* ---- Link-out cards (hospital FAPs, help) ---------------- */
.linkcard {
  display: block;
  padding: 1.1rem 1.3rem;
  background: white;
  border: 1.5px solid rgba(155, 77, 202, 0.25);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
  margin-top: 0.9rem;
}
.linkcard:hover { border-color: var(--coral); transform: translateY(-2px); }
.linkcard__name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--deep-purple);
}
.linkcard__detail {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #5a4a6e;
  margin-top: 0.25rem;
}
.linkcard__phone { font-family: 'Space Mono', monospace; color: var(--magenta); }

/* ---- Big CTA band (end of guide) ------------------------- */
.cta-block {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2d1150, var(--deep-purple));
  padding: 4rem 1.5rem 4.5rem;
  text-align: center;
}
.cta-block__inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-block__kicker {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--salmon);
  margin-bottom: 1rem;
}
.cta-block__title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 6vw, 52px);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.cta-block__sub {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.5;
  color: rgba(250, 245, 239, 0.7);
  margin: 1rem auto 0;
  max-width: 34ch;
}
.cta-block__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2.2rem;
}
@media (min-width: 768px) { .cta-block { padding: 5rem 2rem 5.5rem; } }

/* ---- Datestamp ------------------------------------------- */
.datestamp {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: #9a7aae;
  text-align: center;
  padding: 2rem 1.5rem 0;
}
.sheet--dark .datestamp { color: rgba(250, 245, 239, 0.4); }

/* ---- Home / back link ------------------------------------ */
.home-link {
  position: absolute;
  top: 46px;
  left: 1.5rem;
  z-index: 10;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.4;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.home-link:hover { opacity: 0.9; color: var(--salmon); }
