/* ============================================================================
   Foreword — a product of Heimdall Technologies LLC
   ----------------------------------------------------------------------------
   TYPE, and why:
     Schibsted Grotesk carries everything structural — headings, UI, labels.
     It's a modern Norwegian grotesque; Heimdall is the Norse watchman who
     sounds the horn before trouble arrives, so the lineage is deliberate.

     Newsreader appears in exactly ONE place: the resident's own words.
     That contrast IS the product. A traditional nurse call emits a signal —
     structural, mechanical, grotesque. Foreword delivers a human sentence.
     The page should feel that difference before anyone reads a word of copy.

   COLOR: deep teal-black surfaces for the night shift (this is a 3 a.m.
   product), cool off-white for daylight reading. One accent, used sparingly.
   ========================================================================== */

:root {
  --ink:    #072A2F;   /* deep teal-black — the night */
  --ink-2:  #0C3A41;   /* raised dark surface */
  --slate:  #527175;   /* muted body */
  --teal:   #04808F;   /* primary action */
  --mint:   #14C8A0;   /* accent — used sparingly, on dark */
  --coral:  #D65D45;   /* the old way */
  --paper:  #F2F6F6;   /* cool off-white — NOT cream */
  --white:  #FFFFFF;
  --line:   #DFE9EA;
  --tint:   #E7F3F3;

  --grot: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --voice: "Newsreader", Georgia, serif;

  --wrap: 1140px;
  --gap: clamp(5rem, 9vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !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;
  text-rendering: optimizeLegibility;
}

/* Type scale — tight, confident, modern */
h1, h2, h3, h4 { font-family: var(--grot); margin: 0; line-height: 1.06; letter-spacing: -0.032em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.028em; }
h3 { font-size: 1.22rem; letter-spacing: -0.012em; font-weight: 650; line-height: 1.3; }
p  { margin: 0 0 1.05rem; }
a  { color: var(--teal); text-underline-offset: 3px; }
strong { font-weight: 650; }

:focus-visible { outline: 2.5px solid var(--teal); 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: #C3DADC; }
.band-dark h2, .band-dark h3, .band-dark h4 { color: var(--white); }
.band-dark a { color: var(--mint); }
.narrow { max-width: 780px; }

.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal); margin: 0 0 1.1rem;
}
.band-dark .eyebrow { color: var(--mint); }
.lede { font-size: 1.24rem; line-height: 1.55; color: var(--slate); max-width: 64ch; }
.band-dark .lede { color: #9FBFC2; }
.fine { font-size: .84rem; color: var(--slate); max-width: 74ch; line-height: 1.55; }
.band-dark .fine { color: #7C9EA2; }

/* ── Masthead ─────────────────────────────────────────────────────────── */
.masthead { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.5rem; max-width: var(--wrap); margin: 0 auto; }
.wordmark { font-family: var(--grot); font-size: 1.32rem; font-weight: 700; letter-spacing: -.04em; color: var(--ink); text-decoration: none; }
.wordmark::after { content: "."; color: var(--teal); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 550; }
.nav a:hover { color: var(--teal); }
.nav a[aria-current="page"] { color: var(--teal); font-weight: 700; }

.btn { display: inline-block; font-family: var(--grot); font-size: .96rem; font-weight: 650; padding: .78rem 1.4rem; border-radius: 10px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: transform .14s ease, background .14s ease, border-color .14s ease; letter-spacing: -.01em; }
.btn-solid { background: var(--teal); color: var(--white); }
.btn-solid:hover { background: #036c79; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.band-dark .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.28); }
.band-dark .btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn-lg { font-size: 1.04rem; padding: .95rem 1.8rem; }

/* ── Hero: dark. This is a 3 a.m. product. ────────────────────────────── */
.hero { background: var(--ink); color: #C3DADC; padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(4.5rem, 8vw, 7rem); }
.hero h1 { color: var(--white); max-width: 17ch; }
.hero .lede { color: #9FBFC2; margin-top: 1.5rem; font-size: 1.3rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2.4rem; }
.hero .eyebrow { color: var(--mint); }

/* ── SIGNATURE: the call card ─────────────────────────────────────────── */
.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: 16px; padding: 1.5rem; display: flex; flex-direction: column; min-height: 250px; }
.callcard-head { display: flex; align-items: center; justify-content: space-between; font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; padding-bottom: .9rem; margin-bottom: 1.2rem; }
.callcard-room { font-size: 1rem; font-weight: 650; letter-spacing: -.01em; }

.cc-old { background: rgba(255,255,255,.04); border: 1px solid rgba(214,93,69,.35); }
.cc-old .callcard-head { color: #B98277; border-bottom: 1px solid rgba(255,255,255,.09); }
.cc-old .callcard-room { color: #DCE9EA; }

.cc-new { background: var(--white); border: 1px solid var(--mint); box-shadow: 0 18px 50px rgba(20,200,160,.16); }
.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); }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .2 } }

/* The resident's own words — the only serif on the site, on purpose. */
.said { font-family: var(--voice); font-size: 1.48rem; line-height: 1.34; 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: #9E7A72; margin: 0; }
.callcard-foot { margin-top: auto; padding-top: 1rem; }

.tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 6px; }
.tag-mint { background: var(--tint); color: var(--teal); }
.tag-coral { background: rgba(214,93,69,.16); color: #E0917F; }

/* ── Grids & panels ───────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; 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: 14px; padding: 1.6rem; }
.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,.045); border-color: rgba(255,255,255,.12) }
.band-dark .panel p { color: #9FBFC2 }
.panel-flat { border: none; background: transparent; padding: 0 }

.num { font-family: var(--grot); font-size: .76rem; font-weight: 700; letter-spacing: .1em; color: var(--teal); margin-bottom: .8rem; display: block }
.band-dark .num { color: var(--mint) }

.stat { font-size: 2.9rem; font-weight: 700; letter-spacing: -.04em; 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: 16px; overflow: hidden; background: var(--white) }
.rung { display: grid; grid-template-columns: 210px 1fr 128px; gap: 1.25rem; padding: 1.35rem 1.5rem; border-bottom: 1px solid var(--line); align-items: center }
.rung:last-child { border-bottom: none }
.rung h4 { font-size: 1.04rem; font-weight: 650 }
.rung p { margin: 0; font-size: .94rem; color: var(--slate) }
.rung-falls { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); text-align: right }
@media (max-width: 820px) {
  .rung { grid-template-columns: 1fr; gap: .45rem }
  .rung-falls { text-align: left }
}

/* ── 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: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate) }
.tbl td.mid, .tbl th.mid { text-align: center; width: 140px }
.yes { color: var(--teal); font-weight: 700 }
.no { color: #C2D0D2 }

/* ── Form ─────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 1.1rem; max-width: 560px }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .4rem }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--grot); font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; 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,.15) }
.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: 10px; font-size: .94rem; display: none }
.formmsg.ok { display: block; background: var(--tint); color: var(--teal); border: 1px solid rgba(4,128,143,.28) }
.formmsg.bad { display: block; background: rgba(214,93,69,.09); color: var(--coral); border: 1px solid rgba(214,93,69,.28) }

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { background: var(--ink); color: #7E9FA3; padding: 3.5rem 0 2.5rem; font-size: .9rem }
.foot a { color: #BAD5D7; 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,.11) }
.foot-links { display: flex; gap: 1.5rem; flex-wrap: wrap }
.foot-bot { padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .83rem; color: #5F7F83 }

@media (max-width: 760px) { .nav { gap: .95rem } .nav-hide { display: none } body { font-size: 16.5px } }
