/*
 * Home-page compositions (web.spec.md, Visual Design → Public pages). Every color,
 * radius and shadow comes from the tokens in site.css, or from the device roles below.
 */

/*
 * Device roles: the illustrated phone's hardware and the light host-app screen it shows.
 * They draw a physical object, so they stay the same in both color schemes. The device
 * frame's radii are the one documented exception to the shape scale.
 */
:root {
  --device-frame: #16191f;
  --device-hardware: #08090b;
  --device-camera: #122035;
  --device-metal: #7c828c;
  --device-metal-sheen: linear-gradient(90deg, #525861, #c7cbd0, #7c828c);
  --device-screen: #ffffff;
  --device-screen-ink: #202020;
  --radius-device: 48px;
  --radius-device-screen: 40px;
  --radius-device-screen-layout: 54px;
  --radius-device-island: 20px;
}

/*
 * Hero (Paper, A5 Home · 1440 and · 390): the display headline, its line, the actions and the
 * note on the left; the sample answer on the right; "Works where you do" under the copy, at the
 * hero's bottom edge. The hero fills the first screen (100svh less --header-h; min-height, so it
 * grows rather than clips). Phones stack copy, the assistants (still above the fold), then the
 * answer. The home page sets the title tokens larger here.
 */
.product-story {
  position: relative;
  isolation: isolate;
}
.home-hero {
  --title-page: clamp(44px, 13vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    'main'
    'foot'
    'answer';
  align-items: start;
  gap: 32px;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: 40px var(--gutter) 56px;
  background: var(--paper);
  overflow: clip;
}
.product-story .home-hero {
  z-index: 0;
}
.home-hero .hero-main {
  grid-area: main;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.hero-main > p {
  margin: 0;
}
.home-hero h1 {
  font-size: var(--title-page);
  line-height: 0.93;
  text-wrap: initial;
}
.home-hero h1 > span {
  display: block;
}
.home-hero .lede {
  max-width: 28em;
  color: var(--ink);
  font-size: var(--text-body);
  line-height: 24px;
}
/* About 30px between the headline and the lede (the column's gap plus this). */
.home-hero h1 + .lede {
  margin-top: 6px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.home-hero .pill {
  min-height: 52px;
  padding-inline: 24px;
}
/* The assistants strip, under the permission line. */
.hero-foot {
  grid-area: foot;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
/* The home headlines' coral full stop (web.spec.md, Color): real text in the brand coral, drawn a
   little larger than the face's own period to match Paper's dot (22px at 120px). */
.brand-stop {
  display: inline-block;
  color: var(--brand-mark);
  transform: scale(1.4);
  transform-origin: 50% 80%;
}
/* About 40px under the permission line (the column's gap plus this). */
.home-hero .hero-foot {
  margin-top: 8px;
}
@media (min-width: 1001px) {
  .home-hero {
    /* By width, and by height so three lines, the line, the actions and the strip fit a short screen. */
    --title-page: min(clamp(64px, 6.7vw, 96px), 10.5svh);
    grid-template-columns: minmax(0, 1fr) minmax(0, 490px);
    /* The left column (copy, then the strip) centres in the screen, beside the card. */
    grid-template-areas:
      '. .'
      'main answer'
      'foot answer'
      '. .';
    /* Free height goes mostly below, so a tall window never opens a large gap over the headline. */
    grid-template-rows: minmax(0, 2fr) auto auto minmax(0, 3fr);
    column-gap: 32px;
    row-gap: 0;
    padding-block: 24px 32px;
  }
  .home-hero .hero-answer {
    align-self: center;
  }
  .home-hero .hero-main {
    gap: 24px;
  }
  .home-hero h1 {
    line-height: 0.9;
    letter-spacing: -0.035em;
  }
  .home-hero .lede {
    max-width: 470px;
    font-size: var(--text-headline);
    line-height: 28px;
  }
  .hero-main > .lede + .hero-actions {
    margin-top: 4px;
  }
  .home-hero .pill {
    min-height: 56px;
    padding-inline: 28px;
    font-size: 17px;
  }
  .home-hero .hero-foot {
    margin-top: 40px;
  }
  .product-story .home-hero {
    position: sticky;
    top: var(--header-h);
  }
}

/* The sample answer: the person's question, who answers, then the shared card. */
.hero-answer {
  grid-area: answer;
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-question {
  align-self: end;
  max-width: 85%;
  margin: 0;
  padding: 12px 18px;
  border-radius: var(--radius-l);
  background: var(--highlight);
  color: var(--ink);
  font-size: var(--text-body);
  line-height: 22px;
}
.hero-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
}
/* The card frame pads its card by 12px (src/hero/index.html .standalone-card); the frame takes that
   back so the card lines up with the question. Its height is reserved from the first paint at the
   card's measured height for the width (502px from a 400px-wide card, more where its lines wrap),
   so nothing shifts when the card reports its own (site.js). */
.hero-card .story-card-frame {
  width: calc(100% + 24px);
  height: 502px;
  margin: -12px;
}
@media (max-width: 439px) {
  .hero-card .story-card-frame {
    height: 520px;
  }
}
@media (max-width: 413px) {
  .hero-card .story-card-frame {
    height: 601px;
  }
}
@media (max-width: 339px) {
  .hero-card .story-card-frame {
    height: 639px;
  }
}
/* The field starts at the card's top edge, so the question and the answer line (muted text)
   always sit on the plain ground and keep their contrast. */
.hero-card .hero-pixels {
  width: calc(100% + 240px);
  height: calc(100% + 120px);
  inset: -8px -120px auto;
  z-index: 0;
}
/* Wide screens (Paper, Home · 1440): the field reaches left into the gap after the headline,
   stopping short of it (--aura-reach), and fades out at every edge. */
@media (min-width: 1001px) {
  .hero-card {
    --aura-reach: min(200px, 13vw);
  }
  .hero-card .hero-pixels {
    width: calc(100% + var(--aura-reach) + 48px);
    height: calc(100% + 72px);
    inset: -8px auto auto calc(-1 * var(--aura-reach));
    mask-image: radial-gradient(ellipse closest-side at 40% 50%, #000 72%, transparent 100%);
  }
}
/* The card is drawn by script, as the benefit cards are; without it the copy carries the hero. */
@media (scripting: none) {
  .hero-card {
    display: none;
  }
}
@media (min-width: 1001px) {
  .hero-answer {
    gap: 16px;
  }
}
/* Stacked (tablets and phones): no sample answer under the copy; "Watch it work" follows it
   (Imran, 2026-11-13). */
@media (max-width: 1000px) {
  .home-hero {
    grid-template-areas:
      'main'
      'foot';
    align-content: center;
  }
  .home-hero .hero-answer {
    display: none;
  }
}
/* Short wide screens (1280×720): the answer tightens so the card fits beside the copy. */
@media (min-width: 1001px) and (max-height: 760px) {
  .home-hero {
    padding-block: 16px 24px;
  }
  .hero-answer {
    gap: 8px;
  }
  .hero-question {
    padding-block: 8px;
  }
}
/* Small phones (320×568): tighter rhythm so the strip still shows above the fold. */
@media (max-width: 359px) {
  .home-hero {
    gap: 20px;
    padding-top: 16px;
  }
  .home-hero .hero-main {
    gap: 16px;
  }
  .home-hero h1 + .lede {
    margin-top: 12px;
  }
  .home-hero .pill {
    min-height: 48px;
    padding-inline: 20px;
  }
}

/*
 * Entrance (web.spec.md, Home hero loading). The head script holds the hero (html.hero-hold)
 * until the fonts and the sample card are ready, or 600ms, then adds html.hero-enter: the text
 * and the card arrive together in about 660ms, transform and opacity only. Without script neither class
 * exists, so nothing is held or animated; under reduced motion everything shows together.
 */
.home-hero .works-with {
  margin-top: 8px;
}
:root.hero-hold .home-hero .hero-main,
:root.hero-hold .home-hero .hero-answer,
:root.hero-hold .home-hero .hero-foot {
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  /* One arrival: the headline lines 80ms apart, the card with them, the rest as one group. */
  :root.hero-enter .home-hero h1 > span {
    animation: hero-type-in var(--dur-slow) var(--ease-smooth) both;
  }
  :root.hero-enter .home-hero h1 > span:nth-child(2) {
    animation-delay: 80ms;
  }
  :root.hero-enter .home-hero h1 > span:nth-child(3) {
    animation-delay: 160ms;
  }
  :root.hero-enter .home-hero .hero-main > p,
  :root.hero-enter .home-hero .works-with,
  :root.hero-enter .home-hero .hero-question {
    animation: hero-support-in var(--dur-slow) 160ms var(--ease-smooth) both;
  }
  :root.hero-enter .home-hero .hero-card .story-card-frame {
    animation: hero-card-in var(--dur-slow) 80ms var(--ease-spring) both;
  }
  :root.hero-enter .home-hero .hero-card .hero-pixels {
    animation: hero-aura-settle var(--dur-slow) 80ms var(--ease-smooth) both;
  }
  .home-hero .hero-main:focus-within > p,
  .home-hero .hero-main:focus-within .works-with {
    animation: none;
  }
}
/* A slow card: its reserved box stays empty over the pixel field (no placeholder, never a
   spinner), and the card fades in when it arrives. */
:root.hero-card-pending .hero-card .story-card-frame,
:root.hero-card-arrived .hero-card .story-card-frame {
  animation: none;
}
:root.hero-card-pending .hero-card .story-card-frame {
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  :root.hero-card-arrived .hero-card .story-card-frame {
    transition: opacity var(--dur-slow) var(--ease-smooth);
  }
}
@keyframes hero-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hero-aura-settle {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hero-support-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Each headline line rises and fades in: transform and opacity only, with nothing clipped, so the
   display face's descenders (g, y, p) and the full stop always show. */
@keyframes hero-type-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hero-phone-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-height: 760px), (prefers-reduced-motion: reduce) {
  .product-story .home-hero {
    position: relative;
    top: auto;
  }
}

/*
 * The phone: an iPhone 17 Pro-proportioned frame (https://support.apple.com/en-us/125090)
 * around an illustrative ChatGPT screen. The screen keeps a 402×874 layout and site.js
 * scales it to fit.
 */
.journey {
  position: relative;
  isolation: isolate;
  min-width: 0;
  width: min(100%, 350px);
  justify-self: center;
}
/* Irregular pixel depth around the saved story's phone (aura pixels). */
.journey::before {
  content: '';
  position: absolute;
  inset: -36px -100px;
  background: url('/design/aura-pixels.svg') center / 100% 100%;
  mask-image: radial-gradient(ellipse, #000 38%, transparent 74%);
  pointer-events: none;
  z-index: -1;
}
.journey::after {
  content: '';
  position: absolute;
  inset: -24px -90px;
  background: url('/design/aura-pixels.svg') 17px 31px / 94% 97%;
  mask-image: radial-gradient(ellipse, #000 25%, transparent 72%);
  opacity: 0.3;
  /* One fade in, never a loop (web.spec.md, Motion). */
  animation: pixel-breathe var(--dur-slow) var(--ease-smooth) both;
  pointer-events: none;
  z-index: -1;
}
@keyframes pixel-breathe {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.3;
  }
}
@media (max-width: 800px) {
  .journey::before {
    inset: -24px -35px;
  }
  .journey::after {
    inset: -12px -30px;
  }
}
.home-hero .journey::before,
.home-hero .journey::after {
  content: none;
}
/* The shared comparison pixels behind the hero phone and the product cards. */
.hero-pixels {
  position: absolute;
  width: calc(100% + 240px);
  height: calc(100% + 160px);
  max-width: none;
  inset: -80px -120px auto;
  /* Tile at the asset’s native scale: more cells, never enlarged cells. */
  background-size: 360px 280px;
  background-repeat: repeat;
  background-position: center;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(ellipse closest-side at center, #000 60%, transparent 100%);
}
/* The pixel art is drawn in light tints; it recedes on the dark paper. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .hero-pixels {
    opacity: 0.32;
  }
}
:root[data-theme='dark'] .hero-pixels {
  opacity: 0.32;
}
.story-card-visual .hero-pixels {
  width: calc(100% + 160px);
  height: calc(100% + 160px);
  inset: -80px;
  z-index: 0;
}
/* Stacked (phones and tablets): the field starts at the card, never under the chapter's line. */
@media (max-width: 1000px) {
  .story-card-visual .hero-pixels {
    height: calc(100% + 96px);
    inset: -16px -80px auto;
  }
}
/* How-it-works pixels (kept with the saved how-it-works band). */
.how-pixels {
  position: absolute;
  inset: 12% 0 0;
  background: url('/design/comparison-pixels.svg') center / 360px 280px repeat;
  mix-blend-mode: screen;
  opacity: 0.12;
  mask-image: radial-gradient(ellipse at 50% 75%, #000, transparent 62%);
  pointer-events: none;
}
.how-scroll[data-sequenced] .how-pixels {
  opacity: calc(var(--how-hub, 0) * 0.16);
}
.journey-window {
  position: relative;
  aspect-ratio: 71.9 / 150;
  display: flex;
  flex-direction: column;
  border: 6px solid var(--device-frame);
  border-radius: var(--radius-device);
  background: var(--device-frame);
  box-shadow: var(--elevation-3);
  overflow: visible;
}
.phone-screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: var(--device-screen);
  overflow: hidden;
  border-radius: var(--radius-device-screen);
}
[data-phone-scaled] .phone-screen {
  position: absolute;
  width: 402px;
  height: 874px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--phone-screen-scale));
  transform-origin: center;
  border-radius: var(--radius-device-screen-layout);
}
.phone-status {
  position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 62px;
  padding: 12px 30px 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--device-screen-ink);
}
.phone-island {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  width: 104px;
  height: 32px;
  border-radius: var(--radius-device-island);
  background: var(--device-hardware);
}
.phone-island::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--device-camera);
}
/* Unscaled (no JavaScript): the status bar at the frame's own size. */
.journey-window:not([data-phone-scaled]) .phone-status {
  height: 46px;
  padding: 9px 22px 0;
  font-size: var(--text-caption);
}
.journey-window:not([data-phone-scaled]) .phone-island {
  width: 78px;
  height: 23px;
}
.journey-window:not([data-phone-scaled]) .phone-island::after {
  top: 7px;
  right: 9px;
  width: 8px;
  height: 8px;
}
.phone-indicators {
  display: flex;
  align-items: center;
  gap: 4px;
}
.phone-indicators svg {
  display: block;
}
.hero-chat-frame {
  display: block;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  border: 0;
  background: var(--device-screen);
}
.phone-home {
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--device-screen);
}
.phone-home::after {
  content: '';
  width: 134px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--device-screen-ink);
}
.phone-button {
  position: absolute;
  z-index: 2;
  width: 4px;
  border-radius: var(--radius-full);
  background: var(--device-metal-sheen);
}
.phone-action {
  left: -7px;
  top: 90px;
  height: 22px;
}
.phone-volume {
  left: -7px;
  top: 135px;
  height: 38px;
  box-shadow: 0 48px 0 var(--device-metal); /* the second volume button */
}
.phone-power {
  right: -7px;
  top: 152px;
  height: 58px;
}
.phone-camera {
  right: -7px;
  top: 320px;
  height: 36px;
}

/*
 * Benefit chapters: copy on the left (480px), the matching product card beside it (up to 680px).
 * The home page's section titles are larger here (--title-section: 48px at 390, 80px at 1440).
 */
.story-chapters,
.band.faq {
  --title-section: clamp(44px, 5.6vw, 80px);
}
.story-chapters {
  position: relative;
  z-index: 1;
  background: var(--paper);
}
.story-chapter {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 680px);
  justify-content: space-between;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  padding: 136px var(--gutter) 160px;
  scroll-margin-top: var(--header-h);
  overflow: clip;
  background: var(--paper);
  color: var(--ink);
}
.story-chapter-copy {
  position: relative;
  z-index: 1;
  max-width: 480px;
  min-width: 0;
}
.story-chapter h2 {
  margin: 0 0 24px;
  font-size: var(--title-section);
  line-height: 0.975;
}
.story-chapter p {
  margin: 20px 0 0;
  max-width: 38ch;
  font-size: var(--text-headline);
  line-height: 1.65;
  color: var(--muted);
}
.story-chapter .story-lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink);
}
.story-card-visual {
  position: relative;
  isolation: isolate;
  width: min(100%, 680px);
  min-width: 0;
  justify-self: center;
}
.story-card-frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 680px;
  border: 0;
  background: transparent;
  /* The card frames always render light. A frame whose scheme differs from the page's gets an
     opaque canvas, which showed as a white box in dark mode; matching keeps only the card. */
  color-scheme: light;
}
.story-card-visual[data-revealed] {
  animation: hero-support-in var(--dur-slow) var(--ease-smooth) both;
}
/* The cards are drawn by script; without it the chapters' copy carries the content. */
@media (scripting: none) {
  .story-card-visual {
    display: none;
  }
}
/* Expanded cards remain reachable on shorter screens. */
.story-chapter[data-tall] {
  position: relative;
  top: auto;
}

