/* ============================================================================
   Foreword — a product of Heimdall Technologies LLC
   Cache-busted filename: this is v2. The old /assets/styles.css is dead.
   ----------------------------------------------------------------------------
   TYPE: Archivo carries everything structural — a grotesque with real weight
   range, pushed hard and tight. Newsreader appears in exactly ONE place: the
   resident's own words. A traditional nurse call emits a mechanical signal;
   Foreword delivers a human sentence. You should feel that before reading.
   ========================================================================== */

:root {
  --ink:    #051F24;
  --ink-2:  #0A343B;
  --slate:  #52757A;
  --teal:   #04808F;
  --mint:   #19E3B1;
  --coral:  #FF6B4A;
  --paper:  #F1F6F6;
  --white:  #FFFFFF;
  --line:   #DCE8E9;
  --tint:   #E4F4F2;

  --grot: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --voice: "Newsreader", Georgia, serif;
  --wrap: 1160px;
  --gap: clamp(5rem, 9vw, 9rem);
}
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation: none !important; transition: none !important }
}
body {
  margin: 0; font-family: var(--grot); font-size: 17.5px; line-height: 1.62;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--grot); margin: 0; line-height: 1.02; letter-spacing: -.04em; font-weight: 800 }
h1 { font-size: clamp(2.7rem, 6.6vw, 5rem) }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -.038em }
h3 { font-size: 1.24rem; letter-spacing: -.018em; font-weight: 700; line-height: 1.28 }
p { margin: 0 0 1.05rem }
a { color: var(--teal); text-underline-offset: 3px }
strong { font-weight: 700 }
:focus-visible { outline: 2.5px solid var(--mint); outline-offset: 3px; border-radius: 5px }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem }
.band { padding: var(--gap) 0 }
.band-tint { background: var(--paper) }
.band-dark { background: var(--ink); color: #B6D3D5; position: relative; overflow: hidden }
.band-dark h2, .band-dark h3, .band-dark h4 { color: var(--white) }
.band-dark a { color: var(--mint) }
.narrow { max-width: 800px }

/* Flash: a slow mint bloom behind dark bands. Ambient, not decorative — it's
   the only light in the room at 3am. */
.band-dark::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 130%;
  background: radial-gradient(60% 50% at 20% 0%, rgba(25,227,177,.13), transparent 70%);
  pointer-events: none;
}
.band-dark > .wrap { position: relative; z-index: 1 }

.eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin: 0 0 1.1rem }
.band-dark .eyebrow { color: var(--mint) }
.lede { font-size: 1.26rem; line-height: 1.55; color: var(--slate); max-width: 64ch }
.band-dark .lede { color: #93B7BA }
.fine { font-size: .84rem; color: var(--slate); max-width: 76ch; line-height: 1.55 }
.band-dark .fine { color: #6E9296 }
.hl { color: var(--teal); font-weight: 700 }
.band-dark .hl { color: var(--mint) }

/* ── Masthead ─────────────────────────────────────────────────────────── */
.masthead { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.7) blur(14px); border-bottom: 1px solid var(--line) }
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.5rem; max-width: var(--wrap); margin: 0 auto }
.wordmark { font-size: 1.36rem; font-weight: 800; letter-spacing: -.055em; color: var(--ink); text-decoration: none }
.wordmark::after { content: "."; color: var(--mint) }
.nav { display: flex; align-items: center; gap: 1.45rem }
/* :not(.btn) matters. `.nav a` (0-1-1) out-specifies `.btn-solid` (0-1-0), so
   without it the nav repaints the CTA's text and you get ink-on-teal — or,
   on the CTA's own page, teal-on-teal and an invisible button. Both shipped. */
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; letter-spacing: -.01em; position: relative }
.nav a.btn { text-decoration: none }
.nav a:not(.btn):hover { color: var(--teal) }
/* Current page: a rule under it, NOT a colour change — the CTA is a link too,
   and recolouring its text made teal-on-teal. That bug shipped once. */
.nav a:not(.btn)[aria-current="page"] { color: var(--teal) }
.nav a:not(.btn)[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--mint); border-radius: 2px;
}
.navtoggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 9px; padding: .5rem .7rem; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 700; color: var(--ink) }

