/* WealthenX website.
   Brand colours follow mobile/src/theme/tokens.js. No scripts and no inline styles (site/_headers).
   Layers: fonts · tokens · base · layout · components · home · legal · motion · print.
   Rules: green (--filed) means "done" only; amber (--gap) means "a gap to fix" only. */

/* ── Fonts ── Newsreader (OFL, no reserved name): cut to Latin, optical size 36, weights 400–600.
   IBM Plex Sans (OFL): IBM's own Latin split files, unchanged. Licences in fonts/. */
@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2010-2027, U+2030-203A, U+2044, U+2122, U+2190-2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader-rupee.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+20B9;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/plex-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/plex-sans-400-latin2.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+20B9;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/plex-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
/* Fallback faces sized like the web fonts, so the text does not jump when they load. */
@font-face {
  font-family: 'Newsreader fallback';
  src: local('Georgia'), local('Noto Serif'), local('DejaVu Serif');
  size-adjust: 94.9%;
  ascent-override: 77.4%;
  descent-override: 27.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Plex fallback';
  src: local('Arial'), local('Roboto'), local('Helvetica');
  size-adjust: 100.9%;
  ascent-override: 101.6%;
  descent-override: 27.3%;
  line-gap-override: 0%;
}

/* ── Tokens ── */
:root {
  --paper: #f4f1ea;
  --sheet: #ffffff;
  --ink: #101418;
  --body: #1f2937;
  --mute: #545b69;
  --rule: #dcd5c6;
  --rule-strong: #b9b09d;
  --tile: #f4f1ea;
  --tile-ink: #0a2540;
  --thread: rgba(10, 37, 64, 0.6);
  --broken: #857c69;
  --disc-bg: #3b4652;
  --gap-edge: #b86e00;
  --grid-dot: rgba(10, 37, 64, 0.1);
  --weight-bg: #061829;
  --weight-rule: rgba(244, 246, 248, 0.14);
  --hl: rgba(56, 189, 248, 0.3);
  --navy: #0a2540;
  --navy-deep: #061829;
  --on-navy: #f4f6f8;
  --on-navy-mute: rgba(244, 246, 248, 0.76);
  --on-navy-rule: rgba(244, 246, 248, 0.2);
  --filed: #0e9f6e;
  --filed-text: #075e40;
  --gap-bg: #fef4e5;
  --gap-text: #8a5300;
  --gap-line: #f2c77e;
  --gap-fill: #b86e00;
  --on-filed: #ffffff;
  --line-accent: #0a2540;
  --focus: #1d5fc2;
  --button-bg: #0a2540;
  --button-fg: #ffffff;
  --button-hover: #061829;
  --shadow: 0 1px 0 var(--rule), 0 12px 24px -16px rgba(10, 37, 64, 0.18);
  --slip-shadow: 0 10px 22px -10px rgba(10, 37, 64, 0.38);
  --serif: 'Newsreader', 'Newsreader fallback', Georgia, serif;
  --sans: 'IBM Plex Sans', 'Plex fallback', system-ui, sans-serif;
  --gutter: 16px;
  --max: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0b0f14;
    --sheet: #141a21;
    --ink: #f4f6f8;
    --body: rgba(244, 246, 248, 0.86);
    --mute: rgba(244, 246, 248, 0.68);
    --rule: rgba(255, 255, 255, 0.11);
    --rule-strong: rgba(255, 255, 255, 0.3);
    --tile: #1b232c;
    --tile-ink: #c9d8ea;
    --thread: rgba(201, 216, 234, 0.55);
    --broken: rgba(244, 246, 248, 0.45);
    --disc-bg: #5b6878;
    --gap-edge: #f5b544;
    --grid-dot: rgba(255, 255, 255, 0.07);
    --weight-bg: #0e2238;
    --weight-rule: rgba(244, 246, 248, 0.18);
  --hl: rgba(56, 189, 248, 0.34);
    --hl: rgba(56, 189, 248, 0.34);
    --navy-deep: #061829;
    --filed: #10b981;
    --filed-text: #34d399;
    --gap-bg: rgba(245, 158, 11, 0.16);
    --gap-text: #f5b544;
    --gap-line: rgba(245, 181, 68, 0.45);
    --gap-fill: #f5b544;
    --on-filed: #0b0f14;
    --line-accent: #c9d8ea;
    --focus: #8ab4f8;
    --button-bg: #f4f6f8;
    --button-fg: #0a2540;
    --button-hover: #dfe5ec;
    --shadow: none;
    --slip-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --tile-ink: #c9d8ea;
  --thread: rgba(201, 216, 234, 0.55);
  --broken: rgba(244, 246, 248, 0.45);
  --disc-bg: #5b6878;
  --gap-edge: #f5b544;
  --grid-dot: rgba(255, 255, 255, 0.07);
  --weight-bg: #0e2238;
  --weight-rule: rgba(244, 246, 248, 0.18);
  --on-filed: #0b0f14;
  --line-accent: #c9d8ea;
  --gap-line: rgba(245, 181, 68, 0.45);
  --gap-fill: #f5b544;
  --paper: #0b0f14;
  --sheet: #141a21;
  --ink: #f4f6f8;
  --body: rgba(244, 246, 248, 0.86);
  --mute: rgba(244, 246, 248, 0.68);
  --rule: rgba(255, 255, 255, 0.11);
  --rule-strong: rgba(255, 255, 255, 0.3);
  --tile: #1b232c;
  --filed: #10b981;
  --filed-text: #34d399;
  --gap-bg: rgba(245, 158, 11, 0.16);
  --gap-text: #f5b544;
  --focus: #8ab4f8;
  --button-bg: #f4f6f8;
  --button-fg: #0a2540;
  --button-hover: #dfe5ec;
  --shadow: none;
  --slip-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 17px/1.6 var(--sans);
  font-kerning: normal;
}
@media (min-width: 900px) { body { font-size: 18px; } }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 500; margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.875rem, 1.45rem + 1.8vw, 2.75rem); line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3125rem, 1.2rem + 0.5vw, 1.625rem); line-height: 1.2; }
p, ul, ol { margin: 0 0 16px; }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.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;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--button-bg); color: var(--button-fg); padding: 12px 16px; border-radius: 12px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ── Layout ── */
.shell { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ── Components ── */

/* Header. Wide screens: links in a row. Phones: a native <details> menu. */
.site-header { position: relative; border-bottom: 1px solid var(--rule); background: var(--paper); z-index: 5; }
.site-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--ink); text-decoration: none; font: 600 22px/1 var(--serif); letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.nav-wide { display: none; }
.nav-narrow > summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 4px 0 12px;
  color: var(--ink); font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; border-radius: 12px;
}
.nav-narrow > summary::-webkit-details-marker { display: none; }
.nav-narrow > summary .icon { width: 24px; height: 24px; }
.nav-close, .nav-narrow > summary .icon:last-child { display: none; }
.nav-narrow[open] .nav-open, .nav-narrow[open] > summary .icon:nth-last-child(2) { display: none; }
.nav-narrow[open] .nav-close, .nav-narrow[open] > summary .icon:last-child { display: inline; }
.nav-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 16px 24px -20px rgba(10, 37, 64, 0.4);
  padding: 4px var(--gutter) 24px;
}
.nav-panel > a {
  display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--rule);
  color: var(--ink); text-decoration: none; font: 500 22px/1.2 var(--serif);
}
.nav-panel > a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 6px; }
.nav-panel-get { margin: 20px 0 8px; color: var(--mute); font-size: 15px; }
@media (min-width: 900px) {
  .nav-narrow { display: none; }
  .nav-wide { display: flex; align-items: center; gap: 28px; }
  .nav-wide > a:not(.button) { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-size: 16px; }
  .nav-wide > a:not(.button):hover, .nav-wide > a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 6px; }
  .nav-wide > a[aria-current='page'] { text-decoration-color: currentColor; }
  .nav-wide .nav-family { color: var(--mute); padding-left: 28px; border-left: 1px solid var(--rule); }
}

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px;
  border-radius: 12px; background: var(--button-bg); color: var(--button-fg);
  font: 600 16px/1 var(--sans); text-decoration: none; transition: background-color 120ms ease;
}
.button:hover { background: var(--button-hover); }
.button:active { transform: translateY(1px); }
.button-small { min-height: 48px; padding: 0 16px; font-size: 15px; }
.button-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button-quiet:hover { background: var(--tile); }
.text-link {
  display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: text-decoration-thickness 120ms ease;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* Store badges. The Play image has clear space built in: negative margins line its edge up with
   the App Store badge, both 48 px tall. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0; }
.store { display: inline-flex; border-radius: 8px; line-height: 0; }
.store img { height: 48px; width: auto; }
.store img[src$='google-play.png'] { height: 72px; margin: -12px; }

/* Shared pieces */
.tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: var(--tile); color: var(--tile-ink); }
.tile .icon { width: 22px; height: 22px; }
.ruled { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--rule); }
.ruled > li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.amount { font-family: var(--serif); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.gap { display: inline-block; padding: 3px 8px; border-radius: 4px; background: var(--gap-bg); color: var(--gap-text); font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.draft-banner { background: var(--gap-bg); color: var(--gap-text); font-size: 14px; padding: 10px 0; }
.todo { background: var(--gap-bg); color: var(--gap-text); border-radius: 3px; padding: 0 4px; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 40px; font-size: 15px; color: var(--mute); }
.footer-get { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--rule); }
.page-home .footer-get { display: none; } /* the home page has its own call to action (#get-the-app) */
.footer-get-title { margin: 0; color: var(--ink); font: 500 clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem)/1.2 var(--serif); }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; margin-bottom: 32px; }
.footer-cols { display: grid; gap: 28px; }
.footer-cols h2 { margin: 0 0 8px; color: var(--ink); font: 600 15px/1.4 var(--sans); letter-spacing: 0; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 0; }
.footer-cols a { display: inline-flex; align-items: center; min-height: 48px; color: var(--mute); }
.footer-contact li { padding: 0; min-height: 48px; display: flex; align-items: center; }
.footer-contact li:not(:has(a)) { min-height: 0; padding: 4px 0 8px; }
.footer-legal { margin: 32px 0 0; font-size: 14px; max-width: 70ch; }
@media (min-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr 1.4fr; gap: 40px; }
}

/* ── Home and content pages ── */
.band { padding: 72px 0; border-top: 1px solid var(--rule); }
.band h2 { max-width: 20ch; }
.band-head { max-width: 760px; margin-bottom: 40px; }
.band-lede, .clause-lede { font-size: 1.125em; color: var(--body); max-width: 38em; margin-bottom: 28px; }
.cite::after { content: ''; position: absolute; inset: -12px -1px; }
.cite {
  position: relative;
  display: inline-block; min-width: 24px; margin-left: 2px; text-align: center; vertical-align: super;
  font-size: 0.68em; line-height: 1; color: inherit; text-decoration: underline; text-underline-offset: 2px;
}
@media (min-width: 900px) { .band { padding: 112px 0; } }

