/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #17171a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #9a9aa2;
  --dim: #5e5e66;
  /* FLOWR accent — all tones sampled from the R of the logo.
     Mostly orange; the yellow only exists as a small highlight. */
  --accent: #f67b02;              /* FLOWR orange (core of the R) */
  --accent-hover: #f5900b;
  --accent-rgb: 246, 123, 2;      /* FLOWR orange, for transparent accents */
  --accent-light-rgb: 245, 144, 11;
  --accent-deep-rgb: 245, 109, 2;
  --accent-hi-rgb: 244, 207, 86;  /* yellow highlight — small touches only */
  /* 1. Primary CTAs: full FLOWR gradient (light orange → FLOWR orange → deep orange)
        + a small warm highlight in the top-left corner */
  --cta-gradient:
    radial-gradient(40% 120% at 12% 0%, rgba(var(--accent-hi-rgb), 0.24), rgba(var(--accent-hi-rgb), 0) 70%),
    linear-gradient(115deg, #f5900b 0%, #f67b02 48%, #ec6a02 100%);

  --radius: 14px;
  --max: 1040px;
  --shot: 900px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }
::selection { background: var(--accent); color: #000; }

.sr-only, .hp {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid transparent;
  pointer-events: none;            /* the full-width box itself never blocks clicks… */
}
.header > * { pointer-events: auto; } /* …only its logo, switch and button do */

/* Floating header: one progress value --p (0 at the top → 1 after ~200px), set from scrollY only
   in script.js. The header box never moves or resizes (no layout shift); its background layer
   (::before) morphs from the original full-width bar into a centred, rounded glass bar,
   and the logo / right group glide inward with transforms. Remove this part + the "FLOATING HEADER"
   part of script.js to go back (previous state: backup-before-floating-header/). */
.header::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top:    calc(var(--p, 0) * var(--top, 14px));
  bottom: calc(var(--p, 0) * var(--bottom, 5px));
  left:   calc(var(--p, 0) * var(--side, 0px));
  right:  calc(var(--p, 0) * var(--side, 0px));
  border-radius: calc(var(--p, 0) * var(--r, 16px));
  background:
    radial-gradient(55% 160% at 8% 0%, rgba(var(--accent-rgb), calc(var(--warm, 0.045) * var(--p, 0))), rgba(var(--accent-rgb), 0) 60%),
    rgba(calc(10 + 6 * var(--p, 0)), calc(10 + 6 * var(--p, 0)), calc(11 + 7 * var(--p, 0)), calc(0.72 - 0.06 * var(--p, 0)));
  -webkit-backdrop-filter: blur(calc(14px + var(--blur-extra, 6px) * var(--p, 0))) saturate(calc(1 + 0.35 * var(--p, 0)));
          backdrop-filter: blur(calc(14px + var(--blur-extra, 6px) * var(--p, 0))) saturate(calc(1 + 0.35 * var(--p, 0)));
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, calc(0.08 * var(--line-a, 0))),          /* original thin bottom line */
    inset 0 0 0 1px rgba(255, 255, 255, calc(0.08 * var(--p, 0))),               /* hairline border of the glass bar */
    0 14px 36px -14px rgba(0, 0, 0, calc(0.7 * var(--p, 0))),
    0 2px 8px rgba(0, 0, 0, calc(0.3 * var(--p, 0)));
}
.header .logo {
  transform: translate3d(calc(var(--p, 0) * var(--dx, 0px)), calc(var(--p, 0) * var(--dy, 0px)), 0) scale(calc(1 - 0.06 * var(--p, 0)));
  transform-origin: left center;
}
.header .header-right {
  transform: translate3d(calc(var(--p, 0) * var(--dx, 0px) * -1), calc(var(--p, 0) * var(--dy, 0px)), 0);
}
.header-right { display: flex; align-items: center; gap: 18px; }
/* Language selector: one compact container, active language in a filled dark block with orange accent */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px;
  /* No visible container: only the active language is outlined.
     Transparent 1px border kept so dimensions stay identical. */
  border: 1px solid transparent; border-radius: 10px;
  background: none;
}
.lang-switch button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px;
  background: transparent; border: 0; border-radius: 7px; cursor: pointer;
  font: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--dim);
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.lang-switch .flag { width: 16px; height: 11px; border-radius: 2px; overflow: hidden; flex-shrink: 0; opacity: .55; transition: opacity .2s ease; }
.lang-switch button:hover { color: var(--muted); }
.lang-switch button:hover .flag { opacity: .8; }
.lang-switch button[aria-pressed="true"] {
  color: var(--text);
  background: linear-gradient(115deg, rgba(var(--accent-light-rgb), 0.12), rgba(var(--accent-deep-rgb), 0.08));
  box-shadow: inset 0 0 0 1px rgba(var(--accent-light-rgb), 0.55);
}
.lang-switch button[aria-pressed="true"] .flag { opacity: 1; }
.lang-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.logo { font-weight: 700; letter-spacing: 0.18em; font-size: 15px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { display: block; height: 20px; width: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 12px; cursor: pointer; border: 0;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
/* Header CTA: two states driven by the header's own scroll progress --p (set on .header in script.js,
   inherited here — no second scroll logic). --p = 0 (page top): quiet text button, no border, no fill.
   --p = 1 (floating header): full orange CTA, same gradient / highlight / radius as the main CTAs.
   In between everything is interpolated continuously (no threshold, no time transition on scroll). */
.btn-ghost {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 9px 16px;
  white-space: nowrap;
  border: 1px solid transparent;           /* keeps the exact button size */
  /* text: muted grey (154,154,162) → CTA black (10,10,11) */
  color: rgb(calc(154 - 144 * var(--p, 0)), calc(154 - 144 * var(--p, 0)), calc(162 - 151 * var(--p, 0)));
  background-color: rgba(255, 255, 255, 0);
  box-shadow: inset 0 1px 0 rgba(var(--accent-hi-rgb), calc(0.3 * var(--p, 0)));  /* CTA top highlight */
  transition: background-color .25s ease, filter .25s ease;   /* hover only */
}
.btn-ghost::before {                        /* the orange CTA fill, fading in with --p */
  content: ""; position: absolute; inset: -1px; z-index: -1; pointer-events: none;
  border-radius: inherit;
  background-color: #f67b02;
  background-image: var(--cta-gradient);
  opacity: var(--p, 0);
}
.btn-ghost:hover {
  /* quiet state: faint neutral fill + brighter text; orange state: same lift as the main CTAs */
  background-color: rgba(255, 255, 255, calc(0.06 * (1 - var(--p, 0))));
  color: rgb(calc(244 - 234 * var(--p, 0)), calc(244 - 234 * var(--p, 0)), calc(245 - 234 * var(--p, 0)));
  filter: brightness(calc(1 + 0.07 * var(--p, 0)));
  box-shadow:
    inset 0 1px 0 rgba(var(--accent-hi-rgb), calc(0.3 * var(--p, 0))),
    0 10px 28px -10px rgba(var(--accent-rgb), calc(0.55 * var(--p, 0)));
}
.btn-primary {
  padding: 16px 28px;
  background-color: #f67b02;
  background-image: var(--cta-gradient);
  color: #0a0a0b;
  box-shadow: inset 0 1px 0 rgba(var(--accent-hi-rgb), 0.3);
  transition: filter .25s ease, box-shadow .25s ease, transform .25s ease;
}
.btn-primary:hover {
  filter: brightness(1.07);
  box-shadow: inset 0 1px 0 rgba(var(--accent-hi-rgb), 0.3), 0 0 0 1px rgba(var(--accent-light-rgb), 0.28), 0 10px 28px -10px rgba(var(--accent-rgb), 0.55);
  transform: translateY(-1px);
}
.btn:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Layout ---------- */
main { padding: 0 clamp(16px, 4vw, 40px); }
.section, .hero, .shot-wrap { max-width: var(--max); margin: 0 auto; }
/* Vertical rhythm (multiples of 8, max values reached around 1440px):
   within a group 8–24 · title → content 56 · content → visual 64 · related blocks 80
   between chapters 160 · before the final chapter 176 · waitlist → footer 120 */
.section { padding: clamp(80px, 11vw, 160px) 0 0; text-align: center; }
.shot-wrap { max-width: var(--shot); }
.section-demo { padding-top: clamp(80px, 11vw, 160px); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(100px, 7.5vw, 108px) 0 clamp(24px, 2vw, 28px);
  text-align: center;
}
.eyebrow {
  color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: 0.32em;
  margin-bottom: 28px;
}
h1 { font-size: clamp(48px, 9vw, 104px); }
.sub {
  margin-top: 28px;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--text); font-weight: 500; letter-spacing: -0.01em;
}
.lead {
  max-width: 560px; margin: 14px auto 0;
  color: var(--muted); font-size: clamp(16px, 1.6vw, 18px);
}
.hero .btn-primary { margin-top: 44px; }
.meta { margin-top: 18px; color: var(--dim); font-size: 13px; letter-spacing: 0.04em; }

h2 { font-size: clamp(34px, 5.4vw, 60px); }
h2.caps { font-size: clamp(30px, 4.6vw, 52px); color: #ededef; text-wrap: balance; } /* same tracking (-0.03em), weight, line-height and white as the hero title; smaller for hierarchy */

.demo-subtitle {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 500;
  text-wrap: balance;
} /* secondary to h2.caps: smaller size, muted (not white) color */

/* ---------- Hero — split test (product left, promise right) ---------- */
/* Columns sized to the real content (plugin 723px + text ≈490px at 1440px) and centred as one group,
   so the composition balances around the page centre instead of spreading to the edges. */
.hero-split {
  max-width: 1262px;
  display: grid;
  grid-template-columns: 59.6fr 40.4fr;
  align-items: center;
  gap: clamp(32px, 3.4vw, 48px);
  padding: clamp(120px, 11vw, 160px) 0 clamp(16px, 2vw, 24px);
  text-align: left;
}
.hero-split .hero-shot { order: -1; }
/* The headline may run slightly past the text column (≈43px at 1440px, always less than the page margin) so the longer
   English title keeps its two lines while the column stays tight to the content. */
.hero-split h1 { font-size: clamp(44px, 4.8vw, 68px); margin-right: calc(-1 * min(44px, 3vw)); }
/* Three reading levels: promise (h1) → what FLOWR is (.sub) → concrete benefit (.lead) → action */
/* Hero text block — typography & vertical rhythm (one family: system / SF Pro)
   Group 1  h1         68px / 600 / 1.05 / -0.03em / #ededef
            ── 32px ──
   Group 2  promise    19px / 500 / 1.35 / -0.01em / #d8d8dc
            ── 8px ──
            description 16px / 400 / 1.65 / 0 / #93939b (one colour)
            ── 32px ──
   Action   CTA (unchanged) */
.hero-split h1 { color: #ededef; }
.hero-split .sub {
  margin-top: 32px;
  font-size: clamp(17px, 1.32vw, 19px); font-weight: 500; line-height: 1.35;
  letter-spacing: -0.01em; color: #d8d8dc;
}
.hero-split .lead {
  margin: 8px 0 0; max-width: 420px;
  font-size: clamp(15px, 1.12vw, 16px); font-weight: 400; line-height: 1.65;
  letter-spacing: 0; color: #93939b;
}
.hero-split .btn-primary { margin-top: 32px; }

/* Desktop optical alignment on the h1's left ink edge.
   The big "C" of the h1 has a side bearing of ≈0.038em (2.58px at 68px), so its ink starts to the right
   of its box. Bar, subtitle, description and CTA are nudged right by the same amount, minus their own
   first-letter bearing. position/left = visual shift only: no width, wrapping or vertical change. */
@media (min-width: 961px) {
  .hero-split { --h1-ink: clamp(1.672px, 0.1824vw, 2.584px); } /* 0.038 × h1 size */
  /* Promise: its first letter differs per language ("L" in FR, "T" in EN), so its bearing is set per language. */
  .hero-split .sub { --sub-bearing: 0.063em; position: relative; left: calc(var(--h1-ink) - var(--sub-bearing)); }
  html[lang="fr"] .hero-split .sub { --sub-bearing: 0.086em; }
  html[lang="en"] .hero-split .sub { --sub-bearing: 0.044em; }
  .hero-split .lead { position: relative; left: calc(var(--h1-ink) - 0.034em); }
  .hero-split .btn-primary { position: relative; left: var(--h1-ink); }
}

/* ---------- Hero product ("product hero" treatment) ----------
   Layers, back to front:
   .shot-shadow  black shadow (short & defined + wide & diffuse), tilts with the object
   .shot-glow    orange/yellow light taken from the logo's R, under the product & a bit to the right
   .shot-tilt    the object: real screenshot, clipped to the Logic window's own corner rounding
     .shot-sheen   very faint light that follows the mouse on the surface (desktop hover only)
     .shot-edge    1px glass/metal edge, brighter on top; its reflection turns with the mouse
   Tilt/light values are CSS variables driven by the mouse in script.js (desktop only). */
.hero-shot {
  --rest-rx: 0deg; --rest-ry: 0deg;
  position: relative; margin: 0; perspective: 1800px;
  /* Keeps the previous visual's footprint (2356:1458) so the hero height and the text column
     never move; the wider plugin visual (1583:809) sits centred vertically inside it. */
  aspect-ratio: 2356 / 1458;
  display: flex; align-items: center;
}
.shot-shadow, .shot-tilt {
  border-radius: 1.2% / 2.35%;   /* = the plugin window's own corner rounding (19px on 1583×809) */
  transform: rotateX(calc(var(--rest-rx) + var(--rx, 0deg))) rotateY(calc(var(--rest-ry) + var(--ry, 0deg)));
  will-change: transform;
}
.shot-shadow {
  position: absolute; inset: 8.709% 0; z-index: 0;   /* exactly the plugin's box inside the footprint */
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),              /* contact: detaches the edges */
    0 6px 14px -4px rgba(0, 0, 0, 0.6),         /* contact, a little softer */
    0 26px 52px -14px rgba(0, 0, 0, 0.78),      /* depth */
    0 80px 150px -30px rgba(0, 0, 0, 0.92);     /* very wide, dissolves in the black */
}
@media (max-width: 720px) {                     /* phones: slightly less depth */
  .shot-shadow {
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.55),
      0 5px 12px -4px rgba(0, 0, 0, 0.55),
      0 20px 40px -12px rgba(0, 0, 0, 0.72),
      0 60px 120px -26px rgba(0, 0, 0, 0.9);
  }
}
.shot-glow {
  position: absolute; left: 10%; right: -4%; top: 38%; bottom: -16%;
  z-index: 1; pointer-events: none;
  background:
    radial-gradient(34% 46% at 64% 58%, rgba(var(--accent-light-rgb), 0.42), rgba(var(--accent-light-rgb), 0) 70%),
    radial-gradient(58% 62% at 52% 56%, rgba(var(--accent-deep-rgb), 0.5), rgba(var(--accent-deep-rgb), 0) 72%);
  filter: blur(56px);
  transform: translate3d(var(--gx, 0px), var(--gy, 0px), 0);
}
.shot-tilt { position: relative; z-index: 2; overflow: hidden; width: 100%; }
.shot-tilt img { width: 100%; height: auto; }   /* final visual: no extra filter */
.shot-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(38% 60% at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 70%);
  opacity: 0; transition: opacity .6s ease;
}
.hero-shot.is-lit .shot-sheen { opacity: 1; }
.shot-edge {
  display: none;   /* no added border/contour around the final cut-out visual */
  position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(var(--edge-angle, 180deg),
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 255, 255, 0.1) 18%,
    rgba(255, 255, 255, 0.05) 60%,
    rgba(255, 255, 255, 0.08) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
}
@media (min-width: 961px) {
  .hero-shot { --rest-rx: 1.5deg; --rest-ry: 2.5deg; }
}

