/* TAURUS 360 public site — charte graphique v2 (wip/refonte_site).
   Light and editorial: page #F7F7F7, white surfaces, graphite text. Few elements, each with a job: one message
   and one action per screen, the product as the proof. The warm accents of the infinity mark (champagne, peach,
   orange) only point at something: the active page, a step, the frame of the product. Data keeps its own
   colours (gain blue, loss orange-red), never the brand orange. One graphite surface per page at most, for the
   element that must dominate (a key figure, the closing call to action). */

@font-face { font-family: "Instrument Sans"; src: url(/site/fonts/instrument-sans-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; src: url(/site/fonts/instrument-sans-latin-ext.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    color-scheme: light;
    /* Surfaces and text */
    --surface-0: #f7f7f7;
    --surface-1: #ffffff;
    --surface-2: #f0f0f0;
    --line: #e7e7e7;
    --line-strong: #8e9297;
    --ink: #171717;
    --ink-muted: #686c71;
    --faint: #74787d;
    /* Brand accents (infinity mark). --accent-ink is the orange that reads on light surfaces. */
    --champagne: #e0d0b0;
    --peche: #f0c090;
    --orange-doux: #fbaa6f;
    --accent: #f0a050;
    --accent-ink: #a65a12;
    --accent-soft: #fdf1e4;
    --halo: linear-gradient(120deg, var(--champagne), var(--peche) 40%, var(--orange-doux) 70%, var(--accent));
    /* Action: graphite buttons */
    --action: #171717;
    --action-hover: #3a3a3a;
    --on-action: #ffffff;
    /* Graphite surface (the dominant element of a page) */
    --nuit: #171717;
    --nuit-2: #2a2a2a;
    --nuit-line: #3a3a3a;
    --on-nuit: #f5f5f5;
    --on-nuit-muted: #a9adb2;
    --sky: #f0a050;
    /* Data, never the brand colour */
    --gain: #1f5fd6;
    --gain-soft: #e3ecfd;
    --perte: #b3441a;
    --perte-soft: #fbeae2;
    --vigilance: #8a6100;
    --vigilance-soft: #fbf1d9;
    --focus: #171717;
    --data-1: #2450c8;
    --data-prior: #a3abb5;

    --font-sans: "Instrument Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --gutter: clamp(16px, 4vw, 40px);
    --band: clamp(72px, 11vw, 144px);
    --header: 64px;
}

/* Dark palette: the system preference, unless the visitor chose light; or the visitor's
   choice (button in the header, shared with the Hub through localStorage og-hub.theme). */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --surface-0: #0e0e0f;
        --surface-1: #161618;
        --surface-2: #1f1f22;
        --line: #2a2a2e;
        --line-strong: #6a6e74;
        --ink: #f2f2f2;
        --ink-muted: #a4a8ad;
        --faint: #8b8f94;
        --accent-ink: #f0a050;
        --accent-soft: #2b1f12;
        --action: #f2f2f2;
        --action-hover: #d6d6d6;
        --on-action: #171717;
        --nuit: #232326;
        --nuit-2: #2e2e32;
        --nuit-line: #3a3a3f;
        --gain: #6fa8ff;
        --gain-soft: #14294f;
        --perte: #ff9b6e;
        --perte-soft: #3d2016;
        --vigilance: #f0c35a;
        --vigilance-soft: #3a2e0e;
        --focus: #f2f2f2;
        --data-1: #7ea0ff;
        --data-prior: #5d6470;
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --surface-0: #0e0e0f;
    --surface-1: #161618;
    --surface-2: #1f1f22;
    --line: #2a2a2e;
    --line-strong: #6a6e74;
    --ink: #f2f2f2;
    --ink-muted: #a4a8ad;
    --faint: #8b8f94;
    --accent-ink: #f0a050;
    --accent-soft: #2b1f12;
    --action: #f2f2f2;
    --action-hover: #d6d6d6;
    --on-action: #171717;
    --nuit: #232326;
    --nuit-2: #2e2e32;
    --nuit-line: #3a3a3f;
    --gain: #6fa8ff;
    --gain-soft: #14294f;
    --perte: #ff9b6e;
    --perte-soft: #3d2016;
    --vigilance: #f0c35a;
    --vigilance-soft: #3a2e0e;
    --focus: #f2f2f2;
    --data-1: #7ea0ff;
    --data-prior: #5d6470;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
    margin: 0; background: var(--surface-0); color: var(--ink);
    font: 400 17px/1.6 var(--font-sans); font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2, .display { font-weight: 600; letter-spacing: -.035em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; }
h3 { font: 600 1.1rem/1.4 var(--font-sans); letter-spacing: -.01em; }
h4 { font: 600 1rem/1.45 var(--font-sans); }
p { margin: 0; }
p + p { margin-top: .8em; }
ul, ol { margin: 0; padding: 0; }
strong, b { font-weight: 600; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface-1); padding: 8px 14px; border-radius: var(--radius-md); }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.muted { color: var(--ink-muted); }
.center { text-align: center; }
.center .lead, .center > p { margin-left: auto; margin-right: auto; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--ink-muted); max-width: 40em; }
/* Section label: where the reader is. A small orange dot, nothing more. */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 .82rem/1.3 var(--font-sans); letter-spacing: .02em; color: var(--ink-muted); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.hl { color: inherit; }
.stack > * + * { margin-top: 16px; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { margin-top: 16px; }
.section-head h2 { max-width: 24ch; }
.section-head.center h2 { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------------ buttons */

.btn {
    --h: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
    font: 500 15px/1.2 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap; max-width: 100%;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--lg { --h: 50px; padding: 0 26px; font-size: 16px; }
@media (max-width: 520px) { .btn { white-space: normal; text-align: center; padding-top: 8px; padding-bottom: 8px; } }
.btn--primary { background: var(--action); color: var(--on-action); }
.btn--primary:hover { background: var(--action-hover); color: var(--on-action); }
.btn--secondary { background: var(--surface-1); color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost { background: none; color: var(--ink); padding: 0 6px; }
.btn--ghost:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.btn--on-nuit { background: none; color: var(--on-nuit); border-color: var(--nuit-line); }
.btn--on-nuit:hover { background: var(--nuit-2); color: var(--on-nuit); }
.panel--nuit .btn--on-nuit, .band--nuit .btn--primary { background: var(--surface-1); color: var(--ink); border-color: transparent; }
.btn .i { transition: transform .15s ease; }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.center .actions { justify-content: center; }
.cta-line { margin-top: clamp(32px, 4vw, 48px); display: flex; justify-content: center; }
.cta-line .btn { white-space: normal; text-align: center; }

/* ------------------------------------------------------------------ header */

.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface-0) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-bar { display: flex; align-items: center; gap: 28px; min-height: var(--header); }
.top-logo { display: flex; }
.top-logo img { height: 17px; width: auto; }
.top-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex: 1; }
.top-nav ul { display: flex; gap: 2px; list-style: none; }
.top-nav ul a { position: relative; display: block; padding: 8px 12px; color: var(--ink-muted); text-decoration: none; font-size: 15px; }
.top-nav ul a:hover { color: var(--ink); }
.top-nav ul a[aria-current] { color: var(--ink); }
/* The current page: one orange dot under its name. */
.top-nav ul a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 6px; }
.top-actions .btn { --h: 38px; padding: 0 16px; font-size: 14.5px; }
.top-actions .btn--on-nuit { color: var(--ink); border-color: transparent; }
.top-actions .btn--on-nuit:hover { background: none; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.lang { color: var(--ink-muted); text-decoration: none; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; padding: 8px; }
.lang:hover { color: var(--ink); }
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-muted); cursor: pointer; }
.theme-toggle:hover { color: var(--ink); background: var(--surface-2); }
.theme-toggle .i { width: 18px; height: 18px; }
/* The button shows the theme it switches to. */
.theme-toggle .theme-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-sun { display: block; } :root:not([data-theme="light"]) .theme-moon { display: none; } }
:root[data-theme="dark"] .theme-sun { display: block; } :root[data-theme="dark"] .theme-moon { display: none; }
.menu-toggle, .menu-button { display: none; }

