/* ─────────────────────────────────────────────────────────────────────────
   StayHome Companion — the family-facing pages.

   Hand-written, not Tailwind. The house app compiles Tailwind 3 by hand with
   no build script, and importing that toolchain for the three pages this
   application serves would be more machinery than the problem needs. Its own
   fallback error page already does exactly this — the palette as custom
   properties — so the pattern is established.

   FAMILY RESEMBLANCE, NOT A COPY. The house's decisions worth keeping are the
   warm ground (easier on an older eye than white), the generous targets, the
   rem-based text scaling, and the plain-spoken register. Companion takes a
   green accent rather than the house's brown and gold, because it is a
   separate product with a partner attached to it.

   FOUR THINGS FROM THE HOUSE DELIBERATELY NOT COPIED, all flagged when its UI
   was surveyed:

     1. White on the house's gold accent is about 2.5:1 — its submit buttons
        fail WCAG AA at normal size. For an audience with failing eyesight
        that is the wrong place to economise. This accent is ~7:1 on white.
     2. It has no :focus-visible styling on buttons or links at all. Somebody
        navigating by keyboard cannot see where they are.
     3. It has no prefers-reduced-motion guard, despite a global fade-in and a
        hover lift on 125 cards.
     4. Its `a, button { min-height: 44px }` applies to EVERY link, which
        forces inline links inside prose to 44px tall. Here the rule is scoped
        to things that are actually buttons.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Warm stone ground and near-white cards: the house's insight, kept. */
  --ground:      #EFEAE1;
  --card:        #FAF8F4;
  --card-sunk:   #F2EEE6;

  --ink:         #1E2A26;
  --ink-soft:    #55635E;
  --ink-faint:   #7C8A85;
  --line:        #D9D2C6;

  /* ~7:1 against white, so white-on-accent passes AA comfortably. */
  --accent:      #2C6B5B;
  --accent-dark: #1F5044;
  --accent-tint: #E4EDE9;

  --danger:      #8F3520;
  --danger-tint: #F8E9E4;
  --notice-tint: #FBF1DF;
  --notice-ink:  #6B4A12;

  /* The landing page's deep bands. Deliberately NOT --accent-dark: that token
   * is a TEXT colour and inverts to a light mint under prefers-color-scheme:
   * dark, which would paint the hero pale green and leave the white type on it
   * unreadable. This one stays dark in both schemes because it is a surface. */
  --band-deep:   #1F5044;

  /* The header bars. Surfaces, so they stay dark in both schemes. */
  --bar:         #2C6B5B;
  --bar-deep:    #1F5044;

  --radius:      14px;
  --radius-lg:   20px;
  --shadow:      0 1px 2px rgba(30, 42, 38, .06), 0 1px 8px rgba(30, 42, 38, .04);
  --shadow-lift: 0 2px 4px rgba(30, 42, 38, .08), 0 8px 24px rgba(30, 42, 38, .07);

  /* No webfont. The house uses the system stack and is right to: it renders
     instantly, it is what the reader's other applications use, and a webfont
     that fails to load on a slow connection leaves the page unstyled. */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* The house has no dark mode at all. Some older people find a dark screen
   markedly easier, and honouring the setting they already chose costs little.
   Tokens only — no component rule below names a colour directly. */
@media (prefers-color-scheme: dark) {
  :root {
    --ground:      #141A18;
    --card:        #1C2422;
    --card-sunk:   #232C29;

    --ink:         #E6EBE8;
    --ink-soft:    #A7B3AF;
    --ink-faint:   #7D8985;
    --line:        #2E3A36;

    --accent:      #74B9A3;
    --accent-dark: #8FCBB7;
    --accent-tint: #1B2A26;

    /* Still a dark surface, just deeper, so the band reads as green against
       the near-black ground rather than glowing out of it. */
    --band-deep:   #16302A;
    --bar:         #1C3F36;
    --bar-deep:    #16302A;

    --danger:      #E8A38C;
    --danger-tint: #2C1D18;
    --notice-tint: #2A2318;
    --notice-ink:  #E0C48A;

    --shadow:      0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .45), 0 8px 24px rgba(0, 0, 0, .35);

    color-scheme: dark;
  }
}

