/* Site V2.0 — the marketing site built on the design system in ds.css.
 *
 * Hand-written (ds.css is generated). Loaded AFTER each page's legacy inline
 * <style> so v2 rules win at equal specificity while the redesign lands
 * section by section. Superseded legacy rules are deleted as each section is
 * rebuilt — this file is not a permanent override layer.
 *
 * Reference: Figma section "Site V2.0" (536:7462).
 */

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


/* The design's background effects bleed past the container on purpose — in
   Figma the hero's right-hand circle runs 91px into the page margin, which the
   1920 artboard has room for. A real viewport may not: between about 1280 and
   1430 the container has stopped growing but the margins have not opened up
   yet, and the circle lands outside the page. Clip at the viewport, which is
   exactly where the artboard clips it.

   Both elements, and this is not belt-and-braces. Overflow on <html>
   propagates to the viewport and <html> itself then computes back to visible,
   so the viewport clips but <body> still grows the scrollable area: measured
   at 1280, `html` alone left the page scrolling 54px sideways, which is
   exactly how far the circle sticks out. `clip` rather than `hidden` so
   neither becomes a scroll container, which would break the sticky header. */
html,
body { overflow-x: clip; }

body {
  background: var(--ds-static-page-bg);
  color: var(--ds-text-primary);
  font-family: var(--ds-font-sans);
  font-size: var(--ds-size-md);
  line-height: 1.5;
}

/* The page's paper grain, moved here from index.html's inline block where it
   was written and then switched off. The reason it was killed — that the
   design's riso halftones had replaced it — only held on the homepage: the
   halftones are art inside three of its sections, not a surface the page sits
   on, and the quiz, the 404 and the blog have none at all. site.css is the one
   stylesheet all four chrome surfaces link, so it goes back on from here.
   It stays an inline data URI rather than a file under /assets/: everything
   there has to be content-hashed for the immutable cache, and 200px of noise
   costs no request at all this way. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  /* Behind the content rather than the 0 it carried inline. On the homepage
     the two are the same thing, because everything there is inside a
     .v2-container that lifts itself to 1 — but a blog post's <main> is not
     positioned at all, and at 0 a fixed pseudo-element paints over it. The
     body background propagates to the canvas, so -1 still leaves the grain
     above it. */
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.v2-container {
  max-width: var(--ds-container-max-width-desktop);
  margin: 0 auto;
  padding: 0 var(--ds-container-padding-desktop);
  /* Carried over from the legacy .container this replaces: the riso halftone
     and the other decoration layers are absolute, so they need a positioned
     ancestor to sit against. */
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------- header */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
  background: var(--ds-static-page-bg);
  border-bottom: 1px solid var(--ds-border-default);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
header.scrolled { box-shadow: 0 1px 14px rgba(44, 25, 7, 0.06); }

header .header-inner {
  display: flex;
  align-items: center;
  gap: var(--ds-spacing-lg);
  min-height: 72px;
}
header .header-left {
  display: flex;
  align-items: center;
  gap: var(--ds-spacing-lg);
}

header .logo {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-spacing-md);
  text-decoration: none;
  color: var(--ds-text-primary);
  margin: 0;
}
/* The real cameo, not a letter drawn in a CSS circle. Figma's official lockup
   (306:19764) scales "Penny Cameo — Dark Fill" to 27.8px beside a 22.2px
   wordmark, so 28px is the design's own size rounded. Unscoped on purpose:
   the footer carries the same lockup.

   The wordmark stays live text. It is live text in Figma too — Young Serif
   Regular — so baking it into the image would cost selectability and
   crispness for nothing. */
.brand-mark {
  width: 28px;
  height: 28px;
  /* The art is already round and already has its own edge; a radius or a
     background here would show as a ring behind it. */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo:hover .brand-mark {
  transform: rotate(-12deg) scale(1.08);
}
@media (prefers-reduced-motion: reduce) {
  .brand-mark { transition: none; }
  .logo:hover .brand-mark { transform: none; }
}
header .brand-name {
  font-family: var(--ds-font-display);
  font-size: var(--ds-size-xl);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.v2-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-spacing-sm);
  padding: var(--ds-spacing-sm) var(--ds-spacing-lg);
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-full);
  background: var(--ds-static-card-default-bg);
  color: var(--ds-text-primary);
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0;
}

header .nav-tabs {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3xl);
  margin-left: auto;
}
header .nav-tabs .tab {
  color: var(--ds-text-brand);
  text-decoration: none;
  border: 0;
  padding: 0;
  background: none;
  white-space: nowrap;
}
header .nav-tabs .tab:hover { text-decoration: underline; }

/* The current page's tab. The design draws no selected state — the only
   header artboard is the homepage, where no tab is current — so this is the
   v2 header's own idiom rather than a measured value: the underline hover
   already uses, made permanent. The selector is aria-current and not a class
   so the semantics and the styling cannot drift apart, which is exactly how
   the quiz ended up carrying both and styling only one. */
