/* Megovia: one stylesheet for every page.
   Colours are defined only in :root; everything else refers to them. */

/* ---------- Tokens ---------- */
:root {
  /* Palette */
  --ink: #0A0A0A;          /* page background, text on lime */
  --surface: #161616;      /* cards and panels */
  --surface-2: #111111;    /* in-between dark sections */
  --line: #262626;         /* rules, borders, grey tags */
  --line-soft: #1F1F1F;    /* section dividers */
  --line-strong: #3A3A3A;  /* secondary button border, column rules, held-out dots */
  --dot: #7A7A7A;          /* customer dots in scene C: at least 3:1 on every dark surface */
  --text: #FAFAFA;         /* main text */
  --text-2: #D4D4D4;       /* secondary text: at least 7:1 on every dark surface */
  --text-3: #A8A8A8;       /* small notes, labels, menu: at least 7:1 on every dark surface */
  --chip-text: #D9D9D9;    /* text on grey tags */
  --lime: #D4FF3F;         /* the only accent */
  --paper: #F4F4F0;        /* light sections and documents */
  --on-ink: #FAFAFA;       /* text on black parts inside light sections (never redefined) */
  --paper-text: #0A0A0A;
  --paper-text-2: #4A4A4A;
  --paper-line: #D6D6CF;

  --focus: var(--lime);    /* focus ring; --ink on lime and paper surfaces */

  /* Type */
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --max: 1200px;
  --gutter: 32px;
  --section-y: 160px;
  --measure: 28em;         /* running text: about 64 characters a line */
  --sheet-r: clamp(24px, 3vw, 48px);   /* corners where a light run meets the dark page */
  --sheet-gap: 36px;       /* dark margin either side of the light sheet (22px tablet, 11px phone) */
  /* Customer dots and bars in scene C and Try it, which live on dark cards (#161616) inside the light
     sheet; every graphic 3:1 or more on the card. Got the campaign, no purchase: mid grey (3.2:1; #5C5C5C
     would be 2.7:1); held out, no purchase: a grey ring (4.2:1); bought anyway: white; bought because of
     the campaign: lime, the card's only lime */
  --scene: #161616;
  --dot-g: #686868;
  --dot-edge: #7A7A7A;
  --dot-w: #FAFAFA;
  --header-h: 72px;

  /* Motion: two curves and four durations (STORYBOARD 2.1); motion.js and agent-scene.js use the same values */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-1: 200ms;
  --dur-2: 400ms;
  --dur-3: 700ms;
  --dur-4: 1000ms;
}

/* ---------- Font: Inter Tight variable, Latin subset, served from this site ---------- */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scroll-padding-bottom: 8px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
p { text-wrap: pretty; }

::selection { background: var(--lime); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Read by screen readers, not shown */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Type ---------- */
.h1 {
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.lead {
  max-width: var(--measure);
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-2);
}

/* Signature line: flat lime, 52 x 6, left-aligned, 20px under a heading.
   Used only under the hero heading, on the report cover and in the demo block. */
.sig {
  display: block;
  width: 52px;
  height: 6px;
  margin-top: 20px;
  border-radius: 3px;
  background: var(--lime);
  transform-origin: left center;
}
.sig-ink { background: var(--ink); }

/* ---------- Logo and buttons ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: filter .15s ease-out, background-color .15s ease-out, border-color .15s ease-out, transform .15s ease-out;
}
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-secondary { border-color: var(--line-strong); color: var(--text); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-header { height: 44px; }
/* While the hero is on screen the header button is white (the hero has its own lime button);
   motion.js adds .past-hero once the hero has left, and the button turns lime in 400 ms */
@media (scripting: enabled) {
  .btn-header {
    background: var(--text);
    transition: filter .15s ease-out, background-color .4s var(--ease-out), transform .15s ease-out;
  }
  .past-hero .btn-header { background: var(--lime); }
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.tag-lime { background: var(--lime); color: var(--ink); }
.tag-grey { background: var(--line); color: var(--chip-text); }
.tag-outline { border-color: var(--text); color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
}
/* The bottom line shows once the page scrolls (see Motion); where that is not supported it is always shown */
.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--header-h);
}
.nav { margin-left: auto; }
.nav ul {
  display: flex;
  gap: 32px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-3);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease-out;
}

/* ---------- Sections ---------- */
/* Sections are set apart by space (and the alternate backgrounds), not by rules */
.section { padding-block: var(--section-y); }

/* Light ground: one beige sheet (#F4F4F0) from Problem to Questions, inset from the screen's edges;
   sections are set apart by space alone. Only the header, hero and footer stay dark. The dark tokens are
   redefined here, so every part reads right on light: text #0A0A0A, secondary text #4A4A4A (8:1), lines
   #E5E5E0. Boxes on the sheet are a darker beige (#ECECE6), never white; the one white thing on the site
   is the report cover, because it is paper. Lime is never text or a thin line on light: buttons are lime
   with black text, signature lines are black. */
.section-paper {
  --text: #0A0A0A;
  --text-2: #4A4A4A;
  --text-3: #4A4A4A;
  --chip-text: #0A0A0A;
  --line: #E5E5E0;
  --line-soft: #E5E5E0;
  --line-strong: #8C8C86;
  --surface: #ECECE6;
  --surface-2: #ECECE6;
  --focus: var(--ink);
  margin-inline: var(--sheet-gap);
  background: var(--paper);
  color: var(--text);
}
.section-paper .sig { background: var(--ink); }
/* Dark to light and back: each light run starts and ends with large rounded corners, so the change of
   ground reads as one sheet laid over the dark page, with the full section padding on either side */
.sheet-top { border-radius: var(--sheet-r) var(--sheet-r) 0 0; }
.sheet-bottom {
  border-bottom-right-radius: var(--sheet-r);
  border-bottom-left-radius: var(--sheet-r);
}
/* The sheet stops short of the screen's edges, so the dark page shows on both sides */
@media (max-width: 1023px) {
  :root { --sheet-gap: 22px; }
}
@media (max-width: 599px) {
  :root { --sheet-gap: 11px; }
}

