/* ============================================================
   Themiros — Landing page styles.
   Every colour comes from tokens.css; nothing hardcoded here.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--t-body);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection {
  background: color-mix(in oklch, var(--brand-accent) 26%, transparent);
  color: var(--ink);
}

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

.wrap {
  position: relative;
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4.5vw, 72px);
}

/* ============================================================
   Ambient background — a soft mesh of brand-tinted light that
   sits behind everything. Fixed, so sections drift over it.
   ============================================================ */

.aura {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(52vw 42vw at 82% -6%,  color-mix(in oklch, var(--brand-accent) 34%, transparent), transparent 60%),
    radial-gradient(46vw 40vw at 2% 10%,   color-mix(in oklch, var(--brand-green)  30%, transparent), transparent 58%),
    radial-gradient(60vw 50vw at 50% 104%, color-mix(in oklch, var(--brand-sage)   24%, transparent), transparent 62%);
}

[data-theme="dark"] .aura {
  background:
    radial-gradient(52vw 42vw at 82% -6%,  color-mix(in oklch, var(--brand-accent) 22%, transparent), transparent 58%),
    radial-gradient(46vw 40vw at 2% 10%,   color-mix(in oklch, var(--brand-green)  38%, transparent), transparent 56%),
    radial-gradient(60vw 50vw at 50% 104%, color-mix(in oklch, var(--indigo)       26%, transparent), transparent 60%);
}

/* Fine grid overlay — gives the page a drafting-table substrate. */
.grid-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  background-image:
    linear-gradient(to right,  var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(72% 56% at 50% 0%, #000 0%, transparent 76%);
}

[data-theme="dark"] .grid-veil { opacity: 0.5; }

/* ============================================================
   Shared elements
   ============================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: var(--t-micro);
  font-size: 11px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
}

.section-title {
  margin-top: 18px;
  max-width: 26ch;
  font: 600 clamp(26px, 2.9vw, 36px) / 1.1 var(--font-sans);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-lead {
  margin-top: 14px;
  max-width: 66ch;
  font-size: 15.5px;
  color: var(--ink-2);
  text-wrap: pretty;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: 500 14px/1 var(--font-sans);
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.22s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(
    140deg,
    color-mix(in oklch, var(--accent) 88%, var(--brand-accent)),
    var(--accent) 62%
  );
  color: var(--accent-ink);
  box-shadow:
    0 1px 0 color-mix(in oklch, var(--slate-0) 22%, transparent) inset,
    0 6px 20px color-mix(in oklch, var(--brand-green) 34%, transparent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 color-mix(in oklch, var(--slate-0) 26%, transparent) inset,
    0 12px 30px color-mix(in oklch, var(--brand-green) 42%, transparent);
}

/* Arrow nudges forward on hover. */
.btn .arrow { transition: transform 0.24s cubic-bezier(0.34, 1.4, 0.64, 1); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink-2);
  background: color-mix(in oklch, var(--surface) 58%, transparent);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklch, var(--accent) 50%, var(--line-strong));
  color: var(--ink);
  box-shadow: var(--sh-2);
}

/* Card shell — the recurring surface treatment. */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    linear-gradient(
      168deg,
      color-mix(in oklch, var(--surface) 96%, var(--brand-grey)),
      var(--surface) 58%
    );
  box-shadow: var(--sh-1);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* A hairline of brand light along the top edge of each card. */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(
    to right,
    transparent,
    color-mix(in oklch, var(--slate-0) 76%, transparent),
    transparent
  );
}

[data-theme="dark"] .card::before {
  background: linear-gradient(
    to right,
    transparent,
    color-mix(in oklch, var(--slate-0) 14%, transparent),
    transparent
  );
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav-h);
  background: color-mix(in oklch, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

/* .is-stuck is toggled by theme.js once the page scrolls. */
.nav.is-stuck {
  border-bottom-color: var(--line-faint);
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  box-shadow: var(--sh-1);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 15px/1 var(--font-sans);
  letter-spacing: -0.022em;
}

.brand svg { transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1); }
.brand:hover svg { transform: rotate(-6deg) scale(1.06); }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-2);
}

