/* ==========================================================================
   Continuum Healthcare — one-page site
   Tokens come straight from the Aug 2026 brand style guide.
   ========================================================================== */

:root {
  /* Primary */
  --purple: #7a94d9;
  --mint: #baf0b0;
  --black: #000;
  --gray: #f2f5f5;
  /* Secondary */
  --navy: #2e4a70;
  --evergreen: #0a7061;
  --terracotta: #cc7d36;
  --sky: #5cbff5;

  --ink: #14202e;          /* body text: near-black with a hint of navy */
  --ink-soft: #3a4a5c;

  --radius: 28px;
  --radius-sm: 16px;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 10vw, 140px);

  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.1875rem;          /* 19px — generous for an older audience */
  line-height: 1.6;
  color: var(--ink);
  background: var(--gray);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Type (style guide hierarchy: Bold display, Heavy sub-heads, Regular body) ---------- */
h1, h2 { font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; color: var(--black); }
h1 { font-size: clamp(3.25rem, 8.4vw, 6.75rem); }
h2 { font-size: clamp(2.25rem, 4.6vw, 3.875rem); }

.lede { font-size: clamp(1.3rem, 2.1vw, 1.6rem); line-height: 1.45; color: var(--ink); max-width: 30ch; }
.body-lg { font-size: clamp(1.1875rem, 1.6vw, 1.3125rem); line-height: 1.65; color: var(--ink-soft); max-width: 58ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 900 1.0625rem/1 var(--font); letter-spacing: 0.01em;
  padding: 20px 32px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
/* Brand purple (#7a94d9). Black label: white on this purple is only ~3:1, black is ~7:1. */
.btn-purple { background: var(--purple); color: var(--black); font-size: 1.1875rem; box-shadow: 0 14px 28px -14px rgba(122, 148, 217, .95); }
.btn-purple:hover { background: #6a86d0; transform: translateY(-2px); box-shadow: 0 20px 34px -16px rgba(122, 148, 217, 1); }
.btn-block { width: 100%; }

.text-link { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.text-link:hover { color: #24395a; }

/* ---------- Logo (max 400px wide) ---------- */
.brand { display: block; width: min(400px, 100%); margin-bottom: clamp(12px, 3vw, 28px); }
.brand img { width: 100%; height: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 6vw, 84px) clamp(72px, 10vw, 130px);
  /* Style-guide light radial: gray base, mint body, purple at the corner — pushed bigger and richer */
  background:
    radial-gradient(75% 95% at 100% 0%, var(--purple) 0%, rgba(122,148,217,0) 70%),
    radial-gradient(85% 115% at 92% 42%, var(--mint) 0%, rgba(186,240,176,0) 72%),
    var(--gray);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; position: relative; }
.hero-copy { display: grid; gap: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 8px; }
.hero-media { position: relative; }
.hero-media::before {          /* soft brand glow behind the photo */
  content: ""; position: absolute; inset: -8% -10% -12% -6%; z-index: 0;
  background: radial-gradient(closest-side, rgba(186,240,176,.95), rgba(122,148,217,.5) 60%, rgba(122,148,217,0));
}
.hero-media img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 50% 35%;
  border-radius: var(--radius);
  box-shadow: 0 40px 70px -40px rgba(46, 74, 112, .55);
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
/* Light gradient, mirrored to the left so the page doesn't repeat the hero */
.section-white {
  background:
    radial-gradient(60% 80% at 0% 100%, rgba(122,148,217,.55) 0%, rgba(122,148,217,0) 70%),
    radial-gradient(70% 90% at 6% 92%, rgba(186,240,176,.85) 0%, rgba(186,240,176,0) 70%),
    #fff;
}
.section-gray {
  background:
    radial-gradient(65% 85% at 0% 0%, rgba(186,240,176,.9) 0%, rgba(186,240,176,0) 70%),
    radial-gradient(45% 60% at 0% 0%, rgba(122,148,217,.55) 0%, rgba(122,148,217,0) 75%),
    var(--gray);
}

/* Block 2 */
.split { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius); }
.split-copy { display: grid; gap: 32px; }

.triad { display: grid; gap: 4px; }
.triad span { display: block; }
.triad span:nth-child(1) { color: var(--navy); }
.triad span:nth-child(2) { color: var(--black); }
.triad span:nth-child(3) {
  color: var(--evergreen);
  background: linear-gradient(transparent 62%, var(--mint) 62%, var(--mint) 92%, transparent 92%);
  width: fit-content;
}

/* Block 3 — dark radial gradient from the guide (navy base, purple -> mint at top right) */
.section-dark {
  color: #fff;
  background:
    radial-gradient(45% 55% at 100% 0%, rgba(186,240,176,.95) 0%, rgba(186,240,176,0) 100%),
    radial-gradient(85% 100% at 100% 0%, var(--purple) 0%, rgba(122,148,217,0) 70%),
    radial-gradient(60% 70% at 0% 100%, rgba(122,148,217,.55) 0%, rgba(122,148,217,0) 100%),
    var(--navy);
}
.section-dark h2 { color: #fff; }
.section-dark .body-lg { color: rgba(255,255,255,.92); }

.sensing-top { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.sensing-top > div:first-child { display: grid; gap: 28px; }
.sensing-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius); }

.detect { margin-top: clamp(56px, 7vw, 96px); display: grid; gap: 28px; }
.detect-label { font-weight: 900; font-size: 1.125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.detect-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.detect-grid li {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 22px 18px 18px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  transition: background-color .2s ease, transform .2s ease;
}
.detect-grid li:hover { background: rgba(255,255,255,.15); transform: translateY(-3px); }
.detect-grid img { width: 76px; height: 76px; flex: none; }
.detect-grid span { font-weight: 900; font-size: 1.3rem; line-height: 1.2; }
.detect-close { margin-top: 12px; max-width: 64ch; }

/* Block 4 */
.connect-head { display: grid; gap: 28px; max-width: 860px; }
.connect-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: clamp(40px, 6vw, 72px); }
.connect-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.connect-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.connect-card:hover img { transform: scale(1.03); }
/* Caption sits directly on a navy fade — no boxes, nothing that reads as a button */
.connect-card figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 120px 28px 28px;
  background: linear-gradient(to top, rgba(46,74,112,.96) 0%, rgba(46,74,112,.72) 45%, rgba(46,74,112,0) 100%);
  color: #fff; font-weight: 900; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.005em;
  text-shadow: 0 1px 14px rgba(20,32,46,.35);
}
.cap-rule { display: block; width: 56px; height: 5px; border-radius: 3px; background: var(--mint); margin-bottom: 14px; }

/* Block 5 */
.section-join {
  background:
    radial-gradient(100% 120% at 100% 100%, var(--purple) 0%, rgba(122,148,217,0) 45%),
    radial-gradient(85% 110% at 100% 70%, var(--mint) 0%, rgba(186,240,176,0) 65%),
    var(--gray);
}
.join-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: start; }
.join-copy { display: grid; gap: 22px; }
.join-sub { font-weight: 900; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; color: var(--evergreen); letter-spacing: -0.005em; max-width: 24ch; }
.join-photo { margin-top: 16px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); display: none; }

