@font-face { font-family: "Tally Spectral"; src: url("assets/fonts/Spectral-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Tally Plex"; src: url("assets/fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Tally Plex"; src: url("assets/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Tally Plex"; src: url("assets/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Tally Plex"; src: url("assets/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --ink: #242821;
  --paper: #faf7f2;
  --paper-strong: #fffdfa;
  --sage: #7c9b85;
  --sage-dark: #496451;
  --sage-soft: #dce9de;
  --gold: #d9a441;
  --gold-soft: #f5e6c8;
  --rose: #bd4f43;
  --rose-soft: #f2dcd3;
  --line: rgba(36, 40, 33, .13);
  --shadow: 0 24px 70px rgba(36, 40, 33, .11);
  --serif: "Tally Spectral", Georgia, serif;
  --sans: "Tally Plex", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], main[id] { scroll-margin-top: 88px; }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--paper); font-family: var(--sans); }
body::selection { color: var(--paper); background: var(--sage-dark); }
a { color: inherit; text-underline-offset: .22em; }
button, input, select { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.direction-icon { position: relative; display: inline-block; width: 13px; height: 9px; margin-left: 4px; }
.direction-icon::before { content: ""; position: absolute; top: 4px; left: 0; width: 12px; height: 1px; background: currentColor; }
.direction-icon::after { content: ""; position: absolute; top: 1px; right: 0; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.direction-icon--light { color: white; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 12px 16px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(250, 247, 242, .94); backdrop-filter: blur(16px); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 1.5rem/1 var(--serif); text-decoration: none; }
.brand-marker { width: 9px; height: 9px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 4px var(--rose-soft); }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: .875rem; font-weight: 700; }
.nav-links a { text-decoration: none; }
.nav-links a:not(.button):hover { text-decoration: underline; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-toggle { display: none; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 0 22px; background: var(--ink); color: white; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 0 8px 22px rgba(36, 40, 33, .15); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 13px 30px rgba(36, 40, 33, .2); }
.button--gold { background: var(--gold); color: var(--ink); }
.button--quiet { border: 1px solid var(--ink); background: transparent; color: var(--ink); box-shadow: none; }

.hero { padding: 36px 0 28px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(560px, 1.1fr); align-items: center; gap: 48px; }
.hero-grid > * { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--sage-dark); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow > span { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.025em; }
h1 { max-width: 690px; font-size: clamp(2rem, 2.5vw, 2.25rem); line-height: 1.2; text-wrap: balance; }
h1 em { color: var(--sage-dark); font-style: italic; }
.hero-copy .hero-lede { max-width: 570px; margin: 28px 0 0; color: #53574f; font-size: 1.1rem; line-height: 1.7; }
.hero-enquiry { margin-top: 24px; scroll-margin-top: 100px; }
.hero-enquiry [hidden] { display: none; }
.enquiry-email-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.enquiry-email-row .button { min-height: 48px; white-space: nowrap; }
.hero-enquiry .form-note { margin: 10px 0 0; color: #64685f; }
.hero-enquiry .form-status:empty { display: none; }
.hero-enquiry .form-status { margin-top: 12px; }
.enquiry-details { min-width: 0; margin: 22px 0 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); }
.enquiry-details legend { padding: 0 10px 0 0; color: var(--ink); font-size: .9rem; font-weight: 600; }
.hero-assurance { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 23px; color: #64685f; font-size: .72rem; font-weight: 700; }
.hero-assurance span { display: inline-flex; align-items: center; gap: 8px; }
.hero-assurance span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--sage); }
.hero-integrations { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 22px 0 0; color: #64685f; font-size: .8125rem; line-height: 1.4; }
.hero-integrations strong { color: var(--sage-dark); font: 600 1.4rem/1.3 var(--serif); }

.dashboard-stage { position: relative; min-height: 560px; padding-bottom: 36px; }
.dashboard-stage::before { content: ""; position: absolute; width: 530px; height: 530px; inset: 20px auto auto 24px; border-radius: 50%; background: var(--sage-soft); }
.dashboard { position: relative; z-index: 1; margin-top: 34px; overflow: hidden; border: 1px solid rgba(36,40,33,.1); border-radius: 16px; background: var(--paper-strong); box-shadow: var(--shadow); transform: rotate(.65deg); }
.source-chip { position: absolute; z-index: 2; display: grid; min-width: 136px; gap: 3px; border: 1px solid var(--line); border-radius: 12px; padding: 13px 18px; background: var(--paper-strong); box-shadow: 0 12px 32px rgba(36,40,33,.13); }
.source-chip span { color: #6b7067; font-size: .6rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.source-chip strong { font: 600 1.75rem/1.2 var(--serif); }
.source-chip--splose { top: -16px; right: 42px; transform: rotate(2deg); }
.source-chip--xero { right: 4px; bottom: -4px; transform: rotate(-2deg); }
.dash-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dash-top > span:first-child { display: grid; gap: 3px; }
.dash-top small { color: #71756c; font-size: .58rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.dash-top strong { font: 600 1.1rem var(--serif); }
.synthetic { border-radius: 999px; padding: 6px 10px; background: var(--gold-soft); color: #654612; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.dash-summary { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.dash-stat { padding: 22px 20px; border-right: 1px solid var(--line); }
.dash-stat:last-child { border-right: 0; }
.dash-stat span { display: block; color: #666a61; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.dash-stat strong { display: block; margin-top: 8px; font: 600 1.8rem var(--serif); }
.dash-stat small { display: block; margin-top: 4px; color: #7b7f76; font-size: .64rem; }
.dash-table { width: 100%; border-collapse: collapse; font-size: .77rem; }
.dash-table th, .dash-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid rgba(36,40,33,.08); }
.dash-table th { color: #71756c; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; }
.dash-table td:nth-child(n+2), .dash-table th:nth-child(n+2) { text-align: right; }
.person { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.avatar { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--sage); color: white; font-size: .64rem; }
.avatar--gold { background: #b8874a; }
.avatar--rose { background: #a85e49; }
.status { display: inline-block; min-width: 50px; border-radius: 999px; padding: 4px 8px; text-align: center; font-size: .68rem; font-weight: 800; }
.status.good { background: var(--sage-soft); color: #34503c; }
.status.watch { background: var(--gold-soft); color: #6b4912; }
.trace-note { margin: 0; padding: 14px 18px; color: #686c63; font-size: .69rem; }
.trace-note strong { color: var(--ink); }
.trace-toggle { border: 0; padding: 0; background: none; color: var(--sage-dark); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.trace-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.trace-working dl { margin: 0; padding: 0 18px 30px; font-size: .72rem; font-variant-numeric: tabular-nums; }
.trace-working dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid rgba(36,40,33,.1); }
.trace-working dt, .trace-working dd { margin: 0; }
.trace-working dd { font-weight: 700; }
.trace-working__total { border-top: 2px solid var(--ink) !important; color: var(--sage-dark); font-weight: 700; }
.trace-working--enhanced { display: grid; grid-template-rows: 0fr; visibility: hidden; }
.trace-working--enhanced > div { overflow: hidden; }
.trace-working--enhanced.is-open { grid-template-rows: 1fr; visibility: visible; }

.product-scope { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0 0; background: var(--paper-strong); }
.scope-intro { padding-bottom: 20px; }
.scope-intro h2 { max-width: 720px; margin: 0 auto; text-align: center; text-wrap: balance; }
.scope-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.scope-grid article { padding: 20px 26px 24px 0; border-right: 1px solid var(--line); }
.scope-grid article + article { padding-left: 26px; }
.scope-grid article:last-child { border-right: 0; }
.scope-number { display: block; margin-bottom: 20px; color: var(--rose); font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.scope-grid h3 { font-size: 1.35rem; }
.scope-grid p { margin: 13px 0 0; color: #5d6158; font-size: .87rem; line-height: 1.65; }

.section { padding: 48px 0; }
.section--white { background: var(--paper-strong); }
.section-heading { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: end; margin-bottom: 36px; }
.section-heading h2 { max-width: 760px; text-wrap: balance; }
.section-heading p { max-width: 520px; margin: 0; color: #585c54; line-height: 1.75; }


.demo-heading { margin-bottom: 24px; }
.demo-heading h2 { max-width: 760px; }
.demo-heading__note { max-width: 620px; margin: 14px 0 0; color: #585c54; font-size: 1rem; line-height: 1.65; }
.text-link { color: var(--sage-dark); font-size: .82rem; font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.demo-shell { display: grid; grid-template-columns: 250px 1fr; overflow: hidden; border-radius: 16px; background: var(--ink); color: #f6f2e9; box-shadow: var(--shadow); }
.demo-nav { display: flex; flex-direction: column; padding: 26px 18px 18px; border-right: 1px solid rgba(255,255,255,.12); }
.demo-brand { display: grid; gap: 6px; margin: 0 10px 26px; }
.demo-brand strong { font: 600 1.35rem var(--serif); }
.demo-brand span { color: #aeb2aa; font-size: .65rem; line-height: 1.45; }
.demo-tab { display: flex; width: 100%; gap: 12px; margin: 3px 0; border: 0; border-radius: 10px; padding: 13px 14px; background: transparent; color: #cfcec7; text-align: left; cursor: pointer; }
.demo-tab > span { color: #92988f; font-size: .63rem; font-weight: 800; }
.demo-tab[aria-selected="true"] { background: rgba(255,255,255,.1); color: white; font-weight: 800; }
.demo-tab[aria-selected="true"] > span { color: var(--gold); }
.demo-open { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding: 20px 13px 9px; border-top: 1px solid rgba(255,255,255,.12); color: white; font-size: 1rem; font-weight: 800; text-decoration: none; }
.demo-content { min-height: 0; padding: 34px 38px 38px; background: #f7f3ec; color: var(--ink); }
.demo-content, .demo-panel { min-width: 0; }
.demo-row .mobile-label, .calendar-hint { display: none; }
.demo-panel[hidden] { display: none; }
.demo-panel[data-entering="true"] { animation: tally-panel-reveal .28s ease-out both; }
@keyframes tally-panel-reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.panel-heading > div > span { display: block; margin-bottom: 6px; color: #777b73; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.demo-panel h3 { font-size: 1.5rem; }
.demo-panel > p { margin: 10px 0 25px; color: #62665d; }
.demo-panel > .calculation-note { margin: 20px 0 0; color: var(--sage-dark); font-size: .875rem; line-height: 1.6; }
.demo-metrics, .capacity-summary, .finance-preview { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.5); }
.demo-metrics > div, .capacity-summary > div, .finance-preview > div { padding: 16px; border-right: 1px solid var(--line); }
.demo-metrics > div:last-child, .capacity-summary > div:last-child, .finance-preview > div:last-child { border-right: 0; }
.demo-metrics span, .capacity-summary span, .finance-preview span { display: block; color: #6e7269; font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.demo-metrics strong, .capacity-summary strong, .finance-preview strong { display: block; margin-top: 7px; font: 600 1.35rem var(--serif); }
.finance-preview small { display: block; margin-top: 5px; color: #7b7f76; font-size: .64rem; }
.demo-table-head { display: grid; grid-template-columns: 1.35fr repeat(4, .65fr); gap: 12px; padding: 0 0 9px; color: #74786f; font-size: .58rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.demo-table-head span:not(:first-child) { text-align: right; }
.demo-row { display: grid; grid-template-columns: 1.2fr .8fr .8fr .8fr; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.demo-row--five { grid-template-columns: 1.35fr repeat(4, .65fr); }
.demo-row strong { font-size: .89rem; }
.demo-row span { font-size: .78rem; text-align: right; }
.demo-row small { display: block; margin-top: 4px; color: #575b53; }
.mini-calendar { display: grid; grid-template-columns: repeat(5, minmax(88px, 1fr)); gap: 6px; }
.mini-calendar > span { display: grid; min-height: 76px; align-content: space-between; border: 1px solid var(--line); border-radius: 9px; padding: 10px; background: rgba(255,255,255,.55); font-size: .77rem; font-weight: 800; }
.mini-calendar .calendar-label { min-height: 0; border: 0; padding: 0 5px 5px; background: transparent; color: #777b73; font-size: .6rem; text-transform: uppercase; }
.mini-calendar small { color: #73776f; font-size: .6rem; font-weight: 600; line-height: 1.35; }
.mini-calendar .calendar-leave { background: var(--sage-soft); }
.mini-calendar .calendar-warning { background: var(--gold-soft); }
.rule-path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 40px; }
.rule-node { min-height: 130px; padding: 17px; border-radius: 14px; background: white; }
.rule-node b { display: block; margin-bottom: 28px; color: var(--sage-dark); font-size: .69rem; text-transform: uppercase; }
.rule-node span { font-size: .78rem; line-height: 1.45; }
.expense-list { display: grid; gap: 18px; margin-top: 30px; }
.expense-list > div { display: grid; grid-template-columns: 1fr auto; gap: 7px 18px; font-size: .8rem; }
.expense-list strong { font-size: .78rem; }
.expense-bar { grid-column: 1 / -1; position: relative; display: block; height: 6px; overflow: hidden; border-radius: 999px; background: var(--sage-soft); }
.expense-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--expense-width); border-radius: inherit; background: var(--sage-dark); }
.expense-bar--55 { --expense-width: 55%; }
.expense-bar--31 { --expense-width: 31%; }
.expense-bar--23 { --expense-width: 23%; }

.trust-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; align-items: end; margin-bottom: 28px; }
.trust-heading h2 { max-width: 780px; }
.trust-heading > div:last-child > p { max-width: 520px; margin: 0 0 18px; color: #5b5f56; line-height: 1.75; }
.data-path { display: grid; grid-template-columns: 1fr auto 1fr auto 1.15fr auto 1fr; align-items: stretch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.data-path article { min-height: 0; padding: 27px 19px; }
.data-path article:first-child { padding-left: 0; }
.data-path article:last-child { padding-right: 0; }
.data-path article > span { display: block; color: var(--sage-dark); font-size: .63rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.data-path h3 { margin-top: 49px; font-size: 1.45rem; }
.data-path .provider-name { font-size: 1.75rem; }
.data-path p { margin: 10px 0 0; color: #60645b; font-size: .78rem; line-height: 1.58; }
.data-path .data-filter { margin: 16px 0; border-radius: 13px; padding: 18px 20px; background: var(--sage-soft); }
.data-path .data-filter h3 { margin-top: 32px; }
.data-arrow { display: grid; width: 28px; place-items: center; color: var(--rose); font-size: 1rem; }

.waitlist { margin: 32px auto 48px; overflow: hidden; border-radius: 18px; padding: 0; background: var(--sage-soft); }
.waitlist-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: stretch; }
.waitlist-copy { padding: 40px 44px; }
.scope-intro h2, .section-heading h2, .demo-heading h2, .trust-heading h2, .waitlist h2 { font-size: clamp(1.5rem, 2vw, 1.75rem); line-height: 1.25; }
.waitlist p { color: #4f5e52; line-height: 1.7; }
.next-steps { margin: 38px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(73,100,81,.25); }
.next-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 10px 12px; padding: 19px 0; border-bottom: 1px solid rgba(73,100,81,.25); }
.next-steps span { grid-row: 1 / 3; color: var(--rose); font-size: .65rem; font-weight: 800; }
.next-steps strong { font-size: .84rem; }
.next-steps small { color: #59675b; font-size: .73rem; line-height: 1.5; }
.enquiry-card { margin: 14px; border-radius: 14px; padding: 32px; background: var(--paper-strong); box-shadow: 0 22px 60px rgba(36,40,33,.1); }
.waitlist .enquiry-card { align-self: center; }
.enquiry-card__heading { margin-bottom: 28px; }
.enquiry-card__heading > span { color: var(--rose); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.enquiry-card__heading h3 { margin-top: 11px; font-size: 1.5rem; }
.enquiry-card__heading p { max-width: 560px; margin: 9px 0 0; color: #60645b; font-size: .82rem; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
label { font-size: .76rem; font-weight: 800; }
input, select { width: 100%; min-width: 0; min-height: 48px; font-size: 1rem; border: 1px solid rgba(36,40,33,.24); border-radius: 10px; padding: 0 13px; background: rgba(255,255,255,.78); color: var(--ink); }
input:focus, select:focus { border-color: var(--sage-dark); outline: 3px solid rgba(73,100,81,.2); }
.consent { display: flex; align-items: flex-start; gap: 10px; color: #4f5e52; font-size: .8rem; line-height: 1.5; }
.consent input { flex-shrink: 0; width: 20px; min-height: 20px; margin: 1px 0 0; accent-color: var(--sage-dark); }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.button:disabled { cursor: wait; opacity: .62; transform: none; box-shadow: none; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.form-note, .form-status { font-size: .72rem; line-height: 1.5; }
.form-status { grid-column: 1 / -1; min-height: 20px; margin: 0; color: #3c5a44; font-weight: 700; }
.form-status[data-state="error"] { color: #863e2b; }

footer { padding: 32px 0 24px; border-top: 1px solid var(--line); color: #62665e; font-size: .78rem; }
.footer-main { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 58px; padding-bottom: 50px; }
.footer-main > div:first-child p { max-width: 270px; margin-top: 15px; line-height: 1.6; }
.footer-group { display: grid; align-content: start; gap: 11px; }
.footer-group strong { margin-bottom: 5px; color: var(--ink); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }
.footer-group a { width: fit-content; text-decoration: none; }
.footer-group a:hover { text-decoration: underline; }
.footer-legal { margin: 0 auto; padding: 14px 0 0; color: #6b7067; font-size: .72rem; line-height: 1.6; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 26px; }

.policy { width: min(760px, calc(100% - 40px)); margin-inline: auto; padding: 72px 0 110px; }
.policy h1 { margin-bottom: 28px; }
.policy h2 { margin: 44px 0 14px; font-size: 1.55rem; }
.policy p, .policy li { max-width: 70ch; color: #53574f; font-size: 1rem; line-height: 1.75; }
.policy-note { padding: 18px 20px; border-radius: 14px; background: var(--gold-soft); color: #654612; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .dashboard-stage { min-height: 0; }
  .dashboard-stage::before,   .dashboard { margin-top: 0; transform: none; }
  .source-chip { display: none; }
  .demo-shell { grid-template-columns: minmax(0, 1fr); }
  .demo-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 16px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .demo-brand, .demo-open { grid-column: 1 / -1; }
  .demo-brand { margin: 0 12px 12px; }
  .demo-open { margin-top: 8px; min-height: 44px; padding: 12px; }
  .demo-tab { min-height: 44px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer-group a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
  .footer-group { gap: 0; }
}

@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-grid, .section-heading, .trust-heading, .waitlist-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 36px; }
  .dashboard-stage { min-height: 0; }
  .dashboard { transform: none; }
  .source-chip { display: none; }
  .scope-grid { grid-template-columns: 1fr 1fr; }
  .scope-grid article:nth-child(2) { border-right: 0; }
  .scope-grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-heading, .trust-heading, .waitlist-grid { gap: 30px; }
  .data-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-path .data-arrow { display: none; }
  .data-path .data-filter { grid-column: auto; }
}

@media (max-width: 700px) {
  .dashboard-stage { display: none; }
  .ps-footer .text-link, footer .brand { display: inline-flex; align-items: center; min-height: 44px; }
  .shell { width: min(calc(100% - 30px), 1180px); }
  .nav { min-height: 64px; gap: 10px; flex-wrap: wrap; }
  .nav .brand { margin-right: auto; min-height: 44px; }
  .nav-links { order: 4; width: 100%; margin: 0; padding: 8px 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .nav--enhanced .nav-links { display: none; }
  .nav--enhanced.nav--open .nav-links { display: grid; }
  .nav-toggle:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: .875rem; cursor: pointer; }
  .nav-toggle[aria-expanded="true"] { background: var(--sage-soft); }
  .button { min-height: 44px; padding-inline: 18px; }
  .nav .button { max-width: none; padding-inline: 14px; font-size: .875rem; white-space: nowrap; }
  .hero { padding: 36px 0 48px; }
  .enquiry-email-row { grid-template-columns: minmax(0, 1fr); }
  .hero-copy .hero-lede { font-size: 1rem; }
  .hero-assurance { gap: 8px 13px; }
  .dashboard { overflow: hidden; }
  .dash-top { flex-wrap: wrap; gap: 12px; }
  .dash-top, .dash-summary, .trace-note { min-width: 0; }
  .dash-summary { grid-template-columns: 1fr 1fr; }
  .dash-stat { padding: 18px 15px; }
  .dash-stat:nth-child(2) { border-right: 0; }
  .dash-stat:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .dash-table, .dash-table tbody, .dash-table tr, .dash-table td { display: block; width: 100%; }
  .dash-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dash-table tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; padding: 13px 15px; border-bottom: 1px solid rgba(36,40,33,.08); }
  .dash-table td, .dash-table td:nth-child(n+2) { display: grid; min-width: 0; min-height: 36px; align-content: center; gap: 3px; padding: 5px 0; border: 0; text-align: left; }
  .dash-table td:first-child { grid-column: 1 / -1; }
  .dash-table td:not(:first-child)::before { content: attr(data-label); color: #686c63; font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
  .section { padding: 36px 0; }
  .product-scope { padding-top: 48px; }
  .scope-grid { grid-template-columns: 1fr; }
  .scope-grid article, .scope-grid article + article { min-height: 0; padding: 25px 0 29px; border-right: 0; border-top: 1px solid var(--line); }
  .scope-grid article:first-child { border-top: 0; }
  .scope-number { margin-bottom: 20px; }
  .demo-content { min-height: 0; padding: 24px 16px; }
  .panel-heading { flex-direction: column; gap: 12px; }
  .demo-panel > p { line-height: 1.6; }
  .trust-heading .text-link { display: inline-flex; align-items: center; min-height: 44px; }
  .demo-nav { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .demo-brand, .demo-open { grid-column: 1 / -1; }
  .demo-open { border-top: 1px solid rgba(255,255,255,.12); }
  .demo-tab { width: 100%; white-space: normal; }
  .demo-row { grid-template-columns: 1fr 1fr; }
  .demo-row--five { grid-template-columns: 1fr 1fr; }
  .demo-row > strong { grid-column: 1 / -1; }
  .demo-row > span:nth-child(n) { text-align: left; }
  .demo-row > .status { border-radius: 8px; padding: 8px; }
  .demo-row .mobile-label { display: block; color: inherit; font-weight: 400; }
  .demo-table-head { display: none; }
  .demo-metrics, .capacity-summary, .finance-preview { grid-template-columns: 1fr; }
  .demo-metrics > div, .capacity-summary > div, .finance-preview > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-metrics > div:last-child, .capacity-summary > div:last-child, .finance-preview > div:last-child { border-bottom: 0; }
  .mini-calendar { grid-template-columns: repeat(5, minmax(94px, 1fr)); overflow-x: auto; padding-bottom: 12px; scrollbar-color: var(--sage-dark) var(--sage-soft); }
  .demo-panel > .calendar-hint { display: block; margin: 0 0 12px; font-size: .8125rem; }
  .rule-path { grid-template-columns: 1fr 1fr; }
  .data-path { grid-template-columns: 1fr; }
  .data-path article, .data-path article:first-child, .data-path article:last-child { min-height: 0; padding: 24px 0; border-bottom: 1px solid var(--line); }
  .data-path h3 { margin-top: 22px; }
  .data-path .data-filter { grid-column: auto; margin: 10px 0; border-bottom: 0; padding: 22px; }
  .data-path .data-filter h3 { margin-top: 22px; }
  .data-arrow { display: none; }
  .waitlist { margin-top: 24px; margin-bottom: 56px; padding: 0; }
  .waitlist-copy { padding: 45px 22px 30px; }
  .enquiry-card { margin: 8px; padding: 30px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field--wide, .form-actions, .form-status { grid-column: 1; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .form-actions .button { width: 100%; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
  .footer-group:last-child { grid-column: 1 / -1; }
  .footer-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* Problem and solution */
.problem-solution { padding: 40px 0 36px; }
.problem-solution h2 { max-width: 720px; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; text-wrap: balance; }
.ps-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: stretch; margin-top: 24px; }
.ps-questions { display: grid; grid-template-rows: repeat(4, 1fr); border-top: 1px solid var(--line); }
.ps-tab { position: relative; display: flex; align-items: center; border: 0; border-bottom: 1px solid var(--line); padding: 16px 20px 16px 22px; background: transparent; color: #5d6158; font: 600 1.2rem/1.35 var(--serif); text-align: left; cursor: pointer; }
.ps-tab::before { content: ""; position: absolute; top: -1px; bottom: -1px; left: 0; width: 3px; background: transparent; }
.ps-tab:hover { color: var(--ink); }
.ps-tab[aria-selected="true"] { background: var(--paper-strong); color: var(--ink); }
.ps-tab[aria-selected="true"]::before { background: var(--rose); }
.ps-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.ps-panel { border: 1px solid var(--line); border-radius: 16px; padding: 26px 30px 26px; background: var(--paper-strong); box-shadow: var(--shadow); }
.ps-panel[hidden] { display: none; }
.ps-grid--enhanced .ps-answers { display: grid; }
.ps-grid--enhanced .ps-panel { grid-area: 1 / 1; }
.ps-grid--enhanced .ps-panel[hidden] { display: block; visibility: hidden; }
.ps-today { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: #6b564f; font-size: .92rem; line-height: 1.6; }
.ps-panel h3 { font-size: 1.5rem; line-height: 1.25; color: var(--sage-dark); }
.ps-panel h3 + p { max-width: 520px; margin: 8px 0 18px; color: #4d5148; font-size: .95rem; line-height: 1.65; }
.ps-ledger { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.ps-ledger th, .ps-ledger td { padding: 12px 0; border-top: 1px solid var(--line); text-align: right; font-weight: 400; }
.ps-ledger thead th { padding-top: 0; border-top: 0; color: #4d5148; font-size: .78rem; font-weight: 700; vertical-align: bottom; }
.ps-ledger th:first-child { text-align: left; }
.ps-ledger tbody th { font-weight: 700; }
.ps-ledger small, .ps-working small { display: block; margin-top: 2px; color: #6b7067; font-size: .72rem; font-weight: 400; }
.ps-working { margin: 0; font-variant-numeric: tabular-nums; }
.ps-working > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); }
.ps-working dt { font-size: .92rem; }
.ps-working dd { margin: 0; font-size: 1.05rem; font-weight: 700; text-align: right; }
.ps-working dd small { margin-top: 2px; }
.ps-working__total { position: relative; }
.ps-working__total::before { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 2px; background: var(--ink); transform-origin: left; }
.ps-working__total dt { font-weight: 700; }
.ps-working__total dd { font: 600 1.6rem/1.2 var(--serif); color: var(--sage-dark); }
.ps-working__child { padding-left: 22px !important; }
.ps-working__child dt, .ps-working__child dd { font-size: .88rem; font-weight: 400; }
.ps-note { margin: 16px 0 0; color: #6b7067; font-size: .8rem; }
.ps-footer { max-width: 760px; margin: 22px 0 0; color: #585c54; font-size: .92rem; line-height: 1.65; }
.ps-footer .text-link { display: inline-flex; white-space: nowrap; }
@media (max-width: 860px) {
  .problem-solution { padding: 48px 0 44px; }
  .ps-grid { grid-template-columns: 1fr; gap: 20px; }
  .ps-questions { grid-template-rows: none; }
  .ps-tab { min-height: 44px; padding: 16px 16px 16px 18px; font-size: 1.1rem; }
  .ps-panel { padding: 24px 20px 26px; }
  .ps-ledger { font-size: .82rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .ps-panel[data-entering] { animation: ps-in .25s ease-out; }
  .ps-panel[data-entering] .ps-working__total::before { animation: ps-rule .45s .1s ease-out backwards; }
  .trace-working--enhanced { transition: grid-template-rows .3s ease, visibility .3s; }
  @keyframes ps-rule { from { transform: scaleX(0); } to { transform: none; } }
  @keyframes ps-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Hero: staged entrance, then each clinician's target explains itself */
.dash-table tbody tr.is-tracing { background: rgba(220,233,222,.55); }
.dash-table tbody tr.is-tracing td:nth-child(3) { color: var(--sage-dark); font-weight: 800; }
.person--btn { border: 0; padding: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.person--btn:hover .avatar { box-shadow: 0 0 0 3px var(--sage-soft); }
.person--btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .dash-table tbody tr, .dash-table td, .avatar { transition: background-color .5s ease, color .5s ease, box-shadow .3s ease; }
  .hero-copy > * { animation: dash-in .7s cubic-bezier(.2,.7,.2,1) backwards; }
  .hero-copy > :nth-child(1) { animation-delay: .05s; }
  .hero-copy > :nth-child(2) { animation-delay: .15s; }
  .hero-copy > :nth-child(3) { animation-delay: .25s; }
  .hero-copy > :nth-child(4) { animation-delay: .35s; }
  .dashboard { animation: dash-rise .9s cubic-bezier(.2,.7,.2,1) backwards; transition: transform .25s ease-out; }
  .dash-stat, .dash-table tbody tr, .trace-note { animation: dash-in .55s cubic-bezier(.2,.7,.2,1) backwards; }
  .dash-stat:nth-child(1) { animation-delay: .35s; }
  .dash-stat:nth-child(2) { animation-delay: .45s; }
  .dash-stat:nth-child(3) { animation-delay: .55s; }
  .dash-table tbody tr:nth-child(1) { animation-delay: .7s; }
  .dash-table tbody tr:nth-child(2) { animation-delay: .8s; }
  .dash-table tbody tr:nth-child(3) { animation-delay: .9s; }
  .dash-table tbody tr:nth-child(4) { animation-delay: 1s; }
  .trace-note { animation-delay: 1.15s; }
  .status { animation: pill-in .4s ease-out backwards; }
  tr:nth-child(1) .status { animation-delay: 1.05s; }
  tr:nth-child(2) .status { animation-delay: 1.15s; }
  tr:nth-child(3) .status { animation-delay: 1.25s; }
  tr:nth-child(4) .status { animation-delay: 1.35s; }
  .trace-working dl.is-fresh > div, .trace-note .trace-text.is-fresh, .trace-note strong.is-fresh { animation: dash-in .4s ease-out backwards; }
  .trace-working dl.is-fresh > div:nth-child(1) { animation-delay: .1s; }
  .trace-working dl.is-fresh > div:nth-child(2) { animation-delay: .3s; }
  .trace-working dl.is-fresh > div:nth-child(3) { animation-delay: .55s; }
  @keyframes dash-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes dash-rise { from { opacity: 0; transform: translateY(24px) rotate(.65deg) scale(.98); } to { opacity: 1; transform: rotate(.65deg); } }
  @keyframes pill-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .dashboard.is-tilting { transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) rotate(.65deg); }
}