/* Wide screens (site.js): ordinary chapter flow beside one pinned card stage. */
.story-chapters[data-card-stage] {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 680px);
  justify-content: space-between;
  column-gap: clamp(40px, 5vw, 80px);
  padding-inline: var(--gutter);
}
/* The hero dissolves into the chapters before the first one reaches its phone. */
.story-chapters[data-card-stage]::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -120px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}
.story-chapters[data-card-stage] .story-chapter {
  grid-column: 1;
  display: flex;
  padding-inline: 0;
  overflow: visible;
}
.story-chapters[data-card-stage] .story-chapter:nth-child(1) {
  grid-row: 1;
}
.story-chapters[data-card-stage] .story-chapter:nth-child(2) {
  grid-row: 2;
}
.story-chapters[data-card-stage] .story-chapter:nth-child(3) {
  grid-row: 3;
}
.story-card-rail {
  grid-column: 2;
  grid-row: 1 / 4;
  min-width: 0;
}
.story-card-pin {
  position: sticky;
  top: var(--header-h);
  height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-card-pin[data-tall] {
  align-items: start;
  padding-top: 24px;
}
.story-card-stage {
  position: relative;
  width: min(100%, 680px);
  height: 680px;
}
.story-card-stage > .story-card-visual {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  visibility: hidden;
  /* Out: quick, on the exit curve. In (below): slower, on the smooth curve; scroll-linked, so no spring. */
  transition:
    opacity var(--dur) var(--ease-exit),
    transform var(--dur) var(--ease-exit),
    visibility var(--dur);
  animation: none;
  pointer-events: none;
}
.story-card-stage > .story-card-visual[data-active] {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity var(--dur-slow) var(--ease-smooth),
    transform var(--dur-slow) var(--ease-smooth),
    visibility 0s;
}
@media (max-width: 1000px) {
  .story-chapter {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    padding-block: 24px 56px;
    gap: 32px;
  }
  .story-chapter h2 {
    margin-bottom: 12px;
    line-height: 1;
  }
  .story-chapter .story-lede {
    margin-top: 12px;
    line-height: 26px;
  }
  .story-card-visual {
    justify-self: stretch;
  }
}

/*
 * Stat (web.spec.md, Public page copy; Visual Design → Stat; Paper "Stat hero · teal CTA · 1440"):
 * the sourced figure, centred, its line and its footnote.
 */
.stat-story {
  --title-section: clamp(44px, 6.1vw, 88px);
  position: relative;
  z-index: 1;
  padding: 104px var(--gutter) 48px;
  background: var(--paper);
  color: var(--ink);
}
.stat-head {
  display: grid;
  justify-items: center;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}
.stat-head h2 {
  margin: 0;
  font-size: var(--title-section);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
/* The count writes over the real figure, which keeps its width (and stays what is read aloud). */
.stat-figure {
  position: relative;
  display: inline-block;
}
.stat-figure[data-counting] .stat-final {
  color: transparent;
}
.stat-count {
  position: absolute;
  inset: 0;
  display: none;
  text-align: center;
}
.stat-figure[data-counting] .stat-count {
  display: block;
}
.stat-head sup {
  margin-left: 0.04em;
  font-size: 0.4em;
  line-height: 0;
  vertical-align: 0.9em;
}
.stat-head sup a {
  /* A 44px tap area round the small mark: inline padding grows the hit area, the margins give the
   * width back, so the line does not move. */
  padding: 12px 20px;
  margin: 0 -20px;
  color: inherit;
  text-decoration: none;
}
@media (hover: hover) {
  .stat-head sup a:hover {
    color: var(--accent-text);
  }
}
.stat-lede {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 30px;
}
.stat-source {
  max-width: 720px;
  margin: 72px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

/*
 * Watch it work in your chat (web.spec.md, Public page copy; Visual Design → Watch it work; Paper
 * "Home · 1440"). As written it is a list: each step's text, then its own phone on that step's
 * scene. site.js stages it on wide screens (`data-staged`): one sticky stage, the steps on the left
 * in fixed rows (only opacity and transform change, so nothing reflows), and one phone on the right
 * whose thread follows the active step (`insurwatch-guided-scene`, as the guided story always has).
 */
.watch-story {
  --title-section: clamp(44px, 5vw, 72px);
  position: relative;
  z-index: 1;
  padding: 96px var(--gutter) 120px;
  background: var(--paper);
  color: var(--ink);
}
.watch-head {
  display: grid;
  gap: 16px;
}
.watch-head h2 {
  margin: 0;
  font-size: var(--title-section);
  line-height: 1;
  letter-spacing: -0.03em;
}
.watch-head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-headline);
  line-height: 27px;
}
.watch-steps {
  display: grid;
  gap: 72px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}
.watch-step {
  display: grid;
  justify-items: start;
  gap: 20px;
}
.watch-count {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: var(--text-footnote);
  line-height: 18px;
}
.watch-step h3 {
  margin: 0;
  font-size: 56px;
  line-height: 56px;
  letter-spacing: -0.025em;
}
.watch-line {
  margin: 10px 0 0;
  font-size: var(--text-headline);
  line-height: 27px;
}
.watch-scene {
  justify-self: stretch;
}
/* The rail beside the steps: a line, and on the stage a teal segment on the active step. */
.watch-list {
  position: relative;
}
.watch-rail {
  display: none;
}
.watch-picture {
  display: none;
}
.watch-note {
  margin: 48px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}
/* The scenes are drawn by script; without it each step's text carries the story. */
@media (scripting: none) {
  .watch-scene {
    display: none;
  }
}

/* The staged story: native scroll through a tall track; the stage sticks under the header and
   releases after step 5. */
.watch-track[data-staged] {
  height: calc(100svh + 5 * 56svh);
  margin-top: 24px;
}
.watch-track[data-staged] .watch-stage {
  position: sticky;
  top: var(--header-h);
  display: grid;
  grid-template-columns: 440px minmax(0, 640px);
  gap: 48px;
  justify-content: space-between;
  align-items: center;
  height: calc(100svh - var(--header-h));
}
.watch-track[data-staged] .watch-steps {
  gap: 0;
  margin: 0;
}
.watch-track[data-staged] {
  --watch-row: 124px;
}
.watch-track[data-staged] .watch-step {
  display: block;
  height: var(--watch-row);
  padding-top: 8px;
}
.watch-track[data-staged] .watch-scene {
  display: none;
}
.watch-track[data-staged] .watch-step h3 {
  font-size: 40px;
  line-height: 44px;
}
.watch-track[data-staged] .watch-list {
  padding-left: 32px;
}
.watch-track[data-staged] .watch-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 2px;
  border-radius: 1px;
  background: var(--line);
}
.watch-track[data-staged] .watch-rail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: var(--watch-row);
  border-radius: 1px;
  background: var(--accent);
  transform: translateY(calc(var(--watch-active, 0) * var(--watch-row)));
  transition: transform var(--dur-slow) var(--ease-spring);
}
.watch-track[data-staged] .watch-step-copy {
  color: var(--muted);
}
.watch-track[data-staged] .watch-line {
  margin-top: 6px;
  font-size: var(--text-body);
  line-height: 24px;
}
.watch-track[data-staged] .watch-step[data-active] .watch-step-copy {
  color: var(--ink);
}
.watch-track[data-staged] .watch-count {
  opacity: 0;
  transition: opacity var(--dur) var(--ease-smooth);
}
.watch-track[data-staged] .watch-step h3 {
  transform: scale(0.6);
  transform-origin: 0 100%;
  transition: transform var(--dur-slow) var(--ease-spring);
}
.watch-track[data-staged] .watch-step[data-active] .watch-count {
  opacity: 1;
}
.watch-track[data-staged] .watch-step[data-active] h3 {
  transform: none;
}
.watch-track[data-staged] .watch-picture {
  display: block;
}
/* Short screens (1280 by 720): the phone and the rows shrink so a step and the whole phone fit. */
@media (max-height: 799px) {
  .watch-track[data-staged] {
    --watch-row: 112px;
  }
  .watch-track[data-staged] {
    --phone-scale: 0.58;
  }
  .watch-track[data-staged] .iw-backdrop {
    --backdrop-frame: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .watch-track[data-staged] .watch-rail::after,
  .watch-track[data-staged] .watch-count,
  .watch-track[data-staged] .watch-step h3 {
    transition: none;
  }
}
@media (max-width: 1000px) {
  .stat-story {
    padding-top: 64px;
  }
  .stat-head {
    gap: 20px;
  }
  .stat-lede {
    font-size: var(--text-headline);
    line-height: 28px;
  }
  .stat-source {
    margin-top: 48px;
  }
  .watch-story {
    padding-block: 64px 80px;
  }
  .watch-step h3 {
    font-size: 44px;
    line-height: 48px;
  }
}

/* The chapters' dissolve covered the hero they used to follow; the Watch section now does. */
.watch-story ~ .story-chapters[data-card-stage]::before {
  display: none;
}

/*
 * FAQ: a light heading and the intro on the left (sticky);
 * the questions on the right, divided by hairlines, each with a thin chevron.
 */
.band.faq {
  padding: 136px var(--gutter) 160px;
  background: var(--surface-white);
  color: var(--ink);
  overflow-x: clip;
}
.faq-layout {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 680px);
  justify-content: space-between;
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}
.faq-intro {
  position: sticky;
  top: 128px;
  min-width: 0;
  padding-top: 12px;
}
.faq-eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: var(--text-callout);
  font-weight: 400;
  line-height: 20px;
}
.faq h2 {
  margin: 0 0 20px;
  font-size: var(--title-section);
  line-height: 0.975;
}
.faq-intro > p:not(.faq-eyebrow) {
  margin: 0;
  max-width: 32ch;
  font-size: var(--text-title-3);
  line-height: 30px;
  color: var(--ink);
}
.faq-contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  color: var(--accent-text);
  font-size: var(--text-body);
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
/* Questions: hairline dividers, no boxes, a thin chevron (down closed, up open). */
.faq .accordion,
.faq .accordion details {
  border-color: var(--line);
}
.faq .accordion details {
  interpolate-size: allow-keywords;
}
.faq .accordion summary {
  min-height: 44px;
  padding: 24px 0;
  gap: 24px;
  font-size: var(--text-headline);
  font-weight: 400;
  line-height: 26px;
  color: var(--ink);
}
@media (hover: hover) {
  .faq .accordion summary:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 6px;
  }
}
.faq .accordion summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-s);
}
/* A thin plus (18px) that loses its vertical stroke when open: a minus. */
.faq .accordion summary::after {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18'><rect x='2' y='8.25' width='14' height='1.5'/><rect x='8.25' y='2' width='1.5' height='14'/></svg>")
    center / 18px 18px no-repeat;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18'><rect x='2' y='8.25' width='14' height='1.5'/><rect x='8.25' y='2' width='1.5' height='14'/></svg>")
    center / 18px 18px no-repeat;
}
.faq .accordion details[open] summary::after {
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18'><rect x='2' y='8.25' width='14' height='1.5'/></svg>")
    center / 18px 18px no-repeat;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18'><rect x='2' y='8.25' width='14' height='1.5'/></svg>")
    center / 18px 18px no-repeat;
}
.faq .accordion details p {
  max-width: 600px;
  margin: 0;
  padding: 0 42px 28px 0;
  font-size: var(--text-body);
  line-height: 24px;
  color: var(--ink);
}
.faq .accordion details p + p {
  margin-top: -16px;
}
@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .faq-intro {
    position: static;
  }
}
@media (max-width: 760px) {
  .band.faq {
    padding-block: 72px 56px;
  }
  .faq h2 {
    margin-bottom: 12px;
    line-height: 1;
  }
  .faq-eyebrow {
    margin-bottom: 12px;
  }
  .faq-intro > p:not(.faq-eyebrow) {
    font-size: 17px;
    line-height: 26px;
  }
  .faq .accordion summary {
    padding-block: 20px;
    gap: 16px;
    font-size: 17px;
    line-height: 24px;
  }
  .faq .accordion details p {
    padding-right: 0;
  }
}