header .nav-tabs .tab[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ------------------------------------------------------------- buttons */

/* The hero and the final CTA each end in one booking link where a 460-wide
   email form used to be. This keeps the form's own bottom margin in the hero
   so the copy column's rhythm is unchanged; the final CTA's link is the last
   thing in its section and takes none, exactly as the form there did. */
.hero-cta { margin: 0 0 var(--ds-spacing-lg); }

button.v2-btn,
a.v2-btn,
.v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-xs);
  /* 16 and 24, not 24 and 16. The shipped pair was the design's reversed,
     which made the button 68 tall and too narrow for its own label. */
  padding: var(--ds-space-xl) var(--ds-spacing-lg);
  border: 0;
  border-radius: var(--ds-radius-md);
  background: var(--ds-interactive-primary-default);
  /* #fff, not the design's #faf7f2: on the #b5651d copper the cream is about
     4.0:1, white about 4.3:1. Neither reaches 4.5:1; the copper itself is
     tracked separately. */
  color: #fff;
  /* Label/M: 14px IBM Plex Sans Medium at a line-height of 1. */
  font-family: var(--ds-font-sans);
  font-size: var(--ds-size-sm);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  /* Figma "Button gradient": a hairline drop shadow plus two inner shadows. */
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    inset 0 -2px 0 rgba(16, 24, 40, 0.05),
    inset 0 0 0 1px rgba(16, 24, 40, 0.18);
}
.v2-btn:hover { background: #a25a19; }
.v2-btn:focus-visible {
  outline: 2px solid var(--ds-interactive-primary-default);
  outline-offset: 2px;
}
header .nav-tabs .tab.cta {
  color: #fff;
  padding: var(--ds-spacing-md) var(--ds-space-xl);
  border-radius: var(--ds-radius-md);
  background: var(--ds-interactive-primary-default);
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    inset 0 -2px 0 rgba(16, 24, 40, 0.05),
    inset 0 0 0 1px rgba(16, 24, 40, 0.18);
}
header .nav-tabs .tab.cta:hover { text-decoration: none; background: #a25a19; }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--ds-space-7xl);
  padding: var(--ds-space-7xl) 0 var(--ds-space-6xl);
}
.hero::before { content: none; }

.hero h1 {
  margin: 0 0 var(--ds-spacing-lg);
  color: var(--ds-text-primary);
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.hero .hero-sub {
  margin: 0 0 var(--ds-space-3xl);
  color: var(--ds-text-secondary);
  max-width: 46ch;
}
.hero .hero-sub strong { color: var(--ds-text-primary); font-weight: 600; }

/* --------------------------------------------- background effect layer */

/* The design keeps its background effects in one place: the Figma section
   "Effects and illustrations" (543:8036). Five components live there — circle,
   rectangle, riso coin, Spray effect, and a four-up illustration set — and the
   V2.0 wireframes place them by instance. They are decoration in every case:
   nothing in them carries meaning, so each one is aria-hidden and inert.
 *
 * `.v2-effect` is the shared mechanics; one class per component carries its
 * art and its intrinsic size; one class per placement carries its position.
 * Positions are percentages of the section box rather than pixels because the
 * container width is still an open question in design/tokens.json — a
 * percentage keeps the design's proportions whichever way that lands.
 *
 * This replaces #930's `.v2-riso`, a radial-gradient stand-in that was never
 * applied to any element. The real thing is not a gradient: see the asset note
 * in docs/src/content/docs/marketing-site.mdx. */
.v2-effect {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* "circle" (543:8029) — 261pt in the design at every width that shows it.

   The radius is not decoration. The component is the shader fill behind a
   mask, Ellipse 18, which is a circle of r=130.5 inscribed in the 261 box,
   and the baked file is the shader on its own. Without the radius the
   lattice fills the square to its corners, which is what the hero has been
   drawing since the file landed. */
.v2-effect-circle {
  width: 261px;
  height: 261px;
  border-radius: 50%;
  background-image: url("/assets/riso-dot-circle.300277d7.webp");
}

/* Section / Hero places two of them behind section.hero. The design measures
   them against the container BOX — 1180 at desktop (520:4753), 1024 at tablet
   (520:4834) — but .hero is that box minus its 32px padding, so the desktop
   percentages are re-based on 1116 rather than divided straight through:
   circle A sits at artboard x=860, which is 458px into a hero starting at 402,
   and 458/1116 is 41.04%. Tablet needs no re-basing, because below 1180 the
   viewport caps the container and the content box is 960 either way. */
.hero { position: relative; }
.hero-riso-a { left: 41.04%; top: 59.13%; }
.hero-riso-b { left: 87.63%; top: -3.97%; }

/* ------------------------------------------------------------ faq */

/* Section / FAQ (520:5130). Four questions where five shipped, all of them
   different, and no eyebrow. The disclosure itself barely moves: the rule,
   the 24px padding and the copper plus were all already right. The summary
   is Heading/M — 20px, where 22 shipped — and loses the tracking the design
   does not set. */
.faq h2 { max-width: none; }
.faq-list { margin-top: 36px; }

.faq details {
  padding: 24px 0;
  border-bottom: 1px solid var(--ds-border-default);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-spacing-lg);
  color: var(--ds-text-primary);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

/* A text plus, not an icon: the design draws it as a glyph at Screen=Small
   (520:5149) and as a component at desktop, and the glyph is the one that
   rotates into a cross for free. */
.faq summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--ds-font-mono);
  font-size: 24px;
  font-weight: 400;
  color: var(--copper);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
/* The + still turns into a × under reduced motion, because that is the open
   state; it just stops animating there. */
@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}

/* 58ch, not the 760px that shipped. At 760 the answers ran about 101
   characters a line — measured while rebuilding Problem, and noted then as
   this section's to fix. A ch cap holds the measure if the size changes. */
.faq details p {
  max-width: 58ch;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
/* ------------------------------------------------- how it works */

/* Section / How / Intro (520:4960) and Section / How / Steps (520:5001).
   Two frames in the design, one <section> here, because #how is the nav's
   anchor and splitting it would need two. The eyebrow is not in the design
   and is gone, as it was on Problem.

   The step paragraph is Body/XL — 18px, not the 15px that shipped. It is the
   one measured change in a section whose CSS was otherwise already close:
   the 80px numeral, the 26px heading and the 52px column gap were all
   right. */
.how h2,
.how .lead {
  /* The legacy `h2` and `.lead` rules cap every section at 800 and 640; the
     design runs both the full 1116 content width. */
  max-width: none;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
  margin-top: 28px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-lg);
}
.step-num {
  font-family: var(--ds-font-display);
  font-size: 80px;
  font-weight: 400;
  line-height: 1;
  color: var(--ds-text-brand);
}
.step h3 {
  padding-top: 10px;
  font-family: var(--ds-font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.step p { color: var(--ink-soft); }

/* The numerals scale in as each step is revealed. Moved here from the page's
   inline <style> with the rest of the section, reset and all. */
.step .step-num {
  opacity: 0;
  transform: scale(0.5) translateY(10px);
  transition:
    opacity 0.6s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step.in .step-num {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.step.delay-2 .step-num { transition-delay: 0.15s; }
.step.delay-3 .step-num { transition-delay: 0.30s; }

/* The microprint again — the same baked file the Problem module uses. It
   sits above and to the right of the steps, mostly in the page margin, so
   the percentages are of .steps rather than the container. */
.how-microprint { left: 101.8%; top: -17.19%; }
/* ------------------------------------------------ roi calculator */

/* Section / ROI Calculator (520:5058) — the last section off the v1 layer,
   and with it go the bare `h2`/`.lead` globals' last non-rebuilt caller.
 *
 * Two flat panes become one card: a 30px strip of the card's own fill, then
 * white inputs beside sunken results, under the brand's hard riso shadow.
 * The eyebrow goes, as it did on Problem and How. The big figures move from
 * Young Serif to Mono/XXL — the design sets them in JetBrains at 32, where a
 * clamp ran them to 44 in the display face.
 *
 * The 920 and 560 breakpoints the v1 section carried were its own; this is
 * on the 1024/767 pair the rest of the v2 layer uses. */
/* The art is positioned against the section, so the section has to be the
   thing it is positioned against. */
.roi { position: relative; }
.roi h2 { max-width: none; }
/* The legacy `.lead` rule holds every lead 52 off what follows; the design
   gives this one the same 22 it gives the headline. */
.roi .lead { margin-bottom: 0; }

.roi-grid {
  margin-top: 22px;
  display: grid;
  /* 505 beside the remainder at 1440. Below 1025 the panes stack. */
  grid-template-columns: 505px minmax(0, 1fr);
  /* The card's own fill is visible only as the strip above the panes. */
  padding-top: 30px;
  background: var(--ds-border-default);
  border: 1px solid var(--copper);
  border-radius: 12px;
  box-shadow: var(--ds-shadow-riso-neutral);
  /* clip rather than hidden, for the same reason the page scrolls on clip:
     a hidden box becomes a scroll container and breaks the sticky header. */
  overflow: clip;
  position: relative;
  z-index: 1;
}

.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 34px 30px;
  background: var(--bg-elev);
}
.roi-results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 40px;
  background: var(--bg-sunken);
}

.roi-field { display: flex; flex-direction: column; gap: 7px; }
.roi-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-spacing-md);
  padding-bottom: 5px;
}
.roi-number {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-xs);
  /* The design sets the $ and /h in IBM Plex Mono and the value in
     JetBrains. Only three faces are loaded, and the screenshot helper fails
     closed on a fallback, so both are the one mono the brand has. */
  font-family: var(--ds-font-mono);
  font-size: var(--ds-size-sm);
  color: var(--ink-soft);
}
.roi-number input {
  width: 82px;
  padding: var(--ds-space-md) var(--ds-space-lg);
  border: 1px solid var(--ds-input-border-default);
  border-radius: var(--ds-radius-md);
  background: var(--ds-input-bg-default);
  /* Mono/XL. Left, not the right the v1 field used: the design aligns the
     value with the label above it. */
  font-family: var(--ds-font-mono);
  font-size: var(--ds-size-md);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.05);
}
.roi-number input:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(181, 101, 29, 0.1);
}

