/* Material Symbols Outlined: our own static subset (regular weight, outline, optical size 24), printable ASCII, with every
   icon ligature. Served from this site; the full font is kept in private/fonts (ADR 0055). */
@font-face {
  font-family: "Material Symbols Outlined";
  src: url("/assets/fonts/material-symbols-outlined.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

/* Starter styles for a static site. Colours, type and spacing come from tokens.css; this file uses no literal colours. */
/* Starter styles for a static site. Every colour, size and space is a token on :root.
   Dark theme: the html element has no "light" class (the default). Light theme: class "light" on html. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text-primary); font: 1.0625rem/var(--line-height) var(--font-body); }
a { color: var(--link-primary); }
img, video { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--link-primary); outline-offset: 2px; }
.skip-link { position: absolute; left: var(--space); top: -3rem; padding: .5rem 1rem; background: var(--button-primary); color: var(--text-on-color); }
.skip-link:focus { top: var(--space); }
.container { width: min(100% - 2 * var(--space), var(--max-width)); margin-inline: auto; }
.wrap { width: min(100% - 2 * var(--space), var(--max-width)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
section { padding-block: 3rem; }
.lede { font-size: 1.2rem; color: var(--text-secondary); max-width: 60ch; }

/* Header */
.app-nav { position: sticky; top: 0; z-index: 10; background: var(--background); border-bottom: 1px solid var(--border-subtle); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1rem; }
.nav-logo { display: flex; flex-direction: column; text-decoration: none; color: var(--text-primary); }
.logo-main { font-family: var(--font-display); font-size: 1.25rem; }
.logo-sub { font-size: .8125rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-secondary); }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-sections { display: flex; gap: 1.5rem; margin-left: 2rem; }
/* The one navbar item to notice: the free assessment, outlined in the brand green. */
.nav-highlight { display: inline-flex; align-items: center; min-height: 40px; padding: .35rem .9rem; border: 1px solid var(--button-primary); border-radius: var(--radius); color: var(--button-primary); }
.nav-link.nav-highlight, .nav-link.nav-highlight:hover, .nav-link.nav-highlight:focus-visible { color: var(--button-primary); text-decoration: none; }
.nav-link.nav-highlight:hover, .nav-link.nav-highlight:active { color: var(--text-on-color); background: var(--button-primary); }
.nav-link, .footer-link, .mobile-link { color: var(--text-secondary); text-decoration: none; }
.nav-link:hover, .footer-link:hover, .mobile-link:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.theme-toggle { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border: 1px solid var(--border-subtle); background: none; color: var(--text-secondary); cursor: pointer; }
.theme-toggle svg { width: 1rem; height: 1rem; }
.btn-primary { display: inline-block; padding: .65rem 1.2rem; background: var(--button-primary); color: var(--text-on-color); text-decoration: none; font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; width: 2.5rem; height: 2.5rem; cursor: pointer; }
.toggle-line { display: block; height: 2px; margin: .4rem auto; background: var(--text-primary); }
.mobile-menu { display: none; padding: var(--space); border-top: 1px solid var(--border-subtle); }
.mobile-menu.open { display: block; }
.mobile-nav { display: grid; gap: .75rem; margin-bottom: 1rem; }
/* Signed-out links (Sign In, Create an Account) sit in one wrapper: give them their own spacing. */
[data-guest-link]:not([hidden]) { display: inline-flex; align-items: center; gap: 1.25rem; }
.mobile-actions { display: flex; gap: .75rem; align-items: center; }

/* Hero and sections */
.hero { padding-block: 4rem 3rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.cards { display: grid; gap: var(--space); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border-subtle); padding: var(--space); }
.reveal { transition: opacity var(--duration-normal) ease, transform var(--duration-normal) ease; }
.reveal:not(.is-visible) { opacity: 0; transform: translateY(12px); }

/* Footer */
.app-footer { border-top: 1px solid var(--border-subtle); display: flex; align-items: center; min-height: 3rem; padding-block: .75rem; margin-top: 2.5rem; color: var(--text-secondary); }
.footer-inner { display: grid; gap: 1.5rem; grid-template-columns: 2fr 1fr 1fr; }
/* A fixed size and measure: the sentence wraps at the same width on every screen, instead of re-flowing as the window changes. */
.footer-tagline { margin: .75rem 0 0; max-width: 34rem; font-size: 1.0625rem; line-height: 1.6; }
/* Footer links: one tidy column on phones, a row of plain links on wide screens (no bullets, underline on hover). */
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem 1.5rem; grid-template-columns: repeat(2, max-content); }
@media (min-width: 760px) { .footer-nav ul { grid-template-columns: repeat(4, max-content); } }
.footer-nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text-secondary); text-decoration: none; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--text-primary); text-decoration: underline; }
.footer-social { display: flex; gap: .75rem; }
.social-link { color: var(--text-secondary); }
.social-link svg { width: 1.125rem; height: 1.125rem; }
.footer-bottom-inner { display: flex; justify-content: center; align-items: center; text-align: center; width: 100%; margin: 0; font-size: .875rem; }
.footer-lang { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.footer-lang a { display: inline-flex; align-items: center; min-height: 40px; }

/* The contact chat (ADR 0067): a round chat button fixed at the bottom right of every public page. It opens a panel in place, with
   minimize and close. Hidden on the dashboard. */
.chat-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 20; width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 999px; background: var(--button-primary); color: var(--text-on-color); cursor: pointer; box-shadow: 0 4px 12px color-mix(in srgb, var(--display) 25%, transparent); }
.chat-fab[hidden] { display: none; }
.chat-fab .material-symbols-outlined { font-size: 28px; margin: 0; }
.chat-fab:focus-visible, .chat-panel__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.chat-panel { position: fixed; right: 1rem; bottom: 1rem; z-index: 21; width: min(24rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); display: flex; flex-direction: column; background: var(--background); color: var(--text-primary); border: 1px solid var(--border-subtle); border-radius: var(--radius); overflow: hidden; padding-block: 0; }
.chat-panel[hidden] { display: none; }
.chat-panel__bar { display: flex; align-items: center; gap: .25rem; padding: .5rem .5rem .5rem 1rem; background: var(--button-primary); color: var(--text-on-color); }
.chat-panel__title { flex: 1; margin: 0; font: 600 1rem/1.3 var(--font-body); }
.chat-panel__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.chat-panel__btn .material-symbols-outlined { font-size: 22px; margin: 0; }
.chat-panel__body { overflow-y: auto; padding: 1rem; display: grid; gap: .75rem; }
.chat-panel.is-minimized .chat-panel__body { display: none; }
.chat-panel__intro, .chat-panel__privacy { margin: 0; font-size: .9375rem; color: var(--text-secondary); }
.chat-panel__form { display: grid; gap: .75rem; }
.chat-panel__form label { display: grid; gap: .25rem; font-size: .9375rem; }
.chat-panel__form input, .chat-panel__form textarea { font: inherit; padding: .5rem .6rem; border: 1px solid var(--border-subtle); border-radius: var(--radius); background: var(--surface); color: var(--text-primary); }
.chat-panel__form textarea { resize: vertical; }
.chat-panel__form .btn { justify-self: start; }
body.db-page .chat-fab, body.db-page .chat-panel { display: none; }