.nav-links a {
  position: relative;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: color-mix(in oklch, var(--surface) 70%, transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: color-mix(in oklch, var(--surface) 66%, transparent);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.3s ease;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  transform: rotate(-18deg);
}

.nav .btn { padding: 9px 16px; font-size: 13px; }

/* Theme switch shows the sun in dark mode and the moon in light mode. */
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

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

/* Bottom padding is intentionally small: the next section supplies its own
   top padding, and stacking both leaves a dead band under the preview. */
/* Two columns: the pitch on the left, the app screen on the right. The right
   column is allowed to bleed past the wrap so the window looks like it
   continues off-canvas. */
.hero {
  position: relative;
  padding: clamp(44px, 5vw, 64px) 0 clamp(28px, 3.5vw, 44px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(28px, 3.4vw, 44px);
}

.hero-copy { max-width: 50ch; }

/* The reveal animation animates `transform`, so it cannot share an element
   with the window's 3D tilt — the wrapper reveals, the window tilts.
   The negative right margin lets the window run past the wrap toward the
   viewport edge, buying width without shrinking the copy column. */
.hero-shot {
  position: relative;
  perspective: 1500px;
}

/* Let the window run past the wrap toward the viewport edge — but only once
   the viewport is wide enough that the tilt + scale still fit on screen. */
@media (min-width: 1240px) {
  .hero-shot { margin-right: clamp(-88px, -3.6vw, 0px); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px 6px 9px;
  border: 1px solid var(--green-line);
  border-radius: var(--r-pill);
  background: color-mix(in oklch, var(--green-soft) 70%, transparent);
  backdrop-filter: blur(8px);
  color: var(--ink-2);
  font: var(--t-xs);
  font-size: 12px;
  letter-spacing: 0.01em;
}

/* Live dot with a slow halo — the one animated accent on the page. */
.hero-tag .dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.hero-tag .dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.32;
  animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 0.4; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

.hero h1 {
  margin-top: 22px;
  font: 600 clamp(34px, 4.3vw, 56px) / 1.02 var(--font-sans);
  letter-spacing: -0.042em;
  text-wrap: balance;
}

/* The emphasised words carry a brand gradient. */
.hero h1 em {
  font-style: normal;
  background: linear-gradient(
    108deg,
    var(--brand-green) 6%,
    var(--brand-accent) 58%,
    var(--brand-sage) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="dark"] .hero h1 em {
  background: linear-gradient(
    108deg,
    var(--accent) 4%,
    var(--green) 54%,
    var(--brand-sage) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-note {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font: var(--t-sm);
  font-size: 12.5px;
  color: var(--ink-faint);
}

.hero-note .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* ============================================================
   Hero app window — a CSS mock of the workspace: rail, sidebar,
   and a pillar list. Sits in the right column of the hero.
   ============================================================ */

.app-window {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    var(--sh-3),
    0 40px 80px -34px color-mix(in oklch, var(--brand-green) 34%, transparent);
  overflow: hidden;
  /* No scale: rotateY alone already reads as depth, and scaling up pushes the
     right edge past the viewport at mid widths. */
  transform: rotateY(-7deg) rotateX(2.4deg);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-window:hover {
  transform: rotateY(-2.5deg) rotateX(0.8deg);
}

/* Title bar --------------------------------------------------- */

.aw-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-faint);
  background: linear-gradient(to bottom, var(--surface-2), var(--surface));
}

.aw-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.aw-bar .path {
  margin-left: 8px;
  font: 400 11px/1 var(--font-mono);
  letter-spacing: -0.01em;
  color: var(--ink-faint);
}

.aw-bar .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--green-line);
  border-radius: var(--r-pill);
  background: var(--green-soft);
  font: var(--t-micro);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.aw-bar .live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* Body: rail | sidebar | content ------------------------------- */

.aw-body {
  display: grid;
  grid-template-columns: 42px 146px minmax(0, 1fr);
}

/* Rail — the dark navigation strip, as in the app. */
.aw-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  /* Fixed dark value, not --bg-rail: on the dark theme the rail token sits so
     close to --surface that the strip disappears into the window. */
  background: oklch(0.225 0.010 258);
  border-right: 1px solid oklch(0.320 0.012 260);
}

.aw-rail .mark { border-radius: 5px; }

/* Separator between the mark and the nav icons. */
.aw-rail .rule {
  width: 20px;
  height: 1px;
  background: var(--rail-line, oklch(0.320 0.012 260));
}

/* Rail icons: a rounded tile holding a glyph, the active one lit in accent. */
.aw-rail .ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: color-mix(in oklch, var(--slate-0) 42%, transparent);
}

.aw-rail .ico.on {
  background: color-mix(in oklch, var(--brand-accent) 20%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--brand-accent) 40%, transparent);
  color: var(--brand-accent);
}

/* Active-item marker, sitting just off the icon's left edge. */
.aw-rail .ico.on {
  position: relative;
}

.aw-rail .ico.on::after {
  content: "";
  position: absolute;
  left: -9px;
  width: 2px;
  height: 13px;
  border-radius: 0 2px 2px 0;
  background: var(--brand-accent);
}

/* Sidebar — pillar navigation. */
.aw-side {
  padding: 14px 10px;
  border-right: 1px solid var(--line-faint);
  background: var(--surface-2);
}

.aw-side .label {
  padding: 0 6px;
  font: var(--t-micro);
  font-size: 9px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-faint);
}

.aw-side ul { margin-top: 10px; display: grid; gap: 2px; }

.aw-side li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border-radius: var(--r-sm);
  font-size: 11.5px;
  color: var(--ink-3);
}

.aw-side li.on {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}

.aw-side li i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tone, var(--line-strong));
}

/* Content — the pillar rows. Grid stretches all three columns to the tallest,
   so no min-height is needed to keep the rail full-height. */
.aw-main { padding: 15px 15px 16px; }

.aw-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.aw-head h3 {
  font: 600 14px/1.2 var(--font-sans);
  letter-spacing: -0.022em;
}

.aw-head .meta {
  font: 400 10.5px/1 var(--font-mono);
  color: var(--ink-faint);
}

/* Six pillars in two columns so the window stays wide, not tall. */
.aw-rows {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.aw-row {
  padding: 9px 10px 10px;
  border: 1px solid var(--line-faint);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.aw-row:hover {
  border-color: color-mix(in oklch, var(--tone) 34%, var(--line));
  background: var(--surface-2);
}

.aw-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.aw-row .name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.aw-row .score {
  font: 600 15px/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--tone, var(--ink));
}

.aw-row .score.muted { color: var(--ink-faint); }

.bar {
  position: relative;
  margin-top: 9px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--surface-sunk);
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    to right,
    color-mix(in oklch, var(--tone) 58%, transparent),
    var(--tone)
  );
  /* Width is set inline; the fill grows in on reveal. */
  transform-origin: left;
  animation: grow 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.aw-row-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--ink-faint);
}

