/*
 * The landing's styles. Every design value is a token from tokens.css
 * (generated from @nexo/design, the effects layer included); literals here
 * are structural only — the measure, hairlines, breakpoints, transforms,
 * unitless multipliers. Colours never appear as literals (tested): a tint,
 * a glow or a gradient is a palette role mixed at a strength.
 * Brand rules: design/brand/README.md, with the visual refresh's lift of the
 * "flat, no gradients" line — depth, palette light and calm motion, all of it
 * off under reduced motion. Gradients stay rare: the hero's one ambient light,
 * the beta band's one glow, the relevance meter and the edge fades (masks).
 * Everything else is flat — hierarchy comes from shadow, border, spacing, type
 * and a flat tint.
 */

/* Inter, self-hosted beside the page (staged from apps/web/public/fonts). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0329,
    U+1E00-1EFF, U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0329,
    U+1E00-1EFF, U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0329,
    U+1E00-1EFF, U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------- composites */

/*
 * Palette inks: a role pulled toward the text colour, so the same name is a
 * deeper tone on the light page and a lighter one on the dark page — legible
 * as text in both (4.5:1 on the page, checked for the small sizes).
 * `-strong` is for small text on a coral tint.
 */
:root {
  --ink-brand: color-mix(in srgb, var(--nexo-color-brand) 68%, var(--nexo-color-text-primary));
  --ink-brand-strong: color-mix(
    in srgb,
    var(--nexo-color-brand) 55%,
    var(--nexo-color-text-primary)
  );
  --ink-info: color-mix(in srgb, var(--nexo-color-info) 78%, var(--nexo-color-text-primary));
  --ink-success: color-mix(in srgb, var(--nexo-color-success) 55%, var(--nexo-color-text-primary));
  --ink-warning: color-mix(in srgb, var(--nexo-color-warning) 62%, var(--nexo-color-text-primary));
  /* Secondary text that stays above 4.5:1 over the ambient light. */
  --text-soft: color-mix(
    in srgb,
    var(--nexo-color-text-secondary) 70%,
    var(--nexo-color-text-primary)
  );
  --ring: 0 0 0 1px color-mix(in srgb, var(--nexo-color-border) 85%, transparent);
  /* The band is the darkest neutral in both schemes; its ink is white in both. */
  --band-bg: var(--nexo-color-scrim);
  --band-ink: var(--nexo-color-on-accent);
  --header-height: 4rem;
  /* The sample's one-shot triage: the first card is marked done at --t-done
     (after every card has risen in) and leaves at --t-leave. */
  --t-done: calc(var(--nexo-duration-celebrate) * 2);
  --t-leave: calc(var(--t-done) + var(--nexo-duration-enter));
}

@media (prefers-color-scheme: dark) {
  :root {
    --band-ink: var(--nexo-color-text-primary);
  }
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--nexo-space-md));
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--nexo-color-background);
  color: var(--nexo-color-text-primary);
  font-family: var(--nexo-font-family);
  font-size: var(--nexo-font-size-md);
  line-height: var(--nexo-line-height-normal);
  letter-spacing: var(--nexo-letter-spacing);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: color-mix(in srgb, var(--nexo-color-brand) 28%, transparent);
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

svg {
  display: block;
  flex: none;
}

:focus-visible {
  outline: 2px solid var(--nexo-color-accent);
  outline-offset: 2px;
  border-radius: var(--nexo-radius-sm);
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--nexo-space-lg);
}

.muted {
  color: var(--nexo-color-text-secondary);
}

.skip {
  position: absolute;
  left: var(--nexo-space-md);
  top: calc(-1 * var(--nexo-space-xxl));
  padding: var(--nexo-space-sm) var(--nexo-space-md);
  background: var(--nexo-color-accent);
  color: var(--nexo-color-on-accent);
  border-radius: var(--nexo-radius-control);
  z-index: 20;
}

.skip:focus {
  top: var(--nexo-space-md);
}

/* The live dot: coral, breathing. */
.live-dot {
  position: relative;
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--nexo-radius-full);
  background: var(--nexo-color-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nexo-color-brand) 22%, transparent);
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--nexo-color-brand);
  animation: ping calc(var(--nexo-duration-enter) * 4) var(--nexo-easing-decelerate) infinite;
}

/* ------------------------------------------------------------- controls */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--nexo-space-sm);
  min-height: 44px;
  padding-inline: var(--nexo-space-md);
  border: 1px solid transparent;
  border-radius: var(--nexo-radius-control);
  font-size: var(--nexo-font-size-sm);
  font-weight: var(--nexo-weight-medium);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--nexo-duration-base) var(--nexo-easing-standard),
    border-color var(--nexo-duration-base) var(--nexo-easing-standard),
    box-shadow var(--nexo-duration-slow) var(--nexo-easing-emphasized),
    transform var(--nexo-duration-slow) var(--nexo-easing-emphasized);
}

.button:hover {
  transform: translateY(var(--nexo-lift));
}

.button:active {
  transform: scale(var(--nexo-press));
  transition-duration: var(--nexo-duration-fast);
}

.button-large {
  min-height: 3rem;
  padding-inline: var(--nexo-space-lg);
  border-radius: var(--nexo-radius-card);
  font-size: var(--nexo-font-size-md);
}

.button-primary {
  background: var(--nexo-color-accent);
  color: var(--nexo-color-on-accent);
  box-shadow: var(--nexo-glow-brand), var(--nexo-shadow-sm);
}

.button-primary:hover {
  background: var(--nexo-color-accent-pressed);
  box-shadow:
    0 12px calc(var(--nexo-glow-blur) * 1.5)
      color-mix(in srgb, var(--nexo-color-brand) calc(var(--nexo-glow-strength) * 1.5), transparent),
    var(--nexo-shadow-md);
}

.button-secondary {
  background: var(--nexo-glass);
  border-color: var(--nexo-color-border);
  color: var(--nexo-color-text-primary);
  box-shadow: var(--nexo-shadow-sm);
}

.button-secondary:hover {
  background: var(--nexo-color-muted);
}

