/* Prism landing page, "Refraction": the 8unicorns.com system. A dark ink page where the spectrum
   appears only as light, and one paper section (request access) where the light lands. See DESIGN.md.
   Rules this file keeps: animate only transform, opacity, translate, scale and rotate; nothing loops
   on a timer (continuous motion follows scroll or the pointer); containers that trim glows use
   overflow: clip after a hidden fallback; reduced motion turns motion into fades and final states.
   Classes on <html>: js (script on), m or rm (motion allowed or reduced), sdt (CSS scroll timelines
   supported), mo or ro (main.js is running, so content may wait for its entrance). Anything hidden
   before its entrance is gated on mo or ro, so a page whose script failed still shows everything. */

@font-face { font-family: "Montserrat Fallback"; src: local("Arial"); size-adjust: 112%; ascent-override: 86%; descent-override: 22%; line-gap-override: 0%; }

:root {
  /* Ink, the page */
  --ink-0: #0D0C14;
  --ink-1: #16141F;
  --ink-2: #1E1C2A;
  --rule: #2F2C3F;
  --edge: #7A7694;
  /* Text on ink */
  --text: #F2F0F8;
  --text-2: #B9B5CC;
  --text-3: #9590AE;
  /* Bright: text and lines on ink */
  --lav: #C8AAFF;
  --sky: #60B8F0;
  --mint: #4DDEC8;
  --vio: #CC88F0;
  /* Base: fills behind ink text */
  --lav-b: #B8A8F0;
  --sky-b: #6AAEE8;
  --mint-b: #5ECFC0;
  --vio-b: #C084E8;
  /* Deep: text and lines on paper */
  --deep-lav: #6446D9;
  --deep-sky: #236AA8;
  --deep-teal: #0F766E;
  --deep-vio: #8A45C8;
  /* Paper: the request-access section only */
  --paper: #EFEBE3;
  --paper-text: #0D0C14;
  --paper-text-2: #4A4760;
  --paper-rule: #D6D0C4;
  --error: #B3261E;
  --spectrum: linear-gradient(90deg, #B8A8F0, #6AAEE8 33%, #5ECFC0 66%, #C084E8);
  /* Read statuses on ink: met is lit mint, partly met sky, not met violet (the spectrum's warmest stop).
     The words Met, Partly met, and Not met always sit beside the colour. */
  --met: var(--mint);
  --part: var(--sky);
  --miss: var(--vio);
  --sans: "Montserrat", "Montserrat Fallback", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --gutter: clamp(16px, 4.4vw, 64px);
  --gap: 16px;
  /* Section padding: neighbouring sections are always two --sec-pad apart (158px, or 76px at 700px and below). */
  --sec-pad: 79px;
  --hdr-h: 72px;
}
@media (max-width: 700px) { :root { --sec-pad: 38px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  color-scheme: dark; background: var(--ink-0); scroll-padding-top: 88px;
  scrollbar-color: #4A4563 var(--ink-0); accent-color: var(--deep-lav); caret-color: var(--mint);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--ink-0); color: var(--text-2);
  font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* Film grain: one fixed layer, never animated. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}
@media (forced-colors: active), (prefers-contrast: more) { body::after { display: none; } }
::selection { background: var(--lav); color: var(--ink-0); }
h1, h2, h3, h4 { margin: 0; color: var(--text); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.readout, .fig, .num, .amt, .hout-fig { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[data-dup] { user-select: none; }
/* Small labels and numbers: tags, chips, captions, step and plan labels. */
.ui-label { font-family: var(--sans); font-weight: 600; font-size: .8125rem; letter-spacing: .01em; line-height: 1.5; }
.accent { font-family: var(--sans); font-style: normal; font-weight: 300; text-transform: none; letter-spacing: -0.02em; }
.label { color: var(--text-3); }
.unit { font-size: max(.5em, .75rem); font-weight: 400; letter-spacing: 0; color: var(--c, var(--text-2)); margin-left: .04em; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--text); color: var(--ink-0); font: 600 .9375rem var(--sans); text-decoration: none; }
.skip:focus { top: 12px; }

/* Layout: one container, a 4, 8, and 12 column grid, and a rail for section labels. */
.wrap { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; }
.grid12 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
@media (min-width: 768px) { .grid12 { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid12 { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.sec { padding-block: var(--sec-pad); position: relative; }
.railed > .rail, .railed > .content { grid-column: 1 / -1; }
.railed > .content { display: grid; grid-template-columns: subgrid; align-content: start; }
.content > * { grid-column: 1 / -1; }
/* Section labels use the body text style. */
.kicker, .kick { font: 400 1.0625rem/1.65 var(--sans); color: var(--text-2); }
/* The section label sits above its heading at every width, so each section's content spans the full
   grid and the page stays centred, with the same left edge as the header and the hero. */
.rail .kicker { margin-bottom: 18px; }
.shead { margin-bottom: clamp(56px, 6vw, 96px); max-width: 60rem; }
.shead h2, .paper-side h2 {
  font: 800 clamp(2.25rem, calc(1.2rem + 4.2vw), 4.75rem)/.95 var(--sans); letter-spacing: -0.03em; text-transform: uppercase;
}
.shead .lead { margin-top: 32px; }
.lead { font-size: clamp(1.125rem, calc(1rem + .45vw), 1.375rem); line-height: 1.55; color: var(--text-2); max-width: 52ch; }
h2 .accent { letter-spacing: -0.03em; color: var(--ac, var(--lav)); }

/* Heading masks: each word rises from its own clipped line. */
.split .w { display: inline-block; overflow: hidden; overflow: visible clip; padding-block: .08em .16em; margin-block: -.08em -.16em; vertical-align: top; }
.split .w > span { display: inline-block; }
.mo .split:not(.in) .w > span { translate: 0 105%; }
.m .split .w > span { transition: translate 800ms var(--ease-out) calc(var(--i, 0) * 60ms); }
.ro .split:not(.in) .w > span { opacity: 0; }
.rm .split .w > span { transition: opacity 400ms; }

/* Buttons: a light pill for actions, an outline pill beside it, text links otherwise.
   Labels roll on hover with fine pointers. */
.pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 44px; padding: 0 20px;
  border: 0; border-radius: 999px; background: var(--text); color: var(--ink-0); text-decoration: none;
  font: 600 .9375rem/1 var(--sans); white-space: nowrap; cursor: pointer; overflow: hidden; overflow: clip;
  transition: scale 120ms var(--ease-out);
}
.pill:active { scale: .97; }
.pill-lg { height: 56px; padding: 0 26px; font-size: 1rem; }
.pill-line { background: transparent; color: var(--text); border: 1px solid var(--edge); }
.pill-line:hover { background: var(--ink-2); }
.roll { display: inline-grid; overflow: hidden; overflow: clip; line-height: 1.25; }
.roll > span { grid-area: 1 / 1; transition: translate 280ms var(--ease-out); }
.roll > span + span { translate: 0 105%; }
.arrow { position: relative; display: inline-block; flex: none; width: 16px; height: 16px; overflow: hidden; overflow: clip; }
.arrow svg { position: absolute; inset: 0; width: 16px; height: 16px; transition: translate 280ms var(--ease-out); }
.arrow svg + svg { translate: -110% 110%; }
@media (hover: hover) and (pointer: fine) {
  a:hover > .roll > span:first-child, button:hover > .roll > span:first-child { translate: 0 -105%; }
  a:hover > .roll > span + span, button:hover > .roll > span + span { translate: 0 0; }
  a:hover .arrow svg:first-child, button:hover .arrow svg:first-child { translate: 110% -110%; }
  a:hover .arrow svg + svg, button:hover .arrow svg + svg { translate: 0 0; }
}
.tlink { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font: 600 .9375rem var(--sans); }
.tlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; scale: 0 1; transform-origin: left; transition: scale 280ms var(--ease-out); }
.tlink:hover::after, .tlink:focus-visible::after { scale: 1 1; }

/* Header: fixed, frosted once the hero scrolls away, with a spectrum progress line. */
.hdr { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hdr-h); }
.hdr::before {
  content: ""; position: absolute; inset: 0; background: rgba(13, 12, 20, .86);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule); opacity: 0; transition: opacity 240ms;
}
.hdr.stuck::before, .hdr.open::before { opacity: 1; }
.hdr-in { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* The wordmark: "8Unicorns" in heavy capitals, "Prism" in Light, Bright Sky, on the same baseline. */
.brand { display: inline-block; line-height: 44px; white-space: nowrap; text-decoration: none; color: var(--text); }
.wordmark { font: 800 1.125rem/1 var(--sans); letter-spacing: -0.025em; text-transform: uppercase; }
.product { margin-left: .3em; color: var(--sky); font: 300 1.1875rem/1 var(--sans); letter-spacing: -0.01em; }
.nav { position: relative; display: none; align-items: center; gap: 32px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; font: 600 .9375rem var(--sans); }
.nav a[aria-current="true"], .nav a:hover { color: var(--text); }
.nav-ind { position: absolute; left: 0; bottom: 6px; width: 100px; height: 2px; background: var(--spectrum); transform-origin: 0 50%; opacity: 0; transition: transform 320ms var(--ease-io), opacity 200ms; pointer-events: none; }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--edge); background: transparent; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; padding: 0; }
.menu-btn span { width: 16px; height: 1.6px; border-radius: 2px; background: var(--text); transition: translate 280ms var(--ease-out), rotate 280ms var(--ease-out); }
.menu-btn[aria-expanded="true"] span:first-child { translate: 0 3.3px; rotate: 45deg; }
.menu-btn[aria-expanded="true"] span:last-child { translate: 0 -3.3px; rotate: -45deg; }
html:not(.js) .menu-btn { display: none; }
@media (min-width: 1024px) { .nav { display: flex; } .menu-btn { display: none; } }
/* Narrow phones: the wordmark, the light pill, and the menu button share one row. */
@media (max-width: 420px) {
  .hdr-in { gap: 8px; }
  .hdr-actions { gap: 8px; }
  .hdr-actions .pill { padding: 0 10px; font-size: .875rem; }
  .wordmark { font-size: 1rem; }
  .product { margin-left: .25em; font-size: 1.0625rem; }
}
@media (max-width: 359px) { .product { display: none; } }
.hdr-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--spectrum); transform-origin: 0 50%; display: none; }
.m.sdt .hdr-progress { display: block; animation: grow-x linear both; animation-timeline: scroll(root); }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Menu: a full-screen sheet below 1024px. */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink-0); padding: calc(var(--hdr-h) + 32px) var(--gutter) 32px;
  display: none; align-content: start; opacity: 0; translate: 0 -24px; overflow-y: auto;
  transition: opacity 240ms, translate 240ms var(--ease-drawer), display 240ms allow-discrete;
}
.menu.open { display: grid; opacity: 1; translate: 0 0; transition-duration: 420ms; }
@starting-style { .menu.open { opacity: 0; translate: 0 -24px; } }
.rm .menu { translate: none; }
.menu-links { display: grid; gap: 4px; }
.menu-links a { display: block; overflow: hidden; overflow: clip; padding: 6px 0; color: var(--text); text-decoration: none; font: 800 clamp(2rem, 9vw, 2.5rem)/1.05 var(--sans); text-transform: uppercase; letter-spacing: -0.03em; }
.menu-links a span { display: inline-block; transition: translate 600ms var(--ease-out) calc(var(--i) * 40ms); }
@starting-style { .m .menu.open .menu-links a span { translate: 0 105%; } }
@media (min-width: 1024px) { .menu { display: none !important; } }

