/* Certium · Prism
   Design model: a white page under one light source at the top left, which follows the pointer.
   Glass panels are mostly clear. Colour appears only where light is split: a thin
   dispersed glint on the edge facing the light, and inside the prism itself. */

:root {
  --ink: #0b0d12;
  --ink-2: #3a4150;
  --ink-3: #5a6272;
  --paper: #ffffff;
  --paper-2: #f5f6f8;
  --hair: rgba(12, 16, 28, .08);
  --hair-2: rgba(12, 16, 28, .14);
  --accent: #3e5bff;

  /* highlighter marks; text colours pass 4.5:1 on white */
  --help: #0b7a3b;   --help-hl: #a6f0c0;
  --neutral: #1a5dc8; --neutral-hl: #c2dcff;
  --hurt: #c3243a;   --hurt-hl: #ffbfc6;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --display: "Unbounded", var(--font);

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.2, 1.3, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; translate: 0 -200%; transition: translate .2s var(--ease-out); }
.skip:focus { translate: 0 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* very faint coloured light far behind everything, so glass has something to bend */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: .14; animation: drift 38s ease-in-out infinite alternate; }
.ambient i:nth-child(1) { left: -14vmax; top: 30vh; background: #ffc3d6; }
.ambient i:nth-child(2) { right: -16vmax; top: 60vh; background: #bfe6ff; animation-delay: -12s; }
.ambient i:nth-child(3) { left: 30vw; bottom: -30vmax; background: #c9f5dc; animation-delay: -24s; }
@keyframes drift { to { transform: translate(8vmax, -10vmax) scale(1.15); } }

/* ───────────────────────── Glass ─────────────────────────
   --la  angle (deg) from a panel's centre toward the light
   --li  light strength at the panel
   --mx/--my  light position over the panel (for the soft sheen) */

.glass {
  position: relative;
  isolation: isolate;
  border-radius: 28px;
  background:
    radial-gradient(600px circle at var(--mx, 0%) var(--my, 0%), rgba(255,255,255,.75), rgba(255,255,255,0) 55%),
    rgba(255, 255, 255, .56);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.95),          /* top rim catches the light */
    inset 0 -1px 1px rgba(12,16,28,.035),           /* bottom rim in shade */
    inset 0 0 0 .5px rgba(255,255,255,.7),
    0 0 0 .5px rgba(12,16,28,.10),                  /* edge of the pane */
    0 1px 2px rgba(12,16,28,.04),
    0 30px 60px -30px rgba(20,28,60,.20);           /* lift */
}
/* the prism edge: a full spectrum runs all the way round the rim, and on the side
   facing the light it is split at full strength, like light leaving a prism */
.glass::before,
.btn::before,
.glass::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
  -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 exclude, linear-gradient(#000 0 0);
}
.glass::before,
.btn::before {
  padding: 1.25px;
  background:
    conic-gradient(from calc(var(--la, 315deg) - 75deg),
      transparent 0deg,
      #ff2d6f 18deg, #ff8a1f 36deg, #ffd21f 54deg, #22d36b 75deg, #12b8ff 96deg, #4f5bff 114deg, #b04dff 132deg,
      transparent 150deg 360deg),
    conic-gradient(from 200deg,
      rgba(255,45,111,.28), rgba(255,210,31,.28), rgba(34,211,107,.28), rgba(18,184,255,.28), rgba(176,77,255,.28), rgba(255,45,111,.28));
  opacity: calc(.4 + var(--li, .6) * .4);
}
/* the same split light, blurred: a soft glow bleeding off the bright side of the rim */
.glass::after {
  inset: -3px; padding: 6px; z-index: -1;
  background: conic-gradient(from calc(var(--la, 315deg) - 75deg),
    transparent 0deg,
    #ff2d6f 18deg, #ffd21f 54deg, #22d36b 75deg, #12b8ff 96deg, #b04dff 132deg,
    transparent 150deg 360deg);
  filter: blur(8px);
  opacity: calc(var(--li, .6) * .28);
}

@media (prefers-reduced-transparency: reduce) {
  .glass { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ambient { display: none; }
}

/* ───────────────────────── Type ───────────────────────── */

.display { font: 600 clamp(42px, 6.6vw, 92px)/1.0 var(--font); letter-spacing: -.045em; }
.h2 { font: 600 clamp(34px, 4.8vw, 64px)/1.04 var(--font); letter-spacing: -.04em; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.sec-head { text-align: center; max-width: 760px; margin-inline: auto; }
.sec-sub { margin: 22px auto 0; max-width: 54ch; font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-2); }

/* ───────────────────────── Buttons ───────────────────────── */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font: 500 15px/1 var(--font);
  text-decoration: none; cursor: pointer;
  transition: transform .4s var(--ease-spring), box-shadow .3s var(--ease-out), background-color .2s;
  box-shadow: 0 10px 24px -12px rgba(11,13,18,.55), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-glass { color: var(--ink); background: rgba(255,255,255,.56); }
.btn-glass.glass { border-radius: 999px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ───────────────────────── Header ───────────────────────── */

.site-header { position: fixed; inset: 12px 0 auto; z-index: 40; padding-inline: var(--gutter); pointer-events: none; transition: translate .35s var(--ease-out); }
/* hidden while scrolling down, back on scroll up (main.js) */
.site-header.is-hidden { translate: 0 calc(-100% - 16px); }
.bar {
  pointer-events: auto;
  max-width: var(--wrap); margin-inline: auto;
  height: 60px; padding: 0 10px 0 16px;
  display: flex; justify-content: space-between; align-items: center;
  border-radius: 999px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.logo { width: 26px; height: 26px; color: var(--ink); overflow: visible; }
.wordmark {
  position: absolute; left: 50%; translate: -50% 0;
  font: 400 21px/1 var(--display);
  letter-spacing: .34em; padding-left: .34em; text-transform: uppercase;
  text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.nav { position: relative; }
.nav-list a { white-space: nowrap; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 14px; color: var(--ink-2); text-decoration: none; border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.nav-list a:not(.btn):hover { color: var(--ink); background: rgba(12,16,28,.045); }
.nav-list .btn { margin-left: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform .3s var(--ease-out); }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }

@media (max-width: 1180px) {
  .wordmark { font-size: 16px; letter-spacing: .26em; padding-left: .26em; }
  .nav-toggle { display: grid; }
  .nav-list {
    position: absolute; right: 0; top: calc(100% + 12px);
    flex-direction: column; align-items: stretch; gap: 2px;
    min-width: 220px; padding: 10px; border-radius: 22px;
    background: rgba(255,255,255,.9);
    -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 0 0 .5px var(--hair-2), 0 30px 60px -30px rgba(20,28,60,.3);
    opacity: 0; visibility: hidden; translate: 0 -8px; scale: .98; transform-origin: top right;
    transition: opacity .2s, translate .3s var(--ease-out), scale .3s var(--ease-out), visibility 0s .3s;
  }
  .nav.open .nav-list { opacity: 1; visibility: visible; translate: 0 0; scale: 1; transition: opacity .2s, translate .4s var(--ease-spring), scale .4s var(--ease-spring); }
  .nav-list .btn { margin: 6px 0 0; }
}
@media (max-width: 420px) {
  .bar { padding-left: 12px; }
  .brand { font-size: 15px; gap: 8px; }
  .logo { width: 22px; height: 22px; }
  .wordmark { font-size: 14px; letter-spacing: .2em; padding-left: .2em; }
}

/* ───────────────────────── Hero ───────────────────────── */

.hero {
  position: relative;
  height: 100svh; min-height: 640px; max-height: 1100px;
  display: grid; grid-template-rows: auto 1fr auto;
  text-align: center;
  padding: calc(var(--header-h) + 44px) var(--gutter) 48px;
  overflow: hidden;
}
.hero-stage { position: absolute; inset: 0; z-index: -1; background: #fff; }
.hero-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.4s var(--ease-out); }
.hero-stage.ready canvas { opacity: 1; }
/* shown until WebGL is ready, or if it isn't available */
.hero-fallback { position: absolute; left: 50%; top: var(--beam-y, 60%); width: min(42vh, 60vw); translate: -50% -50%; transition: opacity .8s; }
.hero-fallback path { fill: rgba(255,255,255,.6); stroke: var(--ink); stroke-width: .8; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(12,16,28,.15)); }
.hero-stage.ready .hero-fallback { opacity: 0; }
/* the dispersed light the prism throws onto the page; hero.js turns it with the prism */
.hero-beam {
  position: absolute; left: 50%; top: var(--beam-y, 60%);
  width: 46vw; height: 70px; margin-top: -35px;
  transform-origin: 0 50%;
  rotate: var(--beam, 14deg);
  background: linear-gradient(180deg, transparent, rgba(255,61,110,.55) 22%, rgba(255,178,63,.5) 36%, rgba(47,214,123,.45) 50%, rgba(32,180,255,.5) 64%, rgba(138,91,255,.55) 78%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent 8%, #000 30%, transparent 100%);
  mask: linear-gradient(90deg, transparent 8%, #000 30%, transparent 100%);
  filter: blur(16px);
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity 2s var(--ease-out) .6s;
}
.hero-beam { display: none; }   /* rainbow light removed */

.hero-top { display: grid; justify-items: center; gap: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  background: rgba(255,255,255,.7);
  box-shadow: 0 0 0 .5px var(--hair-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* live beacon: a green light that glows and sends out rings */
.beacon {
  position: relative; flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px 1px rgba(34,197,94,.7);
  animation: beacon-glow 2s ease-in-out infinite;
}
.beacon::before, .beacon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(34,197,94,.75);
  animation: ping 2s cubic-bezier(.2, .6, .3, 1) infinite;
}
.beacon::after { animation-delay: 1s; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
@keyframes beacon-glow { 50% { background: #4ade80; box-shadow: 0 0 12px 3px rgba(34,197,94,.85); } }
.hero-bottom { grid-row: 3; display: grid; justify-items: center; gap: 26px; }
.lede { max-width: 40ch; font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ───────────────────────── Compare slider ───────────────────────── */

.compare { padding: clamp(96px, 12vw, 160px) 0 clamp(80px, 10vw, 140px); }
/* text on the left, a compact report card on the right */
.cmp-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.cmp-intro .h2 { font-size: clamp(34px, 4vw, 54px); }
.cmp-intro .sec-sub { margin-left: 0; }
.cmp-intro .tally { margin-top: 32px; }
.cmp-intro .note { margin-top: 14px; max-width: 46ch; }
.cmp-intro .aside { margin-top: 8px; text-align: left; max-width: 46ch; }
.cmp { justify-self: end; width: 100%; max-width: 580px; padding: 12px; border-radius: 26px; }
.cmp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 12px; }
.cmp-file { display: grid; gap: 2px; }
.file { font: 500 13px var(--mono); }
.file-sub { font: 400 11.5px var(--mono); color: var(--ink-3); }

.score { position: relative; width: 48px; height: 48px; flex: none; display: grid; place-items: center; }
.score svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.ring-track { fill: none; stroke: rgba(12,16,28,.07); stroke-width: 4; }
.ring { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.score-num { font: 600 16px/1 var(--font); letter-spacing: -.03em; }

.cmp-body {
  --pos: 50%;
  position: relative;
  display: grid;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 .5px var(--hair-2);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
}
.layer { grid-area: 1 / 1; padding: 38px 16px 16px; background: #fff; }
/* plain layer sits on top and is cut away to the right of the line */
.layer-plain { clip-path: inset(0 calc(100% - var(--pos)) 0 0); pointer-events: none; }
.layer-plain .badge, .layer-plain .keep { visibility: hidden; }
.layer-plain .ink { background: none !important; }

.lines { display: grid; gap: 1px; }
.line { position: relative; padding: 3px 50px 3px 4px; font-size: 13.5px; line-height: 1.45; border-radius: 8px; }
.line .ink {
  --hl: transparent;
  padding: .06em .32em; margin: 0 -.32em;
  border-radius: .3em .7em .35em .8em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background-image: linear-gradient(100deg, transparent .4%, var(--hl) 1.6%, color-mix(in srgb, var(--hl) 80%, transparent) 50%, var(--hl) 97.5%, transparent 99.5%);
  background-repeat: no-repeat; background-position: 0 72%; background-size: 100% 78%;
  transition: background-size .3s var(--ease-out);
}
.line[data-kind="help"] .ink { --hl: var(--help-hl); }
.line[data-kind="neutral"] .ink { --hl: var(--neutral-hl); }
.line[data-kind="hurt"] .ink { --hl: var(--hurt-hl); }
.layer-marked .line { cursor: help; }
.layer-marked .line.active .ink { background-size: 100% 96%; }

/* compact score chip in the right-hand gutter: the colour says helps / neutral / hurts, the number says how much */
.badge {
  position: absolute; right: 0; top: 4px;
  display: inline-flex; align-items: center; gap: 4px;
  min-width: 40px; padding: 0 7px 0 5px; border-radius: 999px;
  font: 500 10.5px/1.6 var(--mono);
  background: #fff; box-shadow: inset 0 0 0 1px currentColor;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge b { font-weight: 500; color: var(--ink); }
.line[data-kind="help"] .badge { color: var(--help); }
.line[data-kind="neutral"] .badge { color: var(--neutral); }
.line[data-kind="hurt"] .badge { color: var(--hurt); }
.keep { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 0 5px; border-radius: 5px; font: 500 9.5px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--hair-2); vertical-align: 1px; }
.keep svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* the dividing line is a prism edge: one beam of light, split */
.cmp-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, #ff3d6e, #ffb23f 25%, #2fd67b 50%, #20b4ff 75%, #8a5bff);
  box-shadow: 0 0 18px rgba(62,91,255,.35);
  pointer-events: none;
}
.cmp-knob {
  position: absolute; top: 50%; left: var(--pos);
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; padding: 0;
  color: var(--ink); cursor: grab; touch-action: none;
  background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(10px) saturate(180%); backdrop-filter: blur(10px) saturate(180%);
  box-shadow: inset 0 1px 1px #fff, inset 0 0 0 .5px rgba(255,255,255,.8), 0 0 0 .5px rgba(12,16,28,.14), 0 10px 26px -8px rgba(20,28,60,.35);
  transition: scale .35s var(--ease-spring);
}
.cmp-knob svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cmp-knob:hover { scale: 1.06; }
.cmp-body.dragging .cmp-knob { scale: 1.12; cursor: grabbing; }
.cmp-tag {
  position: absolute; top: 9px; padding: 3px 8px; border-radius: 999px;
  font: 500 9.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  background: rgba(255,255,255,.85); box-shadow: 0 0 0 .5px var(--hair-2);
  pointer-events: none; transition: opacity .3s;
}
.tag-left { left: 10px; }
.tag-right { right: 10px; color: var(--ink); }

.tally { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 12px var(--mono); color: var(--ink-2); }
.tally span { display: inline-flex; align-items: center; gap: 6px; }
.tally i { width: 14px; height: 8px; border-radius: 3px; }
.t-help i { background: var(--help-hl); box-shadow: inset 0 0 0 1px var(--help); }
.t-neutral i { background: var(--neutral-hl); box-shadow: inset 0 0 0 1px var(--neutral); }
.t-hurt i { background: var(--hurt-hl); box-shadow: inset 0 0 0 1px var(--hurt); }
.tally b { font-weight: 500; color: var(--ink); }
.note { font-size: 13px; color: var(--ink-3); }
.aside { font-size: 13px; color: var(--ink-3); }

/* tooltip */
.tip {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: min(330px, calc(100vw - 32px));
  padding: 16px 16px 14px; border-radius: 22px;
  background: rgba(255,255,255,.82);
  pointer-events: none;
  opacity: 0; translate: 0 8px; scale: .97;
  transition: opacity .18s, scale .35s var(--ease-spring), translate .35s var(--ease-spring);
}
.tip.show { opacity: 1; scale: 1; translate: 0 0; }
.tip-k { display: flex; justify-content: space-between; align-items: baseline; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tip-k span:last-child { color: var(--ink-3); }
.tip-k.help { color: var(--help); } .tip-k.neutral { color: var(--neutral); } .tip-k.hurt { color: var(--hurt); }
.tip-big { margin: 8px 0 2px; font: 600 30px/1 var(--font); letter-spacing: -.03em; }
.tip-big small { font: 500 12px var(--mono); color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }
.tip p { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.tip-bar { position: relative; height: 40px; margin-top: 16px; }
.tip-bar .track { position: absolute; left: 0; right: 0; top: 12px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--hurt-hl) 0 50%, #ffe7a8 50% 75%, var(--help-hl) 75%); }
.tip-bar .span { position: absolute; top: 11px; height: 4px; border-radius: 3px; }
.tip-bar .dot { position: absolute; top: 7px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.tip-bar .dot.without { box-shadow: 0 0 0 1.5px currentColor; }
.tip-bar .lbl { position: absolute; top: -6px; font: 500 9.5px var(--mono); color: var(--ink-3); translate: -50% 0; white-space: nowrap; }
.tip-bar .lbl.below { top: 24px; color: currentColor; }
.tip-note { font: 500 11px var(--mono); color: var(--ink-3); margin-top: 8px; }

@media (max-width: 900px) {
  .cmp-grid { grid-template-columns: 1fr; }
  .cmp { justify-self: center; }
}
@media (max-width: 640px) {
  .cmp { padding: 8px; border-radius: 22px; }
  .layer { padding: 36px 12px 14px; }
}

/* ───────────────────────── Why Prism: one lead card, three supporting ───────────────────────── */

.why { padding: clamp(60px, 8vw, 100px) 0 clamp(80px, 10vw, 140px); }
.why .eyebrow { font-size: 15px; letter-spacing: .16em; margin-bottom: 22px; color: var(--ink-2); }
/* bento: the lead card on the left, three compact supporting cards stacked beside it */
.cards { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; }

/* supporting cards: an icon tile on the left, the words beside it */
.card { padding: 22px 24px; border-radius: 24px; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; align-content: center; }
.card > :not(.card-ico) { grid-column: 2; }
.card-ico {
  grid-row: 1 / span 3; align-self: start;
  width: 52px; height: 52px; padding: 12px; border-radius: 15px;
  background: linear-gradient(160deg, #ffffff, #eef1f6);
  box-shadow: inset 0 0 0 .5px var(--hair-2), 0 6px 14px -8px rgba(20,28,60,.25);
  fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.card-k { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.card { grid-template-columns: 52px minmax(0, 1fr) auto; }
.card > .card-num { grid-column: 3; grid-row: 1 / span 3; align-self: center; padding-left: 12px; text-align: right; font: 600 42px/1 var(--font); letter-spacing: -.045em; }
.card-num small { display: block; margin-top: 8px; font: 500 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.shine { font-style: normal; }
.card h3 { font: 600 20px/1.15 var(--font); letter-spacing: -.025em; }
.card p { font-size: 14.5px; color: var(--ink-2); }

/* the lead card: slow coloured light drifts inside it, seen through a frosted glass sheet */
.card-main {
  grid-column: 1; grid-row: 1 / span 3;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 440px;
  padding: 22px;
  background:
    radial-gradient(600px circle at var(--mx, 0%) var(--my, 0%), rgba(255,255,255,1), rgba(255,255,255,0) 55%),
    rgba(255,255,255,.86);
  box-shadow:
    inset 0 1px 1px #fff,
    0 0 0 .5px rgba(12,16,28,.10),
    0 1px 2px rgba(12,16,28,.04),
    0 50px 90px -40px rgba(62,91,255,.16),
    0 30px 60px -34px rgba(20,28,60,.12);
}
.card-main::before {
  padding: 1.5px;
  background: conic-gradient(from var(--la, 315deg), #ff2d6f, #ff8a1f, #ffd21f, #22d36b, #12b8ff, #4f5bff, #b04dff, #ff2d6f);
  opacity: .6;
}
/* the light behind the glass: cool, pale tints from the page's own blue, drifting very slowly */
.aurora { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; filter: blur(50px); opacity: .55; animation: aurora 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { left: -12%; top: -18%; background: #cdd6ff; }
.aurora i:nth-child(2) { right: -14%; top: -6%; background: #d6ecff; animation-duration: 26s; animation-delay: -8s; }
.aurora i:nth-child(3) { left: 22%; top: 18%; background: #e2ddff; animation-duration: 30s; animation-delay: -14s; }
.aurora i:nth-child(4) { right: 4%; bottom: -24%; background: #e9edf5; animation-duration: 24s; animation-delay: -4s; }
@keyframes aurora { to { transform: translate(10%, 8%) scale(1.12); } }

/* the label: a quiet line of small type with a dot, no pill */
.card-main .card-k {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 4px;
  font-size: 10.5px;
  color: var(--ink-3);
}
.card-main .card-k::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .8; }

/* the frosted sheet: the words, with the colour blurred softly through it */
.main-sheet {
  margin-top: auto;
  display: grid; gap: 14px;
  padding: 28px 28px 26px;
  border-radius: 20px;
  background: rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,1),
    inset 0 0 0 .5px rgba(255,255,255,.85),
    0 0 0 .5px rgba(12,16,28,.07),
    0 24px 44px -26px rgba(20,28,60,.3);
}
.card-main h3 { font-size: clamp(30px, 3vw, 42px); line-height: 1.04; letter-spacing: -.04em; }
.card-main h3 span { display: block; color: var(--ink-3); }
.card-main p { font-size: 16px; max-width: 42ch; }
.card-main .main-tag { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--hair-2); font-weight: 600; font-size: 16px; color: var(--ink); }

@media (prefers-reduced-transparency: reduce) {
  .main-sheet, .card-main .card-k { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* entrance, the first time the cards come into view (main.js adds .armed, then .in):
   the lead card slides in from the left, the others from the right; then a band of
   split light passes across the lead line and the numbers, every 15 seconds */
.cards.armed .card { opacity: 0; translate: 72px 0; transition: opacity .7s var(--ease-out), translate 1.1s var(--ease-spring); }
.cards.armed .card-main { translate: -72px 0; }
.cards.armed .card:nth-child(3) { transition-delay: .1s; }
.cards.armed .card:nth-child(4) { transition-delay: .2s; }
.cards.armed.in .card { opacity: 1; translate: 0 0; }
.cards.in .shine {
  background: linear-gradient(100deg, var(--ink) 0 40%, #ff2d6f 44%, #ff8a1f 46.5%, #ffd21f 49%, #22d36b 51.5%, #12b8ff 54%, #4f5bff 56.5%, #b04dff 59%, var(--ink) 63% 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  /* a slow 3-second sweep, then a rest, repeating every 15 seconds */
  animation: shine 15s linear var(--sd, .8s) infinite;
}
@keyframes shine {
  0% { background-position: 100% 0; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  20%, 100% { background-position: 0 0; }
}

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .card-main { grid-row: auto; order: -1; }
}
@media (max-width: 480px) {
  .card { grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 14px; padding: 20px; }
  .card-ico { width: 44px; height: 44px; padding: 10px; border-radius: 13px; }
  .card > .card-num { font-size: 30px; padding-left: 4px; }
  .card-num small { font-size: 9px; }
}

/* ───────────────────────── Closing ───────────────────────── */

.closing { padding: clamp(60px, 10vw, 130px) 0 clamp(96px, 12vw, 150px); text-align: center; }
.outline-type { width: 100%; height: auto; overflow: visible; }
.outline-type text {
  font: 400 70px var(--display);
  fill: rgba(11,13,18,.035); stroke: url(#type-light); stroke-width: 1.2;
}
.closing-lede { margin: 28px auto 0; max-width: 44ch; font-size: 18px; color: var(--ink-2); }
.closing-cta { margin-top: 32px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ───────────────────────── Footer ───────────────────────── */

.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--hair); background: linear-gradient(rgba(255,255,255,0), var(--paper-2)); }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: start; }
.foot-brand { display: flex; gap: 18px; align-items: center; }
.logo-lg { width: 52px; height: 52px; }
.foot-name { font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.foot-tag { margin-top: 4px; color: var(--ink-3); font-size: 14.5px; max-width: 36ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot-links a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; color: var(--ink-2); font-size: 15px; }
.foot-links a:hover { color: var(--ink); }
.legal { margin-top: 32px; font: 400 12.5px var(--mono); color: var(--ink-3); }

/* ───────────────────────── Reveal ───────────────────────── */

[data-reveal] { opacity: 0; translate: 0 30px; transition: opacity .9s var(--ease-out) var(--d, 0s), translate 1.1s var(--ease-spring) var(--d, 0s); }
[data-reveal].in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; translate: none; }
}

/* ───────────────────────── Line statuses (from the Prism API) ─────────────────────────
   red = measured problem, yellow = possible issue, orange = hidden risk,
   green = adds confidence, neutral = no meaningful effect (no highlight), kept = kept by the user */

:root {
  --orange: #b4530a; --orange-hl: #ffd3a6;
  --yellow: #876800; --yellow-hl: #fff0a3;
  --kept-hl: #e6e9ef;
}
.line[data-status="green"] .ink { --hl: var(--help-hl); }
.line[data-status="red"] .ink { --hl: var(--hurt-hl); }
.line[data-status="orange"] .ink { --hl: var(--orange-hl); }
.line[data-status="yellow"] .ink { --hl: var(--yellow-hl); }
.line[data-status="kept"] .ink { --hl: var(--kept-hl); }
.line[data-status="green"] .badge, .st-green { color: var(--help); }
.line[data-status="red"] .badge, .st-red { color: var(--hurt); }
.line[data-status="orange"] .badge, .st-orange { color: var(--orange); }
.line[data-status="yellow"] .badge, .st-yellow { color: var(--yellow); }
.line[data-status="neutral"] .badge, .line[data-status="kept"] .badge, .st-neutral, .st-kept { color: var(--ink-3); }

button.btn { border: 0; }

/* ───────────────────────── Prism Loop (home) ───────────────────────── */

.loop { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 120px); }
.loop-row {
  margin-top: 56px;
  display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: stretch; gap: 14px;
}
.loop-card { padding: 14px 14px 16px; border-radius: 24px; }
.loop-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 4px 6px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--hair); }
.loop-card .lines { padding: 0 4px; gap: 4px; }
.loop-card .line { font-size: 13px; padding-right: 62px; }
.loop-arrow { align-self: center; width: 28px; height: 28px; fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.loop-line { margin-top: 48px; text-align: center; font: 600 clamp(22px, 2.4vw, 30px)/1.2 var(--font); letter-spacing: -.03em; }
.loop-aside { margin-top: 10px; text-align: center; }
@media (max-width: 1000px) {
  .loop-row { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .loop-card { width: 100%; max-width: 580px; }
  .loop-arrow { rotate: 90deg; }
}

/* ───────────────────────── Login window ───────────────────────── */

.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--gutter); }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(245,246,248,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal-card { width: min(380px, 100%); padding: 30px 28px 28px; border-radius: 28px; display: grid; gap: 14px; background: rgba(255,255,255,.88); }
.modal-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); cursor: pointer; }
.modal-x:hover { color: var(--ink); background: rgba(12,16,28,.045); }
.modal-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.modal-logo { width: 34px; height: 34px; }
.modal-title { margin-top: 6px; font: 600 26px/1.1 var(--font); letter-spacing: -.03em; }
.modal-sub { margin-top: -6px; font-size: 14.5px; color: var(--ink-3); }
.modal-submit { margin-top: 6px; width: 100%; }

.field { display: grid; gap: 6px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.field input, .input {
  width: 100%; min-height: 46px; padding: 11px 14px;
  font: 400 15px/1.4 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink);
  border: 0; border-radius: 14px; background: rgba(255,255,255,.92);
  box-shadow: inset 0 0 0 1px var(--hair-2);
}
.field input:focus-visible, .input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-error { font-size: 13.5px; color: var(--hurt); }

/* ───────────────────────── App (logged in) ───────────────────────── */

.app-main { min-height: 100svh; padding: calc(var(--header-h) + 44px) 0 80px; }
.app-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.app-title { font-size: clamp(32px, 3.8vw, 48px); }
.app-sub { margin-top: 12px; max-width: 58ch; font-size: 16px; color: var(--ink-2); }

.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; }
.tab { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font: 500 14px var(--font); color: var(--ink-2); cursor: pointer; transition: background-color .2s, color .2s; }
.tab:hover { color: var(--ink); background: rgba(12,16,28,.045); }
.tab[aria-selected="true"] { color: #fff; background: var(--ink); }

.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.pane { padding: 14px; border-radius: 26px; display: grid; gap: 12px; }
.pane-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 2px 6px 0; }
.pane-title { display: grid; gap: 2px; }
.pane-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 0 4px 4px; }
.hint { font-size: 12.5px; color: var(--ink-3); }

.prompt-input {
  width: 100%; min-height: 440px; resize: vertical;
  padding: 16px; border: 0; border-radius: 16px;
  font: 400 14.5px/1.6 var(--font); color: var(--ink);
  background: #fff; box-shadow: inset 0 0 0 .5px var(--hair-2);
}
.prompt-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.loop-input { min-height: 220px; }

.result {
  min-height: 440px; max-height: 72vh; overflow: auto;
  padding: 14px 16px; border-radius: 16px;
  background: #fff; box-shadow: inset 0 0 0 .5px var(--hair-2);
}
.result .lines { gap: 4px; }
.result .line, .dual .line { padding-right: 70px; font-size: 14px; cursor: help; }
.empty { min-height: 400px; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; font-size: 14.5px; color: var(--ink-3); }
.empty svg { width: 34px; height: 34px; color: var(--ink-3); opacity: .6; }
.busy { min-height: 400px; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; }
.busy-text { font: 500 13px var(--mono); letter-spacing: .04em; color: var(--ink-2); }
.busy-sub { font-size: 13px; color: var(--ink-3); }
.alert { display: grid; gap: 10px; justify-items: start; padding: 14px 16px; border-radius: 14px; font-size: 14px; color: var(--hurt); background: #fff5f6; box-shadow: inset 0 0 0 1px rgba(195,36,58,.18); }
.alert.info { color: var(--ink-2); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--hair-2); }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0 6px; font: 500 12px var(--mono); color: var(--ink-2); }
.chips-row span { display: inline-flex; align-items: center; gap: 6px; }
.chips-row i { width: 14px; height: 8px; border-radius: 3px; box-shadow: inset 0 0 0 1px currentColor; }
.chips-row b { font-weight: 500; color: var(--ink); }
.sw-green { color: var(--help); } .sw-green i { background: var(--help-hl); }
.sw-red { color: var(--hurt); } .sw-red i { background: var(--hurt-hl); }
.sw-orange { color: var(--orange); } .sw-orange i { background: var(--orange-hl); }
.sw-yellow { color: var(--yellow); } .sw-yellow i { background: var(--yellow-hl); }
.sw-neutral { color: var(--ink-3); } .sw-neutral i { background: #fff; }
.sw-kept { color: var(--ink-3); } .sw-kept i { background: var(--kept-hl); }
.chips-row .sw-label { color: var(--ink-2); }

.rewritten { display: inline-flex; margin-left: 8px; padding: 0 6px; border-radius: 5px; font: 500 9.5px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); box-shadow: inset 0 0 0 1px rgba(62,91,255,.35); vertical-align: 1px; }

/* Prism Loop: results */
.loop-setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 14px; align-items: start; }
.loop-side { display: grid; gap: 14px; }
.stats { margin-top: 18px; padding: 18px 20px; border-radius: 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 18px; align-items: center; }
.stat small { display: block; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.stat b { display: block; margin-top: 6px; font: 600 26px/1 var(--font); letter-spacing: -.04em; }
.stat b.gain { color: var(--help); }
.stats-note { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }

.dual-pane { margin-top: 18px; }
.dual { max-height: 72vh; overflow: auto; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 .5px var(--hair-2); }
.dual-head, .dual-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dual-head {
  position: sticky; top: 0; z-index: 2;
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair-2);
}
.dual-head > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 16px; }
.dual-head > div + div, .dual-row > .line + .line { border-left: 1px solid var(--hair); }
.dual-row { border-bottom: 1px solid var(--hair); }
.dual-row:last-child { border-bottom: 0; }
.dual-row > .line { padding: 10px 76px 10px 14px; border-radius: 0; }
.dual-row .badge { right: 12px; top: 11px; }

@media (max-width: 1000px) {
  .app-grid, .loop-setup { grid-template-columns: minmax(0, 1fr); }
  .prompt-input { min-height: 260px; }
  .result, .empty, .busy { min-height: 260px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .result .line, .dual-row > .line { padding: 24px 10px 8px; font-size: 13.5px; }
  .result .line .badge { left: 0; right: auto; top: 0; }
  .dual-row .badge { left: 10px; right: auto; top: 4px; }
  .dual-head > div { flex-direction: column; gap: 2px; padding: 10px; }
}
#loop-status > .result { margin-top: 18px; min-height: 0; }
#loop-status .busy { min-height: 240px; }
@media (max-width: 1000px) { #ls-copy { grid-column: 1 / -1; justify-self: start; white-space: nowrap; } }

/* unit explanation in the app panes */
.unit-note { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; font-size: 13px; line-height: 1.5; color: var(--ink-2); background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 .5px var(--hair-2); }
.unit-note b { font-weight: 600; color: var(--ink); }
.unit-mark { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; font: 600 12px var(--mono); color: var(--accent); background: rgba(62,91,255,.08); box-shadow: inset 0 0 0 1px rgba(62,91,255,.2); }

/* ───────────────────────── Research (home) ─────────────────────────
   One glass panel, three rows: who published it, what it found, a link. */

.research { padding: clamp(64px, 9vw, 120px) 0 0; }
.rs-title { max-width: 1100px; margin-inline: auto; text-align: center; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; }
.rs-title em { font-style: normal; color: var(--accent); }
.rs-list { max-width: 900px; margin: 40px auto 0; padding: 6px 22px; border-radius: 24px; }
.rs-row {
  display: grid; grid-template-columns: 34px 190px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 16px 0;
}
.rs-row + .rs-row { border-top: 1px solid var(--hair); }
.rs-ico {
  width: 34px; height: 34px; padding: 8px; border-radius: 10px;
  background: linear-gradient(160deg, #fff, #eef1f6); box-shadow: inset 0 0 0 .5px var(--hair-2);
  fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.rs-who { display: grid; gap: 2px; }
.rs-who b { font: 600 14.5px/1.2 var(--font); letter-spacing: -.01em; }
.rs-who span { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); letter-spacing: .06em; color: var(--ink-3); }
.rs-who span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #d9a62a; }  /* the one warm mark */
.rs-what { font-size: 15.5px; color: var(--ink-2); }
.rs-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  font: 500 13.5px var(--font); color: var(--ink); text-decoration: none; white-space: nowrap;
  background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px var(--hair-2);
  transition: box-shadow .3s var(--ease-out), color .3s;
}
.rs-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.rs-link:hover { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(62,91,255,.35), 0 0 0 4px rgba(62,91,255,.08); }
.rs-link:hover svg { transform: translate(2px, -2px); }
.rs-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) {
  .rs-list { padding: 4px 16px; }
  .rs-row { grid-template-columns: 34px minmax(0, 1fr) auto; row-gap: 8px; }
  .rs-what { grid-column: 1 / -1; font-size: 15px; }
  .rs-link { grid-column: 3; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { .rs-link:hover svg { transform: none; } }