@media (max-width: 1080px) {
    .top-bar { flex-wrap: wrap; justify-content: space-between; }
    .menu-button { display: inline-flex; margin-left: auto; padding: 10px; color: var(--ink); cursor: pointer; border-radius: 50%; }
    .menu-button .i { width: 24px; height: 24px; }
    .top-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 20px; }
    .menu-toggle:checked ~ .top-nav { display: flex; }
    .top-nav ul { flex-direction: column; }
    .top-nav ul a { padding: 12px 4px; font-size: 17px; }
    .top-nav ul a[aria-current]::after { left: auto; right: 8px; top: 50%; bottom: auto; margin: -2px 0 0; }
    .top-actions { flex-wrap: wrap; }
    .top-actions .btn { flex: 1; }
}

/* ------------------------------------------------------------------ bands */

.band { padding: var(--band) 0; }
.band--raised { background: var(--surface-1); }
.band--tight { padding: clamp(40px, 6vw, 64px) 0; }
.band:not(.band--raised):not(.band--nuit) + .band:not(.band--raised):not(.band--nuit) { padding-top: 0; }
.band--nuit { background: var(--nuit); color: var(--on-nuit); }
.band--nuit h1, .band--nuit h2, .band--nuit h3 { color: var(--on-nuit); }
.band--nuit .lead, .band--nuit .muted { color: var(--on-nuit-muted); }
.band--nuit .eyebrow { color: var(--on-nuit-muted); }
.band--nuit a:not(.btn) { color: var(--on-nuit); text-decoration-color: var(--accent); }
.band--nuit .checks .i, .panel--nuit .checks .i { color: var(--accent); }

/* Page heads: the title first, nothing around it. */
.page-head { padding: clamp(64px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); }
.page-head h1 { max-width: 18ch; }
.page-head.center h1 { margin: 0 auto; }
.page-head .lead { margin-top: 22px; }

/* ------------------------------------------------------------------ hero (home) */
/* One promise, one action, then the product. */

.hero { padding: clamp(64px, 10vw, 136px) 0 0; text-align: center; }
.hero h1 { max-width: 26ch; margin: 0 auto; }
.hero .lead { margin: 24px auto 0; max-width: 34em; }
.hero .actions { justify-content: center; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--faint); }

/* The product window: the only place where the infinity palette shows as a whole, as a thin frame. */
.window { position: relative; margin: clamp(48px, 7vw, 88px) auto 0; max-width: 1080px; padding: 1px; border-radius: var(--radius-xl); background: var(--halo); box-shadow: 0 40px 80px -48px rgba(166, 90, 18, .35); }
.window-inner { border-radius: calc(var(--radius-xl) - 1px); background: var(--surface-1); padding: clamp(6px, 1vw, 10px); }
.window .video, .window .shot { border-radius: calc(var(--radius-xl) - 8px); border: 0; }

.trust { display: grid; gap: 24px; justify-items: center; padding: clamp(48px, 6vw, 72px) 0 0; }
.trust-label { font-size: 14px; color: var(--faint); }

/* ------------------------------------------------------------------ key figures */
/* Three numbers, separated by space and a hairline. The figure is the graphic. */