@media (max-width: 760px) {
  .nav-links, .nav-sections, .nav-actions .nav-cta, .nav-actions .lang-switcher, .nav-actions .theme-toggle { display: none; }
  .nav-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  .reveal:not(.is-visible) { opacity: 1; transform: none; }
}

/* Touch and pointer targets: at least 24 px square (WCAG 2.2, 2.5.8). Inline links are made flex items so they can take a height. */
.nav-logo, .footer-logo, .nav-link, .footer-link, .mobile-link, .lang-btn, .btn-primary {
  display: inline-flex; align-items: center; min-height: 24px; min-width: 24px;
}
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; }
.card a, .lede a, main p a { display: inline-flex; align-items: center; min-height: 24px; }

/* Auth forms: sign-up, confirmation, sign-in and password reset (auth.js). */
[hidden] { display: none !important; }
.auth { max-width: 26rem; }
.form { display: grid; gap: 1rem; margin-block: 1.5rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; }
.form input { font: inherit; min-height: 44px; padding: .6rem .75rem; border: 1px solid var(--border-subtle); border-radius: var(--radius); background: var(--surface); color: var(--text-primary); }
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1.2rem; border: 1px solid var(--button-primary); border-radius: var(--radius); background: var(--button-primary); color: var(--text-on-color); font: inherit; font-weight: 600; cursor: pointer; }
.material-symbols-outlined { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; font-feature-settings: "liga"; }
.btn .material-symbols-outlined { font-size: 20px; margin-inline-end: .5rem; }
.btn:hover { text-decoration: underline; }
/* The waiting spinner on a form's button, shown while the page opens the next page (auth.js leaving()). */
.auth-spinner { display: inline-block; width: 1em; height: 1em; margin-inline-end: .5rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: auth-spin .8s linear infinite; vertical-align: -.15em; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auth-spinner { animation-duration: 2.4s; } }
.btn.ghost:hover { background: var(--surface); }
.btn[disabled] { cursor: not-allowed; opacity: 1; text-decoration: none; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { text-wrap: balance; }
.hint, .muted { font-size: .9rem; color: var(--text-secondary); }
.form__status { min-height: 1.5rem; margin: 0; }
.form__status--error { color: var(--error); font-weight: 600; }

/* Home page: hero, free check and value cards. */
.hero { padding-block: 4rem 2.5rem; }
.eyebrow { margin: 0 0 .75rem; font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); }
.hero h1 { margin: 0 0 1rem; color: var(--display); }
.ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn.ghost { background: transparent; color: var(--link-primary); border-color: var(--link-primary); }
.btn:focus-visible, .btn.ghost:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { padding-block: 2.5rem; border-top: 1px solid var(--border-subtle); }
.check h2, .values h2 { margin-top: 0; color: var(--display); }
.check-form { max-width: 32rem; }
.values { padding-block: 2.5rem 3rem; }
.values .card h3 { margin: 0 0 .5rem; font-size: 1.15rem; color: var(--text-primary); }
.values .card p { margin: 0; color: var(--text-secondary); }