/* Generation-over-generation delta: green when it improves, amber when it
   slips — the amber matches the "à documenter" state elsewhere. */
.aw-row-meta .up,
.aw-row-meta .down {
  font: 600 10px/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.aw-row-meta .up { color: var(--green); }
.aw-row-meta .down { color: var(--amber-deep); }

.tone-a { --tone: var(--layer-a);    --tone-soft: var(--blue-soft);   --tone-line: var(--blue-line); }
.tone-b { --tone: var(--layer-b);    --tone-soft: var(--indigo-soft); --tone-line: var(--indigo-line); }
.tone-c { --tone: var(--amber-deep); --tone-soft: var(--amber-soft);  --tone-line: var(--amber-line); }

/* Evidence footer — the payoff line of the whole product. */
.aw-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--line-faint);
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--ink-3);
}

.aw-foot svg { flex: none; color: var(--accent); }
.aw-foot b { color: var(--ink-2); font-weight: 500; }

/* ============================================================
   Floating panels overlapping the window. They sit outside the
   tilted element so they stay flat and read as a layer above.
   ============================================================ */

.float {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in oklch, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow:
    var(--sh-3),
    0 0 0 1px color-mix(in oklch, var(--slate-0) 44%, transparent) inset;
  animation: floatY 7s ease-in-out infinite;
}

[data-theme="dark"] .float {
  box-shadow:
    var(--sh-3),
    0 0 0 1px color-mix(in oklch, var(--slate-0) 8%, transparent) inset;
}

/* A slow drift, offset per panel so they never move in lockstep. */
@keyframes floatY {
  0%,
  100% { transform: translateY(0); }
  50%  { transform: translateY(-7px); }
}

/* ---- Evidence popover, lower left ---- */

.float-evidence {
  left: -34px;
  bottom: -34px;
  width: 258px;
  padding: 13px 14px 12px;
  animation-delay: -1.4s;
}

.float-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font: var(--t-micro);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.float-head svg { color: var(--accent); }

.float-head .src {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-faint);
}

.float-evidence .quote {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* The matched span — what the score actually rests on. */
.float-evidence mark {
  padding: 1px 3px;
  border-radius: 3px;
  background: color-mix(in oklch, var(--brand-accent) 24%, transparent);
  color: var(--ink);
  font-weight: 500;
}

.float-foot {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line-faint);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--ink-faint);
}

.float-foot .chip {
  padding: 2.5px 8px;
  border: 1px solid var(--blue-line);
  border-radius: var(--r-pill);
  background: var(--blue-soft);
  color: var(--ink-2);
  font-weight: 500;
}

/* ---- Confidence gauge, upper right ---- */

/* Kept inside the window by default; only the widest layouts (where the shot
   also bleeds past the wrap) can afford to push it out past the right edge. */
.float-conf {
  right: 8px;
  bottom: 62px;
  width: 148px;
  padding: 14px;
  text-align: center;
  animation-delay: -4.2s;
}

@media (min-width: 1240px) {
  .float-conf { right: -30px; }
}

.float-label {
  display: block;
  font: var(--t-micro);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.gauge {
  position: relative;
  display: grid;
  place-items: center;
  margin: 10px auto 0;
  width: 52px;
  height: 52px;
}

.gauge svg {
  grid-area: 1 / 1;
  transform: rotate(-90deg);
}

.gauge circle {
  fill: none;
  stroke-width: 3.2;
  /* r = 15.9 gives a ~100-unit circumference, so dasharray reads as a %. */
  stroke-linecap: round;
}

.gauge .track { stroke: var(--surface-sunk); }

.gauge .fill {
  stroke: var(--green);
  animation: gaugeIn 1.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes gaugeIn {
  from { stroke-dasharray: 0 100; }
}

.gauge b {
  grid-area: 1 / 1;
  font: 600 15px/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.gauge b i {
  font-style: normal;
  font-size: 9px;
  color: var(--ink-3);
}

.float-note {
  display: block;
  margin-top: 9px;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--ink-faint);
}

/* ============================================================
   Marquee — audience strip under the hero
   ============================================================ */

.marquee-band {
  margin-top: clamp(18px, 2.4vw, 36px);
  padding: 18px 0 30px;
  border-block: 1px solid var(--line-faint);
  background: color-mix(in oklch, var(--surface) 30%, transparent);
  overflow: hidden;
}

.marquee {
  margin-top: 14px;
  display: flex;
  width: max-content;
  animation: drift 34s linear infinite;
}

/* Two identical tracks side by side; -50% of the pair is exactly one track. */
.marquee-track {
  display: flex;
  gap: 34px;
  padding-right: 34px;
  font-size: clamp(13px, 1.15vw, 17px);
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: color-mix(in oklch, var(--ink) 40%, transparent);
}

.marquee-sep { color: var(--brand-accent); }

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

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

.section { position: relative; padding: var(--section-y) 0; }

/* Hairline between light sections, faded at both ends. The dark band and the
   section that follows it supply their own edges, so they opt out. */
.section + .section:not(.band)::before {
  content: "";
  position: absolute;
  inset: 0 28px auto;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* ---------- Steps ---------- */

.steps {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  padding: 26px 24px 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: color-mix(in oklch, var(--surface) 72%, transparent);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* The accent rule capping each step; it fills in on hover. */
.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--line-strong);
  transform: scaleX(0.24);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  background: var(--surface);
  border-color: color-mix(in oklch, var(--accent) 30%, var(--line));
  box-shadow: var(--sh-2);
}

.step:hover::before {
  background: linear-gradient(to right, var(--accent), var(--brand-accent));
  transform: scaleX(1);
}

.step-n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  border: 1px solid var(--green-line);
  background: var(--green-soft);
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--accent);
}

