/* Will Centre component styles, lifted from the prototype v35. Colours come from tokens.css. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: 24px; line-height: 32px; }
h2 { font-size: 20px; line-height: 28px; }
h3 { font-size: 16px; line-height: 24px; }
p { margin: 0; }
a { color: var(--brand-500); }
.muted { color: var(--text-2); font-size: 14px; line-height: 22px; }
.small { font-size: 13px; line-height: 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 12px; align-items: center; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.caps { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--text-2); }

/* Stage: phone frame on the left, reviewer on the right at desktop widths */
.stage { min-height: 100%; display: grid; grid-template-columns: 1fr; justify-items: center; padding-block: 16px; padding-inline: 16px; gap: 16px; }
@media (min-width: 960px) { .stage { grid-template-columns: 430px 360px; justify-content: center; align-items: start; padding-block: 28px; } }
.phone { width: 100%; max-width: 430px; background: var(--frame); border-radius: 28px; box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,.06); overflow: hidden; display: flex; flex-direction: column; height: min(860px, calc(100vh - 32px)); position: relative; }
@media (max-width: 480px) { .stage { padding-inline: 0; padding-block: 0; } .phone { border-radius: 0; height: 100vh; height: 100dvh; max-width: none; box-shadow: none; } }

.topbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; background: var(--surface-200); border-bottom: 1px solid var(--border); }
.wordmark { text-decoration: none; font-family: var(--head); font-weight: 700; color: var(--brand-500); font-size: 20px; letter-spacing: -.02em; display: flex; align-items: center; gap: 6px; }
.wordmark img { display: block; }
.wordmark .logo { height: 24px; width: auto; }
@media (min-width: 768px) { .wordmark .logo { height: 32px; } }
.doc-logo { height: 44px; width: auto; display: block; margin: 0 auto 10px; }
.timer { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text-2); padding: 4px 8px; border-radius: 999px; background: var(--surface-300); }
.topsignin { border: 0; background: transparent; font: inherit; font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--brand-500); padding: 6px 4px; cursor: pointer; }
.topsignin:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 6px; }
.timer.live { color: var(--brand-500); background: var(--brand-100); }
.iconbtn { border: 0; background: transparent; padding: 6px; border-radius: 8px; cursor: pointer; color: var(--text-2); display: inline-flex; }
.iconbtn:hover { background: var(--surface-300); }
.iconbtn:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .choice:focus-within { outline: 2px solid var(--brand-400); outline-offset: 2px; }

.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 16px 0; background: var(--surface-200); }
.stepper span { height: 4px; border-radius: 2px; background: var(--n-50); }
.stepper span.done { background: var(--brand-300); }
.stepper span.cur { background: var(--brand-500); }
.steplabel { padding: 6px 16px 10px; background: var(--surface-200); font-size: 13px; color: var(--text-2); display: flex; justify-content: space-between; }

.screen { flex: 1; overflow-y: auto; scrollbar-width: thin; padding: 20px 16px 24px; display: flex; flex-direction: column; gap: 20px; scroll-behavior: smooth; }
/* Rows never shrink to fit the screen: the screen scrolls instead. Without this, once a step is taller than the
   viewport every direct child shrinks, and a row with its own minimum height (a switch row at 44px) stops there while
   its text keeps its height and runs into the row below (Clint, 28 Oct: Executor step at phone width). */
.screen > * { flex-shrink: 0; }
.bottombar { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--surface-200); border-top: 1px solid var(--border); display: flex; gap: 10px; }
.bottombar .btn { flex: 1; }
/* One line at 390 px (Clint, 15 Nov: "Record my signing"): a little less padding and size, never a wrap. */
.bottombar .btn-oneline { white-space: nowrap; padding-left: 10px; padding-right: 10px; font-size: 15px; }
/* "Send a new code" beside the code box on Create your Will (Clint, 16 Nov): one line at 390 px. */
.btn-oneline-sm { white-space: nowrap; flex: 0 0 auto; padding-left: 10px; padding-right: 10px; font-size: 14px; }