/* On the dark band: the band's ink as the fill, the band as the text. */
.button-band {
  background: var(--band-ink);
  color: var(--band-bg);
  box-shadow: var(--nexo-shadow-md);
}

.button-band:hover {
  box-shadow: var(--nexo-shadow-lg);
}

.button-band:focus-visible {
  outline-color: var(--band-ink);
}

.button-arrow {
  display: inline-flex;
  transition: transform var(--nexo-duration-slow) var(--nexo-easing-overshoot);
}

.button:hover .button-arrow {
  transform: translateX(var(--nexo-space-xs));
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--nexo-font-size-sm);
  font-weight: var(--nexo-weight-medium);
  color: var(--text-soft);
  text-decoration: none;
  transition: color var(--nexo-duration-base) var(--nexo-easing-standard);
}

.link-quiet:hover {
  color: var(--nexo-color-text-primary);
  text-decoration: underline;
}

.kicker {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: var(--nexo-space-sm);
  color: var(--ink-brand);
  font-size: var(--nexo-font-size-sm);
  font-weight: var(--nexo-weight-semibold);
}

.kicker-icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--nexo-radius-control);
  background: color-mix(in srgb, var(--nexo-color-brand) 14%, var(--nexo-color-surface));
  box-shadow: var(--ring), var(--nexo-shadow-sm);
}

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

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nexo-glass);
  -webkit-backdrop-filter: var(--nexo-glass-filter);
  backdrop-filter: var(--nexo-glass-filter);
  border-bottom: 1px solid color-mix(in srgb, var(--nexo-color-border) 70%, transparent);
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nexo-space-md);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--nexo-space-sm);
  min-height: 44px;
  text-decoration: none;
}

/* The supplied mark on its own light tile, never pretended transparent. */
.brand-mark {
  display: block;
  flex: none;
  border-radius: var(--nexo-radius-control);
  box-shadow: var(--ring), var(--nexo-shadow-sm);
}

.brand-name {
  font-size: var(--nexo-font-size-lg);
  font-weight: var(--nexo-weight-semibold);
  letter-spacing: -0.02em;
}

.bar-nav {
  display: flex;
  align-items: center;
  gap: var(--nexo-space-md);
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
}

/* Ambient light: the page's one gradient of light — a single coral glow,
   soft by its own falloff, drifting slowly behind the headline. */
.ambient {
  position: absolute;
  inset: calc(-1 * var(--header-height)) 0 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, var(--nexo-color-scrim) 65%, transparent);
  mask-image: linear-gradient(180deg, var(--nexo-color-scrim) 65%, transparent);
}

.orb {
  --orb: var(--nexo-color-brand);
  --strength: calc(var(--nexo-ambient-strength) * 1.4);
  position: absolute;
  top: -22rem;
  left: calc(50% - 40rem);
  width: 80rem;
  aspect-ratio: 1.6;
  border-radius: var(--nexo-radius-full);
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--orb) var(--strength), transparent),
    color-mix(in srgb, var(--orb) calc(var(--strength) * 0.35), transparent) 55%,
    transparent
  );
  animation: drift var(--nexo-duration-drift) ease-in-out infinite alternate;
  will-change: transform;
}

/* On the dark page a thin coral over near-black reads as rust: there the light
   is coral lifted toward the text colour — light, not mud. */
@media (prefers-color-scheme: dark) {
  .orb {
    --orb: color-mix(in srgb, var(--nexo-color-brand) 82%, var(--nexo-color-text-primary));
  }
}

.hero-inner {
  display: grid;
  gap: var(--nexo-space-xxl);
  padding-block: calc(var(--nexo-space-xxl) * 1.25) var(--nexo-space-xxl);
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 62rem;
  margin-inline: auto;
  text-align: center;
}

.hero-text > * {
  animation: rise var(--nexo-duration-enter) var(--nexo-easing-emphasized) backwards;
}

.hero-text > :nth-child(2) {
  animation-delay: calc(var(--nexo-stagger) * 2);
}

.hero-text > :nth-child(3) {
  animation-delay: calc(var(--nexo-stagger) * 4);
}

.hero-text > :nth-child(4) {
  animation-delay: calc(var(--nexo-stagger) * 6);
}

.hero-text > :nth-child(5) {
  animation-delay: calc(var(--nexo-stagger) * 8);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--nexo-space-sm);
  margin-bottom: var(--nexo-space-lg);
  padding: var(--nexo-space-xs) var(--nexo-space-md) var(--nexo-space-xs) var(--nexo-space-sm);
  border-radius: var(--nexo-radius-full);
  background: var(--nexo-glass);
  -webkit-backdrop-filter: var(--nexo-glass-filter);
  backdrop-filter: var(--nexo-glass-filter);
  box-shadow: var(--ring), var(--nexo-shadow-sm);
  font-size: var(--nexo-font-size-sm);
  font-weight: var(--nexo-weight-medium);
}

.eyebrow .live-dot {
  margin-inline-start: var(--nexo-space-xs);
}

h1 {
  max-width: 22ch;
  font-size: clamp(
    var(--nexo-font-size-xxxl),
    calc(var(--nexo-font-size-md) + 4.4vw),
    var(--nexo-font-size-hero)
  );
  font-weight: var(--nexo-weight-semibold);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* The key phrase in the palette's energy: solid coral, legible in both
   schemes (the ink follows the text colour). */
.ink {
  color: var(--ink-brand);
}

.lead {
  max-width: 46ch;
  margin-top: var(--nexo-space-lg);
  color: var(--text-soft);
  font-size: var(--nexo-font-size-lg);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--nexo-space-sm) var(--nexo-space-lg);
  margin-top: var(--nexo-space-xl);
}

.actions .link-quiet {
  font-size: var(--nexo-font-size-md);
}

.assurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--nexo-space-sm) var(--nexo-space-lg);
  margin-top: var(--nexo-space-lg);
  color: var(--text-soft);
  font-size: var(--nexo-font-size-sm);
}

.assurances li {
  display: inline-flex;
  align-items: center;
  gap: var(--nexo-space-xs);
}