.step h3 {
  margin-top: 16px;
  font: var(--t-h2);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- Layers ---------- */

.layers {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.layer {
  padding: 30px 28px 32px;
  overflow: hidden;
}

/* Each layer card carries a wash of its own colour. */
.layer::after {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    color-mix(in oklch, var(--tone) 16%, transparent),
    transparent 68%
  );
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.layer:hover {
  transform: translateY(-5px);
  border-color: color-mix(in oklch, var(--tone) 40%, var(--line));
  box-shadow: var(--sh-2);
}

.layer:hover::after { transform: scale(1.22); }

.layer-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: var(--track);
  color: var(--tone);
  text-transform: uppercase;
}

.layer-key::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--tone);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--tone) 18%, transparent);
}

.layer h3 {
  margin-top: 16px;
  font: var(--t-h2);
  font-size: 17px;
  letter-spacing: -0.025em;
}

.layer p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-2);
  text-wrap: pretty;
}

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

.features {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--line-faint);
  overflow: hidden;
  box-shadow: var(--sh-1);
}

.feature {
  position: relative;
  padding: 32px 28px 34px;
  background: var(--surface);
  transition: background 0.3s ease;
}

.feature:hover { background: var(--surface-2); }

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--green-line);
  background: linear-gradient(
    150deg,
    color-mix(in oklch, var(--green-soft) 92%, var(--surface)),
    var(--green-soft)
  );
  color: var(--accent);
  transition: transform 0.34s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.feature:hover .feature-icon { transform: translateY(-3px) rotate(-5deg); }

.feature h3 {
  margin-top: 18px;
  font: var(--t-h2);
  font-size: 15.5px;
  letter-spacing: -0.02em;
}

.feature p {
  margin-top: 7px;
  font-size: 14px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- Personas ---------- */

.personas {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.persona {
  padding: 30px 28px 32px;
  overflow: hidden;
}

.persona:hover {
  transform: translateY(-5px);
  border-color: color-mix(in oklch, var(--accent) 34%, var(--line));
  box-shadow: var(--sh-2);
}

.persona-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--accent);
}

.persona h3 {
  margin-top: 18px;
  font: var(--t-h2);
  font-size: 16px;
  letter-spacing: -0.022em;
}

.persona p {
  margin-top: 9px;
  font-size: 14px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- Team ---------- */

.team {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.member {
  padding: 30px 24px 32px;
  text-align: center;
  overflow: hidden;
}

.member:hover {
  transform: translateY(-5px);
  border-color: color-mix(in oklch, var(--accent) 34%, var(--line));
  box-shadow: var(--sh-2);
}

.member-photo {
  width: 96px;
  height: 96px;
  border-radius: var(--r-pill);
  object-fit: cover;
  margin-inline: auto;
  display: block;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.member h3 {
  margin-top: 18px;
  font: var(--t-h2);
  font-size: 16px;
  letter-spacing: -0.022em;
}

.member-role {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ============================================================
   Rules — the dark band
   ============================================================ */

.band {
  position: relative;
  margin: 0;
  color: var(--slate-100);
  background: var(--bg-deep);
  overflow: hidden;
  isolation: isolate;
}

/* Brand glow inside the dark band. */
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46vw 40vw at 88% 0%,   color-mix(in oklch, var(--brand-accent) 20%, transparent), transparent 64%),
    radial-gradient(50vw 44vw at 4% 100%,  color-mix(in oklch, var(--brand-green)  30%, transparent), transparent 62%);
}

.band .eyebrow { color: var(--slate-400); }
.band .eyebrow::before { background: linear-gradient(to right, var(--brand-accent), transparent); }
.band .section-title { color: var(--slate-0); }
.band .section-lead { color: var(--slate-300); }

.rules {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
}

.rule {
  display: flex;
  gap: 14px;
  padding: 17px 0;
  border-top: 1px solid var(--slate-800);
  font-size: 14px;
  color: var(--slate-400);
  transition: border-color 0.3s ease;
}

.rule:hover { border-top-color: var(--brand-accent); }

.rule .check {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklch, var(--brand-accent) 40%, transparent);
  background: color-mix(in oklch, var(--brand-accent) 14%, transparent);
  color: var(--brand-accent);
}

.rule b {
  display: block;
  margin-bottom: 2px;
  color: var(--slate-0);
  font-weight: 500;
  letter-spacing: -0.015em;
}

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

.cta {
  position: relative;
  padding: clamp(80px, 10vw, 128px) 0;
  text-align: center;
  overflow: hidden;
}

.cta-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-2);
}

