/* Keepwell. Brand palette from her logo system (November 15, 2026). Archivo variable, self-hosted (SIL OFL).
   Headlines use the width axis at its widest; body text sits at normal width.
   Measured WCAG contrast for every text and background pair is in the logo-and-brand-colors pull request. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surfaces */
  --white: #FFFFFF;             /* page background, and button text */
  --mist-tint: #EEF1F3;         /* light bands and cards, a tint of Silver Mist */
  /* Text */
  --slate: #2C3743;             /* body text, all text on Slate Rose and Silver Mist, and the keyboard focus ring */
  --slate-soft: #55616D;        /* secondary text, a neutral. White and Mist Tint only (2.97:1 on Slate Rose, 4.18:1 on Silver Mist) */
  --plum: #4F4668;              /* headings and links, deep plum from Smoky Plum */
  --plum-dark: #3F3654;         /* link hover and visited */
  --button: #5E5478;            /* primary buttons, white text */
  --button-hover: #4F4668;      /* primary button hover */
  --blue: #476581;              /* secondary text links and icons, deep Stormy Blue. White and Mist Tint only */
  /* Brand colors: decoration only, never body text or button text */
  --smoky-plum: #857A9E;        /* borders, rules, and text 24px or larger */
  --stormy-blue: #6A8CA9;       /* dots, icons, accents */
  --mulberry: #A67CA4;          /* Dusty Mulberry: small accents */
  --slate-rose: #C9A9B8;        /* section bands, slate text only */
  --silver-mist: #CBD3D8;       /* section bands, slate text only */
  --line: rgba(44, 55, 67, .16); /* hairlines, a slate tint */
  --nav-bg: rgba(255, 255, 255, .94); /* white, slightly see-through */

  --wide: 125%;
  --measure: 62ch;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(5rem + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--slate);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--plum); }
a:visited { color: var(--plum-dark); }
a:hover { color: var(--plum-dark); }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }

h1, h2, h3 { color: var(--plum); font-stretch: var(--wide); letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.6rem); font-weight: 680; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 650; line-height: 1.1; }
h3 { font-size: 1.15rem; font-weight: 620; line-height: 1.3; }
p { margin: 0; max-width: var(--measure); }

.skip, .skip:visited, .skip:hover { position: absolute; left: -999px; top: 0; background: var(--slate); color: var(--white); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: calc(1rem + env(safe-area-inset-top, 0px)); }

/* Navigation */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: var(--nav-bg); z-index: 10;
}
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
/* The primary logo. The header link keeps its "Keepwell home" label; the footer copy is not a link. */
.wordmark { display: block; margin: 0; line-height: 0; }
.wordmark img { width: 160px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { text-decoration: none; font-size: .98rem; font-weight: 500; }
.nav__links a:not(.nav__cta):hover,
.nav__links a[aria-current="page"]:not(.nav__cta) { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1.5px; }
.nav__links .nav__cta, .nav__links .nav__cta:visited {
  background: var(--button); color: var(--white); font-weight: 600;
  border-radius: 999px; padding: .5rem 1.2rem;
}
.nav__links .nav__cta:hover { background: var(--button-hover); color: var(--white); }
.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav__toggle {
    display: block; font: inherit; font-weight: 600; color: var(--plum);
    background: none; border: 1.5px solid var(--plum); border-radius: 999px; padding: .4rem 1rem; cursor: pointer;
  }
  .nav__toggle:hover { color: var(--plum-dark); border-color: var(--plum-dark); }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem 1.5rem 1.25rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .8rem 0; font-size: 1.1rem; width: 100%; }
  .nav__links .nav__cta, .nav__links .nav__cta:visited { width: auto; margin-top: .75rem; padding: .75rem 1.5rem; }
}

/* Hero */
.hero { padding: clamp(3rem, 6vw, 6rem) 0 clamp(3.5rem, 7vw, 6.5rem); }
.hero__grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.eyebrow { color: var(--plum); font-weight: 600; margin-bottom: 1.25rem; }
.lede { font-size: 1.2rem; color: var(--slate-soft); margin-top: 1.75rem; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.5rem; }
.button, .button:visited {
  display: inline-block; background: var(--button); color: var(--white); text-decoration: none;
  font-weight: 600; padding: 1rem 1.6rem; border-radius: 999px;
}
.button:hover { background: var(--button-hover); color: var(--white); }
/* Secondary text links, beside a button or under a section */
.textlink, .textlink:visited { color: var(--blue); font-weight: 600; text-underline-offset: .3em; text-decoration-thickness: 1.5px; }
.textlink:hover { color: var(--plum-dark); }
.hero__image { margin: 0; border-radius: 4px 140px 4px 4px; overflow: hidden; }
.hero__image svg, .hero__image img { width: 100%; height: auto; aspect-ratio: 13 / 15; object-fit: cover; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__image { max-width: 420px; border-radius: 4px 96px 4px 4px; }
}

