/*
 * Public site (static SSR): layout, landing, pricing, legal pages, contact. Loaded by PublicLayout only.
 * Colours, radii and motion come from tokens.css; the marketing type scale and rhythm are defined below.
 * One visual idea: the QR-bill payment part, detached along its perforation (DESIGN §6). The rest stays calm.
 */

:root {
  --yb-site-wrap: 1200px;
  --yb-site-gutter: 24px;
  --yb-site-header: 64px;
  --yb-section-space: clamp(64px, 2.5rem + 5vw, 120px);

  --yb-mkt-h1: clamp(2.5rem, 1.45rem + 3.4vw, 4rem);
  --yb-mkt-page-title: clamp(2.125rem, 1.5rem + 2vw, 3.125rem);
  --yb-mkt-h2: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
  --yb-mkt-h3: 1.125rem;
  --yb-mkt-lead: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  --yb-mkt-body: 1rem;
  --yb-mkt-small: 0.875rem;
  --yb-mkt-radius: 16px;
  --yb-bleed: calc(var(--yb-site-gutter) + max(0px, (100vw - var(--yb-site-wrap) - 2 * var(--yb-site-gutter)) / 2));
}

@media (max-width: 767px) {
  :root {
    --yb-site-gutter: 16px;
    --yb-site-header: 56px;
  }
}

html {
  scroll-padding-top: calc(var(--yb-site-header) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ==========================================================================
   Layout
   ========================================================================== */
.yb-site {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--yb-bg);
  font-size: var(--yb-mkt-body);
  line-height: 1.6;
}

.yb-wrap {
  width: 100%;
  max-width: calc(var(--yb-site-wrap) + 2 * var(--yb-site-gutter));
  margin-inline: auto;
  padding-inline: var(--yb-site-gutter);
}

.yb-site__header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--yb-border);
  background: color-mix(in srgb, var(--yb-bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}

.yb-site__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--yb-space-8);
  max-width: calc(var(--yb-site-wrap) + 2 * var(--yb-site-gutter));
  height: var(--yb-site-header);
  margin-inline: auto;
  padding-inline: var(--yb-site-gutter);
}

.yb-site__logo {
  flex: none;
}

.yb-site__nav {
  display: flex;
  gap: var(--yb-space-6);
}

.yb-site__nav a,
.yb-site__signin {
  color: var(--yb-text-muted);
  font-size: 0.9375rem;
  font-weight: var(--yb-weight-medium);
  text-decoration: none;
}

.yb-site__nav a:hover,
.yb-site__signin:hover,
.yb-site__nav a[aria-current="page"] {
  color: var(--yb-text);
}

.yb-site__nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--yb-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.yb-site__actions {
  display: flex;
  align-items: center;
  gap: var(--yb-space-4);
  margin-left: auto;
}

.yb-site__demo.mud-button-root {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

/* Menus: <details> (no JavaScript needed). */
.yb-site__lang,
.yb-site__menu {
  position: relative;
}

.yb-site__lang summary,
.yb-site__menu summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 8px;
  border-radius: var(--yb-radius-sm);
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
  font-weight: var(--yb-weight-strong);
  list-style: none;
  cursor: pointer;
}

.yb-site__lang summary::-webkit-details-marker,
.yb-site__menu summary::-webkit-details-marker,
.yb-faq__item summary::-webkit-details-marker {
  display: none;
}

.yb-site__lang summary:hover,
.yb-site__lang[open] summary,
.yb-site__menu summary:hover {
  background: var(--yb-hover);
  color: var(--yb-text);
}

.yb-site__chevron.mud-icon-root {
  font-size: 18px;
  transition: transform var(--yb-duration) var(--yb-ease);
}

.yb-site__lang[open] .yb-site__chevron {
  transform: rotate(180deg);
}

.yb-site__popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 180px;
  margin: 0;
  padding: var(--yb-space-1);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-md);
  background: var(--yb-surface-raised);
  box-shadow: var(--yb-shadow-md);
  list-style: none;
}

.yb-site__popover a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 var(--yb-space-3);
  border-radius: var(--yb-radius-sm);
  color: var(--yb-text);
  font-size: 0.9375rem;
  text-decoration: none;
}

.yb-site__popover a:hover {
  background: var(--yb-hover);
}

.yb-site__popover a[aria-current="true"] {
  font-weight: var(--yb-weight-strong);
}

.yb-site__popover .mud-icon-root {
  color: var(--yb-primary);
}

.yb-site__menu {
  display: none;
}

.yb-site__menu summary {
  justify-content: center;
  width: var(--yb-touch-target);
  height: var(--yb-touch-target);
  padding: 0;
  color: var(--yb-text);
}

.yb-site__menu-close,
.yb-site__menu[open] .yb-site__menu-open {
  display: none !important;
}

.yb-site__menu[open] .yb-site__menu-close {
  display: inline-block !important;
}

.yb-site__sheet {
  position: fixed;
  top: var(--yb-site-header);
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: var(--yb-space-2) var(--yb-site-gutter) var(--yb-space-6);
  border-bottom: 1px solid var(--yb-border);
  background: var(--yb-bg);
  box-shadow: var(--yb-shadow-md);
}

.yb-site__sheet a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--yb-border);
  color: var(--yb-text);
  font-size: 1.0625rem;
  font-weight: var(--yb-weight-medium);
  text-decoration: none;
}

.yb-site__sheet a:last-child {
  border-bottom: 0;
}

.yb-site__notice {
  padding: var(--yb-space-2) var(--yb-site-gutter);
  background: var(--yb-info-soft);
  color: var(--yb-info);
  font-size: var(--yb-mkt-small);
  font-weight: var(--yb-weight-medium);
  text-align: center;
}

.yb-site__main {
  flex: 1;
}

.yb-site__main:focus {
  outline: none;
}

/* Footer */
.yb-site__footer {
  border-top: 1px solid var(--yb-border);
  background: var(--yb-frame);
  font-size: 0.9375rem;
}

.yb-site__footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: var(--yb-space-8);
  max-width: calc(var(--yb-site-wrap) + 2 * var(--yb-site-gutter));
  margin-inline: auto;
  padding: var(--yb-space-16) var(--yb-site-gutter) var(--yb-space-10);
}

.yb-site__footer-brand p {
  max-width: 34ch;
  margin-top: var(--yb-space-4);
  color: var(--yb-text-muted);
  line-height: 1.55;
}

.yb-site__footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--yb-space-2);
}

.yb-site__footer h2 {
  margin-bottom: var(--yb-space-2);
  font-size: var(--yb-mkt-small);
  font-weight: var(--yb-weight-strong);
}

.yb-site__footer a {
  color: var(--yb-text-muted);
  text-decoration: none;
}

.yb-site__footer a:hover {
  color: var(--yb-text);
  text-decoration: underline;
}

.yb-site__footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--yb-space-4);
  max-width: calc(var(--yb-site-wrap) + 2 * var(--yb-site-gutter));
  margin-inline: auto;
  padding: var(--yb-space-5) var(--yb-site-gutter) var(--yb-space-8);
  border-top: 1px solid var(--yb-border);
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
}

.yb-site__footer .yb-site__languages {
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--yb-space-4);
}

.yb-site__languages a[aria-current="true"] {
  color: var(--yb-text);
  font-weight: var(--yb-weight-strong);
}

.yb-site__nav a,
.yb-site__signin,
.yb-site__demo {
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .yb-site__bar {
    gap: var(--yb-space-5);
  }

  .yb-site__nav {
    gap: var(--yb-space-4);
  }

  /* Sign-in moves to the menu on tablets and phones. */
  .yb-site__signin {
    display: none;
  }

  .yb-site__menu {
    display: block;
  }

  .yb-site__footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .yb-site__footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .yb-site__bar {
    gap: var(--yb-space-2);
    padding-right: var(--yb-space-2);
  }

  .yb-site__nav,
  .yb-site__signin,
  .yb-site__lang {
    display: none;
  }

  .yb-site__actions {
    gap: var(--yb-space-1);
  }

  .yb-site__menu {
    display: block;
  }

  .yb-site__demo.mud-button-root {
    min-height: 36px;
    padding: 0 12px;
    font-size: var(--yb-mkt-small);
  }

  .yb-site__footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--yb-space-8) var(--yb-space-6);
    padding-top: var(--yb-space-12);
  }
}

/* ==========================================================================
   Shared marketing pieces
   ========================================================================== */
.yb-cta.mud-button-root {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: var(--yb-weight-strong);
}

.yb-cta--accent.mud-button-root,
.yb-cta--accent.mud-button-root:hover {
  background: var(--yb-accent);
  color: var(--yb-on-accent);
}

.yb-cta--accent.mud-button-root:hover {
  background: color-mix(in srgb, var(--yb-accent) 82%, #ffffff);
}

.yb-cta-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--yb-space-2);
  color: var(--yb-text);
  font-size: 1rem;
  font-weight: var(--yb-weight-strong);
  text-decoration: underline;
  text-decoration-color: var(--yb-border-input);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.yb-cta-link:hover {
  color: var(--yb-text);
  text-decoration-color: currentColor;
}

.yb-cta-link--inverse,
.yb-cta-link--inverse:hover {
  color: var(--yb-on-brand);
  text-decoration-color: var(--yb-on-brand-muted);
}

.yb-text-link {
  font-weight: var(--yb-weight-strong);
}

.yb-section {
  padding-block: var(--yb-section-space);
}

