/* Evelyn Schuele, LPC
   One stylesheet, no build step. The 11pm search demo is the only animation. */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-var.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin-var-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: optional;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Colors harmonized from Evelyn's logo (sage-slate and warm cream) and the
     three palettes she picked: Forest & Cream, Sage & Sand, Terracotta. */
  --cream: #fbf6ec;
  --paper: #fffdf8;
  --tint: #c6cebb;
  --sand: #f2e7d3;
  --sand-deep: #c5b193;
  --sage: #89908f;
  --sage-soft: #cbd3c8;
  --forest: #274233;
  --forest-deep: #1d3126;
  --ink: #213328;
  --muted: #435249;
  --clay: #bd6447;
  --clay-deep: #803621;
  --line: #dbd4c2;
  --line-strong: #859288;
  --focus: #944228;
  --error: #8f2d1a;
  --error-bg: #fbeee9;
  --ok-bg: #e8f0e4;

  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-head: var(--font-body);
  --font-brand: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --step--1: 0.9375rem;
  --step-0: clamp(1.03125rem, 1rem + 0.14vw, 1.09375rem);
  --step-1: clamp(1.125rem, 1.06rem + 0.28vw, 1.25rem);
  --step-2: clamp(1.325rem, 1.18rem + 0.65vw, 1.6875rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.35rem);
  --step-4: clamp(2.35rem, 1.75rem + 2.8vw, 3.75rem);

  --radius: 1.25rem;
  --radius-small: 0.75rem;
  --band-curve: clamp(1.5rem, 0.6rem + 3vw, 2.75rem);
  --wrap: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3rem, 2.2rem + 3.2vw, 4.75rem);
  --shadow-soft: 0 2px 10px rgba(29, 49, 38, 0.05);
  --shadow-card: 0 6px 24px rgba(29, 49, 38, 0.06);
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  color: var(--forest);
  line-height: 1.15;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h2 {
  font-size: var(--step-3);
  font-weight: 650;
  letter-spacing: -0.025em;
}
h3 {
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.25;
}

/* Compact serif titles in the style of the former lead-in labels. */
.title-label {
  margin: 0 0 0.7rem;
  font-family: var(--font-brand);
  font-size: clamp(0.9375rem, 0.875rem + 0.3vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-deep);
  line-height: 1.3;
}

p,
ul,
ol {
  margin: 0 0 0.95em;
}
p {
  text-wrap: pretty;
}
ul,
ol {
  padding-left: 1.25em;
}

a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--clay-deep);
}

strong {
  font-weight: 700;
}

sup {
  font-size: 0.6em;
  line-height: 0;
  vertical-align: super;
}

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

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--forest);
  color: var(--paper);
  border-radius: 0 0 var(--radius-small) var(--radius-small);
  font-weight: 700;
}
.skip-link:focus {
  top: 0;
  color: var(--paper);
}

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

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
}

/* Small wide-spaced capitals, echoing Evelyn's logo wordmark */
.eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--font-brand);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay-deep);
  line-height: 1.3;
}

