:root {
  --clinic: #EAF1F0;
  --steel: #9FB0B5;
  --ink: #1C2426;
  --scrub: #2F7A6B;
  --alert: #D4553F;
  --panel: #FFFFFF;
  --radius: 6px;
  --gap: 24px;
  --maxw: 880px;
}

@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--clinic);
  color: var(--ink);
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  margin: 0 0 12px;
  font-weight: 600;
}
a { color: var(--scrub); }
.label {
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}
button { font-family: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--scrub);
  outline-offset: 2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---- nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--clinic);
  border-bottom: 1px solid var(--steel);
}
.site-nav .wrap {
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-nav .brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}
.site-nav .brand span { color: var(--scrub); }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; }
.site-nav a:hover { color: var(--scrub); }

/* ---- hero ---- */
.hero {
  position: relative;
  background: var(--ink);
  color: #EAF1F0;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,36,38,0.35) 0%, rgba(28,36,38,0.88) 78%, rgba(28,36,38,0.96) 100%);
}
.hero .wrap {
  max-width: 1100px;
  position: relative;
  padding-top: 96px;
  padding-bottom: 56px;
}
.hero-ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(234,241,240,0.1);
  border: 1px solid rgba(234,241,240,0.35);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.hero-ticker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6FCF97;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  max-width: 14ch;
  color: #fff;
}
.hero p.sub {
  max-width: 46ch;
  font-size: 18px;
  color: #D6E3E1;
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 13px 22px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--scrub); color: #fff; }
.btn-primary:hover { background: #266254; }
.btn-outline { background: transparent; color: #EAF1F0; border-color: rgba(234,241,240,0.5); }
.btn-outline:hover { border-color: #EAF1F0; }

/* ---- section shell ---- */
section.panel { padding: 64px 0; border-bottom: 1px solid var(--steel); }
section.panel:last-of-type { border-bottom: none; }
.eyebrow {
  color: var(--scrub);
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 8px;
  display: block;
}
.section-head { margin-bottom: 32px; max-width: 60ch; }
.section-head p { color: #3E4A4D; }

/* ---- schedule table ---- */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  overflow: hidden;
}
.schedule-table th, .schedule-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid #DCE6E4;
  font-size: 14px;
}
.schedule-table th {
  font-family: 'Space Grotesk', monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  color: var(--scrub);
  background: #F2F7F6;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table .dose-name { font-weight: 600; }

/* ---- side effects ---- */
.side-effects { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.side-effects li {
  background: var(--panel);
  border: 1px solid var(--steel);
  border-left: 4px solid var(--steel);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 15px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.side-effects li .sev {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--steel);
  flex: none;
  width: 74px;
}
.side-effects li[data-sev="common"] { border-left-color: var(--scrub); }
.side-effects li[data-sev="common"] .sev { color: var(--scrub); }
.side-effects li[data-sev="rare"] { border-left-color: var(--alert); }
.side-effects li[data-sev="rare"] .sev { color: var(--alert); }

/* ---- booking ---- */
.calendar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.day-col {
  background: var(--panel);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  overflow: hidden;
}
.day-col-head {
  background: #F2F7F6;
  padding: 10px 12px;
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid #DCE6E4;
}
.slot {
  width: 100%;
  border: none;
  border-bottom: 1px solid #EDF2F1;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.35;
  color: #6B7A7C;
}
.slot:last-child { border-bottom: none; }
.slot .time { font-weight: 600; color: var(--ink); display: block; font-size: 13px; }
.slot.taken { cursor: default; }
.slot.open {
  background: #E9F5F0;
  color: var(--scrub);
  cursor: pointer;
}
.slot.open .time { color: var(--scrub); }
.slot.open:hover { background: #DCEFE7; }

.book-panel, .confirm-card {
  margin-top: 24px;
  background: var(--panel);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 460px;
}
.book-panel label {
  display: block;
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--scrub);
  margin-bottom: 6px;
}
.book-panel input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 16px;
  background: #fff;
  color: var(--ink);
}
.book-panel .row { display: flex; gap: 10px; }
.book-panel .btn-ghost {
  background: transparent;
  border: 1px solid var(--steel);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 600;
}
.confirm-card .stamp {
  display: inline-block;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--scrub);
  border: 1px solid var(--scrub);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.confirm-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 18px; }
.confirm-card dt { color: var(--steel); font-size: 13px; }
.confirm-card dd { margin: 0; font-weight: 600; }
.confirm-card .fine { font-size: 13px; color: #6B7A7C; margin-bottom: 18px; }
.link-quiet {
  background: none;
  border: none;
  padding: 0;
  color: var(--steel);
  text-decoration: underline;
  font-size: 13px;
}

/* ---- footer ---- */
footer { background: var(--ink); color: #C9D6D3; padding: 56px 0 40px; }
footer .wrap { max-width: 1100px; }
.discharge {
  background: rgba(234,241,240,0.06);
  border: 1px solid rgba(234,241,240,0.18);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.patient-id .label { color: #7FA79B; }
.patient-id .value {
  font-family: 'Space Grotesk', monospace;
  font-size: 16px;
  color: #fff;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.discharge-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(234,241,240,0.15);
  padding-top: 24px;
  font-size: 13px;
  color: #7FA79B;
}
.social-row { display: flex; gap: 14px; align-items: center; }
.social-row a { display: inline-flex; }
.social-row img { width: 28px; height: 28px; filter: brightness(0) invert(1); opacity: 0.9; }
.social-row a:hover img { opacity: 1; }
.chain-note { font-family: 'Space Grotesk', monospace; font-size: 12px; }

@media (max-width: 920px) {
  .calendar { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { padding-top: 64px; padding-bottom: 40px; }
  section.panel { padding: 44px 0; }
  .discharge { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 360px) {
  .wrap { padding: 0 14px; }
  .hero h1 { font-size: 30px; }
  .calendar { grid-template-columns: 1fr; }
  .site-nav ul { display: none; }
}
