/* StudyDaily public site — the whole visual system.
 *
 * DIRECTION: THE TRACE. Circling, underlining, highlighting: that is the gesture
 * of the person studying. StudyDaily is a revision app, so the marks are not a
 * skin laid over the product — they are what the user does. Here the mark
 * arrives DURING reading: a highlighter wipes in as its phrase enters view, a
 * thread is drawn between two things that belong together.
 *
 * ============================================================================
 * THE RULE THAT DECIDES WHERE A MARK GOES
 * ============================================================================
 *
 * This matters more than any single page. A page added next year has to be able
 * to answer these four questions without asking anyone.
 *
 *   1. A MARK MUST NAME A RELATION THE LAYOUT CANNOT SHOW. Either it links two
 *      things standing apart (the thread), or it lifts the one fragment the
 *      reader is meant to carry away (the highlighter). A mark that merely
 *      decorates is forbidden. If you cannot say what the mark asserts, delete
 *      it.
 *
 *   2. MARKS FOLLOW DECISIONS, NOT LENGTH. A page that asks for a decision —
 *      home, a deck, pricing, a dead end — may carry marks. A page that informs
 *      — legal, support, a listing — carries none, however long it is. Length
 *      earns nothing.
 *
 *   3. A MARK NEVER RIDES INSIDE A LOOP. If the element is rendered N times
 *      (396 deck cards, five sample cards, ten support questions), the mark
 *      moves up to the page level or it goes. A mark multiplied by 396 is
 *      wallpaper, and wallpaper is the opposite of annotation.
 *
 *   4. ZERO MARKS IS NOT ZERO IDENTITY. The ink, the rule, the paper and the
 *      type carry the site everywhere. The trace is a supplement. A legal page
 *      with no mark on it must still be unmistakably this site — and it is,
 *      because rules 1 to 3 removed the mark, not the identity.
 *
 * WHAT THAT YIELDS, PAGE BY PAGE:
 *   home       3  highlighter on the promise · thread card→source · one underline
 *   deck page  1  the thread, and here it is literal: the sample card really did
 *                 come from the source named in the rights file
 *   pricing    1  highlighter on the word that decides — free
 *   article    0  rule 1, and this one was decided against. An underline wants
 *                 the sentence that answers the title, and the body is
 *                 author-written Markdown: the site cannot know which sentence
 *                 that is. A stroke placed by guess is decoration, and rule 1
 *                 forbids decoration. The reader annotates their own copy.
 *   404        1  the thread, pulled towards the way out
 *   listing    0  rule 3 — 396 cards, so the mark would be furniture
 *   support    0  rules 2 and 3 — it informs, and it loops over ten questions
 *   legal      0  rule 2 — nobody highlights a contract
 *   guides    0  rule 3
 *
 * ============================================================================
 * CONSTRAINTS, none of them negotiable
 * ============================================================================
 *
 *   1. NO REMOTE FONT, NO THIRD-PARTY SCRIPT, NO OFF-DOMAIN IMAGE. A privacy
 *      requirement (`CLAUDE.md`, "Vie privée"), enforced by NoThirdPartyTest.
 *      Every stroke below is drawn in CSS or inline SVG for that reason. There
 *      is no script on this site at all, including our own: the trace is
 *      scroll-driven CSS.
 *   2. LIGHT AND DARK, through `prefers-color-scheme`, like the app. The
 *      highlighter switches from `multiply` to `screen` — multiply on a dark
 *      ground turns to mud.
 *   3. NO HORIZONTAL SCROLL at 320 px. Wide things scroll inside their own
 *      container, never the page.
 *   4. NO SCRIPT FACE. Handwritten MARKS are SVG paths with uneven control
 *      points; handwritten WORDS are the system font, small, angled. A note
 *      reads as a hand because of where it sits, never because of a fake
 *      cursive.
 *
 * Colour, spacing and the type scale come from `tokens.css`, which mirrors the
 * Flutter app. A hard-coded colour here would drift the first time a token
 * moves.
 */

:root {
  /* The ink. Indigo is the reader's pen; the highlighter borrows the app's own
   * rating colours, which is why it never needs a new hue. */
  --ink: var(--mq-primary);
  --ink-soft: color-mix(in srgb, var(--mq-primary) 55%, transparent);
  --rule: 1px solid var(--mq-outline-variant);
  --paper: #FBFAF7;          /* a hair warmer than the app's cold surface:
                                this is paper, and paper is not a screen */
  --hl-blend: multiply;
  --hl-alpha: 0.3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131319;
    /* Multiply on a dark ground turns to mud. The marker becomes light. */
    --hl-blend: screen;
    --hl-alpha: 0.22;
  }
}

/* --- Reset and base ------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--mq-on-surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--mq-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 30;
  padding: var(--mq-space-md) var(--mq-space-lg);
  background: var(--mq-primary);
  color: var(--mq-on-primary);
  border-radius: 0 0 var(--mq-radius-md) 0;
}
.skip-link:focus { inset-inline-start: 0; }

/* --- Type ---------------------------------------------------------------- */

h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 var(--mq-space-md); }
h1 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.5rem); font-weight: 800; line-height: 1.05; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.95rem); font-weight: 750; margin-top: var(--mq-space-xxl); }
h3 { font-size: 1.08rem; font-weight: 700; margin-top: var(--mq-space-xl); line-height: 1.25; }
h4 { font-size: 1rem; font-weight: 700; }