/* Two columns: heading on the left, content on the right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px 96px;
  align-items: start;
}
.split .lead {
  max-width: 26em;
  margin-top: 32px;
}

/* ---------- Hero ---------- */
/* The hero keeps a shorter top, so its whole composition (and the buttons on phones) stays on the first screen */
.hero { padding-block: clamp(72px, 14vh, 128px) var(--section-y); }
.hero-grid {
  --hero-gap: clamp(64px, 7vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  column-gap: var(--hero-gap);
  align-items: start;
}
/* Each heading line sits in its own mask for the opening (A), with .15em to spare for the glyphs;
   the sentence itself is in .vh, so the heading reads as one. Grid keeps the lines' negative margins
   from collapsing, so the heading is exactly three lines tall. */
.hero .h1 { display: grid; }
.h1-l {
  display: block;
  margin-block: -.15em;
  padding-block: .15em;
  overflow: hidden;
}
.h1-l > span { display: block; }
.sig-hero { background: var(--text); }
.hero-lead {
  max-width: var(--measure);
  margin-top: 28px;
  color: var(--text-2);
  font-size: 20px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.hero-note {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 14px;
}

/* Chart ("the chart born from the headline"): no box. The signature line runs on as the time axis to the
   page's right edge, the chart stands on it beside the heading, the agent's notes are pinned to it, and
   the decision sits level with the buttons. Lines are in a stretched SVG (strokes keep their width);
   the end dot, the bar, the notes and the pins are HTML in % of the plot box (K=3.5 in
   site-v2-src/demo-data/build_v3_markup.mjs). */
.hero { overflow-x: clip; }
.hero-chart4 {
  --rep: #8C8C8C;
  margin: 0;
}
.hero-copy,
.hero-chart4 {
  display: grid;
  grid-template-rows: subgrid;
}
.hero-axis4 {
  height: 1px;
  background: var(--text);
  transform-origin: left center;
}
.v4-plot {
  position: relative;
  align-self: stretch;
}
/* The lines sit in a mask that slides open in the opening (see Motion): the outer box moves in while the
   inner one moves back by as much, so the lines stay put. 6px to spare on every side for the line ends. */
.v4-mask {
  position: absolute;
  inset: -6px;
  overflow: hidden;
}
.v4-unmask {
  position: absolute;
  inset: 0;
}
/* Absolute, so the plot takes the rows' height (heading and signature line) instead of the SVG's own ratio */
.v4-svg {
  position: absolute;
  inset: 6px;
  display: block;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  overflow: visible;
}
.v4-svg path {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.v4-svg stop { stop-color: var(--text); }
.v4-svg .v4-area { fill: url(#v4-fade); }
.v4-act,
.v4-rep,
.v4-rep-halo {
  stroke-linecap: round;
  stroke-linejoin: round;
}
.v4-act {
  stroke: var(--text);
  stroke-width: 2;
}
/* The tool's line runs over the first five days of the white one; a halo in the page colour keeps its dashes clear */
.v4-rep-halo {
  stroke: var(--ink);
  stroke-width: 6;
}
.v4-rep {
  stroke: var(--rep);
  stroke-width: 2;
  stroke-dasharray: 4 3;
  stroke-linecap: butt;
}
.v4-end {
  position: absolute;
  top: 88.51%;
  left: calc(5 / 90 * 100%);
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--rep);
  box-shadow: 0 0 0 2px var(--ink);
}
/* Real lift at day 90: from the counterfactual (what the holdout shows) up to what happened */
.v4-lift {
  position: absolute;
  top: 16.04%;
  right: -3px;
  bottom: 58.22%;
  width: 6px;
  border-radius: 3px;
  background: var(--lime);
}
/* Agent notes: the agent's white dot and up to six words, no box. The dot sits at (--x, --ny); its pin runs
   from --top to --bottom, down or up to the point it explains. */
.v4-note {
  position: absolute;
  top: var(--ny);
  left: var(--x);
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: var(--text-2);
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
  translate: -4px -50%;
}
.v4-note::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
}
.v4-pin {
  position: absolute;
  top: var(--top);
  bottom: calc(100% - var(--bottom));
  left: var(--x);
  width: 1px;
  margin-left: -.5px;
  background: rgb(255 255 255 / .3);
}
.v4-note-top,
.v4-pin-top {
  --x: 50%;
  --ny: 6%;
  --top: 6%;
  --bottom: 49.43%;
}
/* Where the top note's pin meets the white line */
.v4-pin-top::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: -2.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 2px var(--ink);
}
.v4-note-5,
.v4-pin-5 {
  --x: calc(5 / 90 * 100%);
  --ny: 35%;
  --top: 35%;
  --bottom: 88.51%;
}
.v4-note-90,
.v4-pin-90 {
  --x: 100%;
  --ny: 62%;
  --top: 41.78%;
  --bottom: 62%;
}
.v4-note-90 {
  flex-direction: row-reverse;
  translate: calc(-100% + 4px) -50%;
}
.v4-scale {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: 12px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 18px;
}
.v4-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.v4-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.v4-legend li::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--text);
}
.v4-legend .v4-key-rep::before { background: repeating-linear-gradient(90deg, var(--rep) 0 4px, transparent 4px 7px); }
/* Decision: one plain line level with the buttons, the agent's dot, and a small white button (final: approved) */
.v4-decision {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.v4-decision-text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.v4-decision-text::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--text);
}
.v4-btn {
  display: inline-flex;
  grid-area: 1 / 2;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--text);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.v4-approve { visibility: hidden; }
.v4-check {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}
.v4-check i {
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform-origin: 0 50%;
}
.v4-check i:first-child { width: 5px; translate: 1.5px 7.5px; rotate: 45deg; }
.v4-check i:last-child { width: 9px; translate: 5px 11px; rotate: -52deg; }
.v4-cap {
  color: var(--text-3);
  font-size: 12px;
}

/* Two columns: the chart shares the text's five rows (heading, signature line, lead, buttons, note). The plot
   stands on the signature line's row; the axis starts where the signature line ends and runs off the page. */
@media (min-width: 960px) {
  .hero-grid { grid-template-rows: repeat(5, auto); }
  .hero-copy { grid-area: 1 / 1 / 6 / 2; }
  .hero-chart4 { grid-area: 1 / 2 / 6 / 3; }
  .v4-plot {
    grid-row: 1 / 3;
    margin-bottom: 3px;
  }
  .v4-scale { grid-row: 3; align-self: start; }
  .v4-decision {
    grid-row: 4;
    align-self: end;
    margin-bottom: 10px;
  }
  .v4-cap {
    grid-row: 5;
    align-self: start;
    margin-top: 18px;
  }
  .hero-axis4 {
    grid-area: 2 / 1 / 3 / -1;
    align-self: end;
    margin: 0 calc(50% - 50vw) 2.5px 52px;
  }
}
/* One column: heading, chart, signature line as its axis, lead, buttons, decision, note */
@media (max-width: 959px) {
  .hero-grid { grid-template-rows: repeat(9, auto); }
  .hero-copy,
  .hero-chart4 { grid-area: 1 / 1 / 10 / 2; }
  .hero-chart4 { pointer-events: none; }
  .hero-copy > .h1 { grid-row: 1; }
  .sig-hero {
    grid-row: 3;
    margin-top: 0;
  }
  .hero-lead { grid-row: 5; }
  .hero-actions { grid-row: 6; }
  .hero-note { grid-row: 8; }
  .v4-plot {
    grid-row: 2;
    height: 240px;
    margin: 40px 0 -3px;
  }
  .v4-scale { grid-row: 4; }
  .v4-decision {
    grid-row: 7;
    margin-top: 32px;
  }
  .v4-cap {
    grid-row: 9;
    margin-top: 10px;
  }
  .hero-axis4 {
    grid-area: 3 / 1 / 4 / 2;
    align-self: start;
    margin: 2.5px calc(50% - 50vw) 0 52px;
  }
}
/* Phones: the heading, the lead and the buttons come first, so "Request a demo" is on the first screen of
   every phone; then the chart on the signature line (a shorter plot, notes on two lines, the top note on
   the right) and the decision, its button under it */
@media (max-width: 599px) {
  /* The heading's longest line ("retention analysis,", 324.6px wide at 44px) stays one line down to 320px */
  .hero .h1 { font-size: min(44px, 13.2vw - 5.3px); }
  .hero-lead { grid-row: 2; }
  .hero-actions { grid-row: 3; }
  .hero-note { grid-row: 4; }
  .v4-plot {
    grid-row: 5;
    height: 200px;
    margin-top: 56px;
  }
  .sig-hero { grid-row: 6; }
  .hero-axis4 { grid-area: 6 / 1 / 7 / 2; }
  .v4-scale { grid-row: 7; }
  .v4-cap { grid-row: 9; }
  .v4-note {
    align-items: flex-start;
    max-width: 150px;
    font-size: 12px;
    line-height: 16px;
    white-space: normal;
  }
  .v4-note::before { margin-top: 4px; }
  /* Day 70, which the white line passes about 1560 ms into the chart's motion */
  .v4-note-top,
  .v4-pin-top {
    --x: calc(70 / 90 * 100%);
    --ny: 8%;
    --top: 8%;
    --bottom: 27.63%;
    --t-top: 1560ms;
  }
  .v4-note-top {
    flex-direction: row-reverse;
    translate: calc(-100% + 4px) -50%;
  }
  .v4-note-5,
  .v4-pin-5 { --ny: 36%; --top: 36%; }
  .v4-note-90,
  .v4-pin-90 { --ny: 66%; --bottom: 66%; }
  .v4-decision {
    grid-row: 8;
    grid-template-columns: minmax(0, 1fr);
  }
  .v4-btn {
    grid-area: 2 / 1;
    justify-self: start;
  }
}

/* ---------- Problem ---------- */
/* Rows of a subgrid keep the three headings level, with the timeline above the first column; the
   columns are set apart by space, without rules */