.hint {
  font-size: var(--step--1);
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.6rem;
  border: 2px solid var(--forest);
  border-radius: 999px;
  background: var(--forest);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.03125rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  color: var(--paper);
}
.button--ghost {
  background: var(--paper);
  color: var(--forest);
}
.button--ghost:hover {
  background: var(--forest);
  color: var(--paper);
}
.button--small {
  min-height: 2.75rem;
  padding: 0.45rem 1.2rem;
  font-size: 0.975rem;
}
.button--quiet {
  min-height: 2.75rem;
  padding: 0.4rem 1.1rem;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--forest);
  font-size: 0.975rem;
  font-weight: 700;
}
.button--quiet:hover {
  background: var(--sand);
  border-color: var(--forest);
  color: var(--forest);
}
.button[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* ---------- Hero ---------- */
.hero {
  /* The opening fills most of the first screen, with the search box and line centered in it */
  display: grid;
  align-content: center;
  min-block-size: min(82svh, 52rem);
  padding-block: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem) clamp(3rem, 2rem + 3.5vw, 4.75rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(1.5rem, 2.8vw, 2.5rem);
  text-align: center;
}
.hero__title {
  margin-bottom: 0.45em;
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 1.55rem + 3.5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.hero__more {
  max-width: 44rem;
  margin: 0 auto;
  color: var(--muted);
  text-wrap: balance;
}
.hero__more-lead {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--forest);
}
.hero__more-lead .nowrap {
  white-space: nowrap;
}
.hero__more-lead em {
  font-style: italic;
  color: var(--clay-deep);
  white-space: nowrap;
}
.hero__more-lead::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin: 0.85rem auto 0.9rem;
  border-radius: 999px;
  background: var(--clay);
  opacity: 0.75;
}
.hero__more-body {
  margin: 0;
  font-size: clamp(1.1rem, 0.78rem + 1.65vw, 1.95rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink, var(--forest));
}
.hero__line {
  display: block;
  white-space: nowrap;
}
/* The first line is set a touch larger so it runs the same width as the bolder second */
.hero__line:first-child {
  font-size: 1.035em;
}
.hero__line--strong {
  font-weight: 700;
  color: var(--forest);
}
/* The arch comes from Evelyn's logo frame and sunlit conservatory windows */
.arch {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  background: var(--sage-soft);
}
.arch picture {
  width: 100%;
  height: 100%;
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section);
}
/* Adjacent tinted sections share a single band and paper texture. */
.section--tint {
  border-radius: var(--band-curve) var(--band-curve) 0 0;
  background: var(--tint);
}
.section--tint > .botanical-edge:first-child {
  border-radius: inherit;
}
.section__head {
  max-width: 44rem;
  margin-bottom: clamp(1.5rem, 1rem + 1.8vw, 2.35rem);
}
.section__lede {
  margin-bottom: 0;
  font-size: var(--step-1);
  line-height: 1.55;
}

/* Individual botanical drawings echo the ink lines of Evelyn's logo.
   They sit in the section margins and never take part in layout or input. */
.botanical-edge {
  position: relative;
  isolation: isolate;
}
.botanical-edge::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--botanical-image) var(--botanical-position) / var(--botanical-size) auto no-repeat;
  opacity: var(--botanical-opacity, 0.24);
  pointer-events: none;
}
.hero.botanical-edge {
  --botanical-image: url("/assets/img/botanical/open-flower.svg");
  --botanical-position: left -3.25rem bottom -5.75rem;
  --botanical-size: clamp(9rem, 14vw, 13rem);
  --botanical-opacity: 0.18;
}
#approach.botanical-edge {
  --botanical-image: url("/assets/img/botanical/branch-and-bud.svg");
  --botanical-position: right -1.5rem top -1rem;
  --botanical-size: clamp(11rem, 22vw, 19.5rem);
}
#fees.botanical-edge {
  --botanical-image: url("/assets/img/botanical/leaf-spray.svg");
  --botanical-position: right 0 top -1.1rem;
  --botanical-size: clamp(10rem, 20vw, 17.5rem);
  --botanical-opacity: 0.21;
}
.contact.botanical-edge {
  --botanical-image: url("/assets/img/botanical/trailing-stems.svg");
  --botanical-position: left -0.5rem bottom -0.5rem;
  --botanical-size: clamp(17rem, 29vw, 25rem);
  --botanical-opacity: 0.2;
}
@media (max-width: 52rem) {
  .botanical-edge {
    --botanical-opacity: 0.16;
  }
  #approach.botanical-edge {
    --botanical-position: right -1.75rem top -0.5rem;
    --botanical-size: 10rem;
  }
  #fees.botanical-edge {
    --botanical-position: right -1.25rem top -0.5rem;
    --botanical-size: 8rem;
    --botanical-opacity: 0.16;
  }
  .contact.botanical-edge::before {
    display: none;
  }
}
html[data-plain="true"] .botanical-edge::before,
html[data-contrast="more"] .botanical-edge::before {
  display: none;
}
@media print, (prefers-contrast: more), (forced-colors: active) {
  .botanical-edge::before {
    display: none;
  }
}

/* ---------- "Things people search at 11pm" ---------- */
.familiar {
  inline-size: 100%;
}
/* Drawn to match the google.com search box: white, a soft shadow, Arial,
   grey magnifier, then clear, mic and Lens. Sizes follow Google's 16px box
   in em, so the whole box scales up on wider screens. */