.findings { display: grid; gap: .5rem; padding-left: 1.25rem; }
.check-status { max-width: 46rem; }

/* Hero illustration (inline SVG, palette tokens only). */
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero h1 { max-width: 16ch; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero-art { margin: 0; }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art figcaption { font-size: .875rem; margin-top: .5rem; }
.art-frame { fill: var(--surface); stroke: var(--border-subtle); stroke-width: 1.5; }
.art-bar { fill: var(--border-subtle); }
.art-dot { fill: var(--text-secondary); }
.art-user { fill: var(--link-primary); }
.art-ai { fill: var(--background); stroke: var(--border-subtle); stroke-width: 1.5; }
.art-page { fill: var(--background); stroke: var(--border-subtle); stroke-width: 1; }
.art-phone { fill: var(--surface); stroke: var(--text-secondary); stroke-width: 2; }
.art-line { fill: var(--border-subtle); }
.art-line-strong { fill: var(--display); }
.art-button { fill: var(--button-primary); }
.art-text { font: 600 12px var(--font-body); fill: var(--text-on-color); }
.art-ink { font: 600 12px var(--font-body); fill: var(--text-primary); }
.art-small { font: 12px var(--font-body); fill: var(--text-secondary); }
.form input::placeholder { color: var(--placeholder); opacity: 1; }

/* Logo: emblem and wordmark, one link to the home page (assets/img/logo-emblem.png, logo-wordmark.png). */
.nav-logo, .footer-logo { display: inline-flex; flex-direction: row; align-items: center; gap: .6rem; text-decoration: none; }
.logo-emblem { height: 44px; width: auto; display: block; }
.logo-word { height: 32px; width: auto; display: block; }

/* Landing: the free check is the first thing on screen, centred. */
.landing { min-height: calc(100vh - 84px); min-height: calc(100svh - 84px); display: grid; place-items: center; padding-block: 2.5rem; }
.landing-inner { width: min(100%, 36rem); text-align: center; }
.landing h1 { margin: 0 0 .75rem; color: var(--display); }
.landing .lede { margin-inline: auto; }
.landing .check-form { margin: 1.5rem auto 0; text-align: left; }
.landing-alt { margin-top: 1.25rem; color: var(--text-secondary); }
.hero-grid-wrap { padding-block: 2rem 2.5rem; }
.hero-grid-wrap h2 { margin: 0 0 1rem; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--display); }

