/* =============================================================================
   Dring — heydring.com
   One stylesheet for every page. Identity: "a doorbell lit up at night".
   Night Indigo is the brand, Midnight the dark surfaces, Doorbell Yellow the
   lit button (text on it is always Ink), on a warm Lime-wash background.
   Urgent Red is reserved for the "Emergency" urgency level and errors.
   ========================================================================== */

/* ---------------------------------------------------------------- fonts
   Self-hosted (no third-party font CDN). SIL Open Font License 1.1. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: light;

  --indigo: #4e2cc0;          /* Night Indigo — brand, buttons, links */
  --indigo-pressed: #3f22a3;
  --midnight: #2b1872;        /* Midnight — dark panels */
  --yellow: #ffc531;          /* Doorbell Yellow — the lit button */
  --ink-fixed: #18122e;       /* Ink — always used on yellow */
  --green: #1b7a3e;           /* Arrived Green */
  --red: #d12c1f;             /* Urgent Red — Emergency only */

  --bg: #f7f5f0;              /* Lime-wash */
  --surface: #ffffff;
  --surface-muted: #f0ede6;
  --border: #e6e2d9;
  --border-strong: #d3cec2;
  --ink: #18122e;
  --text: #2e2747;
  --muted: #635c78;           /* Slate */
  --link: #4e2cc0;
  --brand-soft: #eeeafb;
  --brand-border: #d4cbf5;
  --yellow-soft: #fff6d9;
  --yellow-border: #f2dc9a;
  --green-soft: #e8f5ec;
  --focus: #4e2cc0;

  /* The logo, themable */
  --logo-mark: #4e2cc0;
  --logo-dot: #4e2cc0;
  --logo-word: #18122e;

  /* Night panels keep their colours in both themes */
  --night: #2b1872;
  --night-deep: #1f1257;
  --night-line: #4e2cc0;
  --night-text: #ffffff;
  --night-muted: #dcd5f7;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 16px;
  --max: 1160px;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 28px;
  --shadow: 0 1px 2px rgb(24 18 46 / 6%), 0 8px 24px -12px rgb(24 18 46 / 18%);
  --shadow-l: 0 2px 4px rgb(24 18 46 / 6%), 0 24px 48px -20px rgb(24 18 46 / 30%);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #110c22;
    --surface: #1b1534;
    --surface-muted: #221b40;
    --border: #2f2754;
    --border-strong: #41386b;
    --ink: #f4f1fb;
    --text: #e4dff2;
    --muted: #b5adcb;
    --link: #b3a3ff;
    --brand-soft: #241c4a;
    --brand-border: #3a2f74;
    --yellow-soft: #2c2412;
    --yellow-border: #5a4718;
    --green-soft: #12291c;
    --focus: #ffc531;
    --logo-mark: #ffffff;
    --logo-dot: #ffc531;
    --logo-word: #ffffff;
    --night: #1f1257;
    --night-deep: #170d45;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px -12px rgb(0 0 0 / 60%);
    --shadow-l: 0 2px 4px rgb(0 0 0 / 30%), 0 24px 48px -20px rgb(0 0 0 / 70%);
  }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}
h3, h4 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 700; color: var(--ink); }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

::selection { background: var(--yellow); color: var(--ink-fixed); }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  background: var(--ink-fixed);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--s { width: 18px; height: 18px; }
.icon--l { width: 28px; height: 28px; }

/* ---------------------------------------------------------------- header */
.site-header {
  padding-block: 14px;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;            /* last resort on tiny screens / large text: the nav drops below the logo */
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand svg { width: 104px; height: auto; }
@media (min-width: 640px) {
  .brand svg { width: 124px; }
}
.logo-mark { stroke: var(--logo-mark); }
.logo-dot { fill: var(--logo-dot); }
.logo-word { fill: var(--logo-word); }

.site-nav { min-width: 0; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--surface-muted); }
.site-nav a[aria-current="page"] { color: var(--link); }
.site-nav a[aria-current="page"]::after {
  content: "";
  width: 6px; height: 6px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--yellow);
}
.site-nav .lang {
  gap: 6px;
  margin-left: 4px;
  padding-inline: 12px;
  border: 1.5px solid var(--border-strong);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}