/* ── base ───────────────────────────────────────────────────────────────── */

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

html {
  /* 16px, replaced by the inline bootstrap in the layout when the reader has
     chosen a size. Everything below is in rem, so changing this one value
     scales the whole page — spacing and targets included, not only text. */
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* iPad momentum scrolling, from the house. */
html, body, main { -webkit-overflow-scrolling: touch; }

main { flex: 1; }

h1, h2, h3 { line-height: 1.25; margin: 0; text-wrap: balance; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

/* ── the header: two stacked bars, as the house does ────────────────────── */

.bar-wrap { position: sticky; top: 0; z-index: 10; }

/* --bar, not --accent.
 *
 * `--accent` and `--accent-dark` are TEXT colours: under
 * prefers-color-scheme: dark they invert to light mints so they can be read on
 * a dark ground. Painting a surface with them made the header a pale mint bar
 * carrying white type — about 2:1, on every page in the product, for anybody
 * whose system is set to dark. Found 8 Oct 2026 while checking the new landing
 * page in dark mode; the fault was older than that and on every page.
 *
 * This stylesheet's own header criticises the house app for shipping a 2.5:1
 * button, so it is not a thing to leave in. */
.bar {
  background: var(--bar);
  color: #fff;
  box-shadow: var(--shadow);
}

.bar-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.bar h1 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: .01em;
}

/* Fixed-width spacers keep the centre title from shifting between pages —
   the house's trick, and worth copying. */
.bar-slot { width: 2.75rem; flex: none; }

.bar-brand {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .75;
  white-space: nowrap;
}

/* The text-size strip. */
.textsize {
  background: var(--bar-deep);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.textsize-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: .25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .25rem;
}

.textsize-label { font-size: .75rem; opacity: .8; margin-right: .25rem; }

.textsize button {
  appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  /* 2.25rem, not 44px: these sit in a short strip and are not the primary
     way anybody operates the page. Everything that IS gets 2.75rem below. */
  min-width: 2.25rem;
  min-height: 2.25rem;
  font-family: inherit;
  font-weight: 700;
}

.textsize button:hover { background: rgba(255, 255, 255, .18); }
.textsize button.reset { font-weight: 400; font-size: .75rem; opacity: .8; }

/* ── page furniture ─────────────────────────────────────────────────────── */

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-block: 1.5rem 3rem;
}

.page-narrow { max-width: 30rem; }