.yb-section--tight {
  padding-block: 0 var(--yb-space-12);
}

.yb-section--surface {
  border-block: 1px solid var(--yb-border);
  background: var(--yb-surface);
}

.yb-section__head {
  max-width: 760px;
  margin-bottom: clamp(32px, 1.5rem + 2vw, 56px);
}

.yb-section__title {
  font-size: var(--yb-mkt-h2);
  line-height: 1.12;
  font-weight: 640;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.yb-section__intro {
  max-width: 62ch;
  margin-top: var(--yb-space-4);
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-lead);
  line-height: 1.55;
}

.yb-pin {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--yb-radius-pill);
  background: var(--yb-primary);
  color: var(--yb-on-primary);
  font-size: 0.8125rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.yb-checks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--yb-space-2) var(--yb-space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-checks li {
  display: inline-flex;
  align-items: center;
  gap: var(--yb-space-2);
}

.yb-checks .mud-icon-root {
  color: var(--yb-success);
}

/* One commitment per line (pricing page): full sentences, the tick stays on the first line. */
.yb-checks--stack {
  flex-direction: column;
  gap: var(--yb-space-3);
}

.yb-checks--stack li {
  display: flex;
  align-items: flex-start;
}

.yb-checks--stack .mud-icon-root {
  flex: none;
  margin-top: 0.15em;
}

/* A title beside a list: the title starts with the first line instead of floating at mid-height. */
.yb-split.yb-split--top {
  align-items: start;
}

.yb-notice {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--yb-space-2);
  margin-top: var(--yb-space-4);
  padding: var(--yb-space-2) var(--yb-space-3);
  border-radius: var(--yb-radius-sm);
  background: var(--yb-info-soft);
  color: var(--yb-info);
  font-size: var(--yb-mkt-small);
  font-weight: var(--yb-weight-medium);
  line-height: 1.45;
}

.yb-notice .mud-icon-root {
  flex: none;
  margin-top: 1px;
}

/* Feature list: icon tile + title + text. */
.yb-features {
  display: grid;
  gap: var(--yb-space-6);
  margin: var(--yb-space-8) 0 0;
  padding: 0;
  list-style: none;
}

.yb-features li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-content: start;
  gap: 2px var(--yb-space-4);
}

.yb-features__icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--yb-radius-md);
  background: var(--yb-primary-soft);
  color: var(--yb-on-primary-soft);
}

.yb-features h3 {
  font-size: var(--yb-mkt-h3);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.yb-features p {
  color: var(--yb-text-muted);
}

.yb-features--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--yb-space-10) var(--yb-space-12);
  margin-top: 0;
}

.yb-features--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1023px) {
  .yb-features--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .yb-features--grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--yb-space-8);
  }
}

/* ==========================================================================
   Landing: hero
   ========================================================================== */
.yb-hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

.yb-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: var(--yb-space-12);
  align-items: stretch;
}

.yb-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(48px, 2rem + 4vw, 112px);
}

.yb-hero__title {
  font-size: var(--yb-mkt-h1);
  line-height: 1.02;
  font-weight: 660;
  letter-spacing: -0.042em;
}

.yb-hero__title span {
  display: block;
  text-wrap: balance;
}

.yb-hero__lead {
  max-width: 50ch;
  margin-top: var(--yb-space-6);
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-lead);
  line-height: 1.55;
}

.yb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-3) var(--yb-space-4);
  margin-top: var(--yb-space-8);
}

.yb-hero__note {
  margin-top: var(--yb-space-4);
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
}

.yb-hero__points {
  margin-top: var(--yb-space-4);
  font-size: var(--yb-mkt-small);
  font-weight: var(--yb-weight-medium);
}

/* The desk: brand surface bleeding to the right edge of the window, holding the document. */
.yb-hero__desk {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 2rem + 2vw, 64px) 0 clamp(72px, 3rem + 3vw, 104px) clamp(24px, 1rem + 2vw, 56px);
}

.yb-hero__desk::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--yb-bleed)) 0 0;
  z-index: -1;
  border-radius: 0 0 0 32px;
  background: var(--yb-brand-surface);
}

@media (max-width: 1023px) {
  .yb-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .yb-hero__copy {
    padding-block: var(--yb-space-12) var(--yb-space-10);
  }

  .yb-hero__desk {
    margin-inline: calc(-1 * var(--yb-site-gutter));
    padding: var(--yb-space-10) var(--yb-site-gutter) var(--yb-space-16);
  }

  .yb-hero__desk::before {
    inset: 0;
    border-radius: 0;
  }
}

/* ---------- The document mockup ---------- */
/* One sheet: the invoice and, below the perforation, its payment part (as a real QR-bill). */
.yb-mock {
  position: relative;
  width: min(100%, 452px);
  margin: 0;
  border-radius: 8px;
  box-shadow: var(--yb-shadow-lg);
  color: var(--yb-text);
  font-size: 12px;
  line-height: 1.45;
}

.yb-mock__paper {
  position: relative;
  padding: 26px 28px 18px;
  border-radius: 8px 8px 0 0;
  background: var(--yb-surface);
  color: var(--yb-text);
}

.yb-mock__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--yb-space-4);
}

.yb-mock__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.yb-mock__issuer,
.yb-mock__to {
  color: var(--yb-text-muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.yb-mock__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--yb-space-4);
  margin-top: 20px;
}

.yb-mock__to {
  color: var(--yb-text);
  font-size: 11.5px;
}

.yb-mock__dates {
  display: grid;
  gap: 2px;
  margin: 0;
}

.yb-mock__dates div {
  display: flex;
  gap: 10px;
}

.yb-mock__dates dt {
  min-width: 58px;
  color: var(--yb-text-muted);
}

.yb-mock__dates dd {
  margin: 0;
}

.yb-mock__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--yb-space-3);
  margin-top: 18px;
  padding-left: 10px;
  border-left: 3px solid #E8553A;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.yb-mock__number {
  color: var(--yb-text-muted);
  font-weight: 450;
}

.yb-mock__lines {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
}

.yb-mock__lines td {
  padding: 6px 0;
  border-bottom: 1px solid var(--yb-border);
}

.yb-mock__lines td:last-child,
.yb-mock__totals dd {
  text-align: right;
}

.yb-mock__totals {
  display: grid;
  gap: 3px;
  width: 62%;
  margin: 12px 0 0 auto;
}

.yb-mock__totals div {
  display: flex;
  justify-content: space-between;
  gap: var(--yb-space-3);
}

.yb-mock__totals dt {
  color: var(--yb-text-muted);
}

.yb-mock__totals dd {
  margin: 0;
}

.yb-mock__total {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--yb-text);
  font-weight: 620;
}

.yb-mock__total dt {
  color: var(--yb-text) !important;
}

.yb-mock__total .yb-money {
  font-size: 15px;
}

/* The perforation between the invoice and its payment part. */
.yb-mock__perforation {
  margin: 18px -28px -18px;
}

.yb-mock__perforation .yb-perforation__scissors.mud-icon-root {
  background: var(--yb-surface);
}

.yb-mock__slip {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 20px 18px;
  border-radius: 0 0 8px 8px;
  background: var(--yb-surface);
  color: #000000;
  font-family: Arial, "Liberation Sans", Helvetica, sans-serif;
  font-size: 10px;
  line-height: 1.35;
}

.yb-mock__slip b {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
}

.yb-mock__slip-title {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
}

.yb-mock__slip-qr img {
  display: block;
  width: 104px;
  height: 104px;
}

.yb-mock__slip-sum {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.yb-mock__slip-info {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 2px;
}

/* The page's single motion: the "Payé" stamp of the application lands on the invoice (static with reduced motion,
   see components.css). Sized and placed in px here, in the blank left of the totals: no amount under it. */
.yb-mock .yb-paid-stamp {
  --yb-stamp-size: 24px;
  top: auto;
  right: auto;
  bottom: 44px;
  left: 34px;
}

.yb-mock .yb-paid-stamp--press {
  animation-delay: 500ms;
}

@media (max-width: 479px) {
  .yb-mock {
    font-size: 11px;
  }

  .yb-mock__paper {
    padding: 20px 18px 14px;
  }

  .yb-mock__issuer {
    display: none;
  }

  .yb-mock__meta {
    gap: var(--yb-space-2);
  }

  .yb-mock__totals {
    width: 78%;
  }

  .yb-mock__slip {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 14px 16px;
    font-size: 9px;
  }

  .yb-mock__slip-qr img {
    width: 84px;
    height: 84px;
  }

  .yb-mock__slip-title {
    font-size: 9.5px;
    white-space: nowrap;
  }

  /* The totals take more width here: the stamp goes to the head, where the issuer's address is hidden. */
  .yb-mock .yb-paid-stamp {
    --yb-stamp-size: 17px;
    top: 18px;
    right: 18px;
    bottom: auto;
    left: auto;
  }

}

/* ==========================================================================
   Landing: document lifecycle (a real sequence, linked by a perforated line)
   ========================================================================== */
.yb-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--yb-space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The line runs from the first status to the last one. */
.yb-flow::before {
  content: "";
  position: absolute;
  top: 8px;
  right: calc((100% - 3 * var(--yb-space-8)) / 4);
  left: 0;
  height: 8px;
  background: radial-gradient(circle, var(--yb-border-strong) var(--yb-perforation-dot), transparent calc(var(--yb-perforation-dot) + 0.5px)) 0 50% / var(--yb-perforation-gap) 8px repeat-x;
}

.yb-flow__step .yb-status {
  height: 24px;
  box-shadow: 0 0 0 8px var(--yb-surface);
}

.yb-flow__step h3 {
  margin-top: var(--yb-space-6);
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.yb-flow__step p {
  margin-top: var(--yb-space-2);
  color: var(--yb-text-muted);
}

@media (max-width: 1023px) {
  .yb-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--yb-space-10) var(--yb-space-8);
  }

  .yb-flow::before {
    display: none;
  }
}