p { margin: 0 0 var(--mq-space-lg); }
small, .small { font-size: 0.86rem; }
.lead { font-size: 1.12rem; color: var(--mq-on-surface-variant); max-width: 50ch; }
.muted { color: var(--mq-on-surface-variant); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--mq-surface-container);
}

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mq-on-surface-variant); font-weight: 650;
  margin: 0 0 var(--mq-space-md);
}

/* --- Layout -------------------------------------------------------------- */

.container { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: var(--mq-space-xl); }
.container-narrow { max-width: 740px; }
@media (max-width: 640px) { .container { padding-inline: var(--mq-space-lg); } }

main { display: block; padding-block: var(--mq-space-xl) calc(var(--mq-space-xxl) * 2); }
section { margin-block: calc(var(--mq-space-xxl) * 1.4); }
section:first-child { margin-block-start: 0; }

.article { max-width: 68ch; }
.article h2 { margin-top: calc(var(--mq-space-xxl) * 1.1); }
.article ul { padding-inline-start: 1.3em; }
.article li { margin-bottom: var(--mq-space-sm); }

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

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: var(--rule);
}
.site-header .container {
  display: flex; align-items: center; gap: var(--mq-space-lg);
  flex-wrap: wrap; padding-block: var(--mq-space-md);
}

.brand {
  font-weight: 800; font-size: 1.12rem; letter-spacing: -0.03em;
  color: var(--mq-on-surface); text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--mq-space-sm);
}
.brand-icon {
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 8px; box-shadow: var(--mq-elev-1);
}

.main-nav { display: flex; gap: var(--mq-space-lg); flex-wrap: wrap; align-items: center; margin-inline-start: auto; }
.main-nav a { color: var(--mq-on-surface-variant); text-decoration: none; font-size: 0.94rem; font-weight: 550; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--mq-on-surface); }

.nav-web {
  padding: 9px 18px;
  border-radius: var(--mq-radius-pill);
  background: transparent;
  color: var(--mq-on-surface) !important;
  border: 1.5px solid var(--mq-outline);
  font-weight: 650 !important;
}
.nav-web:hover { text-decoration: none !important; border-color: var(--mq-primary); color: var(--mq-primary) !important; }

.nav-download {
  padding: 9px 18px;
  border-radius: var(--mq-radius-pill);
  background: var(--mq-primary);
  color: var(--mq-on-primary) !important;
  font-weight: 650 !important;
}
.nav-download:hover {
  text-decoration: none !important;
  background: var(--mq-primary-container);
  color: var(--mq-on-primary-container) !important;
}

@media (max-width: 640px) {
  .main-nav { gap: var(--mq-space-md); }
  .main-nav a:not(.nav-web):not(.nav-download) { font-size: 0.86rem; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--mq-space-sm); min-height: 50px;
  padding: 13px 26px;
  border-radius: var(--mq-radius-pill);
  border: 1.5px solid transparent;
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform var(--mq-motion-fast) var(--mq-ease-enter);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--mq-primary); color: var(--mq-on-primary); box-shadow: var(--mq-elev-1); }
.btn-secondary { background: transparent; color: var(--mq-on-surface); border-color: var(--mq-outline); }
.btn-disabled { border-color: var(--mq-outline-variant); color: var(--mq-on-surface-variant); cursor: default; }
.btn-disabled:hover { transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--mq-space-md); align-items: center; }

/* ==========================================================================
 * THE TRACE
 * ==========================================================================
 *
 * Drawn without a line of JavaScript. Scroll-driven CSS animation advances
 * `stroke-dashoffset`, so a stroke paints itself as its own element enters the
 * viewport. Two fallbacks, and both land on the SAME state — fully drawn:
 *
 *   - `@supports not (animation-timeline: view())` for browsers without
 *     scroll-driven animation;
 *   - `prefers-reduced-motion: reduce`, because a page that only becomes
 *     beautiful if you scroll fails the people who cannot.
 *
 * The frozen state is the one being designed for. The motion is a bonus on top
 * of a page that already works standing still.
 */