/* Report: score cards with bars, and findings as a clean list (check.js). */
.report-domain { margin: 0 0 1.25rem; font-family: var(--font-display); font-size: 1.4rem; color: var(--display); }
.score-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin-bottom: 2rem; }
.score { background: var(--surface); border: 1px solid var(--border-subtle); padding: 1rem 1.1rem; }
.score__label { margin: 0; font-size: .875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); }
.score__value { margin: .25rem 0 .6rem; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--text-primary); }
.score__value small { font-size: .9rem; font-family: var(--font-body); color: var(--text-secondary); }
.score__bar { height: .45rem; background: var(--border-subtle); border-radius: 999px; overflow: hidden; }
.score__fill { height: 100%; background: var(--link-primary); border-radius: 999px; }
.findings-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .75rem; }
.findings-list li { background: var(--surface); border-left: 3px solid var(--link-primary); padding: .75rem 1rem; }
.findings-list .finding__title { margin: 0; font-weight: 600; color: var(--text-primary); }
.findings-list .finding__detail { margin: .2rem 0 0; font-size: .9rem; color: var(--text-secondary); }

/* Report tabs (Mobile is the default) and the AI Readiness section (check.js). */
.tablist { display: inline-flex; gap: .25rem; padding: .25rem; background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius); margin-bottom: 1.25rem; }
.tab { min-height: 44px; min-width: 6rem; padding: .5rem 1.1rem; border: 0; border-radius: var(--radius); background: transparent; color: var(--text-secondary); font: inherit; font-weight: 600; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--button-primary); color: var(--text-on-color); }
.tab:hover { text-decoration: underline; }
.tabpanel[hidden] { display: none; }
.ai-readiness { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); }
.ai-readiness h2 { margin: 0 0 .5rem; color: var(--display); }
.ai-readiness .score-grid { margin-top: 1rem; grid-template-columns: minmax(10rem, 16rem); }
.report-tabs h3 { margin-top: 1.5rem; color: var(--display); }
.check-status .lede { color: var(--display); }
.nav-logo, .footer-logo, .logo-main { color: var(--display); }

/* Account menu (avatar and dropdown) and My Account (account-menu.js, account.js). */
.account-menu { position: relative; }
.avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--border-subtle); background: var(--button-primary); color: var(--text-on-color); font: inherit; font-weight: 700; cursor: pointer; }
.account-menu__list { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 12rem; margin: 0; padding: .35rem; list-style: none; background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius); z-index: 20; }
.account-menu__list[hidden] { display: none; }
.account-menu__list a, .account-menu__list button { display: block; width: 100%; min-height: 44px; padding: .5rem .75rem; text-align: left; background: transparent; border: 0; color: var(--text-primary); font: inherit; text-decoration: none; cursor: pointer; }
.account-menu__list a:hover, .account-menu__list button:hover { background: var(--background); text-decoration: underline; }
/* Groups in the account menu: a thin rule between groups, and the current page highlighted. */
.account-menu__sep { height: 1px; margin: .35rem .5rem; background: var(--border-subtle); list-style: none; }
.account-menu__list [aria-current="page"] { background: var(--tint-soft); color: var(--display); font-weight: 600; }
.account { max-width: 40rem; padding-block: 2rem; }
.account-card { margin-top: 1.25rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border-subtle); }
.account-card h2 { margin: 0 0 .5rem; color: var(--display); font-size: 1.3rem; }
.qr { width: 14rem; max-width: 100%; margin: 1rem 0; background: var(--background); padding: .5rem; }
.qr svg { width: 100%; height: auto; display: block; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; padding: .5rem; background: var(--background); border: 1px solid var(--border-subtle); }
.secret[hidden] { display: none; }

/* Headings use the display green on every page (same as the home page). */
h1, h2, h3 { color: var(--display); }


/* Manage businesses: set apart from the everyday items of the account menu by a rule and a smaller label (account-menu.js). */
.account-menu__manage { border-top: 1px solid var(--border-subtle); margin-top: .35rem; padding-top: .35rem; }
.account-menu__manage a { font-size: .8125rem; color: var(--display); font-weight: 600; }

/* Dashboard and sign-in pages (body.db-page): a compact footer, the same on both. */
body.db-page .footer-inner { display: none; }
body.db-page .footer-copy { margin: 0; }
body.db-page .footer-copy { color: var(--display); }
body.db-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body.db-page > [data-db-body] { flex: 1 0 auto; }
body.db-page .app-footer { margin-top: auto; }