.assurances svg {
  color: var(--nexo-color-text-primary);
}

/* -------------------------------------------- the sample: a day, floating */

.sample {
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
}

.stage {
  position: relative;
  perspective: 1800px;
}

.window {
  position: relative;
  padding: var(--nexo-space-md);
  border-radius: calc(var(--nexo-radius-xl) * 1.5);
  background: var(--nexo-glass);
  -webkit-backdrop-filter: var(--nexo-glass-filter);
  backdrop-filter: var(--nexo-glass-filter);
  box-shadow: var(--ring), var(--nexo-shadow-lg);
  transform-origin: 50% 0;
  /* Leans in from the back and settles flat, so the product's text stays crisp. */
  animation: tilt-in var(--nexo-duration-celebrate) var(--nexo-easing-emphasized)
    calc(var(--nexo-stagger) * 6) backwards;
}

.window-bar {
  display: grid;
  gap: var(--nexo-space-sm);
  padding: var(--nexo-space-xs) var(--nexo-space-sm) var(--nexo-space-md);
}

.window-head {
  display: flex;
  align-items: center;
  gap: var(--nexo-space-sm);
}

.window-title {
  font-size: var(--nexo-font-size-lg);
  font-weight: var(--nexo-weight-semibold);
  letter-spacing: -0.02em;
}

/* The count: 3, then 2 when the first card leaves — the two numbers share one
   cell and cross over, and the pill bumps. */
.window-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  padding-inline: var(--nexo-space-sm);
  overflow: hidden;
  border-radius: var(--nexo-radius-full);
  background: color-mix(in srgb, var(--nexo-color-brand) 12%, transparent);
  color: var(--ink-brand-strong);
  font-size: var(--nexo-font-size-sm);
  font-weight: var(--nexo-weight-semibold);
  line-height: var(--nexo-line-height-normal);
  font-variant-numeric: tabular-nums;
  animation:
    pop var(--nexo-duration-slow) var(--nexo-easing-overshoot)
      calc(var(--nexo-duration-celebrate) + var(--nexo-stagger) * 6) backwards,
    bump var(--nexo-duration-enter) var(--nexo-easing-overshoot)
      calc(var(--t-leave) + var(--nexo-duration-base));
}

.window-count > span {
  grid-area: 1 / 1;
}

.count-from {
  opacity: 0;
  translate: 0 -100%;
  animation: count-out var(--nexo-duration-slow) var(--nexo-easing-emphasized)
    calc(var(--t-leave) + var(--nexo-duration-base)) backwards;
}

.count-to {
  animation: count-in var(--nexo-duration-slow) var(--nexo-easing-emphasized)
    calc(var(--t-leave) + var(--nexo-duration-base)) backwards;
}

.window-note {
  margin-inline-start: auto;
  color: var(--text-soft);
  font-size: var(--nexo-font-size-xs);
  font-weight: var(--nexo-weight-medium);
}

/* Progress: a thin track that fills to a third, in solid coral, as the card leaves. */
.window-progress {
  display: flex;
  align-items: center;
  gap: var(--nexo-space-md);
}

.progress-track {
  flex: 1;
  height: 0.375rem;
  overflow: hidden;
  border-radius: var(--nexo-radius-full);
  background: color-mix(in srgb, var(--nexo-color-text-primary) 8%, transparent);
}

.progress-fill {
  display: block;
  width: calc(100% / 3);
  height: 100%;
  border-radius: inherit;
  background: var(--nexo-color-brand);
  box-shadow: 0 0 var(--nexo-space-sm) color-mix(in srgb, var(--nexo-color-brand) 40%, transparent);
  transform-origin: 0 50%;
  animation: fill var(--nexo-duration-celebrate) var(--nexo-easing-emphasized) var(--t-leave)
    backwards;
}

.progress-label {
  color: var(--text-soft);
  font-size: var(--nexo-font-size-xs);
  font-weight: var(--nexo-weight-semibold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  animation: count-in var(--nexo-duration-slow) var(--nexo-easing-emphasized)
    calc(var(--t-leave) + var(--nexo-stagger) * 4) backwards;
}

/*
 * The cards stack with equal gaps. Each sits in a row whose single grid
 * track can close (1fr → 0fr): that is how the triaged card leaves without
 * a jump — it slides away, then its row closes. It is the LAST card, so
 * nothing on screen moves when it closes (no layout shift above the fold):
 * only the window's bottom edge comes up.
 */
.findings {
  display: flex;
  flex-direction: column;
  gap: var(--nexo-space-md);
}

.finding-row {
  --i: 0;
  display: grid;
  grid-template-rows: 1fr;
  min-height: 0;
}

.finding-row:nth-child(2) {
  --i: 1;
}

.finding-row:nth-child(3) {
  --i: 2;
}

/*
 * A finding: the anatomy of the product's rows, on a plain card marked by its
 * source with the app's colours (calendar → success, mail → info, both → the
 * two; the catalogue below uses the same) — an edge, a tinted tile and the
 * source chip — entering one after another, then floating, each on its own
 * phase.
 */
.finding {
  --tint-a: var(--nexo-color-success);
  --tint-b: var(--nexo-color-success);
  --tint-ink: var(--ink-success);
  --ring-focus: 0 0 0 1px color-mix(in srgb, var(--nexo-color-brand) 35%, transparent);
  --rise: rise var(--nexo-duration-enter) var(--nexo-easing-emphasized)
    calc(var(--nexo-duration-slow) * 2 + var(--nexo-stagger) * 3 * var(--i)) backwards;
  --float: float calc(var(--nexo-duration-drift) / 4) ease-in-out
    calc(var(--nexo-duration-drift) / -10 * var(--i)) infinite;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--nexo-space-md);
  min-height: 0;
  padding: var(--nexo-space-md);
  overflow: hidden;
  border-radius: var(--nexo-radius-xl);
  background: var(--nexo-color-surface);
  box-shadow: var(--ring), var(--nexo-shadow-md);
  animation: var(--rise), var(--float);
}

/* The source's colour as an edge, beside its name (never colour alone); two
   sources split it into two flat halves. */