.ink { position: absolute; pointer-events: none; overflow: visible; }
.ink path {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.trace path {
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
  animation: mq-draw 1s linear both;
  animation-timeline: view();
  animation-range: entry 25% cover 42%;
}
@keyframes mq-draw { to { stroke-dashoffset: 0; } }
@supports not (animation-timeline: view()) {
  .trace path { stroke-dashoffset: 0; animation: none; }
}

/* The highlighter. Not a rectangle: a path with a wobbling top and bottom edge
 * that over-runs its text at one end, the way a marker does when the hand does
 * not stop in time. It sits BEHIND the words and is wiped in from the left. */
.hl { position: relative; display: inline-block; }
.hl > span { position: relative; z-index: 1; }
.hl-band {
  position: absolute;
  inset: -0.12em -0.5em -0.16em -0.35em;
  z-index: 0;
  width: calc(100% + 0.85em);
  height: calc(100% + 0.28em);
  mix-blend-mode: var(--hl-blend);
  opacity: var(--hl-alpha);
  clip-path: inset(0 100% 0 0);
  animation: mq-wipe 1s linear both;
  animation-timeline: view();
  animation-range: entry 30% cover 45%;
}
@keyframes mq-wipe { to { clip-path: inset(0 0 0 0); } }
@supports not (animation-timeline: view()) {
  .hl-band { clip-path: inset(0 0 0 0); animation: none; }
}
.hl-band path { fill: var(--mq-rating-hard); stroke: none; }

@media (prefers-reduced-motion: reduce) {
  .trace path { stroke-dashoffset: 0; animation: none; }
  .hl-band { clip-path: inset(0 0 0 0); animation: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* A traced underline. Two things it has to get right:
 *
 *   - the heading RESERVES the room the stroke will occupy, so the stroke can
 *     never land on the line below;
 *   - the heading SHRINKS TO ITS TEXT. A block-level h2 fills its container, so
 *     the stroke ran a third of the page past the last word — it looked like a
 *     rule, not like an underline. `fit-content` ties the stroke to the words. */
.underlined {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  padding-bottom: 0.4em;
}
.underlined .ink { inset-block-end: -2px; inset-inline-start: -1%; width: 102%; height: 14px; }

/* The thread. It lives in a reserved strip of its own, so it has no text to
 * collide with at any width. */
.thread { position: relative; height: 88px; }
.thread .ink { inset: 0; width: 100%; height: 100%; }
@media (max-width: 900px) {
  /* The long diagonal becomes a short drop: the same gesture, re-drawn for the
   * column rather than scaled down into a squiggle. */
  .thread { height: 54px; }
  .thread .ink { inset-inline-start: 6%; width: 56%; }
}

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

.hero { padding-block: clamp(40px, 7vw, 92px) clamp(32px, 5vw, 60px); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr); } }

.hero .store-subtitle {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mq-on-surface-variant); font-weight: 650;
  margin-bottom: var(--mq-space-lg);
}
.hero h1 { max-width: 14ch; }
@media (max-width: 760px) { .hero h1 { max-width: none; } }

/* The one phrase the reader is meant to carry away. */
.pull {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.34;
  max-width: 24ch; margin: 0 0 var(--mq-space-xl);
}
@media (max-width: 760px) { .pull { max-width: none; } }

.hero-note { font-size: 0.9rem; color: var(--mq-on-surface-variant); margin-top: var(--mq-space-lg); max-width: 54ch; }
.hero-note strong { color: var(--mq-on-surface); }

/* --- Route C home -------------------------------------------------------- */

/* The home uses the wider paper spread from the design-system reference while
 * the rest of the site keeps its established reading width. */
.page-home .site-header .container,
.page-home .home-content > .container { max-width: 1120px; }

.page-home .home-hero { margin-block-start: 0; }
.page-home .hero-copy { min-width: 0; }
.page-home .hero-exhibit {
  position: relative;
  isolation: isolate;
  min-width: 0;
  width: min(100%, 450px);
  margin-inline: auto;
  padding: 18px 18px 0 28px;
}

/* Deep stack: the card is a physical object with two quieter cards behind it,
 * not a flat product screenshot. The layers are decorative and stay behind
 * the real review content at every breakpoint. */
.page-home .hero-exhibit::before,
.page-home .hero-exhibit::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 4% 4% 24% 8%;
  border: var(--rule);
  border-radius: var(--mq-radius-xl);
  background: var(--mq-surface-lowest);
  box-shadow: var(--mq-elev-3);
  pointer-events: none;
}
.page-home .hero-exhibit::before {
  transform: rotate(-8deg) translate(-14px, 20px);
  opacity: 0.38;
  filter: blur(2px);
}
.page-home .hero-exhibit::after {
  z-index: -1;
  transform: rotate(5deg) translate(12px, 12px);
  opacity: 0.68;
  filter: blur(1px);
}

.page-home .hero-exhibit .screen { margin: 0; }
.page-home .hero-exhibit .screen {
  min-height: 380px;
  padding: 30px 28px 26px;
  border: 0;
  border-radius: var(--mq-radius-xl);
  box-shadow: 0 28px 62px rgba(24, 24, 48, 0.2);
  transform: rotate(-4.5deg);
  transform-origin: 50% 50%;
  display: flex;
  flex-direction: column;
}

.stack-caption {
  max-width: 34ch;
  margin: 46px auto 0;
  color: var(--mq-on-surface-variant);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}

.home-benefits { margin-block-start: clamp(24px, 4vw, 48px); }
.home-benefits .b-row { display: grid; gap: var(--mq-space-xl); }
@media (min-width: 760px) {
  .home-benefits .b-row {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mq-space-xxl);
  }
}
.home-benefits .benefit { min-width: 0; }
.home-benefits .benefit h2 {
  font-size: 1.06rem;
  line-height: 1.25;
  margin: 0 0 var(--mq-space-sm);
}
.home-benefits .benefit p {
  font-size: 0.94rem;
  color: var(--mq-on-surface-variant);
}
.home-benefits .how {
  display: block;
  font-size: 0.85rem;
  line-height: 1.45;
}
.home-benefits .how b { color: var(--mq-on-surface); }

/* C-trace closes on an open page, not on a filled marketing panel. */
.page-home .cta-band {
  background: transparent;
  color: var(--mq-on-surface);
  padding-inline: 0;
  border-radius: 0;
}
.page-home .cta-band h2 { max-width: 24ch; }

@media (max-width: 999px) {
  .page-home .src { margin-inline-start: 0; }
  .page-home .src-row { justify-content: flex-start; padding-inline-start: 6%; }
}

@media (max-width: 760px) {
  .page-home .hero h1 { max-width: none; }
  .page-home .pull { max-width: none; }
}