.lede {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.card + .card { margin-top: 1rem; }

.card-head { margin-bottom: 1rem; }
.card-head h2 { margin-bottom: .25rem; }
.card-head p { color: var(--ink-soft); font-size: .9375rem; margin: 0; }

.stack       { display: flex; flex-direction: column; gap: 1.25rem; }
.stack-tight { display: flex; flex-direction: column; gap: .75rem; }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

/* ── forms ──────────────────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: .375rem; }

label {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
}

/* The house marks nothing as required and relies on the browser bubble. Here
   every field says which it is, because a form that rejects a submission
   without having said so is a form an older person abandons. */
.optional {
  font-weight: 400;
  color: var(--ink-faint);
}

.hint {
  font-size: .875rem;
  color: var(--ink-soft);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: .625rem .75rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

textarea { min-height: 6rem; resize: vertical; }

input::placeholder, textarea::placeholder { color: var(--ink-faint); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

/* Aria-invalid rather than a class, so the visual state and the state a
   screen reader announces can never drift apart. */
[aria-invalid="true"] { border-color: var(--danger); }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--danger-tint); }

.field-error {
  font-size: .875rem;
  font-weight: 600;
  color: var(--danger);
}

/* Choices: a whole tappable row, not a 20px box to hit. */
.choice {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .875rem 1rem;
  background: var(--card-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 2.75rem;
}

.choice:hover { border-color: var(--accent); }

.choice input {
  width: 1.375rem;
  height: 1.375rem;
  margin: .125rem 0 0;
  accent-color: var(--accent);
  flex: none;
  cursor: pointer;
}

.choice-text { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.choice-text strong { font-weight: 600; }
.choice-text span { font-size: .875rem; color: var(--ink-soft); }

.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
}

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  /* 2.75rem = 44px at the default root size, and it scales with the reader's
     chosen text size rather than staying fixed while the type grows. */
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: .75rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-quiet {
  background: transparent;
  color: var(--accent);
  border-color: var(--line);
}
.btn-quiet:hover { background: var(--card-sunk); color: var(--accent-dark); }

.btn-block { width: 100%; }

.btn:disabled { opacity: .55; cursor: not-allowed; }

.actions { display: flex; flex-direction: column; gap: .75rem; }

@media (min-width: 30rem) {
  .actions { flex-direction: row-reverse; justify-content: flex-start; }
  .actions .btn-block { width: auto; }
}

/* ── messages ───────────────────────────────────────────────────────────── */

/* Every one of these carries role="alert" in the markup. The house's banners
   have no role and no aria-live, so a screen reader announces nothing at all
   when a form comes back with an error. */
.msg {
  padding: .875rem 1rem;
  border-radius: var(--radius);
  font-size: .9375rem;
  margin-bottom: 1.25rem;
}

.msg-error  { background: var(--danger-tint); color: var(--danger); }
.msg-ok     { background: var(--accent-tint); color: var(--accent-dark); }
.msg-notice { background: var(--notice-tint);  color: var(--notice-ink); }

.msg ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.msg li { margin-bottom: .25rem; }
.msg strong { display: block; margin-bottom: .25rem; }

/* A telephone number, anywhere.
 *
 * It must stay INLINE and on ONE line. Inside .msg the rule above turns every
 * <strong> into its own block, which is right for the lead-in line and wrong
 * for a number mid-sentence — it stranded "778 744 9997" on a line of its own
 * and pushed the following full stop onto another. And a number broken across
 * a line break is a number somebody cannot dial, which on these pages is the
 * only thing being offered. */
.tel {
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* A number meant to be READ ALOUD down a telephone to somebody who is writing
 * it on a pad. Big, spaced, on its own line, nothing beside it to lose your
 * place in. Asked for by Tom on 7 October 2026: the caregiver has to be able
 * to say it to the resident, and a number set in body text is the wrong size
 * for that job. */
.tel-aloud {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  margin: .5rem 0;
}

@media (max-width: 30rem) {
  /* Still one line at phone width: a number that wraps cannot be read out. */
  .tel-aloud { font-size: 1.375rem; letter-spacing: .02em; }
}

/* ── small parts ────────────────────────────────────────────────────────── */

.pill {
  display: inline-block;
  padding: .125rem .5rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  background: var(--card-sunk);
  color: var(--ink-soft);
}

.pill-waiting { background: var(--notice-tint); color: var(--notice-ink); }
.pill-ready   { background: var(--accent-tint); color: var(--accent-dark); }

.who {
  font-size: 1.125rem;
  font-weight: 600;
  padding: .75rem 1rem;
  background: var(--card-sunk);
  border-radius: var(--radius);
  /* A long address must wrap rather than push the page sideways — the house
     learned this on its own recovery modal. */
  overflow-wrap: anywhere;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 1.25rem 1rem 2rem;
  text-align: center;
  font-size: .8125rem;
  color: var(--ink-faint);
}

footer.site a { color: var(--ink-soft); }

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

/* ── focus, which the house omits entirely ──────────────────────────────── */

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Inputs draw their own ring above, so they do not need a second one. */
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
}

/* Skip link — the house has none. */
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: .75rem 1rem;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  transition: top .15s ease;
}

.skip:focus { top: 1rem; }

/* ── motion, which the house also omits ─────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  main { animation: rise .2s ease-out; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
  }

  .card { transition: box-shadow .2s ease; }
}

@media print {
  .bar-wrap, .skip, .actions { display: none; }
  body { background: #fff; color: #000; }
  .card { border-color: #999; box-shadow: none; }
}

/* ─────────────────────────────────────────── the "?" beside a label
 *
 * A browser popover, not a scripted modal: Escape, click-outside, focus
 * return and the ARIA wiring all come free, and a hand-rolled dialog
 * usually gets at least one of them wrong — most often leaving a keyboard
 * user unable to get out.
 *
 * It is ADDITIVE. The inline hint under each field stays visible, because
 * anything somebody must read to fill the field in correctly should not be
 * behind a tap. This holds the longer version for whoever wants it.
 */
.help {
  /* 44px of tappable area around a 22px dot, so it is reachable on a phone
   * without a huge circle sitting beside the label. */
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: -0.75rem 0 -0.75rem 0.25rem;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}

.help::before {
  content: "?";
  display: inline-grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 0.875rem;
}

/* The glyph itself comes from ::before, so the button's own text is hidden
 * — it stays in the accessible name via aria-label. */
.help {
  font-size: 0;
}

.help:hover::before,
.help:focus-visible::before {
  background: var(--accent-tint);
}

.help:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 50%;
}

