:root {
  color-scheme: light;
  --ink: #10201c;
  --muted: #4a5c56;
  --cream: #faf7f2;
  --paper: #ffffff;
  --line: #e4ddd2;
  --teal: #0f766e;
  --teal-deep: #0b5c56;
  --sage: #d7ebe6;
  --sage-soft: #eef6f3;
  --shadow: 0 1px 2px rgb(16 32 28 / 0.05), 0 24px 48px -28px rgb(16 32 28 / 0.35);
  --shadow-soft: 0 1px 2px rgb(16 32 28 / 0.04), 0 12px 28px -18px rgb(16 32 28 / 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --edge: max(24px, env(safe-area-inset-right));
  --chat-clear: calc(var(--insyt-chat-inset, 92px) + 24px);
}

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 100% 0%, rgb(15 118 110 / 0.1), transparent 60%),
    var(--cream);
  color: var(--ink);
  font: 400 15px/24px var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, .button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font: 600 14px/20px var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}
button:hover, .button:hover { background: var(--teal-deep); }
button.quiet, .button.quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
button:focus-visible, .button:focus-visible, a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px max(24px, env(safe-area-inset-left));
  backdrop-filter: blur(18px) saturate(1.3);
  background: color-mix(in srgb, var(--cream) 78%, transparent);
  border-bottom: 1px solid rgb(16 32 28 / 0.06);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 15px/22px var(--sans);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand svg { width: 28px; height: 28px; }
.site-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
  margin-right: 12px;
  color: var(--muted);
  font-size: 14px;
}
.site-nav nav a { text-decoration: none; }
.site-nav nav a:hover { color: var(--ink); }

.hero {
  display: grid;
  gap: 24px;
  padding: 28px max(24px, env(safe-area-inset-left)) 32px;
  padding-right: max(24px, env(safe-area-inset-right));
}
/* Mid desktop: stack the photo under the copy so a tall open panel never covers it. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 20px;
    padding-bottom: 24px;
    padding-right: max(28px, calc(var(--insyt-chat-panel, var(--insyt-chat-inset, 92px)) + 16px));
  }
  .hero > div:first-child {
    max-width: 36rem;
  }
  .hero-visual {
    max-width: min(26rem, 100%);
  }
}
/* Wide desktop: hero copy + photo stay in the left two-thirds; the panel owns the right. */
@media (min-width: 1280px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: 32px;
    padding-top: 20px;
    padding-bottom: 28px;
    max-width: min(100%, calc(100vw - var(--insyt-chat-panel, 436px) - 12px));
    padding-right: 24px;
  }
  .hero > div:first-child {
    max-width: 34rem;
    padding-top: 8px;
  }
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--teal-deep);
  font: 500 12px/16px var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 12px 0 12px;
  max-width: 14ch;
  font: 400 clamp(40px, 4.6vw, 52px)/1.05 var(--display);
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--teal);
}
.hero .lede {
  max-width: 42ch;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}
.trust strong { display: block; color: var(--ink); font-size: 18px; letter-spacing: -0.02em; }
.hero-visual { position: relative; }
.hero-visual > img {
  width: 100%;
  max-height: min(480px, calc(100dvh - 180px));
  aspect-ratio: 5 / 4;
  object-fit: cover;
  /* Pin the doctor toward the left; the hours card sits over the chairs. */
  object-position: 18% 12%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero-visual > img {
    max-height: min(300px, 36vh);
    object-position: 16% 10%;
  }
}
@media (min-width: 1280px) {
  .hero-visual > img {
    max-height: min(480px, calc(100dvh - 168px));
    object-position: 20% 14%;
  }
}
.float {
  /* Bottom-right of the photo: clear of the doctor on the left. */
  position: absolute;
  left: auto;
  right: 14px;
  bottom: 14px;
  top: auto;
  max-width: 210px;
  padding: 12px 14px;
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: 16px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
  z-index: 1;
}
.float p { margin: 0; font-size: 13px; color: var(--muted); }
.float strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; }

.section {
  padding: 72px max(24px, env(safe-area-inset-left)) 24px;
  padding-right: max(24px, env(safe-area-inset-right));
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .section {
    padding-right: max(28px, calc(var(--insyt-chat-panel, var(--insyt-chat-inset, 92px)) + 16px));
  }
}
@media (min-width: 1280px) {
  .section {
    max-width: min(100%, calc(100vw - var(--insyt-chat-panel, 436px) - 12px));
    padding-right: 24px;
  }
}
.section-head { max-width: 42rem; margin-bottom: 28px; }
.section-head h2 {
  margin: 0 0 8px;
  font: 400 36px/1.15 var(--display);
  letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--muted); }

.services {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.service {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.service svg { width: 22px; height: 22px; color: var(--teal); margin-bottom: 14px; }
.service h3 { margin: 0 0 6px; font: 600 15px/22px var(--sans); }
.service p { margin: 0; color: var(--muted); font-size: 14px; }

.visit {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 960px) {
  .visit { grid-template-columns: 1.05fr 0.95fr; }
}
.visit img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.steps { display: grid; gap: 18px; }
.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}
.step span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--teal-deep);
  font-weight: 600;
}
.step h3 { margin: 0 0 4px; font: 600 15px/22px var(--sans); }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.people {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.person {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.person div { padding: 16px 18px 20px; }
.person h3 { margin: 0 0 4px; font: 600 16px/22px var(--sans); }
.person p { margin: 0; color: var(--muted); font-size: 14px; }