/* Services and checkout (ADR 0047). Tokens only. */
.shop { margin-block: 2rem; }
.shop .lede { max-width: 42rem; color: var(--text-secondary); }
.shop-list { display: grid; gap: var(--space); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-block: 1.5rem; }
.shop-item { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: var(--space); display: grid; gap: .5rem; align-content: start; }
.shop-item__name { margin: 0; font-size: 1.15rem; }
.shop-item__desc { margin: 0; }
.shop-variation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .5rem; border-top: 1px solid var(--border-subtle); }
.shop-variation__label { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.shop-variation__price { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--display); }
.shop-panel { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: var(--space); max-width: 32rem; display: grid; gap: 1rem; }
.shop-panel h2 { margin: 0; }
.shop-summary { width: 100%; border-collapse: collapse; }
.shop-summary td { padding: .3rem 0; }
.shop-summary td.num { text-align: end; font-variant-numeric: tabular-nums; }
.shop-summary tr.total td { font-weight: 600; border-top: 1px solid var(--border-subtle); padding-top: .5rem; }
.shop-card { min-height: 90px; }
.shop-ts { min-height: 0; }
.shop .error { color: var(--error); }
.shop .done { color: var(--link-primary); font-weight: 600; }
.shop .btn[hidden] { display: none; }

/* Home: the free check as the hero, the speed case, an example report and the packages (EN and FR). Tokens only. */
.check-hero { margin-block: 2rem 3rem; }
.check-hero__inner { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .check-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; } }
.check-hero h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3rem); line-height: 1.1; margin: .25rem 0 1rem; }
.trust-chips { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.trust-chips li { padding: .3rem .75rem; border: 1px solid var(--border-subtle); border-radius: 999px; font-size: .875rem; color: var(--text-secondary); background: var(--surface); }
.check-form { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: var(--space); display: grid; gap: 1rem; }
.check-step { border: 0; margin: 0; padding: 0; display: grid; gap: 1rem; min-width: 0; }
.check-step legend, .consents legend { font-weight: 600; padding: 0; margin-bottom: .25rem; }
.check-step label, .consents label { display: grid; gap: .35rem; font-weight: 600; }
.check-step input { font: inherit; min-height: 44px; padding: .6rem .75rem; border: 1px solid var(--border-subtle); border-radius: var(--radius); background: var(--background); color: var(--text-primary); }
.consents { border: 0; margin: 0; padding: 0; display: grid; gap: .75rem; }
.consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: .6rem; font-weight: 400 !important; }
.consent input[type=checkbox] { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: .15rem; accent-color: var(--button-primary); }
.btn--wide { width: 100%; }
.check-form .form__status--error { color: var(--error); }
.why { margin-block: 3rem; }
.why__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .why__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sample-report { margin: 0; background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: var(--space); }
.sample-report__label { font-size: .85rem; color: var(--text-secondary); margin: 0 0 .75rem; }
.sample-report__scores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.sample-report__scores li { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--border-subtle); padding-top: .5rem; }
.sample-report__scores strong { font-size: 1.75rem; font-variant-numeric: tabular-nums; color: var(--display); }
.sample-report__next { margin: 1rem 0 0; }
.plans { margin-block: 3rem; }
.plans__grid { display: grid; gap: var(--space); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 1.5rem; }
.plan { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: var(--space); display: grid; gap: .75rem; align-content: start; position: relative; }
.plan h3 { margin: 0; }
.plan__price { margin: 0; color: var(--display); }
.plan__price span { color: var(--text-secondary); font-size: .9rem; }
.plan ul { margin: 0; padding-inline-start: 1.1rem; }
.plan--featured { border: 2px solid var(--button-primary); }
.plan__badge { position: absolute; top: -.7rem; inset-inline-start: var(--space); margin: 0; padding: .15rem .6rem; border-radius: 999px; background: var(--button-primary); color: var(--text-on-color); font-size: .8rem; font-weight: 600; }