@media (max-width: 599px) {
  .yb-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--yb-space-8);
    padding-left: var(--yb-space-6);
  }

  .yb-flow::before {
    display: block;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 8px;
    height: auto;
    background: radial-gradient(circle, var(--yb-border-strong) var(--yb-perforation-dot), transparent calc(var(--yb-perforation-dot) + 0.5px)) 50% 0 / 8px var(--yb-perforation-gap) repeat-y;
  }

  .yb-flow__step h3 {
    margin-top: var(--yb-space-3);
  }
}

/* ==========================================================================
   Landing: the film of the real application (DemoVideo.razor)
   ========================================================================== */
.yb-demo {
  margin: 0;
}

/* The captures are those of the light theme: the frame keeps it on a dark page. */
.yb-demo__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-lg);
  background: #F6F8F8;
  box-shadow: var(--yb-shadow-lg);
}

.yb-demo__still,
.yb-demo__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yb-demo__video[hidden],
.yb-demo__start[hidden],
.yb-demo__controls[hidden] {
  display: none;
}

/* Reduced motion, or autoplay refused: the still picture and this button. */
.yb-demo__start {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: var(--yb-space-2);
  min-height: 48px;
  padding: 0 var(--yb-space-6) 0 var(--yb-space-4);
  border: 0;
  border-radius: var(--yb-radius-pill);
  background: #0C3F48;
  color: #FFFFFF;
  font: inherit;
  font-weight: var(--yb-weight-strong);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgb(7 41 48 / 0.35);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.yb-demo__start:hover {
  background: #072930;
}

.yb-demo__controls {
  position: absolute;
  right: var(--yb-space-3);
  bottom: var(--yb-space-3);
  display: flex;
  gap: var(--yb-space-2);
}

.yb-demo__control {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--yb-radius-pill);
  background: rgb(7 41 48 / 0.78);
  color: #FFFFFF;
  cursor: pointer;
}

.yb-demo__control:hover {
  background: #072930;
}

.yb-demo__start:focus-visible,
.yb-demo__control:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #0C3F48;
}

.yb-demo--playing .yb-demo__icon-play,
.yb-demo:not(.yb-demo--playing) .yb-demo__icon-pause,
.yb-demo--sound .yb-demo__icon-muted,
.yb-demo:not(.yb-demo--sound) .yb-demo__icon-sound {
  display: none;
}

/* Under the film: six numbered buttons (added by the script) that start it again from their step, then one centred
   line, the caption of the step being shown. The other captions stay in the page for screen readers, stacked in the
   same cell, so the line does not jump when the caption changes. */
.yb-demo__progress {
  display: flex;
  justify-content: center;
  gap: var(--yb-space-1);
  margin-top: var(--yb-space-4);
}

.yb-demo__progress[hidden] {
  display: none;
}

/* 44 px to press, a 30 px disc to see. */
.yb-demo__jump {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--yb-primary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
}

.yb-demo__jump span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--yb-radius-pill);
  background: var(--yb-primary-soft);
}

.yb-demo__jump:hover span {
  box-shadow: 0 0 0 2px var(--yb-primary);
}

.yb-demo__jump[aria-current="step"] span {
  background: var(--yb-primary);
  color: var(--yb-on-primary);
  box-shadow: 0 0 0 3px var(--yb-accent);
}

.yb-demo__jump:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: -4px;
  border-radius: var(--yb-radius-pill);
}

.yb-demo__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--yb-space-4) var(--yb-space-6);
  margin: var(--yb-space-6) 0 0;
  padding: 0;
  list-style: none;
}

.yb-demo__step {
  display: flex;
  align-items: flex-start;
  gap: var(--yb-space-3);
  line-height: 1.45;
}

.yb-demo__number {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--yb-radius-pill);
  background: var(--yb-primary);
  color: var(--yb-on-primary);
  font-size: 0.8125rem;
  font-weight: 650;
}

.yb-demo--live .yb-demo__steps {
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--yb-space-2);
}

/* The buttons already carry the numbers. */
.yb-demo--live .yb-demo__number {
  display: none;
}

.yb-demo--live .yb-demo__step {
  grid-area: 1 / 1;
  justify-content: center;
  opacity: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  text-align: center;
  text-wrap: balance;
}

.yb-demo--live .yb-demo__step--current {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .yb-demo__step,
  .yb-demo__jump span {
    transition: opacity 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  }
}

@media (max-width: 1023px) {
  .yb-demo__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yb-demo--live .yb-demo__steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 599px) {
  /* The 4:5 film of the phone. */
  .yb-demo__frame {
    aspect-ratio: 4 / 5;
  }

  .yb-demo__steps {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--yb-space-3);
  }

  .yb-demo--live .yb-demo__step {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Landing: the QR-bill, annotated
   ========================================================================== */
.yb-qr {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--yb-space-12);
  align-items: start;
}

.yb-qr__figure {
  margin: 0;
}

.yb-qr__sheet {
  position: relative;
  padding-top: 18px;
  border-radius: 0 0 var(--yb-radius-md) var(--yb-radius-md);
  background: var(--yb-surface);
  box-shadow: var(--yb-shadow-md);
}

.yb-qr__perforation {
  position: absolute;
  inset: 0 0 auto;
}

.yb-qr__perforation .yb-perforation__scissors.mud-icon-root {
  background: var(--yb-surface);
}

/* The payment part is 105 mm high; its empty bottom band (below "Point de dépôt") is cropped. */
.yb-qr__canvas {
  position: relative;
  aspect-ratio: 595 / 262;
  overflow: hidden;
}

.yb-qr__slip {
  display: block;
  width: 100%;
  height: auto;
}

.yb-qr__pin {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 24px;
  height: 24px;
  border: 2px solid var(--yb-surface);
  box-shadow: var(--yb-shadow-sm);
  font-size: 0.75rem;
  transform: translate(4px, -50%);
}

.yb-qr__caption {
  margin-top: var(--yb-space-3);
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
}

.yb-qr__points {
  display: grid;
  gap: var(--yb-space-6);
  margin: 0;
  padding: var(--yb-space-2) 0 0;
  list-style: none;
}

.yb-qr__points li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: var(--yb-space-4);
}

.yb-qr__points h3 {
  font-size: var(--yb-mkt-h3);
  line-height: 1.45;
  font-weight: 600;
}

.yb-qr__points p {
  margin-top: var(--yb-space-1);
  color: var(--yb-text-muted);
}

@media (max-width: 1023px) {
  .yb-qr {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--yb-space-10);
  }

  .yb-qr__points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--yb-space-8);
  }
}

@media (max-width: 599px) {
  .yb-qr__sheet {
    margin-inline: calc(-1 * var(--yb-site-gutter));
    border-radius: 0;
  }

  .yb-qr__pin {
    width: 18px;
    height: 18px;
    border-width: 1px;
    font-size: 0.625rem;
    transform: translate(2px, -50%);
  }

  .yb-qr__caption {
    margin-top: var(--yb-space-2);
  }

  .yb-qr__points {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--yb-space-6);
  }
}

/* ==========================================================================
   Landing: receipts and the phone
   ========================================================================== */
.yb-receipts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: var(--yb-space-16);
  align-items: center;
}

.yb-receipts__visual {
  display: flex;
  justify-content: center;
}

.yb-phone {
  width: 300px;
  margin: 0;
  padding: 10px;
  border-radius: 44px;
  background: #0A1416;
  box-shadow: var(--yb-shadow-lg), inset 0 0 0 1px rgb(255 255 255 / 0.12);
}

.yb-phone__screen {
  overflow: hidden;
  border-radius: 34px;
  background: var(--yb-bg);
  color: var(--yb-text);
  font-size: 12.5px;
  line-height: 1.4;
}

.yb-phone__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 26px 18px 12px;
  border-bottom: 1px solid var(--yb-border);
  background: var(--yb-surface);
}

.yb-phone__title {
  flex: 1;
  font-size: 15px;
  font-weight: 620;
}

.yb-phone__count {
  padding: 2px 8px;
  border-radius: var(--yb-radius-pill);
  background: var(--yb-accent);
  color: var(--yb-on-accent);
  font-size: 11px;
  font-weight: 650;
}

.yb-phone__photo {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 16px 0 14px;
  background: var(--yb-illu-shade);
}

.yb-phone__receipt {
  display: grid;
  gap: 3px;
  width: 184px;
  padding: 12px 12px 10px;
  background: #FFFFFF;
  color: #2A3438;
  box-shadow: var(--yb-shadow-sm);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  transform: rotate(-3deg);
}

.yb-phone__shop {
  font-weight: 700;
  text-align: center;
}

.yb-phone__city {
  margin-bottom: 4px;
  font-size: 9px;
  text-align: center;
}

.yb-phone__row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.yb-phone__row--total {
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px dashed #8FA0A4;
  font-weight: 700;
}