/* Idle float: the whole composition (shadow + orange glow + plugin, all inside .hero-shot) drifts
   slowly up and down. Uses the individual `translate` property, so it simply adds to the reveal's
   `transform`, the children's 3D tilt (transform) and the hero's scroll depth (`scale`). */
.hero-shot { --float: 7px; animation: hero-float 7s cubic-bezier(0.37, 0, 0.63, 1) infinite; }
@keyframes hero-float {
  0%, 100% { translate: 0 calc(var(--float) * -1); }
  50%      { translate: 0 var(--float); }
}
@media (max-width: 720px) { .hero-shot { --float: 4px; } }
@media (prefers-reduced-motion: reduce) { .hero-shot { animation: none; translate: none; } }


/* Stacked below 960px: promise first, product right after */
@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 640px;
    padding-top: clamp(104px, 16vw, 128px);
    text-align: center;
  }
  .hero-split .hero-shot { order: 0; }
  .hero-split h1 { font-size: clamp(38px, 9.6vw, 56px); margin-right: 0; }
  /* Same hierarchy, tighter rhythm: 22 / 6 / 26 */
  .hero-split .sub { margin-top: 22px; }
  .hero-split .lead { margin: 6px auto 0; }
  .hero-split .btn-primary { margin-top: 26px; }
}