.site-nav .lang:hover { border-color: var(--ink); background: transparent; }
/* Small phones (320–400 px): smaller logo, tighter links and no globe icon, so the
   French nav ("Pour les pros · Aide · EN") fits on the logo's line. */
@media (max-width: 400px) {
  .site-header .wrap { column-gap: 8px; }
  .brand svg { width: 84px; }
  .site-nav a { padding-inline: 6px; font-size: 0.875rem; }
  .site-nav .lang { padding-inline: 8px; margin-left: 2px; }
  .site-nav .lang .icon { display: none; }
}
@media (min-width: 640px) {
  .site-nav ul { gap: 6px; }
  .site-nav a { padding-inline: 14px; font-size: 1rem; }
}

/* ---------------------------------------------------------------- type helpers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--link);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 28%, transparent);
}
.lede {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.55;
}
@media (min-width: 640px) {
  .lede { font-size: 1.25rem; }
}
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }

.section { padding-block: 72px; }
@media (min-width: 900px) {
  .section { padding-block: 112px; }
}
.section-head {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 40px;
}
@media (min-width: 900px) {
  .section-head { margin-bottom: 56px; }
}
.section-head h2,
.h2 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
}
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--indigo); color: #fff; }
.btn--primary:hover { background: var(--indigo-pressed); }
.btn--lit { background: var(--yellow); color: var(--ink-fixed); }
.btn--lit:hover { background: #ffd35c; }
.btn--ghost { border-color: var(--border-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-night { border-color: rgb(255 255 255 / 40%); color: #fff; background: transparent; }
.btn--ghost-night:hover { border-color: #fff; }
@media (prefers-color-scheme: dark) {
  .btn--primary { background: #5b3ad6; }
  .btn--primary:hover { background: #4e2cc0; }
}

/* ---------------------------------------------------------------- store pills */
.soon {
  display: grid;
  gap: 14px;
}
.soon__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}
.soon__label .pulse { flex-shrink: 0; }
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 18px 8px 12px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 14px;
  color: var(--ink);
  line-height: 1.15;
}
.store .icon { color: var(--muted); }
.store small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.store b { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; color: var(--ink); }