/* --- The drawn review screen ---------------------------------------------- */

/* No screenshot exists and none is faked. The screen is drawn, with the app's
 * real rating colours, so the drawing is at least accurate about what it
 * stands for. */
.exhibit { margin: 0; }
.exhibit img { display: block; width: 100%; border-radius: var(--mq-radius-lg); }
.exhibit figcaption { margin-top: var(--mq-space-sm); font-size: 0.8rem; color: var(--mq-on-surface-variant); }

.screen {
  background: var(--mq-surface-lowest);
  border: var(--rule);
  border-radius: var(--mq-radius-lg);
  padding: var(--mq-space-xl);
  box-shadow: var(--mq-elev-2);
}
@media (prefers-color-scheme: dark) { .screen { background: var(--mq-surface-low); } }

.screen-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mq-on-surface-variant); margin-bottom: var(--mq-space-lg);
}
.page-home .screen-top span:last-child { color: var(--mq-primary); font-weight: 750; }
.page-home .screen-q {
  max-width: 20ch;
  color: var(--mq-on-surface-variant);
  font-size: 1.06rem;
  font-style: italic;
  line-height: 1.38;
  margin: 24px 0 var(--mq-space-md);
}
.page-home .screen-a {
  max-width: 13ch;
  font-size: 1.45rem;
  font-weight: 750;
  line-height: 1.16;
  margin: 0 0 var(--mq-space-lg);
  letter-spacing: -0.03em;
}
.screen-rate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; }
.page-home .screen-rate { margin-top: auto; }
.screen-rate span { text-align: center; padding: 10px 4px; border-radius: 10px; font-size: 0.8rem; font-weight: 700; }
.screen-rate b { display: block; font-size: 0.66rem; font-weight: 500; opacity: 0.75; }
.rate-again { color: var(--mq-rating-again); background: color-mix(in srgb, var(--mq-rating-again) 12%, transparent); }
.rate-hard  { color: var(--mq-rating-hard);  background: color-mix(in srgb, var(--mq-rating-hard) 12%, transparent); }
.rate-good  { color: var(--mq-rating-good);  background: color-mix(in srgb, var(--mq-rating-good) 12%, transparent); }
.rate-easy  { color: var(--mq-rating-easy);  background: color-mix(in srgb, var(--mq-rating-easy) 12%, transparent); }

.src-row { display: flex; }
.src {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border: var(--rule); border-radius: var(--mq-radius-pill);
  font-size: 0.8rem; color: var(--mq-on-surface-variant);
  background: var(--mq-surface-lowest); margin-inline-start: auto;
}
@media (prefers-color-scheme: dark) { .src { background: var(--mq-surface-low); } }
@media (max-width: 900px) { .src { margin-inline-start: 0; } .src-row { padding-inline-start: 6%; } }

/* --- Features ------------------------------------------------------------ */

.features { display: grid; gap: var(--mq-space-xxl); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature h2 { font-size: 1.08rem; margin-top: 0; margin-bottom: var(--mq-space-sm); line-height: 1.25; }
.feature p { font-size: 0.94rem; color: var(--mq-on-surface-variant); }
.feature p:last-child { margin-bottom: 0; }
.feature .price strong { font-size: 1.7rem; color: var(--mq-on-surface); letter-spacing: -0.02em; }

/* --- Comparison ---------------------------------------------------------- */

.table-scroll { overflow-x: auto; border: var(--rule); border-radius: var(--mq-radius-lg); background: var(--mq-surface-lowest); }
@media (prefers-color-scheme: dark) { .table-scroll { background: var(--mq-surface-low); } }

table.compare { border-collapse: collapse; width: 100%; min-width: 660px; font-size: 0.93rem; }
table.compare th, table.compare td { padding: var(--mq-space-md) var(--mq-space-lg); text-align: start; border-bottom: var(--rule); }
table.compare thead th { font-weight: 700; white-space: nowrap; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mq-on-surface-variant); }
table.compare tbody th { font-weight: 650; }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: 0; }
table.compare small { display: block; margin-top: 2px; }
table.compare th.col-us, table.compare td.col-us { min-width: 148px; background: color-mix(in srgb, var(--mq-primary) 9%, transparent); }
table.compare thead th.col-us { color: var(--mq-primary); }

.yes { color: var(--mq-rating-good); font-weight: 700; }
.partial { color: var(--mq-rating-hard); font-weight: 650; }
.no { color: var(--mq-on-surface-variant); }

/* --- Badges and facets --------------------------------------------------- */

.badge {
  display: inline-block; padding: 3px 11px; border-radius: var(--mq-radius-pill);
  font-size: 0.76rem; font-weight: 650;
  border: var(--rule); color: var(--mq-on-surface-variant); background: transparent;
}
.badge-licence { color: var(--mq-primary); border-color: color-mix(in srgb, var(--mq-primary) 40%, transparent); }
.badge-verified { color: var(--mq-rating-good); border-color: color-mix(in srgb, var(--mq-rating-good) 45%, transparent); }

.facets { display: flex; flex-wrap: wrap; gap: var(--mq-space-sm); margin-bottom: var(--mq-space-lg); }
.facet-group { margin-bottom: var(--mq-space-lg); }
.facet-group h2 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--mq-on-surface-variant); margin: 0 0 var(--mq-space-sm); font-weight: 650; }