.yb-phone__barcode {
  height: 14px;
  margin-top: 6px;
  background: repeating-linear-gradient(90deg, #2A3438 0 1px, transparent 1px 3px, #2A3438 3px 5px, transparent 5px 6px);
}

/* Scanning frame corners over the photo. */
.yb-phone__scan {
  position: absolute;
  inset: 8px 46px;
  border: 2px solid var(--yb-primary);
  border-radius: 10px;
  -webkit-mask: linear-gradient(#000 0 0) top left / 22px 22px no-repeat, linear-gradient(#000 0 0) top right / 22px 22px no-repeat, linear-gradient(#000 0 0) bottom left / 22px 22px no-repeat, linear-gradient(#000 0 0) bottom right / 22px 22px no-repeat;
  mask: linear-gradient(#000 0 0) top left / 22px 22px no-repeat, linear-gradient(#000 0 0) top right / 22px 22px no-repeat, linear-gradient(#000 0 0) bottom left / 22px 22px no-repeat, linear-gradient(#000 0 0) bottom right / 22px 22px no-repeat;
}

.yb-phone__fields {
  padding: 14px 18px 4px;
}

.yb-phone__hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--yb-on-accent-soft);
  font-size: 11.5px;
  font-weight: 550;
}

.yb-phone__hint .mud-icon-root {
  font-size: 16px;
}

.yb-phone__fields dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin: 0;
}

.yb-phone__field {
  padding: 6px 10px 7px;
  border: 1px solid var(--yb-border-input);
  border-radius: var(--yb-radius-sm);
  background: var(--yb-surface);
}

.yb-phone__field--wide {
  grid-column: 1 / -1;
}

.yb-phone__field dt {
  color: var(--yb-text-muted);
  font-size: 10.5px;
}

.yb-phone__field dd {
  overflow: hidden;
  margin: 0;
  font-weight: 550;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.yb-phone__rate {
  color: var(--yb-text-muted);
  font-weight: 400;
}

.yb-phone__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 18px 24px;
}

.yb-phone__button {
  display: grid;
  place-items: center;
  height: 40px;
  border: 1px solid var(--yb-border-strong);
  border-radius: var(--yb-radius-sm);
  background: var(--yb-surface);
  font-weight: 600;
}

.yb-phone__button--primary {
  border-color: var(--yb-primary);
  background: var(--yb-primary);
  color: var(--yb-on-primary);
}

@media (max-width: 1023px) {
  .yb-receipts {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--yb-space-12);
  }
}

/* ==========================================================================
   Price simulator (a ticket with a perforated stub)
   ========================================================================== */
.yb-sim {
  --yb-sim-stub: 320px;
  --yb-sim-notch-bg: var(--yb-bg);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--yb-sim-stub);
  overflow: hidden;
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-mkt-radius);
  background: var(--yb-surface);
  box-shadow: var(--yb-shadow-sm);
}

/* Notches cut on the perforation line, top and bottom. */
.yb-sim::before,
.yb-sim::after {
  content: "";
  position: absolute;
  left: calc(100% - var(--yb-sim-stub) - 11px);
  z-index: 1;
  width: 22px;
  height: 22px;
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-pill);
  background: var(--yb-sim-notch-bg);
}

.yb-sim::before {
  top: -12px;
}

.yb-sim::after {
  bottom: -12px;
}

.yb-sim__body {
  padding: clamp(24px, 1rem + 1.5vw, 40px);
}

.yb-sim__title {
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.yb-sim__control {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--yb-space-2) var(--yb-space-4);
  margin-top: var(--yb-space-6);
}

.yb-sim__label {
  color: var(--yb-text-muted);
  font-size: 0.9375rem;
  font-weight: var(--yb-weight-medium);
}

.yb-sim__count {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.yb-sim__track {
  --yb-thumb: 24px;
  position: relative;
  margin-top: var(--yb-space-3);
  padding-bottom: 34px;
}

.yb-sim__range {
  display: block;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.yb-sim__range:focus-visible {
  outline-offset: 4px;
}

.yb-sim__range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: var(--yb-radius-pill);
  background: linear-gradient(to right, var(--yb-primary) 0 calc(var(--yb-thumb) / 2 + (100% - var(--yb-thumb)) * var(--yb-sim-p) / 100), var(--yb-bg-sunken) 0);
  box-shadow: inset 0 0 0 1px var(--yb-border);
}

.yb-sim__range::-webkit-slider-thumb {
  width: var(--yb-thumb);
  height: var(--yb-thumb);
  margin-top: calc((8px - var(--yb-thumb)) / 2);
  border: 2px solid var(--yb-primary);
  border-radius: var(--yb-radius-pill);
  background: var(--yb-surface);
  box-shadow: var(--yb-shadow-sm);
  -webkit-appearance: none;
  appearance: none;
  transition: transform var(--yb-duration-fast) var(--yb-ease);
}

.yb-sim__range:active::-webkit-slider-thumb {
  transform: scale(1.12);
}

.yb-sim__range::-moz-range-track {
  height: 8px;
  border-radius: var(--yb-radius-pill);
  background: var(--yb-bg-sunken);
  box-shadow: inset 0 0 0 1px var(--yb-border);
}

.yb-sim__range::-moz-range-progress {
  height: 8px;
  border-radius: var(--yb-radius-pill);
  background: var(--yb-primary);
}

.yb-sim__range::-moz-range-thumb {
  width: calc(var(--yb-thumb) - 4px);
  height: calc(var(--yb-thumb) - 4px);
  border: 2px solid var(--yb-primary);
  border-radius: var(--yb-radius-pill);
  background: var(--yb-surface);
  box-shadow: var(--yb-shadow-sm);
}

.yb-sim__marks {
  position: absolute;
  inset: 30px 0 0;
}

.yb-sim__mark {
  position: absolute;
  left: calc(var(--yb-thumb) / 2 + (100% - var(--yb-thumb)) * var(--yb-mark-p) / 100);
  padding-top: 10px;
  color: var(--yb-text-muted);
  font-size: 0.8125rem;
  white-space: nowrap;
  transform: translateX(-50%);
}

.yb-sim__mark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 7px;
  border-radius: 1px;
  background: var(--yb-border-strong);
}

.yb-sim__mark--free {
  transform: translateX(-9px);
}

.yb-sim__mark--free::before {
  left: 8px;
}

.yb-sim__note {
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
}

.yb-sim__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--yb-space-1);
  padding: clamp(24px, 1rem + 1.5vw, 40px);
  background: var(--yb-bg-sunken);
}

/* The perforation between the ticket and its stub. */
.yb-sim__stub::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: -4px;
  width: 8px;
  background: radial-gradient(circle, var(--yb-border-strong) var(--yb-perforation-dot), transparent calc(var(--yb-perforation-dot) + 0.5px)) 50% 0 / 8px var(--yb-perforation-gap) repeat-y;
}

.yb-sim__result {
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
  font-weight: var(--yb-weight-medium);
}

.yb-sim__amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-block: 2px 6px;
  font-size: clamp(2.5rem, 2rem + 1.4vw, 3.25rem);
  line-height: 1.05;
  font-weight: 660;
  letter-spacing: -0.035em;
}

.yb-sim__currency {
  color: var(--yb-text-muted);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0;
}

.yb-sim[data-state="zero"] .yb-sim__currency,
.yb-sim[data-state="free"] .yb-sim__currency {
  display: none;
}

.yb-sim[data-state="zero"] .yb-sim__value,
.yb-sim[data-state="free"] .yb-sim__value {
  color: var(--yb-success);
}

.yb-sim__explain {
  font-size: 0.9375rem;
  font-weight: var(--yb-weight-medium);
}

.yb-sim__average {
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
}

.yb-sim[data-state="cap"] .yb-sim__explain {
  color: var(--yb-on-accent-soft);
}

.yb-sim--large .yb-sim__title {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
}

.yb-sim--large .yb-sim__count {
  font-size: 1.875rem;
}

/* Narrow screens: the stub goes below the ticket, perforated along its top edge (notches on both sides). */
@media (max-width: 899px) {
  .yb-sim {
    grid-template-columns: minmax(0, 1fr);
  }

  .yb-sim::before,
  .yb-sim::after {
    display: none;
  }

  .yb-sim__stub::after {
    content: "";
    position: absolute;
    top: -11px;
    right: -1px;
    left: -1px;
    height: 22px;
    background:
      radial-gradient(circle at 0 50%, var(--yb-sim-notch-bg) 10px, transparent 10.5px),
      radial-gradient(circle at 100% 50%, var(--yb-sim-notch-bg) 10px, transparent 10.5px);
  }

  .yb-sim__stub::before {
    top: -4px;
    right: 14px;
    bottom: auto;
    left: 14px;
    width: auto;
    height: 8px;
    background: radial-gradient(circle, var(--yb-border-strong) var(--yb-perforation-dot), transparent calc(var(--yb-perforation-dot) + 0.5px)) 0 50% / var(--yb-perforation-gap) 8px repeat-x;
  }
}

.yb-price-points {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--yb-space-4) var(--yb-space-8);
  margin-top: var(--yb-space-6);
}

/* « Le tarif en détail »: on its own line, centred under the points (owner, 2026-11-13). */
.yb-price-points > .yb-text-link {
  flex-basis: 100%;
  text-align: center;
}

/* ==========================================================================
   Landing: testimonials (placeholders), FAQ, closing call to action
   ========================================================================== */
.yb-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--yb-space-10);
}

.yb-quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--yb-space-6);
  margin: 0;
  padding-top: var(--yb-space-5);
  border-top: 2px solid var(--yb-border-strong);
}

.yb-quote blockquote {
  margin: 0;
}