/* People in the examples: one colour each, the same everywhere. */
.avatar { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; color: #fff; font: 600 11px/1 var(--sans); }
.avatar.big { width: 44px; height: 44px; font-size: 18px; }
.av-p { background: #0e6e7e; }
.av-a { background: #5a2f9e; }
.av-m { background: #174c9c; }
.av-b { background: #8f4a12; }
.av-y { background: var(--disc-bg); }
.avatar-pair { display: flex; }
.avatar-pair .avatar + .avatar { margin-left: -8px; box-shadow: 0 0 0 3px var(--paper); }

/* Story: the hero, then Ravi's map, which the reader's scroll changes. site.js adds .is-live (only on
   screens at least 540 px tall) and sets the stage's data-phase from the step at the reading line.
   Without it, the story is a still map with "In the picture" text under each step. */
.story { padding: 48px 0 0; border-top: 1px solid var(--rule); overflow-x: clip; }
.story-intro h2 { max-width: 16ch; margin-bottom: 12px; }
.story-intro p { max-width: 30em; margin: 0; font-size: 1.125em; }
.story-hero { padding: 0 0 28px; }
.display { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.5rem); line-height: 1.04; letter-spacing: -0.022em; margin-bottom: 20px; max-width: 13ch; }
.hero-q { margin: 0 0 28px; max-width: 26em; color: var(--ink); font: 400 clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem)/1.35 var(--serif); text-wrap: pretty; }
.lede { font-size: 1.125em; max-width: 34em; color: var(--body); margin-bottom: 28px; }
.hero-trust { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; color: var(--mute); font-size: 15px; }
.hero-trust .icon { width: 18px; height: 18px; color: var(--ink); }
.story-hero { position: relative; }
.skip-story:focus { position: absolute; z-index: 3; left: 0; bottom: 0; padding: 0 12px; background: var(--paper); }
.skip-story { align-self: flex-start; display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-weight: 600; text-underline-offset: 5px; }
.skip-story:not(:focus), .step-alt.is-sr, .story.is-live .step-alt, .nx-pic, .rv-alt {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.step-alt { margin: 10px 0 0; color: var(--mute); font-size: 15px; }
.steps { padding: 8px 0 48px; }
.step { padding: 24px 0; border-top: 1px solid var(--rule); }
.step-card h2 { margin-bottom: 10px; font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.5rem); line-height: 1.12; max-width: 18ch; }
.step-card h3 { margin-bottom: 8px; font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); }
.step-card p { margin: 0; max-width: 30em; }
.step-card p + p { margin-top: 10px; }

/* The stage: a label, the map box and a line that sums up what the picture shows. */
.stage { position: relative; margin: 0 0 8px; }
.stage-view { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; height: 420px; }
.stage-label { display: grid; margin: 0; color: var(--mute); font-size: 13px; font-weight: 600; }
.lbl { grid-area: 1 / 1; opacity: 0; transition: opacity 150ms ease; }
.stage[data-phase='own'] .lbl-own, .stage[data-phase='known'] .lbl-known, .stage[data-phase='gone'] .lbl-gone,
.stage[data-phase='search'] .lbl-search, .stage[data-phase='nominee'] .lbl-nominee { opacity: 1; }
.stage-meter {
  margin: 0; min-height: 2.6em; color: var(--ink); font: 500 17px/1.3 var(--serif);
  font-variant-numeric: lining-nums tabular-nums; text-wrap: balance;
}
.stage-cue { display: none; }
/* site.js sets .is-instant for two frames when the story starts, so a reload in the middle of the
   story lands in the right state without playing every change. */
.stage.is-instant, .stage.is-instant *, .stage.is-instant *::before, .stage.is-instant *::after { transition: none !important; }
.stage.is-instant :is(.q, .todo-list) { animation: none !important; }
.stage-box {
  position: relative; min-height: 0; overflow: clip; container: map / size;
  border: 1px solid var(--rule); border-radius: 4px;
  background: radial-gradient(var(--grid-dot) 1px, transparent 1.5px) 0 0 / 24px 24px, var(--paper);
}

/* The map (partial wealthmap.html, used in the story and the rewind). The state sets the variables
   on .map, and every part reads them: --cen Ravi is there · --th his threads · --lo broken threads
   · --dr drift · --uq the family can't place it · --tag nominee tags · --heal recorded · --dim. */
.map { --cen: 1; --th: 1; --lo: 0; --dr: 0; --uq: 0; --tag: 0; --heal: 0; --dim: 1; --sk: 0.45; position: absolute; inset: 0; opacity: var(--dim); }
.map > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke-linecap: round; }
.map line { vector-effect: non-scaling-stroke; stroke-width: 1.5; }
.th-own { stroke: var(--thread); opacity: var(--th); clip-path: circle(75% at 50% 50%); }
.th-own .tu { opacity: calc(1 - 0.75 * var(--uq)); }
.th-loose { stroke: var(--broken); stroke-dasharray: 3 4; opacity: var(--lo); }
.map-centre { --disc: 40px; position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; width: var(--disc); height: var(--disc); }
.c-disc, .c-ring { grid-area: 1 / 1; border-radius: 50%; }
.c-disc { display: grid; place-items: center; background: var(--disc-bg); color: #fff; font: 500 calc(var(--disc) * 0.45)/1 var(--serif); opacity: var(--cen); }
.c-ring { border: 1.5px dashed var(--broken); opacity: calc(1 - var(--cen)); }
.c-name, .c-will { position: absolute; left: 50%; translate: -50% 0; white-space: nowrap; }
.c-name { top: calc(100% + 3px); padding: 0 4px; background: var(--paper); color: var(--ink); font: 600 12px/1.3 var(--sans); opacity: var(--cen); }
.c-will {
  top: calc(100% + 22px); display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 3px;
  background: var(--sheet); box-shadow: inset 0 0 0 1px var(--filed); color: var(--filed-text); font: 600 12px/1.4 var(--sans); opacity: var(--heal);
}
.c-will .icon { width: 13px; height: 13px; }
.map-nodes { list-style: none; margin: 0; padding: 0; }
.node {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); translate: -50% -50%; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; gap: 1px; width: max-content; max-width: 30%; padding: 5px 6px;
  text-align: center; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 1px 2px rgba(10, 37, 64, 0.08);
}
.node::before, .node::after { content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0; pointer-events: none; }
.is-unknown::before { background: var(--gap-bg); opacity: var(--uq); }
.is-unknown::after { border: 1.5px dashed var(--gap-edge); opacity: var(--uq); }
.n1 { --x: 18; --y: 16; --i: 0; --gx: -14px; --gy: -6px; --gr: -4deg; --dx: -48px; --dy: -40px; --rot: -8deg; }
.n2 { --x: 50; --y: 16; --i: 1; --gx: 0px; --gy: -6px; --gr: 3deg; --dx: 0px; --dy: -56px; --rot: 6deg; }
.n3 { --x: 82; --y: 16; --i: 2; --gx: 14px; --gy: -6px; --gr: 4deg; --dx: 48px; --dy: -40px; --rot: 8deg; }
.n4 { --x: 18; --y: 50; --i: 3; --gx: -16px; --gy: 0px; --gr: -3deg; --dx: -64px; --dy: 0px; --rot: -6deg; }
.n5 { --x: 82; --y: 50; --i: 4; --gx: 16px; --gy: 2px; --gr: 3deg; --dx: 64px; --dy: 0px; --rot: 6deg; }
.n6 { --x: 18; --y: 84; --i: 5; --gx: -14px; --gy: 6px; --gr: 3deg; --dx: -48px; --dy: 40px; --rot: 7deg; }
.n7 { --x: 50; --y: 84; --i: 6; --gx: 0px; --gy: 6px; --gr: -2deg; --dx: 0px; --dy: 56px; --rot: -5deg; }
.n8 { --x: 82; --y: 84; --i: 7; --gx: 14px; --gy: 6px; --gr: -4deg; --dx: 48px; --dy: 40px; --rot: -8deg; }
.node-tile { display: none; }
.node-val { color: var(--ink); font: 500 16px/1.15 var(--serif); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.node-txt { display: grid; max-width: 100%; }
.g { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.g > b, .g > span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g > b { color: var(--ink); font: 600 12px/1.3 var(--sans); }
.g > span { color: var(--mute); font-size: 12px; line-height: 1.4; }
.g .avatar { display: none; width: 16px; height: 16px; margin-right: 4px; font-size: 9px; font-style: normal; vertical-align: -1px; }
.g-own { opacity: calc((1 - var(--tag)) * (1 - var(--heal))); }
.is-unknown .g-own { opacity: calc((1 - var(--tag)) * (1 - var(--heal)) * (1 - var(--uq))); }
.g-guess { opacity: 0; }
.is-unknown .g-guess { opacity: calc(var(--uq) * (1 - var(--tag))); }
.g-guess > b { color: var(--gap-text); }
.g-tag { opacity: var(--tag); }
.g-heal { opacity: var(--heal); }
.g-heal > span, .g .is-will { color: var(--filed-text); font-weight: 600; }
.n2 .g > b { white-space: normal; line-height: 1.15; }
.g > .is-none, .g > .is-old { justify-self: center; padding: 0 3px; border-radius: 3px; background: var(--gap-bg); color: var(--gap-text); font-weight: 600; }
.g > .is-law { color: var(--mute); }
.g > .is-fix { display: grid; justify-items: center; }
.is-fix > span { grid-area: 1 / 1; }
.fix-was { opacity: 0; color: var(--gap-text); }
.is-unknown .node-val { opacity: calc(1 - 0.65 * var(--uq)); }
.is-unknown .node-tile .icon { opacity: calc(1 - 0.7 * var(--uq)); }
.node-q, .node-ok {
  position: absolute; top: -7px; right: -5px; display: grid; place-items: center; width: 16px; height: 16px;
  border-radius: 50%; font-style: normal; opacity: 0;
}
.node-q { background: var(--sheet); color: var(--gap-text); box-shadow: inset 0 0 0 1.5px var(--gap-edge); font: 600 12px/1 var(--serif); }
.is-unknown .node-q { opacity: var(--uq); }
.node-ok { background: var(--filed); color: var(--on-filed); opacity: var(--heal); }
.node-ok .icon { width: 11px; height: 11px; }
.map :is(.c-disc, .c-name, .c-ring, .c-will, .th-own, .th-loose, .tu, .g, .node-val, .node-q, .node-ok, .node-tile, .node-tile .icon, .node-txt, .fix-was, .fix-now),
.map, .node::before, .node::after { transition: opacity 150ms ease; }
@container map (max-width: 18.5em) { .node-val { display: none; } }
@container map (min-width: 500px) and (min-height: 400px) {
  .map { --sk: 1; }
  .map-centre { --disc: 56px; }
  .node { gap: 3px; padding: 8px 10px; }
  .n2 .g > b { white-space: nowrap; line-height: 1.3; }
  .g > .is-none, .g > .is-old { padding: 0 5px; }
  .node-q, .node-ok { top: -8px; right: -8px; width: 18px; height: 18px; }
  .node-tile { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 2px; border-radius: 6px; background: var(--tile); color: var(--tile-ink); }
  .node-tile .icon { width: 20px; height: 20px; }
  .node-val { font-size: 20px; }
  .g > b { font-size: 14px; }
  .g > span { font-size: 13px; }
  .g .avatar { display: inline-grid; }
}

/* The states of the map. The story's phases come from data-phase; the rewind shows it recorded. */
.stage[data-phase='known'] .map { --uq: 1; }
.stage[data-phase='gone'] .map, .stage[data-phase='search'] .map { --cen: 0; --th: 0; --lo: 1; --dr: 1; --uq: 1; }
.stage[data-phase='search'] .map { --dim: 0.4; }
.stage[data-phase='search'] .node :is(.node-txt, .node-val, .node-tile, .node-q) { opacity: 0; }
.stage[data-phase='nominee'] .map { --cen: 0; --th: 0; --lo: 1; --tag: 1; }
.stage[data-phase='nominee'] .n6 { --uq: 1; }
.rewind .map { --heal: 1; }
.rewind:has(#rv-without:checked) .map, .js .rewind.is-waiting:not(.is-in) .map { --cen: 0; --th: 0; --lo: 1; --dr: 1; --uq: 1; --heal: 0; }
.rewind .fix-now { opacity: 1; }
.rewind .fix-was { opacity: 0; }
.js .rewind.is-waiting:not(.is-in) .fix-was { opacity: 1; }
.js .rewind.is-waiting:not(.is-in) .fix-now { opacity: 0; }
@media (max-width: 899px) { .stage[data-phase='search'] .map { --dim: 0; } }

/* Priya's search: a query and a to-do list that grows one row at a time. Shown only while live. */
.search { display: none; }
.story.is-live .search {
  position: absolute; z-index: 2; inset: 6px; display: flex; flex-direction: column; gap: 8px; padding: 12px;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--slip-shadow);
  opacity: 0; visibility: hidden; transition: opacity 150ms ease, visibility 0s 150ms;
}
.story.is-live .stage[data-phase='search'] .search { opacity: 1; visibility: visible; transition: opacity 150ms ease, visibility 0s; }
.search-q { display: flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 0 12px 0 8px; border-radius: 20px; background: var(--tile); color: var(--ink); font: 600 15px/1.2 var(--sans); }
.search-q .icon { width: 18px; height: 18px; color: var(--mute); }
.search-q .avatar { font-style: normal; }
.qs { display: grid; flex: 1; min-width: 0; }
.q { grid-area: 1 / 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 120ms ease; }
.q.is-off { opacity: 0; }
.todo-head { margin: 2px 0 0; color: var(--mute); font-size: 13px; font-weight: 600; }
.todo-window { --rows: 6; --row: 2.25em; height: calc(var(--rows) * var(--row)); overflow: hidden; font-size: 14px; }
/* site.js sets --shown (rows so far) and --fit (rows the window holds); the newest row stays at the bottom. */
.todo-list { list-style: none; margin: 0; padding: 0; transform: translateY(calc(max(0, var(--shown, 0) - var(--fit, 6)) * var(--row) * -1)); }
.task {
  position: relative; height: var(--row); padding-left: 24px; border-bottom: 1px solid var(--rule); color: var(--body);
  line-height: calc(var(--row) - 1px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 150ms ease;
}
.task::before { content: ''; position: absolute; left: 2px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border: 1.5px solid var(--rule-strong); border-radius: 3px; }
.task.is-gap { color: var(--gap-text); }
.task.is-gap::before { content: '?'; width: 14px; height: 18px; margin-top: -9px; border: 0; text-align: center; font: 600 16px/18px var(--serif); }
.task.is-off { opacity: 0; }
.task[data-j='1'] { --j: 1; }
.task[data-j='2'] { --j: 2; }
.task[data-j='3'] { --j: 3; }
.task[data-j='4'] { --j: 4; }
.task[data-j='5'] { --j: 5; }
.ghost {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 10px; border-radius: 8px;
  outline: 1.5px dashed var(--gap-edge); outline-offset: -1.5px; color: var(--mute); font-size: 14px; transition: opacity 150ms ease;
}
.ghost .icon { width: 18px; height: 18px; }
.ghost .gap { margin-left: auto; }
.ghost.is-off { opacity: 0; }
@media (min-width: 900px) and (max-height: 620px) { .todo-window { --rows: 4; } }
@media (max-width: 899px) {
  .story.is-live .todo-window { flex: 1 1 0; height: auto; min-height: var(--row); }
}
@media (max-width: 899px) and (max-height: 619px) { .story.is-live .todo-head { display: none; } }

/* Desktop: the steps scroll on the left while the map stays on the right. */
@media (min-width: 900px) {
  .story { padding-top: 72px; }
  .story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; }
  .story-hero { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; min-height: 70vh; padding: 0 0 48px; }
  .steps { grid-column: 1; grid-row: 2; }
  .stage { grid-column: 2; grid-row: 1 / 3; align-self: start; margin: 0; }
  .stage-view { height: min(calc(100vh - 112px), 720px); }
  .stage-meter { font-size: 20px; }
  .story.is-live .search { inset: auto; left: 50%; top: 50%; translate: -50% -50%; width: min(380px, 78%); padding: 14px; }
  .story.is-live .stage { position: sticky; top: 24px; }
  .story.is-live .step { display: flex; align-items: center; min-height: 70vh; padding: 0; border: 0; }
  .story.is-live .step:last-child { min-height: 90vh; padding-bottom: 20vh; }
}
@media (max-width: 899px) and (min-height: 540px) {
  .stage { margin: 0; padding: 10px 0 6px; }
  .stage-view { height: var(--stage-h); max-width: 560px; margin-inline: auto; }
}
/* Phones and tablets: the map stays whole at the top. Each step's card stops just under it while the
   reader reads, then slides up under the map as the next card arrives. */
.story { --stage-h: 54svh; }
@media (max-width: 899px) {
  .story.is-live .stage { position: sticky; top: 0; z-index: 2; margin: 0; background: var(--paper); }
  .story.is-live .stage::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 20px; background: linear-gradient(var(--paper), transparent); pointer-events: none; }
  .story.is-live .stage-cue {
    position: absolute; left: 0; right: 0; top: calc(100% + 28px); display: flex; justify-content: center; align-items: center; gap: 8px;
    margin: 0; color: var(--mute); font-size: 15px; font-weight: 600; opacity: 0; transition: opacity 150ms ease;
  }
  .story.is-live .stage-cue .icon { width: 18px; height: 18px; }
  .story.is-live .stage[data-phase='own'] .stage-cue { opacity: 1; }
  .story.is-live .steps { position: relative; z-index: 1; padding: 36svh 0 0; }
  .story.is-live .step { min-height: 70svh; padding: 0; border: 0; }
  .story.is-live .step:last-child { min-height: 60svh; padding-bottom: 40px; }
  .story.is-live .step-card {
    position: sticky; top: calc(var(--stage-h) + 36px); max-width: 560px; margin: 0 auto; padding: 18px;
    background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--slip-shadow);
  }
  .story.is-live .step-card h2 { font-size: 1.625rem; line-height: 1.15; }
  .story.is-live .step-card h3 { font-size: 1.375rem; }
  .story.is-live .search { padding: 10px; gap: 6px; }
}

/* Nominee explorer: the owner, the asset, the nominee and who finally keeps it. Native radios and
   :has() pick the situation, so it works without the script; site.js only replays the line. */
.nx h2 { max-width: 24ch; }
.nx-box { margin-bottom: 40px; }
.nx-pick { min-width: 0; margin: 0 0 28px; padding: 0; border: 0; }
.nx-pick legend { margin-bottom: 12px; padding: 0; color: var(--ink); font-size: 16px; font-weight: 600; }
.nx-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nx-opts label {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 6px; text-align: center;
  border: 1px solid var(--rule-strong); border-radius: 10px; background: var(--sheet); color: var(--ink); cursor: pointer;
  font-size: 14px; font-weight: 600; line-height: 1.2;
}
.nx-opts label:last-of-type { grid-column: 1 / -1; }
.nx-opts input:checked + label { border-color: var(--button-bg); background: var(--button-bg); color: var(--button-fg); }
.nx-opts input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.nx-stage { min-width: 0; }
.nx-chain { list-style: none; margin: 0; padding: 0; display: grid; }
.nx-node { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.nx-icon { grid-row: span 2; display: grid; place-items: center; width: 72px; height: 48px; transition: opacity 150ms ease; }
.nx-icon > * { grid-area: 1 / 1; }
.nx-icon .tile { width: 48px; height: 48px; background: var(--sheet); border: 1px solid var(--rule); }
.nx-icon .tile .icon { width: 26px; height: 26px; }
.nx-icon .avatar-pair .avatar.big { width: 28px; height: 28px; font-size: 12px; }
.nx-icon .avatar-pair .avatar + .avatar { margin-left: -6px; }
.nx-icon .avatar-pair.is-apart .avatar + .avatar { margin-left: 6px; box-shadow: none; }
.nx-empty { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px dashed var(--broken); border-radius: 50%; }
.nx-empty.is-gap { border-color: var(--gap-edge); background: var(--gap-bg); color: var(--gap-text); font: 600 22px/1 var(--serif); }
.nx-role { align-self: end; color: var(--mute); font-size: 13px; }
.nx-name { align-self: start; display: grid; color: var(--ink); font: 500 18px/1.25 var(--serif); }
.nx-name > * { grid-area: 1 / 1; }
.nx-name .gap { font-family: var(--sans); vertical-align: 3px; }
.nx-link { position: relative; width: 2px; height: 16px; margin: 4px 0 4px 35px; }
.nx-link i { position: absolute; inset: 0; background: var(--thread); clip-path: inset(0 0 var(--cut, 0%) 0); }
.nx-link.l3 i { background: repeating-linear-gradient(180deg, var(--thread) 0 4px, transparent 4px 8px); }
.nx-stop { position: absolute; left: -6px; top: calc(50% - 1.5px); width: 14px; height: 3px; border-radius: 2px; background: var(--gap-fill); opacity: 0; transition: opacity 150ms ease; }
.nx .v, .nx-panel { opacity: 0; visibility: hidden; transition: opacity 150ms ease, visibility 0s 150ms; }
.nx:has(#nx-base:checked) .s-base, .nx:has(#nx-none:checked) .s-none, .nx:has(#nx-old:checked) .s-old,
.nx:has(#nx-heirs:checked) .s-heirs, .nx:has(#nx-papers:checked) .s-papers, .nx:has(#nx-split:checked) .s-split,
.nx:has(#nx-nowill:checked) .s-nowill { opacity: 1; visibility: visible; transition: opacity 250ms ease var(--d, 0ms), visibility 0s; }
.nx:has(#nx-none:checked) .l2 { --cut: 50%; }
.nx:has(#nx-none:checked) .l3 { --cut: 100%; }
.nx:has(:is(#nx-papers, #nx-split):checked) .l3 { --cut: 50%; }
.nx:has(#nx-none:checked) .l2 .nx-stop, .nx:has(:is(#nx-papers, #nx-split):checked) .l3 .nx-stop { opacity: 1; }
.nx:has(#nx-none:checked) .is-final .nx-icon { opacity: 0.55; }
.nx-example { max-width: 62ch; margin: 18px 0 28px; color: var(--mute); font-size: 15px; }
.nx-panels { display: grid; grid-template-columns: minmax(0, 1fr); }
/* Only the chosen panel takes space, so a short panel leaves no gap. */
@supports selector(:has(*)) {
  .nx-panel { display: none; }
  .nx:has(#nx-base:checked) .nx-panel.s-base, .nx:has(#nx-none:checked) .nx-panel.s-none, .nx:has(#nx-old:checked) .nx-panel.s-old, .nx:has(#nx-heirs:checked) .nx-panel.s-heirs, .nx:has(#nx-papers:checked) .nx-panel.s-papers, .nx:has(#nx-split:checked) .nx-panel.s-split, .nx:has(#nx-nowill:checked) .nx-panel.s-nowill { display: block; }
}
.nx-panel { grid-area: 1 / 1; padding-top: 24px; border-top: 1px solid var(--rule); }
.nx-panel h3 { max-width: 30ch; margin-bottom: 16px; font-size: 22px; }
.nx-why { max-width: 62ch; margin: 0 0 16px; color: var(--mute); font-size: 15px; }
.nx-help { display: flex; align-items: flex-start; gap: 10px; max-width: 760px; margin: 0; padding: 14px 16px; border-left: 3px solid var(--filed); background: var(--sheet); color: var(--ink); }
.nx-help .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--filed); }
.nx-help p { margin: 0; }
.nx-help a { font-weight: 600; text-decoration-color: currentColor; }

/* The pain pictures: what the family goes through in each situation. Amber = the hard part. */
.pain { margin: 0 0 16px; }
.pain-steps { list-style: none; padding: 0; display: grid; gap: 14px; }
.pain-steps > li {
  position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet); color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.35;
}
.ps-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--tile); color: var(--tile-ink); }
.ps-icon .icon { width: 20px; height: 20px; }
.pain-steps > .is-ok .ps-icon { color: var(--filed-text); }
.pain-steps > .is-hard { border: 1.5px solid var(--gap-edge); background: var(--gap-bg); color: var(--gap-text); }
.pain-steps > .is-hard .ps-icon { background: var(--sheet); color: var(--gap-text); }
.pain-steps > li + li::before { content: ''; position: absolute; left: 31px; top: -15px; width: 2px; height: 14px; background: var(--rule-strong); }
.pain-papers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; max-width: 760px; }
.pp-col { padding: 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet); }
.pp-col.is-hard { border: 1.5px solid var(--gap-edge); }
.pp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin: 0 0 10px; color: var(--ink); font-size: 14px; font-weight: 600; }
.pp-count { font: 500 20px/1.1 var(--serif); }
.is-hard .pp-count { color: var(--gap-text); }
.pp-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pp-col li { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 7px 8px; border-radius: 6px; background: var(--paper); color: var(--body); font-size: 14px; line-height: 1.3; }
.pp-col li .icon { width: 16px; height: 16px; margin-top: 1px; color: var(--mute); }
.pp-col li.is-extra { background: var(--gap-bg); color: var(--gap-text); font-weight: 600; }
.pp-col li.is-extra .icon { color: var(--gap-text); }
.sp-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
.sp-bar { display: flex; gap: 3px; max-width: 760px; margin: 0 0 16px; }
.sp-seg { flex: 1 1 0; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 48px; padding: 8px 10px; color: #fff; font-size: 14px; line-height: 1.25; }
.sp-seg:first-child { border-radius: 8px 0 0 8px; }
.sp-seg:last-child { border-radius: 0 8px 8px 0; }
.sp-seg:only-child { border-radius: 8px; }
.sp-seg b { display: block; font-weight: 600; }
.sp-seg .avatar { flex: none; background: rgba(255, 255, 255, 0.22); font-style: normal; }
.sp-p { background: #0e6e7e; }
.sp-a { background: #5a2f9e; }
.sp-m { background: #174c9c; }
.pain-wish { display: grid; gap: 14px; max-width: 760px; }
.pw-items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pw-items li {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border: 1.5px dashed var(--rule-strong); border-radius: 8px;
  color: var(--mute); font-size: 15px; font-weight: 600; text-decoration: line-through; text-decoration-color: var(--gap-edge); text-decoration-thickness: 2px;
}
.pw-items .icon { width: 18px; height: 18px; }
.pw-row .sp-bar { margin-bottom: 8px; }
.pw-note { margin: 0; color: var(--gap-text); font: 500 19px/1.3 var(--serif); }
/* The law picker in "No will": each law's split for Ravi's family, as a bar and a list. */
.law-pick { min-width: 0; margin: 0 0 12px; padding: 0; border: 0; }
.law-pick legend { margin-bottom: 8px; padding: 0; color: var(--mute); font-size: 14px; }
.law-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.law-opts label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: 22px;
  background: var(--sheet); color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 600;
}
.law-opts input:checked + label { border-color: var(--button-bg); background: var(--button-bg); color: var(--button-fg); }
.law-opts input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.laws { display: grid; grid-template-columns: minmax(0, 1fr); }
.law { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 150ms ease, visibility 0s 150ms; }
.nx:has(#law-hindu:checked) .l-hindu, .nx:has(#law-muslim:checked) .l-muslim,
.nx:has(#law-christian:checked) .l-christian, .nx:has(#law-parsi:checked) .l-parsi { opacity: 1; visibility: visible; transition: opacity 200ms ease, visibility 0s; }
.law-name { display: none; margin: 0 0 6px; color: var(--ink); font-weight: 600; }
.law .sp-bar { margin: 0 0 10px; }
.law .sp-seg { min-height: 28px; padding: 0; transform-origin: left center; }
.fg-1 { flex-grow: 1; } .fg-2 { flex-grow: 2; } .fg-3 { flex-grow: 3; } .fg-4 { flex-grow: 4; } .fg-17 { flex-grow: 17; }
.law-legend { list-style: none; max-width: 760px; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.law-legend li { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); font-size: 15px; }
.law-legend b { font-weight: 600; }
.law-share { margin-left: auto; font: 500 19px/1.2 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.law-legend .is-zero .law-share { color: var(--gap-text); }
.law-share small { margin-left: 4px; color: var(--mute); font: 400 13px/1 var(--sans); }
.pain-check ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 8px; max-width: 760px; }
.pain-check li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet); color: var(--ink); font-size: 15px; font-weight: 600; }
.pain-check li .icon { width: 18px; height: 18px; flex: none; }
.pain-check .is-ok .icon { color: var(--filed); }
.pain-check .is-missing { border: 1.5px dashed var(--gap-edge); background: var(--gap-bg); color: var(--gap-text); }
.pain-stop { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-radius: 20px; background: var(--gap-bg); color: var(--gap-text); font-weight: 600; }
.pain-stop .icon { width: 18px; height: 18px; }
@media (max-width: 599px) { .sp-seg .avatar { display: none; } .sp-seg { padding: 8px; font-size: 13px; } }
.nx-voices { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 14px; }
.nx-voices li { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.nx-voices .avatar { margin-top: 3px; }
.nx-who { display: block; color: var(--mute); font-size: 13px; font-weight: 600; }
.nx-voices q { color: var(--ink); font: 500 18px/1.35 var(--serif); }
.nx-means { display: block; color: var(--mute); font-size: 14px; }
@media (min-width: 900px) {
  .nx-opts { display: flex; flex-wrap: wrap; }
  .nx-opts label:last-of-type { grid-column: auto; }
  .nx-opts label { padding: 0 16px; font-size: 15px; }
  .nx-chain { grid-template-columns: 48px minmax(48px, 1fr) 48px minmax(48px, 1fr) 48px minmax(48px, 1fr) minmax(48px, auto); grid-template-rows: 48px auto auto; row-gap: 6px; align-items: start; }
  .nx-node { display: contents; }
  .nx-icon { grid-row: 1; width: auto; justify-items: start; }
  .nx-role { grid-row: 2; padding-right: 16px; }
  .nx-name { grid-row: 3; max-width: 13em; padding-right: 16px; font-size: 21px; }
  .is-owner .nx-icon { grid-column: 1; }
  .is-asset .nx-icon { grid-column: 3; }
  .is-nominee .nx-icon { grid-column: 5; }
  .is-final .nx-icon { grid-column: 7; }
  .is-owner :is(.nx-role, .nx-name) { grid-column: 1 / span 2; }
  .is-asset :is(.nx-role, .nx-name) { grid-column: 3 / span 2; }
  .is-nominee :is(.nx-role, .nx-name) { grid-column: 5 / span 2; }
  .is-final :is(.nx-role, .nx-name) { grid-column: 7; }
  .nx-link.l1 { grid-column: 2; }
  .nx-link.l2 { grid-column: 4; }
  .nx-link.l3 { grid-column: 6; }
  .nx-icon .avatar-pair .avatar.big { width: 44px; height: 44px; font-size: 18px; }
  .nx-icon .avatar-pair .avatar + .avatar { margin-left: -8px; }
  .nx-icon .avatar-pair.is-apart .avatar + .avatar { margin-left: 10px; }
  .nx-link { grid-row: 1; width: auto; height: 2px; margin: 23px 12px 0; }
  .nx-link i { clip-path: inset(0 var(--cut, 0%) 0 0); }
  .nx-link.l3 i { background: repeating-linear-gradient(90deg, var(--thread) 0 4px, transparent 4px 8px); }
  .nx-stop { left: calc(50% - 1.5px); top: -6px; width: 3px; height: 14px; }
  .nx-panel h3 { font-size: 26px; }
  .pain-steps { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 36px; max-width: 1000px; }
  .pain-steps > li + li::before { left: -35px; top: calc(50% - 1px); width: 34px; height: 2px; }
  .pain-steps > li + li::after { content: ''; position: absolute; left: -11px; top: calc(50% - 5px); width: 8px; height: 8px; border-top: 2px solid var(--rule-strong); border-right: 2px solid var(--rule-strong); rotate: 45deg; }
}
@media (min-width: 900px) and (max-width: 1099px) { .nx-opts label { padding: 0 12px; } }

/* The weight: the one dark band. What it costs the family, then the size of it in sourced numbers. */
.impact {
  padding: 80px 0; color: var(--on-navy-mute); background: var(--weight-bg); border-block: 1px solid var(--weight-rule);
  --ink: #f4f6f8; --rule: var(--on-navy-rule); --focus: #8ab4f8;
}
.impact-grid { display: grid; gap: 48px; align-items: center; }
.weight-title { margin: 0; max-width: 18ch; color: #fff; font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.015em; }
.weight-line { margin: 0; max-width: 26ch; color: var(--on-navy); font: 400 clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem)/1.35 var(--serif); }
.impact-title { margin: 0 0 28px; max-width: 20ch; color: #fff; font: 500 clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem)/1.2 var(--serif); }
/* Key words: a soft marker stroke in the brand's blue, behind the text. */
.hl { padding: 0 0.06em; background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 94%, transparent 94%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.impact .hl { padding: 0; background: none; color: #f5b544; }
.impact-pre { display: block; margin-bottom: 6px; color: #fff; font-size: 0.36em; letter-spacing: 0; }
.impact-big .unit { font-size: 0.42em; letter-spacing: 0; white-space: nowrap; }
.impact-big { display: block; white-space: nowrap; margin-bottom: 10px; color: #f5b544; font-size: clamp(2.75rem, 1.8rem + 3.2vw, 4.25rem); line-height: 1; letter-spacing: -0.025em; font-variant-numeric: lining-nums tabular-nums; }
.impact a { color: #fff; }
.shares { padding: 22px 22px 18px; border: 1px solid var(--on-navy-rule); border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.shares-title { margin: 0 0 14px; color: #fff; font-weight: 600; }
.shares ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.share { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
.share-value { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.share-bar { grid-column: 1 / -1; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.share-bar i { display: block; width: 100%; height: 100%; min-width: 0; border-radius: 6px; background: #f5b544; transform-origin: left center; transform: scaleX(var(--w)); transition: transform 1000ms var(--ease); }
.s-bank { --w: 0.533; }
.s-ins { --w: 0.0488; }
.s-mf { --w: 0.0204; }
@media (min-width: 900px) {
  .impact { padding: 112px 0; }
  .impact-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; }
}

/* Rewind: the same map, recorded. It redraws once when it comes into view, then nothing moves. */
/* The top section: the hero, Ravi's map as WealthenX records it, and the four steps. */
.top { padding: 24px 0 64px; overflow-x: clip; }
.top .rewind-figure .stage-label { margin: 0; }
.tagline {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 20px 6px 6px;
  border-radius: 999px; background: var(--button-bg); color: var(--button-fg); box-shadow: 0 12px 28px -16px rgba(10, 37, 64, 0.6);
  font: 400 clamp(1rem, 0.95rem + 0.35vw, 1.1875rem)/1.3 var(--serif); letter-spacing: 0.005em;
}
.tagline img { flex: none; width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.tagline b { font-weight: 600; }
/* One soft light sweep across the badge on load (motion block). */
.tagline::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.24) 50%, transparent 70%); transform: translateX(-110%); }
.cta h2 { margin-bottom: 8px; }
.cta h2 { max-width: 22ch; }
.cta-mark { width: 56px; height: 56px; margin-bottom: 20px; border-radius: 14px; box-shadow: 0 12px 28px -16px rgba(10, 37, 64, 0.6); }
@media (min-width: 900px) { .top { padding: 48px 0 96px; } }
.rewind-grid { display: grid; gap: 40px; }
.eyebrow { margin: 0 0 8px; color: var(--mute); font: 500 1.125rem/1.3 var(--serif); }
.rewind-figure { display: grid; gap: 14px; justify-items: start; min-width: 0; margin: 0; }
.rv-box { width: 100%; height: 320px; }
@media (min-width: 600px) and (max-width: 899px) { .rv-box { height: 460px; } }
.rv-cap { display: grid; color: var(--mute); font-size: 15px; }
.rv-cap > span { grid-area: 1 / 1; transition: opacity 150ms ease, visibility 0s 150ms; }
.rv-without { opacity: 0; visibility: hidden; }
.rewind:has(#rv-without:checked) .rv-with { opacity: 0; visibility: hidden; }
.rewind:has(#rv-without:checked) .rv-without { opacity: 1; visibility: visible; transition: opacity 150ms ease, visibility 0s; }
/* The four steps: each one a small scene on the map's paper, played in order once. */
.path-title { margin: 0 0 28px; max-width: 30ch; color: var(--ink); font: 500 clamp(1.5rem, 1.3rem + 0.8vw, 2rem)/1.2 var(--serif); }
.path { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 32px; }
.pstep { margin: 0; }
.pvis {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px; height: 200px; padding: 16px; overflow: clip;
  border: 1px solid var(--rule); border-radius: 4px; background: radial-gradient(var(--grid-dot) 1px, transparent 1.5px) 0 0 / 24px 24px, var(--paper);
}
.pstep h3 { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; font-size: 22px; }
.pno { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--button-bg); color: var(--button-fg); font: 600 14px/1 var(--sans); }
.pstep > p { max-width: 30ch; margin: 0; color: var(--mute); }
.mslip { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 4px; background: var(--sheet); font-size: 14px; }
.mslip .tile { width: 30px; height: 30px; }
.mslip .tile .icon { width: 17px; height: 17px; }
.mslip b { overflow: hidden; color: var(--ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.mslip em { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-style: normal; font-weight: 600; }
.pv-who .mslip em { color: var(--filed-text); }
.mslip .avatar { font-style: normal; }
.pv-will { align-items: center; gap: 10px; }
.pv-will .will-sheet { max-width: 240px; }
.pv-match, .pf-found { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 3px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--filed); color: var(--filed-text); font-size: 13px; font-weight: 600; }
.pv-match .icon, .pf-found .icon { width: 15px; height: 15px; }
.pv-family { align-items: center; gap: 12px; }
.pf-who { display: flex; }
.pf-who .avatar + .avatar { margin-left: -8px; box-shadow: 0 0 0 3px var(--paper); }
.pf-help { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-size: 13px; font-weight: 600; }
.pf-help .icon { width: 16px; height: 16px; }
.path-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.path-foot .first-badge { margin: 0; }
.path-more { margin: 0; font-size: 15px; }
.path-more a { font-weight: 600; text-decoration-color: currentColor; }
@media (min-width: 900px) { .path { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 900px) {
  .rewind-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: 'copy fig' 'path path'; column-gap: 64px; row-gap: 72px; align-items: center; }
  .rewind-copy { grid-area: copy; }
  .rewind-figure { grid-area: fig; }
  .path-wrap { grid-area: path; }
  .rv-box { height: 520px; }
}

/* The family test: answers stay in the page; nothing is saved or sent. Each answer draws the
   reader's own map in green (they could find it) or amber (they would have to search). */
.test-grid, .privacy-grid, .will-grid { display: grid; gap: 32px; }
.test-card { padding: 4px 18px 18px; border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); box-shadow: var(--shadow); }
.test-row { display: grid; gap: 8px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.test-q { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; font-weight: 600; }
.test-q .icon { width: 22px; height: 22px; color: var(--tile-ink); transition: color 160ms ease; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 10px; background: var(--tile); }
.choices label { display: grid; place-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; cursor: pointer; color: var(--body); font-size: 14px; font-weight: 600; transition: background-color 140ms ease, color 140ms ease; }
.choices input[value='yes']:checked + label { background: var(--filed-text); color: var(--on-filed); }
.choices input:not([value='yes']):checked + label { background: var(--gap-bg); color: var(--gap-text); box-shadow: inset 0 0 0 2px var(--gap-edge); }
.test-row:has(input[value='yes']:checked) .test-q .icon { color: var(--filed); }
.test-row:has(input:not([value='yes']):checked) .test-q .icon { color: var(--gap-text); }
.test-result { padding-top: 16px; }
.test-result-text { margin: 0 0 4px; color: var(--ink); font-weight: 600; }
.ym {
  position: relative; height: 240px; max-width: 420px; overflow: clip; border: 1px solid var(--rule); border-radius: 4px;
  background: radial-gradient(var(--grid-dot) 1px, transparent 1.5px) 0 0 / 24px 24px, var(--paper);
}
.ym-threads { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.ym-threads line { vector-effect: non-scaling-stroke; stroke-width: 1.5; stroke-linecap: round; transition: opacity 200ms ease; }
.yl-base { stroke: var(--rule-strong); stroke-dasharray: 2 4; opacity: 0.6; }
.yl-ok { stroke: var(--thread); opacity: var(--yes, 0); }
.yl-gap { stroke: var(--gap-edge); stroke-dasharray: 3 3; opacity: var(--gap, 0); }
.ym-centre { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.ym-you { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--disc-bg); color: #fff; font: 600 13px/1 var(--sans); }
.ym-count { display: none; position: absolute; top: calc(100% + 2px); left: 50%; translate: -50% 0; padding: 0 4px; background: var(--paper); color: var(--mute); font: 500 16px/1.3 var(--serif); white-space: nowrap; }
.ym-count b { color: var(--ink); font-weight: 500; }
.js .ym-count { display: block; }
.ym-node {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); translate: -50% -50%; isolation: isolate;
  display: inline-flex; align-items: center; gap: 6px; max-width: 32%; padding: 6px 8px; white-space: nowrap;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; color: var(--ink); font: 600 13px/1.2 var(--sans);
  opacity: calc(0.7 + 0.3 * max(var(--yes, 0), var(--gap, 0))); transition: opacity 200ms ease;
}
.ym-node b { overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ym-node .icon { width: 18px; height: 18px; color: var(--tile-ink); }
.ym-node::before, .ym-node::after { content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; transition: opacity 200ms ease; }
.ym-node::before { border: 1.5px solid var(--filed); opacity: var(--yes, 0); }
.ym-node::after { border: 1.5px dashed var(--gap-edge); background: var(--gap-bg); opacity: var(--gap, 0); }
.ym-ok, .ym-q { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-style: normal; transition: opacity 200ms ease; }
.ym-ok { background: var(--filed); color: var(--on-filed); opacity: var(--yes, 0); }
.ym-ok .icon { width: 11px; height: 11px; color: inherit; }
.ym-q { background: var(--sheet); color: var(--gap-text); box-shadow: inset 0 0 0 1.5px var(--gap-edge); font: 600 12px/1 var(--serif); opacity: var(--gap, 0); }
.y1 { --x: 82; --y: 16; }
.y2 { --x: 18; --y: 16; }
.y3 { --x: 82; --y: 50; }
.y4 { --x: 18; --y: 50; }
.y5 { --x: 18; --y: 84; }
.y6 { --x: 50; --y: 84; }
.y7 { --x: 82; --y: 84; }
.y8 { --x: 50; --y: 16; }
.test:has(#t1y:checked) .y1, .test:has(#t2y:checked) .y2, .test:has(#t3y:checked) .y3, .test:has(#t4y:checked) .y4,
.test:has(#t5y:checked) .y5, .test:has(#t6y:checked) .y6, .test:has(#t7y:checked) .y7, .test:has(#t8y:checked) .y8 { --yes: 1; }
.test:has(:is(#t1s, #t1n):checked) .y1, .test:has(:is(#t2s, #t2n):checked) .y2, .test:has(:is(#t3s, #t3n):checked) .y3,
.test:has(:is(#t4s, #t4n):checked) .y4, .test:has(:is(#t5s, #t5n):checked) .y5, .test:has(:is(#t6s, #t6n):checked) .y6,
.test:has(:is(#t7s, #t7n):checked) .y7, .test:has(:is(#t8s, #t8n):checked) .y8 { --gap: 1; }
@media (min-width: 600px) { .test-row { grid-template-columns: minmax(0, 1fr) 260px; } }
@media (max-width: 899px) {
  .test-copy { display: contents; }
  .test-card { order: 1; }
  .ym { order: 2; width: 100%; }
}
@media (min-width: 900px) {
  .test-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: start; gap: 64px; }
  .test-copy { position: sticky; top: 32px; }
  .ym { height: 300px; margin-top: 8px; }
}

/* The view switch (rewind) and the hidden radio inputs that the switches and the test share. */
.view-switch { display: inline-flex; gap: 4px; margin: 0; padding: 4px; border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--sheet); }
.view-switch input, .choices input, .nx-opts input, .law-opts input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.view-switch label img { width: 20px; height: 20px; border-radius: 5px; }
.view-switch label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 9px; cursor: pointer;
  color: var(--mute); font-size: 15px; font-weight: 600; transition: background-color 160ms ease, color 160ms ease;
}
.view-switch input:checked + label { background: var(--button-bg); color: var(--button-fg); }
.view-switch input:focus-visible + label, .choices input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

/* The will sheet and the badge (will page and the "Your will" row). */
.will-sheet { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 270px; padding: 16px 16px 12px; border: 1px solid var(--rule); border-radius: 3px; background: var(--sheet); box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.will-title { color: var(--ink); font: 600 16px/1.2 var(--serif); }
.will-line { color: var(--body); font: 400 13px/1.4 var(--serif); }
.sign { width: 130px; height: 32px; margin-top: 4px; fill: none; stroke: var(--line-accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 0; }
.witness { display: flex; gap: 14px; }
.witness i { flex: 1; height: 1px; margin-top: 8px; background: var(--rule-strong); }
.first-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 12px 6px 10px;
  border: 1px solid var(--rule-strong); border-radius: 3px; color: var(--ink); font-size: 14px; font-weight: 600;
}
.first-badge .icon { width: 18px; height: 18px; color: var(--filed); }

/* Privacy: an account number becomes unreadable on its way to our server. */
.lock-demo { display: grid; gap: 12px; align-items: stretch; }
.lock-side { padding: 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); }
.lock-label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--mute); font-size: 13px; font-weight: 600; }
.lock-label .icon { width: 18px; height: 18px; }
.lock-record { display: block; padding: 12px 14px; border-radius: 10px; background: var(--tile); transition: opacity 400ms ease, transform 400ms var(--ease); }
.lock-record b { display: block; color: var(--ink); }
.lock-record span { display: block; color: var(--mute); font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lock-record .cipher { color: var(--tile-ink); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.lock-arrow { display: grid; place-items: center; align-self: center; height: 48px; color: var(--filed-text); }
.lock-arrow .icon { width: 30px; height: 30px; transition: transform 300ms var(--ease); }
.never-ask { display: flex; align-items: center; gap: 12px; max-width: 30em; margin: 0 0 12px; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); color: var(--ink); font-weight: 600; }
.never-ask .icon { width: 22px; height: 22px; color: var(--tile-ink); }
@media (min-width: 600px) { .lock-demo { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); } }
@media (min-width: 900px) { .privacy-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 64px; } }

/* Will page: the path without a WILL, the five chapters on a track, the checked report, private points. */
.ps-text b { display: block; font-weight: 600; }
.ps-text small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; opacity: 0.9; }
.law-path { max-width: 1000px; }
.kit-steps { position: relative; list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 22px; }
.kit-steps::before, .kit-steps::after { content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--rule); }
.kit-steps::after { background: var(--filed); transform-origin: top center; }
.kit-steps li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; margin: 0; }
.kit-icon { position: relative; z-index: 1; grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--button-bg); color: var(--button-fg); box-shadow: 0 0 0 6px var(--paper); }
.kit-icon .icon { width: 26px; height: 26px; }
.kit-steps h3 { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; font-size: 21px; }
.kit-no { color: var(--mute); font: 600 13px/1 var(--sans); }
.kit-steps p { max-width: 26ch; margin: 0; color: var(--mute); font-size: 15px; }
.kit-time { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 20px; background: var(--sheet); color: var(--ink); font-weight: 600; }
.kit-time .icon { width: 18px; height: 18px; color: var(--tile-ink); }
.r-asset { display: flex; align-items: center; gap: 10px; min-width: 0; }
.r-asset .icon { flex: none; width: 20px; height: 20px; color: var(--tile-ink); }
.report { position: relative; overflow: hidden; }
.report::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, transparent 35%, rgba(14, 159, 110, 0.16) 50%, transparent 65%); transform: translateY(100%); }
.pt-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); color: var(--tile-ink); }
.pt-icon .icon { width: 24px; height: 24px; }
.plans-link { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 48px 0 0; color: var(--ink); font: 500 1.25rem/1.3 var(--serif); }
.plans-link .text-link { font: 600 16px/1 var(--sans); }
@media (min-width: 900px) {
  .kit-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
  .kit-steps::before, .kit-steps::after { left: 10%; right: 10%; top: 27px; bottom: auto; width: auto; height: 2px; }
  .kit-steps::after { transform-origin: left center; }
  .kit-steps li { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .kit-steps h3 { justify-content: center; margin-top: 14px; }
}

/* Security page: trust badges, when the recovery key opens, the check-in track and icon callouts. */
.trust-chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trust-chips li { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow); color: var(--ink); font-size: 15px; font-weight: 600; }
.trust-chips .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--button-bg); color: var(--button-fg); }
.key-cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.key-cases li { margin: 0; padding: 20px; border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); box-shadow: var(--shadow); }
.key-cases li.is-locked { border-color: var(--button-bg); box-shadow: inset 0 0 0 1px var(--button-bg), var(--shadow); }
.kc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.kc-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--tile); color: var(--tile-ink); }
.kc-icon .icon { width: 24px; height: 24px; }
.kc-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.kc-tag .icon { width: 15px; height: 15px; }
.is-open .kc-tag { box-shadow: inset 0 0 0 1px var(--filed); color: var(--filed-text); }
.is-locked .kc-tag { background: var(--button-bg); color: var(--button-fg); }
.key-cases h3 { margin-bottom: 6px; font-size: 21px; }
.key-cases p { margin: 0; color: var(--mute); }
.callout-icon { display: flex; align-items: flex-start; gap: 14px; }
.callout-icon > .icon { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--button-bg); color: var(--button-fg); }
.callout-icon.is-warn > .icon { background: var(--gap-bg); color: var(--gap-text); }
.callout-icon p { margin: 0; }
.kit + .callout { margin-top: 28px; }
@media (min-width: 900px) {
  .key-cases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .kit-steps.kit-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kit-steps.kit-4::before, .kit-steps.kit-4::after { left: 12.5%; right: 12.5%; }
}

/* The will: four documents laid out like papers on a table (Will page). */
.docs { list-style: none; margin: 0; padding: 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.doc {
  display: flex; flex-direction: column; padding: 16px 14px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px;
  box-shadow: var(--shadow); transform: rotate(var(--rot, 0deg)); transition: transform 600ms var(--ease);
}
.doc:nth-child(1) { --rot: -1.6deg; --from: translate(52%, 52%); }
.doc:nth-child(2) { --rot: 1.2deg; --from: translate(-52%, 52%); }
.doc:nth-child(3) { --rot: -0.8deg; --from: translate(52%, -52%); }
.doc:nth-child(4) { --rot: 1.5deg; --from: translate(-52%, -52%); }
.doc h3 { font-size: 18px; margin-bottom: 4px; }
.doc p { color: var(--mute); font-size: 14px; line-height: 1.45; margin-bottom: 10px; }
.doc-lines { display: none; flex-direction: column; gap: 5px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rule); font: 400 14px/1.35 var(--serif); color: var(--body); }
.doc-ok::after { content: ' ✓'; color: var(--filed-text); font-family: var(--sans); font-weight: 600; }
.doc-fix { display: grid; }
.doc-fix > span { grid-area: 1 / 1; transition: opacity 300ms ease; }
.fix-before { opacity: 0; align-self: start; justify-self: start; padding: 1px 6px; border-radius: 3px; background: var(--gap-bg); color: var(--gap-text); }
.fix-after { color: var(--filed-text); }
.fix-after::after { content: ' ✓'; font-family: var(--sans); font-weight: 600; }
@media (min-width: 600px) {
  .doc { padding: 20px 18px; }
  .doc h3 { font-size: 21px; }
  .doc-lines { display: flex; }
  .docs { gap: 16px; }
}
@media (min-width: 900px) { .will-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 64px; } }

.sign-demo { display: flex; margin: 0 0 36px; }
.sign-demo .will-sheet { max-width: 300px; }

/* Plans */
.plan-pair { display: grid; gap: 16px; margin-bottom: 16px; }
.plan-card { display: flex; flex-direction: column; padding: 24px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; box-shadow: var(--shadow); }
.plan-card > p, .plan-card > ul { margin-bottom: 20px; }
.plan-card .button { margin-top: auto; align-self: flex-start; }
.plan-card.is-paid { box-shadow: inset 0 0 0 1px var(--ink), var(--shadow); }
.plan-card h3 { font-size: 24px; margin-bottom: 8px; }
.plan-card ul { padding-left: 20px; }
.plan-card li { margin-bottom: 6px; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 12px; }
.plan-price .amount { font-size: 40px; line-height: 1; }
.plan-terms { color: var(--mute); font-size: 14px; }
@media (min-width: 700px) { .plan-pair { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* Sources */
.sources { padding: 40px 0 8px; color: var(--mute); font-size: 14px; }
.sources h2 { margin: 0 0 8px; color: var(--ink); font: 600 15px/1.4 var(--sans); }
.sources ol { margin: 0; padding-left: 20px; max-width: 90ch; }
.sources li { margin-bottom: 6px; }
.sources li:target { background: var(--gap-bg); color: var(--gap-text); }
.sources a { color: inherit; }
.brand-note { margin: 14px 0 0; max-width: 90ch; font-size: 13px; }

/* Content pages (Will, Security, Plans, Lost someone?) */
.page-hero { padding: 40px 0 40px; overflow-x: clip; }
.page-hero-grid { display: grid; gap: 40px; }
.page-hero h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 17ch; }
@media (min-width: 900px) {
  .page-hero { padding: 64px 0 56px; }
  .page-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 64px; }
}
.steps-list { list-style: none; margin: 0; padding: 0; counter-reset: step; max-width: 760px; }
.steps-list > li { position: relative; counter-increment: step; padding: 0 0 28px 64px; min-height: 64px; }
.steps-list > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--sheet); border: 1px solid var(--rule-strong); color: var(--ink); font: 500 22px/1 var(--serif);
}
.steps-list > li:not(:last-child)::after { content: ''; position: absolute; left: 21px; top: 52px; bottom: 6px; width: 2px; background: var(--rule); }
.steps-list h3 { margin: 8px 0 4px; font-size: 22px; }
.steps-list p { margin: 0; max-width: 56ch; }
.fact-note { color: var(--mute); font-size: 15px; }
.point-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.point-grid > li { padding-top: 20px; border-top: 2px solid var(--ink); }
.point-grid h3 { margin-bottom: 6px; }
.point-grid p { margin: 0; max-width: 34ch; }
@media (min-width: 900px) { .point-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.callout { max-width: 760px; margin: 0; padding: 20px 24px; background: var(--sheet); border: 1px solid var(--rule); border-left: 3px solid var(--line-accent); border-radius: 3px; }
.callout p:last-child { margin-bottom: 0; }
.qa { max-width: 760px; border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 8px 0; cursor: pointer; list-style: none; color: var(--ink); font: 500 20px/1.3 var(--serif); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; flex: none; color: var(--mute); font: 400 26px/1 var(--sans); transition: transform 160ms ease; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details > p { margin: 0 0 18px; max-width: 62ch; }
.report { list-style: none; margin: 0; padding: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; box-shadow: var(--shadow); }
.report li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.report li:last-child { border-bottom: 0; }
.report b { color: var(--ink); }
.status-ok { color: var(--filed-text); font-weight: 600; font-size: 14px; text-align: right; }
.status-gap { color: var(--gap-text); background: var(--gap-bg); padding: 2px 8px; border-radius: 4px; font-weight: 600; font-size: 13px; text-align: right; }
.status-plain { color: var(--mute); font-size: 14px; text-align: right; }
.contact-big { display: grid; gap: 12px; margin: 28px 0 8px; max-width: 520px; }
.contact-big a {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 18px; border-radius: 12px;
  background: var(--sheet); border: 1px solid var(--rule-strong); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px;
}
.contact-big a:hover { border-color: var(--ink); }
.contact-big .icon { width: 26px; height: 26px; color: var(--tile-ink); }
.contact-big small { display: block; color: var(--mute); font-weight: 400; font-size: 14px; }
.page-family .footer-get { display: none; } /* no sales message on the page for families in grief */

/* 404 */
.lost { padding: 64px 0 96px; }
.lost h1 { max-width: 18ch; }
.lost-links { max-width: 36ch; font-size: 18px; }
.lost-links > li { padding: 0; }
.lost-links a { display: flex; min-height: 52px; align-items: center; }

/* ── Legal pages: the text on one sheet, with a list of sections beside it. ── */
.legal { padding: 24px 0 64px; }
.legal-grid { display: grid; gap: 24px; align-items: start; }
.legal-sheet { min-width: 0; max-width: 780px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; box-shadow: var(--shadow); padding: 24px 18px 32px; }
.legal-sheet h1 { font-size: clamp(2rem, 1.6rem + 1.8vw, 2.75rem); margin-bottom: 8px; }
.legal-sheet .meta { color: var(--mute); font-size: 14px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.legal-sheet h2 { font-size: 22px; line-height: 1.25; margin: 36px 0 10px; scroll-margin-top: 24px; }
.legal-sheet p, .legal-sheet li { max-width: 68ch; }
.legal-sheet ul, .legal-sheet ol { padding-left: 22px; }
.legal-sheet li { margin-bottom: 8px; }
.legal-sheet a { text-decoration-color: currentColor; }
.legal-sheet table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 16px; }
.legal-sheet th, .legal-sheet td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); }
.legal-sheet th { color: var(--ink); font-weight: 600; width: 38%; }
.legal-sheet td { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
.toc-title { margin: 0 0 8px; color: var(--ink); font-weight: 600; font-size: 15px; }
.toc-list { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.4; }
.toc-list a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; color: var(--mute); text-decoration: none; }
.toc-list a:hover { color: var(--ink); text-decoration: underline; }
.toc-wide { display: none; }
.toc-narrow { margin: 0 0 20px; border: 1px solid var(--rule); border-radius: 3px; }
.toc-narrow > summary { display: flex; align-items: center; min-height: 48px; padding: 0 14px; color: var(--ink); font-weight: 600; cursor: pointer; }
.toc-narrow .toc-list { padding: 0 14px 10px; }
@media (min-width: 600px) {
  .legal-sheet { padding: 40px 48px 56px; }
}
@media (min-width: 900px) {
  .legal { padding: 48px 0 96px; }
  .legal-grid { grid-template-columns: 220px minmax(0, 780px); gap: 48px; }
  .toc-wide { display: block; position: sticky; top: 24px; padding-top: 44px; }
  .toc-narrow { display: none; }
}

/* Browsers without :has(): every scenario shows as a list, and the rewind map stays recorded. */
@supports not selector(:has(*)) {
  .nx-pick, .nx-chain, .nx-example, .rv-switch { display: none; }
  .nx-panels { gap: 24px; }
  .nx-panel { grid-area: auto; opacity: 1; visibility: visible; }
  .law-pick { display: none; }
  .laws { gap: 16px; }
  .law { grid-area: auto; opacity: 1; visibility: visible; }
  .law-name { display: block; }
}

/* ── Motion ── Ravi's map assembles once on load. The story's phases are transitions, so scrolling back
   reverses them. Other sections play once as they come into view (site.js marks them .is-waiting, then
   .is-in). Without the script, or with reduced motion, everything rests in a final state, and a phase
   change is a short cross-fade. Only transform, opacity and clip-path move. Nothing loops. */
@keyframes settle { from { opacity: 0; transform: translate(calc(var(--dx) * var(--k)), calc(var(--dy) * var(--k))) rotate(var(--rot)); } }
@keyframes appear { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes write { from { clip-path: inset(0 100% 0 0); } }
@keyframes sign { from { stroke-dashoffset: 400; } }
@keyframes sheen { to { transform: translateX(110%); } }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes wipe { from { clip-path: circle(0% at 50% 50%); } }
@keyframes run-list { from { transform: translateY(0); } }
/* Twin keyframes: switching a and b restarts the draw without reading the layout. */
@keyframes draw-x-a { from { clip-path: inset(0 100% 0 0); } }
@keyframes draw-x-b { from { clip-path: inset(0 100% 0 0); } }
@keyframes draw-y-a { from { clip-path: inset(0 0 100% 0); } }
@keyframes draw-y-b { from { clip-path: inset(0 0 100% 0); } }
@keyframes lock-shut { 0% { transform: scale(0.6) rotate(-20deg); } 60% { transform: scale(1.15) rotate(4deg); } 100% { transform: none; } }
@keyframes deal { from { transform: var(--from) rotate(0deg); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }

@media screen and (prefers-reduced-motion: no-preference) {
  .nav-panel { animation: menu-in 120ms ease-out; }

  .tagline::after { animation: sheen 1400ms var(--ease) 700ms both; }

  /* Story, on load: Ravi appears, his threads spread out, and his eight assets settle into place. */
  .stage .c-disc { animation: pop 360ms var(--ease) 100ms backwards; }
  .stage .th-own { animation: wipe 900ms var(--ease) 200ms backwards; }
  .stage .node { --k: 0.3; animation: settle 700ms var(--ease) backwards; animation-delay: calc(300ms + var(--i) * 70ms); }
  .stage .stage-meter { animation: appear 300ms ease-out 1300ms backwards; }
  .story.is-live .stage .node, .story.is-live .todo-list { will-change: transform; }
  @media (min-width: 900px) { .stage .node { --k: 1; } }

  /* Story, phase changes. Delays sit only on the phase being entered, so going back is immediate. */
  .map { transition-duration: 400ms; }
  .map .node {
    transform: translate(calc(var(--gx) * var(--sk) * var(--dr)), calc(var(--gy) * var(--sk) * var(--dr))) rotate(calc(var(--gr) * var(--sk) * var(--dr)));
    transition: transform 700ms var(--ease);
  }
  .map :is(.g, .node-val, .node-q, .node-tile .icon), .map .node::before, .map .node::after, .th-own .tu { transition-duration: 300ms; }
  .map .c-disc { transform: scale(calc(0.9 + 0.1 * var(--cen))); transition: opacity 500ms ease, transform 500ms var(--ease); }
  .map .c-name { transition-duration: 500ms; }
  .map .th-own { transition-duration: 600ms; }
  .map :is(.th-loose, .c-ring) { transition-duration: 400ms; }
  .stage[data-phase='known'] .is-unknown :is(.g, .node-val, .node-q, .node-tile .icon),
  .stage[data-phase='known'] .is-unknown::before, .stage[data-phase='known'] .is-unknown::after { transition-delay: calc(var(--i) * 60ms); }
  .stage[data-phase='gone'] :is(.th-loose, .c-ring) { transition-delay: 200ms; }
  .stage[data-phase='gone'] .node { transition-delay: calc(200ms + var(--i) * 40ms); }
  .stage[data-phase='nominee'] .g-tag { transition-delay: calc(300ms + var(--i) * 80ms); }

  /* Priya's search: the card rises, each query types in, and new to-dos join the list one by one.
     At "What else is there?" the list runs once from the first item to the last. */
  .story.is-live .search { transform: translateY(24px); transition: opacity 300ms ease, transform 300ms var(--ease), visibility 0s 300ms; }
  .story.is-live .stage[data-phase='search'] .search { transform: none; transition: opacity 400ms ease 100ms, transform 400ms var(--ease) 100ms, visibility 0s; }
  .q:not(.is-off) { animation: write 600ms steps(22, end) backwards; }
  .task { transition: opacity 300ms ease, transform 300ms var(--ease); transition-delay: calc(200ms + var(--j, 0) * 90ms); }
  .task.is-off { transform: translateY(8px); transition-delay: 0ms; }
  .todo-list { transition: transform 400ms var(--ease); }
  .stage[data-at='6'] .todo-list { animation: run-list 2400ms ease-in-out; }
  .stage[data-at='6'] .ghost { transition: opacity 600ms ease 2600ms; }

  /* Nominee explorer: the line reaches the nominee, rests, then carries on to who finally keeps it. */
  .is-nominee .v { --d: 500ms; }
  .is-final .v { --d: 1600ms; }
  .js .nx.is-waiting:not(.is-in) .nx-node > * { opacity: 0; }
  .nx.is-in .nx-node > * { animation: rise 420ms var(--ease) backwards; }
  .nx.is-in .is-asset > * { animation-delay: 150ms; }
  .nx.is-in .is-nominee > * { animation-delay: 550ms; }
  .nx.is-in .is-final > * { animation-delay: 1550ms; }
  .js .nx.is-waiting:not(.is-in) .nx-link:not(.l1) i { clip-path: inset(0 0 100% 0); }
  .nx.is-in .is-a .l2 i { animation: draw-y-a 450ms var(--ease) 150ms backwards; }
  .nx.is-in .is-a .l3 i { animation: draw-y-a 450ms var(--ease) 1250ms backwards; }
  .nx.is-in .is-b .l2 i { animation: draw-y-b 450ms var(--ease) 150ms backwards; }
  .nx.is-in .is-b .l3 i { animation: draw-y-b 450ms var(--ease) 1250ms backwards; }
  .nx:has(#nx-none:checked) .l2 .nx-stop { transition-delay: 650ms; }
  /* The chosen situation's picture builds one part at a time. */
  .nx:has(#nx-base:checked) .s-base .pain > *,
  .nx:has(#nx-none:checked) .s-none .pain > *,
  .nx:has(#nx-old:checked) .s-old .pain > *,
  .nx:has(#nx-heirs:checked) .s-heirs .pain > *,
  .nx:has(#nx-papers:checked) .s-papers .pain > *,
  .nx:has(#nx-split:checked) .s-split .pain > *,
  .nx:has(#nx-nowill:checked) .s-nowill .pain > * { animation: rise 380ms var(--ease) backwards; animation-delay: calc(150ms + var(--pd, 0) * 160ms); }
  .nx:has(#law-hindu:checked) .l-hindu .sp-seg, .nx:has(#law-muslim:checked) .l-muslim .sp-seg,
  .nx:has(#law-christian:checked) .l-christian .sp-seg, .nx:has(#law-parsi:checked) .l-parsi .sp-seg { animation: grow 500ms var(--ease) backwards; }
  .law .sp-seg:nth-child(2) { animation-delay: 120ms; }
  .law .sp-seg:nth-child(3) { animation-delay: 240ms; }
  .pain > :nth-child(2) { --pd: 1; }
  .pain > :nth-child(3) { --pd: 2; }
  .pain > :nth-child(4) { --pd: 3; }
  .nx:has(:is(#nx-papers, #nx-split):checked) .l3 .nx-stop { transition-delay: 1750ms; }
  @media (min-width: 900px) {
    .js .nx.is-waiting:not(.is-in) .nx-link:not(.l1) i { clip-path: inset(0 100% 0 0); }
    .nx.is-in .is-a :is(.l2, .l3) i { animation-name: draw-x-a; }
    .nx.is-in .is-b :is(.l2, .l3) i { animation-name: draw-x-b; }
  }

  /* The weight: the line arrives word by word, then the bars grow to their share of the total. */
  .js .impact.is-waiting:not(.is-in) :is(.weight-title, .weight-line) { opacity: 0; }
  .impact.is-in .weight-title { animation: rise 400ms var(--ease) backwards; }
  .impact.is-in .weight-line { animation: rise 400ms var(--ease) 600ms backwards; }
  .js .impact.is-waiting:not(.is-in) .share-bar i { transform: scaleX(0); }
  .impact.is-in .s-bank .share-bar i { transition-delay: 300ms; }
  .impact.is-in .s-ins .share-bar i { transition-delay: 600ms; }
  .impact.is-in .s-mf .share-bar i { transition-delay: 900ms; }

  /* Rewind: Ravi comes back, the threads re-knit outward, the guesses become names, the ticks land,
     the old nominee becomes Priya, and "Will signed" appears. Once; then the switch is plain. */
  .js .rewind.is-waiting:not(.is-in) .th-own { clip-path: circle(0% at 50% 50%); }
  .rewind .map .th-own { transition: opacity 600ms ease, clip-path 800ms var(--ease); }
  .rewind .map .node-ok { transform: scale(calc(0.4 + 0.6 * var(--heal))); transition: opacity 300ms ease, transform 300ms var(--ease); }
  .rewind.is-in:not(.is-settled) :is(.c-disc, .c-name) { transition-delay: 200ms; }
  .rewind.is-in:not(.is-settled) .map .th-own { transition-delay: 300ms; }
  .rewind.is-in:not(.is-settled) :is(.g-own, .g-guess, .node-val, .node-q, .node-tile .icon),
  .rewind.is-in:not(.is-settled) .node::before, .rewind.is-in:not(.is-settled) .node::after { transition-delay: calc(600ms + var(--i) * 60ms); }
  .rewind.is-in:not(.is-settled) .map .node-ok { transition-delay: calc(1200ms + var(--i) * 60ms); }
  .rewind.is-in:not(.is-settled) .g-heal { transition-delay: calc(1300ms + var(--i) * 60ms); }
  .rewind.is-in:not(.is-settled) :is(.fix-was, .fix-now) { transition-delay: 1900ms; }
  .rewind.is-in:not(.is-settled) .c-will { transition-delay: 2100ms; }

  /* The four steps: assets arrive, people are chosen, the will is written and signed, the family is found. */
  .js .path.is-waiting:not(.is-in) :is(.mslip, .mslip em, .will-title, .will-line, .pv-match, .pf-who, .pf-found, .pf-help) { opacity: 0; }
  .js .path.is-waiting:not(.is-in) .sign path { stroke-dashoffset: 400; }
  .path.is-in .pv-add .mslip { animation: rise 420ms var(--ease) backwards; }
  .path.is-in .pv-add .mslip:nth-child(2) { animation-delay: 200ms; }
  .path.is-in .pv-add .mslip:nth-child(3) { animation-delay: 400ms; }
  .path.is-in .pv-who .mslip { animation: appear 300ms ease-out 700ms backwards; }
  .path.is-in .pv-who .mslip em { animation: pop 360ms var(--ease) backwards; animation-delay: 1000ms; }
  .path.is-in .pv-who .mslip:nth-child(2) em { animation-delay: 1200ms; }
  .path.is-in .pv-who .mslip:nth-child(3) em { animation-delay: 1400ms; }
  .path.is-in .pv-will .will-title { animation: appear 300ms ease-out 1700ms backwards; }
  .path.is-in .pv-will .will-line { animation: write 600ms steps(24, end) backwards; }
  .path.is-in .pv-will .will-line:nth-of-type(1) { animation-delay: 1900ms; }
  .path.is-in .pv-will .will-line:nth-of-type(2) { animation-delay: 2500ms; }
  .path.is-in .pv-will .sign path { animation: sign 1000ms ease-in-out 3100ms backwards; }
  .path.is-in .pv-match { animation: pop 360ms var(--ease) 4000ms backwards; }
  .path.is-in .pf-who { animation: pop 380ms var(--ease) 4400ms backwards; }
  .path.is-in .pf-found { animation: pop 360ms var(--ease) 4700ms backwards; }
  .path.is-in .pf-help { animation: appear 300ms ease-out 5000ms backwards; }

  /* Will page: the path rises, the chapters light up along the track, the report is scanned. */
  .js .law-path.is-waiting:not(.is-in) > li { opacity: 0; }
  .law-path.is-in > li { animation: rise 420ms var(--ease) backwards; }
  .law-path.is-in > li:nth-child(2) { animation-delay: 350ms; }
  .law-path.is-in > li:nth-child(3) { animation-delay: 700ms; }
  .kit-steps::after { transition: transform 2200ms linear 200ms; }
  .js .kit.is-waiting:not(.is-in) .kit-steps::after { transform: scaleY(0); }
  .js .kit.is-waiting:not(.is-in) :is(.kit-icon, .kit-steps h3, .kit-steps p, .kit-time) { opacity: 0; }
  .kit.is-in .kit-icon { animation: pop 380ms var(--ease) backwards; }
  .kit.is-in :is(.kit-steps h3, .kit-steps p) { animation: appear 300ms ease-out backwards; }
  .kit.is-in li:nth-child(2) > * { animation-delay: 550ms; }
  .kit.is-in li:nth-child(3) > * { animation-delay: 1100ms; }
  .kit.is-in li:nth-child(4) > * { animation-delay: 1650ms; }
  .kit.is-in li:nth-child(5) > * { animation-delay: 2200ms; }
  .kit.is-in .kit-time { animation: rise 400ms var(--ease) 2700ms backwards; }
  .js .report.is-waiting:not(.is-in) li { opacity: 0; }
  .report.is-in li { animation: rise 380ms var(--ease) backwards; }
  .report.is-in li:nth-child(2) { animation-delay: 150ms; }
  .report.is-in li:nth-child(3) { animation-delay: 300ms; }
  .report.is-in li:nth-child(4) { animation-delay: 450ms; }
  .report.is-in li > span:last-child { animation: pop 340ms var(--ease) backwards; animation-delay: 800ms; }
  .report.is-in li:nth-child(2) > span:last-child { animation-delay: 1000ms; }
  .report.is-in li:nth-child(3) > span:last-child { animation-delay: 1200ms; }
  .report.is-in li:nth-child(4) > span:last-child { animation-delay: 1400ms; }
  .report.is-in::after { animation: scan 1600ms ease-in-out 600ms both; }
  .js .point-grid.is-waiting:not(.is-in) > li { opacity: 0; }
  .point-grid.is-in > li { animation: rise 420ms var(--ease) backwards; }
  .point-grid.is-in > li:nth-child(2) { animation-delay: 200ms; }
  .point-grid.is-in > li:nth-child(3) { animation-delay: 400ms; }
  @media (min-width: 900px) { .js .kit.is-waiting:not(.is-in) .kit-steps::after { transform: scaleX(0); } }

  /* Security page: the badges pop in, the key cards rise and their tags land. */
  .js .trust-chips.is-waiting:not(.is-in) li, .js .key-cases.is-waiting:not(.is-in) li { opacity: 0; }
  .trust-chips.is-in li { animation: pop 380ms var(--ease) backwards; }
  .trust-chips.is-in li:nth-child(2) { animation-delay: 150ms; }
  .trust-chips.is-in li:nth-child(3) { animation-delay: 300ms; }
  .key-cases.is-in li { animation: rise 420ms var(--ease) backwards; }
  .key-cases.is-in li:nth-child(2) { animation-delay: 200ms; }
  .key-cases.is-in li:nth-child(3) { animation-delay: 400ms; }
  .key-cases.is-in .kc-tag { animation: pop 360ms var(--ease) backwards; animation-delay: 600ms; }
  .key-cases.is-in li:nth-child(2) .kc-tag { animation-delay: 800ms; }
  .key-cases.is-in li:nth-child(3) .kc-tag { animation-delay: 1000ms; }

  /* Content-page timelines rise one after another. */
  .js .steps-list.is-waiting:not(.is-in) > li { opacity: 0; }
  .steps-list.is-in > li { animation: rise 420ms var(--ease) backwards; }
  .steps-list.is-in > li:nth-child(2) { animation-delay: 250ms; }
  .steps-list.is-in > li:nth-child(3) { animation-delay: 500ms; }
  .steps-list.is-in > li:nth-child(4) { animation-delay: 750ms; }
  .steps-list.is-in > li:nth-child(5) { animation-delay: 1000ms; }

  /* Privacy: the lock shuts and the server copy appears. */
  .js .lock-demo.is-waiting:not(.is-in) .is-server .lock-record { opacity: 0; transform: translateX(-24px); }
  .lock-demo.is-in .lock-arrow .icon { animation: lock-shut 600ms var(--ease) backwards; animation-delay: 250ms; }
  .lock-demo.is-in .is-server .lock-record { transition-delay: 500ms; }

  /* Will page: the four documents are dealt out, and the gap in the report turns green. */
  .docs.is-in .doc { animation: deal 650ms var(--ease) backwards; }
  .docs.is-in .doc:nth-child(2) { animation-delay: 90ms; }
  .docs.is-in .doc:nth-child(3) { animation-delay: 180ms; }
  .docs.is-in .doc:nth-child(4) { animation-delay: 270ms; }
  .js .docs.is-waiting:not(.is-in) .fix-before { opacity: 1; }
  .js .docs.is-waiting:not(.is-in) .fix-after { opacity: 0; }
  .docs.is-in .doc-fix > span { transition-delay: 1500ms; }
  .js .sign-demo.is-waiting:not(.is-in) .sign path { stroke-dashoffset: 400; }
  .sign-demo.is-in .sign path { animation: sign 1200ms ease-in-out backwards; animation-delay: 300ms; }
}

/* Forced colours (Windows High Contrast): the chosen option keeps a visible mark. */
@media (forced-colors: active) {
  .nx-opts input:checked + label, .law-opts input:checked + label, .view-switch input:checked + label, .choices input:checked + label {
    forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; outline: 2px solid Highlight; outline-offset: -2px;
  }
}

/* ── Print: legal pages and the family page on A4, black on white, links spelled out. The home page
   prints its story as text: the pictures go, the "In the picture" lines and every scenario stay. ── */
@media print {
  @page { size: A4; margin: 18mm 16mm; }
  :root, :root:not([data-theme='light']), :root[data-theme='dark'] { --paper: #fff; --sheet: #fff; --ink: #000; --body: #000; --mute: #333; --rule: #bbb; --shadow: none; color-scheme: light; }
  body { font-size: 11pt; background: #fff; }
  .skip-link, .nav-wide, .nav-narrow, .toc, .footer-get, .footer-cols, .stores, .hero-trust, .view-switch { display: none !important; }
  .stage, .skip-story, .nx-pick, .nx-chain, .rv-box, .ym, .test-result, .share-bar, .pvis { display: none !important; }
  .story .step-alt, .story.is-live .step-alt, .nx-pic, .rv-alt { position: static; width: auto; height: auto; margin: 4pt 0 0; overflow: visible; clip: auto; white-space: normal; }
  .story.is-live .steps { padding: 0; }
  .story.is-live .step-card { position: static; max-width: none; margin: 0; }
  .story .step, .story.is-live .step { min-height: 0; padding: 8pt 0; }
  .story.is-live .step-card { padding: 0; border: 0; box-shadow: none; }
  .nx-panels { display: block; }
  .nx-panel { display: block !important; opacity: 1 !important; visibility: visible !important; margin-bottom: 10pt; }
  *, *::before, *::after { transition: none !important; }
  .rv-cap .rv-without, .law-pick { display: none; }
  .laws { display: block; }
  .law { opacity: 1 !important; visibility: visible !important; margin-bottom: 8pt; }
  .law-name { display: block; }
  .rv-cap .rv-with { opacity: 1 !important; visibility: visible !important; }
  .site-header { border-bottom: 1px solid #000; }
  .legal-grid { display: block; }
  .legal-sheet { border: 0; padding: 0; max-width: none; }
  .impact { background: none; border: 0; color: #000; --ink: #000; --on-navy-mute: #000; --on-navy-rule: #bbb; }
  .impact-title, .figure, .impact a, .weight-title, .weight-line, .shares-title, .share-value { color: #000; }
  .legal-sheet a[href^='http']::after, .legal-sheet a[href^='mailto']::after,
  .page-family main a[href^='tel']::after, .page-family main a[href^='mailto']::after { content: ' (' attr(href) ')'; font-size: 9pt; }
  h2, h3 { break-after: avoid; }
}