.cta h2 {
  margin-inline: auto;
  max-width: 22ch;
  font: 600 clamp(28px, 3.6vw, 42px) / 1.06 var(--font-sans);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.cta p {
  margin: 16px auto 0;
  max-width: 58ch;
  font-size: 16px;
  color: var(--ink-2);
  text-wrap: pretty;
}

.cta-row {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: color-mix(in oklch, var(--surface) 76%, transparent);
  backdrop-filter: blur(10px);
}

/* Two stacked rows: identity + nav + tagline on top, legal bar underneath.
   The top row is one wrapping flex line — brand and nav sit together on the
   left and the tagline is pushed to the far right, dropping to its own line
   only when the width runs out. */
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font: var(--t-sm);
  font-size: 13px;
  color: var(--ink-3);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.footer-tagline {
  margin-left: auto;
  max-width: 56ch;
  text-wrap: pretty;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a { transition: color 0.2s ease; }
.footer-links a:hover { color: var(--ink); }

/* Bottom bar — company line left, legal and language links right. */
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}

/* evoranQ is the company; Themiros is the product it publishes. */
.footer-company b {
  color: var(--ink-2);
  font-weight: 500;
}

/* Legal and language share one link treatment so the language choice reads
   as an ordinary footer link, not a control. */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* The theme switch lives here now. Smaller than the nav original, and pulled
   in tight so it reads as part of this row rather than a stray control. */
.footer-legal .icon-btn {
  width: 30px;
  height: 30px;
  margin-left: -8px;
}

.footer-legal a {
  color: var(--ink-3);
  transition: color 0.2s ease;
}

.footer-legal a:hover { color: var(--ink); }

/* The active language is the one you are reading — mark it, don't hide it. */
.footer-legal a.on {
  color: var(--ink);
  font-weight: 500;
}

.footer-legal a:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* The language pair sits tighter than the legal links it follows. */
/* Log in — secondary to the demo CTA it sits beside: outlined, never filled.
   Rest already wears the full green border and tint (no hover-only reveal);
   hover just deepens the tint so the control still answers the pointer. */
.btn-login {
  background: color-mix(in oklch, var(--brand-accent) 9%, transparent);
  backdrop-filter: none;
  border-color: var(--brand-accent);
  color: var(--login-ink);
}

.btn-login:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--brand-accent);
  color: var(--login-ink);
  background: color-mix(in oklch, var(--brand-accent) 16%, transparent);
}

/* Language links in the nav — compact codes, sat to the right of the CTA. */
.nav-lang {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-left: 4px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.nav-lang a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 2px 3px;
  border-radius: var(--r-xs);
  transition: color 0.16s ease;
}

.nav-lang a:hover { color: var(--ink); }

/* The active language reads as current, not as a button. */
.nav-lang a.on {
  color: var(--ink);
  font-weight: 600;
}

.nav-lang .sep {
  color: var(--line-strong);
  user-select: none;
}

.footer-lang {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.footer-lang .sep {
  color: var(--line-strong);
  user-select: none;
}

@media (max-width: 720px) {
  /* Everything stacks left. The tagline drops its auto margin, otherwise it
     stays pinned right once the top row wraps. */
  .footer-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-tagline { margin-left: 0; }
  .footer-links { justify-content: flex-start; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ============================================================
   Scroll reveal — .reveal elements fade up as they enter view.
   theme.js adds .in via IntersectionObserver.
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Stagger children of a revealed group. */
.reveal-group > * { transition-delay: calc(var(--i, 0) * 70ms); }

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

/* The nav links need more room than a phone breakpoint gives them; hide them
   before they wrap onto a second line. */
@media (max-width: 860px) {
  .nav-links { display: none; }
}

@media (max-width: 1000px) {
  /* Hero stacks: copy first, window below, straightened out. */
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: none; }
  /* Stacked: no tilt, and no bleed past the wrap (the negative margin would
     push the window off the right edge, where overflow-x hides it). */
  .hero-shot {
    perspective: none;
    margin-right: 0;
  }
  .app-window,
  .app-window:hover { transform: none; }

  /* Stacked, the window already fills the wrap — keep both panels fully
     inside it so nothing lands under the viewport edge. */
  .float-evidence { left: 12px; bottom: -20px; }
  .float-conf { right: 12px; bottom: 48px; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .layers,
  .features,
  .personas,
  .team { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --section-y: 66px; }

  .wrap { padding-inline: 16px; }

  /* Long words (URLs, "Themiros") must not push the layout wider than the
     viewport on narrow screens. */
  h1, h2, h3, p { overflow-wrap: break-word; }

  .steps,
  .layers,
  .features,
  .personas,
  .rules { grid-template-columns: 1fr; }

  .team { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .member { padding: 24px 14px 26px; }
  .member-photo { width: 76px; height: 76px; }

  .nav-links { display: none; }

  /* Brand + Log in + CTA + EN/FR share one row here; buy back a few pixels
     rather than drop the language switch on phones. */
  .nav-actions { gap: 6px; }
  .nav-lang { margin-left: 0; gap: 4px; font-size: 12px; }
  .nav .btn { padding: 9px 11px; }
  .nav .btn-login { padding-inline: 6px; }

  .grid-veil { background-size: 44px 44px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }

  /* Drop the sidebar; keep the rail so it still reads as an app. */
  .aw-body { grid-template-columns: 34px minmax(0, 1fr); }
  .aw-side { display: none; }

  /* At this width the panels would cover the window they decorate. */
  .float { display: none; }
}

/* ============================================================
   Sub-page header — the compact hero used by solution / pricing
   / a-propos, in place of the home page's two-column hero.
   ============================================================ */

.page-head {
  position: relative;
  padding: clamp(48px, 6vw, 76px) 0 clamp(32px, 4vw, 48px);
  text-align: center;
}

.page-head .eyebrow { justify-content: center; }

.page-head h1 {
  margin: 16px auto 0;
  max-width: 24ch;
  font: 600 clamp(30px, 4vw, 46px) / 1.06 var(--font-sans);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.page-head p {
  margin: 16px auto 0;
  max-width: 64ch;
  font-size: 16px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ============================================================
   404 — page not found
   ============================================================ */

/* Roomier than an ordinary page head: this section carries the page alone. */
.page-head.err { padding: clamp(64px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }

/* The requested path, echoed back so the visitor can spot a typo. */
.err-path {
  margin-top: 22px;
}

.err-path code {
  display: inline-block;
  max-width: 100%;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklch, var(--surface) 70%, transparent);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}

.err-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* The head above already carries the page; this block only needs to follow it,
   not open a full-height section of its own. */
.err-more { padding-top: 0; }

/* Destination cards — the page works as a junction, not a dead end. */
.err-links {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.err-links a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in oklch, var(--surface) 60%, transparent);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease, background 0.2s ease;
}

.err-links a:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklch, var(--accent) 45%, var(--line-strong));
  background: var(--surface);
}

.err-links b {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.err-links span {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Active link in the top nav. */
.nav-links a.on {
  color: var(--ink);
  background: color-mix(in oklch, var(--surface) 80%, transparent);
}

/* ============================================================
   Solution — alternating feature rows
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.split + .split { margin-top: clamp(48px, 6vw, 76px); }

/* Every other row swaps sides, so the page zig-zags. */
.split:nth-child(even) .split-media { order: -1; }

.split h3 {
  margin-top: 14px;
  font: 600 clamp(20px, 2.2vw, 26px) / 1.14 var(--font-sans);
  letter-spacing: -0.03em;
}

.split p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-2);
  text-wrap: pretty;
}

.split ul {
  margin-top: 16px;
  display: grid;
  gap: 9px;
}

.split li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.split li svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

/* The panel standing in for a screenshot. */
.split-media {
  padding: 22px;
  overflow: hidden;
}

/* Stacked mini-rows used inside .split-media. */
.mini { display: grid; gap: 8px; }

.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line-faint);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 12.5px;
}

.mini-row .dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--tone, var(--line-strong));
}

