/* Layout: a wide centred column; navy "ink" bands carry the product screens,
   paper sections carry the words. Gold is the one accent, used for action. */
:root {
  --paper: #f5f6f8;
  --paper-2: #ffffff;
  --ink: #0e1a2b;
  --ink-2: #16263b;
  --text: #17202c;
  --muted: #586374;
  --line: #dde1e7;
  --gold: #e6a01a;
  --gold-ink: #8a5a00;
  --gold-soft: #fdf3dc;
  --on-ink: #eef2f7;
  --on-ink-muted: #a3b0c2;
  --ok: #1f8a5b;
  --warn: #b7791f;
  --bad: #c0392b;
  --info: #2f6fb3;
  --shadow: 0 1px 2px rgb(14 26 43 / .06), 0 8px 24px rgb(14 26 43 / .08);

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1420; --paper-2: #111d2c; --ink: #071019; --ink-2: #0f1c2b;
    --text: #e7ecf2; --muted: #9aa7b8; --line: #223247;
    --gold: #f0b23a; --gold-ink: #f3c46a; --gold-soft: #2a2312;
    --on-ink: #eef2f7; --on-ink-muted: #a3b0c2;
    --ok: #3fbf86; --warn: #e0a84a; --bad: #e46a5d; --info: #6aa5e6;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1420; --paper-2: #111d2c; --ink: #071019; --ink-2: #0f1c2b;
  --text: #e7ecf2; --muted: #9aa7b8; --line: #223247;
  --gold: #f0b23a; --gold-ink: #f3c46a; --gold-soft: #2a2312;
  --on-ink: #eef2f7; --on-ink-muted: #a3b0c2;
  --ok: #3fbf86; --warn: #e0a84a; --bad: #e46a5d; --info: #6aa5e6;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.6 var(--f-body); }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font: 600 .75rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.ink .eyebrow { color: var(--gold); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.ink .lede { color: var(--on-ink-muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--paper-2); padding: 8px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.3em; border-radius: 8px; font: 600 1rem/1 var(--f-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #1a1205; }
.btn-gold:hover { background: color-mix(in srgb, var(--gold) 88%, white); }
.btn-line { border-color: var(--line); color: var(--text); background: transparent; }
.ink .btn-line, .hero .btn-line { border-color: rgb(255 255 255 / .22); color: var(--on-ink); }
.btn-sm { padding: .55em .9em; font-size: .9rem; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: baseline; gap: 2px; text-decoration: none; font: 700 1.35rem/1 var(--f-display); letter-spacing: -.02em; }
.brand b { color: var(--gold-ink); font-weight: 700; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.head-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.head-cta .signin { text-decoration: none; font-weight: 500; color: var(--muted); font-size: .95rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--text); font: inherit; }
@media (max-width: 880px) {
  .nav, .head-cta .signin { display: none; }
  .menu-btn { display: inline-block; }
  .head-cta { margin-left: 0; }
  .site-head.open .nav { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper-2); padding: 16px var(--gutter) 20px; border-bottom: 1px solid var(--line); gap: 14px; margin: 0; }
  .site-head.open .nav .m-only { display: block; }
}
.nav .m-only { display: none; }
@media (max-width: 420px) { .head-cta .btn { padding: .55em .8em; font-size: .85rem; } }

