/* SABI marketing site — the « Portail CDP » charte of the application
   (docs/architecture/SABI_Visual_Identity.md §0): cool neutrals, one cobalt accent,
   1 px borders and one shadow, Instrument Sans, no gradient, weight 600 at most for titles. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/instrument-sans-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/instrument-sans-latin-500-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/instrument-sans-latin-600-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/instrument-sans-latin-700-normal.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2");
}

:root {
  --color-primary: #2f4fd8;
  --color-primary-hover: #2843bd;
  --color-primary-soft: #e6eafc;
  --color-primary-text: #2f4fd8;
  --color-on-primary: #ffffff;
  --color-surface: #ffffff;
  --color-sunk: #eef0f4;
  --color-background: #f5f6f8;
  --color-border: #dde1e8;
  --color-border-strong: #c4cad5;
  --color-text: #171b24;
  --color-text-muted: #5d6474;
  --color-text-subtle: #8a90a0;
  --color-success: #157a4a;
  --color-success-soft: #e1f3ea;
  --color-warning: #9a5b00;
  --color-warning-soft: #fbefd9;
  --color-danger: #c0352b;
  --color-danger-soft: #fbe5e3;
  --shadow-card: 0 1px 2px rgb(23 27 36 / 5%), 0 4px 16px rgb(23 27 36 / 4%);

  --font-sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius-control: 7px;
  --radius-card: 10px;
  --radius-pill: 999px;
  --header-height: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #7f97ff;
    --color-primary-hover: #9aacff;
    --color-primary-soft: #232c4d;
    --color-primary-text: #9aacff;
    --color-on-primary: #0f1218;
    --color-surface: #171b23;
    --color-sunk: #1d222c;
    --color-background: #0f1218;
    --color-border: #2a303c;
    --color-border-strong: #3a4250;
    --color-text: #e8ebf2;
    --color-text-muted: #a2a9b8;
    --color-text-subtle: #747c8c;
    --color-success: #5cc995;
    --color-success-soft: #173327;
    --color-warning: #e8ae55;
    --color-warning-soft: #362a14;
    --color-danger: #f08379;
    --color-danger-soft: #3a1c1a;
    --shadow-card: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 16px rgb(0 0 0 / 20%);
    color-scheme: dark;
  }
}

/* ---- Base ------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font: 400 16px / 1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--color-primary-text);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius-control);
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 820px;
}

.container--form {
  max-width: 560px;
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--color-primary-text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  color: var(--color-text-muted);
  font-size: 18px;
}

.help {
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 14.5px;
}

/* ---- Logo ------------------------------------------------------------------ */

.sabi-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.36em;
  font-size: 25px;
  line-height: 1;
  text-decoration: none;
}

.sabi-symbol {
  width: 34px;
  height: 34px;
  flex: none;
}

.sabi-symbol__ink {
  fill: var(--color-primary);
}

.sabi-symbol__paper,
.sabi-symbol__badge {
  fill: var(--color-surface);
}

.sabi-symbol__fold {
  fill: var(--color-primary-soft);
}

.sabi-symbol__badge {
  stroke: var(--color-primary);
  stroke-width: 2;
}