/* Trust strip: the Silver Mist band, slate text only */
.trust { background: var(--silver-mist); color: var(--slate); }
.trust__list {
  list-style: none; padding: 1.35rem 0; margin-block: 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
}
.trust__list li { font-stretch: var(--wide); font-weight: 560; font-size: 1.05rem; }

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
/* The section right after the hero shares its background, so the hero's own bottom padding already does most of the spacing */
.hero + .section { padding-top: clamp(1rem, 2vw, 2rem); }
.section--tint { background: var(--mist-tint); }
.section__head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head p { color: var(--slate-soft); font-size: 1.1rem; max-width: 52ch; }

/* Services: rows, icon and title on the left, description on the right */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 2.5rem minmax(0, 22rem) minmax(0, 1fr);
  gap: 1rem 2rem; align-items: start; padding: 1.75rem 0; border-bottom: 1px solid var(--line);
}
.service p { color: var(--slate-soft); }
.icon { width: 2rem; height: 2rem; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .service { grid-template-columns: 2.5rem 1fr; }
  .service p { grid-column: 2; }
}

.section__more { margin-top: 2rem; }

/* Who I work with */
.audiences { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; max-width: 960px; }
.audiences li { border-top: 3px solid var(--smoky-plum); padding-top: 1.1rem; }
.audiences p { margin-top: .4rem; color: var(--slate-soft); }
@media (max-width: 860px) { .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .audiences { grid-template-columns: 1fr; gap: 1.5rem; } }

/* A one-line note under the hero, for her replacement location line */
.reach { margin-top: 1.5rem; color: var(--slate-soft); font-weight: 500; }

/* How it works: a true sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: block; font-stretch: var(--wide); font-weight: 300;
  font-size: 3.5rem; line-height: 1; color: var(--smoky-plum); margin-bottom: 1rem; /* 56px, large text */
}
.steps p { margin-top: .6rem; color: var(--slate-soft); }
.steps a { text-underline-offset: .2em; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 2rem; } }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem 4rem; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-weight: 620; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--blue); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 1.4rem; color: var(--slate-soft); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* Closing band: the Slate Rose band */
.closing { background: var(--slate-rose); color: var(--slate); }
/* Slate Rose takes slate text only, headings and links included. Buttons keep their own colors. */
:is(.closing, .lane--quote, .tier--quote) h2,
:is(.closing, .lane--quote, .tier--quote) a:not(.button),
:is(.closing, .lane--quote, .tier--quote) a:not(.button):visited,
:is(.closing, .lane--quote, .tier--quote) a:not(.button):hover { color: var(--slate); }
.closing h2 { max-width: 22ch; }
.closing .hero__actions { margin-top: 2rem; }

/* Sample work: up to three static images, shown only once main.js lists one */
.samples { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.sample { background: var(--mist-tint); border-radius: 6px; overflow: hidden; }
.sample img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; }
@media (max-width: 760px) { .samples { grid-template-columns: 1fr; max-width: 420px; } }

/* Calendly inline embed, only if a page ever carries a #booking box again */
.calendly-inline-widget { min-width: 300px; height: 700px; }

/* Inner pages */
.page { padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 10vw, 8rem); min-height: 45vh; }
.page h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.8rem); max-width: 22ch; }
.page__intro { font-size: 1.2rem; color: var(--slate-soft); margin-top: 1.5rem; max-width: 52ch; }
.prose { margin-top: 1.5rem; }
.prose p + p { margin-top: 1.1rem; }
.prose .page__intro { margin-top: 0; }
.page__section { margin-top: clamp(3rem, 6vw, 4.5rem); }
.page__section h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 1.25rem; }
.page__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.5rem; }
.page__closing { padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.page__closing .page__actions { margin-top: 1.5rem; }

/* About: how I work, tools */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; max-width: 960px; }
.principles li { border-top: 3px solid var(--smoky-plum); padding-top: 1.1rem; }
.principles p { margin-top: .5rem; color: var(--slate-soft); }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.tools li { background: var(--mist-tint); border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1rem; font-weight: 500; }