.facet {
  display: inline-block; padding: 6px 14px; border-radius: var(--mq-radius-pill);
  border: var(--rule); text-decoration: none; font-size: 0.88rem;
  color: var(--mq-on-surface); background: transparent;
}
.facet:hover { border-color: var(--mq-primary); color: var(--mq-primary); text-decoration: none; }
.facet.is-active { background: var(--mq-primary); color: var(--mq-on-primary); border-color: var(--mq-primary); }

/* --- Deck cards ----------------------------------------------------------- */

.pack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--mq-space-lg); grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.pack-card {
  background: var(--mq-surface-lowest); border: var(--rule);
  border-radius: var(--mq-radius-lg); padding: var(--mq-space-lg);
  display: flex; flex-direction: column; gap: var(--mq-space-sm);
}
@media (prefers-color-scheme: dark) { .pack-card { background: var(--mq-surface-low); } }
.pack-card h3 { margin: 0; font-size: 1.02rem; }
.pack-card h3 a { color: var(--mq-on-surface); text-decoration: none; }
.pack-card h3 a:hover { color: var(--mq-primary); text-decoration: underline; }
.pack-card p { margin: 0; font-size: 0.9rem; color: var(--mq-on-surface-variant); }
.pack-card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--mq-space-md); }

/* --- Sample cards --------------------------------------------------------- */

.samples { display: grid; gap: var(--mq-space-lg); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); list-style: none; margin: 0; padding: 0; }
.sample { border: var(--rule); border-radius: var(--mq-radius-lg); overflow: hidden; background: var(--mq-surface-lowest); }
@media (prefers-color-scheme: dark) { .sample { background: var(--mq-surface-low); } }
.sample .face { padding: var(--mq-space-lg); }
.sample .front { font-weight: 650; }
.sample .back { border-top: 1px dashed var(--mq-outline); color: var(--mq-on-surface-variant); }
.sample .face-label { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--mq-on-surface-variant); margin-bottom: 4px; }

/* --- The rights file ------------------------------------------------------ */

/* A share-alike licence requires that the licence and the attribution travel
 * with the work. This block is how we discharge that, and it is the one place
 * on the site where the thread is literal rather than a metaphor. */
.licence-panel {
  border: 2px solid var(--mq-primary);
  border-radius: var(--mq-radius-lg);
  padding: var(--mq-space-xl);
  background: var(--mq-surface-lowest);
}
@media (prefers-color-scheme: dark) { .licence-panel { background: var(--mq-surface-low); } }
.licence-panel h2 { margin-top: 0; }

.rights-list { margin: 0; display: grid; gap: var(--mq-space-md); }
.rights-list dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--mq-on-surface-variant); font-weight: 700; }
.rights-list dd { margin: 2px 0 0; }
@media (min-width: 720px) {
  .rights-list { grid-template-columns: 210px 1fr; align-items: baseline; }
  .rights-list dt { grid-column: 1; }
  .rights-list dd { grid-column: 2; }
}

.attribution {
  display: block;
  /* The attribution chain carries a licence URL, often longer than the column.
   * It must break rather than overflow the panel. */
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  padding: var(--mq-space-md);
  border-radius: var(--mq-radius-md);
  background: var(--mq-surface-container);
  border: var(--rule);
}

.notice {
  padding: var(--mq-space-md) var(--mq-space-lg);
  border-inline-start: 4px solid var(--mq-rating-hard);
  background: var(--mq-surface-container);
  border-radius: 0 var(--mq-radius-md) var(--mq-radius-md) 0;
  font-size: 0.93rem;
  margin-bottom: var(--mq-space-md);
}
.notice-good { border-inline-start-color: var(--mq-rating-good); }
.notice strong { display: block; margin-bottom: 2px; }
.notice p:last-child { margin-bottom: 0; }

/* --- Breadcrumb, guides, trust, CTA --------------------------------------- */

.breadcrumb {
  font-size: 0.8rem; color: var(--mq-on-surface-variant);
  margin-bottom: var(--mq-space-xl); display: flex; flex-wrap: wrap; gap: var(--mq-space-sm);
}
.breadcrumb a { color: var(--mq-on-surface-variant); }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: var(--rule); }
.post-list > li { padding-block: var(--mq-space-xl); border-bottom: var(--rule); }
.post-list h2 { margin: 0 0 var(--mq-space-sm); font-size: 1.22rem; }
.post-list h2 a { color: var(--mq-on-surface); text-decoration: none; }
.post-list h2 a:hover { color: var(--mq-primary); text-decoration: underline; }
.post-list h3 { margin: 0 0 var(--mq-space-sm); font-size: 1.12rem; }
.post-list h3 a { color: var(--mq-on-surface); text-decoration: none; }
.post-list h3 a:hover { color: var(--mq-primary); text-decoration: underline; }
.guide-cluster { margin-block: clamp(56px, 8vw, 96px); scroll-margin-top: 96px; }

.post-meta {
  display: flex; flex-wrap: wrap; gap: var(--mq-space-md);
  font-size: 0.8rem; color: var(--mq-on-surface-variant); margin-bottom: var(--mq-space-xl);
}
.related { border-top: var(--rule); padding-top: clamp(40px, 6vw, 64px); }

.guide-hero {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  margin: 0;
  border-radius: var(--mq-radius-xl);
}