.sabi-logo__word {
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sabi-logo__i {
  position: relative;
}

.sabi-logo__dot {
  position: absolute;
  left: 50%;
  top: 0.04em;
  width: 0.24em;
  height: 0.24em;
  margin-left: -0.09em;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ---- Buttons ----------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font: 600 15px / 1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button:hover {
  text-decoration: none;
}

.button--large {
  min-height: 48px;
  padding: 0 22px;
  font-size: 16px;
}

.button--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.button--primary:hover {
  background: var(--color-primary-hover);
}

.button--secondary {
  border-color: var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text);
}

.button--secondary:hover {
  border-color: var(--color-text-muted);
}

.button--ghost {
  color: var(--color-text);
}

.button--ghost:hover {
  background: var(--color-sunk);
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ---- Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
}

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav > a:not(.button) {
  padding: 8px 12px;
  border-radius: var(--radius-control);
  color: var(--color-text-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav > a:not(.button):hover {
  background: var(--color-sunk);
  color: var(--color-text);
}

.site-nav__sep {
  width: 1px;
  height: 24px;
  margin: 0 8px;
  background: var(--color-border);
}

.site-header__menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.site-header__menu .icon--close {
  display: none;
}

@media (max-width: 960px) {
  .js .site-header__menu {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-header[data-open] .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
  }

  .js .site-header[data-open] .icon--open {
    display: none;
  }

  .js .site-header[data-open] .icon--close {
    display: block;
  }

  .site-nav__sep {
    width: auto;
    height: 1px;
    margin: 8px 0;
  }

  /* Without JavaScript the links wrap under the logo. */
  html:not(.js) .site-header__inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  html:not(.js) .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* ---- Sections -------------------------------------------------------------- */

.section {
  padding: 96px 0;
}

.section--sunk {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.section--sunk .card {
  background: var(--color-background);
  box-shadow: none;
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

.section-head .lead {
  margin-top: 16px;
}

.page-narrow h1 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.5vw, 40px);
  line-height: 1.15;
}

/* ---- Hero ------------------------------------------------------------------ */

.hero {
  padding: 40px 0 56px;
}

/* The promise and its buttons on one row, above the stage. */
.hero__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.hero__lead {
  color: var(--color-text-muted);
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero__note {
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 14.5px;
}

/* The stage: photos of people at work, the assistant answering on their left. */
.stage {
  position: relative;
  height: clamp(440px, 40vw, 520px);
  overflow: hidden;
  border-radius: 16px;
  background: var(--color-sunk);
}

.stage__photos {
  position: absolute;
  inset: 0;
}

.stage .mock {
  position: absolute;
  top: 50%;
  left: 28px;
  z-index: 1;
  width: min(46%, 500px);
  transform: translateY(-50%);
  box-shadow: 0 12px 40px rgb(15 18 24 / 22%);
}

@media (max-width: 960px) {
  .hero {
    padding: 24px 0 40px;
  }

  .hero__intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .hero__lead {
    font-size: 16.5px;
  }

  .hero__signature {
    display: none;
  }

  .hero__actions {
    margin-top: 16px;
  }

  .hero__actions .button--large {
    min-height: 44px;
    padding: 0 16px;
    font-size: 15px;
  }

  /* On a phone the caption sits at the top: the assistant covers the bottom. */
  .stage .hero-slide__caption {
    top: 14px;
    right: auto;
    bottom: auto;
    left: 16px;
    max-width: calc(100% - 110px);
    font-size: 13px;
  }

  .stage .hero-dots {
    top: 24px;
    bottom: auto;
  }

  /* On a phone: the photo, then the assistant over its lower edge. */
  .stage {
    height: auto;
    overflow: visible;
    border-radius: 0;
    background: none;
  }

  .stage__photos {
    position: relative;
    height: 230px;
    margin: 0 -24px;
    overflow: hidden;
  }

  .stage .mock {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin: -56px 8px 0;
    transform: none;
  }
}

@media (max-width: 600px) {
  .hero .eyebrow {
    display: none;
  }

  /* Both buttons on one row. */
  .hero__actions {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .hero__actions .button--large {
    flex: 1 1 auto;
    padding: 0 10px;
    font-size: 14.5px;
  }

  .hero__actions .icon {
    display: none;
  }

  .stage__photos {
    margin: 0 -16px;
  }

  .stage .mock__bar,
  .stage .mock__reminder,
  .stage .mock__buttons {
    display: none;
  }

  .stage .mock__body {
    gap: 12px;
    padding: 14px;
  }

  .stage .mock__answer {
    min-height: 196px;
    padding: 12px;
  }
}

/* The application preview: the single search and question bar, an answer with its sources. */
.mock {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  font-size: 14.5px;
  line-height: 1.5;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-sunk);
}

.mock__dots {
  display: flex;
  gap: 6px;
}

.mock__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border-strong);
}

.mock__address {
  overflow: hidden;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font: 500 12.5px / 1.4 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock__body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.mock__search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mock__field {
  display: flex;
  flex: 1 1 260px;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-control);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.mock__field .icon {
  color: var(--color-text-muted);
}

.mock__buttons {
  display: flex;
  gap: 8px;
}

.mock__ask,
.mock__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.mock__ask {
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
}

.mock__ask .icon {
  width: 16px;
  height: 16px;
}

.mock__go {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.mock__answer {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.mock__who {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--color-primary-text);
  font-size: 13px;
  font-weight: 600;
}

.mock__who .icon {
  width: 16px;
  height: 16px;
}

.mock__sources-label {
  margin: 14px 0 8px;
  color: var(--color-text-muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock__sources {
  display: grid;
  gap: 6px;
}

.mock__sources li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-control);
  background: var(--color-sunk);
  color: var(--color-text);
  font-size: 13.5px;
}

.mock__num {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 11.5px;
  font-weight: 700;
}

.mock__reminder {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-card);
  background: var(--color-warning-soft);
  color: var(--color-text);
}

.mock__reminder .icon {
  margin-top: 2px;
  color: var(--color-warning);
}

.mock__reminder-title {
  font-size: 14px;
}

.mock__reminder-note {
  color: var(--color-text-muted);
  font-size: 13px;
}

.audience {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.audience__title {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
}

.audience ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audience li {
  padding: 5px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 14px;
  font-weight: 500;
}

/* ---- Cards and grids ------------------------------------------------------- */

.grid {
  display: grid;
  gap: 16px;
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

@media (max-width: 600px) {
  .grid--4,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin: 16px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card p {
  color: var(--color-text-muted);
  font-size: 15.5px;
}

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-control);
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
}

/* ---- Steps ------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  counter-reset: none;
}

.steps__item {
  padding-top: 20px;
  border-top: 2px solid var(--color-primary);
}

.steps__num {
  color: var(--color-primary-text);
  font: 500 14px / 1 var(--font-mono);
}

.steps__item h3 {
  margin: 12px 0 8px;
  font-size: 20px;
}

.steps__item p {
  color: var(--color-text-muted);
}

/* ---- Pricing --------------------------------------------------------------- */

.pricing__fallback {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 36px;
}

.pricing__fallback h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.pricing__fallback p {
  margin-bottom: 24px;
}

@media (max-width: 800px) {
  .pricing__fallback {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px;
  }
}

.checklist {
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15.5px;
}

.checklist .icon {
  margin-top: 3px;
  color: var(--color-success);
}

.checklist--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
  color: var(--color-text-muted);
}

.grid--plans {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
}

.plan__name {
  font-size: 18px;
}

.plan__price {
  margin-top: 16px;
  color: var(--color-text);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.plan__period {
  color: var(--color-text-muted);
  font-size: 14px;
}

.plan .checklist {
  flex: 1;
  margin: 24px 0;
}

.plan .checklist li {
  color: var(--color-text);
  font-size: 15px;
}

/* ---- FAQ --------------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--color-border);
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  flex: none;
  color: var(--color-primary-text);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  padding: 0 0 20px;
  color: var(--color-text-muted);
}

/* ---- Demo form ------------------------------------------------------------- */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.demo .section-head {
  margin-bottom: 24px;
}

.demo__write {
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .demo {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

.demo__form {
  display: grid;
  gap: 18px;
  padding: 28px;
}

@media (max-width: 600px) {
  .demo__form {
    padding: 20px;
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.signin label {
  font-size: 14px;
  font-weight: 500;
}

.field__optional {
  color: var(--color-text-muted);
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text);
  font: 400 16px / 1.4 var(--font-sans);
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-subtle);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.demo__status:empty {
  display: none;
}

.demo__status {
  padding: 12px 14px;
  border-radius: var(--radius-control);
  font-size: 15px;
}

.demo__status[data-kind="success"] {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.demo__status[data-kind="error"] {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.demo__status[data-kind="info"] {
  background: var(--color-warning-soft);
  color: var(--color-text);
}

.demo__privacy {
  color: var(--color-text-muted);
  font-size: 13.5px;
}

/* ---- Sign-in ----------------------------------------------------------------- */

.signin {
  display: grid;
  gap: 10px;
  margin-top: 32px;
  padding: 28px;
}

.signin__address {
  display: flex;
  align-items: stretch;
}

.signin__address input {
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  font-family: var(--font-mono);
}

.signin__domain {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--color-border-strong);
  border-left: 0;
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
  background: var(--color-sunk);
  color: var(--color-text-muted);
  font: 500 14px / 1 var(--font-mono);
  white-space: nowrap;
}

.signin__error {
  color: var(--color-danger);
  font-size: 14px;
}

.signin__error:empty {
  display: none;
}

.signin .button {
  margin-top: 8px;
}

/* ---- Legal pages ----------------------------------------------------------- */

.prose h2 {
  margin: 40px 0 12px;
  font-size: 21px;
}

.prose p {
  margin-bottom: 10px;
  color: var(--color-text-muted);
}

/* ---- Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.site-footer__brand p {
  max-width: 280px;
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 15px;
}

.site-footer__title {
  margin-bottom: 14px;
  color: var(--color-text-muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer li a {
  color: var(--color-text);
  font-size: 15px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer li a:hover {
  color: var(--color-primary-text);
  text-decoration: underline;
}

.site-footer__bottom {
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 13.5px;
}

@media (max-width: 800px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---- Motion ------------------------------------------------------------------ */
/* Everything below is decoration: without JavaScript, or when the device asks for less
   motion, every element is simply shown in its final state. */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes fill-chip {
  from {
    background: transparent;
    color: var(--color-text-muted);
  }
}

@keyframes flag {
  0%,
  100% {
    background: transparent;
  }
  40% {
    background: var(--color-danger-soft);
  }
}

@keyframes progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.grid > [data-reveal]:nth-child(3n + 2),
.steps > [data-reveal]:nth-child(2) {
  transition-delay: 0.08s;
}

.grid > [data-reveal]:nth-child(3n + 3),
.steps > [data-reveal]:nth-child(3) {
  transition-delay: 0.16s;
}

.grid--4 > [data-reveal]:nth-child(4) {
  transition-delay: 0.24s;
}

/* The assistant of the hero: a question typed, the answer, its sources, the key date. */

.mock__caret {
  display: none;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -3px;
  background: var(--color-primary);
  animation: blink 1s steps(1) infinite;
}

.mock[data-typing] .mock__caret {
  display: inline-block;
}

.mock__ask {
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.mock__ask.is-pressed {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.mock__answer,
.mock__reminder,
.mock__sources li {
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.mock .is-hidden {
  opacity: 0;
  transform: translateY(8px);
}

.mock__thinking {
  margin-left: 6px;
  color: var(--color-text-muted);
  font-weight: 500;
  animation: blink 1.2s ease-in-out infinite;
}

/* ---- Showcase: SABI's screens --------------------------------------------- */

.showcase {
  overflow: hidden;
}

.showcase__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.showcase__tabs::-webkit-scrollbar {
  display: none;
}

html:not(.js) .showcase__tabs {
  display: none;
}

.showcase__tab {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font: 600 15px / 1 var(--font-sans);
  cursor: pointer;
}

.showcase__tab:hover {
  color: var(--color-text);
}

.showcase__tab[aria-selected="true"] {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
}

.showcase__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
}

.showcase[data-auto] .showcase__tab[aria-selected="true"] .showcase__progress {
  animation: progress 7s linear forwards;
}

.showcase__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}

html:not(.js) .showcase__panel + .showcase__panel {
  margin-top: 64px;
}

.js .showcase__panel:not(.is-active) {
  display: none;
}

.showcase__copy h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
}

.showcase__copy > p {
  margin-bottom: 24px;
  color: var(--color-text-muted);
  font-size: 17px;
}

@media (max-width: 900px) {
  .showcase__panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

.screen {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  font-size: 14px;
  line-height: 1.45;
}

.screen__body {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 380px;
  padding: 20px;
}

@media (max-width: 600px) {
  .screen__body {
    min-height: 0;
    padding: 14px;
  }
}

.shot-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-control);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.shot-search .icon {
  color: var(--color-text-muted);
}

.shot-count {
  color: var(--color-text-muted);
  font-size: 13px;
}

.shot-results {
  display: grid;
  gap: 10px;
}

.shot-result {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.shot-file {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-control);
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
}

.shot-file .icon {
  width: 18px;
  height: 18px;
}

.shot-result__name,
.shot-record__name {
  font-weight: 600;
}

.shot-result__where {
  color: var(--color-text-muted);
  font-size: 12.5px;
}

.shot-result__excerpt {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 13.5px;
}

.shot-result mark {
  padding: 0 2px;
  border-radius: 3px;
  background: var(--color-warning-soft);
  color: var(--color-text);
}

.shot-record,
.shot-share {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.shot-record__head,
.shot-share__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.shot-record__head .shot-pill {
  margin-left: auto;
}

.shot-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.shot-pill--info {
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
}

.shot-pill--success {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.shot-pill--danger {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.shot-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

@media (max-width: 480px) {
  .shot-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

.shot-field {
  padding: 8px 10px;
  border-radius: var(--radius-control);
  background: var(--color-sunk);
}

.shot-field dt {
  color: var(--color-text-muted);
  font-size: 12px;
}

.shot-field dd {
  margin: 0;
  font-weight: 600;
}

.shot-proposed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
  font-size: 12.5px;
  font-weight: 600;
}

.shot-proposed .icon {
  width: 15px;
  height: 15px;
}

.shot-agenda__title {
  margin-bottom: 8px;
  color: var(--color-text-muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shot-agenda ul {
  display: grid;
  gap: 6px;
}

.shot-agenda li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-control);
  background: var(--color-sunk);
}

.shot-agenda__date {
  min-width: 56px;
  color: var(--color-warning);
  font: 500 13px / 1 var(--font-mono);
}

.shot-page {
  padding: 22px 24px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.shot-page__letterhead {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-primary-text);
  font-size: 12.5px;
  font-weight: 600;
}

.shot-page__place {
  margin: 12px 0;
  color: var(--color-text-muted);
  font-size: 12.5px;
  text-align: right;
}

.shot-page__title {
  margin-bottom: 10px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shot-page__line {
  margin-bottom: 8px;
  font-size: 13.5px;
}

.shot-chip {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
  font-weight: 600;
}

.shot-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.shot-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.shot-table th {
  padding: 8px 10px;
  background: var(--color-sunk);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.shot-table td {
  padding: 8px 10px;
  border-top: 1px solid var(--color-border);
}

.shot-code {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--color-sunk);
}

.shot-code span {
  color: var(--color-text-muted);
  font-size: 13px;
}

.shot-code strong {
  font: 500 20px / 1 var(--font-mono);
  letter-spacing: 0.12em;
}

.shot-events {
  display: grid;
  gap: 8px;
}

.shot-events li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.shot-events__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--color-success);
}

.shot-events__when {
  min-width: 120px;
  color: var(--color-text-muted);
  font-size: 12.5px;
}

.shot-deposit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-card);
}

.shot-deposit .icon {
  margin-top: 2px;
  color: var(--color-success);
}

/* Each screen plays once when its tab opens. */
.js .showcase__panel.is-active .shot-result,
.js .showcase__panel.is-active .shot-field,
.js .showcase__panel.is-active .shot-agenda li,
.js .showcase__panel.is-active .shot-page__line,
.js .showcase__panel.is-active .shot-table tbody tr,
.js .showcase__panel.is-active .shot-events li,
.js .showcase__panel.is-active .shot-deposit,
.js .showcase__panel.is-active .shot-proposed {
  animation: rise 0.5s ease both;
}

.js .showcase__panel.is-active .shot-result:nth-child(2),
.js .showcase__panel.is-active .shot-field:nth-child(2),
.js .showcase__panel.is-active .shot-agenda li:nth-child(2),
.js .showcase__panel.is-active .shot-page__line:nth-child(5),
.js .showcase__panel.is-active .shot-table tbody tr:nth-child(2),
.js .showcase__panel.is-active .shot-events li:nth-child(2) {
  animation-delay: 0.25s;
}

.js .showcase__panel.is-active .shot-result:nth-child(3),
.js .showcase__panel.is-active .shot-field:nth-child(3),
.js .showcase__panel.is-active .shot-agenda li:nth-child(3),
.js .showcase__panel.is-active .shot-page__line:nth-child(6),
.js .showcase__panel.is-active .shot-table tbody tr:nth-child(3) {
  animation-delay: 0.5s;
}

.js .showcase__panel.is-active .shot-field:nth-child(4),
.js .showcase__panel.is-active .shot-page__line:nth-child(7),
.js .showcase__panel.is-active .shot-table tbody tr:nth-child(4) {
  animation-delay: 0.75s;
}

.js .showcase__panel.is-active .shot-table tbody tr:nth-child(5) {
  animation-delay: 1s;
}

.js .showcase__panel.is-active .shot-proposed,
.js .showcase__panel.is-active .shot-deposit {
  animation-delay: 1.2s;
}

.js .showcase__panel.is-active .shot-chip {
  animation: fill-chip 0.6s ease 1.3s both;
}

.js .showcase__panel.is-active .shot-table__bad td {
  animation: flag 1.6s ease 1.4s;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mock__caret,
  .mock__thinking,
  .js .showcase__panel.is-active *,
  .showcase[data-auto] .showcase__progress {
    animation: none !important;
  }
}

.plan__description {
  margin-top: 6px;
  font-size: 14.5px;
}

.hero__signature {
  margin-top: 16px;
  color: var(--color-primary-text);
  font-size: 17px;
  font-weight: 600;
}

.audience li.audience__more {
  border-color: transparent;
  background: none;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ---- Photos of the hero: a slow slideshow --------------------------------------- */

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The people are in the right half of every photo. */
  object-position: 75% 35%;
}

.hero-slide.is-active img {
  animation: zoom 9s ease-out both;
}

@keyframes zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero-slide__caption {
  position: absolute;
  right: 20px;
  bottom: 44px;
  max-width: calc(100% - 32px);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgb(15 18 24 / 72%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.hero-dots {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(255 255 255 / 55%);
  transition:
    width 0.3s ease,
    background 0.3s ease;
}

.hero-dot.is-active {
  width: 22px;
  border-radius: 4px;
  background: #ffffff;
}

html:not(.js) .hero-dots {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active img {
    animation: none;
  }
}

/* ---- Language: FR | EN ------------------------------------------------------------ */

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-sunk);
}

.lang-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.lang-switch__item:hover {
  color: var(--color-text);
}

.lang-switch__item.is-current {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 1px 2px rgb(23 27 36 / 12%);
}

@media (max-width: 960px) {
  .site-nav .lang-switch {
    align-self: flex-start;
    margin: 4px 0 8px 12px;
  }
}

/* ---- The band above the header: the demo offer, the language --------------------- */

.topbar {
  background: var(--color-text);
  color: var(--color-background);
  font-size: 14px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}

.topbar__offer {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__offer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar__offer .icon {
  width: 16px;
  height: 16px;
}

.topbar .lang-switch {
  flex: none;
  padding: 2px;
  border-color: rgb(255 255 255 / 22%);
  background: transparent;
}

.topbar .lang-switch__item {
  min-width: 34px;
  height: 26px;
  color: rgb(255 255 255 / 70%);
}

.topbar .lang-switch__item:hover {
  color: #ffffff;
}

.topbar .lang-switch__item.is-current {
  background: #ffffff;
  color: #171b24;
  box-shadow: none;
}

@media (prefers-color-scheme: dark) {
  .topbar .lang-switch__item {
    color: rgb(15 18 24 / 65%);
  }

  .topbar .lang-switch__item:hover {
    color: #0f1218;
  }

  .topbar .lang-switch {
    border-color: rgb(15 18 24 / 22%);
  }

  .topbar .lang-switch__item.is-current {
    background: #0f1218;
    color: #ffffff;
  }
}

@media (max-width: 600px) {
  .topbar__text {
    display: none;
  }

  .topbar__offer a {
    margin-left: 0;
  }
}

/* The demo button of the header is in the band on a computer; the phone menu keeps it. */
@media (min-width: 961px) {
  .site-nav__demo {
    display: none;
  }
}