.form-card {
  background: #fff; border-radius: var(--radius);
  padding: clamp(26px, 4vw, 48px);
  box-shadow: 0 50px 80px -50px rgba(46, 74, 112, .55);
}
.intake { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label:not(.choice), .choices legend { font-weight: 900; font-size: 1.0625rem; color: var(--navy); padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; font: 400 1.1875rem/1.2 var(--font); color: var(--ink);
  padding: 17px 18px; background: var(--gray);
  border: 2px solid transparent; border-radius: var(--radius-sm);
  transition: border-color .15s ease, background-color .15s ease;
}
.field textarea {
  width: 100%; font: 400 1.1875rem/1.5 var(--font); color: var(--ink); resize: vertical; min-height: 130px;
  padding: 17px 18px; background: var(--gray);
  border: 2px solid transparent; border-radius: var(--radius-sm);
  transition: border-color .15s ease, background-color .15s ease;
}
.field input:hover, .field textarea:hover { border-color: rgba(122,148,217,.55); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(122,148,217,.35); }
.field input:user-invalid { border-color: var(--terracotta); }
.req { color: #a4501a; }
.opt { font-weight: 400; color: var(--ink-soft); }

.choices { gap: 12px; }
.choices legend { margin-bottom: 4px; line-height: 1.4; }
.choice {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 16px 18px; background: var(--gray); border-radius: var(--radius-sm); border: 2px solid transparent;
  font-weight: 700; color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease;
}
.choice:hover { border-color: rgba(122,148,217,.55); }
.choice input { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin: 0; border-radius: 50%; border: 2px solid var(--navy); background: #fff; display: grid; place-content: center; cursor: pointer; }
.choice input::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); transform: scale(0); transition: transform .15s ease; }
.choice input:checked::after { transform: scale(1); }
.choice:has(input:checked) { background: var(--mint); border-color: var(--evergreen); }
.choice input:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.form-status { font-weight: 700; color: var(--evergreen); text-align: center; }
.form-status:empty { display: none; }
.form-status.error { color: #a4501a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding-block: 56px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.site-footer img { height: 40px; width: auto; }
.footer-tag { font-weight: 900; font-size: 1.25rem; color: var(--mint); }
.footer-legal { font-size: .9375rem; color: rgba(255,255,255,.75); flex-basis: 100%; }

/* ---------- Mailchimp embed compatibility (if the stock snippet is pasted in) ---------- */
#mc_embed_signup { background: transparent !important; font: inherit !important; width: 100% !important; }
#mc_embed_signup input[type="email"], #mc_embed_signup input[type="text"] {
  width: 100%; font: 400 1.1875rem var(--font); padding: 17px 18px; background: var(--gray); border: 2px solid transparent; border-radius: var(--radius-sm);
}
#mc_embed_signup .button { background: var(--purple) !important; color: var(--black) !important; border-radius: 999px !important; font-weight: 900 !important; height: auto !important; padding: 20px 32px !important; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Tablet & up ---------- */
@media (min-width: 720px) {
  .detect-grid { grid-template-columns: repeat(2, 1fr); }
  .connect-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Desktop ---------- */
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 72px; }
  .hero-media img { aspect-ratio: 4 / 4.4; }
  .split { grid-template-columns: 1fr 1fr; gap: 88px; }
  .split-media img { aspect-ratio: 4 / 4.6; }
  .sensing-top { grid-template-columns: 1.05fr 1fr; gap: 72px; }
  .detect-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .detect-grid li { flex-direction: column; align-items: flex-start; padding: 26px; gap: 22px; min-height: 236px; justify-content: space-between; }
  .detect-grid img { width: 96px; height: 96px; }
  .join-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .join-photo { display: block; }
  .footer-legal { flex-basis: auto; }
}

@media (max-width: 480px) {
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
}