/* Hero */
.hero { position: relative; padding-top: var(--hdr-h); overflow: hidden; overflow: clip; }
.hero-sentinel { position: absolute; top: 80px; left: 0; width: 1px; height: 1px; }
.hero-in { row-gap: 56px; padding-block: 56px var(--sec-pad); align-items: center; }
.hero-copy, .hero-fig { grid-column: 1 / -1; }
@media (min-width: 1024px) { .hero-copy { grid-column: 1 / 8; } .hero-fig { grid-column: 8 / 13; } }
@media (min-width: 1200px) { .hero-copy { grid-column: 1 / 7; } .hero-fig { grid-column: 7 / 13; } }
/* Side by side, the drawing keeps a clear gutter from the copy. */
@media (min-width: 1024px) { .hero-fig { padding-left: clamp(24px, 3vw, 48px); } }
.hero h1 { margin-top: 24px; color: var(--text); }
.hero h1 .l1 { display: block; font: 800 clamp(2.5rem, calc(1rem + 5.6vw), 6rem)/.92 var(--sans); letter-spacing: -0.035em; text-transform: uppercase; }
.hero h1 .l2 { display: block; margin-top: .1em; font-size: clamp(2.5rem, 6.3vw, 5.75rem); line-height: 1; letter-spacing: -0.035em; color: var(--lav); }
.hw { display: inline-block; }
.m .hw { animation: settle 640ms var(--ease-out) both; animation-delay: calc(var(--i) * 50ms); }
@keyframes settle { from { translate: 0 .18em; } }
.hero .lead { margin-top: 32px; }
.actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.facts { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font: 600 .8125rem/1.5 var(--sans); letter-spacing: .01em; }
.facts svg { width: 16px; height: 16px; flex: none; color: var(--mint); }

/* The hero read: the tabs pick a placement; the ad goes in as one beam and leaves Prism as three rays,
   one per result, so each colour names its result. Below 500px the results are a list under the drawing;
   wider, they sit in three equal rows, each ray ending at the middle of its row. --p is the prism's width:
   the beam meets its left face and the rays leave its right face, both a quarter of --p inside its box. */
.hero-fig { width: 100%; container-type: inline-size; }
.hread-tabs { margin-bottom: 40px; }
@container (max-width: 420px) { .hero-fig .hread-tabs button { padding-inline: 8px; } }
.hread { --p: 72px; position: relative; display: grid; grid-template-columns: clamp(130px, 40cqi, 200px) minmax(16px, 1fr) var(--p) minmax(40px, 1.3fr); align-items: center; }
.hread-ad { position: relative; grid-area: 1 / 1; }
.hread-img { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; }
.hread-img svg { display: block; width: 100%; height: 100%; }
/* The read: a spectrum line with a soft glow sweeps down the ad and back up, for as long as the hero
   is on screen. It is the page's one deliberate loop (the owner asked for it): transform only, paused
   off screen (main.js adds .idle), and absent with reduced motion. A switch restarts it from the top. */
