/* « Le Fil » brand tokens: values from docs/brand/tokens/tokens.css. */
:root {
  --ink: #16232B;
  --ink-700: #2E3C45;
  --muted: #5A6872;
  --petrole: #0F5F63;
  --petrole-700: #0B4C4F;
  --petrole-100: #E3F0EF;
  --petrole-50: #F1F7F6;
  --papier: #F6F3EE;
  --sable: #EFEAE2;
  --stone: #867F74;
  --line: #DDD6CC;
  --soft-line: #E9E4DB;
  --white: #FFFFFF;
  --success: #2A7148;
  --success-tint: #E8F3EC;
  --warning: #93590A;
  --warning-tint: #FBF1DD;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-variant-numeric: tabular-nums; }
body { margin: 0; background: var(--papier); color: var(--ink); font-family: var(--font-sans); font-weight: 400; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(15, 95, 99, .5); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 600; }
h1 { max-width: 760px; margin-bottom: 20px; font-size: clamp(36px, 4.6vw, 52px); line-height: 1.12; letter-spacing: -.02em; }
h2 { margin-bottom: 16px; font-size: clamp(26px, 3vw, 34px); line-height: 1.22; letter-spacing: -.01em; }
h3 { font-size: 18px; line-height: 1.45; }

.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 68px; padding: 12px clamp(20px, 5vw, 72px); color: var(--ink); background: var(--papier); border-bottom: 1px solid var(--soft-line); }
.brand { display: inline-flex; align-items: center; color: var(--petrole); --wm: var(--ink); }
.brand svg { display: block; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.main-nav a:hover { color: var(--petrole); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; color: var(--white); font-size: 15px; font-weight: 500; background: var(--petrole); border: 1px solid var(--petrole); border-radius: 6px; cursor: pointer; transition: background-color .15s ease-out; }
.button:hover { background: var(--petrole-700); }
.button-small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.button-secondary { color: var(--ink); background: var(--white); border-color: var(--stone); }
.button-secondary:hover { background: var(--papier); }
.review-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 18px auto 0; padding: 14px 18px; max-width: 1320px; border: 1px solid var(--line); border-radius: 8px; background: var(--petrole-50); }
.review-banner[hidden] { display: none; }

