/* boldecuisine.com — the whole site's stylesheet.
 *
 * Every page links this one file, so a change to the chrome is a change
 * everywhere: one header, one footer, one button, one card, one palette. That
 * is the point — the pages differ in content, not in feel. apps/website has no
 * build step, so this file is served exactly as written.
 *
 * How it is organised, and why the order matters:
 *   1. foundation   tokens + a reset that strips list markers and prose margins
 *   2. shell        .wrap, section
 *   3. chrome       header, footer — identical on all 11 pages
 *   4. components   .btn, .card, .eyebrow, badges, .lang-switch
 *   5. home         the marketing layout (index.html, index-en.html)
 *   6. .doc         the document layout (everything else)
 *   7. media        every breakpoint, so it can override the above
 *   8. reduced motion     \
 *   9. reduced transparency  the three preference queries, last, so each can
 *  10. more contrast        /  quiet or firm up anything the rest turned on
 *  11. dark            the palette swapped, plus the two contrast overrides
 *                      that have to restate themselves after it
 *
 * The reset is component-first: `a` inherits its colour, `p` has no margin and
 * `ul` has no bullets, because most of this site is built out of cards and
 * grids rather than prose. The document pages put prose back on inside their
 * own `main` — see §6 — which is why body copy there is scoped to `.doc main`
 * rather than stated globally.
 *
 * Pages set one body class: `home` or `doc`, plus `page-help` / `page-404` as
 * modifiers on top of `doc`.
 */

/* ============ 1. foundation ============ */

