/* ==========================================================================
   Dibs — public marketing site
   --------------------------------------------------------------------------
   Consumes assets/tokens.css. It NEVER declares a colour of its own: every
   value here resolves to a token, or to a token mixed with transparency.

   Scope note: the product surfaces (client.html, pro.html, order.html) keep
   using assets/styles.css. This file is loaded only by the generated
   marketing pages, so the two never collide.

   Accessibility contract (DESIGN.md):
   - Colour never carries meaning alone. Status = hue + label + distinct icon.
   - Body text stays at or above 4.5:1. --ink-faint measures 3.8:1 on white,
     so it is used for decoration only, never for text.
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: separate; border-spacing: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-6);
}

/* Visually hidden but announced by screen readers. */
.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-5);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r);
  font-weight: 600;
  transition: top .15s ease;
}
.skip:focus { top: var(--s-4); }

/* Keyboard focus for the whole marketing site. Ink rather than brand green:
   it stays visible on white, on the warm section tint and on the green
   primary button alike, and it does not ask the eye to resolve a hue. The
   ink panel and the footer flip it to --brand-bright, which is 5.68:1
   against --ink. Measured by tools/check-contrast.py. */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sec-ink :focus-visible { outline-color: var(--brand-bright); }

[id] { scroll-margin-top: 88px; }


/* ==========================================================================
   Type
   ========================================================================== */

.h1, .h2, .h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.h1 {
  font-size: clamp(38px, 6.4vw, var(--t-4xl));
  font-weight: 800;
  line-height: 1.03;
}
.h1 span {
  display: block;
  color: var(--ink-soft);
  font-weight: 700;
}
.h1-trade { font-size: clamp(32px, 4.6vw, var(--t-3xl)); }
.h1-trade span { display: inline; }

.h2 {
  font-size: clamp(var(--t-xl), 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  max-width: 22ch;
}
.h2-xl { font-size: clamp(var(--t-xl), 4.2vw, 52px); max-width: 18ch; }
.h2-sm { font-size: var(--t-lg); max-width: none; letter-spacing: -0.015em; }

.h3 {
  font-size: var(--t-md);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p { color: var(--ink-soft); }

.lead {
  font-size: clamp(var(--t-md), 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}
.lead-narrow { max-width: 58ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: var(--s-4);
}
/* The reservation token — the recurring brand motif. Three soft corners and
   one crisp corner, echoing brand/dibs-icon.svg: "this one's spoken for". */
.eyebrow .dot {
  width: 9px; height: 9px;
  border-radius: 32% 32% 32% 6%;
  background: var(--brand);
  flex: none;
}

.fine {
  margin-top: var(--s-4);
  font-size: var(--t-sm);
  color: var(--ink-soft);
  max-width: 70ch;
}


/* ==========================================================================
   Icons — shared sprite at /assets/icons.svg, 1.5px line weight
   ========================================================================== */

.i {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i-inline { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }


/* ==========================================================================
   Wordmark — the shipped SVG from brand/. Never re-set in live type
   (brand/README.md), and never below its 96px minimum width.
   ========================================================================== */

.wm { width: 100px; height: auto; }
@media (max-width: 640px) { .wm { width: 96px; } }


/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px var(--s-5);
  border: 1.5px solid transparent;
  border-radius: var(--r);
  font-size: var(--t-base);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: var(--paper); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }

.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-warm); }

/* On the ink panel only: --brand-bright is a large fill, so the label must be
   ink (7.4:1), never white (2.9:1). */
.btn-bright { background: var(--brand-bright); color: var(--ink); border-color: var(--brand-bright); }
.btn-bright:hover { background: var(--paper); border-color: var(--paper); }

.btn-lg { padding: 15px var(--s-6); font-size: 17px; }
.btn-sm { padding: 8px var(--s-4); font-size: var(--t-sm); border-radius: var(--r-sm); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-8);
}


/* ==========================================================================
   Header
   ========================================================================== */

.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-in {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  min-height: 68px;
}
.logo { display: inline-flex; align-items: center; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  margin-right: auto;
}
.nav a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-soft);
  padding: var(--s-2) 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--brand); }

.head-right { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; }