.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.figure-stat { display: grid; align-content: start; gap: 8px; padding: 32px clamp(20px, 3vw, 40px) 0; border-left: 1px solid var(--line); }
.figure-stat:first-child { border-left: 0; padding-left: 0; }
.fig-value { font: 600 clamp(2.6rem, 5vw, 3.8rem)/1 var(--font-sans); letter-spacing: -.045em; color: var(--ink); }
.fig-value small { font-size: .45em; font-weight: 500; letter-spacing: -.01em; color: var(--ink-muted); margin-left: 4px; }
.fig-label { color: var(--ink); font-weight: 500; }
.fig-note { color: var(--faint); font-size: 14px; }
@media (max-width: 820px) {
    .figures { grid-template-columns: 1fr; }
    .figure-stat, .figure-stat:first-child { border-left: 0; padding: 28px 0; }
    .figure-stat + .figure-stat { border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------------ product tour (home) */
/* Three steps of a real path in the product: the list on the left chooses the screen on the right.
   Without script, the three screens follow each other. */

.tour { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.tour-steps { list-style: none; display: grid; counter-reset: tour; }
.tour-steps li { counter-increment: tour; }
.tour-steps button { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 14px; width: 100%; padding: 20px 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink-muted); font: inherit; text-align: left; cursor: pointer; }
.tour-steps li:last-child button { border-bottom: 1px solid var(--line); }
.tour-steps button::before { content: counter(tour); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; }
.tour-steps strong { color: var(--ink); font-weight: 600; }
.tour-steps span { font-size: 15px; }
.tour-steps button:hover strong { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.tour-steps button[aria-selected="true"]::before { background: var(--accent); border-color: var(--accent); color: #171717; }
.tour-screens { display: grid; gap: 20px; min-width: 0; }
.frame { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-0); }
.window .ui-app { border-radius: calc(var(--radius-xl) - 8px); }
.tour.is-live .tour-screens figure:not(.is-shown) { display: none; }
.tour:not(.is-live) .tour-steps { display: none; }
.tour:not(.is-live) { grid-template-columns: 1fr; }
@media (max-width: 900px) { .tour { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ product views (Hub components) */
/* The product is shown with the Hub's own pieces, rebuilt in HTML and SVG with the demo Place's figures
   (Finance Apps, December 2022): an App report (header, KPI strip, cards), the graphite KPI tile with its
   sparkline, the statement table, the score ring and meters, the object cards of a Place. Charts are static
   SVG from build.py ({{chart ...}}); they draw in once when their block scrolls into view. */

.ui { font-size: 13px; line-height: 1.4; color: var(--ink); text-align: left; font-variant-numeric: tabular-nums; }
.ui-app { display: grid; gap: 12px; padding: clamp(14px, 2vw, 22px); background: var(--surface-0); border-radius: calc(var(--radius-xl) - 8px); }
.ui-app-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; padding: 2px 4px 6px; }
.ui-crumb { font-size: 11px; color: var(--faint); }
.ui-title { font-size: clamp(18px, 2vw, 24px); font-weight: 600; letter-spacing: -.03em; margin-top: 2px; }
.ui-sub { font-size: 12px; color: var(--ink-muted); }
.ui-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-1); font-size: 11.5px; }
.ui-seg span { padding: 4px 10px; border-radius: 999px; color: var(--ink-muted); }
.ui-seg span[aria-current] { background: var(--surface-2); color: var(--ink); font-weight: 500; }

.ui-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.ui-card h4 { font: 600 13px/1.3 var(--font-sans); margin-bottom: 10px; }
.ui-grid2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; }
.ui-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ui-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.ui-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; }
.ui-kpi { display: grid; gap: 3px; padding: 12px 16px; border-left: 1px solid var(--line); min-width: 0; }
.ui-kpi:first-child { border-left: 0; }
.ui-label { font-size: 12px; color: var(--ink-muted); }
.ui-value { font-size: clamp(17px, 1.8vw, 22px); font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.ui-vs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; color: var(--faint); }
.ui-delta { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.ui-delta--good { background: var(--gain-soft); color: var(--gain); }
.ui-delta--bad { background: var(--perte-soft); color: var(--perte); }
.ui-delta--good::before { content: "▲"; font-size: 8px; }
.ui-delta--bad::before { content: "▼"; font-size: 8px; }

.ui-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ui-table th, .ui-table td { padding: 7px 6px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.ui-table thead th { font-weight: 500; font-size: 11px; color: var(--faint); background: var(--surface-2); }
.ui-table thead th:first-child { border-radius: 8px 0 0 0; } .ui-table thead th:last-child { border-radius: 0 8px 0 0; }
.ui-table th[scope="row"], .ui-table thead th:first-child { text-align: left; font-weight: 400; color: var(--ink); }
.ui-table thead th:first-child { color: var(--faint); }
.ui-table td.prior { color: var(--faint); }
.ui-table tr.strong th, .ui-table tr.strong td { font-weight: 600; background: var(--surface-0); }
.ui-table tr:last-child th, .ui-table tr:last-child td { border-bottom: 0; }
.ui-table .good { color: var(--gain); } .ui-table .bad { color: var(--perte); }
.ui-scroll { overflow-x: auto; }

.ui-score { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; }
.ui-ring-box { position: relative; width: 112px; }
.ui-ring { display: block; width: 100%; transform: rotate(-90deg); }
.ui-ring circle { fill: none; stroke-width: 11; }
.ui-ring-track { stroke: var(--surface-2); }
.ui-ring-arc { stroke: var(--ink); stroke-linecap: butt; transition: stroke-dasharray 1.2s cubic-bezier(.3, .6, .2, 1); }
.ui-ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ui-ring-center strong { font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.ui-ring-center span { font-size: 11px; color: var(--ink-muted); }
.ui-meters { display: grid; gap: 10px; }
.ui-meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; font-size: 12px; }
.ui-meter b { font-weight: 600; }
.ui-meter i { grid-column: 1 / -1; display: block; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.ui-meter i::after { content: ""; display: block; height: 100%; width: var(--v); background: var(--data-1); border-radius: 2px; transform-origin: left; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.ui-meter.bad i::after { background: var(--perte); }

/* The graphite KPI tile of an App card, with its sparkline. */
.ui-tile { display: grid; align-content: start; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #171717; color: #f5f5f5; min-width: 0; }
.ui-tile .ui-label { color: #c9ccd0; }
.ui-tile .ui-value { font-size: clamp(20px, 2.2vw, 26px); }
.ui-tile .ui-vs { color: #a9adb2; }
.ui-tile .ui-delta { background: none; padding: 0; color: #7ea0ff; }
.ui-tile .ui-delta--bad { color: #ff9b6e; }
.ui-tile .ui-spark { margin-top: 8px; }
:root[data-theme="dark"] .ui-tile { background: #26262a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ui-tile { background: #26262a; } }

.ui-spark { display: block; width: 100%; height: auto; overflow: visible; }
.ui-spark-area { fill: color-mix(in srgb, #7ea0ff 22%, transparent); }
.ui-spark-line { fill: none; stroke: #7ea0ff; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ui-spark-dot { fill: #7ea0ff; stroke: #171717; stroke-width: 1.5; }
.ui-card .ui-spark-area { fill: color-mix(in srgb, var(--data-1) 12%, transparent); }
.ui-card .ui-spark-line { stroke: var(--data-1); }
.ui-card .ui-spark-dot { fill: var(--data-1); stroke: var(--surface-1); }

.ui-line, .ui-bars { display: block; width: 100%; height: auto; overflow: visible; }
.ui-grid { stroke: var(--line); stroke-width: 1; }
.ui-axis { font: 400 8px var(--font-sans); fill: var(--faint); }
.ui-line-prior { fill: none; stroke: var(--data-prior); stroke-width: 1.4; stroke-linejoin: round; }
.ui-line-area { fill: color-mix(in srgb, var(--data-1) 10%, transparent); }
.ui-line-n { fill: none; stroke: var(--data-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ui-line .ui-spark-dot { fill: var(--data-1); stroke: var(--surface-1); }
.ui-bar { fill: var(--data-1); transform-box: fill-box; transform-origin: bottom; transition: transform .7s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 40ms); }
.ui-legend { display: flex; gap: 14px; margin-top: 8px; font-size: 11px; color: var(--ink-muted); }
.ui-legend span::before { content: ""; display: inline-block; width: 10px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--data-1); }
.ui-legend span + span::before { background: var(--data-prior); }

.ui-gauge { display: block; width: 100%; max-width: 116px; margin: 0 auto; }
.ui-gauge-track, .ui-gauge-arc { fill: none; stroke-width: 10; stroke-linecap: round; }
.ui-gauge-track { stroke: var(--surface-2); }
.ui-gauge-arc { stroke: var(--data-1); stroke-dasharray: 1; stroke-dashoffset: 0; }
.ui-gauge-dot { fill: var(--surface-1); stroke: var(--data-1); stroke-width: 3; }
.ui-gauge-box { position: relative; }
.ui-gauge-box .ui-ring-center strong { font-size: 17px; }

/* An object of a Place: a live App card (tile and chart) and its name. */
.ui-object { display: grid; gap: 10px; padding: 10px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 16px; }
.ui-object-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 8px; }
.ui-object-body .ui-card { padding: 10px 12px; border-radius: 12px; }
.ui-object-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 2px; }
.ui-object-foot small { display: block; font-size: 11px; color: var(--faint); }
.ui-object-foot strong { font-size: 14px; font-weight: 600; }
.ui-open { padding: 5px 12px; border-radius: 999px; background: var(--action); color: var(--on-action); font-size: 11.5px; font-weight: 500; }

.ui-potential { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.ui-potential--line { background: var(--surface-1); border: 1px solid var(--line-strong); }
.ui-note { font-size: 12.5px; color: var(--ink-muted); }
.ui-note b { color: var(--ink); }
.ui-list { list-style: none; display: grid; gap: 8px; font-size: 12.5px; }
.ui-list li { position: relative; padding-left: 14px; color: var(--ink-muted); }
.ui-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.ui-list b { color: var(--ink); }

/* Draw-in, once, when the block enters the view (site.js arms it only below the fold). */
.reveal.is-armed:not(.is-in) .ui-spark-line, .reveal.is-armed:not(.is-in) .ui-line-n { stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal.is-armed .ui-spark-line, .reveal.is-armed .ui-line-n { stroke-dasharray: 1; transition: stroke-dashoffset 1.4s ease-out .2s; }
.reveal.is-armed:not(.is-in) .ui-bar { transform: scaleY(0); }
.reveal.is-armed:not(.is-in) .ui-meter i::after { transform: scaleX(0); }
.reveal.is-armed:not(.is-in) .ui-ring-arc { stroke-dasharray: 0 100; }
.reveal.is-armed .ui-gauge-arc { transition: stroke-dashoffset 1.2s ease-out .2s; }
.reveal.is-armed:not(.is-in) .ui-gauge-arc { stroke-dashoffset: 1; }

/* The views adapt to the room they get (a hero window, half a split, a phone). */
.ui-app, .ui-stack { container-type: inline-size; }
@container (max-width: 760px) {
    .ui-grid2, .ui-grid3 { grid-template-columns: 1fr !important; }
    .ui-kpis, .ui-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ui-kpi:nth-child(3) { border-left: 0; }
    .ui-kpi:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@container (max-width: 520px) {
    .ui-table th:nth-child(4), .ui-table td:nth-child(4) { display: none; }
}
@container (max-width: 420px) {
    .ui-score { grid-template-columns: 1fr; justify-items: center; }
    .ui-score .ui-meters { width: 100%; }
}
@media (max-width: 900px) { .ui-grid3:not(.ui-app *) { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ui-object-body { grid-template-columns: 1fr; } }
.ui-stack { margin: 0; }
.ui-stack .ui-grid3 { grid-template-columns: 1fr; }
.ui-stack .ui-object:nth-child(n + 3) { display: none; }

/* ------------------------------------------------------------------ video (click to load) */

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0e0e0f; }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video button { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; width: 100%; padding: 24px; border: 0; background: linear-gradient(to top, rgba(14, 14, 15, .55), transparent 45%); color: #fff; font: 500 15px/1.3 var(--font-sans); cursor: pointer; }
.video button .play { position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(255, 255, 255, .94); display: grid; place-items: center; transition: transform .2s ease; }
.video button:hover .play { transform: scale(1.06); }
.video button .play .i { width: 26px; height: 26px; fill: #171717; stroke: none; margin-left: 4px; }
.video small { opacity: .75; font-size: 12px; }

/* ------------------------------------------------------------------ grids, panels */

.grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.grid--2 { --cols: 2; }
.grid--3 { --cols: 3; }
.grid--4 { --cols: 4; }
.grid--5 { --cols: 5; }
@media (max-width: 1000px) { .grid--4, .grid--5 { --cols: 2; } .grid--3 { --cols: 2; } }
@media (max-width: 640px) { .grid { --cols: 1 !important; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--wide { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
@media (max-width: 900px) { .split, .split--wide { grid-template-columns: 1fr; } }

.panel { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 32px); min-width: 0; }
.band--raised .panel { background: var(--surface-0); border-color: transparent; }
.panel h3 + p, .panel h3 + ul, .panel h4 + p { margin-top: 8px; }
.panel p { color: var(--ink-muted); }
.panel--accent { border-color: var(--line); box-shadow: inset 0 2px 0 var(--accent); }
.panel--nuit, .band--raised .panel--nuit { background: var(--nuit); border-color: var(--nuit); color: var(--on-nuit); }
.panel--nuit h3, .panel--nuit h4 { color: var(--on-nuit); }
.panel--nuit p, .panel--nuit li { color: var(--on-nuit-muted); }
a.panel { display: block; text-decoration: none; color: inherit; transition: border-color .15s ease; }
a.panel:hover { border-color: var(--line-strong); color: inherit; }
a.panel--nuit:hover { border-color: var(--accent); }
/* Icons stand alone, in line weight, no tile behind them. */
.tile-icon { display: block; color: var(--ink); margin-bottom: 18px; }
.tile-icon .i { width: 24px; height: 24px; }
.panel--nuit .tile-icon { color: var(--accent); }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .tile-icon { margin: 2px 0 0; }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--ink-muted); margin-top: 4px; }

/* Screenshots: posed on a surface, framed by a hairline. */
.shot { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-1); overflow: hidden; }
.shot img, .shot video { width: 100%; }
.shot--pad { padding: clamp(10px, 1.6vw, 18px); }
.shot--pad img { border-radius: var(--radius-md); }
figure { margin: 0; }
figcaption { margin-top: 14px; color: var(--ink-muted); font-size: 15px; }

/* ------------------------------------------------------------------ lists */

.checks, .crosses, .dots { list-style: none; display: grid; gap: 10px; }
.checks li, .crosses li { display: flex; gap: 12px; align-items: flex-start; }
.checks .i { color: var(--accent-ink); margin-top: 2px; }
.crosses .i { color: var(--faint); margin-top: 2px; }
.dots li { position: relative; padding-left: 18px; }
.dots li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 2.2em 0 .7em; }
.prose h3 { margin: 1.8em 0 .5em; }
.prose h4 { margin: 1.4em 0 .4em; }
.prose p, .prose li { color: var(--ink-muted); }
.prose ul { padding-left: 1.2em; margin: .8em 0; display: grid; gap: 6px; }
.prose > :first-child { margin-top: 0; }

/* ------------------------------------------------------------------ figures, KPIs, ring */

.kpi { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; display: grid; gap: 6px; align-content: start; }
.band--raised .kpi { background: var(--surface-0); border-color: transparent; }
.kpi-value { font: 600 clamp(1.9rem, 3.2vw, 2.5rem)/1.05 var(--font-sans); letter-spacing: -.04em; color: var(--ink); }
.kpi-label { color: var(--ink-muted); font-size: 15px; }
.kpi--hero, .band--raised .kpi--hero { background: var(--nuit); border-color: var(--nuit); }
.kpi--hero .kpi-value { color: var(--on-nuit); }
.kpi--hero .kpi-label { color: var(--on-nuit-muted); }
.kpi--gain .kpi-value { color: var(--gain); }
.kpi--perte .kpi-value { color: var(--perte); }
.ring { display: flex; align-items: center; gap: 18px; }
.ring svg { width: 72px; height: 72px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: var(--line); }
.ring .arc { stroke: var(--accent); stroke-linecap: round; }
.kpi--hero .ring .track { stroke: var(--nuit-line); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 12px; border-radius: 999px; font: 500 13px/1.3 var(--font-sans); background: var(--surface-2); color: var(--ink); }
.badge--perte { background: var(--perte-soft); color: var(--perte); }
.badge--gain { background: var(--gain-soft); color: var(--gain); }
.badge--muted { background: var(--surface-2); color: var(--ink-muted); }
.quote { font: 500 clamp(1.2rem, 2vw, 1.5rem)/1.45 var(--font-sans); letter-spacing: -.015em; color: var(--ink); max-width: 36em; }
.quote::before { content: "« "; }
.quote::after { content: " »"; }
:lang(en) .quote::before { content: "“"; }
:lang(en) .quote::after { content: "”"; }
.band--nuit .quote { color: var(--on-nuit); }

/* Numbered steps */
.steps { counter-reset: step; display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); list-style: none; }
.steps > li { counter-increment: step; position: relative; }
.steps > li::before { content: counter(step, decimal-leading-zero); display: block; font: 600 14px/1 var(--font-sans); color: var(--accent-ink); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.steps > li.panel::before { border-bottom: 0; padding-bottom: 0; }
.steps p { color: var(--ink-muted); margin-top: 8px; }
.steps--5 { --cols: 5; }
@media (max-width: 1000px) { .steps, .steps--5 { --cols: 2; } }
@media (max-width: 640px) { .steps, .steps--5 { --cols: 1; } }

/* Before / after */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr); gap: 0; }
.compare-head { display: contents; }
.compare-head > * { padding: 0 0 14px; font-size: 14px; color: var(--faint); border-bottom: 1px solid var(--line-strong); }
.compare-row { display: contents; }
.compare-row > * { padding: 24px 0; border-bottom: 1px solid var(--line); }
.compare .before { color: var(--ink-muted); display: flex; gap: 12px; align-items: center; text-decoration: line-through; text-decoration-color: var(--line-strong); }
.compare .before .i { color: var(--faint); }
.compare .arrow { color: var(--accent-ink); display: grid; place-items: center; padding-left: 24px; padding-right: 24px; }
.compare .after { display: grid; gap: 4px; }
.compare .after strong { font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; }
.compare .after span { color: var(--ink-muted); font-size: 15px; }
@media (max-width: 700px) {
    .compare { grid-template-columns: 1fr; }
    .compare-head > :not(:first-child), .compare .arrow { display: none; }
    .compare-row > .before { border-bottom: 0; padding-bottom: 4px; }
}

/* Customer logos: single-ink silhouettes sized by eye (--h per logo), in colour on hover. */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 72px); }
.logos img { height: var(--h, 38px); width: auto; max-width: none; object-fit: contain; filter: grayscale(1) brightness(0); opacity: .45; transition: filter .2s ease, opacity .2s ease; }
.logos img:hover { filter: none; opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logos img { filter: brightness(0) invert(1); opacity: .55; } :root:not([data-theme="light"]) .logos img:hover { opacity: .95; } }
:root[data-theme="dark"] .logos img { filter: brightness(0) invert(1); opacity: .55; } :root[data-theme="dark"] .logos img:hover { opacity: .95; }
.logo-chip { height: 34px; width: auto; object-fit: contain; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-chip { background: #fff; padding: 6px 10px; border-radius: var(--radius-sm); box-sizing: content-box; } }
:root[data-theme="dark"] .logo-chip { background: #fff; padding: 6px 10px; border-radius: var(--radius-sm); box-sizing: content-box; }

/* Pricing */
.price { display: flex; flex-direction: column; gap: 16px; }
.price h3 { font: 600 .9rem/1.3 var(--font-sans); letter-spacing: .1em; color: var(--ink-muted); }
.price-amount { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; color: var(--ink-muted); font-size: 15px; }
.price-amount strong { font: 600 clamp(2.2rem, 3.6vw, 2.8rem)/1 var(--font-sans); color: var(--ink); letter-spacing: -.045em; }
.price .checks { margin-top: 4px; }
.price--featured, .band--raised .price--featured { border-color: transparent; background: var(--surface-1); box-shadow: 0 0 0 1px var(--accent), 0 30px 60px -40px rgba(166, 90, 18, .45); }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--ink-muted); transition: transform .2s ease; }
.faq details[open] summary .i { transform: rotate(90deg); color: var(--accent-ink); }
.faq .answer { padding: 0 0 24px; color: var(--ink-muted); max-width: 46em; }
.faq .answer ul { padding-left: 1.2em; margin-top: 8px; display: grid; gap: 6px; }

/* Customer cases */
.case { display: grid; gap: clamp(20px, 3vw, 32px); }
.case + .case { margin-top: clamp(72px, 10vw, 128px); }
.case-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.case-head h2 { max-width: 22ch; }
.case-who { margin-top: 12px; color: var(--ink-muted); font-weight: 500; }
.case-quote { border-left: 2px solid var(--accent); padding: 4px 0 4px 22px; }
.case .grid h3 { font-size: 1rem; margin-bottom: 12px; }
.case-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 4px; }
.case-foot .quote { font-size: 1.1rem; }

/* Team */
.person { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; align-items: start; }
.person img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
.person .role { color: var(--ink-muted); font-weight: 500; margin: 2px 0 12px; }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } }

/* Team ring: project lead, experts around the 360 ring, trainer and support. */
.crew { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 40px); align-items: center; }
.crew-role { display: grid; gap: 12px; justify-items: center; text-align: center; }
.crew-dot { width: 104px; height: 104px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); display: grid; place-items: center; font: 600 12.5px/1.25 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; padding: 10px; background: var(--surface-1); }
.crew-core { position: relative; width: min(420px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.crew-core > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.crew-core > svg circle { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 3 7; }
.crew-center { width: 132px; height: 132px; border-radius: 50%; background: var(--nuit); color: var(--on-nuit); display: grid; place-items: center; font: 600 14px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
.crew-expert { position: absolute; display: grid; justify-items: center; gap: 6px; width: 130px; text-align: center; font-size: 14px; color: var(--ink-muted); transform: translate(-50%, -50%); }
.crew-expert .tile-icon { margin: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-1); border: 1px solid var(--line); }
.crew-side { display: grid; gap: 20px; }
@media (max-width: 860px) { .crew { grid-template-columns: 1fr; justify-items: center; } .crew-side { grid-auto-flow: column; } }

/* Forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 15px; }
.field input, .field select, .field textarea {
    font: inherit; font-size: 16px; color: var(--ink); background: var(--surface-1);
    border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 11px 14px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.form-note { font-size: 14px; color: var(--ink-muted); }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .tile-icon { margin: 2px 0 0; }
.contact-list li > div > span { display: block; color: var(--ink-muted); font-size: 14px; }
.band--nuit .contact-list .tile-icon { color: var(--accent); }
.band--nuit .contact-list li > div > span { color: var(--on-nuit-muted); }

/* ROI calculator, shown as a TAURUS 360 App: parameters on the left, a report that recalculates on the right.
   Same pieces as the Hub (segmented controls, KPI tiles with a hero tile, waterfall, Ring360, financial table). */
.page-head--app { padding-bottom: clamp(20px, 3vw, 32px); }
.page-head--app h1 { max-width: 24ch; }
.checks--row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: 15px; color: var(--ink-muted); }
.band--app { padding-top: 0; }

.roi { background: var(--surface-0); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.app-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; padding: 18px 22px; background: var(--surface-1); border-bottom: 1px solid var(--line); }
.app-crumb { display: flex; align-items: center; gap: 6px; font: 600 12px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.app-crumb .i { width: 16px; height: 16px; }
.app-title { font: 500 clamp(1.3rem, 2vw, 1.6rem)/1.2 var(--font-sans); letter-spacing: -.01em; margin-top: 6px; }
.app-sub { font-size: 14px; color: var(--ink-muted); margin-top: 4px; }
.app-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.seg button { font: 500 14px/1.2 var(--font-sans); color: var(--ink-muted); background: none; border: 0; border-radius: 999px; padding: 7px 14px; min-height: 34px; cursor: pointer; font-variant-numeric: tabular-nums; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface-1); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.seg--fill { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; border-radius: var(--radius-md); }
.seg--fill button { border-radius: 8px; padding: 8px 6px; }
.seg--2 { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.app-body { display: grid; grid-template-columns: 296px minmax(0, 1fr); }
.app-params { display: grid; align-content: start; gap: 20px; padding: 20px; background: var(--surface-1); border-right: 1px solid var(--line); }
.app-panel-title { display: flex; align-items: center; gap: 8px; font: 600 12px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.app-panel-title .i { width: 16px; height: 16px; }
.param { border: 0; margin: 0; padding: 0; min-width: 0; }
.param legend { font: 600 14px/1.35 var(--font-sans); color: var(--ink); padding: 0; margin-bottom: 6px; }
.param-opt { font-weight: 400; font-size: 12px; color: var(--faint); margin-left: 4px; }
.param-hint { font-size: 13px; color: var(--faint); margin: -2px 0 8px; }
.param-hint:last-child { margin: 6px 0 0; }
.param-range { display: flex; align-items: center; gap: 12px; }
.param-range input { flex: 1; min-width: 0; accent-color: var(--ink); }
.param-range output { font: 500 15px/1 var(--font-sans); color: var(--ink); min-width: 5.2em; text-align: right; }
.param-note { display: flex; gap: 8px; font-size: 12.5px; color: var(--faint); }
.param-note .i { width: 15px; height: 15px; margin-top: 1px; }

.app-report { display: grid; align-content: start; gap: 14px; padding: 20px; min-width: 0; }
.msg { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); }
.msg-icon { flex: none; }
.msg strong { display: block; font: 600 15px/1.35 var(--font-sans); color: var(--ink); }
.msg p { font-size: 14px; color: var(--ink-muted); margin-top: 2px; }
.msg--watch { background: var(--vigilance-soft); }
.msg--watch .msg-icon { color: var(--vigilance); }
.msg--info { background: var(--surface-2); }
.msg--info .msg-icon { color: var(--ink); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { display: grid; align-content: start; gap: 6px; padding: 16px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-lg); min-width: 0; }
.tile-label { font-size: 13px; color: var(--ink-muted); }
.tile-value { font: 400 clamp(1.3rem, 1.9vw, 1.6rem)/1.15 var(--font-sans); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile-value.neg { color: var(--perte); }
.tile-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-muted); }
.tile--hero { background: var(--nuit); border-color: var(--nuit); }
.tile--hero .tile-label, .tile--hero .tile-foot { color: var(--on-nuit-muted); }
.tile--hero .tile-value { color: var(--on-nuit); font-weight: 500; font-size: clamp(1.45rem, 2.1vw, 1.8rem); }
.delta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font: 600 12px/1.4 var(--font-sans); white-space: nowrap; font-variant-numeric: tabular-nums; }
.delta--good { background: var(--gain-soft); color: var(--gain); }
.delta--bad { background: var(--perte-soft); color: var(--perte); }
.tile--hero .delta--good { background: var(--nuit-2); color: var(--on-nuit); }
.tag { display: inline-block; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; font: 600 12px/1.4 var(--font-sans); color: var(--ink-muted); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { padding: 18px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-lg); min-width: 0; }
.card--wide { grid-column: span 2; }
.card--full { grid-column: 1 / -1; }
.card h3 { font: 600 15px/1.35 var(--font-sans); }
.card-sub { font-size: 13px; color: var(--faint); margin-top: 2px; }

.chart { position: relative; margin-top: 12px; }
.chart-svg { display: block; overflow: visible; }
.chart-svg .bar { transition: opacity .15s ease; }
.chart-svg .bar.dim { opacity: .35; }
.bar--total { fill: var(--line-strong); }
.bar--good { fill: var(--gain); }
.bar--bad { fill: var(--perte); }
.chart-zero { stroke: var(--line-strong); stroke-width: 1; }
.chart-link { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-val { font: 600 13px var(--font-sans); fill: var(--ink); font-variant-numeric: tabular-nums; }
.chart-cat { font: 400 12px var(--font-sans); fill: var(--ink-muted); }
.chart-cat--narrow { font-size: 11px; }
.chart-hit { fill: transparent; }
.chart-tip { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 12px)); padding: 8px 10px; border-radius: var(--radius-sm); background: var(--nuit); color: var(--on-nuit); font-size: 12.5px; white-space: nowrap; pointer-events: none; }
.chart-tip strong { display: block; font-weight: 600; margin-bottom: 4px; }
.chart-tip div { display: grid; grid-template-columns: auto auto; gap: 2px 14px; color: var(--on-nuit-muted); }
.chart-tip b { color: var(--on-nuit); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--ink-muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sw--total, .sw--rest { background: var(--line-strong); }
.sw--good { background: var(--gain); }
.sw--bad { background: var(--perte); }
.sw--ring { background: none; border: 2px solid var(--ink-muted); border-radius: 50%; }
.legend--rows { display: grid; gap: 8px; margin-top: 14px; font-size: 13px; }
.legend--rows li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; }
.legend--rows strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart--ring { max-width: 168px; margin: 16px auto 0; }
.ring-svg { display: block; width: 100%; transform: rotate(-90deg); }
.ring-rest, .ring-arc { fill: none; stroke-width: 12; }
.ring-rest { stroke: var(--line-strong); }
.ring-arc { stroke: var(--gain); stroke-linecap: round; }
.ring-track { fill: none; stroke: none; }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-center strong { font: 500 1.6rem/1.1 var(--font-sans); color: var(--ink); }
.ring-center span { font-size: 12px; color: var(--ink-muted); }

.fin-scroll { overflow-x: auto; margin-top: 12px; }
.fin { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.fin th, .fin td { padding: 10px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.fin thead th { font: 600 12px/1.3 var(--font-sans); color: var(--faint); background: var(--surface-2); }
.fin th[scope="row"], .fin thead th:first-child { text-align: left; font-weight: 400; color: var(--ink); }
.fin thead th:first-child { font-weight: 600; color: var(--faint); }
.fin tr.total th, .fin tr.total td { font-weight: 600; background: var(--surface-2); border-bottom: 0; }
.fin .v-good { color: var(--gain); }
.fin .v-bad { color: var(--perte); }

.findings { list-style: none; display: grid; gap: 12px; margin-top: 14px; }
.findings li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: start; }
.findings p { font-size: 14px; color: var(--ink-muted); }
.status { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 3px 9px; border-radius: 999px; font: 600 12px/1.4 var(--font-sans); }
.status .i { width: 14px; height: 14px; }
.status--good { background: var(--gain-soft); color: var(--gain); }
.status--watch { background: var(--vigilance-soft); color: var(--vigilance); }
.status--bad { background: var(--perte-soft); color: var(--perte); }
.card--next { display: grid; align-content: start; gap: 12px; background: var(--nuit); border-color: var(--nuit); }
.card--next h3 { color: var(--on-nuit); }
.card--next p { font-size: 14px; color: var(--on-nuit-muted); }
.card--next strong { color: var(--on-nuit); }
.card--next .btn { justify-self: start; }
.report-foot { font-size: 12px; color: var(--faint); }

@media (max-width: 1140px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
    .app-body { grid-template-columns: 1fr; }
    .app-params { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); border-right: 0; border-bottom: 1px solid var(--line); }
    .app-panel-title, .param-note { grid-column: 1 / -1; }
    .cards { grid-template-columns: 1fr; }
    .card--wide { grid-column: auto; }
}
@media (max-width: 560px) {
    .app-head, .app-params, .app-report { padding: 14px; }
    .tiles { gap: 8px; }
    .tile { padding: 12px; }
    .findings li { grid-template-columns: 1fr; gap: 6px; }
    .app-tools, .app-tools .btn { width: 100%; }
}
@media (max-width: 400px) { .tiles { grid-template-columns: 1fr; } }
@media print {
    .page-head--app .checks, .page-head--app .lead, .app-params, .app-tools, .card--next, .chart-tip { display: none !important; }
    .page-head--app { padding: 0 0 12px; }
    .band--app { padding: 0; }
    .roi { border: 0; background: none; }
    .app-body { display: block; }
    .app-report { padding: 12px 0 0; }
    .app-head { background: var(--nuit); border: 0; border-radius: var(--radius-md); }
    .app-title, .app-crumb { color: var(--on-nuit); }
    .app-sub { color: var(--on-nuit-muted); }
    .cards { grid-template-columns: 2fr 1fr; }
    .card--full { grid-column: 1 / -1; }
    .card--wide:has(.findings) { grid-column: 1 / -1; }
    .tile, .card, .msg { break-inside: avoid; }
    .roi, .roi * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Bookings */
.booking { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-1); overflow: hidden; }
.booking iframe { width: 100%; height: 1100px; border: 0; display: block; background: #fff; }
.booking-gate { padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; justify-items: start; }
.booking-gate p { color: var(--ink-muted); }

/* ------------------------------------------------------------------ footer */

.foot { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand img { height: 18px; width: auto; margin: 6px 0; }
.foot-brand p { color: var(--ink-muted); margin: 16px 0 18px; max-width: 30em; }
.foot h2 { font: 500 14px/1.3 var(--font-sans); letter-spacing: 0; color: var(--faint); margin-bottom: 16px; }
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.foot-social { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); }
.foot-social .i { width: 18px; height: 18px; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-muted); }
.foot-contact .i { color: var(--faint); margin-top: 3px; }
.foot-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
/* The ink logo on light surfaces, the white one on dark. */
/* Official lockups: colour positive on light, colour negative (white TAURUS) on dark. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-ink { content: url(/site/media/taurus360-logo-white.png); } }
:root[data-theme="dark"] .logo-ink { content: url(/site/media/taurus360-logo-white.png); }

/* ------------------------------------------------------------------ motion */
/* Sections fade in once, a few pixels up; nothing else moves on its own. */

.reveal.is-armed { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-armed.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
    .top, .foot, .actions, .cta-line { display: none !important; }
    body { background: #fff; }
}
