/* ==========================================================================
   Shelfie — landing v3 (index, about, privacy, resource pages)
   Terracotta + white. Geist / Geist Mono / Instrument Serif.
   Converted from the Claude Design export: one class per DC block, hover/focus
   states as real pseudo-classes, JS-driven states as classes (.is-*).
   ========================================================================== */

:root {
  --terra: #C1674A;
  --terra-600: #A9533A;
  --terra-700: #8E4430;
  --terra-300: #DD9C84;
  --terra-100: #F6E2D9;
  --terra-50: #FCF4F0;

  --ink: #17120F;
  --ink-2: #3E3631;
  --muted: #857B74;
  --line: #EDE7E2;
  --line-2: #E2DAD3;
  --bg: #FFFFFF;
  --bg-2: #FAF7F4;
  --green: #3E8A5E;
  --green-2: #3E9A68;
  --linkedin: #0A66C2;

  --dark: #120E0C;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
  /* right edge of the centred 1320px column, for absolutely positioned panels */
  --edge: max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad)));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
::selection { background: var(--terra); color: #fff; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -0.01em; }
.c-terra { color: var(--terra); }
.c-green { color: var(--green); }

@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(193, 103, 74, 0); } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scan { to { top: 100%; } }
@keyframes flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@keyframes ring { from { transform: scale(.85); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- Shared type ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--terra);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.eyebrow-light { color: var(--terra-300); }
.eyebrow-white { color: #fff; }

.h2 { margin: 0; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; }
.h2 .dim { color: var(--muted); }
.lead { font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); max-width: 560px; margin: 22px 0 0; line-height: 1.55; }
.lead-center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 22px; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: -0.01em;
  border: 1px solid transparent; white-space: nowrap; cursor: pointer;
  transition: transform .35s var(--ease), background .25s, box-shadow .35s var(--ease), border-color .25s;
}
.btn-primary {
  background: var(--terra); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 24px -8px rgba(193, 103, 74, .65);
}
.btn-primary:hover {
  background: var(--terra-600); color: #fff; transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 14px 32px -10px rgba(193, 103, 74, .75);
}
.btn-primary:disabled { opacity: .7; cursor: progress; transform: none; }
.btn-nav { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 50px; }
.btn-block { width: 100%; height: 54px; font-size: 16px; margin-top: 6px; }
.btn-outline { color: var(--ink); border-color: var(--line-2); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-white { height: 54px; padding: 0 24px; font-size: 16px; flex: none; background: #fff; color: var(--ink); box-shadow: 0 20px 40px -20px rgba(60, 20, 10, .6); }
.btn-white:hover { transform: translateY(-1px); }
.btn-white span { color: var(--terra); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50;
  width: min(calc(100% - 28px), 1180px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  border: 1px solid transparent; background: transparent;
  transform: translateX(-50%);
  transition: background .4s, border-color .4s, box-shadow .4s, transform .5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(23, 18, 15, .06);
  box-shadow: 0 10px 30px -18px rgba(23, 18, 15, .25);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
}
.nav.is-hidden { transform: translate(-50%, -140%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 20px; letter-spacing: -0.04em; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: background .25s, color .25s; }
.nav-links a:hover { background: rgba(23, 18, 15, .05); color: var(--ink); }
.nav-links a[aria-current="page"] { background: rgba(23, 18, 15, .05); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* FR / EN switch */
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(23, 18, 15, .05); }
.lang button {
  height: 30px; min-width: 36px; padding: 0 9px; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 12px/1 var(--mono); letter-spacing: .04em;
  background: transparent; color: var(--muted);
  transition: background .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(23, 18, 15, .12); }

/* ==========================================================================
   01 Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(1200px 700px at 78% 40%, var(--terra-50), transparent 65%), #fff;
}
.hero-dots {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(23, 18, 15, .09) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(900px 600px at 70% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(900px 600px at 70% 45%, #000 0%, transparent 75%);
}
.hero-stage { position: absolute; inset: 0; z-index: 1; }
.hero-canvas, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-canvas { z-index: 1; }
.hero-overlay { z-index: 2; pointer-events: none; }

.hero-inner {
  position: relative; z-index: 3; flex: 1;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 140px var(--pad) 40px;
  display: grid; grid-template-columns: minmax(0, 620px) 1fr; align-items: center;
  pointer-events: none;
}
.hero-copy { pointer-events: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line-2);
  font-size: 13px; color: var(--ink-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .25s;
}
.pill:hover { border-color: var(--terra-300); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 4px var(--terra-100); animation: pulse 2s ease infinite; }
.pill-arrow { color: var(--terra); }
.hero-title { margin: 26px 0 0; font-size: clamp(48px, 6.3vw, 98px); line-height: .93; letter-spacing: -0.058em; font-weight: 600; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-title .line-last { padding-bottom: .16em; margin-bottom: -.1em; }
.hero-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--terra); font-size: 1.08em; letter-spacing: -0.03em; }
.hero-sub { margin: 26px 0 0; max-width: 470px; font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* HUD */
.hud {
  position: absolute; z-index: 4; right: var(--edge); bottom: 64px;
  width: 264px; padding: 16px; border-radius: 20px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(23, 18, 15, .07);
  box-shadow: 0 30px 60px -30px rgba(80, 40, 20, .35), 0 2px 6px rgba(23, 18, 15, .04);
  pointer-events: auto;
  opacity: 0; transform: translateY(20px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.hud.is-shown { opacity: 1; transform: none; }
.hud-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.hud-rec { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); letter-spacing: .1em; color: var(--ink-2); }
.hud-rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--terra); animation: blink 1s steps(2) infinite; }
.hud.is-done .hud-rec i { background: var(--green-2); animation: none; }
.hud-time { font-size: 12px; color: var(--ink); }
.hud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 12px 0; }
.hud-grid > div { display: flex; flex-direction: column; }
.hud-k { font-size: 11.5px; color: var(--muted); }
.hud-v { font-size: 22px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.15; font-feature-settings: "tnum"; }
.hud-alert { color: var(--terra); }
.hud-rayon { display: flex; align-items: center; gap: 8px; margin: -2px 0 12px; font: 500 10.5px/1.3 var(--mono); color: var(--muted); letter-spacing: .02em; }
.hud-rayon-mark { width: 5px; height: 5px; border-radius: 1px; background: var(--terra-300); transform: rotate(45deg); }
.hud-bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.hud-bar span { display: block; height: 100%; width: 0; background: var(--terra); border-radius: 3px; }
.hud-reco {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2);
  font-size: 13px; line-height: 1.4; color: var(--ink-2);
  opacity: 0; transform: translateY(6px);
  transition: opacity .5s, transform .5s var(--ease);
}
.hud.is-done .hud-reco { opacity: 1; transform: none; }
.hud-reco-tag { flex: none; font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 5px 7px; border-radius: 6px; background: var(--terra); color: #fff; }

/* Sector marquee */
.hero-foot {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 28px;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 18px var(--pad) 28px;
}
.hero-foot-label { flex: none; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.marquee {
  flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { position: relative; padding: 0 22px; font-size: 15px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.02em; white-space: nowrap; }
.marquee-track span::after {
  content: ""; position: absolute; right: -3px; top: 50%;
  width: 5px; height: 5px; border-radius: 1px; background: var(--terra-300);
  transform: translateY(-50%) rotate(45deg);
}

/* ==========================================================================
   02 Statement
   ========================================================================== */
.statement { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(64px, 7vw, 100px) var(--pad) clamp(120px, 16vw, 220px); }
.statement-text { margin: 0; font-size: clamp(28px, 3.9vw, 54px); line-height: 1.14; letter-spacing: -0.04em; font-weight: 500; color: var(--ink); }
.statement-text .hl { color: var(--terra); }

/* ==========================================================================
   03 Pipeline
   ========================================================================== */
.pipeline { position: relative; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pipe-inner {
  height: 100vh; min-height: 680px; max-width: var(--maxw); margin: 0 auto;
  padding: 100px var(--pad) 50px;
  display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(30px, 5vw, 80px); align-items: center;
}
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 4px; }
.step {
  cursor: pointer; display: grid; grid-template-columns: 36px 1fr; gap: 6px;
  padding: 16px 0; border-top: 1px solid var(--line-2);
  opacity: .38; transition: opacity .5s var(--ease);
}
.step.is-active { opacity: 1; }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--terra); padding-top: 4px; }
.step h3 { margin: 0; font-size: 19px; letter-spacing: -0.03em; font-weight: 600; }
.step p {
  margin: 0; overflow: hidden; max-height: 0;
  color: var(--ink-2); font-size: 14.5px;
  transition: max-height .6s var(--ease), margin .6s var(--ease);
}
.step.is-active p { max-height: 80px; margin-top: 6px; }
.pipe-stage { height: 100%; max-height: 640px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pipe-window {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  border-radius: 22px; background: #fff; border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(80, 40, 20, .35), 0 1px 2px rgba(23, 18, 15, .04);
}
.pipe-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.pipe-dots { display: flex; gap: 6px; }
.pipe-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.pipe-label { color: var(--ink-2); }
.pipe-meta { margin-left: auto; }
#pipeline-canvas { flex: 1; width: 100%; min-height: 0; }
.pipe-progress { height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.pipe-progress span { display: block; height: 100%; width: 0; background: var(--terra); }

/* ==========================================================================
   04 Field (phone)
   ========================================================================== */
.field-section { position: relative; padding: clamp(110px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); overflow: hidden; }
.field-stage {
  position: relative; max-width: 1180px; margin: 70px auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto;
  gap: 40px 60px; align-items: center; perspective: 1600px;
}
.callout { display: flex; gap: 14px; max-width: 300px; }
.callout-l { grid-column: 1; justify-self: end; text-align: right; flex-direction: row-reverse; }
.callout-r { grid-column: 3; }
.callout.row-1 { grid-row: 1; }
.callout.row-2 { grid-row: 2; }
.callout-ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--terra-50); color: var(--terra); border: 1px solid var(--terra-100);
}
.callout b { display: block; font-size: 16px; letter-spacing: -0.02em; font-weight: 600; }
.callout p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

.phone-wrap { grid-column: 2; grid-row: 1 / span 2; position: relative; }
.phone {
  position: relative; width: 320px; height: 660px; border-radius: 54px; padding: 12px;
  background: linear-gradient(145deg, #2A2320, #0E0B0A 60%);
  box-shadow: 0 0 0 1.5px #3A322D inset, 0 0 0 6px var(--ink) inset, 0 60px 100px -40px rgba(80, 40, 20, .55), 0 30px 50px -30px rgba(23, 18, 15, .5);
}
.phone-notch { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #000; z-index: 5; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #FBF8F6; }
.phone-shadow { position: absolute; left: 10%; right: 10%; bottom: -40px; height: 40px; background: radial-gradient(closest-side, rgba(80, 40, 20, .25), transparent); filter: blur(6px); }
.scr { position: absolute; inset: 0; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.phone[data-screen="result"] .scr-cam,
.phone[data-screen="camera"] .scr-res { opacity: 0; transform: scale(.98); }

/* Camera screen */
.scr-cam { background: #0E0B0A; color: #fff; display: flex; flex-direction: column; }
.cam-top { display: flex; justify-content: space-between; align-items: center; padding: 64px 20px 12px; font-size: 11px; }
.cam-top .mono { letter-spacing: 0; }
.cam-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 10.5px; }
.cam-badge i { width: 6px; height: 6px; border-radius: 50%; background: #7BD69B; }
.cam-view { position: relative; flex: 1; margin: 0 10px; border-radius: 18px; overflow: hidden; background: linear-gradient(#3B2F28, #241C18); }
.cam-shelf { position: absolute; inset: 14px 10px; }
/* shelf parts are positioned inline by main.js; shared look here */
.cam-board { position: absolute; left: 0; right: 0; height: 6px; border-radius: 2px; background: linear-gradient(#E9E1DA, #B8ABA0); box-shadow: 0 4px 6px rgba(0, 0, 0, .35); }
.cam-prod { position: absolute; display: flex; flex-direction: column; align-items: center; }
.cam-prod-body { flex: 1 1 auto; position: relative; overflow: hidden; box-shadow: 0 2px 3px rgba(0, 0, 0, .25); }
.cam-prod-label { position: absolute; opacity: .95; }
.cam-box {
  position: absolute; border-radius: 3px; border: 1.5px solid var(--terra-300); background: transparent;
  opacity: 0; transform: scale(1.25);
  transition: opacity .3s, transform .4s var(--ease);
}
.cam-box.gap { border: 1.5px dashed #FF8A6B; background: rgba(255, 120, 90, .15); }
.cam-box.on { opacity: 1; transform: none; }
.cam-scan {
  position: absolute; left: 0; right: 0; height: 80px; top: -80px;
  background: linear-gradient(transparent, rgba(221, 156, 132, .28) 85%, rgba(255, 210, 190, .9) 100%);
  border-bottom: 1.5px solid #FFD2BE;
}
.cam-scan.is-scanning { animation: scan 2.4s var(--ease) forwards; }
.cam-corner { position: absolute; width: 22px; height: 22px; border: 2px solid #fff; opacity: .9; }
.cam-corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.cam-corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.cam-corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.cam-corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.cam-bottom { display: flex; justify-content: space-between; align-items: center; padding: 18px 26px 34px; }
.cam-count { font-size: 11px; width: 70px; color: rgba(255, 255, 255, .75); }
.cam-shutter { width: 62px; height: 62px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; }
.cam-shutter i { width: 50px; height: 50px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cam-shutter.is-shot i { transform: scale(.85); background: var(--terra-100); }
.cam-thumb-wrap { width: 70px; display: flex; justify-content: flex-end; }
.cam-thumb { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #5A4A40, #2A211C); border: 2px solid rgba(255, 255, 255, .6); }

/* Result screen */
.scr-res { padding: 58px 14px 14px; display: flex; flex-direction: column; gap: 9px; font-size: 12px; overflow: hidden; }
.res-top { display: flex; justify-content: space-between; padding: 0 6px 4px; font-size: 14px; }
.res-store {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  padding: 14px; border-radius: 16px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, var(--terra) 0%, #4A2A1F 55%, #1E1512 100%);
}
.res-store b { display: block; font-size: 15px; letter-spacing: -0.02em; }
.res-store div > span { font-size: 10.5px; opacity: .75; }
.res-sync { flex: none; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 9.5px; }
.res-card { position: relative; background: #fff; border-radius: 14px; padding: 12px 13px; border: 1px solid #F0EAE5; box-shadow: 0 1px 2px rgba(23, 18, 15, .03); }
.res-card p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.res-score { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.res-big { font-size: 34px; font-weight: 600; letter-spacing: -0.05em; color: var(--green); font-feature-settings: "tnum"; }
.res-of { color: var(--muted); font-size: 13px; }
.res-gauge { flex: 1; height: 6px; background: #EFE9E4; border-radius: 6px; overflow: hidden; }
.res-gauge span { display: block; height: 100%; width: 0; background: var(--green); border-radius: 6px; transition: width 1.4s var(--ease) .2s; }
.phone[data-screen="result"] .res-gauge span { width: 78%; }
.res-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.res-num { font-size: 24px; font-weight: 600; letter-spacing: -0.04em; font-feature-settings: "tnum"; }
.res-oos { color: var(--terra); }
.res-reco { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease) .5s, transform .6s var(--ease) .5s; }
.res-reco-2 { transition-delay: .75s; }
.phone[data-screen="result"] .res-reco { opacity: 1; transform: none; }
.res-reco b { display: block; font-size: 13px; letter-spacing: -0.02em; margin-top: 6px; }
.res-tag { display: inline-block; padding: 3px 7px; border-radius: 6px; background: #EFEAE6; color: var(--ink-2); font: 600 9.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.res-tag-hot { background: var(--terra-100); color: var(--terra-700); }

/* ==========================================================================
   05 Wins
   ========================================================================== */
.wins { position: relative; padding: clamp(60px, 8vw, 120px) 0 clamp(110px, 14vw, 180px); }
.wins-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.win {
  padding: 14px 14px 30px; border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.win:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(80, 40, 20, .4); border-color: var(--terra-100); }
.win-vis {
  position: relative; height: 210px; margin-bottom: 26px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 24px;
}
.win-vis-label { position: absolute; top: 16px; left: 18px; font-size: 11px; color: var(--muted); letter-spacing: 0; }
.win-bar { position: relative; display: grid; grid-template-columns: 1fr; gap: 8px; }
.win-bar-k { font-size: 12.5px; color: var(--muted); }
.win-bar-t { height: 12px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.win-bar-t span { display: block; height: 100%; border-radius: 6px; background: var(--terra); }
.win-bar-v { position: absolute; right: 0; top: 0; font-size: 12.5px; font-weight: 600; color: var(--terra); letter-spacing: 0; }
.win-spark { width: 100%; height: 130px; overflow: visible; }
.win-spark line, .win-spark-line { vector-effect: non-scaling-stroke; }
.win-spark-grid { stroke: var(--line); stroke-width: 1; }
.win-spark-area { fill: var(--terra-50); }
.win-spark-line { fill: none; stroke: var(--terra); stroke-width: 2; stroke-linejoin: round; }
.win-vis-checks { height: auto; min-height: 210px; gap: 10px; padding: 20px; }
.win-check { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--terra-100); font-size: 13.5px; background: #fff; }
.win-check i { position: relative; flex: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--terra); background: var(--terra); }
.win-check i::after {
  content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.win-who { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--terra); margin: 0 16px 10px; }
.win h3 { font-size: 24px; letter-spacing: -0.035em; font-weight: 600; margin: 0 16px 10px; line-height: 1.15; }
.win-txt { color: var(--ink-2); font-size: 15px; margin: 0 16px; }

/* ==========================================================================
   06 Technology (dark)
   ========================================================================== */
.tech { position: relative; background: var(--dark); color: #fff; min-height: 110vh; overflow: hidden; display: flex; align-items: center; }
.tech-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(800px 600px at 72% 50%, rgba(193, 103, 74, .22), transparent 70%); }
.tech-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tech-labels { position: absolute; inset: 0; pointer-events: none; }
.tech-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 140px var(--pad); pointer-events: none; }
.tech-copy { max-width: 520px; pointer-events: auto; }
.tech .h2 .dim { color: rgba(255, 255, 255, .45); }
.tech .lead { color: rgba(255, 255, 255, .72); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin-top: 48px; }
.spec { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; }
.spec .mono { font-size: 11px; color: var(--terra-300); letter-spacing: 0; }
.spec b { display: block; margin-top: 8px; font-weight: 600; letter-spacing: -0.02em; }
.spec p { margin: 6px 0 0; font-size: 14px; color: rgba(255, 255, 255, .58); line-height: 1.5; }

/* Generated by js/embedding.js */
.tech-label {
  position: absolute; left: 0; top: 0;
  font: 500 10.5px/1 var(--mono); letter-spacing: .02em; white-space: nowrap;
  color: rgba(255, 255, 255, .55);
  padding: 4px 7px; border-radius: 6px;
  background: rgba(18, 14, 12, .6); border: 1px solid rgba(255, 255, 255, .08);
  transition: color .3s, border-color .3s, background .3s;
}
.tech-label.hot { color: #fff; background: var(--terra); border-color: var(--terra); }
.q-card {
  position: absolute; right: var(--edge); bottom: 70px; width: 280px; padding: 14px; border-radius: 16px;
  background: rgba(28, 23, 20, .72); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #fff; font-size: 12px;
}
.q-head { display: flex; gap: 10px; align-items: center; }
.q-head b { display: block; font-size: 13px; }
.q-head span.mono { font-size: 10.5px; color: rgba(255, 255, 255, .5); }
.q-crop { width: 38px; height: 38px; border-radius: 9px; background: #F4EEE9; display: grid; place-items: center; flex: none; overflow: hidden; }
.q-crop i { width: 16px; height: 28px; border-radius: 3px; background: linear-gradient(#FBF8F5 0 50%, var(--terra) 50% 70%, #FBF8F5 70%); box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.q-vec { margin: 12px 0; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .35); font-size: 10.5px; color: var(--terra-300); white-space: nowrap; overflow: hidden; }
.q-match { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: end; }
.q-match span.mono:first-child { grid-column: 1 / -1; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .45); }
.q-match b { font-size: 14px; letter-spacing: -0.02em; transition: color .3s; }
.q-sim { font-size: 13px; color: rgba(255, 255, 255, .5); transition: color .3s; }
.q-card.matched .q-sim { color: #7BD69B; }

/* ==========================================================================
   07 Dashboard
   ========================================================================== */
.dash-section { position: relative; padding: clamp(110px, 14vw, 180px) 0; }
.dash {
  max-width: var(--maxw); margin: 64px var(--edge) 0;
  display: grid; grid-template-columns: 210px minmax(0, 1fr);
  border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 60px 120px -60px rgba(80, 40, 20, .35), 0 2px 4px rgba(23, 18, 15, .03);
}
.dash-side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.dash-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.02em; padding: 4px 10px 18px; }
.dash-brand span { width: 18px; height: 18px; border-radius: 6px; background: var(--terra); }
.dash-nav { padding: 8px 10px; border-radius: 9px; color: var(--ink-2); border: 1px solid transparent; }
.dash-nav.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(23, 18, 15, .06); border-color: var(--line); }
.dash-main { padding: 22px 24px 26px; min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.dash-head b { display: block; font-size: 18px; letter-spacing: -0.03em; }
.dash-head div > span { font-size: 12.5px; color: var(--muted); }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.seg span { padding: 5px 10px; border-radius: 7px; font-size: 12px; color: var(--ink-2); }
.seg span.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(23, 18, 15, .08); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0 14px; }
.kpi { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.kpi > span { font-size: 12px; color: var(--muted); }
.kpi b { font-size: 28px; font-weight: 600; letter-spacing: -0.05em; font-feature-settings: "tnum"; }
.kpi em { font: 500 11.5px/1.3 var(--mono); font-style: normal; color: var(--muted); }
.kpi em.up { color: var(--green); }
.dash-charts { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.chart { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 10px; min-width: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.chart-note, .legend { font-size: 11.5px; color: var(--muted); }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.legend span { margin-left: 6px; }
.legend .lg-comp { margin-left: 6px; }
.lg-own, .lg-comp { display: inline-block; width: 10px; height: 3px; border-radius: 2px; background: var(--terra); }
.lg-comp { background: #9A918A; }

.line-chart { position: relative; height: 230px; margin-top: 10px; }
.line-chart svg { width: 100%; height: 100%; overflow: visible; }
.lc-grid line { stroke: var(--line); }
.lc-axis { font: 10.5px var(--mono); fill: var(--muted); }
.lc-area { fill: url(#lcGrad); }
.lc-own, .lc-comp { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lc-own { stroke: var(--terra); }
.lc-comp { stroke: #9A918A; }
.lc-end { font: 600 11px var(--sans); }
.lc-hover { opacity: 0; }
.line-chart.is-hover .lc-hover { opacity: 1; }
.lc-hair { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; opacity: .35; }
.tooltip {
  position: absolute; z-index: 3; pointer-events: none;
  padding: 8px 10px; border-radius: 10px; background: var(--ink); color: #fff;
  font-size: 11.5px; line-height: 1.5; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(4px);
  transition: opacity .15s, transform .15s;
}
.line-chart.is-hover .tooltip { opacity: 1; transform: none; }
.tooltip i { width: 8px; margin-right: 6px; vertical-align: middle; }

.bars { position: relative; height: 230px; margin-top: 10px; display: flex; flex-direction: column; justify-content: center; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 10px; font-size: 12px; }
.bk { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt { height: 12px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.bf { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--terra-300); transition: background .2s; }
.bf:hover { background: var(--terra); }
.bv { font: 500 12px var(--mono); text-align: right; }

/* ==========================================================================
   08 Numbers
   ========================================================================== */
.numbers {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad) clamp(110px, 14vw, 180px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.num { padding: 26px 24px 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.num:first-child { padding-left: 0; border-left: 0; }
.num b { display: block; font-size: clamp(48px, 6vw, 88px); font-weight: 600; letter-spacing: -0.06em; line-height: 1; color: var(--ink); font-feature-settings: "tnum"; }
.num b.num-accent { color: var(--terra); }
.num p { margin: 14px 0 0; color: var(--ink-2); font-size: 15px; max-width: 220px; }

/* ==========================================================================
   09 Integrations
   ========================================================================== */
.integrations { position: relative; padding: 0 0 clamp(110px, 14vw, 180px); }
.int-wrap { margin-top: 56px; }
.int-panel { border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line); padding: clamp(18px, 3vw, 36px); }
.int-diagram { position: relative; width: 100%; aspect-ratio: 1000 / 440; }
.int-diagram > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.int-rail { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.int-flow {
  fill: none; stroke: var(--terra); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1.5 98.5;
  animation: flow 2.6s cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: var(--d, 0s);
}
.int-flow-in { animation-duration: 1.6s; }
.int-audit {
  position: absolute; left: 4%; width: 22.2%; top: 25%; height: 50%;
  border-radius: 16px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 20px 40px -30px rgba(80, 40, 20, .35);
  padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between;
}
.int-audit-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; white-space: nowrap; font: 500 10px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.int-sent { color: var(--green-2); }
.int-audit b { display: block; font-size: 15px; letter-spacing: -0.02em; }
.int-audit-sub { font-size: 12px; color: var(--muted); }
.int-audit-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; font-size: 11px; color: var(--muted); }
.int-audit-stats b { font-size: 18px; color: var(--ink); letter-spacing: -0.04em; }
.int-audit-stats b.c-green { color: var(--green); }
.int-audit-stats b.c-terra { color: var(--terra); }
.int-hub { position: absolute; left: 43%; width: 14%; top: 34.1%; height: 31.8%; display: grid; place-items: center; }
.int-ring { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--terra-300); animation: ring 2.6s var(--ease) infinite; }
.int-ring-2 { animation-delay: -1.3s; }
.int-hub-logo {
  position: relative; width: 74%; aspect-ratio: 1; border-radius: 28%; background: var(--terra);
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -14px rgba(193, 103, 74, .7), 0 1px 0 rgba(255, 255, 255, .25) inset;
}
.int-crm {
  position: absolute; left: 72%; width: 24%; top: var(--y); height: 11.82%;
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border-radius: 12px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(23, 18, 15, .04);
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.02em;
  transition: border-color .25s, transform .35s var(--ease);
}
.int-crm:hover { border-color: var(--terra-300); transform: translateX(3px); }
.int-crm-ico { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--c); color: #fff; display: grid; place-items: center; font: 600 12px/1 var(--sans); }
.int-crm-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.int-crm-ok { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 3px #E3F2E8; }
.int-chips { display: none; flex-wrap: wrap; gap: 8px; }
.int-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; }
.int-chips i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); }

/* ==========================================================================
   10 Deployment
   ========================================================================== */
.deploy {
  position: relative; background: var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(110px, 14vw, 180px) 0; margin-bottom: clamp(80px, 10vw, 140px);
}
.deploy-grid { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.timeline { position: relative; }
.timeline-rail { position: absolute; left: 16px; top: 17px; bottom: 17px; width: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.timeline-rail span { display: block; width: 100%; height: 0; background: var(--terra); transition: height 2.4s cubic-bezier(.45, 0, .55, 1) .3s; }
.deploy-grid.is-on .timeline-rail span { height: 100%; }
.timeline ol { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 18px; padding-bottom: 34px;
  opacity: .4; transition: opacity .6s var(--ease) var(--d);
}
.timeline li:last-child { padding-bottom: 0; }
.deploy-grid.is-on .timeline li { opacity: 1; }
.tl-dot {
  position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--line-2); background: #fff; color: var(--muted);
  display: grid; place-items: center; font: 600 11px/1 var(--mono);
  transition: background .4s var(--d), border-color .4s var(--d), color .4s;
}
.deploy-grid.is-on .tl-dot { background: var(--terra); border-color: var(--terra); color: #fff; }
.timeline li > div { padding-top: 4px; }
.tl-week { font: 500 11.5px/1 var(--mono); color: var(--terra); text-transform: uppercase; letter-spacing: .1em; }
.timeline h3 { margin: 8px 0 0; font-size: 20px; letter-spacing: -0.03em; font-weight: 600; }
.timeline p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 420px; }

.learn { border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(80, 40, 20, .35); padding: 22px; }
.learn-head { display: flex; justify-content: space-between; align-items: center; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.thumb {
  position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 10px;
  background: linear-gradient(var(--from), #1E1714);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14%;
  opacity: 0; transform: translateY(8px) scale(.94);
  transition: opacity .5s var(--d), transform .6s var(--ease) var(--d);
}
.deploy-grid.is-on .thumb { opacity: 1; transform: none; }
.thumb::after { content: ""; position: absolute; inset: 6px; border: 1.5px solid var(--terra-300); border-radius: 6px; opacity: .8; }
.bottle { display: flex; flex-direction: column; align-items: center; width: 34%; height: 62%; transform: rotate(var(--rot)) scale(var(--s)); }
.bottle-cap { flex: 0 0 20%; width: 36%; border-radius: 2px; background: var(--terra); }
.bottle-body {
  position: relative; flex: 1; width: 100%;
  border-radius: 40% 40% 3px 3px / 12% 12% 3px 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .3), transparent 30%, transparent 65%, rgba(0, 0, 0, .2)), #FBF8F5;
}
.bottle-body i { position: absolute; left: 0; right: 0; top: 36%; height: 26%; background: var(--terra); }
.learn-sep { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: 12.5px; color: var(--muted); }
.learn-sep span:first-child, .learn-sep span:last-child { flex: 1; height: 1px; background: var(--line); }
.learn-box { padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.learn-box-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; }
.learn-box-head b { letter-spacing: -0.02em; }
.learn-ok { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px/1 var(--mono); color: var(--green); opacity: 0; transition: opacity .4s 2.6s; }
.learn-ok i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); }
.deploy-grid.is-on .learn-ok { opacity: 1; }
.learn-bar { height: 6px; margin-top: 12px; border-radius: 6px; background: var(--line); overflow: hidden; }
.learn-bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--terra); transition: width 1.6s var(--ease) 1.2s; }
.deploy-grid.is-on .learn-bar span { width: 100%; }
.learn-note { margin: 16px 2px 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ==========================================================================
   11 CTA / demo form (also used by about.html)
   ========================================================================== */
.cta { position: relative; margin: 0 clamp(10px, 1.6vw, 22px); border-radius: 36px; background: var(--terra); color: #fff; overflow: hidden; }
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 500px at 0% 0%, rgba(255, 220, 200, .35), transparent 60%), radial-gradient(600px 600px at 100% 100%, rgba(90, 30, 15, .45), transparent 60%);
}
.cta-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: repeating-linear-gradient(180deg, transparent 0 88px, #fff 88px 90px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 55%);
  mask-image: linear-gradient(90deg, #000, transparent 55%);
}
.cta-inner {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(70px, 9vw, 130px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(40px, 6vw, 100px); align-items: center;
}
.cta-title { margin: 0; font-size: clamp(38px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; }
.cta-title em, .cta-band-title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: #fff; }
.cta .lead { color: rgba(255, 255, 255, .85); }
.cta-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.cta-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.cta-check { flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .18); }

.form { background: #fff; color: var(--ink); border-radius: 26px; padding: 28px; display: grid; gap: 12px; box-shadow: 0 50px 100px -40px rgba(60, 20, 10, .6); }

/* Demo card (#contact): tabs "Réserver un créneau" (Cal.com, js/cal-booking.js) / "Être recontacté"
   (the form above, unboxed inside the card). Cal.com switches to its compact desktop layout
   (details | month | slots, ~540px tall) once its iframe is >= 770px wide, and to a tall stacked
   layout below: the booking tab therefore widens the card to 800px, and stacks the section
   between 861 and 1239px so the calendar keeps the desktop layout. */
.cta-inner { transition: grid-template-columns .5s var(--ease-out), gap .5s var(--ease-out); }
.cta.is-booking .cta-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 800px); gap: clamp(40px, 4vw, 64px); }
@media (min-width: 861px) and (max-width: 1239px) {
  .cta.is-booking .cta-inner { grid-template-columns: minmax(0, 1fr); }
}
.demo-card { min-width: 0; background: #fff; color: var(--ink); border-radius: 26px; padding: 10px; box-shadow: 0 50px 100px -40px rgba(60, 20, 10, .6); }
.demo-card .form { background: none; box-shadow: none; border-radius: 0; padding: 18px 18px 18px; }
.demo-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.demo-tabs-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: #fff;
  box-shadow: 0 1px 2px rgba(23, 18, 15, .08), 0 6px 16px -8px rgba(23, 18, 15, .2); transition: transform .45s var(--ease-out);
}
.demo-tabs[data-active="form"] .demo-tabs-pill { transform: translateX(100%); }
.demo-tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0;
  padding: 12px 10px; border: 0; border-radius: 12px; background: none; cursor: pointer;
  font: 500 14.5px/1.2 var(--sans); letter-spacing: -0.01em; color: var(--muted); transition: color .25s;
}
.demo-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-tab svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.demo-tab:hover { color: var(--ink-2); }
.demo-tab[aria-selected="true"] { color: var(--ink); }
.demo-tab[aria-selected="true"] svg { stroke: var(--terra); }
.demo-tab:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.demo-panels.is-animating { overflow: hidden; }
.demo-panel:not([hidden]) { animation: panel-in .45s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
.demo-panel-book { padding: 6px 0 4px; }

/* Cal.com calendar: skeleton while embed.js loads, fallback link on failure/timeout. */
.cal-shell { position: relative; }
.cal-shell[data-state="idle"], .cal-shell[data-state="loading"], .cal-shell[data-state="failed"] { min-height: 470px; }
.cal-inline { width: 100%; min-height: 0; overflow: visible; }
.cal-shell:not([data-state="ready"]) .cal-inline { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.cal-skeleton { position: absolute; inset: 0; padding: 22px 18px; display: grid; grid-template-rows: auto 1fr; gap: 22px; transition: opacity .3s; }
.cal-shell[data-state="ready"] .cal-skeleton, .cal-shell[data-state="failed"] .cal-skeleton { opacity: 0; visibility: hidden; }
.sk-head { display: flex; justify-content: space-between; align-items: center; }
.sk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-content: start; }
.sk { display: block; border-radius: 10px; background: linear-gradient(90deg, var(--bg-2) 0 40%, #F2ECE7 50%, var(--bg-2) 60% 100%) 0 0 / 300% 100%; animation: sk-shimmer 1.6s linear infinite; }
.sk-grid .sk { aspect-ratio: 1; max-height: 56px; }
.sk-grid .sk:nth-child(7n + 2), .sk-grid .sk:nth-child(7n + 4), .sk-grid .sk:nth-child(11) { background-color: var(--terra-50); background-image: linear-gradient(90deg, var(--terra-50) 0 40%, var(--terra-100) 50%, var(--terra-50) 60% 100%); }
.sk-title { width: 42%; height: 20px; }
.sk-nav { width: 64px; height: 20px; }
@keyframes sk-shimmer { to { background-position: -150% 0; } }
.cal-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; }
.cal-fallback p { margin: 0; font-size: 15px; color: var(--ink-2); }
.cal-fallback[hidden] { display: none; }
.cal-noscript { position: static; min-height: 260px; }
.cal-note { margin: 6px 14px 8px; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.cal-note .link { color: inherit; }
.cal-booked { display: flex; gap: 12px; align-items: flex-start; margin: 8px 8px 4px; padding: 14px 16px; border-radius: 14px; background: #EEF6F1; border: 1px solid rgba(62, 138, 94, .25); animation: panel-in .45s var(--ease-out); }
.cal-booked[hidden] { display: none; }
.cal-booked p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cal-booked b { color: var(--ink); }
.cal-booked-ico { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green-2); }
.cal-booked-ico svg { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Field = floating label over the control + an animated message line underneath.
   States (set by main.js): .is-valid, .is-invalid, .shake. */
.field { --err: #B42318; --ok: var(--green); display: grid; min-width: 0; }
.field-control { position: relative; }
.field input, .field textarea {
  display: block; width: 100%; font: 15px/1.4 var(--sans); color: var(--ink);
  padding: 23px 40px 7px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2);
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 112px; }
.field label {
  position: absolute; left: 15px; top: 16px; max-width: calc(100% - 56px);
  font-size: 15px; line-height: 1.4; color: var(--muted); pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform-origin: 0 0; transition: transform .22s var(--ease), color .2s;
}
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label,
.field input:-webkit-autofill + label {
  transform: translateY(-9px) scale(.78); color: var(--ink-2); font-weight: 500;
}
.field input:hover, .field textarea:hover { border-color: #D3C8BF; }
.field input:focus, .field textarea:focus { border-color: var(--terra); background: #fff; box-shadow: 0 0 0 4px var(--terra-100); }
.field-icon {
  position: absolute; right: 14px; top: 18px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s var(--ease-out); pointer-events: none;
}
.field-icon path { opacity: 0; }
.field.is-valid .field-icon, .field.is-invalid .field-icon { opacity: 1; transform: none; }
.field.is-valid .i-ok { opacity: 1; stroke: var(--ok); }
.field.is-invalid .i-bad { opacity: 1; stroke: var(--err); }
.field.is-valid input, .field.is-valid textarea { border-color: rgba(62, 138, 94, .5); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); background: #FFF9F8; }
.field.is-invalid input:focus, .field.is-invalid textarea:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); background: #fff; }
.field.is-invalid label { color: var(--err); }

.field-foot { display: flex; align-items: flex-start; gap: 12px; }
.field-msg {
  flex: 1; min-width: 0; display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .28s var(--ease-out);
}
.field-msg > p {
  margin: 0; overflow: hidden; min-height: 0; font-size: 12.5px; line-height: 1.4;
  opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .28s var(--ease-out);
}
.field-msg.is-shown { grid-template-rows: 1fr; }
.field-msg.is-shown > p { opacity: 1; transform: none; padding-top: 6px; }
.field-msg.is-error > p { color: var(--err); font-weight: 500; }
.field-msg.is-hint > p { color: var(--terra-700); }
.field-suggest {
  font: inherit; font-weight: 600; color: var(--terra-600); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; border-radius: 3px;
}
.field-suggest:hover { color: var(--terra-700); }
.field-suggest:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.field-suggest-q::after { content: "\00a0?"; }
html[lang="en"] .field-suggest-q::after { content: "?"; }
.field-count { flex: none; padding-top: 6px; font-size: 11px; color: var(--muted); transition: color .2s; }
.field-count.is-near { color: var(--terra-600); }

@keyframes field-shake {
  15%, 55% { transform: translateX(-5px); }
  35%, 75% { transform: translateX(5px); }
  90% { transform: translateX(-2px); }
}
.field.shake .field-control { animation: field-shake .42s var(--ease); }

/* Turnstile (interaction-only widget: usually stays invisible) */
.turnstile:empty { display: none; }
.turnstile { display: flex; justify-content: center; margin-top: -12px; } /* 0px tall while invisible: cancel its grid gap */

/* Submit button: idle -> loading (spinner) -> success (check) */
.btn-submit { position: relative; overflow: hidden; transition: transform .35s var(--ease), background .35s, box-shadow .35s var(--ease); }
.btn-submit .btn-label { display: inline-flex; gap: 10px; transition: opacity .2s, transform .3s var(--ease); }
.btn-submit .btn-spinner, .btn-submit .btn-check { position: absolute; left: 50%; top: 50%; margin: -12px 0 0 -12px; opacity: 0; transition: opacity .2s; }
.btn-spinner { width: 24px; height: 24px; border-radius: 50%; border: 2.4px solid rgba(255, 255, 255, .35); border-top-color: #fff; }
.btn-check { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; }
.btn-submit[data-state="loading"] { cursor: progress; transform: none; }
.btn-submit[data-state="loading"] .btn-label, .btn-submit[data-state="success"] .btn-label { opacity: 0; transform: translateY(-8px); }
.btn-submit[data-state="loading"] .btn-spinner { opacity: 1; animation: spin .8s linear infinite; }
.btn-submit[data-state="success"] { background: var(--green-2); box-shadow: 0 8px 24px -8px rgba(62, 154, 104, .6); transform: none; }
.btn-submit[data-state="success"] .btn-check { opacity: 1; stroke-dashoffset: 0; transition: opacity .15s, stroke-dashoffset .45s var(--ease-out) .05s; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-err { margin: 0; color: #B0301E; font-size: 13.5px; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .form *, .form *::before, .form *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .cta-inner, .demo-tabs-pill, .demo-tab { transition: none; }
  .demo-panel:not([hidden]), .cal-booked, .sk { animation: none; }
  .field.shake .field-control { animation: none; }
  .btn-submit[data-state="loading"] .btn-spinner { animation-duration: 1.6s; } /* still signals progress */
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 80px var(--pad) 0; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.partner-link { display: inline-flex; opacity: .92; transition: opacity .25s; }
.partner-link:hover { opacity: 1; }
.partner-link img { width: 64px; height: auto; }
.partner-semia { width: 111px; height: auto; }
.partners-sep { width: 1px; height: 32px; background: var(--line-2); }
.linkedin { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; transition: color .25s; }
.linkedin:hover { color: var(--linkedin); }
.footer-cols { display: flex; gap: clamp(40px, 8vw, 110px); }
.footer-cols > div { display: grid; gap: 10px; align-content: start; font-size: 14px; }
.footer-cols b { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; color: var(--muted); font-family: var(--mono); margin-bottom: 4px; }
.footer-cols a { color: var(--ink-2); }
.footer-cols a:hover { color: var(--terra); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 70px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-word {
  font-weight: 700; letter-spacing: -0.075em; line-height: .72; font-size: clamp(120px, 24vw, 360px);
  margin: 30px 0 0 -0.04em; user-select: none;
  background: linear-gradient(180deg, var(--terra-100), #fff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ==========================================================================
   About page
   ========================================================================== */
.page-intro { position: relative; overflow: hidden; background: radial-gradient(1000px 600px at 80% 20%, var(--terra-50), transparent 65%); }
.page-intro .hero-dots {
  -webkit-mask-image: radial-gradient(800px 500px at 75% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(800px 500px at 75% 30%, #000 0%, transparent 75%);
}
.page-intro-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 170px var(--pad) clamp(80px, 10vw, 130px); }
.about-title { margin: 0; max-width: 980px; font-size: clamp(42px, 5.8vw, 84px); line-height: .98; letter-spacing: -0.055em; font-weight: 600; text-wrap: balance; }
.about-title em, .privacy-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--terra); letter-spacing: -0.03em; }
.about-lead { margin: 28px 0 0; max-width: 680px; font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip {
  display: inline-flex; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .8);
  font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2);
}
.about-h2 { margin: 0; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; }
.about-h2 .dim { color: var(--muted); }
.about-h2.narrow { max-width: 760px; }
.about-text.wide { max-width: 560px; }
.about-text { margin: 22px 0 0; max-width: 520px; font-size: clamp(16px, 1.35vw, 18px); color: var(--ink-2); line-height: 1.6; }
.mission { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--pad) clamp(100px, 12vw, 160px); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.panel { border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line); padding: 28px; }
.panel-k { margin: 0 0 10px; font: 500 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--terra); }
.panel-k + .panel-big { margin: 0; font-size: 17px; letter-spacing: -0.02em; line-height: 1.45; font-weight: 500; }
.panel-k.spaced { margin: 26px 0 12px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.ticks li > span { flex: none; margin-top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--terra-100); display: grid; place-items: center; }
.values { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values-inner { max-width: 1180px; margin: 0 auto; padding: clamp(90px, 11vw, 150px) var(--pad); }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.value {
  padding: 26px 26px 30px; border-radius: 22px; background: #fff; border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.value:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(80, 40, 20, .4); border-color: var(--terra-100); }
.value-n { font: 500 12px/1 var(--mono); color: var(--terra); }
.value h3 { margin: 22px 0 10px; font-size: 24px; letter-spacing: -0.035em; font-weight: 600; line-height: 1.15; }
.value p { margin: 0; color: var(--ink-2); font-size: 15px; }
.team-section { max-width: 1180px; margin: 0 auto; padding: clamp(100px, 12vw, 160px) var(--pad); }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 56px; max-width: 75%; }
.member { margin: 0; padding: 14px 14px 26px; border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line); }
.member-photo { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #F4EEE9; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member figcaption { padding: 20px 10px 0; }
.member-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-head b { display: block; font-size: 22px; letter-spacing: -0.035em; font-weight: 600; }
.member-in {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line-2); color: var(--ink);
  transition: background .25s, border-color .25s, color .25s, transform .35s var(--ease);
}
.member-in:hover { background: var(--linkedin); border-color: var(--linkedin); color: #fff; transform: translateY(-2px); }
.member-role { display: block; margin-top: 6px; font: 500 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--terra); }
.member p { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; }
.cta-band { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(60px, 7vw, 100px) var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band-title { margin: 0; font-size: clamp(34px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 600; }

/* ==========================================================================
   Privacy page
   ========================================================================== */
.privacy-intro { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 80% 0%, var(--terra-50), transparent 65%); }
.privacy-intro-inner { position: relative; max-width: 860px; margin: 0 auto; padding: 150px var(--pad) 0; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--terra); }
.crumbs span[aria-hidden] { opacity: .6; }
.privacy-title { margin: 0; font-size: clamp(40px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.055em; font-weight: 600; }
.updated { display: inline-flex; margin-top: 22px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .8); font: 500 12px/1 var(--mono); color: var(--ink-2); }
.privacy-lead { margin: 28px 0 0; font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); line-height: 1.6; }
.legal strong, .privacy-lead strong { color: var(--ink); font-weight: 600; }
.legal { max-width: 860px; margin: 0 auto; padding: 40px var(--pad) clamp(100px, 12vw, 150px); }
.toc { padding: 24px 26px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.legal .toc-k { margin: 0 0 16px; font: 500 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 34px; }
.toc li { break-inside: avoid; margin: 0 0 10px; font-size: 14.5px; }
.toc a { display: inline-flex; gap: 10px; color: var(--ink); }
.toc a:hover { color: var(--terra); }
.toc a span, .legal h2 span { font: 500 11px/1.9 var(--mono); color: var(--terra); letter-spacing: 0; }
.legal h2 {
  display: flex; align-items: baseline; gap: 12px;
  margin: 64px 0 18px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.035em; font-weight: 600; line-height: 1.15;
  scroll-margin-top: 100px;
}
.legal h2 span { font-size: 12px; line-height: 1; }
.legal h3 { margin: 26px 0 12px; font-size: 17px; letter-spacing: -0.02em; font-weight: 600; }
.legal p { margin: 0 0 14px; font-size: 16px; color: var(--ink-2); line-height: 1.65; }
.link { color: var(--terra); font-weight: 500; text-decoration: underline; text-decoration-color: var(--terra-100); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.link:hover { color: var(--terra-600); text-decoration-color: var(--terra-600); }
.idcard { display: grid; grid-template-columns: auto 1fr; gap: 12px 26px; margin: 0; padding: 22px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.idcard dt { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-top: 4px; }
.idcard dd { margin: 0; font-size: 15.5px; font-weight: 500; color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.table-wrap th { text-align: left; padding: 12px 18px; background: var(--bg-2); border-bottom: 1px solid var(--line); font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.table-wrap th:first-child { width: 34%; }
.table-wrap td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); line-height: 1.55; }
.table-wrap td:first-child { font-weight: 500; color: var(--ink); }
.table-wrap tr:last-child td { border-bottom: 0; }
.perm { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 20px; margin: 0 0 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.perm b { display: block; font-size: 16px; letter-spacing: -0.02em; font-weight: 600; }
.legal .perm p { margin: 4px 0 0; font-size: 15px; line-height: 1.55; }
.legal .perm p.perm-note { margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.bullets { list-style: none; margin: 0 0 16px; padding: 0; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 10px; font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.bullets li::before { content: ""; flex: none; margin-top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--terra); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hud { right: var(--pad); bottom: 100px; width: 260px; }
  .field-stage { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .phone-wrap { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .callout, .callout.row-1, .callout.row-2 { grid-row: auto; grid-column: auto; justify-self: start; text-align: left; flex-direction: row; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .int-diagram { display: none; }
  .int-chips { display: flex; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .btn-nav { padding: 0 14px; font-size: 13px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 120px; align-items: start; padding-bottom: 90vw; }
  .hero-title { font-size: clamp(44px, 12.5vw, 76px); }
  .hud { display: none; }
  .hero-foot-label { display: none; }
  .pipe-inner { grid-template-columns: 1fr; height: auto; min-height: 100vh; padding-top: 90px; gap: 20px; align-content: start; }
  .steps { margin-top: 20px; }
  .step:not(.is-active) { display: none; }
  .pipe-stage { height: 52vh; }
  .wins-grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash-charts { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .num:nth-child(3) { border-left: 0; padding-left: 0; }
  .cta-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form { padding: 22px 18px; border-radius: 22px; }
  .cta.is-booking .cta-inner { grid-template-columns: 1fr; }
  .demo-card { padding: 6px; border-radius: 22px; }
  .demo-card .form { padding: 18px 12px 14px; }
  .demo-tab { font-size: 13.5px; gap: 6px; padding: 11px 6px; }
  .cal-shell[data-state="idle"], .cal-shell[data-state="loading"], .cal-shell[data-state="failed"] { min-height: 420px; }
}
@media (max-width: 440px) {
  .demo-tab svg { display: none; }
  .deploy-grid { grid-template-columns: 1fr; }
  .field-stage { grid-template-columns: 1fr; }
  .phone { transform: scale(.9); }
  .q-card { left: var(--pad); right: var(--pad); width: auto; bottom: 30px; }

  /* about / privacy */
  .split, .values-grid, .team { grid-template-columns: 1fr; }
  .team { max-width: 420px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .toc ol { columns: 1; }
  .idcard { grid-template-columns: 1fr; gap: 2px 0; }
  .idcard dd { margin-bottom: 10px; }
}

/* ==========================================================================
   FAQ (home, before the demo CTA). Native <details>: content stays in the HTML.
   ========================================================================== */
.faq { padding: 0 0 clamp(90px, 11vw, 150px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; border-radius: 8px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; }
.faq-q { margin: 0; font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.3; transition: color .25s; }
.faq-item summary:hover .faq-q { color: var(--terra-600); }
.faq-icon {
  flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-2); background: #fff; transition: background .25s, border-color .25s;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px;
  border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease), background .25s;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--terra); border-color: var(--terra); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a { margin: -6px 0 0; padding: 0 58px 26px 0; max-width: 700px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }

/* About: full names next to the nicknames */
.member-name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.member-full { font-size: 14px; color: var(--muted); letter-spacing: -0.01em; }

/* Status pages (merci, 404): the page intro fills the first screen */
.page-intro.is-status .page-intro-inner { min-height: min(78svh, 760px); display: flex; flex-direction: column; justify-content: center; }
.status-mark {
  width: 64px; height: 64px; border-radius: 20px; margin-bottom: 30px; display: grid; place-items: center;
  background: var(--terra); color: #fff; box-shadow: 0 18px 40px -14px rgba(193, 103, 74, .7);
}
.status-code { font: 600 12px/1 var(--mono); }

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-head { position: static; }
  .faq-a { padding-right: 0; }
}

/* ==========================================================================
   Chat widget (js/chat-launcher.js + js/chat-panel.js)
   Bubble bottom-right on every public page; panel 380px on desktop, full screen on phones.
   ========================================================================== */
.chat-fab {
  /* Shelfbot standing bottom-right (terra variant, transparent). The whole box is the hit area. */
  --fab: 84px;
  position: fixed; z-index: 60;
  right: calc(10px + env(safe-area-inset-right, 0px)); bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  width: var(--fab); height: var(--fab); border-radius: 26px; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: transparent;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease-out), opacity .25s, visibility .25s, width .25s var(--ease-out), height .25s var(--ease-out),
    right .25s var(--ease-out), bottom .25s var(--ease-out), background .2s, box-shadow .2s;
}
.chat-fab:not(.is-in) { opacity: 0; transform: translateY(14px) scale(.9); }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
.chat-fab-bot {
  grid-area: 1 / 1; width: 100%; height: 100%; display: grid; place-items: center;
  filter: drop-shadow(0 6px 8px rgba(23, 18, 15, .16));
  transition: transform .25s var(--ease-out), opacity .2s;
}
/* Only the launcher's own icons: the Shelfbot SVG keeps its styles. */
.chat-fab .chat-fab-open, .chat-fab .chat-fab-close { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out), opacity .2s; }
.chat-fab .chat-fab-close { grid-area: 1 / 1; }
.chat-fab .chat-fab-dots { stroke-width: 2.6; }
.chat-fab .chat-fab-close { opacity: 0; transform: rotate(-45deg) scale(.6); }
/* Panel open: Shelfbot stays (above the panel layer), animated by the conversation; a click closes. */
.chat-fab[aria-expanded="true"] { z-index: 62; }
/* The ✕ icon is only used by the fallback launcher. */
.chat-fab:not(.is-fallback) .chat-fab-close { display: none; }
.chat-fab.is-fallback[aria-expanded="true"] .chat-fab-bot { opacity: 0; transform: scale(.6); }
.chat-fab.is-fallback[aria-expanded="true"] .chat-fab-close { opacity: 1; transform: none; }
/* Fallback without the mascot (shelfbot.js failed to load): the former terracotta bubble. */
.chat-fab.is-fallback { --fab: 58px; border-radius: 50%; background: var(--terra); right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.chat-fab.is-fallback .chat-fab-bot { filter: none; }
.chat-fab.is-loading .chat-fab-dots { animation: chat-blink 1s infinite; }
.chat-fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.chat-panel {
  position: fixed; z-index: 61;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(98px + env(safe-area-inset-bottom, 0px));
  width: 384px; height: min(620px, calc(100vh - 130px)); height: min(620px, calc(100dvh - 130px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(23, 18, 15, .35), 0 6px 18px rgba(23, 18, 15, .08);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom right;
  transition: opacity .2s var(--ease-out), transform .25s var(--ease-out);
}
.chat-panel.is-open { opacity: 1; transform: none; }
.chat-panel:focus { outline: none; }
:where(.chat-panel) a { color: inherit; }
:where(.chat-panel) button { font: inherit; color: inherit; }

.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; background: var(--terra); color: #fff; }
.chat-head-txt { flex: 1; min-width: 0; }
.chat-head h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.chat-head p { margin: 0; font-size: 12.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-icon-btn { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.chat-icon-btn:hover { background: rgba(255, 255, 255, .16); }
.chat-icon-btn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.chat-icon-btn svg, .chat-mini svg, .chat-send svg, .chat-retry svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chat-panel:not(.is-chat) [data-attr="reset"] { display: none; }

.chat-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; background: var(--bg-2); }
.chat-home { padding: 20px 16px 14px; }
.chat-hello { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.chat-hello-sub { margin: 6px 0 14px; color: var(--ink-2); font-size: 14.5px; }
.chat-suggest { margin-top: 4px; }
.chat-suggest-k { margin: 0 0 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-chip {
  text-align: left; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff;
  cursor: pointer; font-size: 13px; line-height: 1.35; color: var(--ink-2); transition: border-color .2s, color .2s;
}
.chat-chip:hover { border-color: var(--terra); color: var(--terra-700); }
.chat-chip.is-suggested { border-color: var(--terra); background: var(--terra-50); color: var(--terra-700); }
.chat-chip:focus-visible { outline: 2px solid var(--terra); outline-offset: 1px; }

.chat-view { padding: 14px 12px 6px; }
.chat-log { display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; overflow-wrap: anywhere; }
.chat-msg p { margin: 0; }
.chat-msg p + p, .chat-msg p + ul, .chat-msg p + ol, .chat-msg ul + p, .chat-msg ol + p { margin-top: 8px; }
.chat-msg ul, .chat-msg ol { margin: 4px 0 0; padding-left: 20px; }
.chat-msg li + li { margin-top: 3px; }
.chat-msg a { color: var(--terra-700); text-decoration: underline; text-underline-offset: 2px; }
.chat-msg strong { font-weight: 600; }
.chat-msg-assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat-msg-user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.chat-msg-intro { color: var(--ink-2); }
.chat-msg.is-error { background: var(--terra-50); border-color: var(--terra-100); color: var(--terra-700); }
.chat-retry { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--terra-300); background: #fff; cursor: pointer; font-size: 13px; }
.chat-retry:focus-visible { outline: 2px solid var(--terra); outline-offset: 1px; }
.chat-typing { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.chat-typing-bot { flex: none; width: 26px; height: 26px; }
.chat-msg.is-typing { padding: 7px 13px 7px 9px; }
@keyframes chat-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat-inline-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.chat-foot { border-top: 1px solid var(--line); background: #fff; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
.chat-shortcuts { display: flex; flex-wrap: nowrap; gap: 4px; padding: 2px 0 8px; min-width: 0; }
.chat-shortcuts .chat-mini { flex: 0 1 auto; min-width: 0; }
.chat-shortcuts .chat-mini span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-mini svg { flex: none; }
.chat-panel:not(.is-chat) .chat-mini-callback { display: none; }
.chat-mini {
  flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px 5px 7px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap; color: var(--ink-2);
}
.chat-mini:hover { border-color: var(--terra-300); color: var(--terra-700); }
.chat-mini-whatsapp svg { color: #1E8E4E; }
.chat-mini:focus-visible { outline: 2px solid var(--terra); outline-offset: 1px; }
.chat-field { display: flex; align-items: flex-end; gap: 8px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 6px 6px 6px 12px; transition: border-color .2s; }
.chat-field:focus-within { border-color: var(--terra); }
.chat-input { flex: 1; border: 0; background: transparent; resize: none; font: 15px/1.45 var(--sans); color: var(--ink); padding: 6px 0; max-height: 120px; outline: none; }
.chat-send { flex: none; width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--terra); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-send:hover { background: var(--terra-600); }
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-send:focus-visible { outline: 2px solid var(--terra-700); outline-offset: 2px; }
.chat-count { display: block; text-align: right; font: 11px var(--mono); color: var(--muted); margin-top: 3px; }
.chat-note { margin: 6px 2px 0; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.chat-note a { text-decoration: underline; text-underline-offset: 2px; }
/* Turnstile: collapsed (but rendered) unless Cloudflare asks for a visible check. */
.chat-ts { display: flex; justify-content: center; height: 0; overflow: hidden; }
.chat-ts.is-interactive { height: auto; overflow: visible; margin-bottom: 6px; }

.chat-lead { margin-top: 10px; padding: 14px; background: #fff; border: 1px solid var(--terra-100); border-radius: 16px; display: grid; gap: 8px; }
.chat-lead-title { margin: 0; font-weight: 600; }
.chat-lead-sub, .chat-lead-legal { margin: 0; font-size: 13px; color: var(--ink-2); }
.chat-lead-legal { font-size: 12px; color: var(--muted); }
.chat-lead-legal a { text-decoration: underline; }
.chat-lead-field input { width: 100%; font: 14.5px var(--sans); padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--ink); }
.chat-lead-field input:focus { outline: none; border-color: var(--terra); background: #fff; }
.chat-lead-err { margin: 0; font-size: 13px; color: var(--terra-700); }
.chat-lead-err:empty { display: none; }
.chat-lead-btns { display: flex; gap: 8px; }
.chat-lead-send { flex: 1; font-size: 14.5px; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--terra); color: #fff !important; font-weight: 600; cursor: pointer; }
.chat-lead-send:disabled { opacity: .6; }
.chat-lead-cancel { padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; }
.chat-lead.is-done { border-color: #CFE8D8; background: #F1FAF4; color: #245C3C; font-size: 14px; }
.chat-lead.is-done p { margin: 0; }

/* Nudge bubble (js/chat-nudges.js): above the launcher, tail pointing at it. */
/* Nudge bubble (js/chat-nudges.js): left of Shelfbot's head, tail pointing at his screen. */
.chat-nudge {
  position: fixed; z-index: 60;
  right: calc(98px + env(safe-area-inset-right, 0px)); bottom: calc(46px + env(safe-area-inset-bottom, 0px));
  max-width: min(280px, calc(100vw - 120px)); display: flex; align-items: flex-start; gap: 2px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 16px 16px 4px 16px;
  box-shadow: 0 14px 34px -12px rgba(23, 18, 15, .32), 0 2px 6px rgba(23, 18, 15, .06);
  opacity: 0; transform: translateX(8px) scale(.94); transform-origin: right bottom;
  transition: opacity .2s var(--ease-out), transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.chat-nudge.is-in { opacity: 1; transform: none; }
.chat-nudge::after {
  content: ""; position: absolute; right: -7px; bottom: 12px; width: 12px; height: 12px;
  background: #fff; border-right: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg);
}
.chat-nudge-text {
  flex: 1; border: 0; background: none; text-align: left; cursor: pointer; padding: 11px 4px 11px 14px;
  font: 500 14px/1.4 var(--sans); color: var(--ink); border-radius: 16px;
}
.chat-nudge-text:hover { color: var(--terra-700); }
.chat-nudge-text:focus-visible, .chat-nudge-close:focus-visible { outline: 2px solid var(--terra); outline-offset: 1px; }
.chat-nudge-close {
  flex: none; width: 28px; height: 28px; margin: 6px 6px 0 0; border: 0; border-radius: 8px; background: none;
  display: grid; place-items: center; color: var(--muted); cursor: pointer;
}
.chat-nudge-close:hover { background: var(--bg-2); color: var(--ink); }
.chat-nudge-close svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.chat-is-open .chat-nudge { display: none; }
.chat-fab.is-wiggle { animation: chat-wiggle .7s var(--ease-out) 1; }
@keyframes chat-wiggle {
  0%, 100% { transform: none; } 20% { transform: rotate(-10deg) scale(1.06); } 40% { transform: rotate(8deg) scale(1.06); }
  60% { transform: rotate(-5deg); } 80% { transform: rotate(3deg); }
}

@media (max-width: 640px) {
  .chat-nudge { right: calc(78px + env(safe-area-inset-right, 0px)); bottom: calc(34px + env(safe-area-inset-bottom, 0px)); max-width: min(250px, calc(100vw - 96px)); }
  .chat-nudge-text { font-size: 13.5px; padding: 10px 2px 10px 12px; }
  .chat-fab { --fab: 66px; right: calc(6px + env(safe-area-inset-right, 0px)); bottom: calc(6px + env(safe-area-inset-bottom, 0px)); border-radius: 20px; }
  .chat-fab.is-tucked { opacity: 0; visibility: hidden; transform: translateY(12px); }
  .chat-is-open .chat-fab.is-tucked { opacity: 1; visibility: visible; transform: none; }
  .chat-is-open, .chat-is-open body { overflow: hidden; }
  /* Near full screen, ending above Shelfbot, who stands at the corner over the panel's edge. */
  .chat-panel {
    inset: 0 0 auto 0; bottom: calc(56px + env(safe-area-inset-bottom, 0px)); width: auto; height: auto;
    border-radius: 0 0 20px 20px; border: 0; transform: translateY(24px);
    box-shadow: 0 0 0 100vmax rgba(23, 18, 15, .28), 0 12px 30px -10px rgba(23, 18, 15, .3);
  }
  .chat-foot { padding-bottom: 12px; }
  .chat-note { padding-right: 62px; }
  .chat-head { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  .chat-input { font-size: 16px; } /* no zoom on focus (iOS) */
}
@media (prefers-reduced-motion: reduce) {
  .chat-fab, .chat-panel, .chat-fab svg, .chat-fab-bot, .chat-nudge { transition: none; }
  .chat-fab.is-wiggle { animation: none; }
}

/* ==========================================================================
   Resource pages (releve-lineaire, part-de-lineaire, audit-rayon, glossaire-merchandising,
   pharmacie, grande-distribution, bricolage). Long-form French SEO pages: they reuse the privacy
   intro (.privacy-intro, .crumbs, .privacy-title, .updated) and the .legal column (numbered h2,
   .bullets, .table-wrap, .toc); the blocks below are theirs.
   ========================================================================== */
.legal.doc { max-width: 900px; --muted: #6E645E; }
.legal a:not(.btn) { color: var(--terra-600); font-weight: 500; text-decoration: underline; text-decoration-color: var(--terra-100); text-underline-offset: 3px; }
.legal a:not(.btn):hover { color: var(--terra-700); text-decoration-color: var(--terra-700); }
.toc a, .legal .toc a { color: var(--ink); text-decoration: none; font-weight: 400; }
.legal ol.olist { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: n; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.legal ol.olist > li { counter-increment: n; position: relative; padding: 16px 18px 16px 58px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.legal ol.olist > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 18px; top: 17px; font: 600 12px/1.9 var(--mono); color: var(--terra); }
.legal ol.olist > li b { color: var(--ink); font-weight: 600; }
.formula { margin: 0 0 18px; padding: 20px 22px; border-radius: 16px; background: var(--terra-50); border: 1px solid var(--terra-100); }
.formula p { margin: 0; }
.formula .formula-k { margin: 0 0 8px; font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--terra-700); }
.legal .formula .formula-eq { font: 500 clamp(15px, 1.6vw, 18px)/1.5 var(--mono); color: var(--ink); letter-spacing: -0.01em; }
.note-box { margin: 6px 0 22px; padding: 18px 20px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.legal .note-box p { margin: 0; font-size: 15px; }
.legal .note-box p + p { margin-top: 8px; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 30px 0; padding: 22px 24px; border-radius: 20px; background: var(--ink); color: #fff; }
.legal .inline-cta p { margin: 0; max-width: 520px; color: rgba(255, 255, 255, .85); font-size: 15.5px; }
.legal .inline-cta p b { color: #fff; }
.table-wrap.cmp th:first-child { width: 24%; }
.table-wrap.cmp td:last-child { color: var(--ink); background: var(--terra-50); }
.table-wrap.cmp th:last-child { color: var(--terra-700); background: var(--terra-100); }

/* FAQ inside an article: same markup as the home FAQ (checked against the FAQPage JSON-LD). */
.legal .faq-list { margin-top: 8px; }
.legal .faq-q { margin: 0; font-size: clamp(17px, 1.5vw, 19px); }
.legal .faq-item summary { padding: 20px 0; }
.legal p.faq-a { margin: -4px 0 0; padding: 0 0 22px; font-size: 16px; }

/* Related resources (end of each page) */
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0 0 10px; padding: 0; list-style: none; }
.legal .related a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s var(--ease-out); }
.legal .related a:hover { border-color: var(--terra-300); transform: translateY(-2px); color: var(--ink); }
.related b { font-size: 16px; letter-spacing: -0.02em; font-weight: 600; }
.related span { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Share-of-shelf calculator (js/sos-calculator.js) */
.calc { margin: 0 0 22px; padding: clamp(20px, 3vw, 30px); border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line); }
.calc fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.calc legend { padding: 0; margin: 0 0 10px; font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.calc-modes { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); }
.calc-modes label { position: relative; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.calc-modes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.calc-modes label:has(input:checked) { background: var(--ink); color: #fff; }
.calc-modes label:has(input:focus-visible) { outline: 2px solid var(--terra); outline-offset: 2px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.calc-field { display: grid; gap: 6px; align-content: start; }
.calc-field label { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.calc-field small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.calc-field input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff;
  font: 500 16px/1 var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.calc-field input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-100); }
.calc-field input[aria-invalid="true"] { border-color: #B0301E; }
.legal .calc-sep { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 14px; border-top: 1px dashed var(--line-2); font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.calc-out { margin-top: 20px; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.calc-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.calc-big output { font-size: clamp(40px, 6vw, 56px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--terra); }
.calc-big span { font-size: 14px; color: var(--muted); }
.calc-bar { position: relative; height: 10px; margin: 16px 0 6px; border-radius: 99px; background: var(--line); overflow: visible; }
.calc-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--terra); transition: width .35s var(--ease-out); }
.calc-bar b { position: absolute; top: -5px; width: 2px; height: 20px; background: var(--ink); border-radius: 2px; }
.calc-bar b[hidden] { display: none; }
.legal .calc-lines { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.legal .calc-lines li { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.legal .calc-lines li b { color: var(--ink); }
.legal .calc-err { margin: 12px 0 0; color: #B0301E; font-size: 14px; font-weight: 500; }

/* Printable audit checklist (audit-rayon) */
.check-head { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 0 0 18px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.check-head span { display: flex; align-items: flex-end; gap: 8px; font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.check-head span::after { content: ""; flex: 1; border-bottom: 1px dotted var(--line-2); height: 1em; }
.checklist { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table-wrap .checklist caption { caption-side: top; text-align: left; padding: 14px 18px; font-size: 15px; font-weight: 600; color: var(--ink); background: var(--bg-2); border-bottom: 1px solid var(--line); letter-spacing: -0.01em; }
.table-wrap .checklist th:first-child { width: auto; }
.table-wrap .checklist th.c, .table-wrap .checklist td.c { width: 64px; text-align: center; }
.table-wrap .checklist td.obs { width: 26%; }
.checklist input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--terra); }
.table-wrap .checklist td:first-child { font-weight: 400; color: var(--ink-2); }
.check-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 22px; }

/* Glossary */
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.legal .letters a { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: 600 14px/1 var(--mono); color: var(--ink); text-decoration: none; }
.legal .letters a:hover { border-color: var(--terra); color: var(--terra); }
.glossary { margin: 0; }
.term { padding: 20px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.term:target { background: linear-gradient(90deg, var(--terra-50), transparent); margin: 0 -16px; padding: 20px 16px; border-radius: 12px; }
.term dt { font-size: 19px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.term dt dfn { font-style: normal; }
.term dt small { margin-left: 8px; font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: 0; }
.term dd { margin: 8px 0 0; font-size: 16px; color: var(--ink-2); line-height: 1.65; }
.term dd + dd { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

@media (max-width: 640px) {
  .calc-grid, .check-head { grid-template-columns: 1fr; }
  .footer-cols { flex-wrap: wrap; gap: 28px 40px; }
  .legal ol.olist > li { padding-left: 50px; }
  .legal ol.olist > li::before { left: 16px; }
  .table-wrap .checklist th.c, .table-wrap .checklist td.c { width: 44px; padding-left: 6px; padding-right: 6px; }
  .table-wrap .checklist td.obs, .table-wrap .checklist th.obs { display: none; }
}

/* Print: resource pages print as clean documents; "Imprimer la grille" prints the checklist only. */
@media print {
  @page { margin: 14mm; }
  .nav, .footer, .cta, .chat-fab, .chat-nudge, .chat-panel, .inline-cta, .check-actions, .related-wrap, .hero-dots, .no-print { display: none !important; }
  body { background: #fff; }
  .privacy-intro { background: none; }
  .privacy-intro-inner { padding-top: 0; }
  .legal { padding-bottom: 0; }
  .legal h2 { break-after: avoid; margin-top: 28px; }
  .table-wrap { overflow: visible; border-color: #bbb; }
  .table-wrap tr { break-inside: avoid; }
  .faq-item:not([open]) .faq-a { display: block; }
  html[data-print="checklist"] main > *:not(.legal), html[data-print="checklist"] .legal > *:not(#grille) { display: none !important; }
  html[data-print="checklist"] #grille { display: block !important; }
  html[data-print="checklist"] #grille > *:not(.print-keep) { display: none !important; }
  .print-only { display: block !important; }
  .table-wrap .checklist caption { background: #f3f3f3; }
  /* Compact checklist: fits on two A4 pages */
  #grille h2 { margin-top: 0; padding-top: 0; border-top: 0; font-size: 20px; }
  #grille .check-head { padding: 10px 14px; margin-bottom: 10px; gap: 14px 18px; }
  #grille .table-wrap { margin-bottom: 8px; border-radius: 8px; }
  .table-wrap .checklist { font-size: 12px; }
  .table-wrap .checklist caption { padding: 6px 12px; font-size: 13px; }
  .table-wrap .checklist th, .table-wrap .checklist td { padding: 5px 12px; line-height: 1.35; }
  .table-wrap .checklist td.obs, .table-wrap .checklist th.obs { width: 34%; }
  .checklist input[type="checkbox"] { width: 14px; height: 14px; }
}
.print-only { display: none; }

/* Small phones: keep logo, FR/EN and the demo button on one line without overflowing. */
@media (max-width: 420px) {
  .nav { gap: 8px; padding-left: 12px; padding-right: 6px; }
  .nav-actions { gap: 6px; }
  .lang button { min-width: 30px; padding: 0 7px; }
  .btn-nav { height: 36px; padding: 0 11px; font-size: 12.5px; }
}

/* Team browser pill (js/team.js): bottom-left, team browsers only, out of the chat launcher's way. */
.team-pill {
  position: fixed; z-index: 55;
  left: calc(10px + env(safe-area-inset-left, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line-2); color: var(--ink-2);
  font: 500 11px/1.2 var(--mono); letter-spacing: .01em; text-decoration: none; opacity: .85;
  box-shadow: 0 4px 14px -8px rgba(23, 18, 15, .3);
}
.team-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3F9B5B; }
.team-pill:hover { opacity: 1; color: var(--ink); }
@media print { .team-pill { display: none; } }