/* Services: one card per tier, plus custom quotes */
.lanes { display: grid; gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); max-width: 860px; }
.lane { background: var(--mist-tint); border-radius: 6px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.lane--quote { background: var(--slate-rose); color: var(--slate); }
.lane h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.lane p, .lane ul { margin-top: .9rem; }
.lane ul { padding-left: 1.25rem; max-width: var(--measure); }
.lane li + li { margin-top: .35rem; }
.lane p.lane__note { color: var(--slate-soft); font-size: .95rem; }

/* Pricing: tier cards, what every plan includes. The FAQ reuses the home page's .faq rules. */
.tiers { list-style: none; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.tier { background: var(--mist-tint); border-radius: 6px; padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; align-items: flex-start; }
.tier h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
.tier__price { margin-top: 1rem; color: var(--slate-soft); }
.tier__per { white-space: nowrap; } /* keeps "/ month" together when a price wraps */
.tier__amount { font-stretch: var(--wide); font-weight: 680; font-size: clamp(2.2rem, 1.8rem + 1.4vw, 2.8rem); line-height: 1.1; color: var(--plum); }
.tier__facts { width: 100%; margin: 1.5rem 0 1.75rem; border-top: 1px solid var(--line); }
.tier__facts div { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.tier__facts dt { font-size: .9rem; color: var(--slate-soft); }
.tier__facts dd { margin: .15rem 0 0; font-weight: 560; }
.tier .button { margin-top: auto; }
.tier--quote { grid-column: 1 / -1; background: var(--slate-rose); color: var(--slate); }
.tier--quote p { margin-top: .75rem; }
.tier--quote .button { margin-top: 1.5rem; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tiers__note { margin-top: 1rem; font-size: .9rem; color: var(--slate-soft); } /* platform fees under the cards. Slate Soft on white */
.included { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; max-width: 960px; }
.included li { border-top: 3px solid var(--smoky-plum); padding-top: 1rem; font-weight: 500; }
@media (max-width: 760px) { .included { grid-template-columns: 1fr; gap: 1.25rem; } }

/* Get started: the intake form */
.intake { margin-top: clamp(2.5rem, 5vw, 3.5rem); max-width: 720px; }
.intake__required { color: var(--slate-soft); }
.intake__group { border: 0; margin: 2.75rem 0 0; padding: 0; min-width: 0; }
.intake__group > legend {
  padding: 0; margin-bottom: 1.4rem; color: var(--plum); font-stretch: var(--wide); font-weight: 650;
  font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); line-height: 1.15;
}
.field { margin: 0 0 1.5rem; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; padding: 0; margin-bottom: .45rem; font-weight: 600; }
.field__opt { font-weight: 400; color: var(--slate-soft); }
.field__hint { margin: -.15rem 0 .65rem; color: var(--slate-soft); font-size: .95rem; }
.field--check .field__hint { margin: .35rem 0 0 1.75rem; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field input[type="tel"], .field select, .field textarea {
  display: block; width: 100%; padding: .7rem .85rem; font: inherit; color: var(--slate);
  background: var(--white); border: 1px solid var(--slate-soft); border-radius: 6px;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--plum); box-shadow: 0 0 0 1px var(--plum); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.5rem; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }
.choice { display: flex; align-items: flex-start; gap: .65rem; font-weight: 400; cursor: pointer; }
.field > label.choice { display: flex; } /* consent and text consent sit straight inside .field, whose label rule is display: block */
.choice input { flex: none; width: 1.1rem; height: 1.1rem; margin: .25rem 0 0; accent-color: var(--button); }
.field__error { margin-top: .45rem; color: var(--plum); font-weight: 600; font-size: .95rem; }
.intake__consent { margin-top: 2.5rem; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.intake__turnstile { margin-top: 1.5rem; min-height: 65px; }
.intake__send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
button.button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
button.button:disabled { opacity: .6; cursor: wait; }
.intake__status { font-weight: 600; }
.intake__status:empty { display: none; }
.intake__private { margin-top: 1.25rem; color: var(--slate-soft); font-size: .95rem; }
.intake-fallback, .intake-note { max-width: 720px; margin-top: 2.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--mist-tint); border-radius: 6px; }
.intake-fallback h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.intake-fallback p { margin-top: .75rem; }

/* Privacy and terms pages */
.legal { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.legal__body { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 680; line-height: 1.08; }
.legal__updated { color: var(--slate-soft); margin: .9rem 0 2.5rem; }
.legal h2 { font-size: 1.3rem; margin: 2.5rem 0 .75rem; }
.legal p + p { margin-top: 1rem; }
.legal a { text-underline-offset: .2em; }
.legal__list { margin: 1rem 0; padding-left: 1.25rem; max-width: var(--measure); }
.legal__list li + li { margin-top: .4rem; }

/* Footer */
.footer { padding: 3rem 0 3.5rem; font-size: .95rem; color: var(--slate-soft); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 3rem; align-items: start; }
.footer .wordmark img { width: 140px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.5rem; }
.footer__links a { text-underline-offset: .2em; }
.footer__privacy { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: none; font-size: .88rem; }
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__links { flex-direction: column; justify-content: flex-start; gap: .6rem; }
}

/* Subtle fade in (Q22). Opacity only, once per section, off for reduced motion. */
.js .reveal { opacity: 0; transition: opacity .7s ease; }
.js .reveal.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transition: none; }
}