/* The design fills the track up to the handle and gives the handle a 24px
   ring. accent-color can do the fill or the ring, never both, and WebKit has
   no ::-moz-range-progress, so the track is a gradient whose stop the page
   script writes to --roi-fill on every input. */
.roi-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
/* WebKit and Gecko each drop a whole selector list containing a
   pseudo-element the other does not know, so every rule below is written
   twice rather than once with two selectors. */
.roi-field input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: var(--ds-radius-full);
  /* #e5ded2, the page's own hairline, for the design's #e4e7ec: the site has
     no cool grey, and at this value the only difference is temperature. */
  background: linear-gradient(
    to right,
    var(--copper) 0 var(--roi-fill, 0%),
    var(--ds-border-default) var(--roi-fill, 0%) 100%
  );
}
.roi-field input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: var(--ds-radius-full);
  background: linear-gradient(
    to right,
    var(--copper) 0 var(--roi-fill, 0%),
    var(--ds-border-default) var(--roi-fill, 0%) 100%
  );
}
.roi-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  /* The track is 8 inside a 24 box, so the thumb comes up by the 8 that
     centres it: (8 - 24) / 2. */
  margin-top: -8px;
  border: 2px solid var(--copper);
  border-radius: var(--ds-radius-full);
  background: var(--ds-interactive-backgrounds-default);
  box-shadow:
    0 4px 8px -2px rgba(16, 24, 40, 0.1),
    0 2px 4px -2px rgba(16, 24, 40, 0.06);
}
.roi-field input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 2px solid var(--copper);
  border-radius: var(--ds-radius-full);
  background: var(--ds-interactive-backgrounds-default);
  box-shadow:
    0 4px 8px -2px rgba(16, 24, 40, 0.1),
    0 2px 4px -2px rgba(16, 24, 40, 0.06);
}
.roi-field input[type="range"]:focus-visible {
  outline: 2px solid var(--ds-interactive-primary-default);
  outline-offset: 2px;
}

/* Mono/Label/S, uppercase as the design sets it. */
.roi-range-ends {
  display: flex;
  justify-content: space-between;
  font-family: var(--ds-font-mono);
  font-size: var(--ds-size-11);
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.roi-results-label {
  padding-bottom: 22px;
  font-family: var(--ds-font-mono);
  font-size: 11px;
  line-height: 17px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ds-text-brand);
}
.roi-headline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ds-space-md);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--ds-border-default);
}
/* Mono/XXL. Tabular figures so the three do not jump as the sliders move. */
.roi-big {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-size-3xl);
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.roi-caption {
  margin-top: 7px;
  font-family: var(--ds-font-sans);
  font-size: var(--ds-size-sm);
  line-height: 1.55;
  color: var(--ink-soft);
}
.roi-cta-row {
  display: flex;
  justify-content: center;
  padding-top: 30px;
}

/* The art sits beside .v2-container, not inside it, which is the one thing
   that puts it behind the copy: .v2-effect is positioned, and a positioned
   element paints over an in-flow sibling whatever its z-index, so inside the
   container the spray would cover the headline. Outside it, the container's
   own z-index: 1 lifts every piece of copy over the art in one go — the
   arrangement the hero and the final CTA already use.
 *
 * Horizontals are percentages of the section box, as the hero's circles are.
 * Verticals are the artboard's own pixels from the top of the section, which
 * is where the design measures them. */