.yb-quote blockquote p {
  font-size: 1.1875rem;
  line-height: 1.5;
  font-weight: 450;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.yb-quote blockquote p::before {
  content: "« ";
}

.yb-quote blockquote p::after {
  content: " »";
}

.yb-quote figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-2) var(--yb-space-3);
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
}

.yb-quote__tag {
  padding: 1px 8px;
  border: 1px dashed var(--yb-text-muted);
  border-radius: var(--yb-radius-pill);
  font-size: 0.75rem;
  font-weight: var(--yb-weight-medium);
}

@media (max-width: 1023px) {
  .yb-quotes {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--yb-space-8);
  }
}

.yb-faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
  gap: var(--yb-space-12);
  align-items: start;
}

.yb-faq__head {
  position: sticky;
  top: calc(var(--yb-site-header) + 32px);
}

.yb-faq__head p {
  margin-top: var(--yb-space-4);
  color: var(--yb-text-muted);
}

.yb-faq__list {
  border-top: 1px solid var(--yb-border-strong);
}

.yb-faq__item {
  border-bottom: 1px solid var(--yb-border-strong);
}

.yb-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--yb-space-4);
  min-height: 64px;
  padding-block: var(--yb-space-4);
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 580;
  list-style: none;
  cursor: pointer;
}

.yb-faq__item summary:hover {
  color: var(--yb-primary);
}

.yb-faq__icon.mud-icon-root {
  flex: none;
  color: var(--yb-text-muted);
  transition: transform var(--yb-duration) var(--yb-ease);
}

.yb-faq__item[open] .yb-faq__icon {
  transform: rotate(45deg);
}

.yb-faq__item p {
  max-width: 66ch;
  padding-bottom: var(--yb-space-6);
  color: var(--yb-text-muted);
}

@media (max-width: 1023px) {
  .yb-faq {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--yb-space-8);
  }

  .yb-faq__head {
    position: static;
  }
}

/* Founders: both portraits share one crop and are shown in black and white so that two very different photos
   read as a pair. */
.yb-founders {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--yb-space-12);
  align-items: center;
}

.yb-founders__copy .yb-text-link {
  display: inline-block;
  margin-top: var(--yb-space-6);
}

.yb-founders__people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  justify-content: end;
  gap: var(--yb-space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-founder__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  border-radius: var(--yb-mkt-radius);
  object-fit: cover;
  filter: grayscale(1) contrast(0.95);
  transition: filter 0.4s var(--yb-ease);
}

/* Under the pointer, a portrait gets part of its colour back (not all: the two photos would clash again). */
@media (hover: hover) {
  .yb-founder__photo:hover {
    filter: grayscale(0.35) contrast(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .yb-founder__photo {
    transition: none;
  }
}

.yb-founder__name {
  margin-top: var(--yb-space-4);
  font-size: var(--yb-mkt-h3);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.yb-founder__role {
  color: var(--yb-primary);
  font-size: var(--yb-mkt-small);
  font-weight: var(--yb-weight-strong);
}

.yb-founder__text {
  margin-top: var(--yb-space-2);
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
  line-height: 1.5;
}

@media (max-width: 1023px) {
  .yb-founders {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--yb-space-8);
  }

  .yb-founders__people {
    justify-content: start;
  }
}

@media (max-width: 479px) {
  .yb-founders__people {
    gap: var(--yb-space-4);
  }
}

.yb-closing {
  padding-block: clamp(64px, 3rem + 4vw, 112px);
  background: var(--yb-brand-surface);
  color: var(--yb-on-brand);
}

.yb-closing__title {
  max-width: 20ch;
  font-size: var(--yb-mkt-h2);
  line-height: 1.1;
  font-weight: 640;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.yb-closing__text {
  max-width: 56ch;
  margin-top: var(--yb-space-4);
  color: var(--yb-on-brand-muted);
  font-size: var(--yb-mkt-lead);
  line-height: 1.55;
}

.yb-closing__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-3) var(--yb-space-4);
  margin-top: var(--yb-space-8);
}

/* ==========================================================================
   Inner pages: head, pricing tables, rules, legal documents, contact
   ========================================================================== */
.yb-page-head {
  padding-block: clamp(48px, 2rem + 3vw, 88px) clamp(32px, 1.5rem + 2vw, 56px);
}

.yb-page-head__title {
  max-width: 22ch;
  font-size: var(--yb-mkt-page-title);
  line-height: 1.06;
  font-weight: 660;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.yb-page-head__lead {
  max-width: 60ch;
  margin-top: var(--yb-space-5);
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-lead);
  line-height: 1.55;
}

.yb-page-head__note {
  margin-top: var(--yb-space-3);
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
}

.yb-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--yb-space-12);
  align-items: start;
}

@media (max-width: 1023px) {
  .yb-split {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--yb-space-6);
  }
}

.yb-scale,
.yb-examples {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.yb-scale thead th,
.yb-examples thead th {
  padding: 0 0 var(--yb-space-3);
  border-bottom: 1px solid var(--yb-border-strong);
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
  font-weight: var(--yb-weight-medium);
}

.yb-scale tbody th,
.yb-scale td {
  padding: var(--yb-space-5) 0;
  border-bottom: 1px solid var(--yb-border);
  vertical-align: top;
}

.yb-scale tbody th {
  width: 38%;
  padding-right: var(--yb-space-6);
  font-size: 1.25rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.yb-scale td strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.yb-scale td span {
  display: block;
  margin-top: 2px;
  color: var(--yb-text-muted);
  font-size: 0.9375rem;
}

.yb-scale__row--free td strong {
  color: var(--yb-success);
}

.yb-scale__row--cap td strong {
  color: var(--yb-primary);
}

.yb-examples tbody th,
.yb-examples td {
  padding: var(--yb-space-4) 0;
  border-bottom: 1px solid var(--yb-border);
}

.yb-examples tbody th {
  font-weight: var(--yb-weight-strong);
}

.yb-examples__num {
  padding-left: var(--yb-space-4) !important;
  text-align: right;
  white-space: nowrap;
}

.yb-examples td strong {
  font-size: 1.125rem;
}

@media (max-width: 599px) {
  .yb-examples thead th:nth-child(4),
  .yb-examples td:nth-child(4) {
    display: none;
  }

  .yb-scale tbody th {
    width: 34%;
    font-size: 1.0625rem;
  }

  .yb-scale td strong {
    font-size: 1.0625rem;
  }
}

/* Reflow at 320 px (WCAG 1.4.10, 400 % zoom): the headings of the amounts wrap instead of widening the page. */
@media (max-width: 359px) {
  .yb-examples__num {
    padding-left: var(--yb-space-2) !important;
    white-space: normal;
  }

  .yb-examples td strong {
    font-size: 1rem;
  }
}

.yb-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--yb-space-6);
}

.yb-rules__col {
  padding: var(--yb-space-8);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-lg);
  background: var(--yb-bg);
}

.yb-rules__col h3 {
  font-size: 1.25rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.yb-rules__col ul {
  display: grid;
  gap: var(--yb-space-4);
  margin: var(--yb-space-5) 0 0;
  padding: 0;
  list-style: none;
}

.yb-rules__col li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: var(--yb-space-3);
}

.yb-rules__col .mud-icon-root {
  margin-top: 3px;
  color: var(--yb-text-muted);
}

.yb-rules__col--free .mud-icon-root {
  color: var(--yb-success);
}

@media (max-width: 767px) {
  .yb-rules {
    grid-template-columns: minmax(0, 1fr);
  }

  .yb-rules__col {
    padding: var(--yb-space-6);
  }
}

/* Legal documents */
.yb-doc {
  padding-bottom: var(--yb-section-space);
}

.yb-doc__head {
  padding-block: clamp(48px, 2rem + 3vw, 88px) var(--yb-space-6);
}

.yb-doc__updated {
  margin-top: var(--yb-space-3);
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
}

.yb-doc__layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--yb-space-16);
  align-items: start;
  margin-top: var(--yb-space-12);
}

.yb-doc__toc {
  position: sticky;
  top: calc(var(--yb-site-header) + 32px);
}

.yb-doc__toc h2 {
  margin-bottom: var(--yb-space-3);
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
  font-weight: var(--yb-weight-strong);
}

.yb-doc__toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0 0 0 var(--yb-space-5);
  color: var(--yb-text-muted);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.yb-doc__toc a {
  display: inline-block;
  padding: 4px 0;
  color: var(--yb-text-muted);
  text-decoration: none;
}

.yb-doc__toc a:hover {
  color: var(--yb-text);
  text-decoration: underline;
}

.yb-doc__body {
  max-width: 70ch;
}

.yb-doc__body section + section {
  margin-top: var(--yb-space-12);
}

.yb-doc__body h2 {
  display: flex;
  align-items: baseline;
  gap: var(--yb-space-3);
  margin-bottom: var(--yb-space-4);
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.yb-doc__index {
  color: var(--yb-text-muted);
  font-size: 1rem;
  font-weight: var(--yb-weight-medium);
}

.yb-doc__body p,
.yb-doc__body li {
  font-size: 1.0625rem;
  line-height: 1.68;
}

.yb-doc__body p + p,
.yb-doc__body p + ul,
.yb-doc__body ul + p {
  margin-top: var(--yb-space-4);
}

.yb-doc__body ul {
  display: grid;
  gap: var(--yb-space-2);
  margin: 0;
  padding-left: var(--yb-space-5);
}

.yb-doc__address {
  padding-left: var(--yb-space-4);
  border-left: 3px solid var(--yb-accent);
}

.yb-doc mark {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--yb-accent-soft);
  color: var(--yb-on-accent-soft);
  font-weight: var(--yb-weight-medium);
}