:root{
  --bg: oklch(97.1% 0.006 84.6);
  --surface: oklch(100% 0 0);
  --fg: oklch(22.4% 0.007 67.4);
  --muted: oklch(45% 0.015 60);
  --border: oklch(22.4% 0.007 67.4 / 0.1);
  --accent: oklch(52.6% 0.135 43.5);
  --accent-hover: oklch(47% 0.135 43.5);
  /* 90.9% put the accent-on-tint eyebrow at 4.32:1 — under AA for 12px text.
     Two points lighter clears it at 4.61:1 and is not a visible change. */
  --accent-tint: oklch(93% 0.041 64.9);
  --accent-on: oklch(99% 0.005 84.6);
  /* The sticky header's material: the page ground, thinned so content shows
     through it. Its own token because §8 makes it solid on request. */
  --chrome: oklch(97.1% 0.006 84.6 / 0.86);
  --scrim: oklch(15% 0.01 60 / 0.82);
  --border-strong: oklch(22.4% 0.007 67.4 / 0.22);
  /* Ink used as a surface: the check circles, the step numbers, the selected
     half of the platform switch. In light these are simply the text colour
     filled in; on a dark ground a near-white disc would be a headlight, so
     dark mode hands them the accent instead. */
  --ink-surface: var(--fg);
  --ink-surface-on: var(--bg);
  /* The phone frames. A bezel is black in both themes — it is a photograph of
     an object, not part of the page's palette. */
  --bezel: oklch(22.4% 0.007 67.4);
  /* The download poster deliberately inverts the page. In dark mode there is
     nothing left to invert, so it becomes a raised surface instead. */
  --invert-bg: var(--fg);
  --invert-fg: var(--bg);
  --invert-muted: oklch(97.1% 0.006 84.6 / 0.68);
  --shadow-sm: 0 1px 2px oklch(22.4% 0.007 67.4 / 0.06);
  --shadow-md: 0 8px 24px oklch(22.4% 0.007 67.4 / 0.10);
  --shadow-lg: 0 24px 60px oklch(22.4% 0.007 67.4 / 0.16);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

*{ box-sizing: border-box; }
/* Smooth scroll is an animation the visitor did not ask for: every nav link
   travels the whole page. Offer it only where motion is welcome — see §8. */
@media (prefers-reduced-motion: no-preference){
  html{ scroll-behavior: smooth; }
}
body{
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg{ display:block; max-width: 100%; }
.icon-img{ width: 100%; height: 100%; object-fit: cover; }
/* <picture> is only ever a WebP-with-PNG/JPEG-fallback wrapper here, never a
   box of its own: it must not sit between a frame and the image it holds. */
picture{ display: block; width: 100%; height: 100%; }

a{ color: inherit; }
ul{ margin:0; padding:0; list-style:none; }
/* Tracking is size-specific: letters read too far apart as they grow, and too
   close as they shrink, so one value cannot be right everywhere. -0.02em was
   display tracking applied to a 1.0625rem card heading. The base here is the
   small end; the genuinely large type opts into the tighter value below. */
h1,h2,h3{ font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.hero-copy h1,
.section-head h2,
.download-card h2,
.doc .page-head h1,
.page-404 main h1{ letter-spacing: -0.025em; }
p{ margin:0; }

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

/* ============ 2. shell ============ */

.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.doc .wrap{ max-width: 760px; }
section{ position: relative; }
/* The header is sticky and 76px tall at every width, so an anchor that lands
   flush would put its own heading underneath it. */
section[id]{ scroll-margin-top: 96px; }

/* ============ 3. chrome ============ */

/* One header for the whole site: sticky and blurred, so a document page scrolls
   the same way the home page does. */
header.site-nav{
  position: sticky; top: 0; z-index: 50;
  background: var(--chrome); backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav-row{ display:flex; align-items:center; justify-content: space-between; gap: 16px; height: 76px; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--fg); }
.brand .mark{ width: 34px; height: 34px; border-radius: 9px; overflow: hidden; box-shadow: var(--shadow-sm); }
.brand .word{ font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.01em; color: var(--fg); }
.nav-links{ display:flex; align-items:center; gap: 36px; }
.nav-links a{ text-decoration:none; font-weight: 600; font-size: 0.90625rem; color: var(--fg); position: relative; padding: 4px 0; }
.nav-links a:hover{ color: var(--accent-hover); }
.nav-actions{ display:flex; align-items:center; gap: 14px; }
.nav-toggle{ display:none; width:44px; height:44px; align-items:center; justify-content:center; background:none; border:1px solid var(--border); border-radius: 10px; cursor: pointer; }
.nav-toggle svg{ width:20px; height:20px; }
/* The document pages' way back home: a nav link, styled like the others. */
.back-link{ text-decoration:none; font-weight: 600; font-size: 0.90625rem; color: var(--fg); }
.back-link:hover{ color: var(--accent-hover); }

/* ---------- footer (identical on every page of the site) ---------- */
footer{ border-top: 1px solid var(--border); padding: 40px 0; }
.footer-row{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; }
.footer-brand{ display:flex; align-items:center; gap:10px; }
.footer-brand .mark{ width:26px; height:26px; border-radius:7px; overflow:hidden; }
.footer-brand .word{ font-family: var(--font-display); font-weight:700; font-size:0.9375rem; }
.footer-links{ display:flex; flex-wrap:wrap; gap:24px; list-style:none; margin:0; padding:0; }
.footer-links a{ text-decoration:none; color: var(--muted); font-size:0.84375rem; font-weight:600; }
.footer-links a:hover{ color: var(--accent-hover); }
.footer-copy{ color: var(--muted); font-size:0.8125rem; }
.footer-disclaimer{ color: var(--muted); font-size:0.75rem; line-height:1.5; margin-top:20px; padding-top:20px; border-top:1px solid var(--border); }

.lang-switch{ display:inline-flex; align-items:center; justify-content:center; text-decoration:none; border:1px solid var(--border); border-radius:999px; padding:5px; line-height:0; flex: 0 0 auto; }
.lang-switch:hover{ border-color: var(--accent); }
.lang-switch .flag{ display:block; width:22px; height:16px; border-radius:3px; }
.lang-switch .lang-label{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path: inset(50%); white-space:nowrap; }

/* ---------- card ---------- */
.card{ background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px 26px; box-shadow: var(--shadow-sm); }

/* ============ 4. components + 5. home layout ============ */

/* ---------- buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.9375rem;
  letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  /* Safari gives the text-selection cursor priority over `cursor` for
     selectable text, so the hand appeared on the padding and an I-beam over
     the label — on one control, in one browser. Nobody wants to select the
     words off a button anyway: the label is part of the control, not copy. */
  -webkit-user-select: none; user-select: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--accent); color: var(--accent-on); box-shadow: var(--shadow-md); }
.btn-primary:hover{ background: var(--accent-hover); box-shadow: var(--shadow-lg); }
.btn-ghost{ background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover{ background: var(--surface); border-color: var(--border-strong); }
.btn-sm{ height: 44px; padding: 0 20px; font-size: 0.875rem; }

/* ---------- press feedback ---------- */
/* Hover does not exist on a phone, and a phone is where most of this site is
   read. Every control now answers the press itself, on pointer-down rather
   than on release, so the tap is acknowledged before anything else happens.
   `.btn` has had its nudge all along; these are the controls that were left
   with a hover state and nothing else. */
.platform-btn, .nav-toggle, .lang-switch, .lightbox-close{
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.platform-btn:active, .nav-toggle:active, .lang-switch:active, .lightbox-close:active{ transform: scale(.94); }
/* The arrows are centred by a transform, so their press has to carry it. */
.lightbox-nav{ transition: transform .12s ease, background .15s ease; }
.lightbox-nav:active{ transform: translateY(-50%) scale(.92); }
.store-badge:active{ transform: translateY(0) scale(.97); }
.shot-trigger img{ transition: filter .15s ease; }
.shot-trigger:active img{ filter: brightness(1.08); }
.nav-links a:active, .footer-links a:active, .hero-link:active, .back-link:active{ color: var(--accent-hover); }

/* Official store badges, used as delivered by Apple and Google. The Google
   PNG carries its own clear space (192px of art in a 250px-tall image), so it
   is rendered taller to make both marks read at the same size. */
.store-badge{ display: inline-flex; text-decoration: none; transition: transform .15s ease; }
.store-badge:hover{ transform: translateY(-2px); }
.store-badge img{ display: block; width: auto; }
.store-badge.apple img{ height: 52px; }
.store-badge.google img{ height: 68px; margin: -8px; }

.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-tint); padding: 7px 14px 7px 10px; border-radius: 999px;
}
.eyebrow .dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- nav ---------- */
.nav-links{ display:flex; align-items:center; gap: 36px; }
.nav-links a{ text-decoration:none; font-weight: 600; font-size: 0.90625rem; color: var(--fg); position: relative; padding: 4px 0; }
.nav-links a:hover{ color: var(--accent-hover); }
/* Where am I: the section currently filling the screen names itself in the
   nav. The rule was half-written already — `position: relative` and the
   vertical padding were sitting here waiting for an underline. */
.nav-links a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  border-radius:2px; background: var(--accent); opacity:0;
  transition: opacity .18s ease;
}
.nav-links a.is-current{ color: var(--accent); }
.nav-links a.is-current::after{ opacity:1; }
.nav-actions{ display:flex; align-items:center; gap: 14px; }
.nav-toggle{ display:none; width:44px; height:44px; align-items:center; justify-content:center; background:none; border:1px solid var(--border); border-radius: 10px; cursor: pointer; }
.nav-toggle svg{ width:20px; height:20px; }