.guide-toc {
  margin: 0;
  padding: var(--mq-space-xl);
  border: var(--rule);
  border-radius: var(--mq-radius-lg);
  background: var(--mq-surface-lowest);
  box-shadow: var(--mq-elev-1);
}
.guide-toc h2 { margin: 0 0 var(--mq-space-lg); font-size: 1rem; letter-spacing: -0.01em; }
.guide-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.guide-toc li { margin: 0; line-height: 1.35; }
.guide-toc a { color: var(--mq-on-surface-variant); text-decoration: none; font-size: 0.84rem; }
.guide-toc a:hover { color: var(--mq-primary); }
.guide-toc .toc-level-3 { padding-inline-start: var(--mq-space-lg); border-inline-start: 1px solid var(--mq-outline-variant); }
.guide-content h2[id], .guide-content h3[id] { scroll-margin-top: 96px; }
.guide-author-note {
  margin: 0;
  padding: var(--mq-space-xl);
  display: flex;
  gap: var(--mq-space-md);
  align-items: flex-start;
  border: var(--rule);
  border-radius: var(--mq-radius-lg);
  background: var(--mq-surface-lowest);
}
.guide-author-note p { margin: 0 0 var(--mq-space-sm); font-size: 0.86rem; line-height: 1.5; color: var(--mq-on-surface-variant); }
.guide-author-note a { font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.guide-author-note-bottom { margin-top: var(--mq-space-xl); }
.guide-cta { margin-block: var(--mq-space-xxl); }

/* Guides index — an editorial library, not a utility list. */
.guides-container,
.guide-page-container { max-width: 1180px; }

.guides-masthead {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 76px);
  border: var(--rule);
  border-radius: clamp(24px, 4vw, 36px);
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--mq-primary) 22%, transparent) 0 8%, transparent 28%),
    linear-gradient(135deg, var(--mq-surface-lowest), var(--mq-primary-container));
  box-shadow: var(--mq-elev-2);
}
.guides-masthead::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 150px;
  inset-inline-end: -46px;
  inset-block-end: -52px;
  border: 2px solid color-mix(in srgb, var(--mq-primary) 35%, transparent);
  border-radius: 48% 52% 44% 56%;
  transform: rotate(-12deg);
  pointer-events: none;
}
.guides-masthead h1 { max-width: 11ch; margin-bottom: var(--mq-space-lg); }
.guides-masthead .lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.26rem); max-width: 58ch; }
.guides-count {
  display: inline-flex;
  align-items: baseline;
  gap: var(--mq-space-sm);
  margin: var(--mq-space-lg) 0 0;
  color: var(--mq-on-surface-variant);
  font-size: 0.86rem;
}
.guides-count strong { color: var(--mq-on-surface); font-size: 1.35rem; }

.guide-cluster-nav {
  display: flex;
  gap: var(--mq-space-sm);
  margin-block: var(--mq-space-xl);
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}
.guide-cluster-nav a {
  flex: 0 0 auto;
  padding: 9px 15px;
  border: var(--rule);
  border-radius: var(--mq-radius-pill);
  background: var(--mq-surface-lowest);
  color: var(--mq-on-surface-variant);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color var(--mq-motion-fast), color var(--mq-motion-fast), transform var(--mq-motion-fast);
}
.guide-cluster-nav a:hover { color: var(--mq-primary); border-color: var(--mq-primary); transform: translateY(-1px); }

.guide-cluster-header { display: flex; align-items: end; justify-content: space-between; margin-bottom: var(--mq-space-xl); }
.guide-cluster-header .eyebrow { margin-bottom: var(--mq-space-sm); }
.guide-cluster-header h2 { margin: 0; max-width: 24ch; font-size: clamp(1.65rem, 1.35rem + 1.3vw, 2.35rem); }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mq-space-xl); }
.guide-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: var(--rule);
  border-radius: var(--mq-radius-xl);
  background: var(--mq-surface-lowest);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--mq-elev-1);
  transition: transform var(--mq-motion-medium) var(--mq-ease-enter), box-shadow var(--mq-motion-medium), border-color var(--mq-motion-medium);
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--mq-elev-3); border-color: color-mix(in srgb, var(--mq-primary) 48%, var(--mq-outline-variant)); text-decoration: none; }
.guide-card-media { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--mq-surface-container); }
.guide-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--mq-motion-slow) var(--mq-ease-enter); }
.guide-card:hover .guide-card-media img { transform: scale(1.035); }
.guide-card-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 3vw, 28px); }
.guide-card-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 var(--mq-space-md); color: var(--mq-on-surface-variant); font-size: 0.76rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.045em; }
.guide-card h3 { margin: 0 0 var(--mq-space-md); max-width: 26ch; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem); line-height: 1.2; }
.guide-card-body > p:not(.guide-card-meta) { margin: 0; color: var(--mq-on-surface-variant); font-size: 0.94rem; line-height: 1.55; }
.guide-card-link { align-self: flex-end; margin-top: auto; padding-top: var(--mq-space-lg); color: var(--mq-primary); font-size: 1.35rem; line-height: 1; transition: transform var(--mq-motion-fast); }
.guide-card-link::before { content: "→"; }
.guide-card:hover .guide-card-link { transform: translateX(4px); }