.search-demo__stack {
  display: none;
  inline-size: min(100%, 46rem);
  margin-inline: auto;
  font-size: clamp(1rem, 0.88rem + 0.55vw, 1.25rem);
}
.search-demo__bar {
  grid-area: 1 / 1;
  align-self: start;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  min-block-size: 2.875em;
  padding-inline: 0.875em 0.25em;
  border: 1px solid transparent;
  border-radius: 1.5em;
  background: #fff;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  color: #202124;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1em;
  line-height: 1.375;
  text-align: left;
}
/* An invisible copy holding every query keeps the space of the tallest one,
   so the page below does not move while the box grows and shrinks. */
.search-demo__bar--ghost {
  visibility: hidden;
}
.search-demo__bar--ghost .search-demo__text {
  display: grid;
}
.search-demo__bar--ghost .search-demo__text > span {
  grid-area: 1 / 1;
  padding-inline-end: 2px;
}
.search-demo__lead,
.search-demo__actions {
  display: flex;
  align-items: center;
  block-size: calc(2.875em - 2px);
}
.search-demo__lead {
  padding-inline-end: 0.8125em;
}
.search-demo__mag {
  inline-size: 1.25em;
  block-size: 1.25em;
  fill: #9aa0a6;
}
.search-demo__text {
  padding-block: calc(0.6875em - 1px);
  overflow-wrap: anywhere;
}
.search-demo__actions svg {
  box-sizing: content-box;
  inline-size: 1.5em;
  block-size: 1.5em;
  padding-inline: 0.5em;
}
.search-demo__clear {
  fill: #70757a;
}
.search-demo__lens {
  inline-size: 1.4em;
  block-size: 1.4em;
}
.search-demo__divider {
  inline-size: 1px;
  block-size: 1.875em;
  margin-inline: 0.0625em 0.25em;
  background: #dadce0;
}
@media (max-width: 30rem) {
  .search-demo__actions svg {
    padding-inline: 0.3em;
  }
}
/* The caret: thin like a browser's, blinking while the query sits finished */
.search-demo[data-playing] .search-demo__text > span::after {
  content: "";
  display: inline-block;
  inline-size: 1px;
  block-size: 1.15em;
  margin-inline-start: 1px;
  vertical-align: -0.2em;
  background: #202124;
}
.search-demo[data-playing]:not([data-typing]) .search-demo__text > span::after {
  animation: search-caret 1.06s step-end infinite;
}
@keyframes search-caret {
  50% { opacity: 0; }
}
.search-demo__queries {
  max-inline-size: 52rem;
  margin: 0 auto;
  padding-inline-start: 1.25em;
  text-align: left;
  overflow-wrap: anywhere;
}
.search-demo__queries li + li { margin-top: 0.4em; }

@media screen and (prefers-reduced-motion: no-preference) {
  html[data-search-animation]:not([data-still]) .search-demo__stack { display: grid; }
  html[data-search-animation]:not([data-still]) .search-demo__queries {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ---------- What Evelyn helps with ---------- */
.topics,
.help__more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem clamp(1.75rem, 3.5vw, 3rem);
}
.topics {
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}
.topic {
  position: relative;
  padding: 1.25rem 0 0.75rem;
  border-top: 1px solid var(--line-strong);
}
.topic::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.25rem;
  height: 2px;
  background: var(--clay);
}
.topic h3 {
  margin-bottom: 0.35rem;
}
.topic p:last-child {
  margin-bottom: 0;
}
/* A small framed botanical watercolor plate with caption */
.plate {
  width: min(100%, 13.5rem);
  margin: 0;
  justify-self: end;
}
.plate__arch {
  border: 5px solid var(--paper);
  box-shadow: var(--shadow-soft);
}
.plate figcaption {
  margin-top: 0.65rem;
  font-size: var(--step--1);
  line-height: 1.42;
  color: var(--muted);
}