.section-shell { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: clamp(72px, 8vw, 104px) 0; }
.section-label { margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.section-heading { max-width: 780px; margin-bottom: 40px; }
.section-heading > p:last-child { max-width: 650px; color: var(--ink-700); font-size: 17px; }
.section-heading-wide { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; max-width: none; align-items: end; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(510px, 1fr); gap: clamp(48px, 6vw, 80px); align-items: center; padding-top: clamp(64px, 7vw, 96px); }
.hero-lede { max-width: 640px; margin-bottom: 32px; color: var(--ink-700); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-line { margin: 20px 0 0; color: var(--muted); font-size: 13px; }

/* Product preview: the only framed surface, 1 px border, no shadow. */
.product-preview { display: grid; grid-template-columns: 128px 1fr; min-height: 480px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 11px; }
.preview-rail { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; color: var(--ink-700); background: var(--sable); border-right: 1px solid var(--line); font-size: 12px; font-weight: 500; }
.preview-logo { display: block; margin: 4px 0 20px 8px; color: var(--petrole); }
.preview-rail-item { position: relative; padding: 8px; border-radius: 6px; }
.preview-rail-item.active { color: var(--petrole-700); background: var(--petrole-100); font-weight: 600; }
.preview-rail-item.active::before { position: absolute; top: 6px; bottom: 6px; left: -10px; width: 3px; border-radius: 0 2px 2px 0; background: var(--petrole); content: ""; }
.preview-main { min-width: 0; padding: 24px; }
.preview-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.preview-header > div { display: flex; flex-direction: column; }
.preview-kicker { color: var(--muted); font-size: 12px; }
.preview-header strong { font-size: 22px; font-weight: 600; }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
.preview-stats div { padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.preview-stats strong, .preview-stats span { display: block; }
.preview-stats strong { font-size: 22px; font-weight: 600; }
.preview-stats span { color: var(--muted); font-size: 11px; }
.preview-table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.preview-row { display: grid; grid-template-columns: 1.2fr .9fr 1.1fr; gap: 10px; align-items: center; min-height: 64px; padding: 10px 12px; border-top: 1px solid var(--soft-line); font-size: 11px; }
.preview-row:first-child { border-top: 0; }
.preview-row strong { font-weight: 600; line-height: 1.3; }
.preview-row small { color: var(--muted); font-weight: 400; }
.preview-row-head { min-height: 34px; color: var(--muted); background: var(--sable); font-weight: 500; }

/* Status chips: pill, 1 px border, icon (stage gauge or lucide) + text. */
.status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 2px 9px 2px 7px; color: var(--ink); font-size: 11px; font-style: normal; font-weight: 500; line-height: 16px; white-space: nowrap; background: var(--white); border: 1px solid var(--line); border-radius: 999px; }
.status svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.status-info { color: var(--petrole-700); background: var(--petrole-100); border-color: var(--petrole-100); }
.status-success { color: var(--success); background: var(--success-tint); border-color: var(--success-tint); }
.status-warning { color: var(--warning); background: var(--warning-tint); border-color: var(--warning-tint); }
.gauge { display: inline-flex; gap: 2px; flex: none; }
.gauge i { width: 3px; height: 10px; border: 1px solid var(--line); border-radius: 1px; }
.gauge[data-s="1"] i:nth-child(1), .gauge[data-s="2"] i:nth-child(2), .gauge[data-s="3"] i:nth-child(3), .gauge[data-s="4"] i:nth-child(4) { border-color: currentColor; }
.gauge[data-s="2"] i:nth-child(-n+1), .gauge[data-s="3"] i:nth-child(-n+2), .gauge[data-s="4"] i:nth-child(-n+3), .gauge[data-s="5"] i { background: currentColor; border-color: currentColor; }

.section-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 8vw, 120px); align-items: start; border-top: 1px solid var(--soft-line); }
.problem-copy > p { max-width: 690px; color: var(--ink-700); font-size: 19px; }
.fragment-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.fragment-list span { padding: 6px 14px; color: var(--ink-700); background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; }

/* Lifecycle: the page's one thread (2 px line + nodes), CSS only. */
.workflow { width: 100%; padding-left: max(24px, calc((100% - 1320px) / 2)); padding-right: max(24px, calc((100% - 1320px) / 2)); background: var(--white); border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }
.lifecycle { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 32px 0 0; list-style: none; }
.lifecycle::before { position: absolute; top: 7px; left: 7px; right: 7px; height: 2px; background: var(--petrole); content: ""; }
.lifecycle li { position: relative; display: flex; flex-direction: column; }
.lifecycle li::before { position: absolute; top: -32px; left: 0; width: 16px; height: 16px; background: var(--white); border: 2px solid var(--petrole); border-radius: 50%; content: ""; }
.lifecycle li:last-child::before { background: var(--petrole); }
.step-number { color: var(--muted); font-size: 12px; font-weight: 500; }
.lifecycle strong { display: block; margin: 2px 0 6px; font-size: 17px; font-weight: 600; }
.lifecycle p { margin-bottom: 10px; color: var(--ink-700); font-size: 14px; }
.lifecycle small { margin-top: auto; color: var(--muted); font-size: 12px; font-weight: 500; }