@media (max-width: 1023px) {
  .yb-doc__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--yb-space-10);
  }

  .yb-doc__toc {
    position: static;
    padding: var(--yb-space-5);
    border: 1px solid var(--yb-border);
    border-radius: var(--yb-radius-md);
    background: var(--yb-surface);
  }
}

/* Contact */
.yb-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--yb-space-12);
  align-items: start;
  padding-bottom: var(--yb-section-space);
}

.yb-contact__panel {
  padding: clamp(24px, 1rem + 1.5vw, 40px);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-mkt-radius);
  background: var(--yb-surface);
  box-shadow: var(--yb-shadow-xs);
}

.yb-contact__form {
  display: grid;
  gap: var(--yb-space-5);
}

.yb-contact__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--yb-space-5);
}

.yb-contact__form .mud-input.mud-input-outlined {
  min-height: 44px;
}

.yb-contact__form .mud-input > input.mud-input-root-outlined {
  padding-block: 12px;
  font-size: 1rem;
}

.yb-select {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 12px !important;
  border: 0;
  background: transparent;
  color: var(--yb-text);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.yb-select:focus {
  outline: none;
}

.yb-select__chevron.mud-icon-root {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--yb-text-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.yb-textarea {
  display: block;
  width: 100%;
  min-height: 168px;
  /* MudBlazor puts 18.5px above an outlined textarea (room for its label): our label sits on the border, as for the
     other fields, so the text starts 12px from the top like theirs. */
  margin: 0 !important;
  padding: 12px !important;
  border: 0;
  background: transparent;
  color: var(--yb-text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.55;
  resize: vertical;
}

.yb-textarea:focus {
  outline: none;
}

.yb-contact__submit {
  display: flex;
  justify-content: flex-start;
}

.yb-contact__submit .mud-button-root.mud-button {
  min-height: 48px;
  padding: 0 24px;
  font-size: 1rem;
}

/* Honeypot: off-screen, not focusable, hidden from assistive technologies. */
.yb-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.yb-contact__aside {
  padding-top: var(--yb-space-2);
}

.yb-contact__aside h2 {
  font-size: var(--yb-mkt-h3);
  font-weight: 620;
}

.yb-contact__aside ul {
  display: grid;
  gap: var(--yb-space-4);
  margin: var(--yb-space-4) 0 0;
  padding: 0;
  list-style: none;
  color: var(--yb-text-muted);
}

.yb-contact__aside li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: var(--yb-space-3);
}

.yb-contact__aside .mud-icon-root {
  margin-top: 3px;
  color: var(--yb-primary);
}

.yb-contact__sent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--yb-space-3);
}

.yb-contact__sent h2 {
  font-size: var(--yb-mkt-h2);
  line-height: 1.15;
  font-weight: 640;
  letter-spacing: -0.03em;
}

.yb-contact__sent p {
  max-width: 52ch;
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-lead);
}

.yb-contact__sent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-4) var(--yb-space-6);
  margin-top: var(--yb-space-4);
}

@media (max-width: 1023px) {
  .yb-contact {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--yb-space-8);
  }
}

@media (max-width: 599px) {
  .yb-contact__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .yb-contact__panel {
    margin-inline: calc(-1 * var(--yb-site-gutter));
    border-inline: 0;
    border-radius: 0;
  }
}

/* ==========================================================================
   Landing: bank and year (text beside a panel of the app)
   ========================================================================== */
.yb-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: var(--yb-space-16);
  align-items: center;
}

.yb-split--reverse > .yb-split__visual {
  order: -1;
}

.yb-split__visual {
  display: flex;
  justify-content: center;
}

.yb-panelmock {
  width: 100%;
  max-width: 480px;
  margin: 0;
}

.yb-panelmock__card {
  overflow: hidden;
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-lg);
  background: var(--yb-surface);
  color: var(--yb-text);
  box-shadow: var(--yb-shadow-lg);
  font-size: 13px;
  line-height: 1.4;
}

.yb-panelmock__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--yb-border);
}

.yb-panelmock__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--yb-radius-sm);
  background: var(--yb-primary-soft);
  color: var(--yb-on-primary-soft);
}

.yb-panelmock__title {
  font-size: 15px;
  font-weight: 620;
}

.yb-panelmock__meta {
  margin-left: auto;
  color: var(--yb-text-muted);
  font-size: 12px;
}

.yb-panelmock__foot {
  padding: 12px 18px;
  border-top: 1px solid var(--yb-border);
  background: var(--yb-bg);
  color: var(--yb-text-muted);
  font-size: 12px;
}

.yb-bankmock {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-bankmock__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid var(--yb-border);
}

.yb-bankmock__row:last-child {
  border-bottom: 0;
}

.yb-bankmock__date {
  grid-row: span 2;
  align-self: start;
  padding-top: 1px;
  color: var(--yb-text-muted);
  font-size: 12px;
}

.yb-bankmock__text {
  overflow: hidden;
  font-weight: 550;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.yb-bankmock__amount {
  font-weight: 600;
  text-align: right;
}

.yb-bankmock__amount--in {
  color: var(--yb-status-green-fg);
}

.yb-bankmock__tag {
  display: inline-flex;
  grid-column: 2 / -1;
  justify-self: start;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 6px;
  border-radius: var(--yb-radius-pill);
  font-size: 11.5px;
  font-weight: 550;
}

.yb-bankmock__tag .mud-icon-root {
  font-size: 14px;
}

.yb-bankmock__tag--ok {
  background: var(--yb-status-green-bg);
  color: var(--yb-status-green-fg);
}

.yb-bankmock__tag--neutral {
  background: var(--yb-status-neutral-bg);
  color: var(--yb-status-neutral-fg);
}

.yb-bankmock__tag--warn {
  background: var(--yb-status-amber-bg);
  color: var(--yb-status-amber-fg);
}

.yb-yearmock {
  padding: 16px 18px 18px;
}

.yb-yearmock__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.yb-yearmock__kpis > div {
  padding: 10px 12px;
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-md);
}

.yb-yearmock__kpis dt {
  color: var(--yb-text-muted);
  font-size: 12px;
}

.yb-yearmock__kpis dd {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.yb-yearmock__result {
  background: var(--yb-primary-soft);
}

.yb-yearmock__kpis dd.yb-yearmock__change {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
  color: var(--yb-status-green-fg);
  font-size: 11px;
  font-weight: 600;
}

.yb-yearmock__change .mud-icon-root {
  font-size: 14px;
}

.yb-yearmock__vat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--yb-radius-md);
  background: var(--yb-bg);
}

.yb-yearmock__where {
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}

/* One grid for every row: the labels share the width of the longest one. */
.yb-yearmock__bars {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) 3em;
  gap: 8px 12px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-yearmock__bars li {
  display: contents;
}

.yb-yearmock__bars li > span:last-child {
  color: var(--yb-text-muted);
  text-align: right;
}

.yb-yearmock__bar {
  height: 8px;
  border-radius: var(--yb-radius-pill);
  background: var(--yb-bg);
}

.yb-yearmock__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--yb-primary);
}

@media (max-width: 1023px) {
  .yb-split {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--yb-space-12);
  }

  .yb-split--reverse > .yb-split__visual {
    order: 0;
  }
}

@media (max-width: 479px) {
  .yb-yearmock__kpis {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .yb-yearmock__result {
    grid-column: 1 / -1;
  }
}

/* Footer "Cookies" button: looks like the footer links (shown by the script only when the banner can work). */
.yb-site__footer-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--yb-text-muted);
  font: inherit;
  cursor: pointer;
}

.yb-site__footer-link:hover {
  color: var(--yb-text);
  text-decoration: underline;
}

.yb-site__footer-link[hidden] {
  display: none;
}

.yb-site__footer-link:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

/* ==========================================================================
   Guides (D436): list of the guides, and a guide (on top of .yb-doc)
   ========================================================================== */
.yb-guides {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: var(--yb-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-guides__item {
  display: grid;
  gap: var(--yb-space-3);
  height: 100%;
  align-content: start;
  padding: var(--yb-space-6);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-mkt-radius);
  background: var(--yb-surface);
  color: inherit;
  text-decoration: none;
}

.yb-guides__item:hover {
  border-color: var(--yb-primary);
}

.yb-guides__item:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

.yb-guides__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--yb-radius-md);
  background: var(--yb-primary-soft);
  color: var(--yb-on-primary-soft);
}

.yb-guides__title {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 620;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.yb-guides__item:hover .yb-guides__title {
  color: var(--yb-primary);
}

.yb-guides__text {
  color: var(--yb-text-muted);
  line-height: 1.55;
}

.yb-guides__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-2);
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
}

.yb-guide .yb-doc__head {
  padding-top: clamp(32px, 1.5rem + 2vw, 56px);
}

.yb-guide .yb-page-head__title {
  max-width: 24ch;
}

.yb-guide__crumbs {
  margin-bottom: var(--yb-space-5);
  font-size: var(--yb-mkt-small);
}

.yb-guide__crumbs a {
  color: var(--yb-text-muted);
  font-weight: var(--yb-weight-medium);
  text-decoration: none;
}

.yb-guide__crumbs a::before {
  content: "‹ ";
}

.yb-guide__crumbs a:hover {
  color: var(--yb-text);
  text-decoration: underline;
}