/* ---------- Plugin window / media frames ---------- */
.window {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(var(--accent-rgb), 0.14), 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.window-bar {
  display: flex; gap: 7px; padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a2a2e; }

.video {
  margin: clamp(36px, 4vw, 56px) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

/* ---------- Hero demo video (click-to-play, poster + sound — not a looping feature clip) ---------- */
.demo-player { position: relative; cursor: pointer; }
.demo-player video { display: block; width: 100%; height: auto; }
.demo-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  border: 0; padding: 0; margin: 0; cursor: pointer;
  transition: background .2s ease;
}
.demo-play-btn .play { background: rgba(10, 10, 11, 0.55); backdrop-filter: blur(2px); }
.demo-play-btn:hover { background: rgba(0, 0, 0, 0.28); }
.demo-play-btn:hover .play { background: rgba(10, 10, 11, 0.7); }
.demo-player.is-playing .demo-play-btn { display: none; }

.placeholder {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  color: var(--dim); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
}
.placeholder::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 20%, var(--surface) 75%);
}
.placeholder > * { position: relative; z-index: 1; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-16-10 { aspect-ratio: 16 / 10; }

.play {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center;
}
.play::before {
  content: ""; margin-left: 4px;
  border-left: 14px solid var(--accent);
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}

/* ---------- Benefits ---------- */
.benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin-top: clamp(40px, 5.6vw, 80px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}
.benefit {
  position: relative;
  background: var(--bg);
  padding: clamp(28px, 3.5vw, 40px);
  transition: background-color 280ms ease, box-shadow 280ms ease;
}
/* Three reading levels, no decoration: small orange number → white title → grey description */
.num { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; opacity: .9; transition: opacity 280ms ease; }
.benefit h3 {
  margin: 22px 0 12px;
  font-size: 16px; line-height: 15.75px;   /* +1px size, same line box as before → identical card height */
  letter-spacing: 0.2em; text-transform: uppercase;
}
.benefit p { color: var(--muted); font-size: 16px; transition: color 280ms ease; }

/* Highlighted card: the card lifts in light only — slightly brighter fill, a clearer neutral edge
   (inset → no layout shift), a faint top light.
   · computers (any device with a hovering pointer): on mouse hover;
   · touch screens: .is-lit, set by script.js on the card nearest the middle of the screen while
     scrolling (passes from card to card, both directions). */
@media (any-hover: hover) {
  .benefit:hover {
    background-color: #141417;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 24px 48px -32px rgba(255, 255, 255, 0.05);
  }
  .benefit:hover .num { opacity: 1; }
  .benefit:hover p { color: #b4b4bb; }
}
.benefit.is-lit {
  background-color: #141417;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 24px 48px -32px rgba(255, 255, 255, 0.05);
}
.benefit.is-lit .num { opacity: 1; }
.benefit.is-lit p { color: #b4b4bb; }

/* ---------- Philosophy ---------- */
.lead-wide { max-width: 640px; margin-top: 24px; }
/* FR sentence is a bit longer: cap its size at 17.3px (vs 18px, with a small safety margin) so it fits on one line on desktop like EN */
html[lang="fr"] .lead-wide { font-size: clamp(16px, 1.6vw, 17.3px); }

/* ---------- Feature blocks (one per core function, alternating text↔video / video↔text — Output
   Thermal-style product section). Each block: a short title (.feature-text) + a video slot, reusing
   the existing .video frame (same border/radius/background as the demo video above). Text and video
   keep the SAME order in the DOM for every block (title first); the visual alternation is CSS-only
   (nth-child(even) reverses the row) so there is a single, simple markup pattern to repeat per block. */
.feature-blocks {
  display: flex; flex-direction: column;
  gap: clamp(64px, 9vw, 120px);
  margin-top: clamp(56px, 6.5vw, 88px);
  text-align: left;   /* overrides .section's centred text, same pattern as .benefits */
}
.feature-block {
  display: flex; align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.feature-block:nth-child(even) { flex-direction: row-reverse; }
.feature-text { flex: 0 0 clamp(220px, 27vw, 320px); }
.feature-text h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  color: #ededef;
  text-wrap: balance;
}
.feature-text p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.feature-block .video { flex: 1 1 auto; min-width: 0; margin: 0; }   /* the demo video's frame, without its top margin (side-by-side here, not stacked) */

@media (max-width: 720px) {
  .feature-blocks { gap: 48px; }
  .feature-block, .feature-block:nth-child(even) { flex-direction: column; align-items: stretch; gap: 20px; }
  .feature-text { flex: none; }
}

/* ---------- Waitlist ---------- */
.waitlist { padding-top: clamp(88px, 12.2vw, 176px); padding-bottom: clamp(64px, 8.3vw, 120px); }
.waitlist .lead { margin-top: 14px; }
/* Conversion block hierarchy below the form: perk (reassurance, tied to the CTA) sits close
   and a touch brighter/heavier than the meta line below it (most secondary, smallest gap). */
.waitlist .perk { margin-top: 14px; color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0.01em; }
.waitlist .meta { margin-top: 8px; }
.waitlist .meta-strong { color: #696971; } /* "Private beta" a touch lighter than the rest of the line (--dim) */
.form {
  display: flex; gap: 10px;
  max-width: 480px; margin: 32px auto 0;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color .2s ease;
}
.form:focus-within { border-color: rgba(var(--accent-rgb), 0.45); }
.form input[type="email"] {
  flex: 1; min-width: 0;
  padding: 0 18px;
  background: transparent; border: 0; color: var(--text);
  font: inherit; font-size: 16px;
}
.form input::placeholder { color: var(--dim); }
.form input:focus-visible { outline: none; }
.form .btn-primary { padding: 14px 22px; white-space: nowrap; }
.form .btn-primary:disabled { opacity: .6; cursor: default; transform: none; }

.form-status { margin-top: 10px; font-size: 15px; color: var(--muted); }
.form-status.error { color: #ff6b5b; }
.form.done { display: none; }
.form-status.success {
  margin-top: 44px; min-height: 0;
  color: var(--text); font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
}
.form-status.success::before { content: "●  "; color: var(--accent); font-size: 14px; vertical-align: 3px; }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: center; align-items: center;
  padding: 40px 16px;
  border-top: 1px solid var(--line);
  color: var(--dim); font-size: 13px;
}
.footer .logo { color: var(--muted); font-size: 13px; }
.footer-link {
  color: inherit; cursor: pointer; text-decoration: none;
  transition: color .2s ease;
}
.footer-link:hover, .footer-link:focus-visible {
  color: var(--muted);
}

/* ---------- Reveal animation (discreet) ---------- */
/* Scroll reveal: fade + small rise, soft ease-out, staggered per batch (delay set in script.js) */
:root { --reveal-ease: cubic-bezier(0.22, 0.61, 0.36, 1); --reveal-y: 20px; --reveal-time: 700ms; }
.js .reveal {
  opacity: 0; transform: translate3d(0, var(--reveal-y), 0);
  transition: opacity var(--reveal-time) var(--reveal-ease), transform var(--reveal-time) var(--reveal-ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { --reveal-y: 12px; --reveal-time: 600ms; } /* hero: almost immediate, barely moves */
.js .benefit.reveal {
  transition: opacity var(--reveal-time) var(--reveal-ease), transform var(--reveal-time) var(--reveal-ease), background-color 280ms ease, box-shadow 280ms ease;
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms;
}
@media (max-width: 720px) { :root { --reveal-y: 12px; --reveal-time: 600ms; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header, .header-right { gap: 8px; }
  /* Compact selector on phones: flags only, same container and active block */
  .lang-switch button { padding: 5px; }
  .lang-switch .lang-code { display: none; }
  .logo img { height: 14px; }
  .header .btn-ghost { padding: 9px 12px; }
  .benefits { grid-template-columns: 1fr; }
  .window { border-radius: 10px; }
  .window-bar { padding: 9px 11px; }
  .window-bar span { width: 9px; height: 9px; }
  .form { flex-direction: column; border-radius: 18px; padding: 8px; }
  .form input[type="email"] { padding: 14px 14px; }
  .form .btn-primary { width: 100%; border-radius: 12px; }
}

/* Very narrow phones (< 380px): tighten the header CTA so the header keeps its 16px margin */
@media (max-width: 380px) {
  .header .btn-ghost { padding: 9px 10px; letter-spacing: 0.06em; }
}

/* ==========================================================
   Living background ("atmosphere") — one continuous layer fixed behind the whole page.
   Stacking (back → front):
     page black (body)
     → .atmos (fixed, z-index -1, behind every element of the page)
         1. two grain layers (different noise seeds) slowly cross-fading: the grain distribution
            changes over time without moving, scrolling or flickering
         2. three huge, very faint lights (warm near the product, cool anthracite, neutral),
            drifting a few dozen px over 26–34 s
     → existing glows / shadows of the plugin (in the page content, untouched)
     → content
   Grain is weaker around the centre-left of the screen (where the product sits) and stronger in
   the empty edges. Everything animates with opacity/transform only (GPU-composited, cheap).
   Remove this block + the .atmos div in index.html to get the flat black back.
   ========================================================== */
.atmos {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.atmos-grain {
  position: absolute; inset: 0;
  background-size: 256px 256px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 38% 42%, rgba(0, 0, 0, 0.4), #000 85%);
          mask-image: radial-gradient(ellipse 60% 55% at 38% 42%, rgba(0, 0, 0, 0.4), #000 85%);
  will-change: opacity;
}
.atmos-grain.g1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='1.7' intercept='-0.6'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: 0.016; animation: grain-a 7s ease-in-out infinite alternate; }
.atmos-grain.g2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='17' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='1.7' intercept='-0.6'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-position: 97px 131px; opacity: 0.004; animation: grain-b 7s ease-in-out infinite alternate; }
@keyframes grain-a { from { opacity: 0.016; } to { opacity: 0.004; } }
@keyframes grain-b { from { opacity: 0.004; } to { opacity: 0.016; } }

.atmos-light { position: absolute; border-radius: 50%; will-change: transform, opacity; }
.atmos-light.l1 { /* very dark warmth, near where the product sits */
  left: -18vw; top: 4vh; width: 92vw; height: 96vh;
  background: radial-gradient(closest-side, rgba(var(--accent-deep-rgb), 0.045), rgba(var(--accent-deep-rgb), 0.018) 45%, rgba(var(--accent-deep-rgb), 0) 100%);
  animation: drift-1 30s ease-in-out infinite alternate;
}
.atmos-light.l2 { /* cooler anthracite, upper right */
  right: -22vw; top: -28vh; width: 84vw; height: 90vh;
  background: radial-gradient(closest-side, rgba(150, 160, 180, 0.03), rgba(150, 160, 180, 0.012) 45%, rgba(150, 160, 180, 0) 100%);
  animation: drift-2 34s ease-in-out infinite alternate;
}
.atmos-light.l3 { /* neutral lift, lower part of the screen */
  left: 18vw; bottom: -46vh; width: 100vw; height: 90vh;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.007) 45%, rgba(255, 255, 255, 0) 100%);
  animation: drift-3 26s ease-in-out infinite alternate;
}
@keyframes drift-1 { from { transform: translate3d(0, 0, 0); opacity: 1; } to { transform: translate3d(36px, -22px, 0); opacity: 0.85; } }
@keyframes drift-2 { from { transform: translate3d(0, 0, 0); opacity: 0.9; } to { transform: translate3d(-40px, 26px, 0); opacity: 1; } }
@keyframes drift-3 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-30px, -18px, 0); } }

/* Phones: lighter grain, no grain cross-fade, slower light drift */
@media (max-width: 720px) {
  .atmos-grain.g1 { opacity: 0.012; animation: none; }
  .atmos-grain.g2 { display: none; }
  .atmos-light.l1 { animation-duration: 48s; }
  .atmos-light.l2 { animation-duration: 54s; }
  .atmos-light.l3 { animation-duration: 42s; }
}
/* Reduced motion: static, very subtle version */
@media (prefers-reduced-motion: reduce) {
  .atmos-grain, .atmos-light { animation: none !important; }
  .atmos-grain.g1 { opacity: 0.012; }
  .atmos-grain.g2 { display: none; }
}

/* ==========================================================
   CTA sheen + breath — one occasional event on the two main orange CTAs (hero + waitlist form).
   Header button is NOT animated. Remove this block to get the static buttons back.
   · A soft, wide, warm band (no sharp line) lives inside the button, between the orange
     gradient and the text (isolation + z-index -1), clipped by the button's rounded corners.
   · Same event, same timing: the band crosses in 2.2 s while the button gently grows
     (CSS `scale`, from its centre) and its black label warms up to a dark cream-grey — all three
     peak when the light is in the middle, then settle back. Label: colour only (no blur/glow).
     `scale` is separate from `transform`, so the existing hover lift is untouched; no layout change.
   · 7 s cycle: 2.2 s of life, then ~4.8 s perfectly still.
   · Waitlist version is ~20% fainter and runs half a cycle later, so the two never move together.
   · On hover the band fades out (no jump); reduced-motion users get no sheen and no breath.
   ========================================================== */
.hero .btn-primary, .form .btn-primary {
  position: relative; overflow: hidden; isolation: isolate;
  animation: cta-breath 7s infinite;
}
.hero .btn-primary::before, .form .btn-primary::before {
  content: "";
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 55%;
  z-index: -1; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255, 238, 200, 0) 0%,
    rgba(255, 238, 200, var(--sheen, 0.2)) 50%,
    rgba(255, 238, 200, 0) 100%);
  transform: translateX(-130%) skewX(-18deg);
  animation: cta-sheen 7s infinite;
  transition: opacity .3s ease;
}
.hero .btn-primary { --breath: 1.015; --lit: #4a4032; animation-delay: 2s; }
.hero .btn-primary::before { --sheen: 0.22; animation-delay: 2s; }
.form .btn-primary { --breath: 1.011; --lit: #3a3228; animation-delay: 5.5s; }   /* ~20% more discreet, half a cycle later */
.form .btn-primary::before { --sheen: 0.18; animation-delay: 5.5s; }
.hero .btn-primary:hover::before, .form .btn-primary:hover::before { opacity: 0; }

/* 2.2 s of a 7 s cycle = 31.43%; scale + label colour peak at half of it (15.71%) */
@keyframes cta-sheen {
  0%     { transform: translateX(-130%) skewX(-18deg); animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); }
  31.43% { transform: translateX(230%) skewX(-18deg); }
  100%   { transform: translateX(230%) skewX(-18deg); }
}
@keyframes cta-breath {
  0%     { scale: 1; color: #0a0a0b; animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); }
  15.71% { scale: var(--breath, 1.015); color: var(--lit, #4a4032); animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); }
  31.43% { scale: 1; color: #0a0a0b; }
  100%   { scale: 1; color: #0a0a0b; }
}
@media (max-width: 720px) {
  .hero .btn-primary { --breath: 1.01; }
  .hero .btn-primary::before { --sheen: 0.18; }
  .form .btn-primary { --breath: 1.008; }
  .form .btn-primary::before { --sheen: 0.14; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .btn-primary, .form .btn-primary { animation: none; scale: none; }
  .hero .btn-primary::before, .form .btn-primary::before { animation: none; display: none; }
}


/* Background layers container: the page-long particle layer is positioned inside <main> */
main { position: relative; }

/* ==========================================================
   PARTICLES — background test. Remove this block + the .motes div (index.html)
   + the "PARTICLES" part of script.js to go back (previous state: backup-before-particles/).
   Stacking: page black → .atmos (grain + lights) → .motes → local glows → content.
   (Layers inside <main> share z-index -1 and paint in document order.)
   Tiny soft motes (no hard dot, no star shape), two depths:
     far  = 1.5–2.5 px, faint, 20–35 px of slow drift
     near = 4–7 px, softer halo, 35–60 px of drift, a little quicker
   Each mote floats along its own 4-point path (alternate) and fades in/out on a separate,
   unrelated cycle, with an invisible phase. Nothing is synchronised.
   ========================================================== */
.motes { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mote {
  position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(var(--c), 1) 0%, rgba(var(--c), 0.55) 35%, rgba(var(--c), 0) 70%);
  animation:
    mote-move var(--move) ease-in-out infinite alternate,
    mote-glow var(--glow) ease-in-out infinite;
  animation-delay: var(--d1), var(--d2);
  will-change: transform, opacity;
}
.mote.near { background: radial-gradient(circle, rgba(var(--c), 0.9) 0%, rgba(var(--c), 0.35) 30%, rgba(var(--c), 0) 70%); }
.mote:not(.on) { animation-play-state: paused; }
@keyframes mote-move {
  0%   { transform: translate3d(0, 0, 0); }
  33%  { transform: translate3d(var(--x1), var(--y1), 0); }
  66%  { transform: translate3d(var(--x2), var(--y2), 0); }
  100% { transform: translate3d(var(--x3), var(--y3), 0); }
}
@keyframes mote-glow {
  0%   { opacity: 0; }
  22%  { opacity: calc(var(--o) * 0.55); }
  42%  { opacity: var(--o); }
  58%  { opacity: calc(var(--o) * 0.5); }
  74%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .motes { display: none; }
}

