/* ==========================================================================
   Élan — Agence IA et Automatisation
   Design system + composants
   ========================================================================== */

/* ---------- 0. Polices (auto-hébergées, sous-ensemble latin — licence OFL) ---------- */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/geist-latin.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/geist-mono-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2"); }

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;

  /* Couleurs */
  --ground: #F5F1E8;        /* ivoire chaud — fond général */
  --surface: #FBF9F4;       /* surfaces claires */
  --surface-2: #EEE8DC;     /* surfaces secondaires */
  --ink: #17191A;           /* texte principal */
  --ink-2: #45443F;         /* texte secondaire */
  --muted: #77736A;         /* légendes */
  --line: #E1DACC;          /* bordures */
  --line-strong: #CCC3B1;
  --accent: #0E5A4B;        /* émeraude profonde — couleur d'accent unique */
  --accent-ink: #093F35;    /* hover / pressed */
  --accent-soft: #DDEBE4;   /* fonds d'état actif */
  --accent-bright: #2A9A7B; /* visualisation vocale */
  --success: #1E7A4F;
  --danger: #A8321F;
  --danger-soft: #F6E3DC;

  /* Typographie */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-display: clamp(2.65rem, 1.35rem + 5.2vw, 5.6rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.7vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .55vw, 1.6rem);
  --fs-lead: clamp(1.075rem, 1rem + .35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-xs: .8125rem;
  --fs-label: .75rem;

  /* Espacements (échelle 4px) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);

  /* Mise en page */
  --max: 1240px;
  --max-text: 38rem;
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);

  /* Formes */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-float: 0 1px 1px rgba(23, 25, 26, .04), 0 12px 32px -12px rgba(23, 25, 26, .18), 0 32px 64px -32px rgba(23, 25, 26, .16);
  --shadow-soft: 0 1px 2px rgba(23, 25, 26, .05), 0 8px 24px -16px rgba(23, 25, 26, .18);

  /* Mouvement */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 700ms;

  --nav-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
figure { margin: 0; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.05; letter-spacing: -.028em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--surface); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--ink); color: var(--surface); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm); text-decoration: none; font-size: var(--fs-small);
}
.skip-link:focus { top: var(--s-4); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Mise en page ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section--flush { padding-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 14px; height: 1px; background: currentColor; opacity: .7;
}
.eyebrow--plain::before { display: none; }

.section-head { display: grid; gap: var(--s-5); max-width: 52rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { font-size: var(--fs-lead); color: var(--ink-2); max-width: var(--max-text); line-height: 1.5; }

.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- 4. Boutons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--surface); --btn-bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: 0 1.35rem;
  border-radius: var(--r-pill); border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--fs-small); font-weight: 500; letter-spacing: -.005em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .arrow { width: 14px; height: 14px; transition: transform var(--t-med) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary { --btn-bg: var(--accent); --btn-bd: var(--accent); --btn-fg: #F7F4EC; }
.btn--primary:hover { --btn-bg: var(--accent-ink); --btn-bd: var(--accent-ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: var(--ink); --btn-bg: rgba(23, 25, 26, .03); }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: var(--fs-xs); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--fs-small); font-weight: 500; color: var(--accent);
  text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color var(--t-fast) var(--ease);
}
.link-arrow:hover { border-color: currentColor; }
.link-arrow svg { width: 13px; height: 13px; }

/* Indicateur "live" */
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); flex: none; }