/* ---------- Approach ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.pillar {
  position: relative;
  padding: 1.65rem 1.5rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0.95rem;
  left: 1.5rem;
  width: 2rem;
  height: 2.5px;
  border-radius: 999px;
  background: var(--clay);
}
.pillar p:last-child {
  margin-bottom: 0;
}
.approach__detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
/* Same card as the three pillars above, so the section has one card style */
.approach__box {
  position: relative;
  padding: 1.65rem 1.6rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.approach__box::before {
  content: "";
  position: absolute;
  top: 0.95rem;
  left: 1.6rem;
  width: 2rem;
  height: 2.5px;
  border-radius: 999px;
  background: var(--clay);
}
.approach__box > :last-child {
  margin-bottom: 0;
}
/* A plain two-column list in body weight, easier to scan than a run of bold */
.methods-list {
  columns: 2;
  column-gap: 1.5rem;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--ink);
}
.methods-list li {
  break-inside: avoid;
  padding: 0.18rem 0;
}

/* ---------- How it starts ---------- */
/* One vine runs down the middle. Each step hangs off it on a sprig, and the
   sprigs open from a closed bud (reach out) to a full bloom (first session). */
#start {
  padding-block: clamp(1.25rem, 0.5rem + 2vw, 2.75rem) clamp(4.75rem, 3.5rem + 4.5vw, 7.25rem);
}
#start .section__head {
  margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}
.steps {
  --vine-col: 11rem;
  --vine-mid: calc(var(--vine-col) / 2);
  --sprig-w: 9.25rem;
  --sprig-h: calc(var(--sprig-w) * 86 / 156);
  --leaf: 2.6rem;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--vine-col) minmax(0, 1fr);
  max-width: 54rem;
  margin: 0 auto;
  padding: 4rem 0;
  list-style: none;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: calc(50% - 1.875rem);
  width: 3.75rem;
  height: 4rem;
  background: url("/assets/img/botanical/step-vine-top.svg") center / contain no-repeat;
  opacity: 0.66;
  pointer-events: none;
}
.steps::before {
  top: 0;
}
.steps::after {
  bottom: 0;
  background-image: url("/assets/img/botanical/step-vine-foot.svg");
}
.step {
  --sprig: url("/assets/img/botanical/step-sprig-1.svg");
  position: relative;
  grid-column: 1;
  padding: 0.85rem 0 clamp(2.75rem, 2rem + 2.5vw, 4rem);
  text-align: right;
}
.step:nth-child(1) { grid-row: 1; }
.step:nth-child(2) { grid-row: 2; --sprig: url("/assets/img/botanical/step-sprig-2.svg"); }
.step:nth-child(3) { grid-row: 3; --sprig: url("/assets/img/botanical/step-sprig-3.svg"); }
.step:nth-child(4) { grid-row: 4; --sprig: url("/assets/img/botanical/step-sprig-4.svg"); }
.step:nth-child(even) {
  grid-column: 3;
  text-align: left;
}
/* The vine itself: one stretch per step, each meeting the next end to end */
.step::before,
.step::after {
  content: "";
  position: absolute;
  opacity: 0.66;
  pointer-events: none;
}
.step::before {
  top: 0;
  bottom: 0;
  left: 100%;
  width: var(--vine-col);
  background:
    url("/assets/img/botanical/step-stem-leaf.svg") left calc(var(--vine-col) * 0.737 - var(--leaf) * 0.125) top calc(71% + var(--leaf) * 0.04) / var(--leaf) var(--leaf) no-repeat,
    url("/assets/img/botanical/step-stem.svg") 0 0 / 100% 100% no-repeat;
}
/* The sprig reaching from the vine to the step's heading. Its stem leaves the
   vine a third of the way across the drawing (52 of 156), hence 1/3 and 2/3. */
.step::after {
  top: -1.1rem;
  left: calc(100% + var(--vine-mid) - var(--sprig-w) * 0.6667);
  width: var(--sprig-w);
  height: var(--sprig-h);
  background: var(--sprig) center / contain no-repeat;
  transform: scaleX(-1);
}
.step:nth-child(even)::before {
  left: auto;
  right: 100%;
  transform: scaleX(-1);
}
.step:nth-child(even)::after {
  left: auto;
  right: calc(100% + var(--vine-mid) - var(--sprig-w) * 0.6667);
  transform: none;
}
.step h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.3rem, 1.15rem + 0.55vw, 1.6rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.22;
}
.step p {
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--muted);
}
.step p:last-child {
  margin-bottom: 0;
}
html[data-plain="true"] .steps,
html[data-contrast="more"] .steps {
  display: block;
  max-width: 44rem;
  padding: 0;
}
html[data-plain="true"] .step,
html[data-contrast="more"] .step {
  padding: 0 0 2.25rem;
  text-align: left;
}
html[data-plain="true"] .steps::before,
html[data-plain="true"] .steps::after,
html[data-plain="true"] .step::before,
html[data-plain="true"] .step::after,
html[data-contrast="more"] .steps::before,
html[data-contrast="more"] .steps::after,
html[data-contrast="more"] .step::before,
html[data-contrast="more"] .step::after {
  display: none;
}
@media print, (prefers-contrast: more), (forced-colors: active) {
  .steps {
    display: block;
    max-width: 44rem;
    padding: 0;
  }
  .step {
    padding: 0 0 2.25rem;
    text-align: left;
  }
  .steps::before,
  .steps::after,
  .step::before,
  .step::after {
    display: none;
  }
}