/*
 * Closing (brand book; web.spec.md, Public page copy → Closing): a full-width photo panel with a
 * bottom scrim, and the wordmark, headline, line and primary action at its lower left, in white.
 */
.closing {
  --title-section: clamp(56px, 8.4vw, 108px);
  margin: 0;
  padding: 24px var(--gutter) 96px;
  background: var(--paper);
}
.closing-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(76vh, 640px);
  border-radius: 28px;
  overflow: hidden;
  background: var(--photo-ink);
  color: var(--on-photo);
}
.closing-panel img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
/* The one gradient on the public pages: a legibility scrim (brand book), midnight toward the foot.
   Measured over the brightest sky behind the text: 3:1 or more for the wordmark and headline,
   4.5:1 or more for the line, from 320 to 1440. */
.closing-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--photo-scrim-mid) 35%,
    var(--photo-scrim) 100%
  );
}
.closing-inner {
  max-width: 760px;
  padding: clamp(24px, 5vw, 56px);
}
.closing-mark {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}
.closing h2 {
  margin: 16px 0 0;
  font-size: var(--title-section);
  line-height: 0.96;
  letter-spacing: -0.01em;
}
.closing-line {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--on-photo-muted);
  font-size: 18px;
  line-height: 27px;
}
.closing-action {
  margin: 24px 0 0;
}
.closing .pill.accent {
  min-height: 48px;
  padding-inline: 24px;
  background: var(--on-photo);
  color: var(--photo-ink);
}
@media (hover: hover) {
  .closing .pill.accent:hover {
    background: color-mix(in srgb, var(--on-photo) 88%, var(--photo-ink));
  }
}
@media (max-width: 600px) {
  .closing {
    padding-top: 8px;
  }
  .closing-panel img {
    object-position: 50% 50%;
  }
}