.langwrap { position: relative; }
.langbtn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink);
  font-size: var(--t-sm); font-weight: 700;
  cursor: pointer;
}
.langbtn:hover { border-color: var(--ink); }
.langbtn .lg-ico { width: 16px; height: 16px; opacity: .8; }
.langbtn .lg-cur { letter-spacing: .02em; }
.langbtn .lg-caret { width: 13px; height: 13px; opacity: .55; }
.langmenu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 170px;
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); padding: 5px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14); z-index: 80;
}
.langmenu .lang-opt {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px;
  font-size: var(--t-sm); font-weight: 600; letter-spacing: 0;
  color: var(--ink);
  border-radius: 8px;
}
.langmenu .lang-opt:hover { background: var(--paper-warm); }
.langmenu .lang-opt[aria-selected="true"] {
  background: var(--ink); color: var(--paper); font-weight: 700;
}

/* The merchant CTA is persistent at every width; below 640px it shrinks to
   the product's own short name while the full label stays for screen readers. */
.pro-short { display: none; }

.burger { display: none; width: 40px; height: 40px; border-radius: var(--r-sm); }
.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.burger span { margin-inline: auto; position: relative; }
.burger span::before,
.burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }


/* ==========================================================================
   Sections
   ========================================================================== */

.sec { padding: var(--s-24) 0; }
.sec-warm { background: var(--paper-warm); }
.sec-ink { background: var(--ink); }
.sec > .wrap > .lead { margin-top: var(--s-4); }
.sec > .wrap > .h2 { margin-top: 0; }

.crumbs { padding-top: var(--s-5); font-size: var(--t-sm); color: var(--ink-soft); }
.crumbs .wrap { display: flex; gap: var(--s-2); align-items: center; }
.crumbs a:hover { color: var(--brand-deep); text-decoration: underline; }


/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: var(--s-20) 0 var(--s-24);
  overflow: hidden;
}
/* A hairline grid, faded out — texture without a pastel gradient. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--paper-sink) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-sink) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(115% 85% at 78% -10%, #000 0%, transparent 68%);
          mask-image: radial-gradient(115% 85% at 78% -10%, #000 0%, transparent 68%);
  pointer-events: none;
}
.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: var(--s-16);
  align-items: center;
}
.hero-copy .lead { margin-top: var(--s-5); }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
}
.trust .i { color: var(--brand); width: 18px; height: 18px; }


/* --- The order ticket ---------------------------------------------------- */

.hero-fig { position: relative; justify-self: end; width: 100%; max-width: 400px; }
/* A second slip peeking out behind — depth without a drop-shadow pile-up. */
.hero-fig::before {
  content: "";
  position: absolute;
  inset: 18px -14px -14px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--paper-warm);
  transform: rotate(2.2deg);
}
.ticket {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.tk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
}
.tk-shop { font-weight: 700; font-size: var(--t-sm); color: var(--ink); }

/* Status = wash + label + a distinct icon shape. Never hue alone. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: var(--t-xs);
  font-weight: 700;
  white-space: nowrap;
}
.status .i { width: 14px; height: 14px; stroke-width: 2.2; }
.status-ready { background: var(--brand-wash); color: var(--brand-deep); }

.tk-when {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px dashed var(--line-strong);
}
.tk-when-k { font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.tk-when-v { font-size: var(--t-base); font-weight: 700; color: var(--ink); }

.tk-items { padding: var(--s-2) 0; }
.tk-items li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: baseline;
  gap: var(--s-2);
  padding: 7px var(--s-5);
  font-size: var(--t-sm);
}
.tk-q { color: var(--ink-soft); font-weight: 600; }
.tk-n { color: var(--ink); }
.tk-p { color: var(--ink-soft); font-weight: 600; }

.tk-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--s-3) var(--s-5);
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--ink);
}
.tk-pay {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink-soft);
}
.tk-pay .i { width: 15px; height: 15px; color: var(--brand-deep); }


/* ==========================================================================
   Steps
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-10);
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: var(--s-4);
  border-radius: var(--r);
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: var(--t-base);
  font-weight: 700;
}
.step .h3 { margin-bottom: var(--s-2); }
.step p { font-size: var(--t-sm); }

.pact {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  max-width: 74ch;
  margin-top: var(--s-8);
  padding: var(--s-4) var(--s-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink);
}
.pact .i { color: var(--brand-deep); margin-top: 2px; }


/* ==========================================================================
   Trades
   ========================================================================== */

.trades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-10);
}
.trade {
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.trade:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.trade-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--r);
  background: var(--brand-wash);
  color: var(--brand-deep);
  margin-bottom: var(--s-4);
}
.trade-ico .i { width: 26px; height: 26px; }
.trade-hook {
  font-family: var(--font-display);
  font-size: var(--t-md);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: var(--s-2) 0 var(--s-3);
}
.trade > p:last-of-type { font-size: var(--t-sm); }
.trade-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--s-5);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--brand-deep);
}
.trade-link:hover { text-decoration: underline; }
.trade-link .i { transition: transform .15s ease; }
.trade:hover .trade-link .i { transform: translateX(3px); }