/* ---------- Fees ---------- */
/* Open on the section background: insurance on the left, paying on your own
   and out of network stacked on the right */
.fees {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2.5rem, 1rem + 5vw, 5.5rem);
  align-items: start;
}
.fees__side {
  display: grid;
  gap: clamp(2.25rem, 1.75rem + 1.5vw, 3rem);
}
.fees__section {
  display: flex;
  flex-direction: column;
}
.fees__section::before {
  content: "";
  width: 2rem;
  height: 2.5px;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: var(--clay);
}
.fees__section > :last-child {
  margin-bottom: 0;
}
/* Three even columns of logos; a short last row stays centered */
.insurers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 0;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.insurers li {
  display: grid;
  place-items: center;
  flex: 0 0 calc(100% / 3);
  height: 3rem;
  padding: 0 0.5rem;
  text-align: center;
}
.insurers img {
  width: auto;
  max-width: min(100%, 7.25rem);
  height: auto;
  max-height: 2.75rem;
  object-fit: contain;
}
@media (max-width: 52rem) {
  .fees {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-areas: "title" "profile" "story";
  gap: 1.2rem;
}
.about > h2 {
  grid-area: title;
  margin: 0;
}
.about__profile {
  grid-area: profile;
  width: min(100%, 12rem);
}
.about__story {
  grid-area: story;
  max-width: 43rem;
}
.about__bio {
  margin-top: clamp(1.35rem, 0.9rem + 1.5vw, 2rem);
}
.about__bio > :last-child {
  margin-bottom: 0;
}
@media (min-width: 42rem) {
  .about {
    grid-template-columns: clamp(12rem, 22vw, 15rem) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "profile title" "profile story";
    gap: 0.95rem clamp(1.75rem, 4.5vw, 3.75rem);
    align-items: start;
  }
  .about__profile {
    width: 100%;
  }
}
.about__status {
  margin-block: 1rem 0.85rem;
  font-weight: 700;
  color: var(--clay-deep);
}
.arch--portrait {
  aspect-ratio: 344 / 360;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-card);
}
.arch--portrait img {
  object-position: 50% 25%;
}
.quote {
  margin: 0;
  padding-inline-start: clamp(0.85rem, 2vw, 1.25rem);
  border-inline-start: 1px solid var(--clay);
}
.quote blockquote {
  margin: 0;
}
.quote blockquote p {
  margin-bottom: 0.5rem;
  font-family: var(--font-brand);
  font-size: clamp(1.42rem, 1.16rem + 0.8vw, 1.85rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.35;
  color: var(--forest);
}
.quote__credit {
  margin-top: 1rem;
  line-height: 1.25;
}
.quote__name {
  display: block;
  color: var(--forest);
  font-family: var(--font-brand);
  font-size: clamp(1.15rem, 1.05rem + 0.65vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.about__credentials {
  margin-top: 1.1rem;
  padding-top: 0.65rem;
  border-block-start: 1px solid var(--line-strong);
}
.about__creds-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 650;
}
.creds {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.creds li {
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  font-size: var(--step--1);
  line-height: 1.34;
}
.creds img {
  width: 1.5rem;
  height: auto;
  justify-self: center;
}
.creds img[src$="michigan-lara.svg"] {
  width: 100%;
  margin-top: 0.15rem;
}
.creds__name {
  color: var(--forest);
  text-wrap: pretty;
}
/* Phones: credentials sit beside the portrait instead of under it in a narrow strip */
@media (max-width: 41.99rem) {
  .about__profile {
    display: grid;
    grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
    gap: 1.1rem;
    align-items: end;
    width: 100%;
  }
  .about__credentials {
    margin-top: 0;
  }
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: start;
}
/* With the built-in form, the heading sits above one wide form that carries the intro */
body:has(.contact__form:not([hidden])) .contact__grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
body:has(.contact__form:not([hidden])) .contact__intro > .title-label {
  margin-bottom: 0;
}
body[data-accepting="closed"] .contact__grid {
  grid-template-columns: minmax(0, 44rem);
}
.contact__direct {
  margin: 1.5rem 0 1.15rem;
  padding: 0;
  list-style: none;
}
.contact__direct li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line-strong);
  font-size: var(--step-1);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.contact__direct li:last-child {
  border-bottom: 1px solid var(--line-strong);
}
.contact__label {
  display: block;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 1rem;
}
.form__lead {
  margin: 0;
}
.form__intro {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.form__intro > p {
  margin: 0;
  max-width: 46rem;
}
.form__intro > p:not(.hint) {
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
}
@media (min-width: 52.01rem) {
  .contact__form {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: clamp(1.25rem, 0.75rem + 1.5vw, 2rem);
    padding: clamp(2rem, 1.25rem + 2vw, 3rem);
  }
  .contact__form > * {
    grid-column: 1 / -1;
  }
  .contact__form > .field--third {
    grid-column: span 2;
  }
  .contact__form > .field--half {
    grid-column: span 3;
  }
}
.contact__form,
.contact__card,
.contact__done {
  padding: clamp(1.4rem, 1rem + 2.2vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.contact__card > :last-child {
  margin-bottom: 0;
}
.field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field label,
.field legend {
  padding: 0;
  font-weight: 800;
  color: var(--forest);
}
.field legend {
  margin-bottom: 0.35rem;
}
.optional {
  font-weight: 500;
  color: var(--muted);
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
.callback-window select,
textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.03125rem;
  line-height: 1.4;
}
textarea {
  resize: vertical;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 1px;
  border-color: var(--forest);
}
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"],
fieldset[aria-invalid="true"] {
  border-color: var(--error);
}
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-width: 2px;
}
.callback-window__pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.75rem;
  margin-top: 0.15rem;
}
.callback-window__pair legend,
.callback-window__pair label {
  font-weight: 650;
  font-size: var(--step--1);
}
.callback-window select {
  min-width: 0;
  padding-inline: 0.6rem;
}
.contact__form .field > .hint {
  margin: 0 0 0.25rem;
}
@media (max-width: 32rem) {
  .callback-window__pair { grid-template-columns: minmax(0, 1fr); }
}
/* The second time choice waits behind a quiet link until someone wants it */
.add-time {
  justify-self: start;
  margin-top: 0.6rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: var(--forest);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(189, 100, 71, 0.55);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
  cursor: pointer;
}
.add-time:hover {
  color: var(--clay-deep);
}
.field__error {
  margin: 0;
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--error);
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.5rem;
}
.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.65rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.choice--block {
  display: flex;
  align-items: flex-start;
  padding: 0.35rem 0;
}
.choice--block input {
  margin-top: 0.28rem;
}
.choice input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--forest);
}
.insurer-picker {
  gap: 0.35rem;
}
/* Native radios also reveal the right fields if JavaScript is unavailable. */
@supports selector(form:has(input:checked)) {
  .form:not(:has([name="payment"][value="insurance"]:checked)) .insurer-picker,
  .insurer-picker:has([data-insurer-unlisted]:not(:checked)) .insurer-picker__other {
    display: none;
  }
}
/* A compact grid of names; the logos already appear in the fees section */
.insurer-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.25rem), 1fr));
  column-gap: 1rem;
}
.insurer-picker .insurer-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding-block: 0.3rem;
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.insurer-choice img {
  display: none;
}
.field--inline {
  max-width: 15rem;
  margin: 0.5rem 0;
}
.field--trap {
  position: absolute !important;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Small print above the button, without a box */
.form__notes {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.5;
}
.form__notes p {
  margin: 0 0 0.3em;
}
.form__notes p:last-child {
  margin-bottom: 0;
}
.form .button {
  justify-self: start;
}

.notice {
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-small);
  font-weight: 600;
}
.notice--error {
  background: var(--error-bg);
  border: 1.5px solid var(--error);
  color: var(--error);
}
.notice--ok {
  background: var(--ok-bg);
  border: 1.5px solid var(--forest);
  color: var(--ink);
}
.notice--todo {
  margin-bottom: 1.5rem;
  background: var(--sand);
  border: 1.5px dashed var(--clay-deep);
  color: var(--ink);
  font-weight: 500;
}
.notice > :last-child {
  margin-bottom: 0;
}
.contact__done h3 {
  font-size: var(--step-2);
}