.finding::before,
.finding::after {
  content: '';
  position: absolute;
  left: 0;
  width: 3px;
}

.finding::before {
  top: var(--nexo-space-md);
  bottom: 50%;
  border-radius: 0 var(--nexo-radius-full) 0 0;
  background: var(--tint-a);
}

.finding::after {
  top: 50%;
  bottom: var(--nexo-space-md);
  border-radius: 0 0 var(--nexo-radius-full) 0;
  background: var(--tint-b);
}

.finding-mail {
  --tint-a: var(--nexo-color-info);
  --tint-b: var(--nexo-color-info);
  --tint-ink: var(--ink-info);
}

.finding-both {
  --tint-b: var(--nexo-color-info);
}

.finding-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--nexo-radius-card);
  background: color-mix(in srgb, var(--tint-a) 14%, var(--nexo-color-surface));
  color: var(--tint-ink);
}

.finding-title {
  font-size: var(--nexo-font-size-md);
  font-weight: var(--nexo-weight-semibold);
  line-height: var(--nexo-line-height-tight);
  letter-spacing: -0.01em;
}

.finding-summary {
  margin-top: var(--nexo-space-xs);
  color: var(--text-soft);
  font-size: var(--nexo-font-size-sm);
}

.finding-actions {
  display: flex;
  gap: var(--nexo-space-sm);
  margin-top: var(--nexo-space-md);
}

/* Action chips look like actions: neutral, the primary one outlined in the
   accent with its check; pressed, it fills with the accent. Green is the
   calendar's colour on this page, never "done". */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--nexo-space-xs);
  min-height: 2rem;
  padding-inline: var(--nexo-space-sm);
  border: 1px solid var(--nexo-color-border);
  border-radius: var(--nexo-radius-control);
  background: var(--nexo-color-surface);
  color: var(--text-soft);
  font-size: var(--nexo-font-size-sm);
  font-weight: var(--nexo-weight-medium);
}

.chip-done {
  border-color: color-mix(in srgb, var(--nexo-color-accent) 32%, transparent);
  color: var(--nexo-color-text-primary);
  box-shadow: var(--nexo-shadow-sm);
}

.finding-source {
  align-self: start;
  padding: 0 var(--nexo-space-sm);
  border: 1px solid color-mix(in srgb, var(--tint-a) 30%, transparent);
  border-radius: var(--nexo-radius-full);
  background: color-mix(in srgb, var(--tint-a) 8%, var(--nexo-color-surface));
  color: var(--nexo-color-text-primary);
  font-size: var(--nexo-font-size-sm);
  font-weight: var(--nexo-weight-medium);
  line-height: var(--nexo-line-height-normal);
  white-space: nowrap;
}

/*
 * The triage, once. Every rule below is written as the END state, so reduced
 * motion (which drops every animation) simply shows it: two cards, count 2,
 * the bar at a third, the toast. Each animation fills backwards from its
 * start state.
 *  1. --t-done: the card in focus (lifted, coral ring) has its Done chip
 *     pressed; the chip fills with the accent, the ring follows.
 *  2. --t-leave: the card slides away and fades, then its row closes.
 *     The count crosses 3 → 2 and the bar fills to a third.
 *  3. The toast pops.
 */
.finding-row-done {
  grid-template-rows: 0fr;
  margin-top: calc(-1 * var(--nexo-space-md));
  opacity: 0;
  visibility: hidden;
  animation: dismiss var(--nexo-duration-celebrate) var(--nexo-easing-standard) var(--t-leave)
    backwards;
}

.finding-row-done .finding {
  scale: 1.02;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--nexo-color-accent) 45%, transparent),
    var(--nexo-shadow-lg);
  animation:
    var(--rise),
    var(--float),
    done-ring var(--nexo-duration-slow) var(--nexo-easing-standard)
      calc(var(--t-done) + var(--nexo-duration-base)) backwards;
}

.finding-row-done .chip-done {
  border-color: var(--nexo-color-accent);
  background: var(--nexo-color-accent);
  color: var(--nexo-color-on-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nexo-color-accent) 14%, transparent);
  animation: mark var(--nexo-duration-enter) var(--nexo-easing-standard) var(--t-done) backwards;
}

/* A done finding, celebrated: what the product feels like when you act. */
.toast {
  position: absolute;
  right: calc(-1 * var(--nexo-space-lg));
  bottom: calc(-1 * var(--nexo-space-lg));
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--nexo-space-sm);
  padding: var(--nexo-space-sm) var(--nexo-space-md) var(--nexo-space-sm) var(--nexo-space-sm);
  border-radius: var(--nexo-radius-full);
  background: var(--nexo-glass);
  -webkit-backdrop-filter: var(--nexo-glass-filter);
  backdrop-filter: var(--nexo-glass-filter);
  box-shadow: var(--ring), var(--nexo-shadow-lg);
  font-size: var(--nexo-font-size-sm);
  font-weight: var(--nexo-weight-semibold);
  animation:
    pop var(--nexo-duration-enter) var(--nexo-easing-overshoot)
      calc(var(--t-leave) + var(--nexo-duration-celebrate) * 0.6) backwards,
    float calc(var(--nexo-duration-drift) / 3) ease-in-out calc(var(--nexo-duration-drift) / -7)
      infinite;
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--nexo-radius-full);
  background: color-mix(in srgb, var(--nexo-color-brand) 16%, transparent);
  color: var(--ink-brand-strong);
}

.sample figcaption {
  margin-top: var(--nexo-space-xl);
  color: var(--text-soft);
  font-size: var(--nexo-font-size-sm);
  text-align: center;
}

/* -------------------------------------------------------------- sections */

.section {
  position: relative;
  padding-block: calc(var(--nexo-space-xxl) * 1.25);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--nexo-space-sm);
  max-width: 40rem;
}