/* ---------- 5. Navigation ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  height: var(--nav-h);
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.nav.is-scrolled {
  background: rgba(245, 241, 232, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; }
.brand__name { font-size: 1.28rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.brand__tag { font-size: var(--fs-label); color: var(--muted); font-family: var(--font-mono); letter-spacing: .04em; padding-left: .7rem; margin-left: .15rem; border-left: 1px solid var(--line-strong); line-height: 1.2; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, .4rem + 1.4vw, 2.25rem); }
.nav__links a {
  font-size: var(--fs-small); color: var(--ink-2); text-decoration: none; position: relative; padding-block: .4rem;
  transition: color var(--t-fast) var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: var(--s-3); }

.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: transparent; align-items: center; justify-content: center;
}
.nav__toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; transition: background var(--t-fast); }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink); transition: transform var(--t-med) var(--ease);
}
.nav__toggle span::before { top: -5px; } .nav__toggle span::after { top: 5px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: var(--ground);
  padding: var(--s-6) var(--gutter) calc(var(--s-7) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: var(--s-6);
  overflow-y: auto;
}
.mobile-menu ul { display: grid; }
.mobile-menu li a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
  font-size: 1.6rem; letter-spacing: -.03em; text-decoration: none;
}
.mobile-menu li a span { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--muted); letter-spacing: .06em; }
.mobile-menu .btn { width: 100%; }

/* ---------- 6. Hero ---------- */
.hero { padding-top: clamp(2rem, 1rem + 4vw, 5rem); padding-bottom: clamp(3.5rem, 2rem + 5vw, 7rem); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 1rem + 4vw, 5.5rem); align-items: center;
}
.hero__copy { display: grid; gap: var(--s-6); }
.hero h1 { font-size: var(--fs-display); line-height: .98; letter-spacing: -.045em; }
.hero h1 .serif { letter-spacing: -.02em; color: var(--accent); }
.hero__lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 34rem; line-height: 1.5; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__note { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-xs); color: var(--muted); }
.hero__note .dot { box-shadow: 0 0 0 4px rgba(42, 154, 123, .15); }

.hero__visual { position: relative; padding-bottom: clamp(3rem, 2rem + 4vw, 5rem); }
.hero__photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.6;
  margin-left: clamp(0rem, -2rem + 8vw, 4.5rem); background: var(--surface-2);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 40%; }
.hero__photo figcaption {
  position: absolute; right: var(--s-4); top: var(--s-4);
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase;
  color: #F7F4EC; background: rgba(23, 25, 26, .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: .4rem .65rem; border-radius: var(--r-pill);
}

/* Carte d'appel (visuel produit du hero) */
.callcard {
  position: absolute; left: 0; bottom: 0; width: min(390px, 92%);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-float); overflow: hidden;
}
.callcard__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: .9rem 1.1rem; border-bottom: 1px solid var(--line);
}
.callcard__who { display: grid; gap: 2px; }
.callcard__who strong { font-size: var(--fs-small); font-weight: 600; letter-spacing: -.01em; }
.callcard__who span { font-size: var(--fs-label); color: var(--muted); font-family: var(--font-mono); letter-spacing: .02em; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  font-size: var(--fs-label); font-weight: 500; padding: .3rem .6rem; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent);
}
.callcard__body { padding: 1rem 1.1rem; display: grid; gap: .6rem; }
.line { display: grid; grid-template-columns: 52px 1fr; gap: .6rem; font-size: var(--fs-xs); line-height: 1.45; }
.line b { font-family: var(--font-mono); font-weight: 500; color: var(--muted); font-size: .6875rem; letter-spacing: .04em; text-transform: uppercase; padding-top: 1px; }
.line--ai b { color: var(--accent); }
.line p { color: var(--ink-2); }
.line--ai p { color: var(--ink); }
.callcard__foot {
  display: grid; grid-template-columns: auto 1fr; gap: .15rem .7rem; align-items: center;
  padding: .85rem 1.1rem; background: var(--surface-2); border-top: 1px solid var(--line);
}
.callcard__foot svg { grid-row: span 2; width: 26px; height: 26px; color: var(--success); }
.callcard__foot strong { font-size: var(--fs-xs); font-weight: 600; }
.callcard__foot span { font-size: var(--fs-label); color: var(--ink-2); font-family: var(--font-mono); }

/* Bande métiers */
.trades {
  border-block: 1px solid var(--line);
  padding-block: 1.15rem;
}
.trades__inner { display: flex; flex-wrap: wrap; align-items: center; column-gap: clamp(1rem, .5rem + 2vw, 2.75rem); row-gap: .5rem; }
.trades__label { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-right: auto; }
.trades__list { display: flex; flex-wrap: wrap; column-gap: clamp(1rem, .5rem + 2vw, 2.5rem); row-gap: .35rem; }
.trades__list li { font-size: var(--fs-small); color: var(--ink-2); }

