/* ============================================================
   CALIBRATORY — Design tokens
   Palette: navy + electric blue + off-white, red used as a rare accent
   Type: Space Grotesk (display) / Inter (body) / IBM Plex Mono (readouts)
   Structural language borrowed from ditto.site: thick-bordered "window"
   panels, terminal chrome, hard-offset buttons, punchy one-line copy —
   kept clean and professional rather than pixel/retro, since this is a
   health-adjacent service that needs to read as credible.
   ============================================================ */

:root {
  --paper: #F7F8FB;
  --paper-alt: #EFF2F7;
  --navy: #0E2038;
  --navy-soft: #1B3357;
  --blue: #2A5FE0;
  --blue-soft: #E8EEFD;
  --red: #C23B32;
  --ink: #16202E;
  --slate: #5C6B7A;
  --line: #E1E6EE;
  --border: #16233A;
  --white: #FFFFFF;

  --display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;

  --radius: 10px;
  --bw: 2px;
  --shadow: 4px 4px 0 var(--border);
  --shadow-sm: 3px 3px 0 var(--border);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.3rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.28rem; font-weight: 700; }
p { color: var(--slate); margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--navy-soft); }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--blue);
  border-radius: 50%;
  display: inline-block;
}

/* ---------- Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,248,251,.92);
  backdrop-filter: blur(10px);
  border-bottom: var(--bw) solid var(--border);
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.brand img { width: 34px; height: 34px; }
.navlinks { display: flex; gap: 26px; align-items: center; }
.navlinks a:not(.btn) { font-size: .93rem; color: var(--navy-soft); font-weight: 500; }
.navlinks a:not(.btn):hover { color: var(--blue); }

.btn {
  font-family: var(--body);
  font-weight: 700;
  font-size: .92rem;
  padding: 11px 22px;
  border-radius: 8px;
  display: inline-block;
  border: var(--bw) solid var(--border);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--border); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #3A6EF2; }
.btn-ghost { background: var(--white); color: var(--navy); }
.navlinks .btn { padding: 9px 18px; font-size: .85rem; box-shadow: 2px 2px 0 var(--border); }
.navlinks .btn:hover { box-shadow: 1px 1px 0 var(--border); }
.navlinks a.btn-primary { color: var(--white); }
.navlinks a.btn-ghost { color: var(--navy); }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-cta { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { font-family: var(--mono); font-size: .82rem; color: var(--slate); margin-top: 20px; }

/* ---------- Readout card (signature element — terminal chrome) ---------- */
.readout {
  background: var(--navy);
  border-radius: var(--radius);
  border: var(--bw) solid var(--border);
  color: var(--white);
  font-family: var(--mono);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.readout-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #16233A;
  border-bottom: var(--bw) solid var(--border);
}
.tb-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.tb-dot.r { background: #E5564A; }
.tb-dot.y { background: #E8B84B; }
.tb-dot.g { background: #37D67A; }
.readout-titlebar span.path { margin-left: 8px; font-size: .76rem; color: #8FA3C2; }
.readout-body { padding: 22px 24px; }
.readout-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px dashed rgba(255,255,255,.16);
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #9FB2CE;
}
.readout-dot { width: 8px; height: 8px; border-radius: 50%; background: #37D67A; display: inline-block; margin-right: 6px; }
.readout-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: .86rem; }
.readout-row + .readout-row { border-top: 1px dashed rgba(255,255,255,.1); }
.readout-label { color: #B9C6DA; }
.bar { width: 120px; height: 6px; background: rgba(255,255,255,.14); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--blue); }
.readout-status {
  margin-top: 18px; padding: 12px 14px; border-radius: 6px;
  border: 1px solid rgba(55,214,122,.35);
  background: rgba(55,214,122,.1); color: #6FEBA0;
  font-size: .8rem; letter-spacing: .04em;
}

/* ---------- Sections ---------- */
section { padding: 68px 0; }
section.alt { background: var(--white); border-top: var(--bw) solid var(--border); border-bottom: var(--bw) solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 44px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.card .num { font-family: var(--mono); color: var(--blue); font-size: .82rem; margin-bottom: 10px; display: block; }

/* stat window — single bordered panel, ditto-style numbers, no boxed grid */
.stat-window {
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
  overflow: hidden;
}
.stat-window .tb { display:flex; align-items:center; gap:8px; padding:9px 14px; background:var(--navy); border-bottom: var(--bw) solid var(--border); }
.stat-window .tb span.path { margin-left:8px; font-family: var(--mono); font-size:.74rem; color:#8FA3C2; }
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 26px 22px; border-right: 1px dashed var(--line); }
.stat:last-child { border-right: none; }
.stat .n { font-family: var(--display); font-size: 2.1rem; color: var(--navy); font-weight: 700; }
.stat .l { font-family: var(--mono); font-size: .72rem; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

.pill {
  display: inline-block; font-family: var(--mono); font-size: .75rem;
  background: var(--blue-soft); color: var(--blue); padding: 5px 11px; border-radius: 6px;
  border: 1px solid #C9D9FA;
  margin-bottom: 10px;
}

.callout {
  background: var(--blue-soft);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 26px;
}
.callout.red { background: #FBE9E7; }
.callout p { color: var(--navy-soft); margin: 0; }
.callout strong { color: var(--navy); }

/* ---------- Closer (punchy one-liner before footer) ---------- */
.closer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
  border-top: var(--bw) solid var(--border);
  border-bottom: var(--bw) solid var(--border);
}
.closer h2 { color: var(--white); }
.closer p { color: #B9C6DA; }

/* ---------- Footer ---------- */
footer { padding: 44px 0 30px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); font-family: var(--mono); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--navy-soft); font-size: .92rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--blue); }
.fine-row {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 30px; padding-top: 20px; border-top: 1px dashed var(--line);
  font-family: var(--mono); font-size: .78rem; color: var(--slate);
}

/* ---------- Forms (booking questionnaire) ---------- */
form.intake { background: var(--white); border: var(--bw) solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; }
.f-group { margin-bottom: 22px; }
.f-group label { display: block; font-weight: 600; color: var(--navy); font-size: .95rem; margin-bottom: 8px; }
.f-hint { font-size: .82rem; color: var(--slate); margin-top: 4px; }
.f-group input[type=text], .f-group input[type=email], .f-group input[type=tel], .f-group textarea, .f-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--body); font-size: .95rem; background: var(--paper);
}
.f-group input:focus, .f-group textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.f-group textarea { min-height: 90px; resize: vertical; }
.radio-row, .check-row { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-row label, .check-row label { display: flex; align-items: center; gap: 7px; font-weight: 500; color: var(--ink); font-size: .92rem; }
fieldset { border: none; padding: 0; margin: 0; }
.section-divider { border-top: 1px dashed var(--line); margin: 30px 0; padding-top: 26px; }
.step-label { font-family: var(--mono); font-size: .75rem; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; display:block;}

@media (max-width: 880px) {
  .hero-grid, .grid-3, .grid-2, .stat-row, .footer-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px dashed var(--line); }
  .fine-row { flex-direction: column; }
  .navlinks { display: none; }
}