.scan { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.scan::before { content: ""; position: absolute; left: 0; right: 0; top: -16%; height: 32%; background: linear-gradient(transparent, color-mix(in srgb, var(--lav) 40%, transparent), transparent); }
.scan::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--spectrum); }
.hpins { position: absolute; inset: 0; }
/* Pins: 24px dots with a 40px target. Pointing at one (or tapping it) rings it and shows its finding. */
.hpin { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; outline: 2px solid var(--ink-0); background: var(--c); color: var(--ink-0); font: 800 .75rem/1 var(--sans); cursor: default; transition: opacity 200ms; }
.hpin::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.hpin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; scale: .6; transition: opacity 200ms, scale 200ms var(--ease-out); }
.hpin .tip { position: absolute; top: 50%; left: calc(100% + 10px); translate: 0 -50%; padding: 5px 10px; border-radius: 999px; background: var(--text); color: var(--ink-0); font: 600 .75rem/1.3 var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 150ms; }
.hpin[data-side="left"] .tip { left: auto; right: calc(100% + 10px); }
.hpin[data-side="below"] .tip { left: 50%; top: calc(100% + 10px); translate: -50% 0; }
.hpin:hover, .hpin.on { z-index: 2; }
.hpin:hover::after, .hpin.on::after { opacity: 1; scale: 1; }
.hpin:hover .tip, .hpin.on .tip { opacity: 1; }
.hread-beam { position: relative; grid-area: 1 / 2; height: 2px; margin-right: calc(var(--p) / -4); background: var(--text); overflow: hidden; }
.hread-beam i { position: absolute; inset: 0; }
.hread-beam .pulse { right: auto; width: 100%; translate: -100% 0; background: linear-gradient(90deg, transparent 40%, var(--lav), var(--sky), var(--mint), transparent 95%); }
.hread-beam .cover { inset: -2px 0; background: var(--ink-0); translate: 101% 0; }
.hread-prism { position: relative; z-index: 1; grid-area: 1 / 3; }
.hread-prism svg { display: block; width: 100%; height: auto; }
.rname { position: absolute; left: 50%; top: calc(100% + 12px); translate: -50% 0; color: var(--text); font-size: 1.5rem; line-height: 1; }
.hread-fan { position: relative; grid-area: 1 / 4; align-self: stretch; margin-left: calc(var(--p) / -4); transform-origin: 0 50%; }
@container (max-width: 499px) { .hread-fan { -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); } }
.hread-fan i { position: absolute; inset: 0; opacity: .85; transition: opacity 250ms; }
.hread-fan i:nth-child(1) { background: #B8A8F0; clip-path: polygon(0 50%, 100% 11%, 100% 22.3%); }
.hread-fan i:nth-child(2) { background: #5ECFC0; clip-path: polygon(0 50%, 100% 44.4%, 100% 55.6%); }
.hread-fan i:nth-child(3) { background: #C084E8; clip-path: polygon(0 50%, 100% 77.7%, 100% 89%); }
.hread-outs { grid-area: 2 / 1 / 3 / -1; list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.hout { position: relative; display: grid; gap: 6px; justify-items: start; align-content: center; padding: 16px 0 16px 18px; border-bottom: 1px solid var(--rule); }
.hout::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--c); }
.hout-k { color: var(--c); }
.hout-fig { color: var(--text); font: 400 clamp(2.25rem, 8cqi, 3rem)/.95 var(--sans); letter-spacing: -0.04em; white-space: nowrap; }
.hout-fig .unit { color: var(--text-3); }
.hout-n { color: var(--text-3); }
.hfinds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hfinds li { display: flex; align-items: center; gap: 10px; color: var(--text); font: 600 .8125rem/1.35 var(--sans); transition: opacity 200ms; }
.hfinds .n { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--c); color: var(--ink-0); font: 800 .625rem/1 var(--sans); }
.hout-fix { color: var(--text); font: 600 .875rem/1.4 var(--sans); }
.hout-ctr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; color: var(--text-3); }
.hout-ctr .readout { color: var(--text); font-size: 1.375rem; letter-spacing: -0.03em; }
.hout-ctr .to { color: var(--text-3); font-size: .6em; letter-spacing: 0; }
.hout-ctr em { font-style: normal; color: var(--mint); }
/* Pointing at a finding marks its pin on the ad (main.js); pointing at a result brings its band forward. */
.hread.hl .hpin:not(.on), .hread.hl .hfinds li:not(.on) { opacity: .3; }
.hread:has(.hout:nth-child(1):hover) .hread-fan i:not(:nth-child(1)),
.hread:has(.hout:nth-child(2):hover) .hread-fan i:not(:nth-child(2)),
.hread:has(.hout:nth-child(3):hover) .hread-fan i:not(:nth-child(3)) { opacity: .25; }
@container (min-width: 500px) {
  .hread { grid-template-columns: clamp(140px, 30cqi, 200px) minmax(20px, .7fr) var(--p) minmax(48px, 1.3fr) 42%; }
  .hread-outs { grid-area: 1 / 5; align-self: stretch; display: grid; grid-template-rows: repeat(3, 1fr); margin: 0; border: 0; }
  .hout { padding: 14px 0 14px 20px; border: 0; }
  .hout + .hout { border-top: 1px solid var(--rule); }
  .hout::before { display: none; }
}
/* Entrance, once, on load: the ad is read, the beam uncovers, the bands open, the results rise. */
.m .hero-fig .scan { opacity: 1; animation: scan 2.4s var(--ease-io) 150ms infinite alternate backwards; }
.m .hero-fig.idle .scan { animation-play-state: paused; }
@keyframes scan { from { translate: 0 0; } to { translate: 0 100%; } }
.m .hero-fig .hpin { animation: hpin-pop 300ms var(--ease-out) calc(300ms + var(--i, 0) * 90ms) both; }
@keyframes hpin-pop { from { scale: 0; opacity: 0; } }
.m .hero-fig .cover { animation: uncover 500ms var(--ease-io) 250ms both; }
@keyframes uncover { from { translate: 0 0; } }
.m .hero-fig .hread-fan { animation: fan-open 550ms var(--ease-out) 550ms both; }
@keyframes fan-open { from { scale: 0 1; } }
.m .hero-fig .hout { animation: rise-sm 400ms var(--ease-out) calc(900ms + var(--i) * 60ms) both; }
.rm .hero-fig .hout { animation: fade 400ms both; }
@keyframes rise-sm { from { opacity: 0; translate: 0 12px; } }
@keyframes fade { from { opacity: 0; } }

/* Criteria band: a carousel that always travels (main.js), faster and leaning with scroll speed, paused while
   pointed at or off screen. The end padding is half the gap, so half the track is exactly one set. */
.strip { padding-block: var(--sec-pad); }
.strip-cap { margin-bottom: 20px; }
.band { height: 120px; display: flex; align-items: center; border-block: 1px solid var(--rule); overflow: hidden; overflow: clip; }
@media (max-width: 767px) { .band { height: 88px; } }
.band-track { --bgap: 64px; display: flex; align-items: baseline; gap: var(--bgap); width: max-content; padding-inline: calc(var(--bgap) / 2); }
.bi { white-space: nowrap; color: var(--c); font-size: clamp(1.75rem, calc(1rem + 2.4vw), 3rem); line-height: 1.1; }
.bi.sans { font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; }
.rm .band { height: auto; padding-block: 24px; }
.rm .band-track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 12px; column-gap: 40px; padding-inline: var(--gutter); }
.rm .band-track [data-dup] { display: none; }