/* ---------- 7. Démo vocale ---------- */
.demo { background: var(--surface); border-block: 1px solid var(--line); }
.demo__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start;
}
.demo__intro { display: grid; gap: var(--s-5); position: sticky; top: calc(var(--nav-h) + 24px); }
.demo__intro h2 { font-size: var(--fs-h2); }
.demo__intro > p { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.5; }

.picker { display: grid; border-top: 1px solid var(--line); margin-top: var(--s-3); }
.picker__btn {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: var(--s-4);
  width: 100%; padding: .7rem 0; background: none; border: 0; border-bottom: 1px solid var(--line);
  text-align: left; transition: background var(--t-fast) var(--ease);
}
.picker__btn img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; filter: saturate(.85); transition: filter var(--t-med) var(--ease); }
.picker__btn span { display: grid; gap: 1px; }
.picker__btn strong { font-weight: 500; font-size: var(--fs-body); letter-spacing: -.015em; }
.picker__btn small { font-size: var(--fs-xs); color: var(--muted); }
.picker__btn i {
  font-style: normal; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; transition: all var(--t-med) var(--ease);
}
.picker__btn i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; transition: background var(--t-med) var(--ease); }
.picker__btn:hover strong { color: var(--accent); }
.picker__btn[aria-checked="true"] i { border-color: var(--accent); }
.picker__btn[aria-checked="true"] i::after { background: var(--accent); }
.picker__btn[aria-checked="true"] img { filter: none; }
.picker__btn:disabled { cursor: not-allowed; opacity: .55; }