/* Saved phone story (marketing preview only; not on the landing page). */
.how-scroll {
  position: relative;
  background: var(--paper);
}
.consumer-story {
  position: relative;
  min-height: calc(100svh - 80px);
  padding: 48px 24px;
  display: grid;
  place-items: center;
  overflow: clip;
  background: var(--paper);
  color: var(--ink);
}
.consumer-intro {
  text-align: center;
  margin-bottom: 48px;
}
.consumer-story h2 {
  margin: 0;
  color: var(--accent-text);
  font-size: var(--title-section);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: -0.045em;
  text-align: center;
}
.consumer-story h2 span {
  display: block;
}
.consumer-anywhere {
  margin: 32px 20px 10px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
}
.consumer-access {
  max-width: 46ch;
  margin: 0 24px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
}
.consumer-phone-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.consumer-phone {
  width: min(330px, calc((100svh - 290px) * 0.4793));
  margin: 0 auto;
}
.consumer-caption {
  position: relative;
  z-index: 2;
  max-width: 32ch;
  margin: 0 0 12px;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-align: center;
}
.consumer-steps {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.consumer-steps button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--highlight);
  color: var(--muted);
  font: inherit;
  font-size: var(--text-footnote);
  font-weight: 400;
  cursor: pointer;
}
.consumer-steps button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--on-accent);
}
.how-scroll[data-consumer-sequenced] .consumer-story {
  position: sticky;
  top: var(--story-header-height, 80px);
  height: calc(100svh - var(--story-header-height, 80px));
  min-height: 0;
  padding-block: 24px;
}
.how-scroll[data-consumer-sequenced] .consumer-intro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  opacity: var(--consumer-title, 1);
  translate: 0 calc((1 - var(--consumer-title, 1)) * -36px);
  pointer-events: none;
}
.how-scroll[data-consumer-sequenced] .consumer-phone-scene {
  opacity: var(--consumer-phone, 0);
  translate: 0 calc((1 - var(--consumer-phone, 0)) * 44px);
}
@media (max-height: 699px) {
  .consumer-phone {
    width: min(300px, 75vw);
  }
}
@media (max-width: 760px) {
  .consumer-story {
    min-height: 0;
  }
  .consumer-phone {
    width: min(300px, 100%);
  }
  .consumer-story h2 {
    font-size: var(--title-section);
  }
  .consumer-caption {
    max-width: 28ch;
    margin-bottom: 8px;
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.4;
    color: var(--muted);
  }
  .consumer-phone-scene {
    gap: 12px;
  }
  .how-scroll[data-consumer-sequenced] .consumer-story {
    padding: 16px;
  }
  .how-scroll[data-consumer-sequenced] .consumer-steps {
    display: none;
  }
  /* Swipes over the illustrative screen scroll the section. */
  .consumer-phone .guided-frame {
    pointer-events: none;
  }
}