.yb-guide__draft {
  display: inline-block;
  margin-bottom: var(--yb-space-4);
  padding: 2px 10px;
  border-radius: var(--yb-radius-pill);
  background: var(--yb-accent-soft);
  color: var(--yb-on-accent-soft);
  font-size: var(--yb-mkt-small);
  font-weight: var(--yb-weight-medium);
}

.yb-guides__meta .yb-guide__draft {
  margin-bottom: 0;
}

.yb-guide .yb-doc__updated a,
.yb-guide__body a {
  color: var(--yb-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.yb-guide .yb-doc__toc ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.yb-guide__body > * + * {
  margin-top: var(--yb-space-4);
}

.yb-guide__body h2 {
  display: block;
  margin-top: var(--yb-space-12);
  scroll-margin-top: calc(var(--yb-site-header) + 24px);
}

.yb-guide__body h3 {
  margin-top: var(--yb-space-8);
  font-size: 1.125rem;
  font-weight: 620;
}

.yb-guide__body ol {
  display: grid;
  gap: var(--yb-space-2);
  margin-bottom: 0;
  padding-left: var(--yb-space-6);
}

.yb-guide__body blockquote {
  margin-inline: 0;
  padding: var(--yb-space-5) var(--yb-space-6);
  border-left: 3px solid var(--yb-accent);
  border-radius: 0 var(--yb-radius-md) var(--yb-radius-md) 0;
  background: var(--yb-surface);
}

.yb-guide__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}

.yb-guide__body th,
.yb-guide__body td {
  padding: var(--yb-space-3) var(--yb-space-4) var(--yb-space-3) 0;
  border-bottom: 1px solid var(--yb-border);
  text-align: left;
  vertical-align: top;
}

.yb-guide__body th {
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
  font-weight: var(--yb-weight-strong);
}

@media (max-width: 599px) {
  .yb-guide__body table,
  .yb-guide__body tbody,
  .yb-guide__body tr,
  .yb-guide__body td {
    display: block;
  }

  .yb-guide__body thead {
    display: none;
  }

  .yb-guide__body tr {
    padding-block: var(--yb-space-3);
    border-bottom: 1px solid var(--yb-border);
  }

  .yb-guide__body td {
    padding: 0;
    border: 0;
  }

  .yb-guide__body td:first-child {
    font-weight: var(--yb-weight-strong);
  }
}

/* ==========================================================================
   Free tools (B-003): form on the left, live preview on the right
   ========================================================================== */
.yb-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--yb-space-12);
  align-items: start;
  padding-bottom: var(--yb-section-space);
}

.yb-tool__form {
  display: grid;
  gap: var(--yb-space-8);
  padding: clamp(24px, 1rem + 1.5vw, 40px);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-mkt-radius);
  background: var(--yb-surface);
  box-shadow: var(--yb-shadow-xs);
}

.yb-tool__step {
  display: grid;
  gap: var(--yb-space-4);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.yb-tool__step legend {
  display: flex;
  align-items: center;
  gap: var(--yb-space-3);
  margin-bottom: var(--yb-space-4);
  padding: 0;
  font-size: 1.125rem;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.yb-tool__index {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--yb-radius-pill);
  background: var(--yb-primary-soft, var(--yb-accent-soft));
  color: var(--yb-on-primary-soft, var(--yb-on-accent-soft));
  font-size: var(--yb-mkt-small);
  font-weight: var(--yb-weight-strong);
}

.yb-tool__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--yb-space-4);
}

.yb-tool__row--street {
  grid-template-columns: minmax(0, 1fr) 96px;
}

.yb-tool__row--town {
  grid-template-columns: 112px minmax(0, 1fr);
}

.yb-tool__form .mud-input.mud-input-outlined {
  min-height: 44px;
}

.yb-tool__form .mud-input > input.mud-input-root-outlined {
  padding-block: 12px;
  font-size: 1rem;
}

.yb-tool__ok {
  display: flex;
  align-items: center;
  gap: var(--yb-space-2);
  color: var(--yb-status-green-fg);
  font-size: var(--yb-mkt-small);
}

.yb-tool__more summary {
  display: inline-flex;
  align-items: center;
  gap: var(--yb-space-2);
  color: var(--yb-primary);
  font-weight: var(--yb-weight-medium);
  cursor: pointer;
  list-style: none;
}

.yb-tool__more summary::-webkit-details-marker {
  display: none;
}

.yb-tool__more summary span {
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
  font-weight: 400;
}

.yb-tool__more + .yb-tool__more {
  margin-top: calc(var(--yb-space-4) * -1);
}

.yb-tool__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-3) var(--yb-space-5);
}

.yb-tool__download.mud-button-root.mud-button {
  min-height: 48px;
  padding: 0 24px;
  font-size: 1rem;
}

.yb-tool__privacy,
.yb-tool__caption {
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
  line-height: 1.5;
}

.yb-tool__privacy {
  margin-top: calc(var(--yb-space-4) * -1);
}

.yb-tool__preview {
  position: sticky;
  top: calc(var(--yb-site-header) + 32px);
  display: grid;
  gap: var(--yb-space-4);
}

.yb-tool__preview h2 {
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
  font-weight: var(--yb-weight-strong);
}

/* Side by side, the result starts level with the form: its title is kept for screen readers only. */
@media (min-width: 1024px) {
  .yb-tool__preview > h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 1023px) {
  .yb-tool {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--yb-space-8);
  }

  .yb-tool__preview {
    position: static;
  }
}

@media (max-width: 479px) {
  .yb-tool__row:not(.yb-tool__row--street):not(.yb-tool__row--town) {
    grid-template-columns: minmax(0, 1fr);
  }

  .yb-tool__more summary span {
    display: none;
  }
}

.yb-nowrap {
  white-space: nowrap;
}

.yb-tool__folded {
  display: grid;
  gap: var(--yb-space-4);
  margin-top: var(--yb-space-4);
}

.yb-tool__choice {
  display: grid;
  gap: var(--yb-space-2);
  align-content: start;
}

.yb-tool__choice label {
  font-size: var(--yb-mkt-small);
  font-weight: var(--yb-weight-medium);
}

.yb-tool__choice select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--yb-border-strong, var(--yb-border));
  border-radius: var(--yb-radius-sm);
  background: var(--yb-surface);
  color: var(--yb-text);
  font: inherit;
  font-size: 1rem;
}

.yb-tool__choice select:focus-visible,
.yb-tool__link:focus-visible,
.yb-tool__more summary:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

.yb-tool__error {
  color: var(--yb-error, #B3261E);
  font-size: var(--yb-mkt-small);
}

.yb-tool__error[hidden],
.yb-tool__ok[hidden],
.yb-tool__link[hidden] {
  display: none;
}

.yb-tool__link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--yb-primary);
  font: inherit;
  font-weight: var(--yb-weight-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.yb-tool__download .mud-button-label {
  display: inline-flex;
  align-items: center;
  gap: var(--yb-space-2);
}

/* The payment part is always shown on white, in both themes: it is a picture of the printed slip. */
.yb-tool__sheet {
  overflow: hidden;
  border-radius: var(--yb-radius-md);
  background: #FFFFFF;
  box-shadow: var(--yb-shadow-md);
}

.yb-tool__sheet svg,
.yb-tool__sheet img {
  display: block;
  width: 100%;
  height: auto;
}

.yb-tool__example {
  opacity: 0.55;
}

.yb-tool__files {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-3) var(--yb-space-5);
}

.yb-tool__form .yb-ssr-summary[hidden] {
  display: none;
}

.yb-tool__sheet--stale svg {
  opacity: 0.35;
}

/* Result of a free tool (ToolShell): a card with a verdict, facts and explanations. */
.yb-tool__result {
  display: grid;
  gap: var(--yb-space-5);
  padding: clamp(20px, 1rem + 1vw, 32px);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-mkt-radius);
  background: var(--yb-surface);
  box-shadow: var(--yb-shadow-xs);
}

.yb-tool__empty {
  color: var(--yb-text-muted);
  line-height: 1.55;
}

.yb-tool__verdict {
  display: flex;
  align-items: flex-start;
  gap: var(--yb-space-3);
  font-size: 1.375rem;
  line-height: 1.25;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.yb-tool__verdict .mud-icon-root {
  flex: none;
  margin-top: 2px;
}

.yb-tool__verdict--ok .mud-icon-root {
  color: var(--yb-status-green-fg);
}

.yb-tool__verdict--no .mud-icon-root {
  color: var(--yb-error);
}

.yb-tool__verdict--warn .mud-icon-root {
  color: var(--yb-on-accent-soft);
}

.yb-tool__big {
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
  line-height: 1.1;
  font-weight: 640;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.yb-tool__facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.yb-tool__facts > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--yb-space-1) var(--yb-space-4);
  padding-block: var(--yb-space-3);
  border-top: 1px solid var(--yb-border);
}

.yb-tool__facts dt {
  color: var(--yb-text-muted);
}

.yb-tool__facts dd {
  margin: 0;
  font-weight: var(--yb-weight-medium);
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}

.yb-tool__facts .yb-tool__total dd,
.yb-tool__facts .yb-tool__total dt {
  color: var(--yb-text);
  font-weight: var(--yb-weight-strong);
}