/* Sibling trades on a trade page */
.sibs { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.sibs a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 10px var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
}
.sibs a:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-wash); }
.sibs .i { width: 18px; height: 18px; color: var(--brand-deep); }

/* Trade page hero badge */
.trade-badge {
  justify-self: end;
  width: 100%;
  max-width: 400px;
  padding: var(--s-10) var(--s-8);
  background: var(--brand-wash);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  text-align: center;
}
.trade-badge-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px; height: 76px;
  margin-bottom: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--brand-deep);
}
.trade-badge-ico .i { width: 40px; height: 40px; }
.trade-badge-hook {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}


/* ==========================================================================
   Merchant panel (the loudest block on the page)
   ========================================================================== */

.sec-ink .h2, .sec-ink .h3 { color: var(--paper); }
.eyebrow-on-ink { color: var(--brand-bright); }
.lead-on-ink { color: var(--paper-sink); }

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-10);
}
.pill-card {
  padding: var(--s-6);
  border: 1px solid var(--ink-soft);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--paper) 5%, transparent);
}
.pill-card p { color: var(--line); font-size: var(--t-sm); }
.pill-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: var(--s-4);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--brand-bright) 20%, transparent);
  color: var(--brand-bright);
}
.pill-card .h3 { margin-bottom: var(--s-2); }
.ink-cta { margin-top: var(--s-10); }


/* ==========================================================================
   Comparison table
   ========================================================================== */

.cmp-scroll { margin-top: var(--s-10); overflow-x: auto; }
.cmp { width: 100%; min-width: 720px; }

.cmp thead th {
  padding: var(--s-4) var(--s-5);
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink);
  vertical-align: bottom;
}
.cmp thead .cmp-a { border-top-left-radius: var(--r-lg); border-top-right-radius: var(--r-lg); }
.cmp tbody tr:last-child .cmp-a { border-bottom-left-radius: var(--r-lg); border-bottom-right-radius: var(--r-lg); }

/* The Dibs column is marked by a fill AND a border AND the wordmark AND a
   check glyph in every cell — four cues, none of them hue-only. */
.cmp .cmp-a {
  background: var(--brand-wash);
  box-shadow: inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand);
}
.cmp tbody tr:last-child .cmp-a { box-shadow: inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand), inset 0 -2px 0 var(--brand); }
.cmp thead .cmp-a { box-shadow: inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand), inset 0 2px 0 var(--brand); }

.cmp-head-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: var(--t-md);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}
.cmp-head-tag img { border-radius: 5px; }

