
/* Layout: a quiet clinical reading page — narrow measure, generous vertical rhythm, one accent used for rules, links and the single call to action. */
:root {
  --bg: #F6F7F4;
  --surface: #FFFFFF;
  --fg: #1E2630;
  --muted: #5B6672;
  --line: #D9DED8;
  --accent: #2E6B5F;
  --accent-soft: #E3EEEA;
  --flag: #FFF3C4;
  --flag-fg: #6B4F00;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151A1F; --surface: #1D242B; --fg: #E8ECEA; --muted: #A2ACB3; --line: #2E373F;
    --accent: #7FB8A8; --accent-soft: #22312D; --flag: #3D3312; --flag-fg: #F0D77A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151A1F; --surface: #1D242B; --fg: #E8ECEA; --muted: #A2ACB3; --line: #2E373F;
  --accent: #7FB8A8; --accent-soft: #22312D; --flag: #3D3312; --flag-fg: #F0D77A; color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; margin: 0; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; max-width: 66ch; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

header.top { position: sticky; top: env(safe-area-inset-top, 0px); background: var(--bg); border-bottom: 1px solid var(--line); z-index: 5; }
header.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-size: 1.25rem; text-decoration: none; color: var(--fg); }
.brand small { display: block; font-family: var(--body); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.92rem; }
nav a { color: var(--fg); text-decoration: none; }
nav a:hover { color: var(--accent); }

section { padding-block: 72px; }
section + section { border-top: 1px solid var(--line); }
.hero { padding-block: 88px 72px; }
.hero h1 { max-width: 20ch; margin-bottom: 24px; }
.hero p.lede { font-size: 1.15rem; color: var(--muted); margin-bottom: 36px; }
.cta { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 14px 24px; border-radius: 4px; font-weight: 600; }
:root[data-theme="dark"] .cta { color: #0F1A17; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { color: #0F1A17; } }
.cta.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.two > * { min-width: 0; }
.prose { display: flex; flex-direction: column; gap: 18px; }
.prose p { font-size: 1.05rem; }
.prose .lead { font-family: var(--display); font-size: 1.45rem; }

#care { background: var(--accent-soft); padding-block: clamp(72px, 8vw, 96px); }
.services { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 44px); margin-top: 44px; }
.service {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  grid-template-areas: "photo copy";
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(24px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 20px #1e26300a;
}
.service:nth-child(2) { grid-template-areas: "copy photo"; background: var(--accent-soft); }
.service-copy { grid-area: copy; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.service-copy > * { margin: 0; }
.service h3 { font-size: clamp(1.9rem, 3.2vw, 2.55rem); }
.service p { max-width: 66ch; font-size: 1rem; line-height: 1.7; color: var(--muted); overflow-wrap: break-word; }
.service .service-kicker { display: flex; align-items: center; gap: 10px; font-size: 0.76rem; line-height: 1.2; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.service-number { display: inline-grid; place-items: center; min-width: 2.5em; padding: 0.48em 0.55em; border: 1px solid currentColor; border-radius: 999px; font-size: 0.9em; font-variant-numeric: tabular-nums; }
.service .service-link { color: var(--accent); font-weight: 600; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .service { transition: border-color 180ms ease, box-shadow 180ms ease; }
  .service:hover { border-color: var(--accent); box-shadow: 0 12px 28px #1e263014; }
}

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 40px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--display); font-size: 2rem; color: var(--accent); line-height: 1; }
.step p { font-size: 0.98rem; color: var(--muted); }

.note { font-size: 0.92rem; color: var(--muted); margin-top: 18px; }

details { border-top: 1px solid var(--line); padding-block: 16px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--accent); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--muted); }