.btn { display: inline-block; font-family: var(--grot); font-size: .95rem; font-weight: 700; padding: .8rem 1.45rem; border-radius: 10px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; letter-spacing: -.015em; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease }
.btn-solid { background: var(--teal); color: var(--white); box-shadow: 0 4px 14px rgba(4,128,143,.28) }
.btn-solid:hover { background: #036e7c; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(4,128,143,.34) }
.btn-mint { background: var(--mint); color: #032B24; box-shadow: 0 4px 18px rgba(25,227,177,.35) }
.btn-mint:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(25,227,177,.45) }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line) }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px) }
.band-dark .btn-ghost, .hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.3) }
.band-dark .btn-ghost:hover, .hero .btn-ghost:hover { border-color: var(--mint); color: var(--mint) }
.btn-lg { font-size: 1.05rem; padding: .98rem 1.9rem }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { background: var(--ink); color: #B6D3D5; padding: clamp(4rem,8vw,6.5rem) 0 clamp(4.5rem,8vw,7rem); position: relative; overflow: hidden }
.hero::before {
  content: ""; position: absolute; inset: -30% -20% auto -20%; height: 150%;
  background: radial-gradient(55% 55% at 15% 5%, rgba(25,227,177,.17), transparent 68%),
              radial-gradient(45% 45% at 85% 10%, rgba(4,128,143,.28), transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1 }
.hero h1 { color: var(--white); max-width: 17ch }
.hero .lede { color: #93B7BA; margin-top: 1.5rem; font-size: 1.32rem }
.hero .eyebrow { color: var(--mint) }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2.4rem }

/* ── SIGNATURE: call cards ────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 3.5rem }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr } }
.callcard { border-radius: 18px; padding: 1.6rem; display: flex; flex-direction: column; min-height: 250px }
.callcard-head { display: flex; align-items: center; justify-content: space-between; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding-bottom: .9rem; margin-bottom: 1.2rem }
.callcard-room { font-size: 1rem; font-weight: 700; letter-spacing: -.02em }
.cc-old { background: rgba(255,255,255,.03); border: 1px solid rgba(255,107,74,.3) }
.cc-old .callcard-head { color: #C98878; border-bottom: 1px solid rgba(255,255,255,.08) }
.cc-old .callcard-room { color: #D5E7E8 }
.cc-new { background: var(--white); border: 1px solid rgba(25,227,177,.5); box-shadow: 0 24px 64px rgba(25,227,177,.22) }
.cc-new .callcard-head { color: var(--slate); border-bottom: 1px solid var(--line) }
.cc-new .callcard-room { color: var(--ink) }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: .45rem; vertical-align: middle }
.dot-coral { background: var(--coral); animation: pulse 1.25s ease-in-out infinite }
.dot-mint { background: var(--mint); box-shadow: 0 0 0 3px rgba(25,227,177,.25) }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .2 } }
.said { font-family: var(--voice); font-size: 1.5rem; line-height: 1.32; color: var(--ink); margin: 0 0 1rem; letter-spacing: -.005em }
.said::before { content: "\201C" } .said::after { content: "\201D" }
.said-sm { font-size: 1.16rem }
.nothing { font-family: var(--voice); font-style: italic; font-size: 1.14rem; color: #97756D; margin: 0 }
.callcard-foot { margin-top: auto; padding-top: 1rem }
.tag { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .32rem .68rem; border-radius: 6px }
.tag-mint { background: var(--tint); color: #026B6B }
.tag-coral { background: rgba(255,107,74,.15); color: #FF8E74 }

/* ── Grids ────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.2rem; margin-top: 3rem }
.g2 { grid-template-columns: repeat(2,1fr) } .g3 { grid-template-columns: repeat(3,1fr) } .g4 { grid-template-columns: repeat(4,1fr) }
@media (max-width: 940px) { .g3,.g4 { grid-template-columns: repeat(2,1fr) } }
@media (max-width: 620px) { .g2,.g3,.g4 { grid-template-columns: 1fr } }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.7rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease }
.panel:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(5,31,36,.09); border-color: #C6DCDE }
.panel h3 { margin-bottom: .45rem }
.panel p { color: var(--slate); font-size: .96rem; margin: 0 }
.panel p + p { margin-top: .7rem }
.band-dark .panel { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12) }
.band-dark .panel:hover { border-color: rgba(25,227,177,.4); box-shadow: 0 14px 44px rgba(0,0,0,.3) }
.band-dark .panel p { color: #93B7BA }
.panel-flat, .panel-flat:hover { border: none; background: transparent; padding: 0; transform: none; box-shadow: none }

.num { font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: var(--teal); margin-bottom: .85rem; display: block }
.band-dark .num { color: var(--mint) }
.stat { font-size: 3.1rem; font-weight: 800; letter-spacing: -.05em; color: var(--teal); line-height: 1 }
.band-dark .stat { color: var(--mint) }

/* ── Privacy ladder ───────────────────────────────────────────────────── */
.ladder { margin-top: 2.5rem; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--white); box-shadow: 0 10px 40px rgba(5,31,36,.06) }
.rung { display: grid; grid-template-columns: 220px 1fr 150px; gap: 1.25rem; padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--line); align-items: center; transition: background .16s ease }
.rung:hover { background: var(--paper) }
.rung:last-child { border-bottom: none }
.rung h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em }
.rung p { margin: 0; font-size: .94rem; color: var(--slate) }
.rung-falls { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #026B6B; background: var(--tint); padding: .4rem .6rem; border-radius: 6px; text-align: center; white-space: nowrap }
@media (max-width: 820px) { .rung { grid-template-columns: 1fr; gap: .5rem } .rung-falls { justify-self: start } }

/* ── Table ────────────────────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; margin-top: 2.5rem; font-size: .96rem }
.tbl th, .tbl td { padding: .95rem 1rem; text-align: left; border-bottom: 1px solid var(--line) }
.tbl thead th { font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--slate) }
.tbl tbody tr:hover { background: var(--paper) }
.tbl td.mid, .tbl th.mid { text-align: center; width: 150px }
.yes { color: var(--teal); font-weight: 800 } .no { color: #BFD0D2 }

/* ── Steps ────────────────────────────────────────────────────────────── */
.steps { counter-reset: s; margin-top: 2.6rem; display: grid; gap: 1rem }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 1.1rem; align-items: start }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: #026B6B; font-weight: 800; font-size: 1rem }
.band-dark .step::before { background: rgba(25,227,177,.14); color: var(--mint) }
.step h3 { margin-bottom: .3rem }
.step p { color: var(--slate); margin: 0; font-size: .97rem }
.band-dark .step p { color: #93B7BA }

/* ── Form ─────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 1.1rem; max-width: 560px }
.field label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .4rem }
.field input, .field textarea, .field select { width: 100%; font-family: var(--grot); font-size: 1rem; color: var(--ink); padding: .85rem .9rem; border: 1.5px solid var(--line); border-radius: 11px; background: var(--white) }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(4,128,143,.16) }
.field textarea { min-height: 130px; resize: vertical }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.formnote { font-size: .86rem; color: var(--slate) }
.formmsg { padding: .9rem 1rem; border-radius: 11px; font-size: .94rem; display: none }
.formmsg.ok { display: block; background: var(--tint); color: #026B6B; border: 1px solid rgba(4,128,143,.25) }
.formmsg.bad { display: block; background: rgba(255,107,74,.1); color: #C2452B; border: 1px solid rgba(255,107,74,.3) }

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { background: var(--ink); color: #6E9296; padding: 3.5rem 0 2.5rem; font-size: .9rem }
.foot a { color: #B2D2D4; text-decoration: none } .foot a:hover { color: var(--mint) }
.foot .wordmark { color: var(--white) }
.foot-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1) }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap }
.foot-bot { padding-top: 1.5rem; font-size: .83rem; color: #557A7E }

/* ── Reveal ───────────────────────────────────────────────────────────── */
/* Reveal. Content is visible by default and only hidden once JS confirms it can
   un-hide it — a broken script must never leave the page blank. */
.rise { opacity: 1 }
html.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease }
html.js .rise.in { opacity: 1; transform: none }

@media (max-width: 900px) {
  .navtoggle { display: block }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.5rem 1.2rem }
  .nav.open { display: flex }
  .nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem }
  .nav a.btn { margin-top: .8rem; border-bottom: none; text-align: center }
  .nav a:not(.btn)[aria-current="page"]::after { display: none }
  body { font-size: 16.5px }
}