h2 {
  font-size: clamp(
    var(--nexo-font-size-xxl),
    calc(var(--nexo-font-size-md) + 1.6vw),
    var(--nexo-font-size-display)
  );
  font-weight: var(--nexo-weight-semibold);
  line-height: var(--nexo-line-height-tight);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h3 {
  font-size: var(--nexo-font-size-lg);
  font-weight: var(--nexo-weight-semibold);
  line-height: var(--nexo-line-height-tight);
  letter-spacing: -0.015em;
}

/* How it works: three cards on a line, a coral thread between their numbers. */
.steps {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: var(--nexo-space-md);
  margin-top: var(--nexo-space-xl);
}

.step {
  position: relative;
  padding: var(--nexo-space-lg);
  border-radius: var(--nexo-radius-xl);
  background: var(--nexo-color-surface);
  box-shadow: var(--ring), var(--nexo-shadow-sm);
  transition:
    translate var(--nexo-duration-slow) var(--nexo-easing-emphasized),
    box-shadow var(--nexo-duration-slow) var(--nexo-easing-emphasized);
}

.step:hover {
  translate: 0 calc(var(--nexo-lift) * 2);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--nexo-color-brand) 35%, transparent),
    var(--nexo-shadow-lg);
}

.step p {
  margin-top: var(--nexo-space-sm);
  color: var(--text-soft);
}

.step-number {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--nexo-space-lg);
  border-radius: var(--nexo-radius-card);
  background: var(--nexo-color-accent);
  color: var(--nexo-color-on-accent);
  font-size: var(--nexo-font-size-md);
  font-weight: var(--nexo-weight-semibold);
  font-variant-numeric: tabular-nums;
  box-shadow:
    0 0 0 4px var(--nexo-color-surface),
    var(--nexo-shadow-sm);
}

/* Privacy: five facts as a bento of plain cards. */
.privacy .muted {
  color: var(--text-soft);
  font-size: var(--nexo-font-size-sm);
}

.facts {
  display: grid;
  gap: var(--nexo-space-md);
  margin-top: var(--nexo-space-xl);
}

.fact {
  --tint: var(--nexo-color-info);
  --tint-ink: var(--ink-info);
  display: flex;
  flex-direction: column;
  gap: var(--nexo-space-md);
  padding: var(--nexo-space-lg);
  border-radius: var(--nexo-radius-xl);
  background: var(--nexo-color-surface);
  box-shadow: var(--ring), var(--nexo-shadow-sm);
  color: var(--text-soft);
}

/* Neutral tiles between the coloured ones; green is the calendar's colour. */
.fact:nth-child(2),
.fact:nth-child(5) {
  --tint: var(--nexo-color-text-primary);
  --tint-ink: var(--nexo-color-text-primary);
}

.fact:nth-child(3) {
  --tint: var(--nexo-color-brand);
  --tint-ink: var(--ink-brand);
}

.fact-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--nexo-radius-card);
  background: color-mix(in srgb, var(--tint) 12%, var(--nexo-color-surface));
  color: var(--tint-ink);
}

.fact strong {
  display: block;
  margin-bottom: var(--nexo-space-xs);
  color: var(--nexo-color-text-primary);
  font-size: var(--nexo-font-size-lg);
  font-weight: var(--nexo-weight-semibold);
  letter-spacing: -0.015em;
}

/* The beta band: the darkest neutral, lit by one soft coral glow behind the button. */
.beta {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: var(--nexo-space-xl);
  align-items: center;
  overflow: hidden;
  padding: var(--nexo-space-xxl) var(--nexo-space-xl);
  border-radius: calc(var(--nexo-radius-xl) * 1.5);
  background: var(--band-bg);
  color: var(--band-ink);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--band-ink) 8%, transparent),
    var(--nexo-shadow-lg);
}

.kicker-band {
  display: inline-flex;
  align-items: center;
  gap: var(--nexo-space-sm);
  margin-bottom: var(--nexo-space-md);
  color: color-mix(in srgb, var(--nexo-color-brand) 55%, var(--band-ink));
}

.beta h2 {
  font-size: clamp(
    var(--nexo-font-size-xxxl),
    calc(var(--nexo-font-size-md) + 2.6vw),
    calc(var(--nexo-font-size-display) * 1.25)
  );
}

.beta p:not(.kicker) {
  max-width: 52ch;
  margin-top: var(--nexo-space-md);
  color: color-mix(in srgb, var(--band-ink) 78%, transparent);
  font-size: var(--nexo-font-size-lg);
}

.beta .button {
  justify-self: start;
}

/* --------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid color-mix(in srgb, var(--nexo-color-border) 70%, transparent);
  font-size: var(--nexo-font-size-sm);
}

.footer-inner {
  display: grid;
  gap: var(--nexo-space-lg);
  padding-block: var(--nexo-space-xl) var(--nexo-space-lg);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--nexo-space-xs);
}

.footer-brand .muted,
.footer-legal {
  color: var(--text-soft);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--nexo-space-lg);
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-soft);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--nexo-color-text-primary);
  text-decoration: underline;
}

.footer-legal {
  padding-top: var(--nexo-space-md);
  border-top: 1px solid color-mix(in srgb, var(--nexo-color-border) 70%, transparent);
  font-size: var(--nexo-font-size-xs);
}

/* ------------------------------------------------ the catalogue carousel */

/*
 * What Nexo notices: every idea of the catalogue as a card on
 * one long row (generated: scripts/ideas.mjs), ending on a way in. It is a
 * plain scroller — swipe, trackpad, Shift + wheel, the scrollbar, or the
 * arrow keys once focused — that snaps a card to the centre. The row opens
 * on a full shelf: on the third card where the browser can say so, else at
 * the page's content edge. Where the browser has view timelines the cards
 * turn toward the centre like a cover flow (transform and opacity only);
 * where it has scroll buttons, previous and next replace the scrollbar.
 * Without either, the same cards, flat and fully visible. Cards off screen
 * skip rendering.
 */
.ideas {
  padding-bottom: var(--nexo-space-xl);
}