.cockpit-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.cockpit-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cockpit-toolbar > div:first-child { display: flex; flex-direction: column; }
.cockpit-toolbar span { color: var(--muted); font-size: 12px; }
.cockpit-toolbar strong { font-weight: 600; }
.filter-pills { display: flex; gap: 6px; }
.filter-pills span { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; }
.filter-pills .active { color: var(--petrole-700); background: var(--petrole-100); border-color: var(--petrole-100); font-weight: 500; }
.data-table { min-width: 1050px; }
.data-row { display: grid; grid-template-columns: 1.25fr .85fr 1.15fr 1fr .75fr .8fr .65fr 1fr; gap: 16px; align-items: center; min-height: 72px; padding: 12px 24px; border-bottom: 1px solid var(--soft-line); font-size: 13px; }
.data-row > strong { font-weight: 600; }
.data-row small { display: block; color: var(--muted); font-weight: 400; }
.data-head { min-height: 40px; color: var(--muted); background: var(--sable); font-size: 12px; font-weight: 500; }
.cockpit-link { display: flex; justify-content: flex-end; padding: 16px 24px; color: var(--petrole); font-weight: 500; }
.cockpit-link:hover { text-decoration: underline; }

.why-grid, .benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-grid article, .role-grid article, .benefit-grid article { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.why-grid strong, .benefit-grid strong { display: block; margin-bottom: 10px; color: var(--ink); font-size: 18px; font-weight: 600; }
.why-grid p, .role-grid p, .benefit-grid p { margin-bottom: 0; color: var(--ink-700); }
.benefits-section { border-top: 1px solid var(--soft-line); }
.benefit-grid article { display: flex; min-height: 245px; flex-direction: column; }
.benefit-grid a { margin-top: auto; padding-top: 18px; color: var(--petrole); font-size: 13px; font-weight: 500; }
.benefit-grid a:hover { text-decoration: underline; }
.why-now { display: grid; grid-template-columns: .58fr 1fr; gap: 48px; align-items: start; margin-top: 40px; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.why-now h3 { margin: 0; color: var(--ink); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; }
.why-now ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: why-now; }
.why-now li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--ink-700); }
.why-now li::before { display: grid; place-items: center; width: 28px; height: 28px; color: var(--ink-700); font-size: 12px; font-weight: 600; background: var(--sable); border-radius: 50%; counter-increment: why-now; content: counter(why-now); }
.role-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; color: var(--ink-700); font-size: 14px; font-weight: 600; background: var(--sable); border-radius: 50%; }