.pulse {
  position: relative;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--yellow);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  opacity: 0;
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring {
  0% { transform: scale(0.4); opacity: 0.9; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}

/* ---------------------------------------------------------------- hero */
.hero {
  padding-top: 24px;
  padding-bottom: 64px;
}
.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero__copy {
  display: grid;
  gap: 22px;
  align-content: start;
}
.hero h1 {
  font-size: clamp(2.75rem, 1.6rem + 5.6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.hero h1 .ring-word { color: var(--link); white-space: nowrap; }
.hero .lede { max-width: 34ch; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.hero__note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.9375rem;
  list-style: none;
}
.hero__note li { display: inline-flex; align-items: center; gap: 8px; }
.hero__note .icon { color: var(--green); }
@media (prefers-color-scheme: dark) {
  .hero__note .icon { color: #6fd39a; }
}
@media (min-width: 960px) {
  .hero { padding-top: 40px; padding-bottom: 96px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; }
}

/* ---------------------------------------------------------------- night panel */
.night {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-l);
  background: var(--night);
  color: var(--night-text);
}
.night h2, .night h3, .night strong { color: #fff; }
.night p { color: var(--night-muted); }
.night a:not(.btn) { color: #fff; }
.night .btn--lit { color: var(--ink-fixed); }
/* The indigo focus ring nearly vanishes on Midnight: use Doorbell Yellow (≈ 9:1). */
.night :focus-visible { outline-color: var(--yellow); }
.waves {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  fill: none;
  stroke: var(--night-line);
  stroke-linecap: round;
}

.stage {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 40px 20px 28px;
}
@media (min-width: 640px) {
  .stage { padding: 56px 40px 32px; }
}
@media (min-width: 960px) {
  .stage { padding: 64px 40px 34px; min-height: 640px; align-content: center; }
}
.stage .caption {
  color: var(--night-muted);
  font-size: 0.8125rem;
  text-align: center;
}

/* Floating notification cards around the phone */
.stage__phone { position: relative; }
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(300px, 100%);
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  color: #2e2747;
  box-shadow: 0 18px 40px -16px rgb(10 6 30 / 55%);
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: left;
}
.toast b { display: block; color: #18122e; font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; }
.toast .t-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--indigo);
}
.toast .t-icon svg { width: 22px; height: 22px; }
.toast--arrived .t-icon { background: var(--green); color: #fff; }
.toast .ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 2px 10px 2px 6px;
  border-radius: 999px;
  background: #e8f5ec;
  color: #1b7a3e;
  font-weight: 700;
  font-size: 0.8125rem;
}
.toast .ok .icon { width: 16px; height: 16px; stroke-width: 2.5; }
.toast--accepted { display: none; }
@media (min-width: 1240px) {
  /* Wide screens: the phone moves right, the two notifications sit beside it. */
  .hero--client .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .hero--client .stage { justify-items: end; padding-right: 48px; }
  .hero--client .stage .caption { width: 290px; }
  .toast { position: absolute; z-index: 2; left: 28px; width: 232px; }
  .toast--accepted { display: flex; top: 168px; }
  .toast--arrived { top: 372px; }
}

/* ---------------------------------------------------------------- phone mock-up (illustrative, CSS only) */
.phone {
  position: relative;
  width: min(290px, 100%);
  aspect-ratio: 290 / 600;
  padding: 10px;
  border-radius: 46px;
  background: #0d0920;
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / 14%) inset, 0 40px 80px -30px rgb(5 2 20 / 70%);
}
.phone::before { /* camera island */
  content: "";
  position: absolute;
  z-index: 3;
  top: 20px; left: 50%;
  width: 84px; height: 24px;
  border-radius: 999px;
  background: #0d0920;
  transform: translateX(-50%);
}
.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 50px 14px 16px;
  border-radius: 37px;
  background: #f7f5f0;
  color: #2e2747;
  font-size: 12px;
  line-height: 1.35;
}
.screen .status {
  position: absolute;
  top: 18px; left: 26px; right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 12px;
  color: #18122e;
}
.screen .status i {
  display: inline-block;
  width: 22px; height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
}
.screen .status i::after {
  content: "";
  position: absolute;
  inset: 1.5px 5px 1.5px 1.5px;
  border-radius: 1px;
  background: currentColor;
}
.s-card {
  padding: 12px;
  border: 1px solid #e6e2d9;
  border-radius: 16px;
  background: #fff;
}
.s-row { display: flex; align-items: center; gap: 10px; }
.s-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eeeafb;
  color: #4e2cc0;
  font-weight: 700;
  font-size: 11px;
}
.s-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-chip--red { background: #d12c1f; color: #fff; }
.s-chip--red::before { background: #fff; }
.s-avatar {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #4e2cc0;
  color: #fff;
  font: 800 17px/1 var(--font-display);
}
.s-name { color: #18122e; font: 700 15px/1.2 var(--font-display); }
.s-sub { color: #635c78; font-size: 11.5px; }
.s-eta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.s-eta .num { color: #18122e; font: 800 40px/1 var(--font-display); letter-spacing: -0.03em; }
.s-eta .num small { margin-left: 3px; font-size: 16px; letter-spacing: 0; }
.s-map {
  position: relative;
  flex: 1;
  min-height: 92px;
  overflow: hidden;
  border-radius: 14px;
  background: #ece8de;
}
.s-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-pin {
  padding: 12px;
  border-radius: 16px;
  background: #18122e;
  color: #fff;
}
.s-pin__label { display: flex; justify-content: space-between; color: #c9c0f5; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.s-pin__digits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.s-pin__digits span {
  display: grid;
  place-items: center;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  color: #18122e;
  font: 800 26px/1 var(--font-display);
  letter-spacing: 0.08em;
}
.s-pin__hint { margin-top: 8px; color: #c9c0f5; font-size: 10.5px; }

/* Full-screen pro alert */
.screen--alert {
  gap: 12px;
  padding: 56px 18px 18px;
  background: #2b1872;
  color: #dcd5f7;
}
.screen--alert .status { color: #fff; }
.alert-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffc531;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.alert-trade { color: #fff; font: 800 32px/1 var(--font-display); letter-spacing: -0.03em; }
.alert-desc {
  padding: 12px;
  border-radius: 14px;
  background: rgb(255 255 255 / 8%);
  color: #fff;
  font-size: 12.5px;
}
.alert-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0;
}
.alert-facts div {
  padding: 9px 8px;
  border-radius: 12px;
  background: rgb(255 255 255 / 8%);
}
.alert-facts dt { color: #c9c0f5; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.alert-facts dd { margin: 2px 0 0; color: #fff; font: 700 15px/1.2 var(--font-display); }
.alert-lock { display: flex; gap: 8px; align-items: flex-start; color: #c9c0f5; font-size: 11px; }
.alert-lock svg { width: 14px; height: 14px; margin-top: 1px; }
.alert-actions { display: grid; gap: 8px; }
.alert-actions span {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
}
.alert-actions .yes { background: #ffc531; color: #18122e; }
.alert-actions .no { border: 1.5px solid rgb(255 255 255 / 35%); color: #fff; }
.alert-time { text-align: center; color: #c9c0f5; font-size: 11px; }
.alert-timer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 14%);
}
.alert-timer .ring {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 3px solid #ffc531;
  border-right-color: rgb(255 255 255 / 18%);
  color: #fff;
  font: 800 14px/1 var(--font-display);
}
.alert-timer b { display: block; color: #fff; font: 700 13px/1.2 var(--font-display); }
.alert-timer span { color: #c9c0f5; font-size: 11px; }

/* ---------------------------------------------------------------- steps */
.steps {
  display: grid;
  gap: 16px;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px 24px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.step__num {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink-fixed);
  font: 800 1.375rem/1 var(--font-display);
}
.step h3 { font-size: 1.375rem; }
.step p { color: var(--muted); }
.step__detail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
}
.step__detail .icon { color: var(--link); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step:not(:last-child)::after { /* connector */
    content: "";
    position: absolute;
    top: 52px; right: -21px;
    width: 22px; height: 2px;
    background: var(--border-strong);
  }
}

/* ---------------------------------------------------------------- trades */
.trades {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}
.trade {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.trade .badge {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--link);
}
.trade h3 { font-size: 1.125rem; overflow-wrap: anywhere; } /* long French trade names on 320 px */
.trade p { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.trade--more {
  background: transparent;
  border-style: dashed;
  border-color: var(--border-strong);
}
.trade--more .badge { background: var(--yellow); color: var(--ink-fixed); }
@media (min-width: 720px) {
  .trades { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .trade { padding: 24px 22px; }
}

/* ---------------------------------------------------------------- feature cards */
.features {
  display: grid;
  gap: 16px;
  list-style: none;
}
.feature {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature .badge {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--link);
}
.feature h3 { font-size: 1.25rem; }
.feature p { color: var(--muted); }
@media (min-width: 720px) {
  .features { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1080px) {
  .features--4 { grid-template-columns: repeat(4, 1fr); }
  .features--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Split section: copy + illustration */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
.split__copy { display: grid; gap: 18px; }
.split__copy .h2 { margin-bottom: 4px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .split--flip .split__media { order: -1; }
}

.checks { display: grid; gap: 12px; list-style: none; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.checks .icon { margin-top: 2px; color: var(--green); stroke-width: 2.5; }
@media (prefers-color-scheme: dark) {
  .checks .icon { color: #6fd39a; }
}

/* Privacy strip */
.strip {
  display: grid;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
  padding: 22px 24px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  background: var(--brand-soft);
}
.strip .icon { color: var(--link); }
.strip p { color: var(--text); }
@media (min-width: 720px) {
  .strip { grid-template-columns: auto 1fr; gap: 20px; padding: 24px 28px; }
}

/* ---------------------------------------------------------------- example cards (illustrations) */
.example {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-l);
}
.example__tag {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ledger { display: grid; list-style: none; }
.ledger li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-block: 12px;
  border-top: 1px solid var(--border);
}
.ledger li:first-child { border-top: 0; }
.ledger .l-icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--ink);
}
.ledger .l-icon .icon { width: 18px; height: 18px; }
.ledger .l-title { color: var(--ink); font-weight: 700; line-height: 1.3; }
.ledger .l-sub { color: var(--muted); font-size: 0.875rem; }
.ledger .l-amt { font: 800 1.125rem/1 var(--font-display); color: var(--ink); white-space: nowrap; }
.ledger .is-plus .l-icon { background: var(--green-soft); color: var(--green); }
.ledger .is-refund .l-icon { background: var(--brand-soft); color: var(--link); }
@media (prefers-color-scheme: dark) {
  .ledger .is-plus .l-icon { color: #6fd39a; }
}

.level {
  display: grid;
  gap: 18px;
}
.level__head { display: flex; align-items: center; gap: 14px; }
.level__badge {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--yellow);
  color: var(--ink-fixed);
  font: 800 1.5rem/1 var(--font-display);
}
.level__name { font: 800 1.375rem/1.1 var(--font-display); color: var(--ink); }
.bar { height: 10px; border-radius: 999px; background: var(--surface-muted); overflow: hidden; }
.bar span { display: block; height: 100%; width: 64%; border-radius: inherit; background: var(--indigo); }
@media (prefers-color-scheme: dark) {
  .bar span { background: #8f78ff; }
}
.challenges { display: grid; gap: 10px; list-style: none; }
.challenges li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.challenges .c-dot {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  color: var(--ink-fixed);
}
.challenges .done .c-dot { border-color: var(--yellow); background: var(--yellow); }
.challenges .c-dot .icon { width: 16px; height: 16px; stroke-width: 3; }
.challenges .c-xp { margin-left: auto; color: var(--muted); font-weight: 700; font-size: 0.875rem; white-space: nowrap; }
.badges-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badges-row span {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--yellow-soft);
  border: 1.5px solid var(--yellow-border);
  color: var(--ink);
}
.badges-row span.locked { background: var(--surface-muted); border-color: var(--border); color: var(--muted); }
.badges-row .icon { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- markets */
.markets {
  display: grid;
  gap: 24px;
  padding: 32px 24px;
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  background: var(--surface);
}
.markets ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.markets li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink);
  font-weight: 700;
}
@media (min-width: 900px) {
  .markets { grid-template-columns: 1fr auto; align-items: center; padding: 36px 40px; }
}

/* ---------------------------------------------------------------- FAQ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}
.faq--wide { max-width: none; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.faq details[open] { border-color: var(--brand-border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 20px;
  border-radius: var(--radius);
  color: var(--ink);
  font: 700 1.0625rem/1.35 var(--font-display);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
    var(--surface-muted);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  background:
    linear-gradient(var(--ink-fixed), var(--ink-fixed)) center / 12px 2px no-repeat,
    var(--yellow);
}
.faq .answer {
  display: grid;
  gap: 12px;
  padding: 0 20px 20px;
  color: var(--muted);
}
.faq .answer a { font-weight: 700; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 18px; }

/* ---------------------------------------------------------------- download band */
.download .night {
  display: grid;
  gap: 32px;
  padding: 48px 24px;
}
.download h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); max-width: 16ch; }
.download .soon__label { color: #fff; }
.download .store { border-color: rgb(255 255 255 / 35%); color: #fff; }
.download .store b { color: #fff; }
.download .store small, .download .store .icon { color: var(--night-muted); }
.download__icon {
  width: 96px; height: 96px;
  border-radius: 24px;
  box-shadow: 0 20px 40px -16px rgb(0 0 0 / 50%);
}
@media (min-width: 900px) {
  .download .night { grid-template-columns: auto 1fr; align-items: center; gap: 48px; padding: 64px 64px; }
  .download__icon { width: 140px; height: 140px; border-radius: 32px; }
}
.download__body { display: grid; gap: 18px; }
.download__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------------------------------------------------------------- page header (inner pages) */
.page-head {
  padding-top: 32px;
  padding-bottom: 40px;
}
.page-head .wrap { display: grid; gap: 18px; max-width: calc(860px + 2 * var(--gutter)); margin-inline: 0; }
.page-head h1 { font-size: clamp(2.375rem, 1.5rem + 3.6vw, 4rem); }
.page-head .lede { max-width: 46ch; }
@media (min-width: 1024px) {
  .page-head { padding-top: 48px; padding-bottom: 56px; }
  .page-head .wrap { margin-inline: auto; max-width: calc(var(--max) + 2 * var(--gutter)); }
  .page-head .wrap > * { max-width: 860px; }
}

/* ---------------------------------------------------------------- pros hero */
.pro-hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .pro-hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
}

.join {
  display: grid;
  gap: 14px;
  list-style: none;
  counter-reset: join;
}
.join li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.join li::before {
  counter-increment: join;
  content: counter(join);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font: 800 1.125rem/1 var(--font-display);
}
.join h3 { font-size: 1.125rem; margin-bottom: 4px; }
.join p { color: var(--muted); }
@media (min-width: 860px) {
  .join { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ---------------------------------------------------------------- support */
.contact-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
.contact {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.contact h2 { font-size: 1.375rem; }
.contact p { color: var(--muted); }
.contact .mail {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font: 700 1.125rem/1.3 var(--font-display);
  word-break: break-word;
}
.notice {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--yellow-border);
  background: var(--yellow-soft);
  color: var(--text);
}
.notice .icon { color: var(--ink); margin-top: 2px; }
.notice strong { display: block; margin-bottom: 2px; }
.notice--danger { border-color: #f4c4bf; background: #fef0ee; }
.notice--danger .icon { color: #d12c1f; }
@media (prefers-color-scheme: dark) {
  .notice--danger { border-color: #6b2620; background: #2a1215; }
  .notice--danger .icon { color: #ff8a80; }
}

/* ---------------------------------------------------------------- legal / prose */
.draft-banner {
  border-bottom: 1px solid var(--yellow-border);
  background: var(--yellow);
  color: var(--ink-fixed);
}
.draft-banner .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
  font-weight: 700;
  font-size: 0.9375rem;
}
.draft-banner .icon { flex-shrink: 0; }

.legal {
  display: grid;
  /* minmax(0, …): a wide table scrolls inside its box instead of widening the page. */
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 96px;
}
@media (min-width: 1024px) {
  .legal { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
}
.toc {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.9375rem;
}
.toc h2 { margin-bottom: 10px; font: 700 0.8125rem/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc ol { display: grid; gap: 2px; list-style: none; counter-reset: toc; }
.toc li { display: grid; grid-template-columns: 1.9em 1fr; counter-increment: toc; }
.toc li::before { content: counter(toc) "."; padding-top: 4px; color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.toc a { display: inline-block; padding-block: 4px; color: var(--text); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--link); text-decoration: underline; }
@media (min-width: 1024px) {
  .toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
}

.prose { max-width: 760px; }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  margin-top: 2.4em;
  padding-top: 0.2em;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  scroll-margin-top: 24px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; font-size: 1.1875rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--link); }
.prose .meta { color: var(--muted); font-size: 0.9375rem; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.prose thead th { border-top: 0; background: var(--surface-muted); color: var(--ink); font-weight: 700; }
.prose tbody th { color: var(--ink); font-weight: 700; }
@media (min-width: 641px) {
  .prose .table-wrap table { min-width: 620px; }
}
@media (max-width: 640px) {
  /* Tables stack into one card per row on phones. */
  .prose .table-wrap { overflow: visible; }
  .prose table, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tbody tr { padding: 14px 16px; border-top: 1px solid var(--border); }
  .prose tbody tr:first-child { border-top: 0; }
  .prose th, .prose td { padding: 0; border: 0; }
  .prose tbody th { margin-bottom: 6px; font-family: var(--font-display); font-size: 1.0625rem; }
  .prose td + td { margin-top: 10px; }
  .prose td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}
/* Side "padding" drawn with a shadow + outline offset: real inline padding at a line end
   spilled a few px past the column on 320 px screens. */
.ph {
  border-radius: 4px;
  background: var(--yellow-soft);
  box-shadow: 0 0 0 2px var(--yellow-soft);
  outline: 1px dashed #b48a12;
  outline-offset: 2px;
  margin-inline: 3px;
  color: var(--ink);
  font-weight: 700;
}

/* ---------------------------------------------------------------- delete-account */
.howto {
  display: grid;
  gap: 12px;
  list-style: none;
  counter-reset: howto;
}
.howto li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}
.howto li::before {
  counter-increment: howto;
  content: counter(howto);
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink-fixed);
  font: 800 1rem/1 var(--font-display);
}
.howto li > div { padding-top: 5px; }
/* An inline highlight, so long French labels wrap with the sentence (no nowrap) and
   the side "padding" (shadow) never widens the line on 320 px screens. */
.path {
  padding-block: 2px;
  border-radius: 6px;
  background: var(--surface-muted);
  box-shadow: 0 0 0 4px var(--surface-muted);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  margin-inline: 4px;
  color: var(--ink);
  font-weight: 700;
}
.cards-2 { display: grid; gap: 16px; }
.cards-2 > *, .howto li > div { min-width: 0; }
@media (min-width: 860px) {
  .cards-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
.panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.panel h2 { font-size: 1.5rem; }
.panel h3 { font-size: 1.1875rem; }
.panel p, .panel li { color: var(--muted); }
.panel .checks li { color: var(--text); }
.dashes { display: grid; gap: 10px; list-style: none; }
.dashes li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.dashes li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--border-strong); }

/* ---------------------------------------------------------------- 404 */
.lost {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding-block: 64px 112px;
  text-align: center;
}
.lost .big {
  font: 800 clamp(5rem, 3rem + 10vw, 9rem)/0.9 var(--font-display);
  letter-spacing: -0.04em;
  color: var(--ink);
}
.lost .big span { color: var(--link); }
.lost h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
.lost .lede { max-width: 40ch; }
.lost .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ---------------------------------------------------------------- footer */
.site-footer {
  margin-top: 0;
  padding-block: 56px 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  gap: 32px;
}
.footer-brand { display: grid; gap: 14px; align-content: start; max-width: 340px; }
.footer-brand svg { width: 120px; height: auto; }
.footer-brand p { color: var(--muted); }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}
.footer-cols h2 {
  margin-bottom: 10px;
  color: var(--muted);
  font: 700 0.8125rem/1.2 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-cols ul { display: grid; gap: 2px; list-style: none; }
.footer-cols a {
  display: inline-block;
  padding-block: 6px;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
}
.footer-cols a:hover { color: var(--link); text-decoration: underline; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1.6fr; gap: 48px; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header nav, .site-footer, .toc, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .draft-banner { border: 2px solid #000; }
}