.roi-spray { left: 44.24%; top: 249px; }
/* Both pieces bob as the page scrolls past them. index.html writes --bob-y
   off the same rAF-throttled scroll listener that drives the hero preview's
   parallax — one listener for all three — and the 0px fallbacks here are what
   renders when it never runs, so the drift stays additive to the placements
   above and below. The spray travels further than the coin: it is 608px to
   the coin's 160 and sits behind the card, so the same number would read as
   less on it. */
.roi-spray,
.roi-coin {
  transform: translate3d(0, var(--bob-y, 0px), 0);
  will-change: transform;
}
/* Behind the card at every desktop width — the artboard puts it at x=284,
   where the card starts at 162 and runs 1116 wide. Not drawn at all rather
   than drawn and covered, so the file is never fetched by a viewport that
   cannot show it. */
.roi-coin { display: none; }

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

/* The footer is the second half of the shared chrome that
   website/build-chrome.mjs renders, and these are the rules that make it
   work on a page other than the homepage. They were in index.html's inline
   <style>, unscoped, which is how the quiz ended up with a drifted copy and
   404 with no footer at all. The logo and the brand name are scoped to
   `footer` for the same reason the header's are scoped to `header`: one
   rule per surface, no bleed between them.

   Footer (854:37535) is two rows: the partner lockup and the link columns,
   then the brand lockup and the meta line under a hairline. Each row is a
   child of .v2-container rather than being one, because the rule spans the
   content width in the design — on the container itself it would run out
   under the side padding, and that padding changes at 768. */
footer {
  padding: var(--ds-space-7xl) 0 var(--ds-space-6xl);
  border-top: 1px solid var(--line);
}
.footer-top {
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-4xl);
  /* The design's 64 between the rows. The bottom row owns the rule and the
     32 above its own content, so the space between them belongs here. */
  margin-bottom: var(--ds-space-7xl);
}
.footer-partner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--ds-space-md);
}
.footer-columns {
  display: flex;
  gap: var(--ds-space-4xl);
}
.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-xl);
  width: 176px;
}
/* The design draws both labels from `text/tertiary` (#a39a8c), which is a
   stock grey from the component library rather than a brand token — the same
   collection the mock's #e4e7ec hairline comes from. --ink-muted is the warm
   equivalent this site already puts on the meta line below, and it is the
   darker of the two (3.54:1 on the page background against 2.60). Neither
   clears AA at 14px; the muted-label colour is the site's to settle, not this
   footer's. */
