/* ============================================================================
   VoiceCare — marketing site
   ----------------------------------------------------------------------------
   Palette carried over from the investor deck so the brand reads as one thing.
   Type: Newsreader (display) — an editorial serif with warmth; this is the face
   the RESIDENT'S WORDS are set in, which is the point of the whole product.
         Public Sans (body) — USWDS's face, drawn for public-service legibility.
         Chosen deliberately: our readers are care administrators, and the
         product's own users skew older. Legibility is a brand value here.
   Base size is 18px, not 16. Same reason.
   ========================================================================== */

:root {
  --ink:    #0B3C42;   /* deep teal — night, the 3am shift */
  --teal:   #028090;   /* primary */
  --mint:   #02C39A;   /* affirmative accent */
  --coral:  #C0533E;   /* the old way; urgency */
  --paper:  #F7F9F9;
  --white:  #FFFFFF;
  --soft:   #5B7377;   /* muted body */
  --line:   #DCE6E7;
  --tint:   #EAF4F4;

  --display: "Newsreader", Georgia, serif;
  --body:    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gap: clamp(4.5rem, 9vw, 8rem);
}

*, *::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(--body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p  { margin: 0 0 1.1rem; }
a  { color: var(--teal); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.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: #DCEAEC; }
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark a { color: var(--mint); }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); margin: 0 0 1rem;
}
.band-dark .eyebrow { color: var(--mint); }
.lede { font-size: 1.22rem; color: var(--soft); max-width: 62ch; }
.band-dark .lede { color: #A9C6CA; }

/* ── Header ───────────────────────────────────────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.5rem; max-width: var(--wrap); margin: 0 auto; }
.wordmark { font-family: var(--display); font-size: 1.45rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.wordmark span { color: var(--teal); }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--teal); }
.nav a[aria-current="page"] { color: var(--teal); font-weight: 700; }

.btn {
  display: inline-block; font-family: var(--body); font-size: 1rem; font-weight: 600;
  padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn-solid { background: var(--teal); color: var(--white); }
.btn-solid:hover { background: #016d7a; 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,.3); }
.band-dark .btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn-lg { font-size: 1.08rem; padding: 1rem 2rem; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: clamp(3.5rem, 7vw, 6rem) 0 var(--gap); }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 1.4rem; font-size: 1.3rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2.2rem; }

/* ── THE SIGNATURE: the call card ─────────────────────────────────────────
   This is what a caregiver actually sees when a resident calls. The whole
   product is the difference between these two cards, so they carry the site. */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3.5rem; }
@media (max-width: 780px) { .cards { grid-template-columns: 1fr; } }

.callcard {
  border-radius: 16px; padding: 1.5rem; background: var(--white);
  border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(11,60,66,.05);
  display: flex; flex-direction: column; min-height: 260px;
}
.callcard-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--soft); padding-bottom: .9rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem;
}
.callcard-room { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
.callcard.is-old { border-color: #EBD5D0; background: #FDF8F7; }
.callcard.is-new { border-color: var(--teal); border-width: 2px; box-shadow: 0 8px 30px rgba(2,128,144,.13); }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: .5rem; vertical-align: middle; }
.dot-coral { background: var(--coral); animation: pulse 1.3s ease-in-out infinite; }
.dot-mint  { background: var(--mint); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* The resident's own words — the largest type in the whole design, on purpose. */
.said {
  font-family: var(--display); font-size: 1.5rem; line-height: 1.32; color: var(--ink);
  margin: 0 0 1.1rem;
}
.said::before { content: "\201C"; }
.said::after  { content: "\201D"; }
.nothing { color: #A88B84; font-style: italic; font-family: var(--display); font-size: 1.2rem; margin: 0; }
.callcard-foot { margin-top: auto; padding-top: 1.1rem; font-size: .9rem; color: var(--soft); }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .28rem .65rem; border-radius: 999px;
}
.tag-mint  { background: var(--tint); color: var(--teal); }
.tag-coral { background: #F8E9E5; color: var(--coral); }

/* ── Generic grids ────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.5rem; 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: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; }
.band-tint .panel { background: var(--white); }
.band-dark .panel { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.panel h3 { margin-bottom: .5rem; }
.panel p { color: var(--soft); font-size: .97rem; margin: 0; }
.band-dark .panel p { color: #A9C6CA; }

.mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--tint);
  display: grid; place-items: center; margin-bottom: 1rem;
  font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--teal);
}
.band-dark .mark { background: rgba(2,195,154,.14); color: var(--mint); }

/* ── Comparison table ─────────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; margin-top: 2.5rem; font-size: .98rem; }
.tbl th, .tbl td { padding: .95rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.tbl thead th { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.tbl td.mid, .tbl th.mid { text-align: center; width: 130px; }
.yes { color: var(--teal); font-weight: 700; }
.no  { color: #B9C6C8; }

/* ── Form ─────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 1.15rem; max-width: 560px; }
.field label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--body); 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(2,128,144,.14); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formnote { font-size: .88rem; color: var(--soft); }
.formmsg { padding: .9rem 1rem; border-radius: 10px; font-size: .95rem; display: none; }
.formmsg.ok   { display: block; background: var(--tint); color: var(--teal); border: 1px solid rgba(2,128,144,.3); }
.formmsg.bad  { display: block; background: #F8E9E5; color: var(--coral); border: 1px solid rgba(192,83,62,.3); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { background: var(--ink); color: #8FB3B8; padding: 3.5rem 0 2.5rem; font-size: .92rem; }
.foot a { color: #C6DEE1; text-decoration: none; }
.foot a:hover { color: var(--mint); }
.foot-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.foot-bot { padding-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #6E9298; }
.foot .wordmark { color: var(--white); }

.fineprint { font-size: .82rem; color: var(--soft); max-width: 70ch; }
.band-dark .fineprint { color: #7FA3A8; }
.stat { font-family: var(--display); font-size: 3rem; font-weight: 600; color: var(--teal); line-height: 1; }
.band-dark .stat { color: var(--mint); }

@media (max-width: 720px) {
  .nav { gap: 1rem; }
  .nav-hide { display: none; }
  body { font-size: 17px; }
}