.ideas .section-head {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

.ideas .kicker {
  align-self: center;
}

.ideas .section-head .muted {
  color: var(--text-soft);
  font-size: var(--nexo-font-size-lg);
  text-wrap: balance;
}

.ideas-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ideas-frame {
  position: relative;
}

.ideas-track {
  --card: min(18.5rem, 76vw);
  --card-height: 14.5rem;
  --fade: min(12%, 8rem);
  --gutter: var(--nexo-space-lg);
  /* Where .wrap's content starts, and where a card sits centred. */
  --edge: max(var(--gutter), (100% - 1120px) / 2 + var(--gutter));
  --centre: calc((100% - var(--card)) / 2);
  display: flex;
  gap: var(--nexo-space-md);
  margin-top: var(--nexo-space-md);
  /* Room for the centre card's lifted shadow: the row clips vertically. */
  padding: var(--nexo-space-lg) var(--centre) var(--nexo-space-xl) var(--edge);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--nexo-color-border) transparent;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    var(--nexo-color-scrim) var(--fade),
    var(--nexo-color-scrim) calc(100% - var(--fade)),
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    var(--nexo-color-scrim) var(--fade),
    var(--nexo-color-scrim) calc(100% - var(--fade)),
    transparent
  );
}

/* Focused, the row drops its fades and shows the ring, inset so it is whole
   at the viewport's edges: the whole row is what the arrow keys move. */
.ideas-track:focus-visible {
  outline-offset: calc(-1 * var(--nexo-space-xs));
  border-radius: var(--nexo-radius-xl);
  -webkit-mask-image: none;
  mask-image: none;
}

.ideas-list {
  display: flex;
  flex: none;
  gap: var(--nexo-space-md);
}

/* The slot is what snaps and what the cover flow measures; the card inside
   it is what moves. (A snap area follows its box's transform: animating the
   slot itself would move the snap points while the row settles.) The card,
   not the slot, skips rendering off screen: containment on the slot would
   clip the card's shadow. */
.ideas-list > li,
.ideas-end {
  position: relative;
  flex: none;
  width: var(--card);
  height: var(--card-height);
  scroll-snap-align: center;
  view-timeline: --idea inline;
}

.idea,
.ideas-more {
  position: relative;
  height: 100%;
  padding: var(--nexo-space-lg);
  border-radius: var(--nexo-radius-xl);
  box-shadow: var(--ring), var(--nexo-shadow-md);
}

.idea {
  --src: var(--nexo-color-text-primary);
  --glyph: var(--nexo-color-text-primary);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    'icon chip meter'
    'text text text'
    'tags tags tags';
  align-items: center;
  gap: var(--nexo-space-md) var(--nexo-space-sm);
  background: var(--nexo-color-surface);
  content-visibility: auto;
  contain-intrinsic-size: auto 18.5rem auto var(--card-height);
}

/* The app's source colours, page-wide (the sample above uses them too):
   mail info, calendar success, files warning. People and findings stay
   neutral; coral is the page's energy, not a source. */
.idea-mail {
  --src: var(--nexo-color-info);
  --glyph: var(--ink-info);
}

.idea-calendar {
  --src: var(--nexo-color-success);
  --glyph: var(--ink-success);
}

.idea-files {
  --src: var(--nexo-color-warning);
  --glyph: var(--ink-warning);
}

/* The source's tile, as in the sample's finding cards: a flat tint of its
   colour, the glyph in the colour's ink. People and findings: a grey tile. */
.idea-icon {
  grid-area: icon;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5625rem;
  border-radius: var(--nexo-radius-card);
  background: color-mix(in srgb, var(--src) 14%, var(--nexo-color-surface));
  color: var(--glyph);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.idea-people .idea-icon,
.idea-meta .idea-icon {
  background: var(--nexo-color-muted);
}

/* Would cross the person's data with an outside public source: a neutral
   outlined chip beside the icon. */
.idea-public {
  grid-area: chip;
  justify-self: start;
  margin-inline-start: var(--nexo-space-xs);
  padding: 0 var(--nexo-space-sm);
  border: 1px solid var(--nexo-color-border);
  border-radius: var(--nexo-radius-full);
  color: var(--text-soft);
  font-size: var(--nexo-font-size-xs);
  font-weight: var(--nexo-weight-medium);
  line-height: var(--nexo-line-height-relaxed);
  white-space: nowrap;
}

/* Relevance: a meter of five segments, the first n filled; the words are
   for screen readers, and the foot's legend names it for the eye. Segments,
   not dots: dots would read as a menu. */
.idea-meter {
  --r: 0;
  grid-area: meter;
  width: 3rem;
  height: 0.3125rem;
  border-radius: var(--nexo-radius-full);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--nexo-color-text-primary) 62%, transparent) calc(var(--r) * 20%),
    color-mix(in srgb, var(--nexo-color-text-primary) 14%, transparent) 0
  );
  -webkit-mask: linear-gradient(90deg, var(--nexo-color-scrim) 80%, transparent 0) 0 0 / 20% 100%
    repeat-x;
  mask: linear-gradient(90deg, var(--nexo-color-scrim) 80%, transparent 0) 0 0 / 20% 100% repeat-x;
}

.idea-r1 {
  --r: 1;
}

.idea-r2 {
  --r: 2;
}

.idea-r3 {
  --r: 3;
}

.idea-r4 {
  --r: 4;
}

.idea-r5 {
  --r: 5;
}

.idea-text {
  grid-area: text;
  align-self: start;
  font-size: var(--nexo-font-size-lg);
  font-weight: var(--nexo-weight-semibold);
  line-height: var(--nexo-line-height-tight);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.idea-tags {
  grid-area: tags;
  display: flex;
  gap: var(--nexo-space-xs);
  min-width: 0;
  overflow: hidden;
}

.idea-tags span {
  padding: 0 var(--nexo-space-sm);
  border: 1px solid var(--nexo-color-border);
  border-radius: var(--nexo-radius-full);
  color: var(--text-soft);
  font-size: var(--nexo-font-size-xs);
  font-weight: var(--nexo-weight-medium);
  line-height: var(--nexo-line-height-relaxed);
  white-space: nowrap;
}

/* The source chip: its colour as the edge and a faint fill, the name in text colour. */
.idea-tags span:first-child {
  border-color: color-mix(in srgb, var(--src) 35%, transparent);
  background: color-mix(in srgb, var(--src) 8%, var(--nexo-color-surface));
  color: var(--nexo-color-text-primary);
}

/* The last stop: not an idea but a way in, on a flat coral tint. */
.ideas-more {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--nexo-space-sm);
  background: color-mix(in srgb, var(--nexo-color-brand) 7%, var(--nexo-color-surface));
}