.cmp th[scope="row"] {
  width: 28%;
  padding: var(--s-4) var(--s-5) var(--s-4) 0;
  text-align: left;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.cmp td {
  padding: var(--s-4) var(--s-5);
  font-size: var(--t-sm);
  color: var(--ink-soft);
  vertical-align: top;
}
.cmp tbody td { border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .cmp-a { color: var(--ink); font-weight: 600; }

.cmp-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  margin-right: var(--s-2);
  border-radius: var(--r-pill);
  vertical-align: -5px;
}
.cmp-mark .i { width: 14px; height: 14px; stroke-width: 2.4; }
.cmp-mark-yes { background: var(--brand); color: var(--paper); }
.cmp-mark-no  { background: var(--alert-wash); color: var(--alert); border: 1px solid var(--alert); }


/* ==========================================================================
   Anti-waste
   ========================================================================== */

.waste-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-10);
}
.waste-card {
  position: relative;
  padding: var(--s-8);
  padding-right: var(--s-16);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.waste-card .h3 { margin-bottom: var(--s-3); }
.waste-card .h3 .i { color: var(--brand); }
/* Order is carried by the numeral, not by the tint. */
.rank {
  position: absolute;
  top: var(--s-6); right: var(--s-6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--t-md);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.waste-1 .rank { background: var(--brand-wash); color: var(--brand-deep); }
.waste-2 .rank { background: var(--slate-wash); color: var(--slate); }


/* ==========================================================================
   Social-proof scaffold (deliberate placeholders)
   ========================================================================== */

.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-10);
}
.slot {
  position: relative;
  min-height: 190px;
  padding: var(--s-6);
  background: var(--paper-warm);
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
.slot-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.slot p { margin-top: var(--s-4); font-size: var(--t-sm); max-width: 34ch; }
.slot-mark {
  position: absolute;
  right: var(--s-5); bottom: var(--s-5);
  color: var(--line-strong);
}
.slot-mark .i { width: 30px; height: 30px; }


/* ==========================================================================
   FAQ
   ========================================================================== */

.qa-list {
  max-width: 880px;
  margin-top: var(--s-10);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.qa + .qa { border-top: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-5) var(--s-6);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { background: var(--paper-warm); }
.qa-sign {
  position: relative;
  flex: none;
  width: 20px; height: 20px;
  margin-top: 3px;
}
.qa-sign::before,
.qa-sign::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  background: var(--brand);
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.qa-sign::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.qa-sign::after  { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.qa[open] .qa-sign::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.qa-body { padding: 0 var(--s-6) var(--s-6); }
.qa-body p { max-width: 74ch; }


/* ==========================================================================
   Final CTA
   ========================================================================== */

.final {
  background: var(--brand-wash);
  border-top: 1px solid var(--line);
}
.final-in { text-align: center; }
.final .h2 { max-width: none; }
.final .lead { margin: var(--s-4) auto 0; max-width: 52ch; }
.final .cta-row { justify-content: center; }


/* ==========================================================================
   Prose (legal pages)
   ========================================================================== */

.prose { max-width: 74ch; }
.prose .h2 { max-width: none; margin-bottom: var(--s-8); }
.prose .h3 { margin-top: var(--s-8); margin-bottom: var(--s-3); }
.prose p { margin-bottom: var(--s-4); }
.prose a { color: var(--brand-deep); font-weight: 600; text-decoration: underline; }
.prose mark {
  display: inline-block;
  padding: 2px 8px;
  background: var(--amber-wash);
  border: 1px dashed var(--amber);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: .95em;
}

/* Storage keys and hostnames cited in the privacy policy. Ink on the sink
   tint keeps this legible without relying on colour to carry the meaning —
   the monospace face and the border are what mark it as a literal value. */
.prose code {
  padding: 1px 6px;
  background: var(--paper-sink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  word-break: break-word;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.foot {
  background: var(--ink);
  padding: var(--s-16) 0 var(--s-8);
}
.foot .wm { width: 104px; }
.foot-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: var(--s-8);
}
.foot-brand p { margin-top: var(--s-4); color: var(--line); font-size: var(--t-sm); max-width: 34ch; }
.foot-h {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: var(--s-3);
}
.foot-h-2 { margin-top: var(--s-6); }
.foot-list li + li { margin-top: var(--s-2); }
.foot-list a { font-size: var(--t-sm); color: var(--line); }
.foot-list a:hover { color: var(--paper); text-decoration: underline; }
.foot-list a[aria-current="true"] { color: var(--paper); font-weight: 700; }
.foot-legal {
  margin-top: var(--s-12);
  padding-top: var(--s-5);
  border-top: 1px solid var(--ink-soft);
  font-size: var(--t-xs);
  color: var(--line);
}
.foot :focus-visible { outline-color: var(--brand-bright); }


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .trades { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8) var(--s-6); }
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-2) var(--s-6) var(--s-5);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav[data-open] { display: flex; }
  .nav a {
    padding: var(--s-4) 0;
    font-size: var(--t-base);
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: block; }
  .head-in { gap: var(--s-3); position: relative; }
  .head .btn-primary { display: none; }

  .hero { padding: var(--s-12) 0 var(--s-16); }
  .hero-in { grid-template-columns: 1fr; gap: var(--s-12); }
  .hero-fig { justify-self: start; max-width: 100%; }
  .hero-fig::before { inset: 16px -10px -10px 16px; }
  .trade-badge { justify-self: stretch; max-width: none; }

  .steps { grid-template-columns: 1fr; }
  .pillars, .waste-grid, .slots { grid-template-columns: 1fr; }
  .sec { padding: var(--s-16) 0; }
  .waste-card { padding-right: var(--s-8); padding-top: var(--s-16); }
  .rank { top: var(--s-6); left: var(--s-8); right: auto; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: var(--s-5); }
  .trades { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .cta-row .btn { flex: 1 1 100%; }
  .qa summary { padding: var(--s-4) var(--s-5); font-size: var(--t-base); }
  .qa-body { padding: 0 var(--s-5) var(--s-5); }
  .head-pro { padding: 8px var(--s-3); }
  .pro-short { display: inline; }
  .pro-long {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .langbtn { padding: 6px 10px; }
  .langmenu { min-width: 150px; }
  .step, .pill-card, .waste-card, .slot, .trade { padding: var(--s-5); }
}

@media print {
  .head, .skip, .final, .foot { display: none; }
}

/* ==========================================================================
   Micro-animations (Phase 3)
   ========================================================================== */

/* Fade-up on scroll — applied via Intersection Observer in site.js */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sec { animation: fadeUp 0.5s ease-out both; }
.sec:nth-child(2) { animation-delay: 0.1s; }
.sec:nth-child(3) { animation-delay: 0.15s; }
@media (prefers-reduced-motion: reduce) {
  .sec { animation: none; opacity: 1; }
}

/* Card hover lift */
.trade, .pill-card, .waste-card, .slot {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trade:hover, .pill-card:hover, .waste-card:hover, .slot:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16,28,22,0.08);
}

/* Button press feedback */
.btn:active { transform: scale(0.97); }

/* Trade link arrow slide */
.trade-link:hover .i { transform: translateX(3px); }
.trade-link .i { transition: transform 0.2s ease; }

/* Skeleton loading shimmer */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--sink) 25%, var(--paper-warm) 50%, var(--sink) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Phase 3 — Micro-animations
   ========================================================================== */

/* Fade-up on scroll */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sec, .hero-copy, .hero-fig {
  animation: fadeUp 0.6s ease-out both;
}
.sec:nth-child(2) { animation-delay: 0.1s; }
.sec:nth-child(3) { animation-delay: 0.2s; }
.sec:nth-child(4) { animation-delay: 0.3s; }

/* Card hover lift */
.trade, .pill-card, .step, .waste-card, .slot {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trade:hover, .pill-card:hover, .step:hover, .waste-card:hover, .slot:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

/* Button press feedback */
.btn:active { transform: scale(0.97); transition: transform 0.05s; }

/* Smooth scroll-behavior already set on html */

/* Link underline animation */
a:not(.btn):not(.logo):not(.trade-link):not(.choice-card) {
  text-decoration: underline;
  text-decoration-color: var(--brand-wash);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}
a:not(.btn):not(.logo):not(.trade-link):hover {
  text-decoration-color: var(--brand);
}

/* ==========================================================================
   Phase 4 — Performance helpers
   ========================================================================== */

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ════════════════════════════════════════════════════════════════════════
   AMÉLIORATIONS DESIGN (audit) — hero ticket, tableau comparatif, footer
   ════════════════════════════════════════════════════════════════════════ */
/* Le ticket du hero mérite plus de présence face au bloc de texte. */
.hero-fig { max-width: 460px; }
/* Tableau comparatif : laisser respirer les lignes denses. */
.cmp td, .cmp th { padding: 16px 20px; line-height: 1.55; }
.cmp tbody td { font-size: 14.5px; }
/* Footer : cibles tactiles plus grandes. */
.site-foot a { padding: 3px 0; display: inline-block; font-size: 14.5px; }
@media (min-width: 900px) {
  .cmp td, .cmp th { padding: 18px 24px; }
}

/* ════════════════════════════════════════════════════════════════════════
   Landing épurée — choix client / commerçant + contact
   ════════════════════════════════════════════════════════════════════════ */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: var(--s-7);
}
@media (min-width: 800px) {
  .choice-grid { grid-template-columns: 1fr 1fr; }
}
.choice-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-7);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.choice-card:hover {
  border-color: var(--brand);
  box-shadow: 0 10px 30px rgba(15, 122, 67, .10);
  transform: translateY(-2px);
}
.choice-card h3 { margin: 0; }
.choice-card p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.choice-card .btn { align-self: flex-start; margin-top: var(--s-2); }
.choice-ico {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--brand-soft, rgba(15,122,67,.10));
  color: var(--brand);
}
.choice-ico .ico { width: 26px; height: 26px; }

/* ════════════════════════════════════════════════════════════════════════
   Footer — bloc « Télécharge notre app » (QR code)
   ════════════════════════════════════════════════════════════════════════ */
.foot-app {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-5);
  padding: var(--s-4);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  max-width: 320px;
}
.foot-app img { border-radius: 10px; background: #fff; flex: none; }
.foot-app-body { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; line-height: 1.45; }
.foot-app-body b { font-size: 14.5px; color: var(--paper); }
.foot-app-body span { color: rgba(255,255,255,.72); }
.foot-app-body a {
  color: var(--brand-bright);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.3);
  margin-top: 4px;
}
.foot-app-body a:hover { color: #fff; }