.footer-column-label {
  margin: 0;
  color: var(--ink-muted);
  line-height: 20px;
}
.partner-lockup {
  display: flex;
  align-items: center;
  gap: var(--ds-space-xl);
}
.partner-mark {
  width: 143px;
  height: auto;
}
.partner-names {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-md);
  max-width: 156px;
}
.partner-names p {
  margin: 0;
  color: var(--ink);
  font-family: var(--ds-font-sans);
  font-size: var(--ds-size-11);
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  color: var(--ink);
  line-height: 24px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--copper); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: var(--ds-space-4xl);
  border-top: 1px solid var(--line);
}
footer .logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}
footer .brand-name {
  font-family: var(--ds-font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.footer-meta {
  font-family: var(--ds-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
/* ------------------------------------------------------ problem */

/* Section / Problem (520:4926). The eyebrow and the 01/02/03 card numbers
   are not in the design and are gone; the three cards become one bordered
   row on the riso shadow, each led by an illustration from Component 19. */
/* 934 and not the h2 frame's 892: the text node inside that frame is 934
   wide and overflows it, and 934 is what wraps the headline onto the
   design's three lines. At 892 it takes four. */
/* Deliberately NOT positioned: the cameo inside it anchors to the
   container, which is the box the design measures it against. */
.problem-head {
  max-width: 934px;
}
/* The legacy `h2` rule caps every headline at 800, which wrapped this one
   onto four lines inside a 934 box. The module sets its own measure. */
.problem-head h2 { max-width: none; }

/* 178px is the largest placement of the cameo in the whole design, which is
   why the shipped file is 356px — exactly 2x this.

   It is anchored to the CONTAINER's right edge, not to the headline: the
   design puts its right edge 2px inside a 1180 container, which clears the
   934-wide text column by 34px. Anchoring it to the headline box instead
   reads as plausible and lands the coin on top of the word `strategy`.
   z-index 0 keeps it under the card row, which the design overlaps it with. */
.problem-cameo {
  position: absolute;
  top: 158px;
  right: 2px;
  width: 178px;
  height: 178px;
  z-index: 0;
}

/* The coin flips once, as the section arrives. It carries .reveal so the
   IntersectionObserver already in index.html drives it — there is no second
   observer — and that observer unobserves on the first hit, which is what
   keeps the flip from replaying every time the section comes back.

   Two departures from the obvious shape. It opts out of the reveal's own
   28px lift, because a 3D rotation and a translate fight over one `transform`
   property. And the perspective is a transform FUNCTION rather than a wrapper
   element: a wrapper would have to take over the absolute placement above,
   which is measured against the container, and the function gives the same
   foreshortening about the coin's own centre.

   No reset here: .problem-cameo carries .reveal, and the reduced-motion block
   at the end of this file already stops .reveal dead, animation included. */
.problem-cameo.reveal {
  opacity: 0;
  transform: perspective(900px) rotateY(0deg);
  /* Both turns are eased in AND out — cubic-bezier(0.65, 0, 0.35, 1) — where
     the rest of the page's motion is the front-loaded ease-out the reveal
     system uses. On a 360deg rotation that curve puts most of the turn in the
     first fifth and then crawls, which is what read as fast however long the
     duration was. Gentle at both ends is what a flipped coin actually does. */
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.problem-cameo.reveal.in {
  opacity: 1;
  transform: perspective(900px) rotateY(0deg);
  animation: coin-flip 1.8s cubic-bezier(0.65, 0, 0.35, 1);
}
/* And it turns again on hover. This is a transition rather than a second
   animation, and that is what decides the shape of the rule above: the entry
   flip does NOT fill forwards, because a filled animation holds `transform`
   for good and a hover transition could never touch it. Without the fill the
   coin lands back on its own 0deg, which 360deg is, so nothing moves when the
   animation ends and the property is free again.

   The base has to spell out `perspective(900px) rotateY(0deg)` rather than
   `none`: matching function lists interpolate function by function, 0 → 360.
   Against `none` the browser interpolates matrices instead, and the matrix of
   a full turn is the identity — the coin would sit perfectly still.

   Leaving unwinds the turn rather than cutting it. `transition: none` on the
   resting state would snap back invisibly at 360deg, but it also snaps from
   wherever the pointer left mid-turn, and a coin caught side-on popping flat
   is worse than a slow spin back. */
.problem-cameo.reveal.in:hover {
  transform: perspective(900px) rotateY(360deg);
}

/* A whole turn rather than a half: the art is one face, so 180deg would
   leave the coin mirrored. Through the middle of the turn the mirrored face
   reads as the back of the coin, which is the trick a real flip plays. */
@keyframes coin-flip {
  from { transform: perspective(900px) rotateY(0deg); }
  to { transform: perspective(900px) rotateY(360deg); }
}

/* p.lead is the full 1116 content width in the design. The legacy .lead
   rule caps every lead on the page at 640, which wraps this one onto two
   lines; the cap goes with that rule when the last section is rebuilt. */
.problem .lead {
  position: relative;
  max-width: none;
}

.problem-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--ds-border-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--ds-shadow-riso-dark);
}
.problem-card {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-lg);
  padding: 37px 30px 38px;
  background: var(--bg-elev);
  transition: background 0.2s ease;
}
.problem-card:hover { background: var(--bg-sunken); }
.problem-icon {
  width: 109px;
  height: 109px;
}
/* 24px is the design's own size and is not one of the eleven text styles,
   so it stays a literal rather than pretending to be a token. */
.problem-card h3 {
  font-family: var(--ds-font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.problem-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* "rectangle" (543:8031) — a second shader, "Risographic microprint", baked
   the same way the hero's dot gradient was. It bleeds off the container's
   left edge at every width, which is what overflow-x: clip is already there
   for. Percentages of the container box, as the hero's circles are. */
.v2-effect-microprint {
  width: 228px;
  height: 228px;
  background-image: url("/assets/riso-microprint-square.176592b4.webp");
}
.problem-microprint { left: -4.75%; top: 57.9%; }

/* "Spray effect" (543:8032) — the third shader, and the first component in
   the set whose Figma render is opaque: the shader paints one ink, #91591F,
   onto white rather than onto nothing the way the circle and the rectangle
   do. A white square cannot ship over the page, so the bake inverts the
   composite back into ink-with-alpha — exact to a mean of 0.114/255, because
   a single ink over a known white is a solvable equation and not a guess.
   The alpha plane is then quantised to 16 levels: it is a dither and it is
   the whole weight of the file, 186KB down to 81KB for a mean error under
   1/255. Both numbers are well inside the 1.87/255 this project already
   rejected a CSS lookalike over. */
.v2-effect-spray {
  width: 608px;
  height: 608px;
  background-image: url("/assets/riso-spray.efacc915.webp");
}

/* "riso coin" (543:8030) — a full-colour illustration, not a shader, so the
   only thing the bake drops is the white outside the disc. Like the circle
   it is inscribed in its own box, and unlike the circle the mask is baked in
   rather than re-applied here: the file carries colour to its rim, so a
   border-radius would be clipping art rather than restoring a mask. The
   export is 390x391 for a 193 square — Figma's own half-pixel, kept. */
.v2-effect-coin {
  width: 193px;
  height: 193px;
  background-image: url("/assets/riso-coin.a7c94ca9.webp");
}
/* -------------------------------------------------- hero preview */

/* Section / Hero (520:4686) draws ONE window, titled "Penny Platform",
   with a six-stage pipeline strip over the client list and an "Integrated
   with" row beneath it. What shipped before was two windows on an 1800px
   perspective, tilted on rotateY/rotateX, with a Diagnostics panel behind
   the Pipeline. The design has neither the second window nor the tilt, so
   .diag-*, .finding-*, .sev-mark and the perspective are deleted rather
   than carried. The window's content is the artboard's throughout: the
   original pipeline's five stages and their status copy are deprecated,
   which is why the 20s stage ticker went with them — every line it
   animated belonged to copy the design replaced. The vertical parallax
   stays, because it is the site's own and there is no motion spec to
   replace it: get_motion_context is empty for every node under these
   artboards. */
.hero-preview {
  display: flex;
  flex-direction: column;
  gap: var(--ds-spacing-lg);
}

.preview {
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--ds-border-dark);
  border-radius: 14px;
  /* The brand's hard riso shadow — offset, no blur — rather than the soft
     elevation the two-window stack floated on. */
  box-shadow: var(--ds-shadow-riso-dark);
  transform: translateY(var(--parallax-y, 0px));
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: var(--ds-space-md);
  padding: 10px 14px;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line);
}
.traffic-light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.traffic-light.r { background: #e27d6f; }
.traffic-light.y { background: #e5bd68; }
.traffic-light.g { background: #8ab87e; }

/* The design titles the window rather than faking a browser, so this is the
   display face and not mono. The right margin is the three lights plus
   their gaps: without it the title centres in the space left beside them
   rather than in the window. */
.preview-url {
  flex: 1;
  margin-right: 49px;
  font-family: var(--ds-font-display);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  text-align: center;
}

.preview-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 24px 26px;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-md);
}
.preview-title {
  display: flex;
  align-items: center;
  gap: var(--ds-space-md);
  font-family: var(--ds-font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.preview-coin {
  width: 28px;
  height: 28px;
}
.preview-meta {
  font-family: var(--ds-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

/* The six stages of the pipeline as one bordered strip of equal cells. The
   design draws the caption at 6px (I520:4687;434:6526); it ships at 10px,
   the smallest size we let carry readable text. */
.pipeline-ticks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  overflow: hidden;
  border: 1px solid var(--ds-border-dark);
  border-radius: var(--ds-radius-sm);
}
.tick {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--ds-space-sm);
  min-width: 0;
  padding: 9px 8px 8px;
  background: var(--ds-static-card-default-bg);
  border-right: 1px solid var(--line);
}
.tick:last-child { border-right: 0; }
.tick-num {
  font-family: var(--ds-font-mono);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #221e19;
}
.tick-cap {
  font-family: var(--ds-font-mono);
  font-size: 10px;
  line-height: 1.15;
  letter-spacing: 0.09em;
  color: #7a736a;
  text-transform: uppercase;
}

.client-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.client-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: var(--ds-spacing-md);
  align-items: center;
  padding: var(--ds-spacing-md);
  background: var(--ds-static-card-default-bg);
  border: 1px solid var(--ds-border-dark);
  border-radius: 10px;
  transition: transform 0.2s ease;
}
.client-row:hover { transform: translateX(2px); }

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--ds-font-display);
  font-size: 13px;
  color: var(--ink-soft);
}

.client-info { min-width: 0; }
.client-name {
  margin-bottom: 3px;
  font-size: var(--ds-size-sm);
  font-weight: 500;
  color: var(--ink);
}
.client-status {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Young Serif, upright: the artboard sets this in Fraunces Italic, which
   PR 4 retired from the whole site — see the italic display text entry in
   design/tokens.json. */
.penny-tag {
  font-family: var(--ds-font-display);
  color: var(--copper);
}

/* Core Badge on the badge tokens: square-ish at 4px, Mono/Label/S. The old
   stage pill was a 999px capsule on legacy soft colours. */
.stage-pill {
  padding: 4px 8px;
  border-radius: var(--ds-space-xs);
  font-family: var(--ds-font-mono);
  font-size: var(--ds-size-11);
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}
.stage-pill.setup { background: var(--ds-badge-default-bg); color: var(--ds-badge-default-text); }
.stage-pill.intake { background: var(--ds-badge-primary-bg); color: var(--ds-badge-primary-text); }
.stage-pill.filed { background: var(--ds-badge-info-bg); color: var(--ds-badge-info-text); }
.stage-pill.closed { background: var(--ds-badge-success-bg); color: var(--ds-badge-success-text); }

.integrations {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.integrations-cap {
  font-size: var(--ds-size-lg);
  color: var(--ink-soft);
}
.integrations-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
.integrations-logos img {
  max-width: 100%;
  height: auto;
}
/* ------------------------------------------------------- founder */

/* Section / Founder (520:5099). The design keeps one thing, the quote,
   and drops everything around it: the `Why now` eyebrow, the `A note from
   the founder` label, and the two-column grid that existed only to hold
   that label. What is left is a full-width pull quote and its attribution.

   Screen=Small (520:5119) is NOT the design here. It still draws Fraunces
   Italic for the quote, IBM Plex Mono for the name and the eyebrow above
   both — the site exactly as it stood before PR 4 swapped the faces — so
   it is a stale import of the old page rather than a narrow-width intent.
   Desktop (520:5099) and Tablet (520:5108) agree with each other and bind
   the system's own Mono/Caption/L, and they are what this follows at every
   width. */
.founder-note {
  margin: 0;
}

/* 26px Young Serif is the design's own size and is not one of the eleven
   text styles, so it stays a rule rather than a class. No measure cap: the
   design runs the quote the full content width, and with none the wrap
   lands on the artboards' own — five lines at 1440, six at 1024. That is
   80 characters a line at 1440, wider than the 58ch the FAQ answers were
   capped to, but it is what the design draws at a display size. */
.founder-quote {
  margin: 0 0 var(--ds-spacing-lg);
  font-family: var(--ds-font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.005em;
  color: var(--ink);
}

/* Mono/Caption/L carries the rest: 14px JetBrains Mono Medium, sentence
   case, no tracking. The 13px uppercase with 0.08em that shipped is what
   Screen=Small still draws, which is the old style and not the new one. */
.founder-name {
  color: var(--ink-muted);
}

/* ----------------------------------------------------- final cta */

/* Section / Waitlist (520:5202). The headline comes down to Heading/6XL,
   56px where a clamp ran it to 88 at 1440, and the section gains the art
   the design draws beside it. No rule above it: PR 1 read this as the one
   section the design still ruled off and kept the bare `section` border for
   it, but `Section / Waitlist` draws no border of its own at any artboard —
   the only hairline near it is the Footer's own top, which is a separate
   instance and still there. With the legacy `section` rule gone, the page
   has no section lines left at all. */
.final-cta {
  position: relative;
  padding: 120px 0 130px;
  /* The art ends 484 below the section's top edge and the artboard ends
     the section at 511, so it closes 26 clear of the footer — the overhang
     this comment used to describe was the old top offset rather than the
     design. The copy here is shorter than the artboard's — no founder-call
     link, and the headline wraps naturally rather than on the break the
     artboard captured — so without a floor the section closes 37 early and
     the art hangs past it. A min-height keeps the artboard's own number
     rather than padding invented to chase the art, and it gives way if the
     copy ever grows past it. */
  min-height: 511px;
}
/* 17.6 between the headline and the form, plus the form's own 24 of top
   inset, collapsed into the one margin that separates them here. */
.final-cta h2 { margin-bottom: 42px; }
/* The circles reach across the headline. Lifting the copy keeps it over
   them rather than under, which is the order the artboard draws. */
.final-cta .container { position: relative; z-index: 1; }

/* One block, not four placements. The calendar sits on the circles and the
   cameo on the calendar, so the composition only holds if the four keep
   their offsets from each other; the block is their bounding box at 1440
   and they are placed inside it in pixels. */
.waitlist-art {
  position: absolute;
  /* The art is placed from the container, not from a viewport edge: it sits
     782 right of the container's left edge on both desktop artboards (912 at
     1440, 1152 at 1920), which is the same thing the design writes as
     `left: calc(50% + 322.5px)` on a centred circle. The offset it replaces
     was read at 1920 only and dropped the block 256px too far left at 1440,
     across the headline. Below 1180 the container stops centring and the
     max() pins the block there, so the 13px it overlaps the headline's long
     line by — which is the overlap the artboards themselves draw — stays put
     instead of growing. Top is the artboards' own 51.14; 98 was never a
     number either frame draws. */
  left: min(calc(max(0px, (100% - var(--ds-container-max-width-desktop)) / 2) + 782px), calc(100% - 391px));
  top: 51px;
  width: 391px;
  height: 433px;
  z-index: 0;
}
.waitlist-art > * { position: absolute; }

/* The same baked circle the hero places twice, at the same 261. */
.waitlist-riso-a { left: 0; top: 0; width: 261px; height: 261px; }
.waitlist-riso-b { left: 130px; top: 172px; width: 261px; height: 261px; }
/* Component 19's fourth illustration, and the last of the set to ship.

   It drifts with the pointer inside the section. index.html writes --float-x
   and --float-y off a rAF-throttled pointermove, the same shape as the hero's
   scroll parallax and behind the same two guards — reduced motion, and 920px.
   The fallbacks below are what renders when none of that runs, so the drift
   is additive to the placement rather than part of it. The transition is what
   makes it a float rather than a cursor-follow: the pointer stops, and the
   calendar keeps moving for another 700ms. */
.waitlist-calendar {
  left: 51px;
  top: 73px;
  width: 245px;
  height: 245px;
  transform: translate3d(var(--float-x, 0px), var(--float-y, 0px), 0);
  /* A deeper ease-out than the page's usual, and 0.7s to cross it: the drift
     chases a pointer that has already stopped, so all of the character is in
     how long it takes to give up the last few px. Eased in as well it would
     only feel late. */
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
/* Not the cameo the header and the Problem module place. Section / Waitlist
   selects the variant with the profile in it — the thing the word cameo
   means — where every other placement on the page draws the coin with a P.
   Same component name in the metadata; only the render tells them apart.

   138 and not the artboard's 132, offset back by the 2.16 and 1.62 the
   coin sits at inside its own box: the design's 1px riso shadow is already
   in the exported pixels, and the bounds grew to hold it. So no filter
   here — adding one would draw the shadow twice. */
.waitlist-cameo {
  left: 196px;
  top: 249px;
  width: 138px;
  height: 138px;
  /* The same pointer drift as the calendar, negated. They are the two pieces
     of this composition that overlap, so moving them apart is what reads as
     depth; moving them together would just slide the picture. */
  transform: translate3d(calc(var(--float-x, 0px) * -1), calc(var(--float-y, 0px) * -1), 0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* -------------------------------------------------------------- motion */

/* Moved out of index.html's legacy inline <style> (dedented, otherwise
   unchanged). These are the SHARED parts of the reveal system: .fade-up is the
   hero's load-in, and .reveal is used by the problem cards, the steps, the ROI
   grid and both CTAs. They live here so a section PR can delete its own legacy
   rules without reaching into motion other sections still depend on.
   Section-specific motion stays inline beside that section's CSS
   (`.step .step-num`) and goes when the section is rebuilt, as the hero
   preview's `.working-dot` and stage flash did. */

.fade-up {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
.fade-up.d1 { animation-delay: 0.05s; }
.fade-up.d2 { animation-delay: 0.18s; }
.fade-up.d3 { animation-delay: 0.30s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* .delay-4 did not come along: no element has ever carried it. */
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.18s; }
.reveal.delay-3 { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  .step .step-num {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal,
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  /* The cameo's flip and its hover spin are covered by .reveal above, which
     stops transform, transition and animation dead. Everything else that
     moves is driven by a custom property rather than a class, so it is
     stopped by name: both listeners bail under reduce as well, and these are
     what hold if either ever stops doing that. */
  .waitlist-calendar,
  .waitlist-cameo,
  .roi-spray,
  .roi-coin {
    transform: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--ds-space-4xl); }
  /* The headline size is no longer set here: ds.css swaps .ds-heading-6xl to
     Heading/XXL at this breakpoint, generated from the token source. Only the
     measure stays ours — in one column the 18ch clamp would wrap the headline
     far earlier than the artboards do. */
  .hero h1 { max-width: none; }

  /* Screen=Tablet (520:4834) moves both circles rather than resizing them:
     92 and 612 across a 1024 hero, 721.29 and 249.29 down a 1049.73 one. */
  .hero-riso-a { left: 8.98%; top: 68.71%; }

  /* Screen=Tablet (520:5068) stacks the panes: inputs above results, with
     the card's strip still above both. */
  .roi-grid { grid-template-columns: minmax(0, 1fr); }
  /* Both tablet artboards hold the spray at the same 637 from the section's
     left edge while the section narrows under it, so it bleeds further off
     the right at 768 than at 1024. That is the design, and it is why this
     one is pixels rather than the percentage desktop uses. */
  .roi-spray { left: 637px; }
  /* The coin comes out from behind the card and off the left edge — the only
     width band where any of it is visible. */
  .roi-coin { display: block; left: -3.52%; top: 563px; }
  .hero-riso-b { left: 59.77%; top: 23.75%; }

  /* Screen=Tablet (520:4939) keeps all three cards side by side. */
  .problem-head { max-width: 678px; }   /* Screen=Tablet's own h2 width */
  .problem-cameo { top: 70px; right: 24px; }
  /* The fixed coin occupies the right 178px at tablet widths. Reserve its
     column plus a 32px gutter so longer lead text wraps instead of crossing it. */
  .problem .lead { max-width: calc(100% - 210px); }
  .problem-microprint { left: -0.59%; top: 60.96%; }

  /* Screen=Tablet (520:5027) keeps three steps across, at a 32px gap. */
  .steps { gap: 32px; }
  .how-microprint { left: 97.5%; top: -24.72%; }

  /* Both placement numbers here are OURS, not the artboards'. They put the
     block at 50% + 40 and 19.14 down — 552 at 1024, 424 at 768 — and can only
     do that because their headline breaks after "busy", leaving the top-right
     corner of the section empty. Ours is one line at this size, running to
     596 and sitting where the calendar would be, so taking either number on
     its own draws the calendar through it. The owner looked at both and kept
     the position it shipped with, so this IS the tablet placement rather than
     an interim one. Moving it would take the headline's break with it.


     What it does NOT keep is the overhang. At 433 tall from a top of 98 it
     ended 532 down a section the artboards draw at 453, so 79px of circle and
     cameo hung into the footer. Raising it is what collides with the headline;
     shrinking it is not, so the block scales to 0.8 — 346 tall, ending at 445,
     clear of the section by 8. Scaling the BLOCK rather than re-sizing four
     pieces keeps every offset inside it exactly as measured, which is the
     whole reason this is one block. The origin is the top-left corner, the one
     `right` already fixes: scaling from there also pulls the right edge back
     in, so the bleed off the viewport drops from 103px to 25 — closer to the
     47 the 768 artboard draws than the 103 it replaces. html and body clip
     the x axis for the hero's circles, which bleed the same way. */
  .waitlist-art {
    left: auto;
    right: -103px;
    top: 98px;
    transform: scale(0.8);
    transform-origin: top left;
  }
  /* Not only moved: both artboards also pull the calendar and the cameo
     24px back towards the circles, which the circles themselves do not do. */
  .waitlist-calendar { left: 27px; }
  .waitlist-cameo { left: 172px; }
  /* Both artboards draw the section at 453 here, and their art ends at 452,
     just inside it. Ours ends at 445, by a different route — see the scale
     on .waitlist-art above. */
  .final-cta { min-height: 453px; }
}

/* Screen=Small (520:4912) has no circles at all — the phone hero is the
   previews, the headline and the form, with nothing behind them. 767 and not
   768 for the same reason as the hero's body copy: the 768 artboard still
   renders the tablet variant, so the boundary sits below it. */
@media (max-width: 767px) {
  .hero-riso-a,
  .hero-riso-b { display: none; }

  /* Screen=Small (520:5078). The three figures stack — side by side they
     need about 560 and the card has 342 — and the panes lose the 40 of side
     padding the results carried, so both read on the same 30. */
  .roi-headline { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .roi-results { padding: 32px 30px; }
  /* The art swaps sides on the phone: the spray goes off the left and the
     coin off the right, where the 390 artboard puts them. The artboard opens
     its section at 24 where the page opens at the legacy 72, so the tops are
     the artboard's offsets from the container, moved down by that. */
  .roi-spray { left: -29.49%; top: 537px; }
  .roi-coin { left: 72.82%; top: 611px; }

  /* Six cells of 10px caps do not fit a phone, so the strip scrolls rather
     than crushing every label to one letter. */
  .pipeline-ticks {
    grid-template-columns: repeat(6, minmax(96px, 1fr));
    overflow-x: auto;
  }

  /* Screen=Small (520:4952) stacks the cards and keeps both decorations. */
  .problem-head { max-width: none; }
  .problem .lead { max-width: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-cameo { top: 309px; right: 0; }
  .problem-microprint { left: -13.45%; top: 20.52%; }

  /* Screen=Small (520:5053) stacks the steps and drops the square in
     between the second and the third. */
  .steps { grid-template-columns: 1fr; }
  .how-microprint { left: 86.26%; top: 59.43%; }

  /* Screen=Small (520:5239) moves the waitlist art above the copy and
     re-composes it: the circles, the calendar and the cameo are each
     scaled by a different amount, so this is the artboard's own layout
     rather than the desktop block shrunk. The block is 324 wide and
     centres in a 390 viewport, which is where the design puts it. */
  /* In flow above the copy now, so there is no overhang to hold open. */
  .final-cta { padding: 24px 0; min-height: 0; }
  .waitlist-art {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 324px;
    height: 331px;
    margin: 0 auto;
    /* The tablet block's 0.8 would otherwise come down with everything else
       and take a fifth off a composition the artboard already re-drew at
       this size, pieces and all. */
    transform: none;
  }
  .waitlist-riso-a { left: 21px; top: 26px; width: 208px; height: 208px; }
  .waitlist-riso-b { left: 86px; top: 112px; width: 208px; height: 208px; }
  .waitlist-calendar { left: 50px; top: 90px; width: 200px; height: 200px; }
  .waitlist-cameo { left: 175px; top: 178px; width: 86px; height: 86px; }
}

/* The pill has to go before the header switches to two rows, not with it.
   Master dropped .canada-tag at 820 because the single row stops fitting there:
   measured at 820 and 800 with the pill still in place, the tab row overflows
   and `Book a demo` sits off-screen — the same stranding the two-row layout
   fixes lower down, just 52px higher up. */
@media (max-width: 820px) {
  header .v2-pill { display: none; }
}

@media (max-width: 768px) {
  /* Footer, small screen (854:37571). The columns stack under the partner
     lockup, the rows close up from 64 to 48, and the bottom row stacks the
     brand lockup above the meta line. */
  footer { padding: var(--ds-space-6xl) 0; }
  .footer-top {
    flex-direction: column;
    gap: var(--ds-space-6xl);
    margin-bottom: var(--ds-space-6xl);
  }
  /* The columns stay side by side under the lockup, at the artboard's 151,
     and wrap rather than overflow if one ever gains a longer label. */
  .footer-columns { flex-wrap: wrap; }
  .footer-column { width: 151px; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--ds-space-3xl);
  }

  /* Every migrated section uses .v2-container. Leave legacy .container
     padding to the pages that still own it, rather than overriding it here. */
  .v2-container { padding: 0 var(--ds-container-padding-mobile); }

  /* The design's mobile header is two rows: the logo, then the tab row under
     it. Never hide the nav outright — the header holds the only link to the
     Firm AI Quiz and one of only two Book a demo CTAs, so hiding it strands
     both on phones. The tabs wrap rather than scroll, so nothing sits off
     screen behind a gesture with no affordance. */
  header .header-inner {
    flex-wrap: wrap;
    min-height: 0;
    row-gap: var(--ds-spacing-md);
    /* Top/bottom only — the shorthand would reset .v2-container's side
       padding to 0 and let the tab row bleed off the left edge. */
    padding-top: var(--ds-spacing-md);
    padding-bottom: var(--ds-spacing-md);
  }
  header .nav-tabs {
    order: 2;
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: var(--ds-spacing-md) var(--ds-space-xl);
  }

  .hero { padding: var(--ds-space-4xl) 0; }
}