.book { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: start; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 36px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.contact-card .big { font-family: var(--display); font-size: 1.6rem; }
.crisis { background: var(--accent-soft); border-radius: 6px; padding: 18px 22px; margin-top: 36px; font-size: 0.95rem; }

.about { display: flex; flex-direction: column; gap: 16px; }
.disclosure { font-size: 0.92rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 14px; }

footer { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: 0.85rem; color: var(--muted); }
footer .wrap { display: flex; flex-direction: column; gap: 14px; }
footer nav { gap: 16px; }
footer nav a { color: var(--muted); }

@media (max-width: 720px) {
  section { padding-block: 52px; }
  .two { grid-template-columns: 1fr; gap: 20px; }
  .book { grid-template-columns: 1fr; }
  .cover { width: 150px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Review revisions: no reserved blocks, image slots or unavailable contact actions. */
section[id] { scroll-margin-top: 110px; }
nav[aria-label] { align-items: center; }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.book-cover { margin: 0; width: 180px; max-width: 100%; }
.book-cover img { width: 100%; height: auto; aspect-ratio: 2 / 3; display: block; border-radius: 3px; box-shadow: 0 8px 24px #1e263014; }
.book-cover figcaption { margin-top: 10px; font-size: 0.76rem; color: var(--muted); line-height: 1.5; }
.contact-grid { max-width: 560px; }
.source-note { font-size: 0.78rem !important; }
@media (max-width: 720px) {
  .book-cover { width: 150px; }
  section[id] { scroll-margin-top: 150px; }
  header.top .wrap { gap: 10px; }
  nav { gap: 12px 16px; }
}

/* General-inquiry contact form. */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: 36px;
  margin-top: 32px;
}
.contact-destination { margin-top: 12px; color: var(--muted); font-size: 0.88rem; overflow-wrap: anywhere; }
.contact-form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field label { font-size: 0.94rem; font-weight: 600; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  font-size: 1rem;
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field input:focus-visible, .form-field textarea:focus-visible, .form-consent input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.field-hint { font-size: 0.8rem; color: var(--muted); }
.form-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.form-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 4px; accent-color: var(--accent); }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.form-actions button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.form-actions button:disabled { opacity: 0.55; cursor: not-allowed; }
.form-status { font-size: 0.87rem; color: var(--muted); }
.form-status[data-state="success"] { color: var(--accent); }
.form-status[data-state="error"] { color: #A34435; }
@media (max-width: 720px) {
  .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
}

/* Owner-supplied EXOMIND photos: preserve each complete image. */
.service-photo {
  grid-area: photo;
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.service-photo--system { height: clamp(390px, 40vw, 440px); aspect-ratio: auto; background: #fff; }
.service-photo--applicator { background: #00123c; border-color: #00123c; }
.service-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.footer-exomind {
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.footer-exomind img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}
@media (max-width: 720px) {
  .footer-exomind img { width: 190px; }
}

@media (max-width: 760px) {
  #care { padding-block: 56px; }
  .services { margin-top: 32px; gap: 24px; }
  .service, .service:nth-child(2) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "photo" "copy";
    gap: 24px;
    padding: 20px;
  }
  .service-photo--system { height: clamp(320px, 86vw, 390px); }
  .service h3 { font-size: clamp(1.8rem, 8vw, 2.3rem); }
}

/* A small right-hand food photo within the nutrition paragraph. */
.service.service--nutrition { display: block; }
.service--nutrition .service-copy { display: block; }
.service--nutrition .service-copy > * + * { margin-top: 16px; }
.service--nutrition h3 { max-width: 28ch; }
.service--nutrition .nutrition-prose { display: flow-root; max-width: none; }
.service--nutrition .service-link { display: inline-block; }
.nutrition-photo {
  float: right;
  display: block;
  width: 176px;
  max-width: 30%;
  margin: 8px 0 12px 24px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--accent-soft);
  box-shadow: 0 3px 10px #1e26300d;
}
.nutrition-photo img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 760px) {
  .nutrition-photo {
    width: 112px;
    max-width: 34%;
    margin: 6px 0 8px 16px;
    border-radius: 6px;
  }
}