/* ---------- Footer ---------- */
.site-footer {
  --focus: #f3d9bd;
  padding-block: clamp(2.75rem, 2rem + 3vw, 4rem) 2rem;
  border-radius: var(--band-curve) var(--band-curve) 0 0;
  background: var(--forest-deep);
  color: #f4efe4;
  font-size: 0.975rem;
}
.site-footer a {
  color: #fffaf1;
}
.site-footer a:hover {
  color: #f3d9bd;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 10.5rem) minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2rem clamp(1.5rem, 3.5vw, 3.25rem);
  align-items: start;
  margin-bottom: 2.25rem;
}
.site-footer__brand img {
  width: 10.5rem;
  height: auto;
}
.site-footer__subsection {
  margin-top: 1.15rem;
}
.site-footer__title {
  margin-bottom: 0.65rem;
  font-family: var(--font-brand);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d9cdb4;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer li {
  padding: 0.26rem 0;
  line-height: 1.48;
  overflow-wrap: anywhere;
}
/* Small print near the bottom, set off by a hairline rather than a box */
.crisis {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 239, 228, 0.22);
  font-size: 0.875rem;
  line-height: 1.6;
  color: #d5d9cf;
}
.crisis__title {
  margin-bottom: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #fffaf1;
}
.crisis p {
  max-width: 52rem;
  margin-bottom: 0.4rem;
}
.crisis p:last-child {
  margin-bottom: 0;
}
.site-footer__legal {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: #d5d9cf;
}