/* The browser's own stylesheet already puts a popover in the top layer with
 * `position: fixed; inset: 0; margin: auto`, so it lands centred in the
 * viewport on a phone without any positioning of our own. What it does not do
 * is keep a long explanation inside a short screen — hence the max-height and
 * the scroll, and the dvh unit so an iOS address bar appearing does not push
 * the Close button out of reach. */
.help-pop {
  width: min(32rem, calc(100vw - 2rem));
  max-height: min(80dvh, 34rem);
  overflow-y: auto;
  margin: auto;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 18px 48px rgb(0 0 0 / 22%);
  /* Momentum scrolling inside the panel rather than the page behind it. */
  overscroll-behavior: contain;
}

/* Body text does not shrink on a phone. This is the explanation somebody
 * opened BECAUSE they were unsure, so it is the worst place to save space. */
@media (max-width: 30rem) {
  .help-pop {
    width: calc(100vw - 1.5rem);
    padding: 1.125rem 1.25rem;
  }

  .help-pop p {
    font-size: 1.0625rem;
  }
}

.help-pop h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.help-pop p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.help-pop p:last-of-type {
  margin-bottom: 1rem;
}

/* A full-width Close button on a phone. A small one in a corner is the usual
 * way a popover becomes a trap on a touch screen — tapping outside dismisses
 * it, but nobody is obliged to know that. */
.help-pop .actions .btn {
  min-height: 2.75rem;
}

@media (max-width: 30rem) {
  .help-pop .actions .btn {
    width: 100%;
  }
}

.help-pop::backdrop {
  background: rgb(30 42 38 / 45%);
}

/* No popover support: hide the button AND the panel. Without this the panel
 * renders inline as ordinary markup, so every explanation on the page would
 * appear at once. The inline hints carry the necessary wording, so nothing
 * required is lost. */
@supports not selector(:popover-open) {
  .help,
  .help-pop {
    display: none !important;
  }
}

/* ─────────────────────────────── classes the sign-up page needs
 *
 * These exist because the Content-Security-Policy in Controller::view() is
 *
 *     style-src 'self'
 *
 * with no 'unsafe-inline'. That blocks a `style="..."` ATTRIBUTE, not just an
 * inline <style> block — which the first version of signup/home.php did not
 * allow for. It carried thirteen of them and the browser dropped every one,
 * so the fieldset showed its default border box, the legend rendered at body
 * weight, and four deliberate gaps collapsed. The page looked unfinished
 * because it was being half-ignored.
 *
 * Keeping 'unsafe-inline' out of the policy is the right trade: this is a page
 * a stranger posts to, and an injected style attribute can read as a working
 * overlay over a real form. So the styles come here instead.
 */