/* ---------- hero ---------- */
.hero{ padding: 96px 0 72px; }
.hero-grid{ max-width: 760px; margin: 0 auto; text-align: center; }
.hero-copy h1{ font-size: clamp(2.375rem, 5.2vw, 4rem); line-height: 1.06; margin: 20px auto 22px; max-width: 17ch; }
.hero-copy h1 em{ font-style: normal; color: var(--accent); white-space: nowrap; }
.hero-copy p.lede{ font-size: 1.125rem; line-height: 1.6; color: var(--muted); max-width: 46ch; margin: 0 auto 34px; }
.hero-ctas{ display:flex; align-items:center; justify-content:center; gap: 18px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-link{ display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:0.90625rem; text-decoration:none; color: var(--fg); border-bottom: 1px solid var(--border); padding-bottom: 3px; }
.hero-link:hover{ color: var(--accent-hover); border-color: var(--accent-hover); }
.hero-meta{ display:flex; align-items:center; justify-content:center; gap: 22px; color: var(--muted); font-size: 0.84375rem; flex-wrap: wrap; }
.hero-meta .sep{ width:4px; height:4px; border-radius:50%; background: var(--border); }

/* ---------- section shell ---------- */
.section{ padding: 96px 0; }
.section-head{ max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2{ font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.12; margin: 16px 0 14px; }
.section-head p{ color: var(--muted); font-size: 1.03125rem; line-height: 1.6; }
.section-head.left{ text-align: left; margin: 0 0 48px; }

/* ---------- features ---------- */
.features{ background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card{ padding: 28px 22px; border: 1px solid var(--border); border-radius: 20px; background: var(--bg); }
.feature-card .ico{ width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--fg); display:flex; align-items:center; justify-content:center; margin-bottom: 18px; }
.feature-card .ico svg{ width: 22px; height: 22px; }
.feature-card h3{ font-size: 1.0625rem; margin-bottom: 8px; }
.feature-card p{ color: var(--muted); font-size: 0.90625rem; line-height: 1.55; }

/* ---------- check list (reused across showcase sections) ---------- */
.check-list{ margin-top: 26px; display:flex; flex-direction:column; gap: 16px; }
.check-list li{ display:flex; gap: 14px; align-items:flex-start; }
.check-list .chk{ flex:none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink-surface); color: var(--ink-surface-on); display:flex; align-items:center; justify-content:center; margin-top: 1px; }
.check-list .chk svg{ width: 13px; height: 13px; }
.check-list .txt strong{ display:block; font-size: 0.9375rem; margin-bottom: 2px; }
.check-list .txt span{ color: var(--muted); font-size: 0.875rem; line-height: 1.5; }

/* ---------- showcase (one section per real screenshot group) ---------- */
.showcase-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items:center; }
.showcase-media{ display:flex; gap: 16px; justify-content:center; flex-wrap: wrap; }
.shot-phone{ width: 240px; border-radius: 34px; background: var(--bezel); padding: 10px; box-shadow: var(--shadow-lg); flex: none; }
.shot-phone.sm{ width: 148px; border-radius: 24px; padding: 7px; }
.shot-phone.md{ width: 200px; border-radius: 30px; padding: 9px; }
.shot-phone.xs{ width: 118px; border-radius: 20px; padding: 6px; }
.shot-screen{ border-radius: 24px; overflow: hidden; aspect-ratio: 1320 / 2868; background: var(--bg); }
body[data-platform="android"] .shot-screen{ aspect-ratio: 1080 / 2424; }
.platform-switch-row{ flex: 0 0 100%; display:flex; justify-content:center; margin-bottom: 6px; }
.platform-switch{ display:flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); }
.platform-btn{ padding: 8px 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-family: var(--font-body); font-size: 0.84375rem; font-weight: 700; cursor: pointer; -webkit-user-select: none; user-select: none; }
.platform-btn:hover{ color: var(--fg); }
.platform-btn.is-active{ background: var(--ink-surface); color: var(--ink-surface-on); }
.shot-phone.sm .shot-screen{ border-radius: 17px; }
.shot-phone.xs .shot-screen{ border-radius: 14px; }
.shot-phone.md .shot-screen{ border-radius: 22px; }
.shot-screen img{ width: 100%; height: 100%; object-fit: cover; object-position: top; display:block; }
.shot-trigger{ display:block; width:100%; height:100%; padding:0; border:0; background:none; cursor: zoom-in; }
.shot-trigger:hover img{ filter: brightness(1.04); }