/* Split section (marketing library): mobile is the baseline. */
.marketing-split {
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(48px, 7vw, 112px) 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.marketing-split-copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.marketing-split-copy h2 {
  margin: 0 0 24px;
  font-size: var(--title-section);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.marketing-split-copy p {
  color: var(--muted);
  line-height: 1.6;
}
.marketing-split-visual {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}
.marketing-split-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-l);
}
@media (min-width: 761px) {
  .marketing-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .marketing-split-visual {
    grid-column: 2;
    grid-row: 1;
  }
  .marketing-split[data-visual-side='left'] .marketing-split-copy {
    grid-column: 2;
  }
  .marketing-split[data-visual-side='left'] .marketing-split-visual {
    grid-column: 1;
  }
}

/*
 * The public pages' pixel fields (web.spec.md, Motion): each starts on the art's resting frame,
 * `#still`. site.js hides it until it scrolls into view, then plays `#once`: the squares stagger
 * in once (about 1.8s) and rest. Never loops, so no pause control is needed (WCAG 2.2.2). Without
 * script or with reduced motion it stays on `#still`.
 */
.hero-pixels[data-pixels='wait'] {
  background-image: none !important;
}

/* Hero reassurance under the actions. */
.home-hero .hero-note {
  margin: 0;
  max-width: 40ch;
  font-size: var(--text-footnote);
  line-height: 20px;
  color: var(--muted);
}