/* Sections */
section { padding-block: clamp(56px, 8vw, 96px); }
.ink { background: var(--ink); color: var(--on-ink); }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 72px) clamp(48px, 7vw, 88px); background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 85% 10%, rgb(230 160 26 / .16), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-copy { display: grid; gap: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: .9rem; color: var(--on-ink-muted); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Sector switcher */
.picker { display: grid; gap: 10px; }
.picker-label { font-size: .9rem; color: var(--on-ink-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid rgb(255 255 255 / .18); background: rgb(255 255 255 / .04); color: var(--on-ink); border-radius: 999px; padding: .45em .9em; font: 500 .9rem/1.2 var(--f-body); cursor: pointer; }
.chip:hover { border-color: rgb(255 255 255 / .4); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a1205; }

/* Mock app window */
.screen { background: var(--ink-2); border: 1px solid rgb(255 255 255 / .1); border-radius: 14px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .55); overflow: hidden; font-size: .9rem; min-width: 0; }
.screen-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgb(255 255 255 / .08); color: var(--on-ink-muted); font: 500 .78rem/1 var(--f-mono); }
.screen-bar .dots { display: flex; gap: 5px; }
.screen-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgb(255 255 255 / .16); }
.screen-bar .url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-bar .tag { color: var(--gold); }
.screen-body { padding: 16px; display: grid; gap: 14px; min-height: 300px; }
.screen-title { font: 600 1rem/1.2 var(--f-display); color: var(--on-ink); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: rgb(255 255 255 / .04); border-radius: 8px; padding: 10px; }
.stat small { display: block; color: var(--on-ink-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.stat b { font: 600 1.05rem/1.3 var(--f-mono); color: var(--on-ink); font-variant-numeric: tabular-nums; }
.rows { display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; background: rgb(255 255 255 / .03); border-radius: 7px; }
.row .no { font: 600 .85rem/1 var(--f-mono); color: var(--on-ink); }
.row .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--on-ink); }
.row .who small { color: var(--on-ink-muted); margin-right: 6px; }
.pill { font: 600 .7rem/1 var(--f-body); padding: .4em .65em; border-radius: 999px; text-transform: capitalize; letter-spacing: .02em; }
.pill.occupied { background: rgb(106 165 230 / .18); color: #8fbcf0; }
.pill.clean { background: rgb(63 191 134 / .18); color: #6fd6a6; }
.pill.dirty { background: rgb(224 168 74 / .2); color: #f0c477; }
.pill.reserved { background: rgb(186 140 255 / .18); color: #c9a8ff; }
.tickets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ticket { background: rgb(255 255 255 / .05); border-radius: 8px; padding: 10px; border-top: 3px solid var(--gold); min-width: 0; }
.ticket header { display: flex; justify-content: space-between; gap: 6px; font: 600 .8rem/1.2 var(--f-mono); color: var(--on-ink); margin-bottom: 8px; }
.ticket header span { color: var(--gold); }
.ticket ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; color: var(--on-ink-muted); font-size: .82rem; }
@media (max-width: 520px) { .tickets { grid-template-columns: minmax(0, 1fr); } }
.till { font-family: var(--f-mono); font-size: .8rem; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.till .ln { display: grid; grid-template-columns: minmax(0, 1fr) 28px 80px; gap: 8px; padding: 7px 0; border-bottom: 1px dashed rgb(255 255 255 / .1); color: var(--on-ink); }
.till .ln span:first-child { min-width: 0; }
.till .ln small { display: block; color: var(--on-ink-muted); font-size: .72rem; }
.till .ln .q, .till .ln .a { text-align: right; }
.till .tot { display: flex; justify-content: space-between; padding-top: 10px; font-weight: 700; font-size: .95rem; color: var(--on-ink); }
.till .warn { margin-top: 8px; background: rgb(224 168 74 / .14); color: #f0c477; padding: 8px 10px; border-radius: 7px; font-family: var(--f-body); font-size: .8rem; }
.example-note { font-size: .78rem; color: var(--on-ink-muted); text-align: right; }

/* Sector grid */
.sectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.sector-card { display: grid; gap: 6px; padding: 18px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .15s, transform .15s; }
.sector-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.sector-card h3 { font-size: 1.02rem; }
.sector-card p { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.sector-card .kind { font: 600 .68rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.group-label { font: 600 .8rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }

/* Ledger flow */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid rgb(255 255 255 / .12); border-radius: 14px; overflow: hidden; }
.flow > div { padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.flow > div + div { border-left: 1px solid rgb(255 255 255 / .12); }
.flow h3 { color: var(--on-ink); }
.flow p { color: var(--on-ink-muted); font-size: .95rem; }
.journal { font: .8rem/1.5 var(--f-mono); color: var(--on-ink); background: rgb(255 255 255 / .04); border-radius: 8px; padding: 10px 12px; overflow-x: auto; font-variant-numeric: tabular-nums; }
.journal div { display: grid; grid-template-columns: 2.4em minmax(9em, 1fr) 6.5em; gap: 8px; white-space: nowrap; }
.journal .cr { padding-left: 1.2em; color: var(--on-ink-muted); }
.journal .n { text-align: right; }
@media (max-width: 860px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow > div + div { border-left: 0; border-top: 1px solid rgb(255 255 255 / .12); } }

/* Feature lists */
.fgroups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.fgroup { display: grid; gap: 14px; align-content: start; }
.fgroup h3 { font-size: 1.05rem; padding-bottom: 10px; border-bottom: 2px solid var(--gold); }
.fgroup dl { margin: 0; display: grid; gap: 14px; }
.fgroup dt { font-weight: 650; }
.fgroup dd { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .fgroups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fgroups { grid-template-columns: minmax(0, 1fr); } }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.points div { display: grid; gap: 6px; align-content: start; }
.points h3 { font-size: 1.05rem; }
.points p { color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .points { grid-template-columns: minmax(0, 1fr); } }

/* Starter kit (sector pages) */
.kit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kit > div { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.kit h3 { font-size: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: .85rem; padding: .3em .7em; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); }
@media (max-width: 700px) { .kit { grid-template-columns: minmax(0, 1fr); } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); display: grid; gap: 8px; align-content: start; }
.step::before { counter-increment: s; content: "Step " counter(s); font: 600 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Split block */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.checks li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--gold-soft); box-shadow: inset 0 0 0 5px var(--gold); }
.checks b { display: block; }
.checks span { color: var(--muted); font-size: .95rem; }
.ink .checks span { color: var(--on-ink-muted); }

/* Pricing */
.billing-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: var(--paper-2); margin-bottom: 28px; }
.billing-toggle button { border: 0; background: none; padding: .5em 1.1em; border-radius: 999px; font: 600 .9rem/1 var(--f-body); color: var(--muted); cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: grid; gap: 16px; grid-template-rows: auto auto auto 1fr auto; }
.plan.featured { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.plan .badge { justify-self: start; font: 600 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; background: var(--gold-soft); color: var(--gold-ink); padding: .5em .7em; border-radius: 6px; }
.plan .price { font: 700 2.3rem/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan .price small { font: 500 .95rem var(--f-body); color: var(--muted); letter-spacing: 0; }
.plan .limits { color: var(--muted); font-size: .92rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; font-size: .95rem; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.plan .btn { justify-content: center; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.fineprint { color: var(--muted); font-size: .9rem; margin-top: 20px; }
.compare-wrap { overflow-x: auto; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
.compare th, .compare td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 18%; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--f-display); }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--f-display); color: var(--gold-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; max-width: 70ch; }

/* CTA band */
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.cta-band select { font: 500 1rem var(--f-body); padding: .75em 1em; border-radius: 8px; border: 1px solid rgb(255 255 255 / .25); background: var(--ink-2); color: var(--on-ink); max-width: 100%; }
.cta-form { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Page header (inner pages) */
.page-head { padding-block: clamp(44px, 6vw, 72px) clamp(36px, 5vw, 56px); }
.page-head .wrap { display: grid; gap: 16px; }
.crumb { font-size: .88rem; color: var(--on-ink-muted); }
.crumb a { color: var(--on-ink-muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 860px; }
.contact-grid > div { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 8px; }
.contact-grid .addr { font: 600 1.05rem var(--f-mono); user-select: all; word-break: break-all; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-foot { background: var(--ink); color: var(--on-ink-muted); padding-block: 56px 32px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h4 { color: var(--on-ink); font: 600 .78rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid ul + h4 { margin-top: 28px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--on-ink); }
.site-foot .brand { color: var(--on-ink); margin-bottom: 12px; }
.site-foot .brand b { color: var(--gold); }
.foot-base { border-top: 1px solid rgb(255 255 255 / .1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* Help centre */
.faq .ans { color: var(--muted); margin-top: 10px; max-width: 72ch; display: grid; gap: 8px; }
.faq .ans ul { margin: 4px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }
.faq .ans a { color: var(--gold-ink); }
.faq .ans b { color: var(--text); font-weight: 650; }
.faq details:target { background: var(--gold-soft); margin-inline: -12px; padding-inline: 12px; border-radius: 8px; }
.help-search { max-width: 640px; }
.help-search input { width: 100%; font: 500 1.05rem var(--f-body); padding: .9em 1.1em; border-radius: 10px; border: 1px solid rgb(255 255 255 / .2); background: var(--ink-2); color: var(--on-ink); }
.help-search input::placeholder { color: var(--on-ink-muted); }
.help-count { color: var(--on-ink-muted); font-size: .9rem; min-height: 1.4em; }
.help-body { padding-top: 48px; }
.help-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.help-toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
.help-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.help-toc a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 7px; text-decoration: none; color: var(--muted); font-size: .93rem; }
.help-toc a:hover { background: var(--paper-2); color: var(--text); }
.help-toc a span { font: 500 .78rem var(--f-mono); color: var(--muted); }
.help-main { display: grid; gap: 48px; min-width: 0; }
.help-cat { display: grid; gap: 16px; scroll-margin-top: 84px; }
.help-cat h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.help-cat[hidden] { display: none; }
.help-live { font-size: .88rem; color: var(--muted); }
.help-empty, .help-more { display: grid; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); }
.help-empty h2, .help-more h2 { font-size: 1.3rem; }
.help-more p:last-child { display: flex; flex-wrap: wrap; gap: 10px; }
mark { background: var(--gold-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
@media (max-width: 860px) {
  .help-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .help-toc { position: static; }
  .help-toc ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .help-toc a { border: 1px solid var(--line); background: var(--paper-2); padding: 6px 10px; }
}

/* Pricing: business type + billing period */
.pricing-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pricing-controls .billing-toggle { margin-bottom: 0; }
.family { display: grid; gap: 0; margin-top: 20px; }
.family[hidden] { display: none; }
.family-who { color: var(--muted); margin-bottom: 18px; }

/* Legal links + social links, both filled from Platform Admin → Company & Legal */
.foot-legal, .foot-social { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-size: .9rem; }
.foot-social { margin-top: 12px; }
.foot-legal a, .foot-social a { text-decoration: none; }
.foot-legal a:hover, .foot-social a:hover { color: var(--on-ink); }
[data-site-block][hidden] { display: none !important; }
.contact-grid .addr-text { font-weight: 600; white-space: pre-line; }

/* ── Accounts and tax ─────────────────────────────────────── */
.tax .split { align-items: start; }
.vat-split { margin: 0; padding: 20px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); display: grid; gap: 14px; }
.vat-split figcaption { font-size: .95rem; }
.vat-bar { display: flex; height: 64px; border-radius: 10px; overflow: hidden; font: 600 .82rem/1.2 var(--f-mono); font-variant-numeric: tabular-nums; }
.vat-bar .seg { display: grid; align-content: center; padding: 0 12px; min-width: 0; white-space: nowrap; overflow: hidden; }
.vat-bar .seg b { display: block; font-size: 1rem; }
/* 10,000 : 750 is 93% : 7%; the VAT side is drawn wider so its label fits. */
.vat-bar .inc { flex: 0 0 74%; background: var(--ink); color: var(--on-ink); }
.vat-bar .vat { flex: 1 1 auto; background: var(--gold); color: #1d1404; }
.vat-note { margin: 0; font-size: .85rem; color: var(--muted); }

/* ── Motion ───────────────────────────────────────────────────
   Everything below applies only under html.motion, which site.js adds when
   the browser supports IntersectionObserver and the visitor has not asked
   for reduced motion. Without it every element is simply visible. */
.motion .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.motion .rv.in { opacity: 1; transform: none; }
.motion .journal.rv > div { opacity: 0; transform: translateX(-8px); transition: opacity .4s ease, transform .4s ease; }
.motion .journal.rv.in > div { opacity: 1; transform: none; }
.motion .journal.rv.in > div:nth-child(1) { transition-delay: calc(var(--d, 0ms) + 250ms); }
.motion .journal.rv.in > div:nth-child(2) { transition-delay: calc(var(--d, 0ms) + 450ms); }
.motion .journal.rv.in > div:nth-child(3) { transition-delay: calc(var(--d, 0ms) + 650ms); }
.motion .journal.rv.in > div:nth-child(4) { transition-delay: calc(var(--d, 0ms) + 850ms); }

/* The sale bar fills, then splits into income and VAT. */
.motion .vat-split.rv .vat-bar .inc { flex-basis: 100%; transition: flex-basis .9s cubic-bezier(.2, .7, .2, 1) .5s; }
.motion .vat-split.rv.in .vat-bar .inc { flex-basis: 74%; }
.motion .vat-split.rv .vat-bar .vat { opacity: 0; transition: opacity .5s ease 1.1s; }
.motion .vat-split.rv.in .vat-bar .vat { opacity: 1; }

/* Hero example screen: rows rise in each time it is redrawn. */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.motion .screen-body > * { animation: rise .45s both; }
.motion .screen-body .ln, .motion .screen-body .row, .motion .screen-body .ticket, .motion .screen-body .stat { animation: rise .45s both; }
.motion .screen-body :is(.ln, .row, .ticket, .stat):nth-child(2) { animation-delay: 80ms; }
.motion .screen-body :is(.ln, .row, .ticket, .stat):nth-child(3) { animation-delay: 160ms; }
.motion .screen-body :is(.ln, .row, .ticket, .stat):nth-child(4) { animation-delay: 240ms; }
.motion .screen-body :is(.ln, .row, .ticket, .stat):nth-child(5) { animation-delay: 320ms; }
.motion .screen-body .tot, .motion .screen-body .warn { animation: rise .45s .4s both; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.motion .hero .screen { animation: float 7s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: .75; transform: translate(0, 0); } 50% { opacity: 1; transform: translate(-3%, 4%); } }
.motion .hero::before { animation: glow 12s ease-in-out infinite; }
.chip { transition: background .2s, color .2s, border-color .2s, transform .15s; }
.chip:hover { transform: translateY(-1px); }
.sector-card:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .motion .rv, .motion .journal.rv > div { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .vat-bar .inc, .motion .vat-split.rv.in .vat-bar .inc { flex-basis: 58%; }
  .vat-bar .seg { padding: 0 10px; font-size: .74rem; }
}
