/* Living Legacy. The one soft surface in the AegisGate portfolio: sage rather than royal,
   discs rather than tiles, generous radii, room to breathe. Written for people of 60 to 85
   as much as for their children: large type, large targets, strong contrast, one thing per
   screen. Sage and sage-ink belong to this product alone. */
:root {
  --sage: #6f8f7a;
  --sage-ink: #2f4a3b;
  --sage-soft: #eaf0ec;
  --sage-line: #cfdcd4;
  --bg: #faf8f3;
  --surface: #ffffff;
  --ink: #233027;
  --muted: #55645a;
  --on-sage: #ffffff;
  --orange: #c45f06;
  --good: #2f6b45;
  --good-soft: #e3f1e7;
  --warn: #7a4a00;
  --warn-soft: #fcefd8;
  --bad: #a3271d;
  --bad-soft: #fbe7e5;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 16px;
  --radius-lg: 24px;
  --pill: 9999px;
  --gutter: clamp(16px, 5vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sage: #86a891; --sage-ink: #a9c6b3; --sage-soft: #16241b; --sage-line: #2c3f33;
    --bg: #101713; --surface: #18211c; --ink: #e7efe9; --muted: #a3b2a8; --on-sage: #0d1510;
    --orange: #ff9a3d; --good: #7fd19c; --good-soft: #12301e; --warn: #f0b056; --warn-soft: #302612;
    --bad: #ff8a80; --bad-soft: #3a1714; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --sage: #86a891; --sage-ink: #a9c6b3; --sage-soft: #16241b; --sage-line: #2c3f33;
  --bg: #101713; --surface: #18211c; --ink: #e7efe9; --muted: #a3b2a8; --on-sage: #0d1510;
  --orange: #ff9a3d; --good: #7fd19c; --good-soft: #12301e; --warn: #f0b056; --warn-soft: #302612;
  --bad: #ff8a80; --bad-soft: #3a1714; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 100%; }
html[data-text="l"] { font-size: 115%; }
html[data-text="xl"] { font-size: 132%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 1.125rem; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.12rem; }
p { margin: 0; }
a { color: var(--sage-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: var(--pill); z-index: 10; }
.skip:focus { left: 12px; }

/* bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--sage-line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 56px; height: 56px; }
.wordmark { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.bar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bar-right .who { color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }

.banner { margin: 0; padding: 10px var(--gutter); background: var(--warn-soft); color: var(--warn); font-size: 0.95rem; }
.banner .row { margin-top: 6px; }

.app { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding-block: 28px 56px; padding-inline: var(--gutter); outline: none; }
.narrow { max-width: 640px; margin: 0 auto; display: grid; gap: 20px; }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }
.foot { padding: 22px var(--gutter) 30px; color: var(--muted); font-size: 0.88rem; border-top: 1px solid var(--sage-line); display: grid; gap: 4px; text-align: center; }

/* building blocks */
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(18px, 4vw, 28px); display: grid; gap: 14px; min-width: 0; }
.card.soft { background: var(--sage-soft); }
.card.alert { background: var(--warn-soft); color: var(--ink); border: 2px solid var(--warn); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: var(--sage-ink); }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 38rem; }
.note { border-left: 4px solid var(--sage); background: var(--sage-soft); padding: 10px 14px; border-radius: 0 12px 12px 0; font-size: 0.95rem; }
.note strong { color: var(--sage-ink); }

button, .button { font: inherit; font-size: 1rem; min-height: 48px; padding: 10px 20px; border-radius: var(--pill);
  border: 2px solid var(--sage-line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button:hover, .button:hover { border-color: var(--sage); }
button.primary, .button.primary { background: var(--sage-ink); border-color: var(--sage-ink); color: var(--surface); font-weight: 700; }
button.primary:hover { filter: brightness(1.08); }
button.danger { border-color: var(--bad); color: var(--bad); }
button.stop { background: var(--bad); border-color: var(--bad); color: #fff; font-weight: 700; font-size: 1.1rem; min-height: 56px; padding-inline: 28px; }
button.link { border: 0; background: none; padding: 0; min-height: 0; color: var(--sage-ink); text-decoration: underline; text-underline-offset: 3px; }
button:disabled { opacity: 0.55; cursor: not-allowed; }

label { display: grid; gap: 6px; font-weight: 700; font-size: 1rem; }
label .hint { font-weight: 400; color: var(--muted); font-size: 0.92rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], select, textarea {
  font: inherit; font-weight: 400; font-size: 1.05rem; color: var(--ink); background: var(--bg);
  border: 2px solid var(--sage-line); border-radius: 12px; padding: 12px 14px; width: 100%; min-height: 50px; }
textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
textarea.letter { min-height: 320px; font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; }
input:focus, select:focus, textarea:focus { border-color: var(--sage); outline: none; box-shadow: 0 0 0 3px var(--sage-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.check input { width: 24px; height: 24px; margin-top: 3px; flex: none; accent-color: var(--sage-ink); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
legend { font-weight: 700; margin-bottom: 6px; padding: 0; }

.notice { padding: 12px 16px; border-radius: 12px; }
.notice.good { background: var(--good-soft); color: var(--good); }
.notice.info { background: var(--sage-soft); color: var(--ink); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.busy { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--sage-line); border-top-color: var(--sage-ink); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.progress { height: 10px; background: var(--sage-soft); border-radius: var(--pill); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--sage); }

/* front door */
.hero { display: grid; gap: 22px; padding: 18px 0 8px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); max-width: 18ch; }
.discs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.disc { background: var(--surface); border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 10px; align-content: start; }
.disc .dot { width: 54px; height: 54px; border-radius: 50%; background: var(--sage-soft); display: grid; place-items: center;
  color: var(--sage-ink); font-weight: 700; font-size: 1.3rem; }
.how { counter-reset: how; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.how li { counter-increment: how; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.how li::before { content: counter(how); width: 44px; height: 44px; border-radius: 50%; background: var(--sage-ink); color: var(--surface);
  display: grid; place-items: center; font-weight: 700; }

/* home: the journeys */
.journeys { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.journey { text-align: left; background: var(--surface); border: 2px solid transparent; border-radius: var(--radius-lg);
  padding: 22px; display: grid; gap: 8px; align-content: start; min-height: 170px; color: var(--ink); justify-content: stretch; }
.journey:hover { border-color: var(--sage); }
.journey .t { font-size: 1.2rem; font-weight: 700; }
.journey .s { color: var(--muted); font-size: 0.95rem; }
.journey .p { margin-top: auto; display: grid; gap: 6px; font-size: 0.92rem; color: var(--sage-ink); font-weight: 700; }
.pill { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: var(--pill); font-size: 0.85rem; font-weight: 700; background: var(--sage-soft); color: var(--sage-ink); }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.muted { color: var(--muted); }

.back { justify-self: start; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button[aria-selected="true"] { background: var(--sage-ink); color: var(--surface); border-color: var(--sage-ink); }

/* lists */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list > li { background: var(--bg); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; min-width: 0; }
.list > li .spread { align-items: flex-start; }
.status { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.status label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; border: 2px solid var(--sage-line); border-radius: var(--pill); padding: 6px 14px; cursor: pointer; min-height: 44px; }
.status input { accent-color: var(--sage-ink); width: 20px; height: 20px; }
.files { display: grid; gap: 6px; font-size: 0.95rem; }
.files .row { justify-content: space-between; }

.keyblock { font-family: var(--mono); font-size: clamp(1rem, 3.6vw, 1.3rem); background: var(--sage-soft); padding: 18px; border-radius: var(--radius);
  letter-spacing: 0.04em; word-spacing: 0.3em; overflow-wrap: anywhere; line-height: 1.8; }
.digits { font-family: var(--mono); font-size: 1.15rem; letter-spacing: 0.05em; word-spacing: 0.4em; line-height: 1.9; overflow-wrap: anywhere; }

/* reading what was left */
.letter-view { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.first-words { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; line-height: 1.7; white-space: pre-wrap; }
.prompt { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; line-height: 1.5; color: var(--sage-ink); }
.memory-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.summary { font-size: 1.15rem; font-weight: 700; color: var(--sage-ink); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.steps li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--sage-line); margin-top: 3px; }
.steps li.done::before { background: var(--sage-ink); border-color: var(--sage-ink); }
.steps li.now::before { border-color: var(--orange); }

/* the recovery key's sealed-envelope sheet */
@media screen { .print-only { display: none !important; } }
.sheet-facts { display: flex; flex-wrap: wrap; gap: 6px 24px; font-variant-numeric: tabular-nums; }
.sheet-facts #recovery-ref { font-family: var(--mono); letter-spacing: 0.04em; }
.sheet-notes { display: grid; gap: 8px; font-size: 0.95rem; line-height: 1.5; }

@media print {
  .bar, .foot, #mode-banner, .no-print, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .card { padding: 0; }
  .keyblock { background: none; border: 2px solid #000; }
  .recovery-sheet { break-inside: avoid-page; }
  .recovery-sheet .sheet-notes { border-top: 1px dashed #000; padding-top: 12px; margin-top: 8px; }
}

.grow { flex: 1 1 260px; }
hr { border: 0; border-top: 1px solid var(--sage-line); margin: 6px 0; width: 100%; }
.door { gap: 22px; }

/* letters on a date */
form.dated { align-items: flex-end; margin-top: .75rem; }
form.dated label { flex: 1 1 18rem; }
form.dated input[type=date] { display: block; max-width: 14rem; margin-top: .35rem; }
.letter-text { white-space: pre-wrap; }

/* recording */
.recording { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.recording .dot { width: .8rem; height: .8rem; border-radius: 50%; background: #b3261e; animation: rec-pulse 1.2s ease-in-out infinite; }
@keyframes rec-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .recording .dot { animation: none; } }
audio { width: 100%; max-width: 32rem; }

/* a firm, as its clients see it */
.firm-band { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; padding: .8rem 1rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--sage-line); border-left: 6px solid var(--firm, var(--sage)); }
.firm-band[data-accent="navy"] { --firm: #26456e; }
.firm-band[data-accent="teal"] { --firm: #1f6f6b; }
.firm-band[data-accent="plum"] { --firm: #6a3d66; }
.firm-band[data-accent="slate"] { --firm: #4a5560; }
.firm-band[data-accent="burgundy"] { --firm: #7d2433; }
.terms-text { white-space: pre-wrap; line-height: 1.6; max-width: 46rem; }

/* money ledger */
.row.wrap { flex-wrap: wrap; }
.totals { gap: 1.5rem; padding: .75rem 0; }
.totals > div { display: flex; flex-direction: column; min-width: 9rem; }
.totals strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.amount { font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount.in { color: var(--good); }

/* estate tasks */
ol.tasks > li.done h3 { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--muted); }
.task-form { margin-top: .5rem; }
.task-form label.grow { flex: 1 1 16rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* my possessions: a shop-window grid */
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: 1rem; margin-top: 1rem; }
.shop-card, button.shop-card { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 0; border-width: 1px; gap: .35rem; padding: 0 0 .9rem; text-align: left; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--sage-line); overflow: hidden; cursor: pointer; font: inherit; color: inherit; min-height: 0; }
.shop-card:hover, .shop-card:focus-visible { border-color: var(--sage); }
.shop-photo { display: block; aspect-ratio: 1 / 1; background: var(--sage-soft); max-width: 100%; }
.shop-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-none { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; }
.shop-name { padding: 0 .9rem; font-weight: 700; }
.shop-meta { padding: 0 .9rem; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chips { gap: .5rem; margin-top: .5rem; }
.chip { border-radius: var(--pill); padding: .35rem .9rem; font-size: .95rem; }
.chip.on { background: var(--sage-ink); color: var(--on-sage); border-color: var(--sage-ink); }
.possession { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem; align-items: start; }
.possession-photo { width: 100%; border-radius: var(--radius); }
@media (max-width: 700px) { .possession { grid-template-columns: 1fr; } }

.label-like { font-weight: 700; display: grid; gap: 6px; margin: 0; }
.files-picker label.button { justify-self: start; }
.camera video { width: 100%; max-width: 32rem; border-radius: var(--radius); background: #000; }
.thumbs { gap: .6rem; }
.thumb { display: inline-flex; flex-direction: column; align-items: center; gap: .25rem; }
.thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--sage-line); }
.thumb img.big { width: min(100%, 28rem); height: auto; }
button.thumb-btn { padding: 0; border: 0; min-height: 0; background: none; border-radius: 12px; }
.doc-tile { display: flex; width: 96px; height: 96px; align-items: center; justify-content: center; text-align: center; padding: .4rem; font-size: .75rem; border-radius: 12px; border: 1px solid var(--sage-line); background: var(--sage-soft); overflow: hidden; word-break: break-word; }
.label-like .hint { font-weight: 400; display: block; }
button.thumb-btn.on img { outline: 3px solid var(--sage-ink); outline-offset: 2px; }

/* The money arrangement and the bills register */
.facts { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: .4rem 1.25rem; margin: 0 0 .75rem; }
.facts dt { font-weight: 700; color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 34rem) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: .4rem; } }
details > summary { cursor: pointer; font-weight: 700; padding: .35rem 0; }
details[open] > summary { margin-bottom: .5rem; }
.concerns { border-left: 4px solid var(--warn); }
.concerns ul { margin: 0; padding-left: 1.2rem; }
.bills li .pill { margin: .2rem .25rem .2rem 0; }

/* My will: the step-by-step builder */
.progress.wide { display: block; width: 100%; height: 8px; margin: .25rem 0 1rem; }
.will-things { display: grid; gap: .75rem; }
.will-thing { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 14rem); gap: .75rem; align-items: center; }
.will-thing img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.will-thing > span { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 34rem) { .will-thing { grid-template-columns: 48px minmax(0, 1fr); } .will-thing input { grid-column: 1 / -1; } .will-thing img { width: 48px; height: 48px; } }
.will-summary h3 { margin: 1rem 0 .25rem; }
.will-summary ul { margin: 0 0 .5rem; padding-left: 1.2rem; }
ul.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
ul.checks li { line-height: 1.5; }

/* The solicitor workspace: a sidebar of sections and a working area, like a desktop app */
.app:has(.workspace) { max-width: 1240px; }
.workspace { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
.workspace > *, .ws-main > * { min-width: 0; }
.ws-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); display: flex; flex-direction: column; gap: 2px; padding: 12px; background: var(--surface); border: 1px solid var(--sage-line); border-radius: var(--radius); }
.ws-firm { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 4px 8px 8px; }
.ws-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; width: 100%; border: 0; background: transparent; border-radius: 8px; padding: 9px 10px; font: inherit; color: inherit; cursor: pointer; }
.ws-link:hover { background: var(--sage-soft); }
.ws-link.on { background: var(--sage-soft); color: var(--sage-ink); font-weight: 700; }
.ws-count { min-width: 1.5rem; padding: 1px 7px; border-radius: var(--pill); background: var(--sage-soft); color: var(--sage-ink); font-size: .8rem; font-weight: 700; text-align: center; }
.ws-count.alert { background: var(--warn-soft); color: var(--warn); }
.ws-main { display: grid; gap: 18px; min-width: 0; }
.ws-main > h1, .ws-main .spread h1 { margin: 0; }
.ws-search input { min-width: 16rem; padding: .55rem .9rem; border: 1px solid var(--sage-line); border-radius: var(--pill); background: var(--surface); color: var(--ink); font: inherit; }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--sage-line); border-radius: var(--radius); background: var(--surface); }
.ws-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ws-table th, .ws-table td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--sage-line); vertical-align: middle; }
.ws-table thead th { border-top: 0; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--sage-soft); }
.ws-table tbody tr:hover { background: color-mix(in srgb, var(--sage-soft) 50%, transparent); }
.ws-todo li.due { border-left: 4px solid var(--warn); }
.ws-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--sage-line); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 800px) {
  .workspace { grid-template-columns: 1fr; }
  .ws-nav { position: static; flex-direction: row; overflow-x: auto; padding: 6px; }
  .ws-firm { display: none; }
  .ws-link { width: auto; white-space: nowrap; }
  .ws-search input { min-width: 0; width: 100%; }
}

.proof-row { align-items: center; gap: .75rem; }
.proof-row .note { margin: 0; flex: 1 1 18rem; }

/* The front page */
.trust { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.trust li { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border-left: 4px solid var(--sage); }
.trust strong { color: var(--sage-ink); }
.trust span { font-size: .92rem; color: var(--muted); }
.gives { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
@media (max-width: 640px) { .gives { grid-template-columns: 1fr; } }
.gives h3 { margin: 0 0 4px; }
.gives p { margin: 0; }
.protect { margin: 0; padding-left: 1.2rem; display: grid; gap: 10px; }
.door-foot { text-align: center; max-width: 40rem; margin: 0 auto; }

/* Make it easier to use */
.aa { min-width: 48px; padding-inline: 12px; font-weight: 700; }
.easier { display: grid; gap: 14px; margin-bottom: 20px; border: 2px solid var(--sage); }
.easier:focus { outline: none; }
.easier-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--sage-line); }
.easier-row > div { display: grid; gap: 2px; min-width: 0; }
.switch { flex: none; width: 60px; min-height: 34px; height: 34px; padding: 3px; border-radius: 999px; border: 0; background: #b9c4bc; display: flex; justify-content: flex-start; }
.switch span { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: block; }
.switch[aria-checked="true"] { background: var(--sage-ink); justify-content: flex-end; }
.size-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.size-choice button { font-weight: 700; border-radius: 12px; }
.size-choice .size-0 { font-size: 1rem; } .size-choice .size-1 { font-size: 1.3rem; } .size-choice .size-2 { font-size: 1.65rem; }
.size-choice button[aria-pressed="true"] { background: var(--sage-soft); border-color: var(--sage-ink); box-shadow: inset 0 0 0 2px var(--sage-ink); }

/* outranks the dark-mode token blocks, so high contrast is always black on white */
:root:root:root[data-contrast="high"] {
  color-scheme: light;
  --bg: #ffffff; --surface: #ffffff; --ink: #000000; --muted: #1a1a1a; --sage: #000000; --sage-ink: #000000;
  --sage-soft: #ffffff; --sage-line: #000000; --warn: #5c3200; --warn-soft: #fff4d6; --bad: #a00000; --bad-soft: #ffe8e8; --good: #00591f; --good-soft: #e8ffe8; --on-sage: #ffffff; --orange: #8a3b00;
}
html[data-contrast="high"] .card, html[data-contrast="high"] .journey, html[data-contrast="high"] .disc, html[data-contrast="high"] input,
html[data-contrast="high"] textarea, html[data-contrast="high"] select, html[data-contrast="high"] button { border: 2px solid #000 !important; }
html[data-contrast="high"] a, html[data-contrast="high"] .link { text-decoration: underline; text-decoration-thickness: 2px; }
html[data-contrast="high"] :focus-visible { outline: 4px solid #ffbf00 !important; outline-offset: 2px; }
html[data-contrast="high"] .muted, html[data-contrast="high"] .hint { color: #1a1a1a !important; }
html[data-contrast="high"] button.primary { background: #000; color: #fff; }
html[data-contrast="high"] .switch[aria-checked="true"] { background: #000; }
html[data-contrast="high"] .switch { background: #fff; }
html[data-contrast="high"] .switch span { background: #000; }
html[data-contrast="high"] .switch[aria-checked="true"] span { background: #fff; }

html[data-lettering="easy"] body { font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif; letter-spacing: 0.03em; word-spacing: 0.1em; line-height: 1.85; }
html[data-lettering="easy"] em, html[data-lettering="easy"] i { font-style: normal; font-weight: 700; }
html[data-lettering="easy"] .letter-view, html[data-lettering="easy"] textarea.letter { font-family: Verdana, Tahoma, sans-serif; }

html[data-buttons="big"] button, html[data-buttons="big"] .button { min-height: 60px; padding: 14px 26px; font-size: 1.12rem; }
html[data-buttons="big"] input, html[data-buttons="big"] select { min-height: 56px; }
html[data-buttons="big"] input[type=checkbox], html[data-buttons="big"] input[type=radio] { width: 28px; height: 28px; }
html[data-buttons="big"] .switch { width: 72px; height: 42px; min-height: 42px; padding: 4px; }
html[data-buttons="big"] .switch span { width: 34px; height: 34px; }

html[data-motion="less"] *, html[data-motion="less"] *::before, html[data-motion="less"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* ---------- the look ---------- */
:root {
  --serif: var(--font);
  --t-wishes: #e6eee8; --t-wishes-ink: #2f4a3b;
  --t-papers: #e6ecfa; --t-papers-ink: #2b4a85;
  --t-possessions: #f6ecd9; --t-possessions-ink: #7a4f0a;
  --t-letters: #f6e6ea; --t-letters-ink: #8a3a55;
  --t-will: #ece8f6; --t-will-ink: #4d3b85;
  --t-ledger: #e2f3e9; --t-ledger-ink: #1f6a43;
  --t-story: #e0f0ef; --t-story-ink: #1f6461;
  --t-directions: #e9edf2; --t-directions-ink: #3a4a5e;
  --t-record: #eceee9; --t-record-ink: #3f4d44;
  --t-solicitor: #e9edf2; --t-solicitor-ink: #3a4a5e;
  --t-holders: #f3ead7; --t-holders-ink: #6b4a12;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --t-wishes: #1b2a20; --t-wishes-ink: #a9c6b3;
    --t-papers: #1a2238; --t-papers-ink: #a9bde8;
    --t-possessions: #2e2412; --t-possessions-ink: #e7c27f;
    --t-letters: #331d24; --t-letters-ink: #e8a9bd;
    --t-will: #241f36; --t-will-ink: #c3b6ec;
    --t-ledger: #15291e; --t-ledger-ink: #94d6b0;
    --t-story: #142a29; --t-story-ink: #93d3cf;
    --t-directions: #1e242c; --t-directions-ink: #b4c2d4;
    --t-record: #1f241f; --t-record-ink: #c3ccc5;
    --t-solicitor: #1e242c; --t-solicitor-ink: #b4c2d4;
    --t-holders: #2b2312; --t-holders-ink: #e0c48a;
  }
}
[data-tone="wishes"] { --tone: var(--t-wishes); --tone-ink: var(--t-wishes-ink); }
[data-tone="papers"] { --tone: var(--t-papers); --tone-ink: var(--t-papers-ink); }
[data-tone="possessions"] { --tone: var(--t-possessions); --tone-ink: var(--t-possessions-ink); }
[data-tone="letters"] { --tone: var(--t-letters); --tone-ink: var(--t-letters-ink); }
[data-tone="will"] { --tone: var(--t-will); --tone-ink: var(--t-will-ink); }
[data-tone="ledger"] { --tone: var(--t-ledger); --tone-ink: var(--t-ledger-ink); }
[data-tone="story"] { --tone: var(--t-story); --tone-ink: var(--t-story-ink); }
[data-tone="directions"] { --tone: var(--t-directions); --tone-ink: var(--t-directions-ink); }
[data-tone="record"] { --tone: var(--t-record); --tone-ink: var(--t-record-ink); }
[data-tone="solicitor"] { --tone: var(--t-solicitor); --tone-ink: var(--t-solicitor-ink); }
[data-tone="holders"] { --tone: var(--t-holders); --tone-ink: var(--t-holders-ink); }
h1, h2, h3, .journey .t, .empty-t { font-family: var(--serif); font-weight: 700; letter-spacing: 0; }
html[data-lettering="easy"] h1, html[data-lettering="easy"] h2, html[data-lettering="easy"] h3,
html[data-lettering="easy"] .journey .t, html[data-lettering="easy"] .empty-t { font-family: Verdana, Tahoma, sans-serif; }
.ico { width: 26px; height: 26px; display: block; }

/* each section wears its own colour */
.app[data-tone] h1.toned { display: flex; align-items: center; gap: 14px; }
.section-ico { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--tone); color: var(--tone-ink); display: grid; place-items: center; }
.section-ico .ico { width: 30px; height: 30px; }

/* home: the journeys, each in its colour */
.journey .ji { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--tone, var(--sage-soft)); color: var(--tone-ink, var(--sage-ink)); }
.journey:hover { border-color: var(--tone-ink, var(--sage)); }
.journey .p { color: var(--tone-ink, var(--sage-ink)); }
.journey .progress > span { background: var(--tone-ink, var(--sage)); }

/* home: how far along, and the next step */
.progress-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 22px; }
@media (max-width: 520px) { .progress-card { grid-template-columns: 1fr; justify-items: start; } }
.ring-wrap { position: relative; width: 112px; height: 112px; }
.ring { width: 112px; height: 112px; display: block; }
.ring circle { fill: none; stroke-width: 9; }
.ring-bg { stroke: var(--sage-soft); }
.ring-fg { stroke: var(--sage-ink); stroke-linecap: round; }
.ring-n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring-n strong { font-family: var(--serif); font-size: 2rem; }
.ring-n span { font-size: .85rem; color: var(--muted); }
.stack.tight { gap: 8px; }
.next { display: grid; gap: 8px; margin-top: 6px; padding: 14px 16px; border-radius: var(--radius); background: var(--sage-soft); }
.next p { margin: 0; }

/* a friendly empty page */
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 26px 18px; border-radius: var(--radius-lg); background: var(--tone, var(--sage-soft)); }
.empty-ico { width: 64px; height: 64px; border-radius: 20px; background: var(--surface); color: var(--tone-ink, var(--sage-ink)); display: grid; place-items: center; }
.empty-ico .ico { width: 34px; height: 34px; }
.empty-t { font-size: 1.25rem; margin: 0; max-width: 28rem; }
.empty p { margin: 0; max-width: 32rem; }

/* kept safely: a small tick that settles in when something is saved */
.notice.good { display: flex; align-items: flex-start; gap: 10px; }
.kept { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--good); color: var(--surface); display: grid; place-items: center; animation: kept .5s ease-out both; }
.kept .ico { width: 18px; height: 18px; stroke-width: 2.6; }
@keyframes kept { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } to { transform: scale(1); } }

/* front page */
.door { gap: 30px; }
.hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px; padding-top: 24px; }
.hero-text { display: grid; gap: 18px; min-width: 0; }
.hero .hero-text h1 { max-width: none; font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.12; }
.hero-art { border-radius: 28px; background: var(--t-wishes); overflow: hidden; display: flex; align-items: flex-end; min-width: 0; }
.hero-art .art { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; gap: 20px; } }
a.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: var(--pill); border: 2px solid var(--sage-line); background: var(--surface); color: var(--sage-ink); font-weight: 700; text-decoration: none; }
a.button:hover { border-color: var(--sage); }
.trust { background: var(--surface); border-radius: var(--radius-lg); padding: 18px; gap: 18px; }
.trust li { display: flex; gap: 12px; align-items: flex-start; border-left: 0; background: none; padding: 0; }
.trust li > span:last-child { display: grid; gap: 2px; min-width: 0; }
.trust .ti { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--t-wishes); color: var(--t-wishes-ink); display: grid; place-items: center; }
.door-section { display: grid; gap: 18px; }
.door-head { display: grid; gap: 6px; max-width: 40rem; align-content: start; }
.door-head p { margin: 0; }
.gives { gap: 16px; }
.gives > div { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--radius-lg); background: var(--tone); min-width: 0; }
.gives .gi { width: 48px; height: 48px; border-radius: 14px; background: var(--surface); color: var(--tone-ink); display: grid; place-items: center; }
.gives p { color: var(--ink); opacity: .85; }
.steps-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; gap: 40px; }
@media (max-width: 760px) { .steps-section { grid-template-columns: 1fr; gap: 16px; } }
.how { list-style: none; counter-reset: how; padding: 0; margin: 0; display: grid; gap: 18px; }
.how li { counter-increment: how; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; }
.how li::before { content: counter(how); width: 42px; height: 42px; border-radius: 50%; background: var(--sage-ink); color: var(--surface); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.how li p { margin: 0; }
.protect-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 36px; padding: clamp(22px, 5vw, 44px); border-radius: 24px; background: #2f4a3b; color: #f2f6f3; }
.protect-panel h2 { color: #ffffff; }
.protect-panel p { color: #d7e3da; margin: 0; }
.protect-panel .protect { list-style: none; padding: 0; }
.protect-panel .protect li { padding-left: 22px; position: relative; }
.protect-panel .protect li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: #a9c6b3; }
@media (max-width: 760px) { .protect-panel { grid-template-columns: 1fr; gap: 16px; } }
.named-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: clamp(18px, 4vw, 32px); border-radius: 22px; background: var(--tone); }
.named-band p { margin: 0; }
.named-band .pip { width: 64px; height: 64px; }
@media (max-width: 640px) { .named-band { grid-template-columns: auto minmax(0, 1fr); } .named-band > button { grid-column: 1 / -1; } }

/* high contrast keeps all of this plain and strong */
html[data-contrast="high"] [data-tone], html[data-contrast="high"] .hero-art, html[data-contrast="high"] .next { --tone: #ffffff; --tone-ink: #000000; }
html[data-contrast="high"] .gives > div, html[data-contrast="high"] .empty, html[data-contrast="high"] .named-band, html[data-contrast="high"] .trust { border: 2px solid #000; }
html[data-contrast="high"] .protect-panel { background: #000; }
html[data-contrast="high"] .ring-fg { stroke: #000; }
html[data-contrast="high"] .ring-bg { stroke: #ccc; }

/* the explainer film on the front page */
.film { display: grid; gap: 14px; }
.film-video { width: 100%; max-width: 860px; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius-lg); background: var(--t-wishes); display: block; }
.film p { margin: 0; }

/* the first weeks: the family's guide */
.weeks { margin: 0; padding: 0; list-style: none; counter-reset: wk; display: grid; gap: 16px; }
.weeks li { counter-increment: wk; display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 14px; }
.weeks li::before { content: counter(wk); grid-row: span 3; width: 38px; height: 38px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-ink); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; }
.weeks h3 { margin: 0; font-size: 1.1rem; grid-column: 2; }
.weeks p { margin: 4px 0 0; grid-column: 2; }
.their-words { margin: 8px 0 0; padding: 10px 14px; border-left: 4px solid var(--sage); background: var(--sage-soft); border-radius: 0 10px 10px 0; display: grid; gap: 2px; grid-column: 2; }
.their-words span:last-child { font-family: var(--serif); white-space: pre-wrap; overflow-wrap: anywhere; }
html[data-contrast="high"] .their-words { background: #fff; border-left-color: #000; }
@media print { .first-weeks { break-inside: avoid-page; } }

/* two-step sign-in */
.two-step-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 6px; }
.two-step-qr { width: 180px; height: 180px; max-width: 100%; background: #fff; padding: 8px; border-radius: var(--radius); }
#two-step-secret { overflow-wrap: anywhere; }

/* administration */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 0; }
.admin-stats p { margin: 0; display: grid; gap: 2px; background: var(--bg); border-radius: var(--radius); padding: 12px 14px; }
.admin-stats strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--sage-ink); }
.admin-stats span { color: var(--muted); font-size: 0.9rem; }
.admin-firm h3 { margin: 0; }
.admin-email { overflow-wrap: anywhere; min-width: 0; }
.admin-quota { align-items: flex-end; }
.admin-quota label { flex: 1 1 160px; }
.admin details > summary { font-size: 0.95rem; }

/* services from the firm */
.offer-list { display: grid; gap: 12px; }
.offer { display: grid; gap: 10px; background: var(--bg); border-radius: var(--radius); padding: 14px 16px; border-left: 4px solid var(--firm, var(--sage)); min-width: 0; }
.offer h3 { margin: 0; }
.offer p { margin: 0; }
.offer-fee { font-weight: 700; color: var(--sage-ink); }
.offers.inline { display: grid; gap: 8px; margin-top: 4px; }
.enquiry-contact { overflow-wrap: anywhere; }

/* the partner preview */
.partner-hero h1 { text-wrap: balance; }
.partner-band { align-items: center; }
.firm-logo { max-height: 40px; max-width: 160px; width: auto; height: auto; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
.ws-logo { display: block; margin-bottom: 6px; }
.logo-slot { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 40px; padding: 0 10px; border: 2px dashed currentColor; border-radius: 8px; font-size: .85rem; opacity: .85; }
.colour-field input[type="color"] { width: 72px; height: 44px; padding: 2px; border: 2px solid var(--sage-line); border-radius: 10px; background: var(--bg); }
.partner-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.partner-ways .way { background: var(--bg); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; align-content: start; }
.partner-ways .way h3, .partner-ways .way p { margin: 0; }
.partner-example { border: 2px dashed var(--sage-line); border-radius: var(--radius); padding: 8px; }
.calc-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; background: var(--bg); border-radius: var(--radius); padding: 14px; align-content: start; min-width: 0; }
.calc-row h3, .calc-row .calc-out { grid-column: 1 / -1; margin: 0; }
.calc-row label { font-size: .9rem; min-width: 0; }
.calc-row input { width: 100%; min-width: 0; }
.calc-out, .calc-total { font-variant-numeric: tabular-nums; margin: 0; }
.calc-total { font-size: 1.15rem; }
.calc-total strong, .calc-out strong { white-space: nowrap; }
.calc-row label { grid-template-rows: 1fr auto; }

/* Home visit form: a field only a robot would fill in. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.visit-req .row { flex-wrap: wrap; }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 800px) { .help-grid { grid-template-columns: 1fr; } }
.help-grid > div { display: grid; gap: 8px; align-content: space-between; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line, rgba(0,0,0,.12)); min-width: 0; }
.help-grid h3 { margin: 0; }
.help-grid p { margin: 0; }
html[data-contrast="high"] .help-grid > div { border: 2px solid #000; }
.try-guide { margin-top: 8px; }
.try-guide summary { cursor: pointer; font-weight: 600; }
.try-guide ul { margin: 6px 0 0; padding-left: 1.2rem; display: grid; gap: 4px; }


/* Shop-front polish (31 October 2026): a warmer page, a hero with more pull, and cards with a little depth. */
:root { --hero-a: #e9f1ea; --hero-b: #fbf0dc; --lift: 0 1px 2px rgba(35, 48, 39, .06), 0 8px 24px rgba(35, 48, 39, .08); --tick: #2f6b45; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hero-a: #16241b; --hero-b: #221d12; --lift: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35); --tick: #7fd19c; } }
:root[data-theme="dark"] { --hero-a: #16241b; --hero-b: #221d12; --lift: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35); --tick: #7fd19c; }

.door { gap: clamp(28px, 5vw, 48px); }
.door .hero { background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); border-radius: 32px; padding: clamp(20px, 5vw, 48px); box-shadow: var(--lift); }
.door .hero .hero-art { box-shadow: 0 10px 30px rgba(35, 48, 39, .12); }
.door .hero .row { gap: 12px; }
.door .hero button.primary, .door .hero .button.primary { min-height: 58px; padding: 14px 30px; font-size: 1.1rem; box-shadow: 0 6px 16px rgba(47, 74, 59, .28); transition: transform .15s ease, box-shadow .15s ease; }
.door .hero button.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(47, 74, 59, .32); }
.door .hero button:not(.primary), .door .hero .button:not(.primary) { min-height: 58px; background: var(--surface); }
.reassure { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .98rem; color: var(--ink); }
.reassure li { display: inline-flex; gap: 8px; align-items: center; }
.reassure li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--tick) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.door .trust { box-shadow: var(--lift); }
.door .gives > div, .door .help-grid > div, .door .named-band { box-shadow: var(--lift); transition: transform .15s ease, box-shadow .15s ease; }
.door .gives > div:hover, .door .help-grid > div:hover { transform: translateY(-2px); }
.door .help-grid > div:first-child { border: 2px solid var(--sage-ink); position: relative; }
.door .help-grid > div:first-child::before { content: "Most people start here"; position: absolute; top: -13px; left: 18px; background: var(--sage-ink); color: var(--surface); font-size: .8rem; font-weight: 700; letter-spacing: .02em; padding: 3px 12px; border-radius: var(--pill); }
.door .help-grid { padding-top: 10px; }
.door .protect-panel { box-shadow: 0 14px 34px rgba(47, 74, 59, .28); }
@media (prefers-reduced-motion: reduce) { .door .hero button.primary, .door .gives > div, .door .help-grid > div { transition: none; } .door .gives > div:hover, .door .help-grid > div:hover, .door .hero button.primary:hover { transform: none; } }
html[data-contrast="high"] .door .hero { background: var(--surface); border: 2px solid #000; box-shadow: none; }

/* Why keeping control matters (1 November 2026): plain statistics with their source, and what the product does. */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 40px); align-items: start; }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } }
.why-facts, .why-does { display: grid; gap: 14px; min-width: 0; align-content: start; }
.fact { display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr); gap: 14px; align-items: baseline; margin: 0; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--lift); }
.fact strong { font-size: 1.7rem; line-height: 1.1; color: var(--sage-ink); font-variant-numeric: tabular-nums; }
.fact span { font-size: .98rem; }
.help-note { padding: 12px 14px; border-radius: var(--radius); background: var(--sage-soft); color: var(--ink); }
.helplines { margin-top: 22px; }
.helplines ul { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.helplines li { display: grid; gap: 3px; padding: 12px 14px; border-radius: var(--radius); background: var(--sage-soft); min-width: 0; }
.helplines li a { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.why-does .does { display: grid; gap: 10px; }
.why-does .does p { margin: 0; padding-left: 14px; border-left: 3px solid var(--sage); }
/* Front page, as in the Front-End Blueprint: larger reading size, serif headings, a plain price line,
   three steps, four promises and the five AI rules. Colours stay on the app's own tokens so dark mode
   and high contrast keep working. */
.door { font-size: 1.25rem; line-height: 1.6; }
.door h1, .door h2, .door h3 { font-family: var(--font); line-height: 1.2; text-wrap: balance; }
.door h1 { font-weight: 800; }
.door .lede { max-width: 60ch; }
.door .button, .door button { min-height: 56px; font-size: 1.1rem; }
.door .button.quiet { display: inline-flex; align-items: center; padding: 0 22px; border: 2px solid var(--sage-ink); color: var(--sage-ink); background: transparent; border-radius: 10px; font-weight: 600; text-decoration: none; }
.door .micro { margin: 0; font-weight: 600; color: var(--muted); }
.door .not-a-will { background: var(--sage-soft); border-radius: 10px; padding: 6px 16px; max-width: 60ch; }
.door .not-a-will summary { min-height: 48px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; cursor: pointer; font-weight: 600; }
.door .not-a-will summary span { text-decoration: underline; color: var(--sage-ink); }
.door .reassure { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.door .reassure li::before { content: "\2713"; color: var(--sage-ink); font-weight: 800; margin-right: 10px; }
.three { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: three; }
.three li { counter-increment: three; position: relative; display: grid; gap: 8px; align-content: start; padding: 28px; border-radius: var(--radius); background: var(--sage-soft); border: 1px solid var(--sage-line); min-width: 0; }
.three li::before { content: counter(three); font: 800 2.6rem/1 var(--font); color: var(--sage-ink); }
.three li:not(:last-child)::after { content: "\2192"; position: absolute; right: -24px; top: 50%; font-size: 1.6rem; color: var(--sage-ink); }
.three .ti { position: absolute; right: 22px; top: 22px; color: var(--sage-ink); }
.three .ti .ico, .pillar .ti .ico { width: 36px; height: 36px; }
.three h3, .three p, .pillar h3, .pillar p { margin: 0; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pillar { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--radius); background: var(--sage-soft); border: 1px solid var(--sage-line); min-width: 0; }
.pillar .ti { width: 52px; height: 52px; border-radius: 12px; background: var(--sage-ink); color: var(--surface); display: grid; place-items: center; }
.pillar .for { font-weight: 600; }
.ai-rules { margin-top: 8px; border: 2px solid var(--sage-ink); border-radius: var(--radius); padding: 24px; background: var(--surface); display: grid; gap: 10px; }
.ai-rules h3, .ai-rules > p { margin: 0; }
.ai-rules details { background: var(--bg); border-radius: 10px; padding: 4px 16px; }
.ai-rules summary { min-height: 52px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.ai-rules details p { margin: 0 0 12px; }
@media (max-width: 820px) {
  .three, .pillars { grid-template-columns: 1fr; }
  .three li:not(:last-child)::after { content: "\2193"; right: auto; left: 36px; top: auto; bottom: -30px; }
  .three .ti { top: 18px; }
}

/* ---- The Aequis design, for everything an organisation uses -------------------------------------
   Royal blue, silver and orange for the one thing to press, green for what is verified; Arial. Values are
   the design system's own (each measured against its ground). Set by applyBrand() on <html>. */
html[data-brand="aequis"] {
  --sage: #1c3f94; --sage-ink: #1c3f94; --sage-soft: #e6ecfa; --sage-line: #d9dfe9;
  --bg: #f3f5f9; --surface: #ffffff; --ink: #17213a; --muted: #5a6680; --on-sage: #ffffff;
  --orange: #e8730c; --good: #0f7a4f; --good-soft: #e2f3e9; --warn: #8a5300; --warn-soft: #fcefd8;
  --bad: #b3261e; --bad-soft: #fce8e6; --radius: 6px; --radius-lg: 8px;
  --royal: #1c3f94; --royal-deep: #0a2a6a; --silver: #c9d0da; --on-orange: #231200; --line-strong: #b9c3d4;
}
@media (prefers-color-scheme: dark) {
  html[data-brand="aequis"]:not([data-theme="light"]) {
    --sage: #8fb0f2; --sage-ink: #8fb0f2; --sage-soft: #1a2747; --sage-line: #2a3550;
    --bg: #0c111c; --surface: #141b2a; --ink: #e6ebf5; --muted: #9aa6bd; --on-sage: #06101f;
    --orange: #ff9a3d; --good: #5fd39a; --good-soft: #10301f; --warn: #f0b056; --warn-soft: #36270f;
    --bad: #ff8a80; --bad-soft: #3c1816; --royal: #13285e; --royal-deep: #061939; --silver: #b9c2cf; --line-strong: #3a4866;
  }
}
html[data-brand="aequis"][data-theme="dark"] {
  --sage: #8fb0f2; --sage-ink: #8fb0f2; --sage-soft: #1a2747; --sage-line: #2a3550;
  --bg: #0c111c; --surface: #141b2a; --ink: #e6ebf5; --muted: #9aa6bd; --on-sage: #06101f;
  --orange: #ff9a3d; --good: #5fd39a; --good-soft: #10301f; --warn: #f0b056; --warn-soft: #36270f;
  --bad: #ff8a80; --bad-soft: #3c1816; --royal: #13285e; --royal-deep: #061939; --silver: #b9c2cf; --line-strong: #3a4866;
}
html[data-brand="aequis"] body { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; }
html[data-brand="aequis"] h1, html[data-brand="aequis"] h2, html[data-brand="aequis"] h3 { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; letter-spacing: -0.01em; color: var(--ink); }
html[data-brand="aequis"] .bar { background: var(--royal-deep); border-bottom: 1px solid var(--line-strong); color: #fff; }
html[data-brand="aequis"] .bar .wordmark, html[data-brand="aequis"] .bar .brand { color: #fff; }
html[data-brand="aequis"] .bar .who { color: var(--silver); }
html[data-brand="aequis"] .bar button { background: transparent; color: #fff; border-color: var(--silver); }
html[data-brand="aequis"] button.primary, html[data-brand="aequis"] .button.primary { background: var(--orange); border-color: var(--orange); color: var(--on-orange); font-weight: 700; }
html[data-brand="aequis"] .card { border-color: var(--sage-line); box-shadow: none; border-radius: var(--radius-lg); }
html[data-brand="aequis"] .eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 700; }
html[data-brand="aequis"] a { color: var(--sage-ink); }
html[data-brand="aequis"] :focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
html[data-brand="aequis"] .foot { background: var(--bg); border-top: 1px solid var(--line-strong); }

/* The professionals' page */
.pro-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; padding: 28px; border-radius: 8px; background: var(--royal-deep, #0a2a6a); color: #fff; }
.pro-hero h1, .pro-hero h2, .pro-hero .eyebrow, .pro-hero a { color: #fff; }
.pro-hero .eyebrow { color: var(--silver, #c9d0da); }
.pro-hero .lede, .pro-hero .small { color: #e6ebf5; max-width: 60ch; }
.pro-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.12; margin: 0 0 12px; }
.pro-hero .pro-text { display: grid; gap: 16px; min-width: 0; }
.pro-hero button { min-height: 44px; }
.pro-hero button:not(.primary) { background: transparent; color: #fff; border: 1px solid var(--silver, #c9d0da); }
.pro-panel { border: 1px solid var(--silver, #c9d0da); border-radius: 8px; padding: 20px; background: rgba(255,255,255,.06); min-width: 0; }
.pro-panel h2 { font-size: 1.1rem; margin: 0 0 8px; }
.pro-panel ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.pro-gives { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pro-gives > div { padding: 18px 20px; border-radius: 8px; background: var(--surface); border: 1px solid var(--sage-line); border-left: 4px solid var(--sage); min-width: 0; }
.pro-gives h3, .pro-gives p { margin: 0 0 6px; }
@media (max-width: 760px) { .pro-hero, .pro-gives { grid-template-columns: 1fr; } .pro-hero { padding: 20px; } }
html[data-brand="aequis"] .pro-hero h1, html[data-brand="aequis"] .pro-hero h2, html[data-brand="aequis"] .pro-hero a { color: #fff; }
html[data-brand="aequis"] .pro-hero .eyebrow { color: var(--silver); }
html[data-brand="aequis"] .pro-hero .lede, html[data-brand="aequis"] .pro-hero .small { color: #e6ebf5; }
html[data-brand="aequis"] .pro-hero button:not(.primary) { background: transparent; color: #fff; border-color: var(--silver); }

/* Front page, Nov 2026: two doors, the two-of-three demonstration, photographs, closing banner. */
.hero-photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); background: var(--sage-soft); }
.two-doors { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.door-card { display: grid; align-content: start; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 2px solid var(--sage-line); min-width: 0; }
.door-card.dark { background: var(--sage-ink); border-color: var(--sage-ink); color: #fff; }
.door-card.dark h3, .door-card.dark p { color: #fff; }
.door-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.door-card .door-body { display: grid; gap: 10px; padding: clamp(18px, 3vw, 26px); }
.door-card.dark button.quiet, .door-card.dark .button { background: #fff; color: var(--sage-ink); border-color: #fff; }
.demo { display: grid; gap: 18px; background: var(--sage-soft); border-radius: var(--radius-lg); padding: clamp(18px, 4vw, 36px); }
.demo-people { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.demo-person { display: grid; justify-items: center; gap: 6px; width: 156px; padding: 14px 10px; border-radius: 20px; background: var(--surface); border: 3px solid var(--sage-line); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.demo-person[aria-pressed="true"] { border-color: var(--sage-ink); }
.demo-person .dot { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #fff; font-size: 1.5rem; font-weight: 700; }
.demo-person small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.demo-result { flex: 1 1 280px; display: grid; align-content: center; gap: 6px; background: var(--surface); border: 2px solid var(--sage-line); border-radius: 20px; padding: 18px 22px; min-width: 0; }
.demo-result strong { font-size: 1.2rem; }
.photo-band { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.photo-band figure { margin: 0; display: grid; gap: 10px; }
.photo-band img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.photo-band figcaption strong { display: block; font-size: 1.15rem; }
.closing { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 280px; display: grid; align-items: center; background: #233027; }
.closing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing .closing-text { position: relative; display: grid; gap: 14px; max-width: 30em; padding: clamp(22px, 5vw, 48px); color: #fff; background: linear-gradient(90deg, rgba(35,48,39,.8), rgba(35,48,39,0)); min-height: 100%; align-content: center; }
.closing h2, .closing p { color: #fff; }
.closing .button, .closing button { justify-self: start; background: #fff; color: #2f4a3b; border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .demo-person { transition: none; } }
.demo-person .dot.c1 { background: #4f7360; } .demo-person .dot.c2 { background: #8a6a1f; } .demo-person .dot.c3 { background: #2f4a3b; }
.hero-art .hero-photo { height: auto; flex: none; }
.door-card img, .photo-band img, .closing img { height: auto; }
.closing img { height: 100%; }
.why-rows { display: grid; gap: 14px; }
.why-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 760px) { .why-row { grid-template-columns: 1fr; } }
.why-row .does { margin: 0; padding: 14px 16px; border-radius: var(--radius); border-left: 4px solid var(--sage); background: var(--sage-soft); }
.why-row .fact { height: 100%; }