/* A .choice used to DISPLAY something rather than to choose it — the "what you
 * are arranging" and "why this one" cards. Same box, no affordance of being
 * clickable, because it is not. */
.choice-static {
  cursor: default;
}

.choice-static:hover {
  border-color: var(--line);
}

/* A fieldset used purely to group inputs for a screen reader. The browser's
 * default border and padding are not wanted; the <legend> is. */
.fieldset-plain {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0; /* fieldset defaults to min-content, which breaks flex children */
}

.fieldset-plain > legend {
  padding: 0;
  margin-bottom: .75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}

/* Deliberate gaps, named by what they separate rather than by their size. */
.after-group  { margin-top: .5rem; }
.after-choice { margin-top: .75rem; }
.after-lede   { margin-top: 1rem; }
.after-steps  { margin-top: 1.25rem; }

/* ─────────────────────────────── and the ones the family pages need
 *
 * Same cause as the block above, and worse here: care.php and days.php each
 * had a `style="display:flex..."` on a container, so those rows never became
 * flex rows at all. The day-of-week chooser stacked one day per line, the
 * "add a time" row put its input above its button, and every Remove button
 * sat jammed against the text it belonged to instead of out at the right.
 *
 * Nothing was unusable, which is why it survived — it just looked unfinished,
 * and an unfinished-looking page is a page a family does not trust with a
 * parent.
 */

/* A .choice that is a container rather than a row. */
.choice-block {
  cursor: default;
  display: block;
}

.choice-block:hover {
  border-color: var(--line);
}

/* A row of things with their tops aligned — text beside its own controls. */
.row-top {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}

/* A row of form controls sitting on a shared baseline, wrapping on a phone
 * rather than squeezing. */
.row-end {
  display: flex;
  gap: .5rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* Out to the right-hand end of its row. Used on the little Remove and Stop
 * forms so the control is away from the words. */
.push-right {
  margin-left: auto;
}

/* A field that takes the space left over, down to a width where its own text
 * still fits. */
.grow      { flex: 1; min-width: 8rem; }
.grow-tight { flex: 1; min-width: 7.5rem; padding: .625rem .75rem; }

/* Small items flowing in rows — the days of the week. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* A quieter legend, for a group inside a card that already has a heading. */
.fieldset-plain.compact > legend {
  font-size: .9375rem;
  margin-bottom: .5rem;
}

/* A <summary> is only obviously clickable if it says so. */
.clickable { cursor: pointer; }

.flat        { margin: 0; }
.after-steps-flat { margin-top: 1.25rem; margin-bottom: 0; }

/* Emphasis on an element that is not a <strong> — a <span> inside a label
 * whose own text must stay the readable weight. */
.strong { font-weight: 600; }


/* ══ THE LANDING PAGE ══════════════════════════════════════════════════════
 *
 * Tom, 8 October 2026: "copy does not make a landing page, Visual
 * attractiveness does. Copy has to be correct but no-one will look at it
 * unless it is visually attractive."
 *
 * He was right about what was there. Nine identical white cards on beige, one
 * type size throughout, a 670px column stranded in a 1280px window — and the
 * telephone number, which IS the product, set as inline body text in the third
 * paragraph. Nothing for the eye to land on and no reason to keep reading.
 *
 * The rest of this stylesheet is built for an older person reading a utility
 * page at arm's length, and that is right for every page a resident or a
 * worried relative USES. The landing page has a different job and a different
 * reader: an adult child who has not decided to trust us yet. So it gets bands
 * instead of cards, real contrast between sections, and the width of the
 * window.
 *
 * No web fonts: the content policy is `style-src 'self'`, which blocks Google
 * Fonts outright. Everything below is the system stack at sizes and weights
 * the rest of the product never uses. */

/* Full-bleed bands. <main> has no max-width, so a section can span the window
 * and constrain only its own contents. */
.band { padding-block: clamp(2.5rem, 6vw, 5rem); }
.band-wrap { max-width: 64rem; margin: 0 auto; padding-inline: 1.25rem; }
.band-narrow { max-width: 42rem; }

.band-ground { background: var(--ground); }
.band-card   { background: var(--card); }

.band-deep {
  background: var(--band-deep);
  color: #fff;
}

.band-deep h2, .band-deep h3, .band-deep strong { color: #fff; }
.band-deep p { color: rgba(255, 255, 255, .88); }

/* ── the hero ───────────────────────────────────────────────────────────── */

.hero { padding-block: clamp(3rem, 8vw, 6rem); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
}

/* The one piece of type on the site allowed to be loud. */
.hero h2 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin-bottom: 1rem;
}

.hero .lede {
  font-size: clamp(1.0625rem, 1.9vw, 1.3125rem);
  line-height: 1.5;
  max-width: 34rem;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, .9);
}