.mini-row .grow { flex: 1; color: var(--ink-2); }

.mini-row .val {
  font: 600 12px/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--tone, var(--ink-3));
}

.mini-row .val.muted { color: var(--ink-faint); }

/* ============================================================
   Pricing
   ============================================================ */

/* Five offers on a three-up grid: the two that do not fill the last row are
   centred rather than left ragged. Flex, not grid, for exactly that reason —
   `justify-content: center` has no equivalent on a fixed grid track list. */
.plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  align-items: stretch;
}

.plans > .plan {
  /* Three per row at full width, accounting for the two gaps. */
  flex: 1 1 calc((100% - 2 * 18px) / 3);
  min-width: 0;
  max-width: calc((100% - 2 * 18px) / 3);
}

.plan {
  position: relative;
  padding: 28px 24px 30px;
  display: flex;
  flex-direction: column;
}

/* The middle plan is the recommended one; it sits slightly proud. */
.plan.featured {
  border-color: color-mix(in oklch, var(--accent) 42%, var(--line));
  box-shadow: var(--sh-2);
}

.plan-flag {
  position: absolute;
  top: -10px;
  left: 24px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font: var(--t-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan h3 {
  font: var(--t-h2);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.plan .who {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-3);
  min-height: 2.6em;
}

.plan .price {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan .price {
  flex-wrap: wrap;
}

.plan .price b {
  font: 600 26px/1.1 var(--font-sans);
  letter-spacing: -0.04em;
}

/* Bracket under the headline figure — "sur devis" needs its range, and
   "à partir de" needs its qualifier, without competing with the number. */
.plan .price-note {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* "À partir de" sits above the figure, small, so the number stays the anchor. */
.plan .price-from {
  display: block;
  margin-bottom: 2px;
  font: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.plan .price span {
  font-size: 13px;
  color: var(--ink-3);
}

.plan .btn { margin-top: 20px; justify-content: center; }

.plan ul {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-faint);
  display: grid;
  gap: 10px;
}

.plan li {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.plan li svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

.plan li.off { color: var(--ink-faint); }
.plan li.off svg { color: var(--ink-faint); }

/* Placeholder warning band — remove once real figures land. */
.notice {
  margin-top: 28px;
  display: flex;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--amber-line);
  border-radius: var(--r-lg);
  background: var(--amber-soft);
  font-size: 13.5px;
  color: var(--ink-2);
}

.notice svg { flex: none; margin-top: 2px; color: var(--amber-deep); }

/* Small print under the offers — indexation, tax, "from" caveat. */
.price-legal {
  margin: 26px auto 0;
  max-width: 78ch;
  text-align: center;
  font: var(--t-sm);
  color: var(--ink-faint);
  text-wrap: pretty;
}

/* What every offer includes — a checklist, not another set of cards. */
.included {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 40px;
}

.included li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Tick drawn in CSS: one shape, repeated seven times, is not worth seven
   inline SVGs. */
.included li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.36em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

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

/* ============================================================
   FAQ — used on pricing
   ============================================================ */

.faq {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.faq-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  font: var(--t-h2);
  font-size: 15px;
  letter-spacing: -0.018em;
}

.faq-item p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ============================================================
   About
   ============================================================ */

.prose {
  max-width: 75ch;
  margin-inline: auto;
}

.prose h3 {
  margin-top: 34px;
  font: 600 19px/1.2 var(--font-sans);
  letter-spacing: -0.026em;
}

.prose h3:first-child { margin-top: 0; }

.prose p {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Pull-quote setting out the product's core stance. */
.stance {
  margin: 40px auto 0;
  max-width: 72ch;
  padding: 26px 28px;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  background: color-mix(in oklch, var(--surface) 76%, transparent);
  font: 500 clamp(17px, 1.9vw, 21px) / 1.4 var(--font-sans);
  letter-spacing: -0.024em;
  text-wrap: pretty;
}

/* Numbered principles. */
.principles {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.principle {
  padding: 24px 22px 26px;
}

.principle .n {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: var(--track);
  color: var(--accent);
}

.principle h3 {
  margin-top: 12px;
  font: var(--t-h2);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.principle p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

/* Placeholder block for team details we do not have yet. */
.todo-block {
  margin-top: 40px;
  padding: 22px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}

.todo-block b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-2);
  font-weight: 500;
}

/* Two offers per row before they get too narrow to read. */
@media (max-width: 1040px) {
  .plans > .plan {
    flex-basis: calc((100% - 18px) / 2);
    max-width: calc((100% - 18px) / 2);
  }
}

@media (max-width: 860px) {
  .split,
  .faq,
  .principles { grid-template-columns: 1fr; }

  .plans > .plan {
    flex-basis: 100%;
    max-width: 100%;
  }

  .split:nth-child(even) .split-media { order: 0; }
  .split + .split { margin-top: 44px; }
  .plan.featured { order: -1; }
}

/* ============================================================
   Demo request — the form page
   ============================================================ */

/* Form on the left, reassurance column on the right. The form column is the
   wider of the two and keeps its own scroll: the aside is sticky beside it. */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.demo-aside {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: grid;
  gap: 18px;
}

/* ---------- Form shell ---------- */

.form-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(to bottom, var(--surface), var(--surface-2));
  box-shadow: var(--sh-2);
}

/* Bot trap. Positioned off-screen rather than `display: none`, because some
   scripted fillers skip fields that are not rendered at all. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Rows of fields. `.form-row.two` splits in half, everything else is full
   width; each field is a grid cell so labels stay aligned across the row. */
.form-grid {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 16px;
}

.form-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field > label {
  font: var(--t-xs);
  font-size: 12.5px;
  color: var(--ink-2);
}

/* The asterisk is decorative: `required` on the control is what actually
   carries the requirement to assistive tech and to validation. */
.field .req {
  margin-left: 3px;
  color: var(--accent);
}

.field .hint {
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---------- Controls ---------- */

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font: var(--t-body);
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
  appearance: none;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }

.field input:hover,
.field textarea:hover { border-color: var(--slate-400); }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 22%, transparent);
}

/* Checkbox, then the sentence, then a message row spanning both columns —
   a grid rather than a wrapping flex row, so the message lands under the
   text instead of beside it. */
.consent {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.consent a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}

.consent a:hover { color: var(--ink); }

/* ---------- Submit row and status ---------- */

.form-foot {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line-faint);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.form-foot .btn-primary { padding-inline: 22px; }

.form-foot .foot-note {
  font-size: 12.5px;
  color: var(--ink-faint);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

/* Result of a submit. Hidden until the script has something to say, so an
   empty region never takes up space or gets announced. */
.form-status {
  margin-top: 18px;
  display: none;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--ink-2);
}

.form-status.is-shown { display: flex; }

.form-status svg { flex: none; margin-top: 1px; }

.form-status.is-ok {
  border-color: var(--green-line);
  background: var(--green-soft);
}

.form-status.is-ok svg { color: var(--green); }

.form-status.is-error {
  border-color: var(--red-line);
  background: var(--red-soft);
}

.form-status.is-error svg { color: var(--red); }

/* Field-level validation, driven by the script rather than :invalid, so
   nothing turns red before the visitor has tried to submit. */
.field.has-error input,
.field.has-error textarea {
  border-color: var(--red);
}

.field .error {
  display: none;
  font-size: 12px;
  color: var(--red);
}

.field.has-error .error { display: block; }

/* The consent line is its own field container: the message sits on the row
   below the checkbox, spanning both columns. */
.consent .error {
  display: none;
  grid-column: 2;
  font-size: 12px;
  color: var(--red);
}

.consent.has-error { color: var(--ink-2); }
.consent.has-error .error { display: block; }
.consent.has-error input { outline: 1px solid var(--red); outline-offset: 2px; }

/* ---------- Aside cards ---------- */

.aside-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.aside-card h3 {
  font: 600 15px/1.25 var(--font-sans);
  letter-spacing: -0.02em;
}

.aside-card > p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Numbered "what happens next" list. */
.timeline {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.timeline li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.timeline .n {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font: var(--t-micro);
  color: var(--ink-3);
}

.timeline b {
  display: block;
  font: var(--t-h3);
  font-size: 13.5px;
  color: var(--ink);
}

.timeline p {
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink-3);
  text-wrap: pretty;
}

/* Reassurance ticks — same shape as the pricing "included" list. */
.assurances {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.assurances li {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.assurances svg {
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.aside-contact {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.aside-contact a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}

@media (max-width: 1000px) {
  /* Sticky is meaningless once the aside is stacked under the form. */
  .demo-grid { grid-template-columns: 1fr; }
  .demo-aside { position: static; }
}

@media (max-width: 620px) {
  .form-row.two { grid-template-columns: 1fr; }
  .form-foot .btn-primary { width: 100%; justify-content: center; }
}

/* ============================================================
   Legal documents — terms of use, and any long article page
   ============================================================ */

/* Version stamp under the page title. */
.doc-meta {
  margin-top: 18px;
  font: var(--t-sm);
  color: var(--ink-faint);
}

/* "Download as PDF" / "Download source" pair. */
.doc-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Numbered article index. Sits on the same 75ch measure as the prose so the
   two read as one column. */
.doc-toc {
  max-width: 75ch;
  margin-inline: auto;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in oklch, var(--surface) 76%, transparent);
}

.doc-toc-title {
  font: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.doc-toc ol {
  margin-top: 12px;
  padding-left: 1.4em;
  columns: 2;
  column-gap: 34px;
}

.doc-toc li {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--ink-2);
  break-inside: avoid;
}

.doc-toc a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.doc-toc a:hover {
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

/* The articles themselves. */
.doc-body { margin-top: 44px; }

/* Anchored headings clear the sticky nav when jumped to from the index. */
.doc-body h3 { scroll-margin-top: 90px; }

.doc-body ul {
  margin-top: 12px;
  padding-left: 1.25em;
  list-style: disc;
}

.doc-body li {
  margin-top: 7px;
  font-size: 15.5px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Inline links in any long-form text — terms, privacy, legal mentions. */
.prose a,
.doc-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--line-strong);
}

/* Fields that still need evoranQ's real details. Tinted so they cannot be
   mistaken for settled text, and impossible to miss in a printed proof. */
.doc-body .todo-line {
  margin-top: 12px;
  padding: 11px 14px;
  border-left: 2px solid var(--amber-line);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--amber-soft);
  font-size: 14.5px;
}

.doc-foot {
  margin-top: 46px;
  text-align: center;
  font: var(--t-sm);
  color: var(--ink-faint);
}

.doc-foot a {
  color: var(--ink-2);
  text-decoration: none;
}

.doc-foot a:hover { color: var(--ink); }
.doc-foot .sep { margin: 0 10px; }

/* Shown only in the printed/PDF version — see the print block below. */
.print-only { display: none; }

@media (max-width: 700px) {
  .doc-toc ol { columns: 1; }
}

/* ============================================================
   Print — what "Download as PDF" actually produces
   ------------------------------------------------------------
   The browser's print dialogue offers "Save as PDF" on every platform, so
   printing is the download. Everything that is chrome rather than contract
   comes off: nav, footer, ambient layers, the index and the buttons. What
   remains is the terms in the language currently on screen.
   ============================================================ */

@media print {
  /* Force the light palette: a dark-themed print wastes ink and reads badly. */
  html[data-theme="dark"] { color-scheme: light; }

  @page {
    margin: 18mm 16mm;
  }

  body {
    background: #fff;
    color: #000;
  }

  .aura,
  .grid-veil,
  .nav,
  .footer,
  .no-print { display: none !important; }

  main { padding: 0; }

  .section,
  .page-head { padding: 0 !important; }

  /* The head is centred on screen; a printed contract reads left-aligned.
     Reset on the container — the eyebrow is an inline-flex child and centres
     through this, not through its own rule. */
  .page-head { text-align: left; }

  .wrap {
    max-width: none;
    padding: 0;
  }

  /* Reveal animations never ran if the page was printed before scrolling. */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* The page head is sized for a screen hero — clamp() against the viewport
     width, a 46px title, a 16px intro. On paper that dwarfs a 10.5pt body, so
     every part of it is restated in points on the document's own scale. */
  .page-head h1 {
    margin: 0;
    max-width: none;
    font-size: 18pt;
    line-height: 1.15;
    text-align: left;
  }

  .page-head .eyebrow {
    justify-content: flex-start;
    font-size: 8pt;
    letter-spacing: 0.1em;
  }

  /* The eyebrow's decorative leading dash is screen furniture. */
  .page-head .eyebrow::before { display: none; }

  .page-head p {
    margin: 6pt 0 0;
    max-width: none;
    font-size: 10.5pt;
    line-height: 1.45;
    text-align: left;
    color: #000;
  }

  .doc-meta {
    margin-top: 8pt;
    font-size: 9pt;
    color: #333;
  }

  .prose,
  .doc-body {
    max-width: none;
    margin: 0;
  }

  .doc-body { margin-top: 18pt; }

  /* The draft stamp only exists on paper, boxed so it cannot be skimmed past. */
  .print-only { display: block; }

  .doc-body .draft-stamp {
    margin-bottom: 16pt;
    padding: 8pt 10pt;
    border: 1.5pt solid #000;
    font-size: 10pt;
  }

  /* Screen line-height (1.5+) is airy for a contract read on paper; 1.35 keeps
     it legible while cutting several pages off the document. */
  .doc-body p,
  .doc-body li {
    margin-top: 7pt;
    font-size: 10pt;
    line-height: 1.35;
    color: #000;
    orphans: 3;
    widows: 3;
  }

  .doc-body ul { margin-top: 7pt; }
  .doc-body li { margin-top: 3pt; }

  /* Keep an article heading with the text it introduces. */
  .doc-body h3 {
    margin-top: 15pt;
    font-size: 11.5pt;
    break-after: avoid;
    page-break-after: avoid;
  }

  .doc-body .todo-line {
    border-left: 1.5pt solid #000;
    background: none;
  }

  /* Spell out link targets — a printed hyperlink is otherwise a dead end.
     The hrefs are site-relative, so prefix the domain to make them usable. */
  .doc-body a::after {
    content: " (themiros.com" attr(href) ")";
    font-size: 8.5pt;
    color: #444;
  }
}

/* ============================================================
   Motion preferences — kill everything that moves.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal { opacity: 1; transform: none; }

  /* The blanket rule above would fast-forward the drift to its -50% end
     state. Drop the animation instead and let the strip scroll by hand. */
  .marquee {
    animation: none !important;
    transform: none;
    max-width: 100%;
    overflow-x: auto;
  }
}