.comparison-section { width: 100%; padding-left: max(24px, calc((100% - 1320px) / 2)); padding-right: max(24px, calc((100% - 1320px) / 2)); background: var(--white); border-top: 1px solid var(--soft-line); }
.comparison-table { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.comparison-row { display: grid; grid-template-columns: .72fr 1fr 1fr; border-top: 1px solid var(--soft-line); }
.comparison-row > strong, .comparison-row > div, .comparison-head > span { padding: 18px 22px; }
.comparison-row > strong { font-size: 14px; font-weight: 600; line-height: 1.45; }
.comparison-row > div, .comparison-head > span { border-left: 1px solid var(--soft-line); color: var(--ink-700); font-size: 14px; }
.comparison-head { background: var(--sable); border-top: 0; }
.comparison-head > strong, .comparison-head > span { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.comparison-with { color: var(--petrole-700) !important; background: var(--petrole-50); }
.comparison-mobile-label { display: none; }

.csf-section { width: 100%; padding-left: max(24px, calc((100% - 1320px) / 2)); padding-right: max(24px, calc((100% - 1320px) / 2)); border-top: 1px solid var(--soft-line); }
.csf-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; padding: clamp(32px, 5vw, 56px); background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.csf-card p { color: var(--ink-700); }
.csf-boundary { padding: 24px; color: var(--ink); background: var(--sable); border-radius: 8px; }
.csf-boundary ul { padding-left: 20px; color: var(--ink-700); }
.csf-boundary small { display: block; padding-top: 16px; color: var(--muted); border-top: 1px solid var(--line); }

.pilot-section { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(50px, 8vw, 110px); width: 100%; padding-left: max(24px, calc((100% - 1320px) / 2)); padding-right: max(24px, calc((100% - 1320px) / 2)); background: var(--sable); border-top: 1px solid var(--line); }
.pilot-copy > p:not(.section-label):not(.direct-contact) { color: var(--ink-700); font-size: 17px; }
.pilot-copy ul { margin: 28px 0; padding-left: 20px; color: var(--ink-700); }
.direct-contact { color: var(--muted); }
.direct-contact a { color: var(--petrole); font-weight: 500; }
.pilot-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-self: start; padding: 28px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.pilot-form label { display: flex; flex-direction: column; gap: 6px; color: var(--ink-700); font-size: 13px; font-weight: 500; }
.pilot-form input, .pilot-form select { min-width: 0; min-height: 44px; padding: 0 12px; color: var(--ink); background: var(--white); border: 1px solid var(--stone); border-radius: 6px; }
.pilot-form .button, .pilot-form .form-status { grid-column: 1 / -1; }
.form-status { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.form-status a { color: var(--petrole); font-weight: 500; }

.site-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding: 32px clamp(24px, 5vw, 72px); color: var(--muted); background: var(--sable); border-top: 1px solid var(--line); font-size: 13px; }
.site-footer nav { display: flex; justify-content: center; gap: 24px; }
.site-footer nav a { color: var(--ink); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .product-preview { width: min(760px, 100%); }
  .lifecycle { grid-template-columns: 1fr; gap: 28px; max-width: 640px; padding: 0 0 0 36px; }
  .lifecycle::before { top: 8px; bottom: 8px; left: 7px; right: auto; width: 2px; height: auto; }
  .lifecycle li::before { top: 2px; left: -36px; }
  .section-heading-wide, .csf-card, .pilot-section { grid-template-columns: 1fr; }
  .why-grid, .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .why-now { grid-template-columns: 1fr; }
  .cockpit-card { overflow-x: auto; }
}

@media (max-width: 760px) {
  html { scroll-behavior: auto; }
  .site-header { gap: 16px; padding-inline: 16px; }
  .main-nav { display: none; }
  .site-header > .button { padding-inline: 12px; }
  .section-shell { width: min(100% - 32px, 1320px); padding-block: 64px; }
  h1 { font-size: clamp(32px, 9vw, 40px); }
  h2 { font-size: 26px; }
  .hero { width: 100%; padding-inline: 16px; padding-top: 48px; }
  .hero-actions .button { width: 100%; }
  .product-preview { grid-template-columns: 64px 1fr; min-height: 420px; }
  .preview-rail { padding-inline: 8px; }
  .preview-rail-item { overflow: hidden; font-size: 0; }
  .preview-rail-item::first-letter { font-size: 12px; }
  .preview-rail-item.active::before { left: -8px; }
  .preview-main { padding: 16px; }
  .preview-stats { grid-template-columns: 1fr 1fr; }
  .preview-row { grid-template-columns: 1.1fr .9fr; }
  .preview-row > :last-child { display: none; }
  .section-grid, .why-grid, .role-grid, .benefit-grid { grid-template-columns: 1fr; }
  .cockpit-toolbar { align-items: flex-start; flex-direction: column; }
  .filter-pills { max-width: 100%; overflow-x: auto; }
  .csf-section, .comparison-section, .workflow, .pilot-section { padding-inline: 16px; }
  .comparison-table { overflow: visible; border: 0; }
  .comparison-row.comparison-head { display: none; }
  .comparison-row { display: block; margin-bottom: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
  .comparison-row > strong { display: block; padding: 18px 18px 14px; font-size: 16px; }
  .comparison-row > div { padding: 14px 18px; border-top: 1px solid var(--soft-line); border-left: 0; font-size: 14px; }
  .comparison-mobile-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
  .csf-card { padding: 28px 20px; }
  .pilot-form { grid-template-columns: 1fr; padding: 20px; }
  .pilot-form .button, .pilot-form .form-status { grid-column: auto; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer .brand, .site-footer nav { justify-content: center; }
  .site-footer nav { flex-wrap: wrap; }
  .review-banner { margin-inline: 16px; flex-direction: column; align-items: flex-start; }
}

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