/* ---------- lightbox ---------- */
/* The surface arrives as a material rather than a fade: the blur builds and
   the shot grows into place together, so it reads as glass being put in front
   of the page instead of a picture switched on. Kept displayed and hidden by
   `visibility`, because a display swap cannot be animated at all. */
.lightbox{
  position: fixed; inset: 0; z-index: 100; display: flex;
  align-items: center; justify-content: center; padding: 40px 20px;
  background: var(--scrim); backdrop-filter: blur(0px) saturate(100%);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, backdrop-filter .26s ease, visibility 0s linear .26s;
}
.lightbox.open{
  opacity: 1; visibility: visible;
  backdrop-filter: blur(20px) saturate(140%);
  transition-delay: 0s, 0s, 0s;
}
/* The stage carries the arrival, the image carries the drag — one transform
   each, so the gesture and the transition never overwrite one another. */
.lightbox-stage{ display: flex; transform: scale(.94); transition: transform .26s cubic-bezier(.2,.9,.3,1); }
.lightbox.open .lightbox-stage{ transform: none; }
.lightbox img{ max-width: min(420px, 90vw); max-height: 88vh; width: auto; height: auto; border-radius: 28px; box-shadow: var(--shadow-lg); }
/* The browser must not claim the horizontal pan for scrolling, and the image
   must not start a native drag of itself. */