.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 64px;
  margin-top: 88px;
}
.col {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
}
.col-body { grid-row: 2; }
.col-body p {
  max-width: var(--measure);
  margin-top: 16px;
  color: var(--text-2);
}

/* One small scene above each column (aria-hidden pictures; the meaning stays in the column's text). The
   three share the first row and sit on its bottom line, so the gap to the headings is the same in all
   three. Stacked on tablets, a scene stays as wide as a desktop column. These rules are the final state;
   Motion plays them once. */
.timeline,
.pieces,
.lost {
  grid-row: 1;
  align-self: end;
  max-width: 360px;
  margin-bottom: 48px;
}

/* Timeline: Klaviyo's default 5-day credit against the 90 days that follow a send */
.timeline {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.3;
}
/* Orders as dots over the 90 days: those in the first 5 days are credited (grey), and most of them are
   rings, people who would have bought anyway; the orders after day 5 are never credited (black) */
.tl-dots {
  position: relative;
  height: 22px;
  margin-bottom: 8px;
}
.tl-o {
  position: absolute;
  bottom: calc(var(--r) * 8px);
  left: calc(var(--d) / 90 * 100%);
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
}
.tl-o-c { background: var(--line-strong); }
.tl-o-r { border: 1.5px solid var(--line-strong); }
/* The fill a ring loses in the scene (credited first, then shown as bought anyway) */
.tl-o-r::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  background: var(--line-strong);
  opacity: 0;
}
.tl-o-a { background: var(--text); }
.tl-axis {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.tl-row + .tl-row { margin-top: 16px; }
.tl-track {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}
.tl-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 2px;
  transform-origin: left center;
}
/* On the light ground: the credit a mid grey (3:1), the 90 days black; lime is never a thin line on light */
.tl-credit {
  width: calc(100% * 5 / 90);
  background: #8C8C86;
}
.tl-actual {
  width: 100%;
  background: var(--text);
}
.tl-label {
  display: block;
  margin-top: 8px;
}
.tl-label-actual { color: var(--text-2); }

/* Data lives in pieces: three sources side by side; the dashed links between them reach out but never
   meet */
.pieces {
  container-type: inline-size;
  display: flex;
}
.pc,
.ls-card {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  hyphens: manual;
}
.pc { flex: 1 1 0; }
.pc-gap {
  position: relative;
  flex: 0 0 32px;
}
/* Each link is two whole dashes, so the break between them stays clear (10px in a 32px gap) */
.pc-gap i {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 1.5px;
  margin-top: -.75px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 7px);
}
.pc-gap i:first-child {
  left: 0;
  transform-origin: left center;
}
.pc-gap i:last-child {
  right: 0;
  transform-origin: right center;
}

/* Lessons get lost: what campaign A teaches sets off for B and fades before it gets there; a dashed
   outline marks where it was lost. The note's lane is the space above the cards. */
.lost {
  container-type: inline-size;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 8px;
  padding-top: 32px;
}
.ls-note,
.ls-ghost {
  /* A's centre, and 65% of the way from A's centre to B's */
  --a-mid: calc((100cqw - 16px) / 6);
  --go: calc(((100cqw - 16px) / 3 + 8px) * .65);
  position: absolute;
  top: 0;
  left: var(--a-mid);
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  translate: -50% 0;
}
.ls-note {
  background: var(--text);
  color: var(--on-ink);
  opacity: 0;
}
.ls-ghost {
  left: calc(var(--a-mid) + var(--go));
  border: 1px dashed var(--line-strong);
  color: var(--text-2);
}
/* Narrow columns (three side by side under 1100px): smaller labels so they fit their boxes */
@container (max-width: 279px) {
  .pc,
  .ls-card {
    padding: 4px;
    font-size: 11px;
  }
  .pc-gap { flex-basis: 24px; }
  /* Shorter dashes: two of them and an 8px break */
  .pc-gap i {
    width: 8px;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 3px, transparent 3px 5px);
  }
}

/* ---------- Watch the agent work (scene C) ----------
   Four stages and one SVG picture of 100 customers. Card layout by default: four cards, each with
   its static figure (reduced motion, no JavaScript, narrow or short screens, print). The sticky
   layout further down is chosen only by a media query, so the layout never changes after the first
   paint. Geometry: build_c_svgs.mjs; agent-scene.js draws the live scene on the same coordinates. */
.c-note {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.4;
}
.c-cards-head {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}
.agent-grid { margin-top: 48px; }
/* Scene C and Try it tell one story: 48px on each side between them, 96 in all (32 and 64 on phones),
   instead of the usual section padding */
.agent { padding-bottom: 48px; }
.tryit { padding-top: 48px; }
.agent-side { display: none; }
.stages {
  display: grid;
  gap: 64px;
}
/* Scene cards: the pictures of scene C and Try it (dots, bars, legend) sit on dark cards inside the light
   sheet, so three layers read at once: dark page, light sheet, dark scene. Headings, texts and the Try it
   choices stay on the sheet. Inside the cards the dark tokens come back. */
.agent-visual,
.stage-fig,
.t-visual,
.c-cards-head .c-legend {
  --text: #FAFAFA;
  --text-2: #D4D4D4;
  --text-3: #A8A8A8;
  --chip-text: #D9D9D9;
  --line: #262626;
  --line-soft: #1F1F1F;
  --line-strong: #3A3A3A;
  --surface: var(--scene);
  --surface-2: var(--ink);
  --focus: var(--lime);
  border-radius: 16px;
  background: var(--scene);
  color: var(--text);
}
.stage-fig { padding: clamp(20px, 4vw, 32px); }
.c-cards-head .c-legend {
  justify-self: start;
  padding: 14px 18px;
}
/* Each stage: its text on the sheet, its picture on a dark scene card */
.stage {
  display: grid;
  gap: 24px;
}
.stage-num {
  color: var(--text-3);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stage h3 { margin-top: 8px; }
.stage-body {
  max-width: var(--measure);
  margin-top: 16px;
  color: var(--text-2);
}
@media (min-width: 768px) {
  .stage {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    column-gap: 40px;
  }
}

/* Legend: grey = got the campaign, a pale dot with a ring = held out, lime = bought,
   white = bought without the campaign (held-out buyers) */
.c-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.3;
}
.c-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* Legend swatches: the four dot styles (got the campaign, held out, bought anyway, bought because of it) */
.c-key::before {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--dot-g);
}
.c-key-h::before {
  background: none;
  box-shadow: inset 0 0 0 1.5px var(--dot-edge);
}
.c-key-w::before {
  background: var(--dot-w);
  box-shadow: none;
}
.c-key-l::before { background: var(--lime); }

/* Figures: aria-hidden pictures, left intact by forced colours. SVG text is sized in viewBox units,
   26 in the cards and 16 in the sticky scene, so labels stay at least 11px at every width. */
.stage-fig,
.agent-visual { forced-color-adjust: none; }
.stage-fig {
  container-type: inline-size;
  display: grid;
  gap: 16px;
}
.c-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.c-fig {
  display: block;
  width: 100%;
  height: auto;
}
/* Customer dots, the same in scene C and Try it (static circles and the live layers), on the dark scene
   card: got the campaign and did not buy (grey), held out and did not buy (a ring), bought anyway (white),
   bought because of the campaign (lime) */