.yb-tool__note {
  color: var(--yb-text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.yb-tool__note a,
.yb-tool__result a:not(.mud-button-root) {
  color: var(--yb-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.yb-tool__text {
  padding: var(--yb-space-4);
  border-radius: var(--yb-radius-md);
  background: var(--yb-bg-sunken, var(--yb-bg));
  font-size: 0.9375rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.yb-tool__copy {
  justify-self: start;
}

.yb-tool__copy[hidden] {
  display: none;
}

/* Choice between a few values: native radio buttons shown as a row of buttons. */
.yb-tool__segments {
  display: flex;
  flex-wrap: wrap;
  gap: var(--yb-space-2);
  margin: 0;
  padding: 0;
  border: 0;
}

.yb-tool__segments legend {
  margin-bottom: var(--yb-space-2);
  padding: 0;
  font-size: var(--yb-mkt-small);
  font-weight: var(--yb-weight-medium);
}

.yb-tool__segments label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--yb-space-4);
  border: 1px solid var(--yb-border-strong, var(--yb-border));
  border-radius: var(--yb-radius-sm);
  background: var(--yb-surface);
  cursor: pointer;
}

.yb-tool__segments input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.yb-tool__segments label:has(input:checked) {
  border-color: var(--yb-primary);
  background: var(--yb-primary-soft);
  color: var(--yb-on-primary-soft);
  font-weight: var(--yb-weight-strong);
}

.yb-tool__segments label:has(input:focus-visible) {
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

.yb-tool__check {
  display: flex;
  align-items: flex-start;
  gap: var(--yb-space-3);
  line-height: 1.5;
  cursor: pointer;
}

.yb-tool__check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--yb-primary);
}

.yb-page-head .yb-guide__crumbs {
  margin-bottom: var(--yb-space-5);
}

.yb-tool__big {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem);
}

.yb-tool__part {
  margin: var(--yb-space-6) 0 var(--yb-space-2);
  padding-top: var(--yb-space-4);
  border-top: 1px solid var(--yb-border);
  font-size: 1rem;
  font-weight: var(--yb-weight-strong);
}

.yb-tool__file {
  width: 100%;
  min-height: 44px;
  padding: var(--yb-space-3);
  border: 1px dashed var(--yb-border-strong, var(--yb-border));
  border-radius: var(--yb-radius-sm);
  background: var(--yb-surface);
  color: var(--yb-text);
  font: inherit;
}

.yb-tool__file:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

.yb-tool__file[aria-invalid="true"] {
  border-color: var(--yb-error);
}

.yb-tool__hint {
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
}

.yb-tool__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem 8rem;
  gap: var(--yb-space-3);
}

@media (max-width: 599px) {
  .yb-tool__line {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .yb-tool__line > :first-child {
    grid-column: 1 / -1;
  }
}

.yb-tool__line + .yb-tool__line {
  margin-top: var(--yb-space-2);
  padding-top: var(--yb-space-3);
  border-top: 1px dashed var(--yb-border);
}

.yb-tool__vat-fields {
  display: grid;
  gap: var(--yb-space-3);
  margin-top: var(--yb-space-3);
}

/* The VAT number and rate only when « with VAT » is checked; without :has() support they stay visible. */
.yb-tool__vat:has(#tool-vat-no:checked) .yb-tool__vat-fields {
  display: none;
}

.yb-tool__page {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: var(--yb-space-4);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-sm);
  background: #fff;
  box-shadow: var(--yb-shadow-sm, none);
}

.yb-tool__table-wrap {
  max-width: 100%;
  margin-top: var(--yb-space-4);
  overflow-x: auto;
}

.yb-tool__table-wrap:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

.yb-tool__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.yb-tool__table caption {
  padding-bottom: var(--yb-space-2);
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
  text-align: left;
}

.yb-tool__table th,
.yb-tool__table td {
  padding: var(--yb-space-2) var(--yb-space-2);
  border-top: 1px solid var(--yb-border);
  text-align: left;
  vertical-align: top;
}

.yb-tool__table th {
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
  font-weight: var(--yb-weight-medium);
}

.yb-tool__table .yb-tool__num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.yb-tool__sub {
  display: block;
  color: var(--yb-text-muted);
  font-size: var(--yb-mkt-small);
  overflow-wrap: anywhere;
}

.yb-tool__in {
  font-weight: var(--yb-weight-medium);
}

/* ==========================================================================
   PDF toolbox: a drop area, the files or pages as cards, one action
   ========================================================================== */
.yb-pdfkit {
  display: grid;
  gap: var(--yb-space-6);
  padding-bottom: var(--yb-section-space);
}

.yb-pdfkit__nojs {
  padding: var(--yb-space-4);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-sm);
  background: var(--yb-surface);
}

.yb-pdfkit__drop {
  display: grid;
  justify-items: center;
  gap: var(--yb-space-2);
  padding: clamp(32px, 1rem + 4vw, 72px) var(--yb-space-6);
  border: 2px dashed var(--yb-border-strong, var(--yb-border));
  border-radius: var(--yb-mkt-radius);
  background: var(--yb-surface);
  text-align: center;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.yb-pdfkit[data-pdf-filled] .yb-pdfkit__drop {
  padding-block: var(--yb-space-6);
}

.yb-pdfkit__drop:hover,
.yb-pdfkit__drop--over {
  border-color: var(--yb-primary);
  background: var(--yb-primary-soft, var(--yb-accent-soft));
}

.yb-pdfkit__drop:focus-within {
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

.yb-pdfkit__drop .mud-icon-root {
  font-size: 2.5rem;
  color: var(--yb-primary);
}

.yb-pdfkit__drop-title {
  font-size: 1.25rem;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.yb-pdfkit__drop-hint {
  color: var(--yb-text-muted);
}

.yb-pdfkit__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.yb-pdfkit__local {
  display: flex;
  align-items: flex-start;
  gap: var(--yb-space-4);
  padding: var(--yb-space-5, 20px) var(--yb-space-6);
  border: 1px solid color-mix(in srgb, var(--yb-status-green-fg) 30%, transparent);
  border-radius: var(--yb-mkt-radius);
  background: var(--yb-status-green-bg);
}

.yb-pdfkit__local .mud-icon-root {
  flex: none;
  margin-top: 2px;
  color: var(--yb-status-green-fg);
}

.yb-pdfkit__local p {
  margin: 0;
  max-width: 68ch;
}

.yb-pdfkit__local-title {
  margin-bottom: var(--yb-space-1);
  color: var(--yb-status-green-fg);
  font-size: 1.125rem;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.yb-pdfkit__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: var(--yb-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-pdfkit__items:empty {
  display: none;
}

.yb-pdfkit__item {
  display: grid;
  gap: var(--yb-space-2);
  align-content: start;
  min-width: 0;
  padding: var(--yb-space-3);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-sm);
  background: var(--yb-surface);
  box-shadow: var(--yb-shadow-xs);
  cursor: grab;
}

.yb-pdfkit__item--dragged {
  border-style: dashed;
  border-color: var(--yb-primary);
  background: var(--yb-primary-soft, var(--yb-accent-soft));
  box-shadow: none;
}

.yb-pdfkit__item--dragged > * {
  opacity: 0.25;
}

.yb-pdfkit__item:active {
  cursor: grabbing;
}

.yb-pdfkit__hint {
  margin: 0 0 calc(-1 * var(--yb-space-3));
}

.yb-pdfkit__thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--yb-radius-xs, 4px);
  background: var(--yb-bg-sunken, var(--yb-bg));
}

.yb-pdfkit__thumb canvas,
.yb-pdfkit__thumb img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: #fff;
  box-shadow: 0 0 0 1px var(--yb-border);
  transform: rotate(var(--yb-pdfkit-turn, 0deg));
  transition: transform 160ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .yb-pdfkit__thumb canvas,
  .yb-pdfkit__thumb img,
  .yb-pdfkit__drop {
    transition: none;
  }
}

/* A page not drawn yet shows the empty frame, not a blank sheet of the wrong shape. */
.yb-pdfkit__thumb canvas:not([data-pdf-drawn]) {
  visibility: hidden;
}

.yb-pdfkit__name,
.yb-pdfkit__detail {
  margin: 0;
  overflow: hidden;
  font-size: var(--yb-mkt-small);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-pdfkit__name {
  font-weight: var(--yb-weight-strong);
}

.yb-pdfkit__detail {
  color: var(--yb-text-muted);
}

.yb-pdfkit__tools {
  display: flex;
  justify-content: space-between;
  gap: var(--yb-space-1);
}

.yb-pdfkit__tool {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--yb-radius-pill);
  background: none;
  color: var(--yb-text-muted);
  cursor: pointer;
}

.yb-pdfkit__tool:hover:not(:disabled) {
  background: var(--yb-bg-sunken, var(--yb-bg));
  color: var(--yb-text);
}

.yb-pdfkit__tool:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 1px;
}

.yb-pdfkit__tool:disabled {
  opacity: 0.35;
  cursor: default;
}

.yb-pdfkit__bar {
  display: grid;
  gap: var(--yb-space-4);
  justify-items: start;
}

.yb-pdfkit__bar .yb-tool__actions button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.yb-pdfkit__clear {
  color: var(--yb-text-muted);
}

.yb-pdfkit__status {
  min-height: 1.5em;
  margin: 0;
  color: var(--yb-text-muted);
}

@media (pointer: coarse) {
  .yb-pdfkit__tool {
    width: 44px;
    height: 44px;
  }

  .yb-pdfkit__items {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* List of the free tools, by kind. */
.yb-tools__group + .yb-tools__group {
  margin-top: var(--yb-space-12);
}

.yb-tools__group-title {
  margin: 0 0 var(--yb-space-5, 20px);
  font-size: 1.375rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}