.btn { border: 1px solid transparent; border-radius: var(--r-md); padding: 12px 18px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; text-decoration: none; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn-primary:hover { background: var(--btn-primary-bg-hover); }
.btn-primary:active { background: var(--btn-primary-bg-active); }
.btn-primary:disabled { background: var(--btn-primary-bg-disabled); color: var(--btn-primary-fg-disabled); cursor: not-allowed; }
.btn-outline { background: var(--btn-outline-bg); border-color: var(--btn-outline-border); color: var(--btn-outline-fg); }
.btn-outline:hover { background: var(--btn-outline-bg-hover); }
.btn-ghost { background: var(--btn-ghost-bg); color: var(--btn-ghost-fg); }
.btn-ghost:hover { background: var(--btn-ghost-bg-hover); }
.btn-secondary { background: var(--btn-secondary-bg); color: var(--btn-secondary-fg); }
.btn-secondary:hover { background: var(--btn-secondary-bg-hover); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: var(--r-sm); }
.btn-link { background: none; border: 0; padding: 0; color: var(--brand-500); font-weight: 600; cursor: pointer; }

.card { background: var(--surface-200); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); }
.card.quiet { box-shadow: none; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 20px; }
.chip-neutral { background: var(--surface-300); color: var(--text-2); }
.chip-warn { background: var(--warn-50); color: var(--warn-900); border: 1px solid var(--warn-400); }
.chip-ok { background: var(--ok-50); color: var(--ok-900); border: 1px solid var(--ok-400); }
.chip-info { background: var(--info-50); color: var(--info-900); border: 1px solid var(--info-400); }
.chip-brand { background: var(--brand-100); color: var(--brand-500); }
/* People already named, offered as beneficiaries (Clint, 1 Oct): a question, then one tick row each. */
.qa-block { display: flex; flex-direction: column; gap: 8px; }
.qa-title { font-weight: 600; font-size: 16px; }
.qa-rows { display: flex; flex-direction: column; gap: 8px; }
.qa-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--n-100); border-radius: var(--r-md); background: #fff; cursor: pointer; box-sizing: border-box; }
.qa-row.on { border-color: var(--brand-500); }
.qa-row input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--brand-500); }
.qa-row .qa-tx { font-size: 15px; line-height: 1.35; }
.qa-row:focus-within { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.ben-head { font-weight: 600; font-size: 16px; margin-top: 8px; }
.ben-head:empty { display: none; }
.ben-empty { color: var(--text-2); font-size: 14px; padding: 12px 0 4px; }
.field-msg { color: var(--err-500, #b42318); font-size: 14px; font-weight: 500; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .legend { font-weight: 500; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--text-2); }
.input, select, textarea { width: 100%; border: 1px solid var(--n-100); border-radius: var(--r-md); padding: 12px 14px; background: var(--surface-200); min-height: 48px; }
textarea { resize: vertical; min-height: 120px; }
.input:focus, select:focus, textarea:focus { border-color: var(--brand-400); }
.input.err, select.err, textarea.err { border-color: var(--err-400); }
.counter { font-size: 12px; color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.counter.over { color: var(--err-900); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid31 { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }

.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--n-100); border-radius: var(--r-md); background: var(--surface-200); cursor: pointer; }
.choice.sel { border-color: var(--brand-500); background: var(--brand-100); }
.choice input { margin-top: 3px; accent-color: var(--brand-500); width: 18px; height: 18px; flex: none; }
.choice .t { font-weight: 500; }
.choice .s { font-size: 13px; color: var(--text-2); }
.choice .feeline, .cmpfees .feeline { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.choice .more, .cmpfees .more { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--brand-500); background: var(--surface-200); color: var(--brand-500); font: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.choice .feemore, .cmpfees .feemore { margin-top: 8px; font-size: 13px; color: var(--text-2); }
.saveline { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 13px; }
.save { color: #2e7d32; font-variant-numeric: tabular-nums; }
.cmpkv b { text-align: left; }
.cmpkv .pre { display: inline-block; width: .7em; font-style: normal; }
.choice .feelist, .cmpfees .feelist, .smartpay-list .feelist { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-2); display: grid; gap: 4px; }
.cmpfees summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.cmpfees summary::after { content: "?"; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--brand-500); color: var(--brand-500); font-weight: 600; font-size: 14px; display: grid; place-items: center; }
.cmpfees[open] summary::after { content: "–"; }
.cmpfees summary::-webkit-details-marker { display: none; }
/* Lookups: Google addresses and the Charities Register, listed under the field. */
.suggest-wrap { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--surface-200); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.suggest .sg { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--border); }
.suggest .sg:hover, .suggest .sg:focus-visible { background: var(--brand-100); }
.suggest .sg b { display: block; font-weight: 500; color: var(--text); }
.suggest .sg span { display: block; font-size: 13px; color: var(--text-2); }
.suggest .sg-attr { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; font-size: 12px; color: var(--text-2); }
.suggest .sg-attr span { white-space: nowrap; }
/* Decision 61 start screen: Google's button is drawn by Google, unstyled; helper lines beneath. */
.namerow { gap: 6px; align-items: center; }
.namerow .input { flex: 1; }
/* A single primary button inside a card sits centred (Clint, 26 Sep). */
.card-cta { display: flex; justify-content: center; }
.start-opts { display: grid; gap: 18px; margin: 8px 0 4px; }
.start-opt { display: grid; gap: 6px; }
.start-opt .btn { width: 100%; max-width: 400px; }
/* Continue with Google / Continue with email (Clint, 30 Sep): the same size, full width, 56px, 14px radius, 16px
   semibold. Google's button follows its branding: white, #1F1F1F text, a 1px #747775 border, the official G. */
.btn-auth { width: 100%; height: 56px; min-height: 56px; border-radius: 14px; font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 16px; cursor: pointer; font-family: inherit; line-height: 1; }
.btn-google { background: #fff; color: #1F1F1F; border: 1px solid #747775; }
.btn-google:hover { background: #f8f8f8; }
.btn-google svg { flex: 0 0 20px; }
.btn-email { background: var(--surface-200, #fff); color: var(--brand-500, #970747); border: 1px solid var(--brand-500, #970747); }
.btn-email:hover { background: var(--brand-100, #f7e6ee); }
.btn-auth:focus-visible { outline: 2px solid var(--brand-500, #970747); outline-offset: 2px; }
/* Text back links (Clint, 30 Sep): plain "Back", no arrow, grey, quieter than the berry links beside it. */
.btn-link.back-link { color: #6F6F6F; font-size: 15px; font-weight: 600; min-height: 44px; min-width: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; }
.btn-link.back-link:hover { text-decoration: underline; }
.btn-link.back-link:focus-visible { outline: 2px solid var(--brand-500, #970747); outline-offset: 2px; border-radius: 8px; }
/* Matches Google's large button, which Google fixes at 40 px tall with rounded ends. */
.start-opt .btn { min-height: 40px; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; }
.device-note { padding: 8px 0; }
.cmpfees .lead { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.cmpsum { margin-top: 8px; font-size: 13.5px; color: var(--text-2); }
.cmpsum b { color: var(--brand-500); font-weight: 600; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-300); border-radius: var(--r-md); padding: 4px; gap: 4px; }
.segmented button { border: 0; background: transparent; border-radius: 8px; padding: 8px; font-weight: 500; cursor: pointer; color: var(--text-2); }
.segmented button.on { background: var(--surface-200); color: var(--brand-500); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.toggle { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--n-100); border-radius: var(--r-md); background: var(--surface-200); cursor: pointer; min-height: 44px; touch-action: manipulation; }
/* Every toggle is a tap target of at least 44 by 44 px (Clint, 13 Oct): the row is the target, and the switch itself
   carries an invisible 44 px hit area so a tap on the control lands. */
.switch::before { content: ""; position: absolute; inset: -9px 0; min-height: 44px; }
.switch { width: 44px; height: 26px; border-radius: 13px; background: var(--n-200); position: relative; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle.on .switch { background: var(--brand-500); }
.toggle.on .switch::after { transform: translateX(18px); }
.toggle:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }

.person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--n-100); border-radius: var(--r-md); background: var(--surface-200); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-100); color: var(--brand-500); font-weight: 600; display: grid; place-items: center; flex: none; font-size: 14px; }
.person .name { font-weight: 500; }
.person .rel { font-size: 13px; color: var(--text-2); }
.pct { width: 84px; text-align: right; padding: 8px 10px; min-height: 40px; }
/* Beneficiaries at phone width (Clint, 13 Oct): the share field sits under the name, so names never break across three lines. */
@media (max-width: 480px) {
  .person:has(.pct), .person:has(.chip) { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; row-gap: 8px; align-items: center; }
  .person > .pct { grid-column: 2; grid-row: 2; justify-self: start; }
  .person > .pct + span { grid-column: 3; grid-row: 2; justify-self: start; }
  .person > .chip { grid-column: 2; grid-row: 2; justify-self: start; }
  .person > .iconbtn { grid-column: 3; grid-row: 1; }
}
.total { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px; font-weight: 600; }

.rule { border-radius: var(--r-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; }
.rule .rt { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.rule .rid { font-size: 11px; letter-spacing: .06em; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.06); }
.rule .ra { display: flex; gap: 8px; flex-wrap: wrap; }
.rule-fix { background: var(--err-50); color: var(--err-900); border: 1px solid var(--err-400); }
.rule-rec { background: var(--warn-50); color: var(--warn-900); border: 1px solid var(--warn-400); }
.rule-info { background: var(--info-50); color: var(--info-900); border: 1px solid var(--info-400); }
.rule-fix .btn-sm { background: #fff; border-color: var(--err-400); color: var(--err-900); }
.rule-rec .btn-sm { background: #fff; border-color: var(--warn-400); color: var(--warn-900); }

.range { width: 100%; accent-color: var(--brand-500); }
.amount { font-family: var(--head); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.amount-row { display: flex; align-items: center; gap: 8px; color: var(--brand-500); }
.amount-in { border: 0; border-bottom: 1.5px dashed var(--brand-500); background: transparent; padding: 0 0 2px; width: 6ch; min-width: 0; color: var(--text); outline: none; border-radius: 0; }
.amount-in:focus { border-bottom-style: solid; }

.readback { font-size: 18px; line-height: 28px; font-family: var(--head); font-weight: 500; }
.readback b { color: var(--brand-500); font-weight: 600; }

.door { display: flex; align-items: center; gap: 12px; }
.door .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-100); color: var(--brand-500); display: grid; place-items: center; flex: none; }
.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; background: var(--surface-300); border-radius: var(--r-sm); font-size: 14px; }

.tick { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--n-100); border-radius: var(--r-md); background: var(--surface-200); cursor: pointer; }
.tick.small { padding: 10px 12px; font-size: 13px; }
.tick input { width: 22px; height: 22px; accent-color: var(--brand-500); margin-top: 2px; flex: none; }
.tick.on { border-color: var(--brand-500); }
.tick .tx { font-size: 14px; line-height: 21px; }

.doc { background: #fff; border: 1px solid var(--n-100); border-radius: var(--r-sm); padding: 18px 16px; font-family: Georgia, "Times New Roman", serif; font-size: 13px; line-height: 1.45; color: #222; }
.doc h4 { font-family: var(--head); color: var(--brand-500); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin: 14px 0 6px; }
.doc .dt { font-family: var(--head); font-size: 20px; font-weight: 700; color: var(--brand-500); }
.doc table { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 12.5px; }
.doc th { text-align: left; background: var(--brand-500); color: #fff; padding: 5px 8px; font-weight: 600; }
.doc td { padding: 5px 8px; border-bottom: 1px solid var(--n-50); vertical-align: top; }
.doc .clause { margin: 6px 0; }
.doc .ack { margin-top: 12px; border: 1px solid var(--brand-500); padding: 10px; border-radius: 6px; font-family: var(--body); font-size: 12px; }
.doc .ack img { max-height: 48px; display: block; }
.sigpad { border: 1px dashed var(--n-200); border-radius: var(--r-md); background: #fff; touch-action: none; width: 100%; height: 140px; display: block; }

.ladder { display: flex; flex-direction: column; gap: 0; }
.ladder .st { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 6px 0; }
.ladder .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--n-200); display: grid; place-items: center; font-size: 12px; background: #fff; }
.ladder .st.done .dot { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.ladder .st.cur .dot { border-color: var(--brand-500); background: var(--brand-100); }
.ladder .st.cur .n { color: var(--brand-500); font-weight: 600; }
.ladder .n { font-weight: 500; }

.sheet-wrap { position: absolute; inset: 0; background: rgba(46,46,46,.45); display: flex; align-items: flex-end; z-index: 20; }
.sheet { width: 100%; background: var(--surface-200); border-radius: 20px 20px 0 0; padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px)); max-height: 88%; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.sheet .handle { width: 40px; height: 4px; background: var(--n-200); border-radius: 2px; margin: 0 auto 4px; }
.toast { position: absolute; left: 16px; right: 16px; bottom: 90px; background: var(--n-500); color: #fff; padding: 12px 14px; border-radius: var(--r-md); font-size: 14px; z-index: 30; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; }

.hub-group { display: flex; flex-direction: column; gap: 10px; }
.compare { display: flex; flex-direction: column; gap: 0; padding: 16px; /* the hub cards' padding, so button edges align (28 Sep 2026) */ }
.cmp-head, .cmp-row, .cmp-foot { display: grid; grid-template-columns: 1fr 64px 84px; align-items: center; gap: 6px; font-size: 13.5px; }
.cmp-head { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; color: var(--text-2); padding-bottom: 8px; align-items: end; }
.cmp-head span:nth-child(3) { color: var(--brand-500); }
.cmp-head small { display: block; font-size: 10.5px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--text-2); margin-top: 2px; }
.cmp-row { padding: 7px 0; border-top: 1px solid var(--border); }
.sit + .sit { border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 4px; }
.cmp-row.sub { border-top: 0; padding-top: 0; margin-top: -4px; }
.cmp-row.sub span:first-child { padding-left: 14px; font-size: 12.5px; color: var(--text-2); }
.cmp-row span:nth-child(n+2), .cmp-head span:nth-child(n+2), .cmp-foot span:nth-child(n+2) { text-align: center; }
.cmp-row .yes { color: var(--brand-500); }
.cmp-row .no { color: var(--text-2); opacity: .6; }
.cmp-foot { padding: 10px 0 8px; border-top: 1px solid var(--border); }
.cmp-foot b { font-size: 16px; }
.compare .small { margin-top: 4px; }
.hub-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface-200); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); cursor: pointer; text-align: left; width: 100%; }
a.hub-card { color: inherit; text-decoration: none; }
a.hub-card > svg { color: var(--text-2); flex: none; }
.hub-card.locked { opacity: .55; cursor: default; box-shadow: none; }
.hub-card .ic { width: 40px; height: 40px; border-radius: 12px; background: #FAF0F5; color: #970747; display: grid; place-items: center; flex: none; }
.hub-card .ti { font-weight: 600; }
.hub-card .su { font-size: 13px; color: var(--text-2); }
.quiet-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 4px; font-size: 14px; }
.quiet-row a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); }
.quiet-row a:hover { color: var(--brand-500); text-decoration-color: currentColor; }

/* App menu: slides in from the right inside the phone frame. */
.menubtn { color: var(--brand-500); }
/* The Help button (Clint, 4 Oct): in the header on every signed-in screen, never floating. */
.helpbtn { color: var(--brand-500); gap: 5px; align-items: center; padding: 5px 11px 5px 8px; border: 1px solid var(--border); border-radius: 999px; background: #fff; }
.helpbtn:hover { background: var(--surface-300); }
.helpbtn svg { width: 18px; height: 18px; }
.helpbtn .helpword { font-family: var(--head); font-weight: 500; font-size: 14px; line-height: 1; }
.help-sheet textarea.input { min-height: 96px; resize: vertical; }
.help-sheet .help-step { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.help-why { background: var(--surface-100, #fff); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.help-why h2 { font-size: 16px; margin: 0 0 6px; }
.help-why p { margin: 6px 0; font-size: 14px; }
.help-why .ctx-ex { margin: 8px 0; } .help-why .ctx-ex table { width: 100%; font-size: 13px; } .help-why .ctx-ex td { padding: 2px 4px; }
.menu-scrim { position: absolute; inset: 0; background: rgba(20, 10, 15, .32); z-index: 40; opacity: 0; transition: opacity .2s ease; }
.menu-scrim.open { opacity: 1; }
.menu { position: absolute; top: 0; right: 0; bottom: 0; width: min(300px, 82%); background: var(--surface-200); z-index: 41; box-shadow: var(--shadow); transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column; padding: 14px 10px; }
.menu.open { transform: none; }
.menu .menu-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu .menu-head b { font-family: var(--head); color: var(--brand-500); font-size: 18px; }
.menu a, .menu button.mi { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 10px; border-radius: 10px; cursor: pointer; font-weight: 500; color: var(--text); }
.menu a:hover, .menu button.mi:hover { background: var(--surface-300); }
.menu a:focus-visible, .menu button.mi:focus-visible { outline: 2px solid var(--brand-400); outline-offset: -2px; }
.menu .mi .grow { flex: 1; }
.menu .mi svg { color: var(--text-2); }
.menu .sep { border-top: 1px solid var(--border); margin: 6px 4px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; }
.kv b { font-variant-numeric: tabular-nums; }
details summary { cursor: pointer; font-weight: 600; }
pre { font-size: 11px; background: var(--surface-300); padding: 10px; border-radius: 8px; overflow: auto; max-height: 260px; margin: 0; }
/* Hub cards (Clint, 28 Sep 2026): one layout for every card. */
.hubcard { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.hubcard-accent { border-color: var(--brand-500); }
.hubcard-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hubcard-head .chip { white-space: nowrap; flex-shrink: 0; }
.hubcard-title { font-weight: 600; }
.hubcard-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.btn-hub { display: flex; width: 100%; height: 52px; min-height: 52px; padding: 0 16px; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; text-decoration: none; }
.hubcard-links { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 4px; }
.hub-textlink { background: none; border: 0; padding: 4px 8px; font: inherit; font-size: 14px; font-weight: 400; color: var(--brand-500); text-decoration: underline; cursor: pointer; }

/* The hub's package list (28 Sep): one row per part, its status beneath, Open for the Tally schedules. */
.pkg-list { display: flex; flex-direction: column; }
.pkg-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.pkg-row:first-child { border-top: 0; padding-top: 2px; }
.pkg-name { font-weight: 600; }
.pkg-row .chip { flex: none; white-space: nowrap; }
.pkg-link { font-size: 14px; padding: 2px 0; }
.chip-todo { background: #FAF0F5; color: #6E0534; }
.pkg-open { color: var(--brand-500); font-weight: 600; font-size: 14px; text-decoration: underline; flex: none; padding: 6px 2px; }

/* "Add to home screen" (Clint, 29 Sep; will/js/install.js). */
.ix-wrap .ix-sheet { transform: translateY(24px); opacity: 0; transition: transform .2s ease, opacity .2s ease; touch-action: pan-y; }
.ix-wrap.open .ix-sheet { transform: none; opacity: 1; }
.ix-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--ground, #ece4de); margin: 0 auto -4px; }
.ix-head { display: flex; align-items: flex-start; gap: 8px; }
.ix-head h2 { flex: 1; margin: 0; font-size: 1.15rem; }
.ix-close { width: 44px; height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; margin: -8px -8px 0 0; }
/* The sheet's buttons (Clint, 30 Sep): side by side at equal width, 52px high, the text on one line. */
.ix-sheet .ix-actions { display: flex; gap: 12px; }
.ix-sheet .ix-actions .btn { flex: 1 1 0; min-width: 0; height: 52px; min-height: 52px; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 340px) { .ix-sheet .ix-actions .btn { font-size: 15px; } }
.ix-sheet .ix-close { background: var(--surface-300, #f3f3f5); margin: -4px -4px 0 0; }
.ix-close:hover { background: var(--brand-100, #f7e6ee); }
.ix-close:focus-visible, .ix-sheet:focus-visible, .ix-card:focus-visible { outline: 2px solid var(--brand-500, #970747); outline-offset: 2px; }
.ix-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ix-steps li { display: flex; align-items: center; gap: 12px; line-height: 1.4; }
.ix-n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--brand-100, #f7e6ee); color: var(--brand-500, #970747); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ix-icon, .ix-share { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; vertical-align: middle; margin: 0 2px; background: var(--surface-300, #f8f8fa); color: #007aff; }
/* The Share button, highlighted: Safari's own blue icon in a Berry ring. */
.ix-share { box-shadow: 0 0 0 2px var(--brand-500, #970747); }
@media (prefers-reduced-motion: no-preference) { .ix-share { animation: ixpulse 1.6s ease-in-out infinite; } .ix-point svg { animation: ixbob 1.6s ease-in-out infinite; } }
@keyframes ixpulse { 50% { box-shadow: 0 0 0 5px rgba(151, 7, 71, .25); } }
@keyframes ixbob { 50% { transform: translateY(4px); } }
.ix-point { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--brand-500, #970747); font-size: .85rem; font-weight: 600; }
/* Desktop: a corner card, not modal, no backdrop. */
.ix-card { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 340px; max-width: calc(100vw - 32px); display: flex; gap: 14px; align-items: center; padding: 16px 44px 16px 16px; background: var(--surface-200, #fff); border: 1px solid var(--ground, #ece4de); border-radius: 16px; box-shadow: 0 12px 32px rgba(46, 46, 46, .16); }
.ix-card .ix-close { position: absolute; top: 4px; right: 4px; margin: 0; }
.ix-qr { width: 120px; height: 120px; flex: 0 0 120px; border-radius: 8px; image-rendering: pixelated; }

/* The hub Will card's row and "View my Will" (Clint, 29 Sep). */
.hubcard-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.btn-hubrow { display: inline-flex; align-items: center; gap: 8px; height: 44px; min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-hubrow svg { flex: 0 0 20px; }
.pdfview { border: 1px solid var(--border); border-radius: 12px; background: #f2f2f2; max-height: min(70vh, 640px); overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.pdfview canvas { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pdfview:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.pdfload { padding: 48px 16px; text-align: center; }
.verlist { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-200); }
.verrow { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; }
.verrow + .verrow { border-top: 1px solid var(--border); }
.verrow .grow { flex: 1; min-width: 0; }
.verref { font-family: var(--head); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }

/* Home, signed out (Clint, 29 Sep): the comparison as an expander card, and the calculator card. */
.hub-card .ti.ti-15 { font-size: 15px; font-weight: 700; }
.hub-card .su { color: #6F6F6F; }
.hub-card .su.su-berry { color: #970747; font-weight: 600; }
details.hub-expander { display: block; padding: 0; cursor: default; }
details.hub-expander > summary { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; list-style: none; border-radius: var(--r-lg); font-weight: 400; }
details.hub-expander > summary::-webkit-details-marker { display: none; }
details.hub-expander > summary:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.hub-chev { color: #970747; display: inline-flex; flex: none; transition: transform .2s ease; }
details.hub-expander[open] .hub-chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .hub-chev { transition: none; } }
.hub-expander-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); margin: 0; border-radius: 0; box-shadow: none; background: transparent; }
.hub-more { color: var(--brand-500); font-weight: 600; font-size: 14px; text-decoration: none; }
.hub-more:hover { text-decoration: underline; }

/* "Recommend Willzee" with its heart, inline and centred with the text (Clint, 30 Sep). */
.rec-link { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.rec-link .rec-heart { flex: none; display: block; }

/* Tell people (Clint, 30 Sep): one row per person; name and role on the left, a compact button on the right. */
.tell-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.tell-row:first-child { border-top: 0; padding-top: 2px; }
.tell-who { flex: 1 1 auto; min-width: 0; }
.tell-name { font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; }
.tell-role { font-size: 14px; color: #6F6F6F; }
.tell-told { font-size: 13px; color: #1F5A2E; }
.tell-row .tell-btn { flex: none; width: auto; height: 44px; min-height: 44px; padding: 0 18px; white-space: nowrap; align-self: center; }

/* Estate administration, personalised (Clint, 30 Sep). */
.adm-choices .choice .s { display: flex; flex-direction: column; gap: 4px; }
.adm-line { font-size: 14px; line-height: 1.45; color: var(--text); }
.adm-line.adm-small { font-size: 13px; color: var(--text-2); }
.adm-rec { margin-left: 6px; vertical-align: 1px; font-size: 12px; }
.btn-link.adm-how { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.adm-how-ic { flex: none; width: 16px; height: 16px; color: var(--brand-500); display: block; }
.adm-line b { font-weight: 700; color: var(--text); }

/* Links back to the website (Clint, 1 Oct). Desktop (768px and up): "willzee.com" in the header and a footer row
   on every screen. Phone: no footer; the same links sit at the bottom of the menu. */
.sitelink { display: none; font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--brand-500); text-decoration: none; padding: 6px 4px; }
.sitelink:hover { text-decoration: underline; }
.sitelink:focus-visible, .sitefoot a:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 6px; }
.sitefoot { display: none; }
.menu .menu-site .ml { font-size: 14px; padding: 10px; color: var(--text-2); }
@media (min-width: 768px) {
  .sitelink { display: inline-block; }
  .sitefoot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; padding: 8px 8px 10px; background: var(--surface-200); border-top: 1px solid var(--border); font-size: 12px; white-space: nowrap; }
  .sitefoot a { color: var(--text-2); text-decoration: none; padding: 2px 6px; }
  .sitefoot a:hover { color: var(--brand-500); text-decoration: underline; }
  .sitefoot a + a { border-left: 1px solid var(--border); }
  .menu .menu-site { display: none; }
}
.wordmark.inert { cursor: default; }
/* Tick two's progress overlay (Clint, 1 Oct). */
.cfo { position: fixed; inset: 0; z-index: 1000; background: rgba(255, 255, 255, .97); display: flex; align-items: center; justify-content: center; padding: 24px; }
.cfo-box { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.cfo-spin { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--brand-100); border-top-color: var(--brand-500); animation: cfo-rot .9s linear infinite; }
@keyframes cfo-rot { to { transform: rotate(360deg); } }
.cfo-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; text-align: left; align-self: stretch; }
.cfo-steps li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.4; color: var(--text-2); }
.cfo-steps li.on { color: var(--text); font-weight: 600; }
.cfo-steps li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--n-100, #e5e5e5); }
.cfo-steps li.on::before { background: var(--brand-500); }
.cfo-steps li.done::before { left: 5px; top: 4px; width: 10px; height: 5px; border-radius: 0; background: none; border-left: 2px solid var(--brand-500); border-bottom: 2px solid var(--brand-500); transform: rotate(-45deg); }
.cfo-slow { margin: 0; font-size: 14px; color: var(--text-2); }
.cfo-title { margin: 0; font-size: 22px; }
.cfo-id { font-size: 15px; color: var(--text-2); letter-spacing: .02em; }
.cfo-row { align-self: stretch; }
.cfo-tick circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: cfo-draw .5s ease-out forwards; }
.cfo-tick path { stroke-dasharray: 32; stroke-dashoffset: 32; animation: cfo-draw .35s .45s ease-out forwards; }
@keyframes cfo-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .cfo-spin { animation-duration: 2.4s; } .cfo-tick circle, .cfo-tick path { animation: none; stroke-dashoffset: 0; } }

/* What's next (Clint, 1 Oct): a numbered checklist on the hub for a confirmed Will. */
.next-list { list-style: none; margin: 0; padding: 0; }
.next-row { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.next-row:first-child { border-top: 0; padding-top: 4px; }
.next-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--text-2); border: 1.5px solid var(--border); }
.next-row.current .next-n { color: #fff; background: var(--brand-500); border-color: var(--brand-500); }
.next-row.done .next-n { color: var(--brand-500); border-color: var(--brand-500); }
.next-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.next-title { font-weight: 600; font-size: 15px; color: var(--text); }
.next-row.done .next-title { color: var(--text-2); }
.next-act { margin-top: 8px; }
.next-act .btn-hub { width: 100%; }
.next-act .hub-textlink { padding-left: 0; padding-right: 0; text-align: left; }
.next-head .chip { flex: none; white-space: nowrap; }
/* Date of birth (Clint, 1 Oct): the date in words under the field, or the check message. */
.dob-line { margin-top: 6px; min-height: 1.5em; color: var(--text-2); }
/* The line keeps its height when empty: the date in words appears on leaving the field, and when it pushed the next
   row down a tap already on its way landed short (Grokbot, 28 Oct: the told tick needed two clicks). */
.dob-line.empty { visibility: hidden; }
.dob-line.dob-bad { color: var(--danger-500, #b42318); }
/* Estate administration: Smart Managed in numbers (Clint, 1 Oct). Emphasised when the saving is $10,000 or more. */
.adm-managed .tx > b { display: block; }
.adm-mt-line { display: block; margin-top: 3px; }
.adm-managed.strong { border: 1.5px solid var(--brand-500); border-radius: 12px; padding: 12px; background: var(--brand-50, #FAF0F5); }
.adm-managed.strong .adm-mt-line b { color: var(--brand-500); font-weight: 800; }
/* Hub v2 (Clint, 2 Oct 2026): one Will card with state chips, Other documents, What's next, the Smart Start offer. */
.hubcard-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }
/* A long chip, or two, drops under the title instead of squeezing it. */
#willCard .hubcard-head { flex-wrap: wrap; }
#willCard .hubcard-title { flex: 1 1 170px; }
#willCard .hubcard-chips .chip { white-space: nowrap; }
/* Amber chips pulse three times on load, then stay still. */
.chip-pulse { animation: chip-pulse 1.1s ease-in-out 3; }
@keyframes chip-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 119, 6, .35); } 50% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); } }
@media (prefers-reduced-motion: reduce) { .chip-pulse { animation: none; } }
.progress { height: 8px; border-radius: 999px; background: var(--surface-300); overflow: hidden; margin-top: 4px; }
.progress-bar { height: 100%; background: var(--brand-500); border-radius: 999px; }
.signed-line { display: flex; align-items: center; gap: 8px; color: var(--ok-900); font-size: 14px; }
.signed-line svg { flex: none; }
.hub-viewer { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.doc-list, .next2 { display: flex; flex-direction: column; }
.doc-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--border); background: none; font: inherit; text-align: left; cursor: pointer; color: inherit; text-decoration: none; }
.doc-row:first-child { border-top: 0; padding-top: 4px; }
.doc-row .grow { display: flex; flex-direction: column; min-width: 0; }
.doc-row .chip { flex: none; white-space: nowrap; }
.doc-row > svg { color: var(--text-2); flex: none; }
.doc-name { font-weight: 600; font-size: 15px; }
.doc-sub { font-size: 13px; color: var(--text-2); }
.next2-row { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); }
.next2-row:first-child { border-top: 0; padding-top: 4px; }
.next2-row .hubcard-actions { margin-top: 2px; }
.hubcard-links.left { align-items: flex-start; }
.hubcard-links.left .hub-textlink { padding-left: 0; }
.told-list { display: flex; flex-direction: column; gap: 8px; }
.told-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.told-row .grow { display: flex; flex-direction: column; min-width: 0; }
.told-name { font-weight: 600; }
.told-when { white-space: nowrap; }
.told-row .hub-textlink { padding: 0 2px; font-size: 13px; }
.rec-line { display: flex; justify-content: center; padding: 4px 0; }
/* Loading states (Clint, 2 Oct 2026): one pattern. Berry only. */
.btn .spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: cfo-rot .8s linear infinite; }
.btn-outline .spin, .btn-email .spin, .btn-link .spin, .btn-ghost .spin, .btn-google .spin { border-color: var(--brand-100); border-top-color: var(--brand-500); }
.btn.is-busy:disabled { cursor: progress; }
.btn-primary.is-busy:disabled { background: var(--brand-500); color: #fff; opacity: .9; }
.btn-outline.is-busy:disabled, .btn-email.is-busy:disabled { opacity: .9; }
.wait-line { flex-basis: 100%; width: 100%; font-size: 13px; color: var(--text-2); text-align: center; margin-top: 6px; min-height: 0; }
.wait-line:empty { display: none; }
.wait-line .btn-link { font-size: 13px; }
.wait-text { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }
.wait-spin { border-color: var(--brand-100); border-top-color: var(--brand-500); }
/* Page placeholders shaped like the real cards: nothing for the first 300 ms, then the shapes. */
.skel { opacity: 0; animation: skel-in 0s linear .3s forwards; display: flex; flex-direction: column; gap: 14px; }
@keyframes skel-in { to { opacity: 1; } }
.skel .bk { background: #E9E1DB; border-radius: 10px; }
.skel .bk.card { background: var(--surface-200); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.skel .bk.card .bk { border-radius: 6px; }
.skel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.skel-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.skel-row:first-child { border-top: 0; padding-top: 2px; }
.skel-row .grow { display: flex; flex-direction: column; gap: 8px; }
@keyframes skel-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: no-preference) { .skel .bk:not(.card) { animation: skel-pulse 1.4s ease-in-out infinite; } }
/* Reduced motion: the same text with a still indicator. */
@media (prefers-reduced-motion: reduce) { .btn .spin, .wait-spin, .cfo-spin { animation: none; } .skel { animation-duration: 0s; } }

/* A thin scrollbar in the form panel (Clint, 13 Oct): Windows browsers otherwise draw a full-width bar at phone widths. */
.screen::-webkit-scrollbar { width: 6px; }
.screen::-webkit-scrollbar-thumb { background: var(--n-200); border-radius: 3px; }
.screen::-webkit-scrollbar-track { background: transparent; }
.suggest .sg[disabled] { cursor: default; opacity: .55; }
.suggest .sg[disabled] b { color: var(--text-2); }
.doc-end { height: 1px; }
/* Release C4 (Clint, 4 Oct): helpers. The banner on every screen of a helper's session, the highlighted parts of a
   Will a helper worked on, and the Help panel's three choices. */
.helper-banner { background: var(--brand-500); color: #fff; font: 600 13px var(--head); padding: 8px 12px; border-radius: 10px; margin-bottom: 12px; }
.doc section.helper-changed { background: #fdf3f7; border-left: 3px solid var(--brand-500); padding: 4px 10px; margin: 6px -10px; border-radius: 6px; }
/* Line by line (Grokbot, 8 Nov): a clause, a beneficiary row or a gift sentence the helper added or changed. */
.doc .clause.helper-changed { background: #fdf3f7; border-left: 3px solid var(--brand-500); padding: 4px 8px; margin-left: -11px; border-radius: 4px; }
.doc tr.helper-changed td { background: #fdf3f7; }
.doc tr.helper-changed td:first-child { box-shadow: inset 3px 0 0 var(--brand-500); }
.doc span.helper-changed { background: #fdf3f7; box-shadow: inset 0 -2px 0 var(--brand-500); border-radius: 2px; }
.help-choice { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: var(--surface-100, #fff); border: 1px solid var(--border); border-radius: 12px; padding: 12px; cursor: pointer; font: inherit; color: inherit; }
.help-choice:hover { border-color: var(--brand-400); }
.help-choice .hc-title { font-weight: 600; } .help-choice .hc-price { color: var(--brand-500); font-weight: 600; font-size: 13px; white-space: nowrap; } .help-choice .hc-text { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.seg { display: flex; gap: 6px; } .seg .seg-btn { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-100, #fff); font: inherit; cursor: pointer; } .seg .seg-btn.on { border-color: var(--brand-500); color: var(--brand-500); font-weight: 600; }

/* The five-stage progress bar (FEATURES.preview): icon, short label and a track per stage; done and current in the
   bar's own berry, upcoming grey. Labels may wrap at phone width; nothing scrolls sideways. */
.stepper.pbar { display: block; padding: 8px 12px 0; }
.pbar .pv-head { font-size: 13px; font-weight: 600; line-height: 18px; padding: 0 4px 6px; }
.pbar-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pbar-steps li { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; color: var(--text-2); }
.pbar-steps li > div { height: auto; }
.pbar-steps li::after { content: ""; width: 100%; height: 4px; border-radius: 2px; background: var(--n-50); margin-top: 2px; }
.pbar-steps .pbar-ic { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--n-100); background: #fff; color: var(--text-2); }
.pbar-steps .pbar-tx { font-size: 11px; line-height: 13px; text-align: center; overflow-wrap: anywhere; min-height: 26px; display: flex; align-items: flex-start; justify-content: center; }
.pbar-steps li.done .pbar-ic { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.pbar-steps li.done::after { background: var(--brand-300); }
.pbar-steps li.cur { color: var(--brand-500); font-weight: 600; }
.pbar-steps li.cur .pbar-ic { border-color: var(--brand-500); color: var(--brand-500); background: #fff; }
.pbar-steps li.cur::after { background: var(--brand-500); }

/* The keepsake card (Clint, 6 Nov): the booklet's cover on the left, text and actions on the right, a Gift tag top right,
   the pale berry of the cover. Holds its shape down to 320px: the cover stays left and the text wraps beside it. */
.keepsake-card { position: relative; background: #f4e1e6; border-color: #f4e1e6; padding: 16px; }
.keepsake-row { display: flex; align-items: flex-start; gap: 14px; }
.keepsake-cover { flex: 0 0 72px; width: 72px; height: auto; border-radius: 3px; box-shadow: 0 2px 6px rgba(46, 46, 46, 0.18), 0 8px 18px rgba(46, 46, 46, 0.12); display: block; }
.keepsake-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-right: 36px; }
.keepsake-peek { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.keepsake-peek-label { font-size: 12px; }
.keepsake-peek-row { position: relative; }
.keepsake-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 36px 6px 2px; -webkit-overflow-scrolling: touch; }
.keepsake-strip::-webkit-scrollbar { display: none; }
.keepsake-strip img { flex: 0 0 auto; width: 58px; height: auto; border-radius: 3px; scroll-snap-align: start; box-shadow: 0 1px 3px rgba(46, 46, 46, 0.18), 0 4px 10px rgba(46, 46, 46, 0.1); background: #fff; }
.keepsake-next { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--brand-500); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 6px rgba(46, 46, 46, 0.15); padding: 0; }
.keepsake-next svg { width: 18px; height: 18px; }
.keepsake-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 12px; }
.keepsake-actions .btn-hub { width: 100%; height: auto; min-height: 48px; padding: 10px 16px; white-space: normal; text-align: center; line-height: 1.25; }
.keepsake-actions .hub-textlink { padding-left: 0; }
.keepsake-tag { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 600; line-height: 16px; letter-spacing: 0.3px; padding: 1px 8px; border-radius: 999px; background: var(--brand-500); color: #fff; }
@media (max-width: 340px) { .keepsake-card { padding: 14px 12px; } .keepsake-row { gap: 10px; } .keepsake-cover { flex-basis: 60px; width: 60px; } .keepsake-body { padding-right: 0; } .keepsake-tag { top: 8px; right: 8px; } }

/* Celebration moments (Clint, 6 Nov 2026). Berry #970747 and pale berry #f4e1e6 only; under 1.5 s; nothing waits on them. */
.ladder .st.m1 .dot { position: relative; animation: m1-dot 420ms cubic-bezier(.2,.9,.3,1.2) both; animation-delay: var(--m1o, 0ms); }
@keyframes m1-dot { 0% { transform: scale(.6); background: #fff; border-color: var(--n-200); color: transparent; } 55% { transform: scale(1.15); background: #970747; border-color: #970747; } 100% { transform: scale(1); background: #970747; border-color: #970747; } }
.ladder .st.m1 .dot svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: m1-tick 320ms ease-out forwards; animation-delay: calc(220ms + var(--m1o, 0ms)); }
@keyframes m1-tick { to { stroke-dashoffset: 0; } }
.m1-flecks { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.m1-flecks i { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: var(--c); opacity: 0; animation: m1-fleck var(--t) ease-out forwards; animation-delay: calc(300ms + var(--m1o, 0ms)); }
@keyframes m1-fleck { 0% { transform: translate(0, 0) scale(.6); opacity: 1; } 70% { opacity: .9; } 100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; } }
.m1-head { animation: m1-head 420ms ease-out both; animation-delay: calc(450ms + var(--m1o, 0ms)); }
@keyframes m1-head { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.m2-wrap { position: relative; display: flex; justify-content: center; padding: 28px 0 12px; min-height: 230px; }
.m2-stamp { position: relative; width: 196px; padding: 18px 14px 16px; box-sizing: border-box; border: 4px solid #970747; color: #970747; text-align: center; transform: rotate(-7deg); opacity: .92; mix-blend-mode: multiply; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.m2-stamp::before { content: ""; position: absolute; inset: 5px; border: 2px solid #970747; pointer-events: none; }
.m2-mark { width: 38px; height: auto; display: block; }
.m2-word { font-family: Manrope, "Segoe UI", system-ui, sans-serif; font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: 6px; margin-left: 6px; }
.m2-rule { width: 120px; height: 2px; background: #970747; }
.m2-witnesses { font-size: 10px; font-weight: 600; letter-spacing: 2.4px; margin-left: 2.4px; }
.m2-date { font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.m2-shadow { position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; background: radial-gradient(closest-side, rgba(46, 46, 46, .22), rgba(46, 46, 46, 0)); opacity: 0; pointer-events: none; }
.m2-play .m2-stamp { animation: m2-land 560ms cubic-bezier(.3,.7,.3,1) both; }
@keyframes m2-land { 0% { transform: translateY(-70px) rotate(-7deg) scale(1.35); opacity: 0; } 68% { transform: translateY(0) rotate(-7deg) scale(.97); opacity: .92; } 100% { transform: rotate(-7deg) scale(1); opacity: .92; } }
.m2-play .m2-shadow { animation: m2-shadow 560ms ease-out both; }
@keyframes m2-shadow { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.05); } 100% { opacity: 0; transform: scale(1); } }
.m2-jolt { animation: m2-jolt 180ms ease-out 380ms; }
@keyframes m2-jolt { 0% { transform: translateY(0); } 50% { transform: translateY(2px); } 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .ladder .st.m1 .dot, .ladder .st.m1 .dot svg path, .m1-head, .m2-play .m2-stamp, .m2-play .m2-shadow, .m2-jolt { animation: none !important; }
  .ladder .st.m1 .dot svg path { stroke-dashoffset: 0; }
  .m1-flecks { display: none; }
}

/* The front door's main action on a new device (Clint, 7 Nov 2026). */
.start-cta { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.start-cta .btn { width: 100%; }
/* Moment 0 (Clint, 7 Nov): the confirm wait screen. The Done ladder's circles: waiting is grey with an empty circle;
   current is bold with a pale berry ring and a berry arc turning every 0.9 s; done fills berry, the tick draws in 260 ms
   and the circle pops 0.8 > 1.08 > 1. Reduced motion: no spin or pop, "…" after the current step. */
.m0 { align-self: stretch; text-align: left; }
.cfo.cfo-m0 { background: #fff; }
.m0 .st { padding: 7px 0; align-items: start; }
.m0 .st .dot { margin-top: 1px; }
.m0 .n { font-weight: 500; color: var(--text-2); }
.m0 .st.cur .n { color: var(--text); font-weight: 700; }
.m0 .st.done .n { color: var(--text); }
.m0 .dot { position: relative; color: #fff; }
.m0 .st:not(.done) .dot svg { visibility: hidden; }
.ladder.m0 .st.cur .dot { background: #fff; border-color: var(--brand-100); }
.m0 .st.cur .dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--brand-500); animation: cfo-rot .9s linear infinite; }
.ladder.m0 .st.done .dot { background: var(--brand-500); border-color: var(--brand-500); animation: m0-pop 260ms ease-out both; }
.m0 .st.done .dot svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: m1-tick 260ms ease-out forwards; }
@keyframes m0-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.m0-sub { margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--text-2); min-height: 1.35em; }
.m0 .st:not(.cur) .m0-sub { display: none; }
.m0-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .m0 .st.cur .dot::after { display: none; }
  .ladder.m0 .st.cur .dot { border-color: var(--brand-500); }
  .ladder.m0 .st.done .dot, .m0 .st.done .dot svg path { animation: none !important; }
  .m0 .st.done .dot svg path { stroke-dashoffset: 0; }
  .m0 .st.cur .n::after { content: "…"; }
}

/* "Your earlier Will said:" on Who gets what for migrated shares to confirm (Clint, 7 Nov): read only, the wording as migrated. */
.earlier-said { gap: 4px; }
.earlier-said-text { margin: 4px 0 0; white-space: pre-line; font-size: 15px; line-height: 1.45; color: var(--text); }

/* The helper-first flow (Clint, 8 Nov 2026): the four "They are my" buttons wrap at phone width; the consent points. */
#hf-rel { flex-wrap: wrap; } #hf-rel .seg-btn { flex: 1 1 calc(50% - 6px); min-width: 0; }
@media (min-width: 420px) { #hf-rel .seg-btn { flex: 1 1 0; } }
.consent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.consent-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.consent-list li svg { flex: none; margin-top: 3px; color: var(--brand-500); }
/* The prep guide card on the helper's sent screen: the hub card's icon tile, a card with its own button (Clint, 8 Nov). */
#prepCard .ic-soft { width: 40px; height: 40px; border-radius: 12px; background: #FAF0F5; color: #970747; display: grid; place-items: center; flex: none; }
#prepCard .row { display: flex; }
/* A helper's view of tick one and tick two (Clint, 8 Nov): shown, never tickable. */
.tick.tick-locked { opacity: .6; cursor: not-allowed; }
.tick.tick-locked input { cursor: not-allowed; }
.tick .tick-who { display: block; margin-top: 4px; font-weight: 600; font-size: 14px; }

/* The build stamp in the footer, off app.willzee.com (Clint, 9 Nov). */
.sf-build { display: block; width: 100%; margin-top: 6px; font-size: 11px; color: var(--ink-400, #8a8a8a); letter-spacing: .02em; }

/* The signed-out start screen's secondary cards (Clint, 9 Nov): lighter than the main button and the start cards. */
.hub-secondary { margin-top: 4px; }
.hub-card.hub-card-light { background: transparent; box-shadow: none; border: 1px solid var(--border); padding: 12px 14px; }
.hub-card.hub-card-light .caps { font-size: 11px; margin-bottom: 2px; }
.hub-card.hub-card-light .ti { font-size: 15px; font-weight: 600; }
.hub-card.hub-card-light .su { font-size: 13px; }
/* Grokbot v9 (Clint, 18 Nov): on a phone each card's title and every button label sits on one line; type and padding
   are tightened before any wording changes. */
@media (max-width: 400px) {
  .hub-card { gap: 10px; padding: 12px; }
  .hub-card .ic { width: 36px; height: 36px; }
  .hub-card .ti { font-size: 15px; }
}
.compare-sheet { padding: 4px 0 8px; }
/* The estate cost range graphic (Clint, 9 Nov), the same as the cost check's. */
.rg { margin: 8px 0 6px; }
.rg-row { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.35; margin: 5px 0; color: var(--text-1, #222); }
.rg-row .rg-t { font-weight: 500; }
.rg-wz .rg-t { color: #970747; font-weight: 700; }
.rg-sm .rg-t { color: #970747; }
.rg-sw { flex: none; width: 12px; height: 12px; border-radius: 3px; background: #CFCFCF; }
.rg-sw.wz { border-radius: 50%; background: #970747; }
.rg-sw.sm { border-radius: 50%; background: #fff; border: 2px solid #970747; box-sizing: border-box; }
.rg-track { position: relative; height: 12px; border-radius: 999px; background: #EFEFEF; margin: 8px 0 4px; }
.rg-bar { position: absolute; top: 0; height: 100%; background: #CFCFCF; border-radius: 999px; }
.rg-mark { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px #fff; }
.rg-mark.wz { background: #970747; }
.rg-mark.sm { background: #fff; border: 3px solid #970747; box-sizing: border-box; }
.rg-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-2); margin-bottom: 2px; }