.cd-g,
.s-base { fill: var(--dot-g); }
.cd-h,
.s-held {
  fill: none;
  stroke: var(--dot-edge);
  stroke-width: 1.5;
}
.cd-w,
.s-lit-w { fill: var(--dot-w); }
.cd-l,
.s-lit-l { fill: var(--lime); }
.ct {
  fill: var(--text-3);
  font-size: 26px;
}
.ct-1 {
  fill: var(--text);
  font-weight: 600;
}
.ct-2 { fill: var(--text-2); }
.ctl {
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.5;
}
.ctm { fill: var(--text); }
/* Bars: what each group bought anyway is white (the holdout bar is all of that), the lift is lime */
.cb { fill: var(--dot-w); }
.cb-l { fill: var(--lime); }
.cg {
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
}
/* Live scene (agent-scene.js): the source cards */
.s-card {
  fill: var(--surface-2);
  stroke: var(--line-strong);
  stroke-width: 1.5;
}
.s-lock {
  fill: none;
  stroke: var(--text-2);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.s-cardt { font-size: 22px; }
.s-ro { font-size: 19px; }
/* In the cards the figure scales with the card, so its text steps down as the card widens
   (about 11 to 19px on screen at every width) */
@container (min-width: 330px) {
  .c-fig .ct { font-size: 22px; }
  .c-fig .s-cardt { font-size: 19px; }
  .c-fig .s-ro { font-size: 16px; }
}
@container (min-width: 450px) {
  .c-fig .ct { font-size: 17px; }
  .c-fig .s-cardt { font-size: 16px; }
  .c-fig .s-ro { font-size: 13px; }
}
@container (min-width: 560px) {
  .c-fig .ct { font-size: 14px; }
  .c-fig .s-cardt { font-size: 14px; }
  .c-fig .s-ro { font-size: 12px; }
}

/* "Suggested next step": the same card as in the hero panel */
.c-next {
  padding: 24px;
  border-radius: 16px;
  background: var(--surface-2);
}
.c-next-label {
  color: var(--text-3);
  font-size: 13px;
}
.c-next-text {
  margin-top: 8px;
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.nw { white-space: nowrap; }

/* Sticky visual: one 560 x 420 scene (the neutral grid until the engine runs), the card the
   engine brings in at stage 4, and the legend */
.agent-visual {
  padding: 32px;
  border-radius: 16px;
  background: var(--surface);
}
.agent-box {
  position: relative;
  aspect-ratio: 560 / 420;
}
.agent-svg {
  position: absolute;
  inset: 0;
  height: 100%;
}
.agent-svg .ct { font-size: 16px; }
.agent-svg .s-cardt { font-size: 17px; }
.agent-svg .s-ro { font-size: 13px; }
.agent-next {
  position: absolute;
  right: 6%;
  bottom: 0;
  left: 6%;
  opacity: 0;
}
.agent-visual .c-legend { margin-top: 16px; }

@media screen and (scripting: enabled) and (prefers-reduced-motion: no-preference) and (min-width: 960px) and (min-height: 600px) {
  /* Stage texts scroll past a sticky visual, half a screen per stage. The first text starts under the
     heading, level with the card's top, and stays there while stage 1 is on; each later text stops on
     the card's vertical middle while its stage is on (sticky, centred there) and moves on as the next
     one comes. --c-half is half the card's height: agent-scene.js measures it (265px, its usual size,
     until then). The section clips what the rail's end cover (below) would otherwise reach past it. */
  .agent { overflow: clip; }
  /* The other sections' gap between heading and content (114px) */
  .agent-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(640px, 56%);
    column-gap: clamp(48px, 6vw, 96px);
    margin-top: 114px;
  }
  .c-cards-head,
  .stage-fig { display: none; }
  .agent-side { display: block; }
  /* The width keeps the visual, legend and note inside the screen (box height = width * 3 / 4) */
  .agent-sticky {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    width: min(100%, calc((100svh - var(--header-h) - 186px) * 4 / 3 + 64px));
    margin-left: auto;
  }
  .agent-sticky .c-note { margin-top: 12px; }
  /* The first stage is longer by the card's half height, so stage 2 still reaches the middle half a
     screen after the card sticks. The last one ends where the card lets go (--c-end, from the card's
     middle to the bottom of the note under it; agent-scene.js measures it): the card is released, and
     the section ends, as soon as stage 4 is complete, and its text moves on with the card */
  .stages { gap: 0; }
  .stage:first-child { min-height: calc(50svh + var(--c-half, 265px)); }
  .stage:last-child { min-height: var(--c-end, 295px); }
  .stage:last-child .stage-text {
    position: relative;
    top: auto;
  }
  .stage:first-child .stage-text {
    top: calc(var(--header-h) + 24px);
    translate: none;
  }
  .stage {
    display: block;
    min-height: 50svh;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .stage-text {
    position: sticky;
    top: calc(var(--header-h) + 24px + var(--c-half, 265px));
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 24px;
    margin-bottom: 48px;
    translate: 0 -50%;
  }
  /* Numbers 01-04 on a thin rail. Each number draws the rail down past the next one, whose number
     (on the sheet's colour) sits on top; below the last number the sheet's colour covers the rest */
  .stage-num {
    position: relative;
    grid-row: 1 / 3;
    align-self: start;
    margin-top: calc(.625 * clamp(26px, 2.4vw, 34px) - 16px);
    padding-block: 6px;
    background: var(--paper);
    line-height: 20px;
    text-align: center;
  }
  .stage-num::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 15px;
    width: 1px;
    height: calc(50svh + 80px);
    background: var(--line-strong);
  }
  .stage:first-child .stage-num::before { height: calc(50svh + var(--c-half, 265px) + 80px); }
  .stage:last-child .stage-num::before {
    left: 0;
    width: 100%;
    height: calc(40svh + 40px);
    background: var(--paper);
  }
  .stage h3 {
    margin-top: 0;
    font-size: clamp(26px, 2.4vw, 34px);
    letter-spacing: -0.025em;
  }
  .stage-body { font-size: 19px; }
  .stage :is(.stage-num span, h3, .stage-body) { transition: opacity var(--dur-2) var(--ease-out); }

  /* Engine running (agent-scene.js adds .is-live after its first frame): the live scene replaces
     the neutral grid in 200ms; the active stage reads at full strength. In the others the headings are
     at 56% (4.4:1, large text) and the grey body text and numbers at 81% (4.9:1). Not with
     prefers-contrast: more. */
  .agent-fallback { transition: opacity var(--dur-1) var(--ease-out); }
  .agent.is-live .agent-fallback { opacity: 0; }
  @media not all and (prefers-contrast: more) {
    .agent.is-live.has-active .stage:not(.is-active) h3 { opacity: .56; }
    .agent.is-live.has-active .stage:not(.is-active) :is(.stage-num span, .stage-body) { opacity: .81; }
  }
}

/* ---------- See the difference yourself (Try it) ----------
   Two radio groups drive one picture, three numbers and one sentence. Without JavaScript, or with
   motion reduced, CSS shows the matching numbers, sentence and bars with :has(); the dots stay at a
   10% holdout. agent-scene.js adds .is-live and animates everything from the same data.
   Geometry of the picture: build_t_markup.mjs. */
.t-grid {
  display: grid;
  gap: 48px;
  margin-top: 56px;
}
@media (min-width: 960px) {
  .t-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(40px, 5vw, 72px);
    align-items: start;
  }
}
/* One column: choices, then the picture, then the numbers and the sentence (the picture is
   aria-hidden, so the reading order is unchanged) */