/*
 * Not found (web.spec.md, Public pages → Not found). Phone first: one centered column, full-width
 * actions, then the phone. Wider screens put the actions side by side and add room.
 */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px var(--gutter) 80px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  /* The phone's pixel field is wider than a narrow screen. */
  overflow-x: clip;
}
/* Exactly two lines at every width: each line keeps to one row, sized to fill the column (10.8em wide). */
.not-found h1 {
  font-size: min(var(--title-page), calc((100vw - 2 * var(--gutter)) / 10.8));
}
.not-found h1 span {
  display: block;
  white-space: nowrap;
  animation: hero-type-in var(--dur-slow) var(--ease-smooth) both;
}
.not-found h1 span:last-child {
  color: var(--muted);
  animation-delay: 110ms;
}
.not-found .lede {
  max-width: 44ch;
  color: var(--muted);
  font-size: var(--text-headline);
}
.not-found-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin: 8px 0 0;
}
.not-found-actions .pill {
  min-height: 56px;
  padding-inline: 30px;
}
.not-found .hero-note {
  margin: 0;
  max-width: 40ch;
  font-size: var(--text-footnote);
  line-height: 1.5;
  color: var(--muted);
}
.not-found-phone {
  width: min(290px, calc(100% - 40px));
  margin-top: 32px;
  animation: hero-phone-in var(--dur-slow) 160ms var(--ease-smooth) both;
}
.not-found-phone::before,
.not-found-phone::after {
  content: none;
}
@media (min-width: 600px) {
  .not-found {
    gap: 20px;
    padding: clamp(64px, 8vw, 104px) var(--gutter) clamp(96px, 11vw, 168px);
  }
  .not-found .lede {
    font-size: clamp(18px, 1.6vw, 22px);
  }
  .not-found-actions {
    flex-direction: row;
    justify-content: center;
    width: auto;
    max-width: none;
  }
  .not-found-phone {
    width: 300px;
    margin-top: clamp(40px, 5vw, 56px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .not-found h1 span,
  .not-found-phone {
    animation: none;
  }
}
