/* 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; padding: 20px 16px 24px; display: flex; flex-direction: column; gap: 20px; scroll-behavior: smooth; }
.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; }

.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 { 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; }
.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); }

.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; }
.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; color: var(--text-2); }
.dob-line.empty { display: none; }
.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; } }