@media (max-width: 959px) {
  .t-side { display: contents; }
  .t-controls { order: 1; }
  .t-visual { order: 2; }
  .t-out {
    order: 3;
    margin-top: 0;
  }
}
.t-controls {
  display: none;
  gap: 20px;
}
.t-seg {
  container-type: inline-size;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.t-seg legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--text-3);
  font-size: 13px;
}
.t-opts {
  position: relative;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.t-opts input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.t-opts label {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.t-opts input:checked + label {
  background: var(--ink);
  color: var(--on-ink);
}
.t-opts input:focus-visible + label {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
/* Narrower groups keep the options side by side, never one per row: first smaller type and padding, then
   (campaigns only) two on top and the third across the row below. The steps fit the longest label,
   "Reorder reminder" (115px wide at 15px, 100px at 13px), in three or two equal columns */
@container (max-width: 429px) {
  .t-opts label {
    padding-inline: 5px;
    font-size: 13px;
  }
}
@container (max-width: 339px) {
  .t-opts-c {
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row;
  }
  .t-opts-c label:last-of-type { grid-column: 1 / -1; }
  .t-opts label {
    padding-inline: 12px;
    font-size: 15px;
  }
}
@container (max-width: 287px) {
  .t-opts label {
    padding-inline: 8px;
    font-size: 13px;
  }
}
.t-slide { display: none; }
/* The label sits right beside the numbers when the row has room, otherwise right under them */
.t-out {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 28px;
  margin-top: 40px;
}
.t-says { flex-basis: 100%; }
/* Each state's numbers and sentence share one cell, so the space never changes size */
.t-nums,
.t-says { display: grid; }
.t-nums > *,
.t-says > * { grid-area: 1 / 1; }
.t-nums dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
}
.t-nums dt {
  color: var(--text-3);
  font-size: 13px;
}
.t-nums dd {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.t-label {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 13px;
}
/* The numbers show beside the bars in the picture; this copy of them is for screen readers */
.t-nums {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.t-says p {
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.5;
}
.t-visual {
  container-type: inline-size;
  forced-color-adjust: none;
  padding: 32px;
  border-radius: 16px;
  background: var(--surface);
}
.t-visual .c-legend { margin-top: 16px; }
/* Bars from one start line: what the email tool reports (pale, dashed edge) and the true lift (lime,
   black edge); the lift's 90% range is a thin line with end ticks; numbers sit to the right */
.t-rep {
  fill: var(--line);
  stroke: #8C8C8C;
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}
.t-lift { fill: var(--lime); }
.t-range {
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.5;
}
.t-zero {
  fill: none;
  stroke: var(--dot-edge);
  stroke-width: 1;
}
.t-num { font-variant-numeric: tabular-nums; }
.t-pm {
  fill: var(--text-2);
  font-weight: 500;
}
.t-fixed {
  display: none;
  margin-top: 8px;
  color: var(--text-3);
  font-size: 13px;
}

/* Without :has() the default state (Spring Refresh, 10%) shows and the controls stay hidden */
.tryit [data-s] { visibility: hidden; }
.tryit [data-s="spring-10"] { visibility: visible; }
/* Dots whose style depends on the campaign: Spring Refresh's by default, the other two via :has() below */
.tk-lww,
.tk-lwg { fill: var(--lime); }
.tk-gwg { fill: var(--dot-g); }
.tk-hwh {
  fill: none;
  stroke: var(--dot-edge);
  stroke-width: 1.5;
}
@supports selector(:has(*)) {
  .t-controls { display: grid; }
  .tryit:not(.is-live):not(:has(#t-c-spring:checked)) [data-s="spring-10"] { visibility: hidden; }
  .tryit:not(.is-live):not(:has(#t-h-10:checked)) [data-s="spring-10"] { visibility: hidden; }
  .tryit:not(.is-live):has(#t-c-spring:checked):has(#t-h-5:checked) [data-s="spring-5"] { visibility: visible; }
  .tryit:not(.is-live):has(#t-c-spring:checked):has(#t-h-20:checked) [data-s="spring-20"] { visibility: visible; }
  .tryit:not(.is-live):has(#t-c-reorder:checked):has(#t-h-5:checked) [data-s="reorder-5"] { visibility: visible; }
  .tryit:not(.is-live):has(#t-c-reorder:checked):has(#t-h-10:checked) [data-s="reorder-10"] { visibility: visible; }
  .tryit:not(.is-live):has(#t-c-reorder:checked):has(#t-h-20:checked) [data-s="reorder-20"] { visibility: visible; }
  .tryit:not(.is-live):has(#t-c-welcome:checked):has(#t-h-5:checked) [data-s="welcome-5"] { visibility: visible; }
  .tryit:not(.is-live):has(#t-c-welcome:checked):has(#t-h-10:checked) [data-s="welcome-10"] { visibility: visible; }
  .tryit:not(.is-live):has(#t-c-welcome:checked):has(#t-h-20:checked) [data-s="welcome-20"] { visibility: visible; }
  /* The static dots follow the campaign (at a 10% holdout) */
  .tryit:not(.is-live):has(#t-c-reorder:checked) .tk,
  .tryit:not(.is-live):has(#t-c-welcome:checked) .tk-lww {
    fill: var(--dot-w);
    stroke: none;
  }
  .tryit:not(.is-live):has(#t-c-welcome:checked) .tk-lwg { fill: var(--dot-g); }
  .tryit:not(.is-live):has(#t-h-5:checked) .t-fixed { display: block; }
  .tryit:not(.is-live):has(#t-h-20:checked) .t-fixed { display: block; }
}

/* Live (agent-scene.js): the scene draws its own dots and bars; one selection fill slides between options */
.tryit.is-live .t-controls { display: grid; }
.tryit.is-live [data-s] { visibility: hidden; }
.tryit.is-live [data-s].is-on { visibility: visible; }
.tryit.is-live .t-static,
.tryit.is-live .tb { display: none; }
.tryit.is-live .t-opts input:checked + label {
  background: none;
  color: var(--on-ink);
}
.tryit.is-live .t-opts label { transition: color var(--dur-1) var(--ease-out); }
.tryit.is-live .t-slide {
  position: absolute;
  top: 4px;
  left: 4px;
  display: block;
  border-radius: 8px;
  background: var(--ink);
}
@media (forced-colors: active) {
  .t-opts input:checked + label { outline: 2px solid Highlight; }
  .tryit.is-live .t-slide { display: none; }
}

/* ---------- Product ---------- */
/* Rows set apart by space, without rules */
.rows {
  display: grid;
  gap: 64px;
}
.rows > li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 40px;
}
.rows p {
  max-width: var(--measure);
  color: var(--text-2);
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px;
  margin-top: 88px;
}
.step-num {
  display: block;
  color: var(--text-3);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}
.step:first-child .step-num { color: var(--text); }
.step h3 { margin-top: 28px; }
.step p {
  max-width: var(--measure);
  margin-top: 16px;
  color: var(--text-2);
}

/* ---------- What the agent shows you ---------- */
.shows {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
/* A list set apart by space, without rules */
.shows-list {
  display: grid;
  gap: 36px;
  margin-top: 56px;
}
.shows-list li {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.shows-list + .btn { margin-top: 56px; }

/* Report cover: A4, at most 380px, sized from its own width */
.cover-stage {
  display: flex;
  justify-content: center;
  padding-block: 16px;
}
.cover {
  container-type: inline-size;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 380px);
  aspect-ratio: 210 / 297;
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--paper-text);
  text-decoration: none;
  transform: translateY(0) rotate(-2deg);
  /* The site's one white thing: the report is paper, lifted off the beige sheet by a soft shadow */
  box-shadow: 0 1px 2px rgb(10 10 10 / .06), 0 24px 48px -12px rgb(10 10 10 / .18);
}
.cover-logo,
.cover-mid,
.cover-foot { padding-inline: 9.5cqw; }
.cover-logo {
  padding-top: 9.5cqw;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}
.cover-mid {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cover-title {
  font-size: min(36px, 9.5cqw);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
/* The signature line keeps its fixed 52 x 6 and 20px gap (.sig); only the title scales so it stays on one line */
.cover-sub {
  margin-top: 16px;
  color: var(--paper-text-2);
  font-size: 15px;
}
.cover-foot {
  padding-bottom: 9.5cqw;
  color: var(--paper-text-2);
  font-size: 12px;
}

/* ---------- Your data ---------- */
/* Facts set apart by space, without rules */
.facts {
  display: grid;
  gap: 56px;
}
.facts li {
  max-width: var(--measure);
  color: var(--paper-text-2);
}
.facts strong {
  display: block;
  margin-bottom: 8px;
  color: var(--paper-text);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* ---------- Demo ---------- */
.demo-card {
  --focus: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 40px 80px;
  align-items: end;
  padding: clamp(40px, 7vw, 104px);
  border-radius: 20px;
  background: var(--lime);
  color: var(--ink);
}
.demo-card ::selection { background: var(--ink); color: var(--lime); }
.demo-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.demo-text {
  max-width: var(--measure);
  font-size: 20px;
  line-height: 1.6;
}
.demo-card .btn { margin-top: 28px; }
.demo-note {
  margin-top: 16px;
  font-size: 15px;
}
.demo-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- FAQ ---------- */
/* The accordion keeps its dividers (they show where each question opens), in the softer line colour */
.faq { border-bottom: 1px solid var(--line-soft); }
.faq details { border-top: 1px solid var(--line-soft); }
.faq summary {
  position: relative;
  display: block;
  padding: 32px 56px 32px 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
/* Plus sign that turns into a cross when the answer is open */
.faq-icon {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--text-2);
}
.faq-icon::after { transform: rotate(90deg); }
.faq details[open] .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-width: var(--measure);
  padding: 0 56px 36px 0;
  color: var(--text-2);
}
/* Links into the Privacy Policy from "Your data" and the data question */
.data-link {
  margin-top: 24px;
  font-size: 16px;
}
/* Under "Your data"'s facts: one small plain note */
.facts-note {
  margin-top: 48px;
  color: var(--text-2);
  font-size: 16px;
}
.data-link a,
.facts-note a,
.faq-a a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (forced-colors: active) {
  .faq-icon::before,
  .faq-icon::after { background: CanvasText; }
}

/* ---------- Footer ----------
   The name and its one line, then three short columns (Product, Company, Legal) set apart by space alone,
   no rules. Links are light grey, 44px tall, and draw an underline from the left on hover, like the menu;
   lime only appears on hover. One plain line at the bottom. */
.site-footer { padding-block: 112px 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
}
.footer-brand .logo { font-size: 22px; }
.footer-brand p {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 15px;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: space-between;
  gap: 32px;
}
/* Headings sit on the same 44px line as the name, so their text lines up with it */
.footer-h {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .02em;
}
.footer-links { margin-top: 4px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
  transition: color .15s ease-out;
}
.footer-links a[aria-current="page"] { color: var(--text); }
.copyright {
  margin-top: 72px;
  color: var(--text-3);
  font-size: 13px;
}
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { justify-content: start; column-gap: 64px; }
}

/* ---------- Documents (privacy, terms) ----------
   One light sheet under the dark header, rounded at both ends. Wide screens keep the contents beside the
   text (sticky); narrower ones show them above it as a closed list (the page's script; open without
   JavaScript). Running text is about 70 characters a line. Every heading links to itself: a "#" shows on
   hover or focus, and a click also copies the link. */
.doc {
  padding-block: 96px 128px;
  border-radius: var(--sheet-r);
}
.doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.doc-head { max-width: 30.5em; }
.doc-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.doc-dates {
  margin-top: 20px;
  color: var(--text-2);
  font-size: 15px;
}
.doc-br { display: none; }
.doc-intro {
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.5;
}
.toc {
  max-width: 30.5em;
  margin-top: 40px;
  border-block: 1px solid var(--line-strong);
}
.toc summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding-right: 40px;
  font-size: 17px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.toc summary::-webkit-details-marker { display: none; }
.toc[open] .faq-icon::after { transform: none; }
.toc ol {
  padding: 0 0 12px;
  list-style: none;
}
.toc li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
}
.doc-body {
  max-width: 30.5em;
  margin-top: 64px;
}
.doc-body h2 {
  margin-top: 72px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.doc-body > section:first-child h2 { margin-top: 0; }
.doc-body h3 {
  margin-top: 40px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.doc-body h2 + h3 { margin-top: 24px; }
.doc-body :is(p, ul) { margin-top: 16px; }
.doc-body ul {
  padding-left: 1.25em;
  list-style: disc;
}
.doc-body li + li { margin-top: 8px; }
.doc-body li::marker { color: var(--text-2); }
.doc-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
}
/* Section links: the heading itself, with a "#" after it */
.doc-body :is(h2, h3) > a { text-decoration: none; }
.doc-body :is(h2, h3) > a::after {
  content: "#";
  margin-left: .3em;
  color: var(--text-3);
  font-weight: 400;
}
.copy-note {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 60;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 14px;
  transform: translateX(-50%);
}
.copy-note:empty { display: none; }
@media (min-width: 1024px) {
  .doc-grid {
    grid-template-columns: 232px minmax(0, 1fr);
    column-gap: 80px;
  }
  .doc-head,
  .doc-body { grid-column: 2; }
  .toc {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 64px);
    margin-top: 12px;
    overflow-y: auto;
    border: 0;
  }
  .toc summary {
    min-height: 0;
    padding: 0 0 8px;
    color: var(--text-2);
    font-size: 13px;
    letter-spacing: .02em;
    pointer-events: none;
  }
  .toc .faq-icon { display: none; }
  .toc ol { padding: 0; }
  .toc li a {
    min-height: 34px;
    font-size: 14px;
  }
}

/* ---------- Not found ---------- */
.nf { padding-block: var(--section-y); }
.nf .btn { margin-top: 40px; }

/* ---------- Motion ----------
   Each animation shows a piece of Megovia's work, plays once and uses only transform and opacity.
   Start states apply only when scripting is on and motion is not reduced; otherwise the page
   shows its final state. If motion.js has not taken over (html.m) within 4s, the final state
   is shown anyway. motion.js adds .is-on to a [data-anim] element when it comes into view. */
@keyframes m-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes m-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes m-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes m-faq { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes m-step { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes m-lay { from { opacity: 0; translate: 0 24px; } }
@keyframes p-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes p-left { from { opacity: 0; transform: translateX(-20px); } }
@keyframes p-top { from { opacity: 0; transform: translateY(-14px); } }
@keyframes p-right { from { opacity: 0; transform: translateX(20px); } }
/* The insight leaves A, travels toward B and fades before it gets there (--go, styles for .ls-note) */
@keyframes p-travel {
  0% { opacity: 0; transform: scale(.8); }
  15% { opacity: 1; transform: none; }
  55% { opacity: 1; }
  100% { opacity: 0; transform: translateX(var(--go)); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .faq-icon { transition: transform .2s var(--ease); }
  .faq details[open] .faq-a { animation: m-faq .2s var(--ease) backwards; }
  /* Chrome keeps a closed answer inside ::details-content and skips its styles, so animate that box instead */
  @supports selector(::details-content) {
    .faq details[open] .faq-a { animation: none; }
    .faq details[open]::details-content { animation: m-faq .2s var(--ease) backwards; }
  }

  /* Report cover: straightens and lifts like a report picked up (pointer screens only) */
  @media (hover: hover) and (pointer: fine) and (min-width: 768px) {
    .cover { transition: transform .25s var(--ease); }
    .cover:hover { transform: translateY(-4px) rotate(0deg); }
  }
}

/* Header line fades in over the first 24px of scrolling (no JavaScript). It follows the scroll
   position rather than time, so it also applies with reduced motion (!important beats the reset below). */
@supports (animation-timeline: scroll()) {
  .site-header::after {
    animation: m-fade-in linear both !important;
    animation-timeline: scroll(root) !important;
    animation-range: 0px 24px !important;
  }
}

@media screen and (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  /* Start states, until the section has played (motion.js adds .is-on to a section with data-anim as
     soon as its top passes 90% of the screen); afterwards the final state above applies again */
  section[data-anim]:not(.is-on) h2 + .sig { transform: scaleX(0); }
  section[data-anim]:not(.is-on) :is(.rows > li, .steps > li, .facts > li, .cover) { opacity: 0; }

  /* Failsafe: if motion.js never ran, everything settles into its final state at 4s */
  html:not(.m) section[data-anim] h2 + .sig { animation: m-draw 300ms ease-out 4s forwards; }
  html:not(.m) section[data-anim] :is(.rows > li, .steps > li, .facts > li, .cover) {
    animation: m-fade-in 300ms ease-out 4s forwards;
  }

  /* Play rules fill backwards only: each element waits in its start state, then rests on its final state.
     A section's parts start together, the heading's line with what sits beside it; no part takes longer
     than 0.4s and list items follow 60ms apart, so nothing in view stays empty for half a second */

  /* 2. The travelling signature line arrives at each stop, Problem to Demo: it measures out from 0 to
     52px under the heading (black on the sheet) */
  section.is-on h2 + .sig { animation: m-draw 400ms var(--ease-out) backwards; }

  /* 3. Problem's three scenes, each part's animation in its --a. Each column plays once its top passes 85%
     of the screen (motion.js, data-enter): side by side the three share that top and start in the same
     frame; in one column each waits for its own. Every scene shows something within 0.15s.
     Credit isn't impact (2.1s): the grey credit to day 5 and its six orders, four turn into rings, then
     the 90 days draw on and the orders after day 5 appear as the line passes them, never credited.
     Data lives in pieces (1.1s): the sources arrive from three sides, the links reach out and stop short.
     Lessons get lost (1.9s): the campaigns, then the insight leaves A and fades before B, where a dashed
     outline stays. */
  .tl-credit { --a: m-draw 300ms var(--ease-out) backwards; }
  .tl-label-credit { --a: m-fade-in 200ms ease-out 100ms backwards; }
  .tl-actual { --a: m-draw 1200ms linear 900ms backwards; }
  .tl-label-actual { --a: m-fade-in 200ms ease-out 300ms backwards; }
  .tl-o { --a: p-pop 200ms var(--ease-out) var(--t) backwards; }
  .tl-o-r::before { --a: m-fade-out 300ms ease-out var(--u) backwards; }
  .pc-1 { --a: p-left 500ms var(--ease-out) backwards; }
  .pc-2 { --a: p-top 500ms var(--ease-out) 100ms backwards; }
  .pc-3 { --a: p-right 500ms var(--ease-out) 200ms backwards; }
  .pc-gap i { --a: m-draw 300ms var(--ease-out) var(--t) backwards; }
  .ls-card { --a: m-fade-in 250ms ease-out var(--t, 0ms) backwards; }
  .ls-card:nth-child(4) { --t: 60ms; }
  .ls-card:nth-child(5) { --t: 120ms; }
  .ls-note { --a: p-travel 1400ms var(--ease-in-out) 300ms backwards; }
  .ls-ghost { --a: m-fade-in 400ms ease-out 1500ms backwards; }
  [data-enter]:not(.is-on) :is(.tl-bar, .tl-label, .tl-o, .pc, .pc-gap i, .ls-card, .ls-ghost) { opacity: 0; }
  [data-enter].is-on :is(.tl-bar, .tl-label, .tl-o, .pc, .pc-gap i, .ls-card, .ls-note, .ls-ghost),
  [data-enter].is-on .tl-o-r::before { animation: var(--a); }
  html:not(.m) [data-enter] :is(.tl-bar, .tl-label, .tl-o, .pc, .pc-gap i, .ls-card, .ls-ghost) {
    animation: m-fade-in 300ms ease-out 4s forwards;
  }

  /* 4. One motion per section: Product's rows and Your data's facts rise in turn, the three steps come
     in from the left one after another, and the report cover is laid on the sheet */
  section.is-on :is(.rows, .facts) > li { animation: m-rise 400ms var(--ease-out) backwards; }
  section.is-on .steps > li { animation: m-step 400ms var(--ease-out) backwards; }
  section.is-on :is(.rows, .steps, .facts) > li:nth-child(2) { animation-delay: 60ms; }
  section.is-on :is(.rows, .steps, .facts) > li:nth-child(3) { animation-delay: 120ms; }
  section.is-on :is(.rows, .steps, .facts) > li:nth-child(4) { animation-delay: 180ms; }
  section.is-on .cover { animation: m-lay 400ms var(--ease-out) backwards; }

  /* 5. A button gives a little while it is pressed */
  .btn:active { transform: scale(.98); }
}

/* ---------- Hero: the opening (A, CSS only) and the chart ----------
   A plays from the first paint. motion.js adds .is-on to the chart and its axis at A's 1200 ms when the
   chart is on the first screen, otherwise once half of it is in view and scrolling has settled. Each rule
   fills backwards only: an element waits in its start state, plays, then rests on the final state
   written above. */
@keyframes a-line { from { transform: translateY(60%); } }
@keyframes a-weight { from { font-weight: 400; } }
@keyframes a-rise { from { opacity: 0; translate: 0 var(--y, 8px); } }
@keyframes a-lead { from { opacity: .6; translate: 0 12px; } }
@keyframes b-in { from { opacity: 0; } }
@keyframes b-hide { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: visible; } }
@keyframes b-draw { from { scale: 0 1; } }
@keyframes b-grow { from { scale: 1 0; } }
@keyframes b-pop { from { opacity: 0; scale: .4; } }
@keyframes b-rise { from { opacity: 0; translate: 0 8px; } }
@keyframes b-press { 50% { scale: .97; } }
/* The lines' mask opens to day 5 (both lines), holds while the default credit window is marked, then opens
   to day 90 (only the white line goes on). -94.444% + 5.33px puts its edge on day 5 (see .v4-mask). */
@keyframes b-mask {
  0% { translate: -100% 0; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  16.667%, 40% { translate: calc(-94.444% + 5.33px) 0; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
}
@keyframes b-unmask {
  0% { translate: 100% 0; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  16.667%, 40% { translate: calc(94.444% - 5.33px) 0; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
}

@media screen and (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  /* A: heading lines rise out of their masks (weight 400 -> 600 where the lines have room), then the
     header, the lead, the buttons, the white signature line and the note */
  .h1-l > span { animation: a-line 700ms var(--ease-out) calc(var(--i) * 60ms) backwards; }
  @media (min-width: 380px) {
    .h1-l > span {
      animation:
        a-line 700ms var(--ease-out) calc(var(--i) * 60ms) backwards,
        a-weight 600ms var(--ease-in-out) calc(var(--i) * 60ms) backwards;
    }
  }
  .logo,
  .nav li,
  .btn-header { animation: a-rise 400ms var(--ease-out) var(--a, 300ms) backwards; }
  .nav li:nth-child(1) { --a: 360ms; }
  .nav li:nth-child(2) { --a: 420ms; }
  .nav li:nth-child(3) { --a: 480ms; }
  .nav li:nth-child(4) { --a: 540ms; }
  .btn-header { --a: 600ms; }
  .hero-lead { animation: a-lead 400ms var(--ease-out) 600ms backwards; }
  .hero-actions .btn { animation: a-rise 400ms var(--ease-out) var(--a, 700ms) backwards; --y: 12px; }
  .hero-actions .btn + .btn { --a: 770ms; }
  .sig-hero { animation: b-draw 400ms var(--ease-out) 900ms backwards; }
  .hero-note { animation: b-in 400ms var(--ease-out) 1000ms backwards; }

  /* The chart: start states until .is-on (from then on, the animations below hold them). The caption
     ("Illustrative example, simulated data") is there from the first frame. */
  .hero-axis4:not(.is-on),
  .hero-chart4:not(.is-on) :is(.v4-mask, .v4-pin, .v4-end, .v4-lift, .v4-note, .v4-scale, .v4-decision) { opacity: 0; }
  html.m .hero-chart4:not(.is-on) .v4-approve { visibility: visible; }
  html.m .hero-chart4:not(.is-on) .v4-done { opacity: 0; }

  /* Failsafe: if motion.js never runs, the chart fades into its final state at 2.4 s */
  html:not(.m) .hero-axis4:not(.is-on),
  html:not(.m) .hero-chart4:not(.is-on) :is(.v4-mask, .v4-pin, .v4-end, .v4-lift, .v4-note, .v4-scale, .v4-decision) {
    animation: m-fade-in 300ms var(--ease-out) 2.4s forwards;
  }

  /* The chart (ms from .is-on): the axis runs on from the signature line; the mask opens both lines to
     day 5, where the email tool's dashed line stops and its note is pinned; the white line goes on to
     day 90 and the top note is pinned as it passes (--t-top); the lime bar grows, the day-90 note is
     pinned, the decision arrives and Approve turns into Approved. Ends at 3230, 4.43 s after the
     first paint when the chart is on the first screen. */
  .v4-pin,
  .v4-lift { transform-origin: 50% 100%; }
  .v4-pin-90 { transform-origin: 50% 0; }
  .hero-axis4.is-on { animation: b-draw 500ms var(--ease-in-out) backwards; }
  .hero-chart4.is-on .v4-scale { animation: b-in 300ms var(--ease-out) 300ms backwards; }
  .hero-chart4.is-on .v4-mask { animation: b-mask 1500ms 400ms backwards; }
  .hero-chart4.is-on .v4-unmask { animation: b-unmask 1500ms 400ms backwards; }
  .hero-chart4.is-on .v4-end { animation: b-pop 200ms var(--ease-out) 650ms backwards; }
  .hero-chart4.is-on .v4-pin-5 { animation: b-grow 200ms var(--ease-out) 700ms backwards; }
  .hero-chart4.is-on .v4-note-5 { animation: b-in 250ms var(--ease-out) 850ms backwards; }
  .hero-chart4.is-on .v4-pin-top { animation: b-grow 200ms var(--ease-out) var(--t-top, 1450ms) backwards; }
  .hero-chart4.is-on .v4-note-top { animation: b-in 250ms var(--ease-out) calc(var(--t-top, 1450ms) + 150ms) backwards; }
  .hero-chart4.is-on .v4-lift { animation: b-grow 350ms var(--ease-out) 1900ms backwards; }
  .hero-chart4.is-on .v4-pin-90 { animation: b-grow 200ms var(--ease-out) 2150ms backwards; }
  .hero-chart4.is-on .v4-note-90 { animation: b-in 250ms var(--ease-out) 2300ms backwards; }
  .hero-chart4.is-on .v4-decision { animation: b-rise 400ms var(--ease-out) 2350ms backwards; }
  .hero-chart4.is-on .v4-approve {
    animation:
      b-press 150ms var(--ease-in-out) 2800ms backwards,
      b-hide 150ms var(--ease-out) 2900ms backwards;
  }
  .hero-chart4.is-on .v4-done { animation: b-in 200ms var(--ease-out) 2950ms backwards; }
  .hero-chart4.is-on .v4-check i:first-child { animation: b-draw 150ms var(--ease-out) 3000ms backwards; }
  .hero-chart4.is-on .v4-check i:last-child { animation: b-draw 150ms var(--ease-out) 3080ms backwards; }
}

/* ---------- Opening screen ----------
   Only on the first visit of a browser session, with scripting on and motion allowed: an inline script in
   the head adds html.intro (the screen) and html.intro-hold (the hero's opening waits under it). The page
   is complete underneath; the screen is one fixed layer over it, hidden from screen readers. The logo is
   there at once and its lime signature line draws (150-550 ms), then the screen lifts by itself
   (700-1150 ms). motion.js lets the hero's opening start as it lifts, and a click, key, wheel or touch
   ends the screen at once. */
.intro-screen { display: none; }
@keyframes intro-lift { to { transform: translateY(-100%); visibility: hidden; } }
@media (prefers-reduced-motion: no-preference) {
  /* Sized in em from the screen's font size: the logo is 60px but never wider than 60% of the screen
     (it is 3.61em wide), and its signature line keeps the site's proportions to it (52 x 6, 20px under a
     40px logo) */
  html.intro .intro-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-content: center;
    justify-items: start;
    background: var(--ink);
    font-size: min(60px, 16.6vw);
    animation: intro-lift 450ms var(--ease-in-out) 700ms forwards;
  }
  .intro-logo {
    color: var(--text);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.035em;
  }
  .intro-sig {
    width: 1.3em;
    height: .15em;
    margin-top: .5em;
    border-radius: .075em;
  }
  html.intro .intro-sig { animation: m-draw 400ms var(--ease-out) 150ms backwards; }
  html.intro-hold :is(.h1-l > span, .logo, .nav li, .btn-header, .hero-lead, .hero-actions .btn, .sig-hero, .hero-note) {
    animation: none !important;
  }
}

/* Reduced motion: no animations or transitions anywhere; everything is in its final state */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Hover: only where a real pointer can hover ---------- */
@media (hover: hover) {
  .btn-primary:hover { filter: brightness(1.05); }
  .btn-secondary:hover { border-color: var(--text-3); }
  .btn-dark:hover { background: var(--line); }
  .nav a:hover,
  .footer-links a:hover { color: var(--lime); }
  .faq summary:hover .faq-icon::before,
  .faq summary:hover .faq-icon::after { background: var(--text); }
  .demo-note a:hover,
  .data-link a:hover,
  .facts-note a:hover,
  .faq-a a:hover,
  .doc-body a:hover { text-decoration-thickness: 2px; }
  .doc-body :is(h2, h3) > a::after {
    opacity: 0;
    transition: opacity .15s ease-out;
  }
  .doc-body :is(h2, h3) > a:is(:hover, :focus-visible)::after { opacity: 1; }
  .toc li a:hover { color: var(--text); }
  /* Menu and footer links draw an underline from the left, in the text's own colour (lime on hover) */
  .nav a,
  .footer-links a { position: relative; }
  .nav a::after,
  .footer-links a::after {
    content: "";
    position: absolute;
    top: calc(50% + .62em);
    right: 0;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s var(--ease-out);
  }
  .nav a:hover::after,
  .footer-links a:hover::after { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 959px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .split,
  .shows,
  .steps,
  .demo-card { grid-template-columns: minmax(0, 1fr); }
  .cols {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 56px;
    margin-top: 56px;
  }
  .col {
    display: block;
    grid-row: auto;
  }
  .steps {
    gap: 48px;
    margin-top: 56px;
  }
  .step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 16px;
  }
  .step-num { grid-row: span 2; }
  .step h3 { margin-top: 12px; }
  .demo-card { align-items: start; }
}

@media (max-width: 767px) {
  :root {
    --gutter: 20px;
    --section-y: 96px;
    --header-h: 64px;
  }
  body { font-size: 17px; }
  h3 { font-size: 20px; }
  .lead { font-size: 18px; }
  .hero { padding-top: 56px; }
  .agent { padding-bottom: 32px; }
  .tryit { padding-top: 32px; }
  .nav { display: none; }
  .header-inner { gap: 12px; }
  .header-inner .btn { margin-left: auto; }
  .hero-actions .btn { flex: 1 1 100%; }
  .rows > li { grid-template-columns: minmax(0, 1fr); }
  .rows h3 { font-size: 22px; }
  .cover {
    width: min(100%, 320px);
    transform: none;
  }
  .facts strong { font-size: 20px; }
  .demo-text { font-size: 18px; }
  .demo-card .btn { width: 100%; }
  .faq summary {
    padding-block: 20px;
    font-size: 18px;
  }
  .faq-a { padding-right: 0; }
  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .doc { padding-block: 56px 96px; }
  .doc-br { display: inline; }
  .doc-dates > span[aria-hidden] { display: none; }
  .doc-intro { font-size: 18px; }
  .doc-body h2 {
    margin-top: 56px;
    font-size: 24px;
  }
}

/* ---------- Print: the document alone, black on white ----------
   Header, footer, contents and the copy note are left out; web links show their address after the text. */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .toc,
  .copy-note,
  .intro-screen { display: none !important; }
  body,
  .section-paper {
    background: #fff !important;
    color: #000 !important;
  }
  .doc {
    margin: 0;
    padding: 0;
    border-radius: 0;
  }
  .doc-grid { display: block; }
  .doc :is(.doc-head, .doc-body) { max-width: none; }
  .doc :is(h1, h2, h3, p, li, a, strong, .doc-dates) { color: #000 !important; }
  .doc-body :is(h2, h3) > a::after { content: none; }
  .doc-body a[href^="http"]::after { content: " (" attr(href) ")"; }
  .doc-body :is(h2, h3) { break-after: avoid; }
  .doc-body :is(p, li) {
    orphans: 3;
    widows: 3;
  }
}