.ideas-more-title {
  font-size: var(--nexo-font-size-xl);
  font-weight: var(--nexo-weight-semibold);
  line-height: var(--nexo-line-height-tight);
  letter-spacing: -0.015em;
}

.ideas-more-body {
  margin-bottom: var(--nexo-space-sm);
  color: var(--text-soft);
  font-size: var(--nexo-font-size-sm);
}

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

.ideas-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--nexo-space-xs) var(--nexo-space-lg);
  min-height: 44px;
  color: var(--text-soft);
  font-size: var(--nexo-font-size-sm);
}

/* The hint names what moves the row: a swipe on touch, the arrows or a
   sideways scroll with a mouse or trackpad. Its chevron nudges twice every
   few seconds, so it is still moving when someone scrolls down to it. */
.ideas-hint {
  display: inline-flex;
  align-items: center;
  gap: var(--nexo-space-sm);
  color: var(--nexo-color-text-primary);
  font-weight: var(--nexo-weight-medium);
}

.ideas-hint-pointer {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .ideas-hint-touch {
    display: none;
  }

  .ideas-hint-pointer {
    display: inline;
  }
}

.ideas-hint::after {
  content: '';
  width: 0.4375rem;
  height: 0.4375rem;
  border-top: 2px solid var(--nexo-color-brand);
  border-right: 2px solid var(--nexo-color-brand);
  rotate: 45deg;
  animation: nudge calc(var(--nexo-duration-drift) / 4) ease-in-out var(--nexo-duration-celebrate)
    infinite;
}

@keyframes nudge {
  0%,
  12%,
  100% {
    translate: 0 0;
  }

  6%,
  18% {
    translate: var(--nexo-space-sm) 0;
  }

  24% {
    translate: 0 0;
  }
}

.ideas-legend {
  display: inline-flex;
  align-items: center;
  gap: var(--nexo-space-sm);
}

.ideas-legend .idea-meter {
  width: 2.25rem;
}

/* What the "public data" chip means, on its own line under the foot. */
.ideas-public {
  flex-basis: 100%;
  max-width: 44rem;
  text-align: center;
  text-wrap: balance;
}

/* Cover flow: each card turns toward the centre as it nears it — a little
   smaller, dimmer and angled at the edges, drawn inward (so a phone still
   shows its neighbours); square, full and lifted at the centre. Only
   transform and opacity move (the compositor's work): the lift is a large
   shadow on a layer under the card, faded in toward the centre. */
@supports (animation-timeline: view(inline)) {
  .idea,
  .ideas-more {
    box-shadow: var(--ring), var(--nexo-shadow-sm);
    animation: coverflow linear both;
    animation-timeline: --idea;
  }

  .ideas-list > li::before,
  .ideas-end::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--nexo-radius-xl);
    box-shadow: var(--nexo-shadow-lg);
    opacity: 0;
    pointer-events: none;
    animation: coverflow-lift linear both;
    animation-timeline: --idea;
  }

  @keyframes coverflow {
    0% {
      opacity: 0.8;
      transform: perspective(60rem) translateX(-10%) rotateY(-14deg) scale(0.88);
    }

    50% {
      opacity: 1;
      transform: none;
    }

    100% {
      opacity: 0.8;
      transform: perspective(60rem) translateX(10%) rotateY(14deg) scale(0.88);
    }
  }

  @keyframes coverflow-lift {
    0%,
    30% {
      opacity: 0;
      transform: perspective(60rem) translateX(-10%) rotateY(-14deg) scale(0.88);
    }

    50% {
      opacity: 1;
      transform: none;
    }

    70%,
    100% {
      opacity: 0;
      transform: perspective(60rem) translateX(10%) rotateY(14deg) scale(0.88);
    }
  }
}

/* The row opens on its third card, the shelf full on both sides, where the
   browser can name a scroller's first position; the start is then centred. */
@supports (scroll-initial-target: nearest) {
  .ideas-track {
    padding-inline-start: var(--centre);
  }

  .ideas-list > li:nth-child(3) {
    scroll-initial-target: nearest;
  }
}

/* Previous and next, where the browser draws scroll buttons: a pair centred
   under the foot, in place of the scrollbar. */
@supports selector(::scroll-button(*)) {
  .ideas-track {
    scrollbar-width: none;
  }

  .ideas-foot {
    padding-bottom: calc(44px + var(--nexo-space-md));
  }

  .ideas-track::scroll-button(*) {
    position: absolute;
    bottom: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--nexo-color-border);
    border-radius: var(--nexo-radius-full);
    background: var(--nexo-glass);
    color: var(--nexo-color-text-primary);
    font-family: var(--nexo-font-family);
    font-size: var(--nexo-font-size-xxl);
    line-height: 1;
    box-shadow: var(--nexo-shadow-sm);
    cursor: pointer;
    transition:
      background-color var(--nexo-duration-base) var(--nexo-easing-standard),
      transform var(--nexo-duration-slow) var(--nexo-easing-emphasized),
      opacity var(--nexo-duration-base) var(--nexo-easing-standard);
  }

  .ideas-track::scroll-button(*):hover {
    background: var(--nexo-color-muted);
    transform: translateY(var(--nexo-lift));
  }

  .ideas-track::scroll-button(*):active {
    transform: scale(var(--nexo-press));
  }

  .ideas-track::scroll-button(*):focus-visible {
    outline: 2px solid var(--nexo-color-accent);
    outline-offset: 2px;
  }

  .ideas-track::scroll-button(*):disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
  }

  .ideas-track::scroll-button(left) {
    content: '‹' / 'Anterior';
    right: calc(50% + var(--nexo-space-xs));
  }

  .ideas-track::scroll-button(right) {
    content: '›' / 'Próximo';
    left: calc(50% + var(--nexo-space-xs));
  }

  .ideas-track:lang(en)::scroll-button(left) {
    content: '‹' / 'Previous';
  }

  .ideas-track:lang(en)::scroll-button(right) {
    content: '›' / 'Next';
  }
}