/* The telephone number, which is the product. It was a <strong> in a
 * paragraph; it is now the second thing the eye reaches. */
.hero-call {
  display: inline-flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
}

.hero-call .what {
  font-size: .8125rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.hero-call .num {
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-top: 1.75rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.75rem;
  border-radius: 999px;
  /* Both literal. The background is white in either scheme, so the ink cannot
   * come from a token that inverts with the scheme. */
  background: #fff;
  color: #1F5044;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 0;
}

.btn-hero:hover { background: #E4EDE9; }

.hero-aside {
  margin-top: 1.5rem;
  font-size: .9375rem;
  color: rgba(255, 255, 255, .78);
  line-height: 1.55;
  max-width: 30rem;
}

/* ── the illustration ───────────────────────────────────────────────────── */

.hero-art { display: none; }

@media (min-width: 56rem) {
  .hero-art { display: block; width: 100%; height: auto; }
}

/* ── a row of three, instead of three stacked identical cards ───────────── */

.trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 48rem) {
  .trio { grid-template-columns: repeat(3, 1fr); }
}

.trio-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.band-card .trio-item { background: var(--card-sunk); }

/* On the deep band they are panes of the same colour, not cream boxes
 * floating on green. */
.band-deep .trio-item {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
}

.band-deep .trio-item p { color: rgba(255, 255, 255, .82); }

.trio-item h3 { margin-bottom: .5rem; font-size: 1.0625rem; }
.trio-item p  { color: var(--ink-soft); font-size: .9375rem; line-height: 1.55; margin: 0; }

/* ── section headings on the landing page only ──────────────────────────── */

.band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.band-lede {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin-top: .75rem;
}

.band-deep .band-lede { color: rgba(255, 255, 255, .85); }

/* ── numbered steps, laid out across rather than down ───────────────────── */

.steps-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  counter-reset: step;
}

@media (min-width: 48rem) {
  .steps-row { grid-template-columns: repeat(3, 1fr); }
}

/* Five beats: three then two reads worse than a single row, so at the wider
   breakpoint they all sit on one line. */
@media (min-width: 64rem) {
  .steps-five { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
  .steps-five > li { font-size: .9375rem; }
}

/* The nested wrap re-centres the notice under a full-width row. */
.band-wrap .band-wrap { padding-inline: 0; margin-top: 2rem; }

.steps-row > li {
  counter-increment: step;
  list-style: none;
  padding-top: 2.75rem;
  position: relative;
  color: var(--ink-soft);
  line-height: 1.55;
}

.steps-row > li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
  display: grid;
  place-items: center;
}

.band-deep .steps-row > li { color: rgba(255, 255, 255, .85); }
.band-deep .steps-row > li::before { background: #fff; color: #1F5044; }

/* ── the promises, as a list rather than nested cards ───────────────────── */

.never { margin-top: 1.75rem; display: grid; gap: .875rem; }

.never li {
  list-style: none;
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.55;
}

.never li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: currentColor;
  opacity: .5;
}
