/* Assistive Writer — calm clinical warmth. Designed to be shown by a clinician to a patient:
   large accessible type, high contrast, plain structure, generous space, reassuring tone.
   The site itself models the accessibility it sells. */

:root {
  --paper:      #FCFAF6;   /* warm near-white */
  --panel:      #F2ECE1;   /* soft sand panel */
  --panel-2:    #EAF2F0;   /* faint calm teal wash */
  --ink:        #23201C;   /* warm near-black — high contrast on paper */
  --muted:      #5C564D;   /* secondary text — still ≥ AA on paper */
  --teal:       #2E7D74;   /* trust accent */
  --teal-deep:  #1F5C55;
  --teal-ink:   #13433E;
  --terra:      #BB6A4E;   /* warm secondary, used sparingly */
  --line:       #E0D7C7;
  --focus:      #1F5C55;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;              /* large, accessible baseline */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
a { color: var(--teal-deep); }
img { max-width: 100%; display: block; }

/* Visible focus for keyboard + assistive tech — accessibility is the product. */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* ── Header / nav ─────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand .logo { width: 34px; height: 34px; border-radius: 9px; background: var(--teal); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 20px; }
.brand b { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; }
.nav-links a:hover { color: var(--teal-deep); }
.btn {
  display: inline-block; background: var(--teal); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 12px 22px; border-radius: 10px; border: 2px solid var(--teal);
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn.lg { font-size: 18px; padding: 15px 30px; }
.btn.ghost { background: transparent; color: var(--teal-deep); }
.btn.ghost:hover { background: var(--panel-2); }
@media (max-width: 760px) { .nav-links .only-wide { display: none; } }

/* ── Hero ─────────────────────────────── */
.hero { padding: 72px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-art { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 20px 50px rgba(31,92,85,0.16); border: 1px solid var(--line); }
.hero-grid .hero h1, .hero-grid .hero .lede { max-width: none; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero-art { max-width: 460px; margin: 0 auto; } }
/* step icons — number badge top-left, icon quietly top-right */
.step { position: relative; }
.step .icon { position: absolute; top: 26px; right: 24px; width: 44px; height: 44px; opacity: 0.9; }
.step .icon img { width: 44px; height: 44px; display: block; }
.eyebrow { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep); }
.hero h1 { font-size: clamp(36px, 6vw, 62px); margin: 18px 0 0; max-width: 16ch; }
.hero .lede { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.6; color: var(--muted); margin: 22px 0 0; max-width: 54ch; }
.hero .cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .reassure { margin-top: 16px; font-size: 15.5px; color: var(--muted); }

/* ── Sections ─────────────────────────────── */
section { padding: 64px 0; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); max-width: 20ch; }
.section-lede { font-size: 20px; color: var(--muted); margin-top: 16px; max-width: 60ch; line-height: 1.65; }
.tint { background: var(--panel); }
.tint-teal { background: var(--panel-2); }
.ink-band { background: var(--teal-ink); color: #F3EFE8; }
.ink-band h2 { color: #fff; }
.ink-band p { color: #D9E6E3; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; }
.tint .step { background: #fff; }
.step .num { width: 42px; height: 42px; border-radius: 11px; background: var(--teal); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.step h3 { font-size: 22px; margin: 16px 0 0; }
.step p { font-size: 17px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

/* Who it's for */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.who-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 12px; padding: 22px 22px; }
.who-card h3 { font-size: 20px; }
.who-card p { font-size: 16.5px; color: var(--muted); margin-top: 8px; line-height: 1.55; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature + .feature { margin-top: 56px; }
.feature .art { background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; min-height: 260px; display: grid; place-items: center; padding: 30px; text-align: center; color: var(--teal-deep); }
.feature h2 { font-size: clamp(26px, 3vw, 34px); }
.feature p { font-size: 18.5px; color: var(--muted); margin-top: 14px; line-height: 1.65; }

/* Team / approach */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; }
.team-card .role { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-deep); }
.team-card h3 { font-size: 21px; margin: 8px 0 0; }
.team-card p { font-size: 16.5px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--teal); box-shadow: 0 18px 44px rgba(31,92,85,0.12); }
.plan .tag { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); }
.plan h3 { font-size: 25px; margin: 6px 0 0; }
.plan .price { font-family: var(--serif); font-size: 40px; font-weight: 600; margin: 16px 0 2px; }
.plan .price span { font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--muted); }
.plan .sub { font-size: 15.5px; color: var(--muted); min-height: 44px; }
.plan ul { list-style: none; margin: 18px 0 24px; display: flex; flex-direction: column; gap: 11px; }
.plan li { font-size: 16.5px; line-height: 1.5; padding-left: 28px; position: relative; color: var(--ink); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.plan .btn { margin-top: auto; text-align: center; }
.pill-note { margin-top: 28px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; font-size: 16.5px; color: var(--teal-ink); }

/* Callout / legacy */
.legacy { text-align: center; }
.legacy .quote { font-family: var(--serif); font-size: clamp(26px, 4vw, 42px); line-height: 1.3; max-width: 22ch; margin: 0 auto; color: #fff; }
.legacy p { max-width: 56ch; margin: 22px auto 0; }

/* Trust / assurance strip */
.assure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.assure .item { text-align: left; }
.assure .item h3 { font-size: 18px; }
.assure .item p { font-size: 15.5px; color: var(--muted); margin-top: 6px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); max-width: 20ch; margin: 0 auto; }
.cta-band p { margin: 16px auto 0; max-width: 50ch; color: var(--muted); font-size: 19px; }
.cta-band .cta-row { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--panel); border-top: 1px solid var(--line); padding: 40px 0; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: center; }
.foot .fine { font-size: 14.5px; color: var(--muted); max-width: 56ch; }
.foot a { color: var(--teal-deep); }
.disclaimer { margin-top: 18px; font-size: 13.5px; color: var(--muted); max-width: 70ch; line-height: 1.6; }

/* Reveal on scroll (graceful) */
@keyframes rise { from { opacity: 0; transform: translateY(22px);} to { opacity: 1; transform: none; } }
.reveal { opacity: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 3% cover 22%; }
  }
}

/* Responsive */
@media (max-width: 860px) {
  .steps, .who, .team-grid, .plans, .assure { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature .art { min-height: 180px; }
}