/* One landing page with anchors: the section bar, the steps, the billing switch and the FAQ (EN and FR). Tokens only. */
.anchor-bar { position: sticky; top: var(--nav-height, 4.5rem); z-index: 5; background: var(--background); border-bottom: 1px solid var(--border-subtle); margin-inline: calc(-1 * var(--space)); padding-inline: var(--space); }
.anchor-bar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; overflow-x: auto; scrollbar-width: none; }
.anchor-bar a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .15rem; color: var(--text-secondary); text-decoration: none; white-space: nowrap; font-weight: 600; font-size: .9rem; border-bottom: 3px solid transparent; }
.anchor-bar a:hover { color: var(--display); text-decoration: underline; }
.anchor-bar a[aria-current="true"] { color: var(--display); border-bottom-color: var(--button-primary); }
.anchor-bar a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[id] { scroll-margin-top: 7rem; }
.how, .report-section { margin-block: 3rem; }
.how h2 { margin-bottom: 1.25rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: none; }
.steps li { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: var(--space); display: grid; gap: .5rem; align-content: start; }
.steps h3 { margin: 0; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--text-secondary); }
.steps__num { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--button-primary); color: var(--text-on-color); font-weight: 600; }
.billing { display: inline-flex; gap: .25rem; padding: .25rem; border: 1px solid var(--border-subtle); border-radius: 999px; margin: 1rem 0 0; background: var(--surface); flex-wrap: wrap; }
.billing__btn { font: inherit; min-height: 44px; padding: .4rem 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--text-secondary); cursor: pointer; font-weight: 600; }
.billing__btn[aria-pressed="true"] { background: var(--button-primary); color: var(--text-on-color); }
.billing__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.billing__save { font-weight: 400; font-size: .8rem; margin-inline-start: .25rem; }
.plan__per { color: var(--text-secondary); font-size: .9rem; }
.suite { margin-block: 3rem; }
.suite__hero { margin-bottom: 2rem; }
.faq { margin-block: 3rem; max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--border-subtle); padding-block: .75rem; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; color: var(--display); }
.faq details p { margin: .25rem 0 0; color: var(--text-secondary); }
@media (prefers-reduced-motion: reduce) { .anchor-bar a { transition: none; } }