/* Index rows: equal items divided by hairlines. The row at the middle of the screen, or under the
   pointer or focus, lights with an 8% tint and a 2px line in its colour. */
.index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; border-top: 1px solid var(--rule); }
.row { --bleed: clamp(12px, 1.6vw, 24px); position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 14px; align-items: start; padding-block: 32px; border-bottom: 1px solid var(--rule); isolation: isolate; }
.row::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--bleed)); z-index: -1; background: color-mix(in srgb, var(--cb) 8%, transparent); opacity: 0; transition: opacity 250ms; }
.row::after { content: ""; position: absolute; left: calc(-1 * var(--bleed)); right: calc(-1 * var(--bleed)); top: -1px; height: 2px; background: var(--cb); transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out); }
.row:is(.lit, :hover, :focus-within)::before { opacity: 1; }
.row:is(.lit, :hover, :focus-within)::after { transform: scaleX(1); }
.row-num { grid-column: 1 / -1; }
.num { color: var(--c); font-size: .9375rem; }
.row-title { grid-column: 1 / -1; transition: translate 250ms var(--ease-out); }
.m .row:is(.lit, :hover, :focus-within) .row-title { translate: 12px 0; }
.row-title h3 { font: 800 clamp(1.375rem, calc(1rem + 1.2vw), 2.125rem)/1.1 var(--sans); letter-spacing: -0.02em; }
.row-copy { grid-column: 1 / -1; color: var(--text-2); max-width: 65ch; }
.row-icon, .row-flag { grid-column: 1 / -1; color: var(--c); }
.row-icon svg { width: 28px; height: 28px; }
.flag { width: 64px; height: 32px; border-radius: 4px; outline: 1px solid var(--rule); outline-offset: 0; }
.mfacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mfacts li { position: relative; padding-left: 20px; }
.mfacts li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1.5px; background: var(--c); }
@media (min-width: 768px) {
  .row-num { grid-column: 1 / 2; grid-row: 1; }
  .row-title { grid-column: 2 / 5; grid-row: 1; }
  .row-copy { grid-column: 5 / 9; grid-row: 1; }
  .row-icon, .row-flag { grid-column: 1 / 2; grid-row: 2; }
}
@media (min-width: 1024px) {
  .row-title { grid-column: 2 / 7; }
  .row-copy { grid-column: 7 / 12; }
  .row-icon, .row-flag { grid-column: 12 / 13; grid-row: 1; justify-self: end; }
}

/* Raised panels: Raised Ink, a border mixed from the panel's colour, and a soft glow in the top-right
   corner, placed outside the corner so no text sits over more than .16 of it. No shadows. */
.panel {
  position: relative; isolation: isolate; padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--ink-1);
  border: 1px solid color-mix(in srgb, var(--cb, #B8A8F0) 40%, var(--rule)); overflow: hidden; overflow: clip;
}
.panel::before { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -320px; top: -320px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--cb, #B8A8F0) 22%, transparent), transparent); pointer-events: none; }

/* Tags and chips: Label type in a 1px outline. */
.tag-n, .chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--edge); color: var(--text-2); font: 600 .8125rem/1.5 var(--sans); letter-spacing: .01em; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; min-height: 28px; margin-bottom: 14px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; background: linear-gradient(var(--ink-1), var(--ink-1)) padding-box, var(--spectrum) border-box; color: var(--text); }

/* Capsules: a sliding base-colour bead behind the active option, moved by transform only. */
/* Segments are always equal, so the bead (one segment wide) lines up; on a narrow screen a segment's
   extra label wraps under its name instead of widening it. */
.seg { position: relative; isolation: isolate; justify-self: start; display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px; border-radius: 999px; border: 1px solid var(--edge); max-width: 100%; }
.seg button { position: relative; z-index: 1; min-height: 48px; padding: 6px 20px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: 600 .9375rem/1.2 var(--sans); cursor: pointer; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { color: var(--ink-0); }
.seg-bead { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 2)); border-radius: 999px; background: var(--bead, var(--sky-b)); transform: translateX(calc(var(--k, 0) * 100%)); transition: transform 280ms var(--ease-out); }
.switcher button span { display: block; font-weight: 400; font-size: .8125rem; }
@media (max-width: 420px) { .switcher button { padding: 6px 10px; } }