/* ------------------------------------------------------------ keyframes */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(var(--nexo-space-lg)) scale(0.98);
  }
}

@keyframes tilt-in {
  from {
    opacity: 0;
    transform: rotateX(24deg) translateY(var(--nexo-space-xxl)) scale(0.96);
  }
}

@keyframes pop {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }

  60% {
    opacity: 1;
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 calc(-1 * var(--nexo-space-sm));
  }
}

@keyframes drift {
  to {
    transform: translate3d(6%, 8%, 0) scale(1.08);
  }
}

/* The sample's triage (see "The triage, once"): each fills backwards from
   these start states into the rule's own end state. */
@keyframes mark {
  0% {
    border-color: color-mix(in srgb, var(--nexo-color-accent) 32%, transparent);
    background-color: var(--nexo-color-surface);
    color: var(--nexo-color-text-primary);
    box-shadow: 0 0 0 0 transparent;
  }

  30% {
    scale: var(--nexo-press);
    border-color: color-mix(in srgb, var(--nexo-color-accent) 32%, transparent);
    background-color: var(--nexo-color-surface);
    color: var(--nexo-color-text-primary);
    box-shadow: 0 0 0 0 transparent;
  }

  70% {
    scale: 1.06;
  }
}

@keyframes done-ring {
  from {
    box-shadow: var(--ring-focus), var(--nexo-shadow-lg);
  }
}

@keyframes dismiss {
  0% {
    grid-template-rows: 1fr;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }

  45% {
    grid-template-rows: 1fr;
    margin-top: 0;
    opacity: 0;
    visibility: visible;
    translate: 30% 0;
  }

  46% {
    translate: 0 0;
  }
}

@keyframes bump {
  40% {
    scale: 1.3;
  }
}

@keyframes count-out {
  from {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes count-in {
  from {
    opacity: 0;
    translate: 0 100%;
  }
}

@keyframes fill {
  from {
    scale: 0 1;
  }
}

@keyframes ping {
  from {
    opacity: 0.6;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(2.4);
  }
}

/* Sections rise in as they scroll into view, where the browser has view
   timelines; elsewhere (and under reduced motion) they are simply there. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }

  .step:nth-child(2),
  .fact:nth-child(2),
  .fact:nth-child(5) {
    animation-range: entry 8% entry 68%;
  }

  .step:nth-child(3),
  .fact:nth-child(3) {
    animation-range: entry 16% entry 76%;
  }
}

/* ------------------------------------------------------------ breakpoints */

@media (max-width: 599px) {
  .wrap {
    padding-inline: var(--nexo-space-md);
  }

  .bar-nav {
    gap: var(--nexo-space-sm);
  }

  .hero-inner {
    padding-block: var(--nexo-space-xxl) var(--nexo-space-xl);
  }

  .orb {
    top: -12rem;
    left: calc(50% - 22rem);
    width: 44rem;
  }

  .window {
    padding: var(--nexo-space-sm);
    border-radius: var(--nexo-radius-xl);
  }

  .window-note {
    display: none;
  }

  /* The source label moves above the title; the icon spans both rows. */
  .finding {
    grid-template-columns: auto 1fr;
    row-gap: var(--nexo-space-xs);
    column-gap: var(--nexo-space-sm);
    padding: var(--nexo-space-md) var(--nexo-space-sm) var(--nexo-space-md) var(--nexo-space-md);
  }

  .finding-icon {
    grid-row: 1 / span 2;
  }

  .finding-source {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
  }

  .finding-body {
    grid-column: 2;
    grid-row: 2;
  }

  .toast {
    right: var(--nexo-space-md);
    bottom: calc(-1 * var(--nexo-space-lg));
  }

  .beta {
    padding: var(--nexo-space-xl) var(--nexo-space-lg);
  }

  .beta .button {
    justify-self: stretch;
  }

  .ideas-track {
    --fade: 8%;
    --gutter: var(--nexo-space-md);
  }
}

/* On a phone the row opens on its second card, a neighbour peeking on
   each side. */
@supports (scroll-initial-target: nearest) {
  @media (max-width: 599px) {
    .ideas-list > li:nth-child(2) {
      scroll-initial-target: nearest;
    }

    .ideas-list > li:nth-child(3) {
      scroll-initial-target: none;
    }
  }
}

/* On a phone the row is swiped: no buttons (a phone's scrollbar shows only
   while it moves), and the note gets the line. */
@supports selector(::scroll-button(*)) {
  @media (max-width: 599px) {
    .ideas-track {
      scrollbar-width: thin;
    }

    .ideas-foot {
      padding-bottom: 0;
    }

    .ideas-track::scroll-button(*) {
      display: none;
    }
  }
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--nexo-space-lg);
  }

  /* The thread from the first number to the last, behind the cards: it shows
     only in the gaps between them. */
  .steps::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: calc(var(--nexo-space-lg) + 1.25rem);
    left: calc(var(--nexo-space-lg) + 1.25rem);
    width: calc((100% - 2 * var(--nexo-space-lg)) / 3 * 2 + 2 * var(--nexo-space-lg));
    height: 2px;
    border-radius: var(--nexo-radius-full);
    background: color-mix(in srgb, var(--nexo-color-brand) 45%, transparent);
    pointer-events: none;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact:last-child {
    grid-column: 1 / -1;
  }

  .beta {
    grid-template-columns: 1fr auto;
    padding: calc(var(--nexo-space-xxl) * 1.25) var(--nexo-space-xxl);
  }

  .beta .button {
    justify-self: end;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-legal {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .facts {
    grid-template-columns: repeat(6, 1fr);
  }

  .fact {
    grid-column: span 2;
  }

  .fact:nth-child(n + 4) {
    grid-column: span 3;
  }
}

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

  .idea,
  .ideas-more {
    box-shadow: var(--ring), var(--nexo-shadow-md);
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