.lightbox.has-siblings img{ touch-action: none; cursor: grab; }
.lightbox.has-siblings img:active{ cursor: grabbing; }
.lightbox img{ -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
body[data-platform="android"] .lightbox img{ border-radius: 12px; }
.lightbox-close{ position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid oklch(100% 0 0 / 0.3); background: oklch(100% 0 0 / 0.1); color: #fff; display:flex; align-items:center; justify-content:center; cursor: pointer; }
.lightbox-close svg{ width: 20px; height: 20px; }
.lightbox-close:hover{ background: oklch(100% 0 0 / 0.2); }
.lightbox-nav{ position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid oklch(100% 0 0 / 0.3); background: oklch(100% 0 0 / 0.1); color: #fff; display: none; align-items:center; justify-content:center; cursor: pointer; }
.lightbox.has-siblings .lightbox-nav{ display: flex; }
.lightbox-nav svg{ width: 24px; height: 24px; }
.lightbox-nav:hover{ background: oklch(100% 0 0 / 0.2); }
.lightbox-nav.prev{ left: 20px; }
.lightbox-nav.next{ right: 20px; }
.lightbox-count{ position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: none; color: #fff; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; }
.lightbox.has-siblings .lightbox-count{ display: block; }

/* ---------- link strip (Cookidoo + social emphasis) ---------- */
.link-strip{ margin-top: 26px; display:flex; flex-direction:column; gap: 12px; }
.link-strip .row{ display:flex; align-items:center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.link-strip .row .ico{ flex:none; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-tint); color: var(--accent); display:flex; align-items:center; justify-content:center; }
.link-strip .row .ico svg{ width: 18px; height: 18px; }
.link-strip .row strong{ font-size: 0.90625rem; display:block; }
.link-strip .row span{ color: var(--muted); font-size: 0.8125rem; }

/* ---------- steps ---------- */
.steps{ background: var(--surface); border-top: 1px solid var(--border); }
.step-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step{ position:relative; padding: 34px 26px; border: 1px solid var(--border); border-radius: 20px; background: var(--bg); }
.step .num{ font-family: var(--font-display); font-size: 0.875rem; font-weight:700; color: var(--ink-surface-on); background: var(--ink-surface); width: 34px; height: 34px; border-radius: 50%; display:flex; align-items:center; justify-content:center; margin-bottom: 18px; }
.step h3{ font-size: 1.0625rem; margin-bottom: 8px; }
.step p{ color: var(--muted); font-size: 0.90625rem; line-height: 1.55; }

/* ---------- about ---------- */
.about-card{ max-width: 720px; margin: 0 auto; display:flex; align-items:center; gap: 32px; padding: 40px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); }
.about-avatar{ width: 112px; height: 112px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: var(--shadow-md); }
.about-avatar img{ width:100%; height:100%; object-fit: cover; }
.about-role{ display:block; color: var(--accent); font-weight:700; font-size: 0.75rem; text-transform: uppercase; letter-spacing:0.06em; margin-bottom: 10px; }
.about-text h2{ font-size: 1.375rem; margin-bottom: 10px; }
.about-text p{ color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

/* ---------- download cta ---------- */
.download{ padding: 120px 0; }
.download-card{
  background: var(--invert-bg); color: var(--invert-fg); border-radius: 32px; padding: 72px 60px;
  display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items:center; overflow:hidden; position:relative;
}
.download-card::before{
  content:""; position:absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: var(--accent-tint); opacity: .14;
}
.download-card h2{ font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.14; margin-bottom: 16px; max-width: 21ch; }
.download-card p{ color: var(--invert-muted); font-size: 1rem; max-width: 40ch; margin-bottom: 30px; }
.download-stores{ display:flex; align-items: center; gap: 14px; flex-wrap: wrap; position:relative; z-index:1; }
.download-visual{ position:relative; z-index:1; display:flex; justify-content:center; }
.download-mark{ width: 190px; height: 190px; border-radius: 42px; overflow:hidden; box-shadow: 0 30px 70px oklch(0% 0 0 / 0.45); transform: rotate(-4deg); }
/* ============ 6. document pages (.doc) ============ */
/* Prose lives only inside these pages' <main>: the reset above is
   component-first, so paragraph margins and list markers are put back here
   rather than globally, where they would disturb the home page's cards. */

.doc main{ padding: 56px 0 80px; line-height: 1.65; }
/* :not(.btn) matters — a bare `.doc main a` outranks `.btn-primary`, which
   would paint the button's label accent-on-accent and make it vanish. */
.doc main a:not(.btn){ color: var(--accent); }
.doc main a:not(.btn):hover{ color: var(--accent-hover); }
.doc main p{ margin: 0 0 14px; }
.doc main ul{ margin: 0; padding: 0 0 0 20px; list-style: disc; }
.doc main ol{ margin: 0; padding: 0 0 0 20px; list-style: decimal; }
.doc main li{ margin-bottom: 6px; }
.doc main section{ margin-bottom: 36px; }
.doc main h2{ font-size: 1.1875rem; margin: 0 0 12px; }
.doc .muted{ color: var(--muted); }

.doc .page-head{ margin-bottom: 40px; }
.doc .page-head h1{ font-size: clamp(1.75rem, 4vw, 2.375rem); margin: 0 0 10px; }
.doc .page-head .updated{ color: var(--muted); font-size: 0.875rem; }

/* ---------- help pages (aide.html / support.html) ---------- */
/* The question list is denser than a legal page. Scoped, or `.card p:last-child`
   would quietly eat the closing paragraph's spacing on the other pages' cards. */
.page-help main .lead{ font-size: 1.0625rem; color: var(--muted); margin: 0; }
.page-help main .card h2:first-child{ margin-top: 0; }
.page-help main .card p:last-child{ margin-bottom: 0; }
.page-help main .qa{ border-top: 1px solid var(--border); padding-top: 22px; margin-top: 22px; }
.page-help main .qa:first-of-type{ border-top: 0; padding-top: 0; margin-top: 0; }
.page-help main .qa h2{ font-size: 1.125rem; }
.page-help main .contact-mail{ font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }

/* ---------- 404 ---------- */
/* Short page, so the footer is pinned to the bottom of the viewport rather than
   floating halfway up it. It is a signpost, not prose, so the section and list
   rhythm above is turned back off. */
body.page-404{ display: flex; flex-direction: column; min-height: 100vh; }
.page-404 main{ flex: 1; padding: 72px 0 80px; }
.page-404 main section{ margin-bottom: 0; }
.page-404 main li{ margin-bottom: 0; }

.page-404 main .code{ font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.page-404 main h1{ font-size: clamp(1.875rem, 5vw, 2.75rem); margin: 0 0 16px; line-height: 1.15; }
.page-404 main .lede{ color: var(--muted); font-size: 1.0625rem; max-width: 54ch; }
.page-404 main .actions{ display:flex; flex-wrap:wrap; gap: 12px; margin: 30px 0 44px; }
.page-404 main .card h2{ font-size: 1.0625rem; margin: 0 0 14px; }
.page-404 main .page-list{ margin:0; padding:0; list-style:none; display:grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 24px; }
.page-404 main .page-list a{ text-decoration:none; font-weight:600; font-size:0.90625rem; }
.page-404 main .page-list a:hover{ text-decoration:underline; }
/* The visitor typed an address, not a language — so the page answers in both.
   The English half is a quieter restatement, not a second page. */
.page-404 main .other-lang{ margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); color: var(--muted); }
.page-404 main .other-lang h2{ font-size: 1.1875rem; color: var(--fg); margin: 0 0 10px; }

/* ============ 7. breakpoints ============ */

@media (max-width: 900px){
  .wrap{ padding: 0 20px; }
  .nav-links{ display:none; }
  /* Only ever inside this breakpoint: above it the panel has no rule at all,
     so a window widened while the menu is open returns to the desktop row. */
  .nav-links.is-open{
    display:flex; position:absolute; top:76px; left:0; right:0;
    flex-direction:column; gap:18px; padding:20px 32px;
    background: var(--surface); border-bottom:1px solid var(--border);
  }
  .nav-toggle{ display:flex; }
  .hero{ padding: 56px 0 48px; }
  .hero-copy h1{ max-width: none; }
  .hero-copy p.lede{ max-width: none; }
  .feature-grid{ grid-template-columns: repeat(2, 1fr); }
  .showcase-grid{ grid-template-columns: 1fr; gap: 36px; }
  .shot-phone{ width: 220px; }
  .shot-phone.sm{ width: 96px; border-radius: 18px; padding: 5px; }
  .shot-phone.md{ width: 140px; border-radius: 22px; padding: 6px; }
  .shot-phone.xs{ width: 74px; border-radius: 14px; padding: 4px; }
  .shot-phone.md .shot-screen{ border-radius: 16px; }
  .lightbox-nav{ width: 40px; height: 40px; }
  .lightbox-nav.prev{ left: 6px; }
  .lightbox-nav.next{ right: 6px; }
  .shot-phone.sm .shot-screen{ border-radius: 13px; }
  .shot-phone.xs .shot-screen{ border-radius: 10px; }
  .showcase-media{ gap: 10px; }
  .step-grid{ grid-template-columns: 1fr; }
  .download-card{ grid-template-columns: 1fr; padding: 48px 28px; text-align:center; }
  .download-card p{ margin-left:auto; margin-right:auto; }
  .download-stores{ justify-content:center; }
  .download-visual{ order:-1; }
  .footer-row{ flex-direction:column; align-items:flex-start; }
  .about-card{ flex-direction:column; text-align:center; padding: 36px 28px; }
}
@media (max-width: 560px){
  .nav-actions{ gap: 10px; }
  .nav-row .btn-sm{ padding: 0 14px; }
  .brand .word{ font-size: 1.0625rem; }
  .feature-grid{ grid-template-columns: 1fr; }
  .section{ padding: 64px 0; }
  .download{ padding: 64px 0; }
}@media (max-width: 640px){
  .page-404 main{ padding: 48px 0 60px; }
  .page-404 main .actions .btn{ flex: 1 1 100%; }
}

/* ============ 8. reduced motion ============ */
/* Less motion, not less feedback: the colour and shadow answers stay, only the
   movement goes. The smooth scroll is opted into above rather than undone here. */
@media (prefers-reduced-motion: reduce){
  .btn{ transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
  .btn:active{ transform: none; }
  .store-badge{ transition: none; }
  .store-badge:hover, .store-badge:active{ transform: none; }
  .platform-btn:active, .nav-toggle:active, .lang-switch:active, .lightbox-close:active{ transform: none; }
  .lightbox-nav:active{ transform: translateY(-50%); }
  /* The lightbox still arrives and leaves, it just does not travel to do it:
     the scrim fades, the shot does not grow. Dragging is unaffected — that
     motion is the reader's own hand, not something played at them. */
  .lightbox{ transition: opacity .2s ease, visibility 0s linear .2s; backdrop-filter: blur(20px) saturate(140%); }
  .lightbox-stage{ transform: none; transition: none; }
}

/* ============ 9. reduced transparency ============ */
/* Frostier, not prettier: the material becomes a surface. Nothing moves, so
   this is separate from §8 — a visitor can want one without the other. */
@media (prefers-reduced-transparency: reduce){
  :root{ --chrome: var(--bg); --scrim: oklch(15% 0.01 60 / 0.97); }
  header.site-nav, .lightbox{ backdrop-filter: none; }
  .lightbox-close, .lightbox-nav{ background: oklch(100% 0 0 / 0.22); }
}

/* ============ 10. more contrast ============ */
/* Borders that were a hint become a line, and the muted grey stops being
   quiet enough to lose. */
@media (prefers-contrast: more){
  :root{
    --border: oklch(22.4% 0.007 67.4 / 0.42);
    --border-strong: oklch(22.4% 0.007 67.4 / 0.6);
    --muted: oklch(34% 0.015 60);
    --chrome: var(--bg);
  }
  header.site-nav{ backdrop-filter: none; }
  .lightbox-close, .lightbox-nav{ background: oklch(0% 0 0 / 0.6); border-color: oklch(100% 0 0 / 0.85); }
}
/* §11 restates the palette after this, so the dark half of "more contrast"
   has to be stated after §11 in turn — see the foot of the file. */

/* ============ 11. dark ============ */
/* One palette swap, no forked components: everything above is already drawn
   in tokens, and the handful that used the ink colour as a surface got its
   own token above rather than a rule here. Warm neutrals both ways — the
   dark ground keeps the same hue the light one has, so the brand does not
   turn blue after sunset. The accent lifts, because the light-mode terracotta
   does not carry enough contrast against a dark ground. */
@media (prefers-color-scheme: dark){
  :root{
    --bg: oklch(19% 0.008 67.4);
    --surface: oklch(23.5% 0.009 67.4);
    --fg: oklch(94% 0.006 84.6);
    --muted: oklch(72% 0.014 70);
    --border: oklch(94% 0.006 84.6 / 0.14);
    --border-strong: oklch(94% 0.006 84.6 / 0.28);
    --accent: oklch(72% 0.125 46);
    --accent-hover: oklch(79% 0.11 48);
    --accent-tint: oklch(31% 0.045 50);
    --accent-on: oklch(18% 0.02 50);
    --chrome: oklch(19% 0.008 67.4 / 0.82);
    /* Shadows do less work on a dark ground — depth comes from the surface
       being lighter than the page, not from a darker edge — so they are kept
       only as a soft seat, not deepened. */
    --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.4);
    --shadow-md: 0 8px 24px oklch(0% 0 0 / 0.45);
    --shadow-lg: 0 24px 60px oklch(0% 0 0 / 0.55);
    --ink-surface: var(--accent);
    --ink-surface-on: var(--accent-on);
    --bezel: oklch(11% 0.004 67.4);
    --invert-bg: var(--surface);
    --invert-fg: var(--fg);
    --invert-muted: var(--muted);
  }
  /* The poster no longer inverts, so it needs an edge to sit on. */
  .download-card{ border: 1px solid var(--border); }
  /* Screenshots are bright rectangles on a dark page; taking the edge off
     stops them glaring next to the copy beside them. */
  .shot-screen img, .lightbox img{ filter: brightness(0.92); }
}

/* ---------- more contrast, after dark ---------- */
@media (prefers-contrast: more) and (prefers-color-scheme: dark){
  :root{
    --border: oklch(94% 0.006 84.6 / 0.5);
    --border-strong: oklch(94% 0.006 84.6 / 0.7);
    --muted: oklch(84% 0.012 70);
    --chrome: var(--bg);
  }
  .shot-screen img, .lightbox img{ filter: none; }
}