/* Example: the read in a raised panel, the phone on the left and the read on the right. */
.switcher { margin-bottom: 32px; }
.demo { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.demo-stage { position: relative; display: grid; justify-items: center; }
.phone { position: relative; width: min(260px, 100%); aspect-ratio: 300 / 650; container-type: inline-size; }
.phone-body { position: absolute; inset: 0; border-radius: 15cqw; background: #09080E; border: 1px solid var(--rule); padding: 3.33cqw; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 11.5cqw; overflow: hidden; background: #fff; color: #111; }
.notch { position: absolute; top: 2.6cqw; left: 50%; width: 28cqw; height: 7.5cqw; transform: translateX(-50%); background: #09080E; border-radius: 999px; z-index: 5; }
.status { height: 13.33cqw; display: flex; align-items: center; justify-content: space-between; padding: 2cqw 8cqw 0; font: 600 4.3cqw var(--sans); }
.frame { position: absolute; inset: 0; opacity: 0; transform: scale(.97); transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); pointer-events: none; }
.phone[data-frame="feed"] .feed, .phone[data-frame="tiktok"] .tt, .phone[data-frame="web"] .web { opacity: 1; transform: none; pointer-events: auto; }
.post-head { height: 17.33cqw; display: flex; align-items: center; gap: 3cqw; padding: 0 4cqw; }
.post-head .av { width: 9.5cqw; height: 9.5cqw; border-radius: 50%; background: linear-gradient(135deg, #E9D3B5, #C9A15E); flex: none; }
.post-head .who { display: grid; gap: 1.2cqw; }
.post-head .who b { font-size: 4.2cqw; font-weight: 600; line-height: 1.1; }
.post-head .who span { font-size: 3.4cqw; color: #6B7280; line-height: 1; }
.post-head .dots { margin-left: auto; font-size: 5cqw; color: #6B7280; letter-spacing: .5cqw; }
.ad { display: block; width: 100%; aspect-ratio: 4 / 5; }
.post-actions { display: flex; gap: 4.5cqw; padding: 3.5cqw 4cqw 2cqw; }
.post-actions svg { width: 7cqw; height: 7cqw; }
.post-lines { padding: 0 4cqw; display: grid; gap: 2cqw; }
.post-lines i { display: block; height: 2.6cqw; border-radius: 999px; background: #E5E7EB; }
.tt { background: #000; color: #fff; }
.tt .status { color: #fff; position: relative; z-index: 2; }
.tt .ad-box { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
.tt-rail { position: absolute; right: 3.5cqw; bottom: 22cqw; display: grid; gap: 5cqw; justify-items: center; z-index: 2; }
.tt-rail span { width: 10cqw; height: 10cqw; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.tt-rail svg { width: 5.5cqw; height: 5.5cqw; }
.tt .caption { position: absolute; left: 4cqw; right: 18cqw; bottom: 6cqw; display: grid; gap: 1.8cqw; z-index: 2; }
.tt .caption b { font-size: 4cqw; font-weight: 600; }
.tt .caption i { display: block; height: 2.4cqw; border-radius: 999px; background: rgba(255, 255, 255, .35); }
.tt .tag-sp { display: inline-block; font-size: 3cqw; padding: .8cqw 2cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .18); width: max-content; }
.web { background: #fff; }
.web > * { position: absolute; }
.web .url { top: 15.33cqw; left: 4cqw; right: 4cqw; height: 11.33cqw; border-radius: 999px; background: #F1F3F5; display: flex; align-items: center; gap: 2cqw; padding: 0 4cqw; font-size: 3.6cqw; color: #4B5563; }
.web .url svg { width: 3.6cqw; height: 3.6cqw; flex: none; }
.web .ln { left: 5cqw; height: 2.67cqw; border-radius: 999px; background: #E5E7EB; }
.web .hl { height: 4.67cqw; background: #1F2937; opacity: .85; }
.web .slot { top: 70.67cqw; left: 9.33cqw; right: 9.33cqw; height: 4.67cqw; display: flex; align-items: center; justify-content: space-between; font-size: 3.2cqw; color: #6B7280; }
.web .slot b { font-size: 3cqw; font-weight: 600; padding: .4cqw 1.6cqw; border-radius: .8cqw; border: .3cqw solid #9CA3AF; color: #4B5563; }
.web .ad-slot { top: 77.33cqw; left: 9.33cqw; width: 74.67cqw; outline: .3cqw solid #E5E7EB; }
/* Findings pinned on the ad: a status dot and, on wide screens, a light label. */
.pins { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.pin { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.m .pin { animation: pop 520ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
.rm .pin { animation: fade 400ms both; animation-delay: var(--d, 0ms); }
@keyframes pop { from { opacity: 0; scale: .6; } }
.pin .dot { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 3px solid #fff; }
.pin .tag { position: absolute; top: 0; transform: translateY(-50%); display: none; align-items: center; gap: 7px; width: max-content; max-width: 9.5rem; padding: 6px 12px 6px 9px; border-radius: 14px; background: var(--text); color: var(--ink-0); font: 600 .75rem/1.25 var(--sans); text-wrap: balance; }
.pin .tag::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.pin[data-side="right"] .tag { left: 16px; }
.pin[data-side="left"] .tag { right: 16px; }
@media (min-width: 1200px) { .pin .tag { display: flex; } }
/* The read */
/* main.js holds the card at its tallest read's height; the spare room goes under the checklist, so the
   recommendation and CTR stay on the bottom edge. */
.readcard { display: grid; grid-template-rows: auto 1fr auto; gap: 28px; align-content: start; }
.rc-top { display: grid; gap: 24px; }
@media (min-width: 1280px) { .rc-top { grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; } }
.fig { color: var(--text); font: 400 clamp(3.5rem, calc(2rem + 4.5vw), 6.5rem)/.9 var(--sans); letter-spacing: -0.045em; white-space: nowrap; }
.fig [data-count] { display: inline-block; }
.rc-fig { font-size: clamp(3.5rem, calc(2rem + 3vw), 5.5rem); }
.rc-band { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; color: var(--band, var(--miss)); }
.rc-band::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--band, var(--miss)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.bars { display: grid; gap: 10px; }
.bars > div { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr) 3rem; gap: 12px; align-items: center; color: var(--text-2); font: 600 .8125rem/1.5 var(--sans); }
.bars b { text-align: right; color: var(--text); font-weight: 600; }
.track { height: 4px; border-radius: 999px; background: var(--rule); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: inherit; background: var(--cb, #B8A8F0); transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform 600ms var(--ease-out); }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.check { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.m .check { animation: rise-sm 280ms var(--ease-out) both; animation-delay: calc(var(--i) * 60ms); }
.ring { margin-top: 5px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--c); }
.check .crit { color: var(--text); font: 600 .9375rem/1.4 var(--sans); }
.check .meta { margin-top: 4px; color: var(--c); }
.check .meta b { font-weight: 600; }
.check .why { margin-top: 4px; font-size: .9375rem; line-height: 1.5; color: var(--text-2); }
.rc-foot { display: grid; gap: 20px; }
@media (min-width: 600px) { .rc-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.rc-foot p { margin-top: 6px; color: var(--text); font: 600 1rem/1.4 var(--sans); }
.rc-ctr { display: grid; gap: 6px; }
@media (min-width: 600px) { .rc-ctr { text-align: right; justify-items: end; } }
.rc-ctr strong { color: var(--text); font: 400 2rem/1 var(--sans); letter-spacing: -0.03em; white-space: nowrap; }
.rc-ctr strong em { font-style: normal; color: var(--met); }
#d-pct { color: var(--text-3); }

/* How it works: a reel of step numerals that follows the steps on tall, wide screens; a list otherwise. */
.steps-scene { display: grid; grid-template-columns: subgrid; }
.steps { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: 80px; }
.step { display: grid; gap: 16px; align-content: start; }
.step-body { display: grid; gap: 12px; }
.step-n { color: var(--c); font-size: 5rem; line-height: .9; letter-spacing: -0.04em; }
.step h3 { font: 800 clamp(1.75rem, calc(1rem + 2.6vw), 3.25rem)/1 var(--sans); letter-spacing: -0.025em; }
.reel { display: none; }
@media (min-width: 1024px) and (min-height: 720px) {
  .m .reel { display: block; grid-column: 1 / 6; grid-row: 1; align-self: start; position: sticky; top: calc(50svh - .5em); height: 1em; overflow: hidden; overflow: clip; font: 300 clamp(8rem, calc(4rem + 12vw), 15rem)/1 var(--sans); letter-spacing: -0.04em; }
  .reel-col { display: flex; flex-direction: column; translate: 0 calc(-25% * var(--step, 0)); transition: translate 700ms var(--ease-io); }
  .reel-col span { display: block; height: 1em; color: var(--c); }
  .m .steps { grid-column: 6 / 13; grid-row: 1; gap: 0; }
  .m .step { min-height: 76svh; padding-block: 6svh; }
  .m .step h3 { transition: opacity 400ms; }
  .mo .step:not(.on) h3 { opacity: .45; }
  .m .step-n { display: none; }
}
/* The mock screens: raised panels that run to the content's right edge, like the other sections. */
.ui { position: relative; isolation: isolate; display: grid; gap: 16px; margin-top: 12px; padding: clamp(20px, 2.4vw, 32px); border-radius: 24px; overflow: hidden; overflow: clip; }
.ui-title { display: flex; align-items: center; gap: 10px; color: var(--text); font: 600 1.125rem/1.3 var(--sans); letter-spacing: -0.01em; }
.ui-sub { margin-top: -10px; color: var(--text-3); }
.drop { display: grid; justify-items: center; gap: 6px; padding: 28px 20px; border: 1px dashed var(--edge); border-radius: 16px; text-align: center; }
.drop svg { width: 30px; height: 30px; margin-bottom: 4px; color: var(--c); }
.drop p { color: var(--text); font-weight: 600; font-size: 1rem; }
.drop small { color: var(--text-3); }
.file { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--rule); }
.file .thumb { width: 44px; height: 55px; border-radius: 6px; overflow: hidden; }
.file .thumb svg { width: 100%; height: 100%; }
.file b { display: block; color: var(--text); font: 600 .9375rem/1.4 var(--sans); overflow-wrap: anywhere; }
.file small { display: block; color: var(--text-3); }
.progress { margin-top: 8px; height: 4px; border-radius: 999px; background: var(--rule); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--cb); transform-origin: left; }
.mo .ui:not(.in) .progress i { transform: scaleX(.05); }
.m .ui .progress i { transition: transform 1000ms var(--ease-out) 300ms; }
.selects, .ctx { display: grid; gap: 10px; }
.ctx { gap: 16px; }
.select { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--rule); }
.select small, .ctx-row > small { display: block; color: var(--text-3); font: 600 .8125rem/1.5 var(--sans); letter-spacing: .01em; }
.select b { color: var(--text); font: 600 1rem/1.4 var(--sans); }
.select svg { width: 18px; height: 18px; color: var(--text-2); }
.ctx-row > small { margin-bottom: 8px; }
.ctx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .ctx-grid { grid-template-columns: minmax(0, 1fr); } }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.mopt { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--edge); color: var(--text-2); font: 600 .8125rem/1.5 var(--sans); letter-spacing: .01em; }
.mopt-on { background: var(--cb); border-color: transparent; color: var(--ink-0); }
.result { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 480px) { .result { grid-template-columns: minmax(0, 1fr); } }
.result-fig { font-size: clamp(3rem, calc(2rem + 2vw), 4rem); }
.result-list { display: grid; border-top: 1px solid var(--rule); }
.result-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--rule); color: var(--text-2); font-size: .9375rem; }
.result-list b { color: var(--text); font-weight: 600; }
.pdf-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--text); color: var(--ink-0); font: 600 .8125rem var(--sans); }

/* How it works shows screens from the platform, so they take the platform's light look (its DESIGN.md):
   a white tile with the chrome aurora behind its top, grey inner tiles, near-black ink, filled fields,
   a black pill for the chosen option, the black score panel with white meters, and the chrome gradient
   on the main button. The score stays solid white: the landing page uses no gradient text. */
.ui {
  --p-ground: #ECF0F4; --p-tile: #F3F5F8; --p-hair: #E1E6EC; --p-line: #D3DAE3; --p-panel: #111111;
  --p-ink: #0A0A0A; --p-ink-2: #394150; --p-ink-3: #5A6270; --p-alert: #E5484D;
  --p-chrome: linear-gradient(135deg, #B8A8F0 0%, #6AAEE8 28%, #5ECFC0 56%, #C084E8 100%);
  color-scheme: light; background: #FFFFFF; color: var(--p-ink-2);
}
.ui::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 80%; pointer-events: none;
  background:
    radial-gradient(55% 60% at 90% 0%, rgba(184, 168, 240, .5), transparent 70%),
    radial-gradient(45% 55% at 62% 0%, rgba(106, 174, 232, .36), transparent 70%),
    radial-gradient(40% 55% at 100% 34%, rgba(94, 207, 192, .32), transparent 70%),
    radial-gradient(35% 40% at 36% 8%, rgba(192, 132, 232, .2), transparent 70%);
}
.ui .ui-title { color: var(--p-ink); font-weight: 600; }
.ui .ui-sub, .ui small, .ui .ctx-row > small { color: var(--p-ink-3); }
.ui .tag-n { border: 0; background: var(--p-tile); color: var(--p-ink-2); }
.ui .drop { border-color: var(--p-line); background: rgba(243, 245, 248, .7); }
.ui .drop svg { color: #2F86D6; }
.ui .drop p, .ui .file b, .ui .select b { color: var(--p-ink); }
.ui .file { border: 0; border-radius: 16px; background: var(--p-tile); }
.ui .progress { background: var(--p-hair); }
.ui .progress i { background: var(--p-chrome); }
.ui .select { border-color: var(--p-hair); border-radius: 10px; background: var(--p-ground); }
.ui .select svg { color: var(--p-ink-3); }
.ui .mopt { border-color: var(--p-line); background: #FFFFFF; color: var(--p-ink-2); }
.ui .mopt-on { border-color: transparent; background: var(--p-panel); color: #FFFFFF; }
.ui .result { padding: 20px 22px; border-radius: 16px; background: var(--p-panel); color: #FFFFFF; }
.ui .result-fig, .ui .result-fig .unit { color: #FFFFFF; }
.ui .rc-band { color: #FFFFFF; }
.ui .rc-band::before { background: var(--p-alert); }
.ui .bars > div { color: rgba(255, 255, 255, .7); }
.ui .bars b { color: #FFFFFF; }
.ui .track { background: rgba(255, 255, 255, .15); }
.ui .track i { background: rgba(255, 255, 255, .85); }
.ui .result-list { border-color: var(--p-hair); }
.ui .result-list > div { border-color: var(--p-hair); color: var(--p-ink-2); }
.ui .result-list b { color: var(--p-ink); }
.ui .pdf-btn { background: var(--p-chrome); color: var(--p-ink); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* What you get: raised panels. */
.bento { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .c-a, .c-wide { grid-column: 1 / -1; } }
.cell { display: flex; flex-direction: column; gap: 32px; }
.cell-copy { display: grid; gap: 12px; align-content: start; }
.cell h3 { font: 800 clamp(1.375rem, calc(1rem + 1vw), 2rem)/1.1 var(--sans); letter-spacing: -0.02em; max-width: 22ch; }
.cell-copy p { max-width: 52ch; }
.viz { margin-top: auto; }
@media (min-width: 1024px) { .c-a, .c-wide { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; } }
.sheet { border-top: 1px solid var(--rule); }
.sheet-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.sheet-tab { display: inline-flex; align-items: baseline; gap: 8px; min-height: 32px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--edge); color: var(--text-2); }
.sheet-tab b { color: var(--text); font-weight: 600; }
.sheet-tab-on { background: var(--cb); border-color: transparent; color: var(--ink-0); }
.sheet-tab-on b { color: var(--ink-0); }
.srow { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.srow .t { color: var(--text); font: 600 .9375rem/1.4 var(--sans); }
.srow .w { margin-top: 2px; font-size: .9375rem; line-height: 1.5; color: var(--text-2); }
.srow .s { color: var(--c); white-space: nowrap; }
@media (max-width: 599px) { .srow { grid-template-columns: 14px minmax(0, 1fr); } .srow .s { grid-column: 2; } }
.reads { display: flex; align-items: center; gap: 8px; }
.read { flex: 0 1 40px; min-width: 24px; height: 52px; border-radius: 8px; border: 1px solid var(--rule); display: grid; align-content: center; gap: 5px; padding: 0 7px; }
.read i { display: block; height: 2px; border-radius: 2px; background: var(--edge); }
.read i:nth-child(2) { width: 70%; }
.read i:nth-child(3) { width: 85%; background: var(--cb); }
.eq { flex: none; color: var(--text-3); font-size: 1.5rem; }
.avg { flex: none; color: var(--text); font: 400 clamp(2.5rem, calc(1.6rem + 2vw), 3.5rem)/.9 var(--sans); letter-spacing: -0.045em; }
.range-median { position: relative; height: 44px; color: var(--text-3); font: 600 .8125rem/1.3 var(--sans); }
.range-median span { position: absolute; bottom: 10px; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.range-median b { display: block; color: var(--text); }
.range-bar { position: relative; height: 2px; border-radius: 2px; background: var(--edge); }
.range-mark { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--m); border: 3px solid var(--ink-1); transform: translate(-50%, -50%); }
.range-labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--text-3); font: 600 .8125rem/1.3 var(--sans); }
.range-labels span:last-child { text-align: right; }
.range-labels b { display: block; color: var(--text); }
.pct { margin-top: 18px; color: var(--text-2); }
.pct strong { margin-right: 6px; color: var(--miss); font: 400 2rem/1 var(--sans); letter-spacing: -0.03em; }
.test { display: grid; gap: 12px; }
.test-title { color: var(--text); font: 600 1.0625rem/1.4 var(--sans); }
.variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.variant { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--rule); color: var(--text); font-size: .9375rem; line-height: 1.4; }
.variant b { display: block; margin-bottom: 4px; color: var(--text-3); }
.kv { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--text-2); font-size: .9375rem; }
.kv strong { color: var(--text); font-weight: 600; }
.kv .up { color: var(--met); }
.copy-pair { display: grid; gap: 10px; }
.copy-box { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--rule); }
.copy-box small { display: block; color: var(--text-3); }
.copy-new { border-color: color-mix(in srgb, #5ECFC0 45%, var(--rule)); }
.copy-box .en { margin-top: 4px; color: var(--text); font: 600 1rem/1.4 var(--sans); }
.copy-box .fr { font-weight: 400; color: var(--text-2); }
.copy-box .fr i { font-style: normal; font-weight: 600; color: var(--text); }
.copy-box .old { margin-top: 4px; color: var(--text-3); font-size: 1rem; text-decoration: line-through; text-decoration-color: var(--miss); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; color: var(--text-3); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--sw); }
.proj { border-top: 1px solid var(--rule); }
.proj-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.lbl b { display: block; color: var(--text); font: 600 .9375rem var(--sans); }
.delta { display: inline-flex; margin-top: 2px; color: var(--met); }
.proj-bars { display: grid; gap: 8px; }
.pbar { display: grid; grid-template-columns: minmax(0, 1fr) 3rem; gap: 10px; align-items: center; color: var(--text); font: 600 .875rem var(--sans); }
.pbar span:last-child { text-align: right; }
.bar { height: 6px; border-radius: 999px; background: var(--ink-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--f); opacity: .85; transform-origin: left; }
.m.sdt .grow { animation: grow-bar linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
@keyframes grow-bar { from { transform: scaleX(.2); } }
.aud { display: grid; border-top: 1px solid var(--rule); }
.aud > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.aud .ic { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--edge); display: grid; place-items: center; color: var(--c); }
.aud svg { width: 18px; height: 18px; }
.aud b { display: block; color: var(--text); font: 600 .9375rem/1.35 var(--sans); }
.aud small { display: block; margin-top: 2px; color: var(--text-3); }
/* Similar creatives: this read, what a match must share, and the three places your closest reads fill. */
.lib { display: grid; gap: 14px; }
.lib-slots { display: grid; grid-template-columns: repeat(3, 44px) minmax(0, 1fr); gap: 10px 12px; align-items: center; }
.lib-slot { display: grid; place-items: center; width: 44px; height: 55px; border-radius: 6px; border: 1px dashed var(--edge); color: var(--text-3); font: 600 .8125rem/1 var(--sans); }
.lib-slots small { color: var(--text-3); }
@media (max-width: 480px) { .lib-slots small { grid-column: 1 / -1; } }
/* Record what happened: the result form as it opens, with nothing entered yet. */
.rec { display: grid; gap: 16px; }
.rec small { color: var(--text-3); }
.rec-title { margin-top: 4px; color: var(--text); font: 600 1.0625rem/1.4 var(--sans); }
.rec .ph { color: var(--text-3); font-weight: 400; }
.footnote { margin-top: 24px; color: var(--text-3); }

/* Consistency stats: big figures that count up once. */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px var(--gap); padding-top: 32px; border-top: 1px solid var(--rule); }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { display: grid; gap: 14px; align-content: start; }
.stat::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--c); }
.stat-copy { max-width: 22ch; color: var(--text-2); font-size: 1rem; line-height: 1.55; }

/* Markets: rows, then the coverage as tags. */
.coverage { margin-top: 56px; display: grid; gap: 32px; }
@media (min-width: 1024px) { .coverage { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap); } }
.cov { display: grid; gap: 14px; align-content: start; }
.cov-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Pricing: raised panels and the monthly and yearly capsule. */
.billing-row { margin-bottom: 40px; }
.billing { --bead: #5ECFC0; }
.save { margin-left: 6px; display: inline-flex; white-space: nowrap; align-items: center; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; font: 600 .75rem/1.4 var(--sans); }
.plans { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 24px; padding: clamp(24px, 2.4vw, 36px); }
@supports not (grid-template-rows: subgrid) { .plan { grid-template-rows: auto auto 1fr auto; } }
.plan-head { display: grid; justify-items: start; align-content: start; }
.plan h3, .includes h3, .enterprise h3 { font: 600 1.375rem/1.3 var(--sans); letter-spacing: -0.01em; }
.plan-for { margin-top: 6px; color: var(--text-2); font-size: 1rem; line-height: 1.5; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; container-type: inline-size; }
/* Sized to the card (the price row is the container, since a container card would drop its subgrid),
   so the largest price and its "/month" always share a line. */
.amt { color: var(--text); font: 400 clamp(2.5rem, 26cqi, 4rem)/.9 var(--sans); letter-spacing: -0.045em; }
.per { color: var(--c); font: 400 1rem var(--sans); }
.price.swap .amt { animation: rise-sm 280ms var(--ease-out) both; }
.rm .price.swap .amt { animation-name: fade; }
.price-note { margin-top: 10px; color: var(--text-3); }
.allow { padding-top: 20px; border-top: 1px solid var(--rule); }
.allow strong { display: block; color: var(--text); font: 600 1.125rem/1.3 var(--sans); }
.allow span { display: block; margin-top: 4px; color: var(--text-2); font-size: .9375rem; }
.plan .pill { align-self: end; width: 100%; }
/* Growth: a spectrum rim, without any "most popular" claim. */
.plan-rim { border-color: transparent; background: linear-gradient(var(--ink-1), var(--ink-1)) padding-box, var(--spectrum) border-box; }
.includes { margin-top: 64px; display: grid; gap: 24px 40px; padding-top: 32px; border-top: 1px solid var(--rule); }
@media (min-width: 1024px) { .includes { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.includes h3 + p { margin-top: 6px; }
.includes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px 32px; }
@media (min-width: 600px) { .includes ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.includes li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--text-2); }
.includes svg { width: 16px; height: 16px; margin-top: 5px; color: var(--mint); }
.enterprise { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.enterprise p { margin-top: 6px; max-width: 60ch; }

/* Request access: the one paper section, where the light lands. */
.paper { background: var(--paper); color: var(--paper-text-2); color-scheme: light; caret-color: var(--deep-lav); }
.paper::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--spectrum); }
.paper ::selection { background: var(--deep-lav); color: var(--paper); }
.paper :focus-visible { outline-color: var(--deep-lav); }
.paper h2 { color: var(--paper-text); }
.paper .kick { color: var(--paper-text-2); }
.paper .lead { color: var(--paper-text-2); margin-top: 28px; }
.paper-side, .paper-main { grid-column: 1 / -1; }
.paper-side { display: grid; justify-items: start; align-content: start; }
.paper-side h2 { margin-top: 20px; }
.paper-side h2 .accent { color: var(--ac); }
.cta-points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.cta-points li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--paper-text); }
.cta-points svg { width: 18px; height: 18px; margin-top: 5px; color: var(--d); }
.paper-main { margin-top: 64px; }
@media (min-width: 1024px) {
  .paper-side { grid-column: 1 / 6; position: sticky; top: 112px; align-self: start; }
  .paper-main { grid-column: 7 / 13; margin-top: 0; }
}
.access-form { display: grid; gap: 40px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 24px; }
.fld { display: grid; gap: 4px; align-content: start; }
.fld label, .fld-set legend { color: var(--paper-text); font: 600 .875rem var(--sans); }
.fld-set legend { padding: 0; margin-bottom: 12px; }
.line { position: relative; }
.line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--deep-lav); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out); pointer-events: none; }
.line:focus-within::after { transform: scaleX(1); }
.paper input[type="text"], .paper input[type="email"], .paper select {
  display: block; width: 100%; min-height: 48px; margin: 0; padding: 10px 0; border: 0; border-bottom: 1px solid var(--edge); border-radius: 0;
  background: transparent; color: var(--paper-text); font: 400 1.125rem/1.5 var(--sans);
}
.paper select { -webkit-appearance: none; appearance: none; padding-right: 32px; cursor: pointer; }
.paper select option { color: var(--paper-text); background: var(--paper); }
.select-line svg { position: absolute; right: 4px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--paper-text-2); pointer-events: none; }
.paper input:focus, .paper select:focus { outline: none; }
.paper ::placeholder { color: var(--paper-text-2); opacity: 1; }
.paper [aria-invalid="true"] { border-bottom-color: var(--error); }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 8px 14px 8px 16px; border-radius: 14px; border: 1px solid var(--edge); color: var(--paper-text); font: 600 .9375rem/1.25 var(--sans); cursor: pointer; isolation: isolate; overflow: hidden; overflow: clip; transition: scale 120ms var(--ease-out); }
.opt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--d); opacity: 0; transition: opacity 180ms; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; scale: .6; transition: opacity 180ms, scale 180ms var(--ease-out); }
.opt:has(input:checked) { color: var(--paper); border-color: transparent; }
.opt:has(input:checked)::before { opacity: 1; }
.opt:has(input:checked) svg { opacity: 1; scale: 1; }
.opt:active { scale: .97; }
.opt:has(input:focus-visible) { outline: 2px solid var(--deep-lav); outline-offset: 3px; }
.form-note { color: var(--error); font: 600 .9375rem/1.45 var(--sans); }
.fld .form-note { margin-top: 8px; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-privacy { flex-basis: 100%; color: var(--paper-text-2); font-size: .875rem; }
.form-privacy a { color: var(--deep-lav); text-underline-offset: 3px; }
.submit { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--ink-0); color: var(--paper); font: 600 1rem/1 var(--sans); cursor: pointer; overflow: hidden; overflow: clip; transition: scale 120ms var(--ease-out); }
.submit:active { scale: .97; }
.submit:disabled { opacity: .6; cursor: progress; }
@media (max-width: 400px) { .submit { width: 100%; } }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { padding: 40px 0; border-top: 1px solid var(--paper-rule); transition: opacity 420ms var(--ease-out), translate 420ms var(--ease-out); }
@starting-style { .thanks { opacity: 0; } .m .thanks { translate: 0 16px; } }
.thanks strong { display: block; color: var(--paper-text); font: 800 clamp(2rem, calc(1.4rem + 2vw), 3rem)/1.05 var(--sans); letter-spacing: -0.03em; }
.thanks p { margin-top: 12px; color: var(--paper-text-2); font-size: 1.125rem; }

/* Footer: links, then the wordmark at the full width of the page. */
.foot { position: relative; padding-top: var(--sec-pad); background: var(--ink-0); }
.foot-top { display: grid; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) { .foot-top { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.foot-tag { max-width: 34ch; color: var(--text-2); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.foot-cols h2 { margin-bottom: 6px; font: 600 .8125rem/1.5 var(--sans); letter-spacing: .01em; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font: 600 .9375rem var(--sans); }
.fine { color: var(--text-3); font-size: .875rem; }
/* Legal links and the cookie settings button (shown by consent.js), beside the copyright line. */
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 28px; padding-top: 12px; }
.legal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.legal-links a, .consent-open { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); font: 400 .875rem var(--sans); text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 3px; }
.consent-open { padding: 0; border: 0; background: none; cursor: pointer; }
.consent-open[hidden] { display: none; }
.legal-links a:hover, .consent-open:hover { color: var(--text); }
/* --gw is the wordmark's width in hundredths of its font size, so the line exactly fills the container. */
.giant-wrap { container-type: inline-size; overflow: hidden; overflow: clip; padding: 24px var(--gutter) clamp(12px, 2vw, 28px); }
.giant { --gw: 917; display: flex; align-items: baseline; width: fit-content; color: var(--text); text-decoration: none; white-space: nowrap; font: 800 calc(100cqi * 100 / var(--gw)) / .78 var(--sans); }
.giant-w { display: inline-flex; letter-spacing: -0.025em; text-transform: uppercase; }
.giant-p { display: inline-flex; margin-left: .2em; color: var(--sky); font-weight: 300; letter-spacing: -0.02em; }
.gl { display: inline-grid; overflow: hidden; overflow: visible clip; padding-bottom: .02em; }
.gl > span { grid-area: 1 / 1; transition: translate 400ms var(--ease-out); }
.gl > span + span { translate: 0 105%; color: var(--c); }
@media (hover: hover) and (pointer: fine) {
  .gl:hover > span:first-child { translate: 0 -105%; }
  .gl:hover > span + span { translate: 0 0; }
}
.m.sdt .foot { view-timeline: --foot block; }
.m.sdt .gl { animation: letter-rise linear both; animation-timeline: --foot; animation-range: entry calc(var(--i) * 3%) entry calc(40% + var(--i) * 3%); }
.mo:not(.sdt) .giant:not(.in) .gl { translate: 0 60%; }
.m:not(.sdt) .gl { transition: translate 800ms var(--ease-out) calc(var(--i) * 40ms); }
@keyframes letter-rise { from { translate: 0 60%; } to { translate: 0 0; } }

/* Reveals for blocks: a one-time rise, opacity only with reduced motion. */
.mo [data-reveal]:not(.in) { translate: 0 32px; opacity: 0; }
.m [data-reveal] { transition: translate 800ms var(--ease-out), opacity 800ms var(--ease-out); }
.ro [data-reveal]:not(.in) { opacity: 0; }
.rm [data-reveal] { transition: opacity 400ms; }

@media (prefers-reduced-motion: reduce) {
  .hw, .gl, .check { animation: none !important; }
  .nav-ind, .roll > span, .arrow svg, .gl > span, .tlink::after, .row::after, .line::after, .menu-btn span, .pill, .opt, .opt svg, .submit, .row-title, .reel-col, .seg-bead, .frame, .track i, .progress i { transition-property: opacity; }
}
@media (prefers-contrast: more) {
  :root { --text-3: #B9B5CC; }
  .step h3 { opacity: 1 !important; }
}
@media (forced-colors: active) {
  .panel::before, .ui::before { display: none; }
  .step h3 { opacity: 1 !important; }
  .paper input:focus-visible, .paper select:focus-visible { outline: 2px solid Highlight; outline-offset: 3px; }
  .line::after { display: none; }
  .submit, .pill { border: 1px solid ButtonText; }
  .seg-bead { background: Highlight; }
}