/* The services cart (EN and FR). Tokens only. */
.cart-bar { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-inline: calc(-1 * var(--space)); padding: .75rem var(--space); background: var(--surface); border-top: 1px solid var(--border-subtle); }
.cart-bar__text { margin: 0; font-weight: 600; color: var(--display); }
.cart-bar__sum { font-weight: 400; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.cart-bar .btn { min-height: 44px; width: auto; }
.cart { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: var(--space); max-width: 40rem; display: grid; gap: 1rem; margin-block: 1.5rem; }
.cart:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.cart h2 { margin: 0; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.cart-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border-subtle); }
.cart-line__text { flex: 1 1 12rem; min-width: 0; }
.cart-line__unit { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.cart-line__qty { display: inline-flex; align-items: center; gap: .25rem; }
.cart-line__count { min-width: 2rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-btn { min-height: 44px; min-width: 44px; padding: 0 .6rem; }
.cart-line__remove { color: var(--link-primary); }

/* The brand: the emblem (icon) and the wordmark (text) from the two PNG files, in the header and the footer. */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
/* The emblem is the same size everywhere: 48 px tall (the height of the dashboard's business picker), on every screen. */
.brand__emblem { width: 4.25rem; height: auto; flex: none; }
/* The wordmark is 36 px tall: about three quarters of the emblem's 48 px, so the two read as one lockup. Same in the footer. */
.brand__wordmark { height: 2.25rem; width: auto; }

/* The brand reveal (once per session, see header.html): the emblem draws in, then the wordmark follows. About 0.65 s. */
@media (prefers-reduced-motion: no-preference) {
  .brand-reveal .brand__emblem { animation: brand-emblem .5s ease-out both; }
  .brand-reveal .brand__wordmark { animation: brand-wordmark .4s ease-out .25s both; }
}
@keyframes brand-emblem { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes brand-wordmark { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* The emblem sits in the same place on the home page and in the dashboard: in the margin to the left of the navigation bar's
   content column, so the business picker (dashboard) and the wordmark (home) start on the side menu's left edge.
   Wide screens only; narrower screens keep the emblem inline, and the dashboard stacks it above the picker. */
@media (min-width: 1280px) {
  .app-nav .nav-logo.brand { position: relative; min-width: 0; align-self: stretch; display: flex; align-items: center; }
  /* The emblem is not capped by the logo box (the global image rule caps images at their container's width). */
  .app-nav .brand__emblem { position: absolute; top: 50%; right: calc(100% + .5rem); transform: translateY(-50%); max-width: none; }
  /* With the business picker in the bar, the picker starts exactly at the side menu's left edge: no gap after the logo. */
  body.db-branded .app-nav .nav-inner:has([data-db-business-holder]) { column-gap: 0; }
}
@media (max-width: 1279px) {
  body.db-branded .app-nav .nav-inner:has([data-db-business-holder]) { flex-wrap: wrap; }
  /* On narrow screens the dashboard shows no emblem: the business picker starts at the left edge, aligned with the side menu. */
  body.db-branded .app-nav .nav-logo.brand { display: none; }
}

/* The language switch (signed out): two square buttons, FR and EN, beside the theme toggle. The current language is filled.
   Signed in, the account menu offers the other language instead. */
.lang-switcher { display: inline-flex; align-items: stretch; }
.lang-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; padding: 0 .5rem; border: 1px solid var(--border-subtle); color: var(--text-secondary); background: none; text-decoration: none; font-size: .75rem; font-weight: 600; letter-spacing: .08em; }
.lang-btn { text-transform: uppercase; }
.lang-btn:hover { color: var(--text-primary); border-color: var(--text-primary); }
.lang-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* The account page: a small label above the title, grouped card, roomier fields with a clear focus, and a footer for sign-out. */
.account__eyebrow { margin: 0 0 .25rem; font: 600 .75rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.account-card { padding: 1.5rem; border-radius: var(--radius); }
.account-card h2 { font-size: 1.25rem; }
.account .form { margin-block: 1rem 0; }
.account .form label { font-size: .9375rem; color: var(--display); }
.account .form input { min-height: 48px; background: var(--background); border: 1px solid var(--border); }
.account .form input:hover { border-color: var(--display); }
.account .form input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* The business choice on the assistant consent page: a radio beside its name, 48px rows (the form stacks labels otherwise). */
.form .connect__choice { display: flex; align-items: center; gap: .75rem; min-height: 48px; font-weight: 400; cursor: pointer; }
.form .connect__choice input[type=radio] { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; accent-color: var(--button-primary); }
.form .connect__choice--off { opacity: .6; cursor: not-allowed; }
.form__hint { margin: 0; font-size: .8125rem; font-weight: 400; color: var(--text-secondary); }
.account__footer { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border-subtle); display: flex; justify-content: flex-end; }
@media (max-width: 640px) {
  .account .btn, .account__footer .btn { width: 100%; }
}

/* Signed in, the language switch leaves the header: the account menu has it. A hidden switch must stay hidden. */
.lang-switcher[hidden] { display: none; }
.theme-toggle[hidden] { display: none; }

/* The dashboard: the language switch lives in the avatar menu (header and mobile menu hide it). */
body.db-dashboard .lang-switcher { display: none; }

/* The assistant consent page (ADR 0063): the sign-in and approval typography. The scale is 12, 14, 16, 18, 24, 32 px. */
.connect { max-width: 40rem; padding-block: 2rem 3rem; }
.connect__eyebrow { margin: 0 0 var(--cds-spacing-02); font: 600 .75rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.connect h1 { margin: 0 0 var(--cds-spacing-04); font: 600 2rem/1.2 var(--font-display); color: var(--display); }
.connect > p { font-size: 1rem; line-height: 1.6; color: var(--text-secondary); }
.connect .account-card { margin-top: 1.5rem; padding: 1.5rem; display: grid; gap: .75rem; }
.connect .account-card h2 { margin: 0; font: 600 1.5rem/1.25 var(--font-display); color: var(--display); }
.connect__label { margin: 0; font: 600 .875rem/1.4 var(--font-body); color: var(--text-secondary); }
.connect__scopes { margin: 0; padding-left: 1.25rem; font-size: 1rem; line-height: 1.6; color: var(--text-primary); }
.connect__group { margin: 0; padding: 0; border: 0; display: grid; gap: .5rem; }
.connect__group legend { margin: 0 0 .5rem; padding: 0; font: 600 1rem/1.4 var(--font-body); color: var(--display); }
.form .connect__choice { font-size: 1rem; font-weight: 400; }
.connect__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; margin-top: .5rem; }
.connect .form__hint { font-size: .875rem; color: var(--text-secondary); }
@media (max-width: 36rem) { .connect h1 { font-size: 1.5rem; } .connect__actions > * { flex: 1 1 auto; min-height: 44px; } }

/* After a successful sign-in the page shows only this status until the dashboard opens (auth.js leaving). */
.auth-leaving { display: flex; align-items: center; gap: .5rem; min-height: 48px; margin: 2rem 0; font: 600 1rem/1.4 var(--font-body); color: var(--display); }