/* Guide article — wide editorial shell with a calm reading column. */
.guide-header { max-width: 900px; margin: clamp(24px, 5vw, 52px) auto var(--mq-space-xl); text-align: center; }
.guide-header .eyebrow { color: var(--mq-primary); }
.guide-header h1 { max-width: 20ch; margin-inline: auto; font-size: clamp(2.35rem, 1.4rem + 3.6vw, 4.35rem); }
.guide-deck { max-width: 65ch; margin: var(--mq-space-lg) auto 0; color: var(--mq-on-surface-variant); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); line-height: 1.6; }
.guide-header-meta { justify-content: center; margin: var(--mq-space-xl) auto 0; }
.guide-header-meta a { color: inherit; font-weight: 700; }
.guide-hero-frame { position: relative; margin: 0; padding: 0; border-radius: var(--mq-radius-xl); overflow: hidden; background: var(--mq-surface-container); box-shadow: var(--mq-elev-3); }
.guide-hero-frame::after { content: ""; position: absolute; inset: auto 0 0; height: 18%; background: linear-gradient(transparent, rgba(10, 10, 20, 0.12)); pointer-events: none; }

.guide-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(240px, 300px); gap: clamp(44px, 7vw, 84px); align-items: start; justify-content: center; margin-block: clamp(48px, 7vw, 80px); }
.guide-content { min-width: 0; font-size: 1.075rem; line-height: 1.76; }
.guide-content > p { margin-bottom: 1.45em; }
.guide-content > h2 { margin-block: 2.25em 0.75em; font-size: clamp(1.55rem, 1.3rem + 0.8vw, 2rem); }
.guide-content > h3 { margin-block: 1.75em 0.65em; font-size: 1.3rem; }
.guide-content > ul,
.guide-content > ol { padding-inline-start: 1.35em; margin-block: 0 1.55em; }
.guide-content li { margin-bottom: 0.55em; }
.guide-content blockquote { margin: 1.8em 0; padding: var(--mq-space-lg) var(--mq-space-xl); border-inline-start: 4px solid var(--mq-primary); border-radius: 0 var(--mq-radius-md) var(--mq-radius-md) 0; background: var(--mq-surface-container); }
.guide-content .table-scroll { margin-block: 1.75em; }
.guide-content table { min-width: 100%; }
.guide-content a { text-underline-offset: 0.18em; }
.guide-sidebar { position: sticky; top: 92px; display: grid; gap: var(--mq-space-lg); }
.guide-app-card {
  position: relative;
  overflow: hidden;
  padding: var(--mq-space-xl);
  border-radius: var(--mq-radius-xl);
  background: linear-gradient(145deg, #27235f, #4F46E5);
  color: #ffffff;
  box-shadow: var(--mq-elev-3);
}
.guide-app-card::after {
  content: "";
  position: absolute;
  width: 128px;
  height: 128px;
  inset-inline-end: -50px;
  inset-block-start: -54px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 42% 58% 62% 38%;
  transform: rotate(18deg);
  pointer-events: none;
}
.guide-app-brand { display: flex; align-items: center; gap: 9px; margin: 0 0 var(--mq-space-lg); font-size: 0.82rem; font-weight: 800; letter-spacing: -0.01em; }
.guide-app-brand span { width: 24px; height: 24px; border: 5px solid #ffffff; border-radius: 7px; box-shadow: inset 0 0 0 2px rgba(79, 70, 229, 0.55); }
.guide-app-card h2 { max-width: 16ch; margin: 0 0 var(--mq-space-md); color: #ffffff; font-size: 1.3rem; line-height: 1.15; }
.guide-app-card > p:not(.guide-app-brand) { margin: 0 0 var(--mq-space-lg); color: rgba(255, 255, 255, 0.8); font-size: 0.84rem; line-height: 1.5; }
.guide-app-primary { display: block; padding: 11px 15px; border-radius: var(--mq-radius-pill); background: #ffffff; color: #312E81; font-size: 0.86rem; font-weight: 800; text-align: center; text-decoration: none; transition: transform var(--mq-motion-fast), box-shadow var(--mq-motion-fast); }
.guide-app-primary:hover { color: #312E81; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(12, 10, 46, 0.24); text-decoration: none; }
.guide-app-links { display: grid; gap: 8px; margin-top: var(--mq-space-md); }
.guide-app-links a { display: flex; align-items: center; justify-content: space-between; gap: var(--mq-space-sm); padding: 8px 3px; color: rgba(255, 255, 255, 0.88); border-bottom: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.76rem; font-weight: 650; line-height: 1.3; text-decoration: none; }
.guide-app-links a::after { content: "↗"; flex: 0 0 auto; }
.guide-app-links a:last-child { border-bottom: 0; }
.guide-app-links a:hover { color: #ffffff; }
.guide-author-avatar { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--mq-primary); color: var(--mq-on-primary); font-size: 0.9rem; font-weight: 800; }
.guide-author-avatar::before { content: "J"; }
.guide-author-note a::after { content: " →"; }
.guide-cta { margin-block: clamp(48px, 8vw, 76px) 0; }

.related { margin-block: clamp(64px, 9vw, 100px) var(--mq-space-xxl); }
.related-header { margin-bottom: var(--mq-space-xl); }
.related-header .eyebrow { margin-bottom: var(--mq-space-sm); }
.related-header h2 { margin: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--mq-space-lg); }
.related-card { display: block; overflow: hidden; border: var(--rule); border-radius: var(--mq-radius-lg); background: var(--mq-surface-lowest); color: inherit; text-decoration: none; transition: transform var(--mq-motion-fast), box-shadow var(--mq-motion-fast); }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--mq-elev-2); text-decoration: none; }
.related-card img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.related-card div { padding: var(--mq-space-lg); }
.related-card h3 { margin: 0 0 var(--mq-space-sm); font-size: 1.02rem; }
.related-card p { margin: 0; color: var(--mq-on-surface-variant); font-size: 0.82rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.guide-back { margin-top: var(--mq-space-xxl); }
.guide-back a { font-weight: 700; text-decoration: none; }
.guide-back a::before { content: "← "; }

@media (prefers-color-scheme: dark) {
  .guides-masthead { background: radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--mq-primary) 16%, transparent) 0 8%, transparent 28%), linear-gradient(135deg, var(--mq-surface-low), var(--mq-primary-container)); }
  .guide-card, .guide-toc, .guide-author-note, .related-card { background: var(--mq-surface-low); }
}

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: minmax(0, 720px); }
  .guide-sidebar { position: static; grid-row: 1; }
  .guide-app-card { order: 2; }
  .guide-toc { order: 1; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .guides-masthead { padding: var(--mq-space-xxl) var(--mq-space-xl); }
  .guides-masthead h1 { font-size: 2.45rem; }
  .guide-grid, .related-grid { grid-template-columns: 1fr; }
  .guide-cluster { margin-block: 56px; }
  .guide-header { text-align: start; }
  .guide-header h1 { margin-inline: 0; font-size: clamp(2.15rem, 11vw, 3.25rem); }
  .guide-deck { margin-inline: 0; }
  .guide-header-meta { justify-content: flex-start; }
  .guide-hero-frame, .guide-hero { border-radius: var(--mq-radius-lg); }
  .guide-layout { margin-block: 40px; gap: var(--mq-space-xxl); }
  .guide-content { font-size: 1rem; line-height: 1.72; }
  .guide-author-note { padding: var(--mq-space-lg); }
}