.console {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-float);
  isolation: isolate;
}
.console__bg { position: absolute; inset: 0 0 auto 0; height: 250px; z-index: -1; }
.console__bg img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t-slow) var(--ease); }
.console__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(251, 249, 244, .15) 0%, rgba(251, 249, 244, .55) 45%, var(--surface) 100%);
}
.console__inner { display: grid; gap: var(--s-6); padding: clamp(1.25rem, .8rem + 2vw, 2.25rem); padding-top: 150px; min-height: 600px; align-content: space-between; }
.console__top { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); }
.console__biz { display: grid; gap: .35rem; }
.console__biz span { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.console__biz strong { font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.5rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.console__timer { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.console__timer b { display: block; font-weight: 500; font-size: 1.25rem; color: var(--ink); letter-spacing: .02em; }

.status {
  display: inline-flex; align-items: center; gap: .55rem; justify-self: start;
  font-size: var(--fs-xs); font-weight: 500; padding: .42rem .8rem; border-radius: var(--r-pill);
  background: var(--ground); border: 1px solid var(--line); color: var(--ink-2);
}
.status .dot { background: var(--line-strong); }
.console[data-state="connecting"] .status .dot,
.console[data-state="requesting"] .status .dot { background: #C99A2E; animation: blink 1s ease-in-out infinite; }
.console[data-state="listening"] .status { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.console[data-state="listening"] .status .dot { background: var(--accent-bright); }
.console[data-state="speaking"] .status { background: var(--accent); border-color: var(--accent); color: #F7F4EC; }
.console[data-state="speaking"] .status .dot { background: #9BE3C9; animation: blink .8s ease-in-out infinite; }
.console[data-state^="error"] .status { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.console[data-state^="error"] .status .dot { background: var(--danger); }
@keyframes blink { 50% { opacity: .35; } }

.wave { height: 110px; width: 100%; }
.console__center { display: grid; gap: var(--s-5); }
.transcript { min-height: 3.2em; font-size: var(--fs-lead); line-height: 1.45; color: var(--ink); letter-spacing: -.01em; max-width: 36rem; }
.transcript small { display: block; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.transcript a { color: var(--accent); }

.try { display: grid; gap: .5rem; }
.try p { font-size: var(--fs-small); color: var(--muted); }
.try p + p { font-size: var(--fs-lead); color: var(--ink); font-family: var(--font-serif); font-style: italic; line-height: 1.35; }
.try q { quotes: "« " " »"; }

.console__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.callbtn {
  display: inline-flex; align-items: center; gap: .75rem; min-height: 58px; padding: 0 1.6rem 0 .5rem;
  border-radius: var(--r-pill); border: 0; background: var(--accent); color: #F7F4EC;
  font-size: var(--fs-body); font-weight: 500; letter-spacing: -.01em;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
  box-shadow: 0 10px 24px -12px rgba(14, 90, 75, .55);
}
.callbtn__ico { width: 44px; height: 44px; border-radius: 50%; background: #F7F4EC; color: var(--accent); display: grid; place-items: center; transition: background var(--t-fast), color var(--t-fast), transform var(--t-med) var(--ease); }
.callbtn__ico svg { width: 18px; height: 18px; }
.callbtn:hover { background: var(--accent-ink); }
.callbtn:active { transform: scale(.98); }
.callbtn--end { background: var(--ink); box-shadow: none; }
.callbtn--end:hover { background: #000; }
.callbtn--end .callbtn__ico { background: var(--danger); color: #fff; transform: rotate(135deg); }
.callbtn:disabled { opacity: .6; cursor: progress; }
.console__legal { font-size: var(--fs-label); color: var(--muted); max-width: 30rem; line-height: 1.5; }

.alert {
  display: grid; gap: .35rem; padding: .9rem 1rem; border-radius: var(--r-md);
  background: var(--danger-soft); font-size: var(--fs-small); color: #6E2416;
}
.alert strong { color: var(--danger); font-weight: 600; }
.alert a { color: var(--danger); font-weight: 500; }

.sample { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.sample summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-small); color: var(--ink-2);
}
.sample summary:hover { color: var(--accent); }
.sample summary::-webkit-details-marker { display: none; }
.sample summary::before { content: "+"; font-family: var(--font-mono); width: 1rem; color: var(--accent); }
.sample[open] summary::before { content: "\2013"; }
.sample__lines { display: grid; gap: .6rem; margin-top: var(--s-4); }

/* ---------- 8. Journée type (problème → solution) ---------- */
.day { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.day__aside { display: grid; gap: var(--s-6); align-content: start; position: sticky; top: calc(var(--nav-h) + 24px); }
.day__aside h2 { font-size: var(--fs-h2); }
.day__aside p { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.5; }
.day__photo { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; }
.day__photo img { width: 100%; height: 100%; object-fit: cover; }

.timeline { border-top: 1px solid var(--ink); }
.tl-head {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5);
  padding: .8rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.tl-head span:last-child { color: var(--accent); }
.tl-row {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5);
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
}
.tl-row time { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .1rem; }
.tl-row h3 { font-size: 1.125rem; letter-spacing: -.02em; line-height: 1.25; margin-bottom: .35rem; font-weight: 500; }
.tl-row p { font-size: var(--fs-small); color: var(--ink-2); line-height: 1.55; }
.tl-fix { position: relative; padding-left: 1.1rem; }
.tl-fix::before { content: ""; position: absolute; left: 0; top: .5rem; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tl-fix h3 { color: var(--accent); }
.tl-fix .tag { display: inline-block; margin-top: .6rem; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .04em; color: var(--muted); }

/* ---------- 9. Solutions ---------- */
.solutions__group { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); border-top: 1px solid var(--line-strong); }
.solutions__group:last-child { border-bottom: 1px solid var(--line-strong); }
.group-head { display: grid; gap: .6rem; align-content: start; }
.group-head h3 { font-size: var(--fs-h3); letter-spacing: -.025em; }
.group-head p { font-size: var(--fs-small); color: var(--muted); max-width: 16rem; }

.services { display: grid; gap: 0; }
.service { display: grid; gap: var(--s-4); padding-block: 1.6rem; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.service__top h4 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.85rem); font-weight: 500; letter-spacing: -.03em; }
.chan { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.service__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.service__grid div { display: grid; gap: .3rem; align-content: start; }
.service__grid dt { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.service__grid dd { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.service__grid .ex dd { color: var(--ink); font-style: italic; font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.4; }

.services--compact .service__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- 10. Métiers ---------- */
.trades-tabs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.trades-tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 44px; padding: 0 1.1rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: transparent; font-size: var(--fs-small); color: var(--ink-2);
  transition: all var(--t-fast) var(--ease);
}
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }

.trade { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 1rem + 3.5vw, 5rem); align-items: start; }
.trade__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.trade__media img { width: 100%; height: 100%; object-fit: cover; }
.trade__media figcaption {
  position: absolute; left: var(--s-4); bottom: var(--s-4); right: var(--s-4);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  padding: .7rem .9rem; border-radius: var(--r-md);
  background: rgba(251, 249, 244, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: var(--fs-xs);
}
.trade__media figcaption strong { font-weight: 600; }
.trade__media figcaption span { font-family: var(--font-mono); color: var(--muted); font-size: var(--fs-label); }

.trade__body { display: grid; gap: var(--s-6); }
.trade__quote { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.75rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 500; }
.trade__quote .serif { color: var(--accent); }
.trade__intro { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.5; max-width: 36rem; }

.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: flow; border-top: 1px solid var(--line); }
.flow li { position: relative; padding: 1rem .9rem 0 0; display: grid; gap: .3rem; align-content: start; }
.flow li::before {
  counter-increment: flow; content: counter(flow, decimal-leading-zero);
  font-family: var(--font-mono); font-size: var(--fs-label); color: var(--accent); letter-spacing: .04em;
}
.flow li::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.flow strong { font-size: var(--fs-small); font-weight: 600; letter-spacing: -.01em; }
.flow span { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.45; }

.trade__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
.trade__cols h4 { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: .8rem; }
.checks { display: grid; gap: .55rem; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: .6rem; font-size: var(--fs-small); color: var(--ink-2); line-height: 1.45; }
.checks li::before {
  content: ""; width: 14px; height: 14px; margin-top: .22rem; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%230E5A4B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { font-size: var(--fs-xs); padding: .38rem .7rem; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.trade__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); padding-top: var(--s-2); }

/* ---------- 11. Méthode ---------- */
.method { background: var(--surface); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.step { display: grid; gap: var(--s-4); padding: 0 clamp(1rem, .5rem + 2vw, 2.5rem) 0 0; align-content: start; }
.step__rail { position: relative; height: 34px; margin-bottom: var(--s-3); }
.step__rail::before { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 1px; background: var(--line-strong); }
.step:last-child .step__rail::before { right: auto; width: 34px; }
.step__rail span {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--ink); font-family: var(--font-mono); font-size: var(--fs-label);
}
.step:last-child .step__rail span { background: var(--accent); border-color: var(--accent); color: #F2EEE6; }
.step h3 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); letter-spacing: -.035em; }
.step p { color: var(--ink-2); max-width: 22rem; }
.step small { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .04em; color: var(--muted); }

/* ---------- 12. Confiance ---------- */
.trust { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.trust__head { display: grid; gap: var(--s-5); position: sticky; top: calc(var(--nav-h) + 24px); }
.trust__head h2 { font-size: var(--fs-h2); }
.trust__head p { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.5; }
.founder { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: center; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.founder__mono {
  width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--surface);
  display: grid; place-items: center; font-weight: 600; letter-spacing: -.02em;
}
.founder strong { display: block; font-weight: 600; font-size: var(--fs-small); }
.founder span { font-size: var(--fs-xs); color: var(--muted); }

.pledges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pledge { background: var(--ground); padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); display: grid; gap: .6rem; align-content: start; }
.pledge svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: .4rem; }
.pledge h3 { font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.25; }
.pledge p { font-size: var(--fs-small); color: var(--ink-2); line-height: 1.55; }

/* ---------- 13. FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.faq__head { display: grid; gap: var(--s-5); align-content: start; }
.faq__head h2 { font-size: var(--fs-h2); }
.faq__head p { color: var(--ink-2); }
.faq__list { border-top: 1px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: var(--s-4); align-items: center;
  padding: 1.35rem 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); font-weight: 500; letter-spacing: -.02em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i {
  position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong);
  transition: transform var(--t-med) var(--ease), background var(--t-fast), border-color var(--t-fast);
}
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--t-med) var(--ease); }
.qa[open] summary i { background: var(--ink); border-color: var(--ink); }
.qa[open] summary i::before, .qa[open] summary i::after { background: var(--surface); }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa summary:hover { color: var(--accent); }
.qa__a { padding: 0 3rem 1.5rem 0; color: var(--ink-2); display: grid; gap: .75rem; max-width: 44rem; }
.qa__a button { justify-self: start; }

/* ---------- 14. CTA final ---------- */
.final { padding-block: clamp(5rem, 3rem + 8vw, 10rem); text-align: left; }
.final__box { display: grid; gap: var(--s-7); }
.final h2 { font-size: clamp(2.8rem, 1.4rem + 6vw, 6.4rem); line-height: .96; letter-spacing: -.05em; max-width: 14ch; }
.final h2 .serif { color: var(--accent); }
.final__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line-strong); }
.final__row p { max-width: 32rem; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.5; }
.final__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- 15. Footer ---------- */
.footer { background: var(--surface-2); color: var(--ink-2); border-top: 1px solid var(--line); padding-block: clamp(3rem, 2rem + 4vw, 5rem) calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: var(--fs-small); }
.footer a { text-decoration: none; transition: color var(--t-fast); }
.footer a:hover { color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2.5fr)) minmax(0, 2fr); gap: var(--s-6); padding-bottom: var(--s-7); border-bottom: 1px solid var(--line-strong); }
.footer__brand { display: grid; gap: var(--s-4); align-content: start; }
.footer__brand p { max-width: 22rem; }
.footer__brand .serif { font-size: 1.35rem; color: var(--accent); line-height: 1.3; }
.footer h2 { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: var(--s-4); }
.footer ul { display: grid; gap: .55rem; }
.footer address { font-style: normal; display: grid; gap: .2rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-5); font-size: var(--fs-xs); color: var(--muted); }

/* ---------- 16. Assistant (chat) ---------- */
.chat-launch {
  position: fixed; right: max(var(--s-5), env(safe-area-inset-right, 0px)); bottom: calc(var(--s-5) + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: inline-flex; align-items: center; gap: .7rem; min-height: 52px; padding: 0 1.2rem 0 .45rem;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-soft); font-size: var(--fs-small); font-weight: 500;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), opacity var(--t-med);
}
.chat-launch:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.chat-launch__ava { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.chat-launch__ava svg { width: 20px; height: 20px; }
.chat-launch small { display: block; font-size: var(--fs-label); color: var(--muted); font-weight: 400; }
.chat-launch span { text-align: left; line-height: 1.25; }
.chat-open .chat-launch { opacity: 0; pointer-events: none; transform: translateY(8px); }

.chat {
  position: fixed; right: var(--s-5); bottom: calc(var(--s-5) + env(safe-area-inset-bottom, 0px)); z-index: 70;
  width: min(410px, calc(100vw - 2rem)); height: min(640px, calc(100dvh - 7rem));
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-float);
  transform-origin: bottom right;
  animation: chatIn var(--t-med) var(--ease);
}
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.chat__head { display: flex; align-items: center; gap: var(--s-3); padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.chat__head .chat-launch__ava { width: 36px; height: 36px; }
.chat__title { display: grid; gap: 1px; margin-right: auto; }
.chat__title strong { font-size: var(--fs-small); font-weight: 600; }
.chat__title span { font-size: var(--fs-label); color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; }
.chat__close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; }
.chat__close:hover { border-color: var(--ink); }
.chat__close svg { width: 12px; height: 12px; }

.chat__log { overflow-y: auto; padding: 1.1rem 1rem; display: flex; flex-direction: column; gap: .75rem; scroll-behavior: smooth; overscroll-behavior: contain; }
.msg { max-width: 88%; font-size: var(--fs-small); line-height: 1.5; padding: .7rem .9rem; border-radius: 14px; animation: msgIn var(--t-med) var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: .5rem; }
.msg ul { display: grid; gap: .25rem; }
.msg li { padding-left: .9rem; position: relative; }
.msg li::before { content: ""; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.msg a { color: var(--accent); font-weight: 500; }
.msg--bot { align-self: flex-start; background: var(--ground); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--ink); color: var(--surface); border-bottom-right-radius: 4px; }
.msg--typing { display: inline-flex; gap: 4px; padding: .85rem .9rem; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.price { font-family: var(--font-mono); font-size: .8125rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .05rem .35rem; white-space: nowrap; }

.chat__foot { border-top: 1px solid var(--line); padding: .7rem; display: grid; gap: .6rem; }
.quick { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; font-size: var(--fs-xs); padding: .42rem .75rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); transition: all var(--t-fast); }
.quick button:hover { border-color: var(--accent); color: var(--accent); }
.chat__form { display: flex; gap: .5rem; align-items: center; }
.chat__form input {
  flex: 1; min-width: 0; height: 44px; padding: 0 .9rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--ground); font-size: 16px;
}
.chat__form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chat__form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #F2EEE6; display: grid; place-items: center; flex: none; }
.chat__form button:hover { background: var(--accent-ink); }
.chat__form button svg { width: 16px; height: 16px; }
.chat__legal { font-size: .6875rem; color: var(--muted); text-align: center; }

/* Barre mobile persistante */
.mbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(245, 241, 232, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  gap: .5rem; transform: translateY(110%); transition: transform var(--t-med) var(--ease);
}
.mbar.is-visible { transform: none; }
.mbar .btn { flex: 1; }
.mbar__chat { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; flex: none; }
.mbar__chat svg { width: 20px; height: 20px; }

/* ---------- 17. Pages légales ---------- */
.legal { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) var(--section); }
.legal__inner { max-width: 46rem; display: grid; gap: var(--s-6); }
.legal h1 { font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.6rem); }
.legal h2 { font-size: 1.35rem; letter-spacing: -.02em; margin-top: var(--s-4); }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { display: grid; gap: .4rem; padding-left: 1.1rem; list-style: disc; }
.legal section { display: grid; gap: var(--s-3); }
.legal .note { font-size: var(--fs-small); padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }

/* ---------- 18. Révélation au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: var(--d, 0ms); }

/* Séquence d'arrivée du hero (une seule fois) */
.js .hero .line, .js .hero .callcard__foot { animation: lineIn .6s var(--ease) both; }
.js .hero .line:nth-child(1) { animation-delay: .5s; }
.js .hero .line:nth-child(2) { animation-delay: 1.1s; }
.js .hero .line:nth-child(3) { animation-delay: 1.7s; }
.js .hero .line:nth-child(4) { animation-delay: 2.3s; }
.js .hero .callcard__foot { animation-delay: 2.9s; }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 19. Responsive ---------- */
@media (max-width: 1080px) {
  .service__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-5); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .brand__tag { display: none; }

  .hero__grid, .demo__grid, .day, .trade, .trust, .faq { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 560px; }
  .demo__intro, .day__aside, .trust__head { position: static; }
  .day__photo { display: none; }
  .solutions__group { grid-template-columns: minmax(0, 1fr); }
  .group-head p { max-width: none; }
  .trade__media { aspect-ratio: 16 / 11; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .step { grid-template-columns: 34px 1fr; column-gap: var(--s-4); padding: 0; }
  .step__rail { grid-row: span 3; height: auto; margin: 0; }
  .step__rail::before { left: 16px; right: auto; top: 34px; bottom: -2rem; width: 1px; height: auto; }
  .step:last-child .step__rail::before { display: none; }

  .chat-launch { display: none; }
  .mbar { display: flex; }
  .chat { right: 0; left: 0; bottom: 0; width: 100%; height: min(88dvh, 720px); border-radius: var(--r-lg) var(--r-lg) 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}

@media (max-width: 640px) {
  .hero h1 { line-height: 1.02; }
  .hero__ctas .btn { width: 100%; }
  .hero__photo { aspect-ratio: 4 / 3.6; margin-left: 0; }
  .callcard { position: relative; width: 100%; margin-top: -3.5rem; }
  .hero__visual { padding-bottom: 0; }
  .callcard { width: calc(100% - 1.5rem); margin-left: .75rem; }
  .trades__label { width: 100%; }
  .console__inner { min-height: 0; padding-top: 120px; }
  .console__bg { height: 200px; }
  .wave { height: 88px; }
  .callbtn { width: 100%; justify-content: flex-start; }
  .tl-head { display: none; }
  .tl-row { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .service__grid, .services--compact .service__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade__cols { grid-template-columns: minmax(0, 1fr); }
  .trade__ctas .btn { width: 100%; }
  .pledges { grid-template-columns: minmax(0, 1fr); }
  .qa__a { padding-right: 0; }
  .final__ctas, .final__ctas .btn { width: 100%; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