/* ---------- Inner pages: notices, thank-you, 404 ---------- */
.page,
.plain__main,
main a,
.site-footer a,
.insurers li {
  overflow-wrap: anywhere;
}
.page {
  padding-block: clamp(2.5rem, 2rem + 3.5vw, 4.5rem) var(--section);
}
.page h1 {
  font-size: var(--step-3);
  font-weight: 650;
}
.page__lead {
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.45;
  color: var(--forest);
  margin-bottom: 1.25rem;
}
.page h2 {
  margin-top: 1.85em;
  font-size: var(--step-2);
}
.page li {
  margin-bottom: 0.55em;
}
.page li > ol {
  margin-top: 0.55em;
}
.page__updated {
  margin-top: 2.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}

/* ---------- Bare pages: settings, form errors without JavaScript ---------- */
.plain__main {
  max-width: calc(44rem + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(2.5rem, 2rem + 4vw, 4.5rem) var(--gutter);
}
.plain__main h1 {
  font-size: var(--step-3);
  font-weight: 650;
}
.settings .form {
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.settings fieldset.field {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
}
.settings fieldset.field legend {
  padding: 0 0.4rem;
  font-size: 1.1rem;
}
.settings__logout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin: 2rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
  font-weight: 700;
}
.settings__back {
  margin-top: 2rem;
  font-weight: 700;
}

/* ---------- Responsive breakpoints ---------- */
@media (max-width: 52rem) {
  /* Narrow screens: the vine runs down the left edge and every step sits to its right */
  .steps {
    --vine-col: 4.75rem;
    --sprig-w: 6.25rem;
    --leaf: 1.9rem;
    grid-template-columns: var(--vine-col) minmax(0, 1fr);
    max-width: 36rem;
  }
  .steps::before,
  .steps::after {
    left: calc(var(--vine-mid) - 1.875rem);
  }
  .step,
  .step:nth-child(even) {
    grid-column: 2;
    padding-top: 2.6rem;
    text-align: left;
  }
  /* Every stretch sways outward so its leaves stay clear of the words */
  .step::before,
  .step:nth-child(even)::before {
    left: auto;
    right: 100%;
    transform: scaleX(-1);
  }
  .step::after,
  .step:nth-child(even)::after {
    top: -0.4rem;
    left: calc(var(--vine-mid) - var(--vine-col) - var(--sprig-w) * 0.3333);
    right: auto;
    transform: none;
  }
}

@media (max-width: 55rem) {
  .hero.botanical-edge {
    --botanical-position: right -2rem bottom -5.9rem;
    --botanical-size: 8rem;
    --botanical-opacity: 0.14;
  }
}

@media (max-width: 60rem) {
  .topics,
  .help__more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plate {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 52rem) {
  .pillars,
  .approach__detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .plate {
    width: min(58%, 12.5rem);
  }
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Phones and small tablets: the form sits inline on the page, without the card */
  .contact__form {
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
}
@media (max-width: 38rem) {
  /* Phones: a small plate, so it reads as a quiet accent */
  .plate {
    width: min(100%, 15rem);
  }
  .plate__arch {
    width: 7.5rem;
    border-width: 3px;
  }
  .plate figcaption {
    font-size: 0.8125rem;
  }
}

@media (max-width: 48rem) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
  .site-footer__brand img {
    width: 9rem;
  }
}

@media (max-width: 38rem) {
  .topics,
  .help__more,
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 30rem) {
  .eyebrow {
    font-size: 0.9375rem;
    letter-spacing: 0.16em;
  }
}

/* ---------- Reader choices (set from the Accessibility panel) ---------- */
html[data-size="large"] {
  font-size: 112.5%;
}
html[data-size="larger"] {
  font-size: 125%;
}

html[data-spacing="more"] body {
  line-height: 1.95;
  letter-spacing: 0.035em;
  word-spacing: 0.1em;
}
html[data-spacing="more"] main p,
html[data-spacing="more"] main li {
  margin-bottom: 1.3em;
}
html[data-spacing="more"] h1,
html[data-spacing="more"] h2,
html[data-spacing="more"] h3 {
  line-height: 1.35;
  letter-spacing: 0.01em;
}

html[data-plain="true"] .plate {
  display: none;
}
html[data-plain="true"] .help__more {
  grid-template-columns: minmax(0, 1fr);
}

html[data-contrast="more"] {
  --cream: #ffffff;
  --paper: #ffffff;
  --tint: #f2f2f2;
  --sand: #f2f2f2;
  --sand-deep: #1a1a1a;
  --sage: #1a1a1a;
  --forest: #0c2416;
  --forest-deep: #06140c;
  --ink: #0a0a0a;
  --muted: #262626;
  --clay: #6e2710;
  --clay-deep: #6e2710;
  --line: #1a1a1a;
  --line-strong: #1a1a1a;
  --focus: #b3260a;
  --error: #7a1500;
}
html[data-contrast="more"] a {
  text-decoration-thickness: 0.12em;
}
html[data-contrast="more"] .site-footer {
  color: #ffffff;
}
html[data-contrast="more"] .site-footer a,
html[data-contrast="more"] .site-footer__title,
html[data-contrast="more"] .site-footer__legal {
  color: #ffffff;
}

@media (prefers-contrast: more) {
  :root {
    --muted: #33423a;
    --line: #6f7a72;
    --line-strong: #274233;
  }
}

@media (forced-colors: active) {
  .button,
  .search-demo__bar {
    border: 1px solid ButtonText;
  }
  .search-demo[data-playing] .search-demo__text > span::after {
    background: CanvasText;
    forced-color-adjust: none;
  }
}

/* One subtle paper grain, shared across the page and its full-width color bands. */
:root {
  --site-grain: url("/assets/img/paper-grain.png");
}
body:not(.card),
.section--tint,
.site-footer {
  background-image: var(--site-grain);
}
html[data-contrast="more"],
html[data-plain="true"] {
  --site-grain: none;
}
@media print, (prefers-contrast: more), (forced-colors: active) {
  :root { --site-grain: none; }
}

@media print {
  .nav,
  .contact__form,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .section,
  .hero {
    padding-block: 1.25rem;
  }
  .hero {
    min-block-size: 0;
  }
  .section--tint,
  .site-footer {
    background: none;
    color: #000;
  }
  .site-footer a,
  .site-footer__title,
  .crisis__title,
  .site-footer__legal {
    color: #000;
  }
}