.trust { display: grid; gap: var(--mq-space-xl); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.trust p { margin: 0; font-size: 0.92rem; color: var(--mq-on-surface-variant); }
.trust strong { display: block; color: var(--mq-on-surface); margin-bottom: 2px; }

.cta-band {
  text-align: center;
  padding: var(--mq-space-xxl) var(--mq-space-xl);
  border-radius: var(--mq-radius-xl);
  background: var(--mq-primary-container);
  color: var(--mq-on-primary-container);
}
.cta-band h2 { margin-top: 0; max-width: 20ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

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

.site-footer { border-top: var(--rule); padding-block: var(--mq-space-xxl); margin-top: calc(var(--mq-space-xxl) * 2); font-size: 0.9rem; }
.footer-cols { display: grid; gap: var(--mq-space-xl); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-cols h2 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--mq-on-surface-variant); margin: 0 0 var(--mq-space-md); font-weight: 650; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-cols a { color: var(--mq-on-surface); text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; }

.lang-switcher { display: grid; gap: 7px; }
.lang-switcher a { color: var(--mq-on-surface); text-decoration: none; }
.lang-switcher a:hover { text-decoration: underline; }
.lang-switcher a[aria-current] { font-weight: 700; text-decoration: underline; }

.copyright { margin: var(--mq-space-xxl) 0 0; padding-top: var(--mq-space-lg); border-top: var(--rule); color: var(--mq-on-surface-variant); font-size: 0.82rem; }

/* --- Utility -------------------------------------------------------------- */

.empty { padding: var(--mq-space-xxl); text-align: center; color: var(--mq-on-surface-variant); border: 1px dashed var(--mq-outline); border-radius: var(--mq-radius-lg); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* --- Multiplatform ------------------------------------------------------- */

/* The browser precedes the download list rather than sitting in it. For a
 * desktop visitor who only wants to try the thing, "nothing to install" is the
 * strongest sentence on the page, and it dissolves if it becomes the sixth item
 * in a row of buttons. */
.platform-lead {
  border-inline-start: 3px solid var(--mq-primary);
  padding-inline-start: var(--mq-space-xl);
  margin-block: var(--mq-space-xl);
  max-width: 62ch;
}
.platform-lead h3 { margin-top: 0; font-size: 1.2rem; }
.platform-lead p { color: var(--mq-on-surface-variant); }

/* Store badges are copied into the deployment so the page remains self-contained. */
.btn-row .btn-secondary { min-height: 46px; padding: 11px 20px; font-size: 0.94rem; }

.home-platforms#download { scroll-margin-top: 96px; }

/* `auto-fit` et non un compte fixe : la grille porte cinq cartes depuis que Mac,
   Windows et Linux sont publiés, et elle en portera d'autres. Un `repeat(4)`
   laissait une carte seule sur sa ligne. */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--mq-space-md);
  margin-block: var(--mq-space-lg);
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--mq-space-md);
  min-width: 0;
  min-height: 142px;
  padding: var(--mq-space-lg);
  border: var(--rule);
  border-radius: var(--mq-radius-lg);
  background: var(--mq-surface-container-low);
}

.platform-card h3 { margin: 0; font-size: 1rem; }

.store-badge {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  border-radius: 7px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(25, 25, 34, 0.16);
}

.store-badge img {
  display: block;
  width: auto;
  height: 49px;
  max-width: 100%;
}

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

@media (max-width: 560px) {
  .platform-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-badge { transition: none; }
}
