/* ============================================================
   Cited · design language after thepatchsystem.com
   Palette restricted to indigo #1f00ff, tints of it, and white.
   Borders carry structure. No shadows. 5px radius everywhere.
   ============================================================ */

:root {
  --indigo: #1f00ff;
  --indigo-press: #1800c4;
  --ink: #0e0740;
  --bone: #f6f4ff;
  --fog: #edeaff;
  --mist: #ddd6ff;
  --muted: #b7abff;
  --white: #ffffff;

  --radius: 5px;
  --page-max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 72px;

  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body: 'Archivo', 'Helvetica Neue', sans-serif;
  --logo: 'Ranchers', 'Anton', 'Arial Narrow', sans-serif;

  --ease-out-hard: cubic-bezier(0, 0, 0, 1);

  --grid-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='95' height='95'%3E%3Crect x='.25' y='.25' width='94.5' height='94.5' fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='.5' stroke-dasharray='1.91 4.77'/%3E%3C/svg%3E");
  --grid-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='95' height='95'%3E%3Crect x='.25' y='.25' width='94.5' height='94.5' fill='none' stroke='%231f00ff' stroke-opacity='.10' stroke-width='.5' stroke-dasharray='1.91 4.77'/%3E%3C/svg%3E");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul { list-style: none; }

::selection { background: var(--indigo); color: var(--white); }
/* on indigo surfaces the same rule would paint indigo on white text, which is
   invisible and reads as "cannot select". Invert it there. */
.grid-dark ::selection, .footer ::selection, .closing-bar ::selection,
.loop__note ::selection, .words__verdict ::selection, .popover ::selection {
  background: var(--white); color: var(--indigo);
}

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 2px; }
.grid-dark :focus-visible, .footer :focus-visible { outline-color: var(--white); }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--white); color: var(--indigo);
  border: 1px solid var(--indigo); border-radius: var(--radius);
  padding: 10px 16px; font-weight: 600; font-size: 13px; text-decoration: none;
  transition: top .2s var(--ease-out-hard);
}
.skip-link:focus-visible { top: 12px; }

/* ---------- shared ---------- */
section { position: relative; }

.section-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 130px) var(--gutter);
}

.grid-dark { background-color: var(--indigo); background-image: var(--grid-dark); color: var(--white); }
.grid-light { background-color: var(--fog); background-image: var(--grid-light); }

.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--indigo);
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--indigo); border-radius: var(--radius);
  padding: 8px 14px;
  margin-bottom: clamp(24px, 3vw, 38px);
}
.kicker--light { color: var(--white); border-color: var(--white); }

.heading {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: .92;
  font-size: clamp(40px, 6.5vw, 76px);
  color: var(--indigo);
  margin-bottom: clamp(38px, 5vw, 64px);
}
.heading--light { color: var(--white); }

.num-box {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 6px;
  border: 1px solid var(--indigo); border-radius: var(--radius);
  font-family: var(--display); font-size: 16px; letter-spacing: .05em;
  color: var(--indigo);
  flex: none;
}
.num-box--light { border-color: var(--white); color: var(--white); }

.corner-marker {
  position: absolute; top: 24px; right: 24px; z-index: 2;
  width: 48px; height: 48px;
  border: 1px solid var(--indigo); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 17px; letter-spacing: .05em;
  color: var(--indigo);
}
.corner-marker--light { border-color: var(--white); color: var(--white); }
.hero .corner-marker { top: calc(var(--nav-h) + 20px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--body); font-size: 13px; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease-out-hard), color .2s var(--ease-out-hard), border-color .2s var(--ease-out-hard);
}
.btn--solid { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.btn--solid:hover { background: var(--indigo-press); border-color: var(--indigo-press); }
.btn--solid-light { background: var(--white); color: var(--indigo); border-color: var(--white); }
.btn--solid-light:hover { background: var(--fog); border-color: var(--fog); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease-out-hard), color .25s var(--ease-out-hard), border-color .25s var(--ease-out-hard);
}
.nav__inner {
  max-width: var(--page-max); height: 100%;
  margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.nav__wordmark { font-family: var(--logo); font-size: 28px; letter-spacing: .04em; text-transform: lowercase; }
.nav__byline { font-size: 9px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-top: 4px; opacity: .75; }
.nav__links { display: flex; gap: clamp(14px, 2vw, 28px); }
.nav__links a {
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; padding: 6px 2px;
  border-bottom: 1px solid transparent;
}
.nav__links a:hover { border-bottom-color: currentColor; }
.btn--nav { background: var(--white); color: var(--indigo); border-color: var(--white); padding: 10px 20px; }
.btn--nav:hover { background: var(--fog); border-color: var(--fog); }

.nav--light { background: var(--white); color: var(--indigo); border-bottom-color: var(--mist); }
.nav--light .btn--nav { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.nav--light .btn--nav:hover { background: var(--indigo-press); border-color: var(--indigo-press); }

@media (max-width: 767px) {
  .nav__links { display: none; }
}

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; }
.hero__inner {
  max-width: var(--page-max); width: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(30px, 4.5vh, 60px)) var(--gutter) clamp(40px, 6vh, 70px);
  text-align: center;
}
.hero__headline {
  font-family: var(--display); font-weight: 400;
  text-transform: uppercase; letter-spacing: .02em; line-height: .9;
  font-size: clamp(40px, 7.3vw, 118px);
  color: var(--white);
}
.hero__band {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  margin-top: clamp(28px, 5vh, 56px);
}
.hero__rule { display: block; height: 1px; background: rgba(255, 255, 255, .5); flex: 1; min-width: 24px; }
.hero__label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.hero__sub {
  max-width: 560px; margin: clamp(28px, 5vh, 52px) auto 0;
  font-size: 17px; font-weight: 300; line-height: 1.5;
  /* .anima applies a transform, which makes each hero block its own stacking
     context. Without this the popover is trapped below the buttons that follow. */
  position: relative; z-index: 3;
}
/* inline explainer trigger on the indigo hero */
.hover-trigger--light {
  border-bottom: 2px dotted rgba(255, 255, 255, .75);
  font-weight: 600;
}
.hover-trigger--light:hover { border-bottom-color: var(--white); }
.hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: clamp(20px, 3.5vh, 36px); }

/* ---------- hero, phones ----------
   Rebuilt as a left-aligned poster: big display type, left body copy,
   full-width actions, and the three labels as a spec strip at the foot.
   Desktop layout above 700px is untouched. */
@media (max-width: 700px) {
  .hero { align-items: stretch; }
  .hero__inner {
    display: flex; flex-direction: column;
    text-align: left;
    padding-top: calc(var(--nav-h) + 28px);
    padding-bottom: 28px;
  }

  .hero__headline {
    order: 1;
    /* auto margins here and on the band split the leftover height evenly,
       so the text block sits optically centred on tall phones */
    margin-top: auto;
    font-size: clamp(44px, 13.4vw, 62px);
    line-height: .86;
    letter-spacing: .01em;
  }

  .hero__sub {
    order: 2;
    margin: 22px 0 0;
    max-width: 34ch;
    font-size: 16px;
    line-height: 1.5;
  }

  .hero__ctas {
    order: 3;
    justify-content: stretch;
    gap: 10px;
    margin-top: 26px;
  }
  .hero__ctas .btn { flex: 1 1 100%; padding: 15px 20px; }


  /* labels become a bordered spec strip, pushed to the foot of the screen */
  .hero__band {
    order: 4;
    margin-top: auto; padding-top: 26px;
    flex-direction: column; align-items: stretch;
    gap: 0;
  }
  .hero__rule { display: none; }
  .hero__label {
    display: flex; align-items: center;
    padding: 11px 0;
    border-top: 1px solid rgba(255, 255, 255, .35);
    font-size: 11px; letter-spacing: .16em;
  }
  .hero__label::before {
    content: ""; flex: none;
    width: 6px; height: 6px; margin-right: 11px;
    background: var(--white);
  }
  .hero__label:last-child { border-bottom: 1px solid rgba(255, 255, 255, .35); }

  .hero .corner-marker {
    top: calc(var(--nav-h) + 22px); right: var(--gutter);
    width: 38px; height: 38px; font-size: 14px;
  }
}

/* short phones (SE and similar): compress so the spec strip clears the fold */
@media (max-width: 700px) and (max-height: 720px) {
  .hero__inner { padding-top: calc(var(--nav-h) + 16px); padding-bottom: 18px; }
  .hero__headline { font-size: clamp(38px, 11.6vw, 48px); }
  .hero__sub { margin-top: 16px; font-size: 15px; }
  .hero__ctas { margin-top: 18px; }
  .hero__ctas .btn { padding: 13px 18px; }
  .hero__band { padding-top: 16px; }
  .hero__label { padding: 7px 0; font-size: 10px; }
}

/* nav fits one line on the narrowest phones */
@media (max-width: 700px) {
  .nav__inner { gap: 12px; }
  .nav__wordmark { font-size: 22px; white-space: nowrap; }
  .nav__byline { font-size: 8px; letter-spacing: .16em; white-space: nowrap; }
  /* 44px minimum tap target */
  .btn--nav { padding: 14px; min-height: 44px; font-size: 11px; letter-spacing: .02em; white-space: nowrap; }
}
@media (max-width: 360px) {
  .nav__byline { display: none; }
}

/* ---------- loop: pinned single-viewport scene ---------- */
/* Section is taller than the screen; the inner pane pins for one viewport
   while scroll progress walks the numbered rows and reveals the note. */
.loop { height: 340vh; }
.loop__sticky {
  position: sticky; top: 0;
  height: 100svh; min-height: 600px;
  display: flex; align-items: center;
  overflow: hidden;
}
.loop__inner {
  width: 100%;
  padding-top: calc(var(--nav-h) + 16px); padding-bottom: 24px;
  display: flex; flex-direction: column;
  gap: clamp(20px, 3.2vh, 44px);
}
.loop__top {
  display: grid; grid-template-columns: 1fr auto;
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.loop__head .kicker { margin-bottom: clamp(14px, 2vh, 22px); }
.loop__head .heading { margin-bottom: 0; font-size: clamp(34px, 4.6vw, 64px); }
.loop__card {
  color: var(--indigo);
  width: clamp(160px, 19vw, 250px);
}
.loop__card .sketch { width: 100%; height: auto; }

.loop__bottom {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 4vw, 56px); align-items: start;
}
.loop__steps { list-style: none; border-top: 1px solid var(--mist); }
.loop__step {
  display: flex; align-items: center; gap: clamp(14px, 1.8vw, 24px);
  padding: clamp(10px, 1.5vh, 18px) 0;
  border-bottom: 1px solid var(--mist);
  opacity: .32;
  transition: opacity .45s var(--ease-out-hard);
}
.loop__step.is-lit { opacity: 1; }
.loop__step p {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .02em; line-height: 1.05;
  font-size: clamp(17px, 1.9vw, 24px);
  color: var(--ink);
}
.loop__step .num-box { transition: background-color .45s var(--ease-out-hard), color .45s var(--ease-out-hard); }
.loop__step.is-lit .num-box { background: var(--indigo); color: var(--white); }

.loop__note {
  align-self: center;
  background: var(--indigo); background-image: var(--grid-dark); color: var(--white);
  border: 1px solid var(--indigo); border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 34px);
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease-out-hard), transform .6s var(--ease-out-hard);
}
.loop__note.is-in { opacity: 1; transform: translateY(0); }
.loop__note-text {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .02em; line-height: 1.1;
  font-size: clamp(18px, 2vw, 27px);
  transition: font-size .5s var(--ease-out-hard);
}

/* stage three: the note takes the whole pinned viewport */
.loop__note.is-full {
  position: absolute; inset: 0; z-index: 5;
  /* the base rule centres the box; abspos boxes in a grid honour align-self,
     so it has to be reset or the panel will not fill the pane */
  align-self: stretch; justify-self: stretch;
  border-radius: 0; border: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(32px, 7vw, 110px);
  animation: noteTakeover .55s var(--ease-out-hard) both;
}
.loop__note.is-full .loop__note-text {
  font-size: clamp(30px, 4.6vw, 66px);
  line-height: 1.02;
  max-width: 20ch;
  text-align: center;
}
@keyframes noteTakeover {
  from { opacity: 0; transform: scale(.965); }
  to   { opacity: 1; transform: scale(1); }
}
/* the rest of the scene clears out behind it */
.loop__top, .loop__steps { transition: opacity .45s var(--ease-out-hard); }
.loop__inner.is-takeover .loop__top,
.loop__inner.is-takeover .loop__steps { opacity: 0; }

@media (max-width: 900px) {
  /* no pinning on small screens: plain stacked flow */
  .loop { height: auto; }
  .loop__sticky { position: static; height: auto; min-height: 0; display: block; }
  .loop__inner { padding-top: clamp(64px, 9vw, 100px); padding-bottom: clamp(48px, 7vw, 80px); }
  .loop__top { grid-template-columns: 1fr; }
  .loop__card { width: min(230px, 60%); }
  .loop__bottom { grid-template-columns: 1fr; }
  .loop__step { opacity: 1; }
  .loop__note { opacity: 1; transform: none; }
}

/* ---------- closing bar ---------- */
.closing-bar { padding: clamp(30px, 3.6vw, 44px) var(--gutter); }
.closing-bar__text {
  max-width: var(--page-max); margin: 0 auto;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .02em; line-height: 1.08;
  font-size: clamp(21px, 3vw, 33px);
}

/* ---------- promise ---------- */
.promise__rows { border-top: 1px solid var(--muted); }
.promise__row {
  display: flex; align-items: baseline; gap: clamp(18px, 3vw, 38px);
  padding: clamp(20px, 2.8vw, 32px) 0;
  border-bottom: 1px solid var(--muted);
  cursor: default;
}
.promise__num {
  font-family: var(--display); font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: .05em; color: var(--muted); flex: none;
}
.promise__text {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .02em; line-height: .95;
  font-size: clamp(26px, 4.6vw, 56px);
  color: var(--muted);
}
/* active state is instant, like Patch */
.promise__row.active .promise__text,
.promise__row:hover .promise__text,
.promise__row:focus-visible .promise__text { color: var(--indigo); }
.promise__row.active .promise__num,
.promise__row:hover .promise__num,
.promise__row:focus-visible .promise__num { color: var(--indigo); }

/* ---------- words ---------- */
.words__note { max-width: 560px; font-weight: 300; margin-bottom: clamp(32px, 4vw, 48px); }
/* table sits left, the verdict slides in beside it once the note is reached */
.words__layout {
  display: grid; grid-template-columns: 1fr 0fr;
  gap: 0; align-items: start;
  transition: grid-template-columns .7s var(--ease-out-hard), gap .7s var(--ease-out-hard);
}
.words__layout.is-split { grid-template-columns: 1fr .52fr; gap: clamp(24px, 3.5vw, 48px); }
.words__grid { border: 1px solid var(--indigo); border-radius: var(--radius); background: var(--white); min-width: 0; }
.words__verdict {
  position: sticky; top: calc(var(--nav-h) + 32px);
  min-width: 0; overflow: hidden;
  background: var(--indigo); background-image: var(--grid-dark); color: var(--white);
  border: 1px solid var(--indigo); border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 34px);
  opacity: 0; transform: translateX(28px);
  transition: opacity .6s var(--ease-out-hard), transform .7s var(--ease-out-hard);
}
.words__layout.is-split .words__verdict { opacity: 1; transform: translateX(0); }
.words__verdict-text {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .02em; line-height: 1.1;
  font-size: clamp(18px, 1.9vw, 26px);
}

/* scroll room that the full-screen verdict occupies */
.words__hold { height: 100vh; }

/* stage two: the verdict takes the whole screen, centred */
.words__verdict.is-full {
  position: fixed; inset: 0; top: 0; z-index: 60;
  width: auto; border-radius: 0; border: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(32px, 7vw, 110px);
  opacity: 1; transform: none;
  animation: noteTakeover .55s var(--ease-out-hard) both;
}
.words__verdict.is-full .words__verdict-text {
  font-size: clamp(30px, 4.6vw, 66px);
  line-height: 1.02;
  max-width: 20ch;
  text-align: center;
}

@media (max-width: 900px) {
  .words__layout, .words__layout.is-split {
    grid-template-columns: 1fr; gap: clamp(20px, 4vw, 32px);
  }
  .words__verdict { position: static; opacity: 1; transform: none; }
  .words__hold { display: none; }
}
.words__row {
  display: grid; grid-template-columns: minmax(180px, 320px) 1fr;
  border-bottom: 1px solid var(--mist);
}
.words__row:last-child { border-bottom: 0; }
/* same stacking guard as the hero: lift the row whose popover is open */
.words__row:hover, .words__row:focus-within { position: relative; z-index: 4; }
.words__row dt {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .02em; line-height: 1.05;
  font-size: clamp(21px, 2.4vw, 28px);
  color: var(--indigo);
  padding: clamp(18px, 2.4vw, 28px);
  border-right: 1px solid var(--mist);
}
.words__row dd { padding: clamp(18px, 2.4vw, 28px); font-size: 15px; line-height: 1.5; max-width: 62ch; }

@media (max-width: 640px) {
  .words__row { grid-template-columns: 1fr; }
  .words__row dt { border-right: 0; padding-bottom: 6px; }
  .words__row dd { padding-top: 0; }
}

/* hover popover */
.hover-wrap { position: relative; display: inline-block; }
.hover-trigger {
  border-bottom: 2px dotted var(--indigo);
  cursor: help;
}
.popover {
  position: absolute; bottom: calc(100% + 12px); left: 0; z-index: 50;
  width: min(560px, 80vw);
  display: block;
  background: var(--indigo); color: var(--white);
  border: 1px solid var(--white); border-radius: var(--radius);
  padding: 20px;
  font-family: var(--body); font-weight: 400; font-size: 12px;
  line-height: 1.45; letter-spacing: 0; text-transform: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease-out-hard), transform .25s var(--ease-out-hard), visibility 0s .25s;
}
.hover-wrap:hover .popover,
.hover-trigger:focus-visible + .popover,
.hover-trigger:focus + .popover,
.popover:hover {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .25s var(--ease-out-hard), transform .25s var(--ease-out-hard), visibility 0s 0s;
}
.popover__title {
  display: block;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .03em;
  font-size: 17px; margin-bottom: 12px;
}
.popover__table {
  display: grid; grid-template-columns: 82px 1fr 1fr;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: var(--radius);
  overflow: hidden;
}
.popover__cell {
  display: block; padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  border-right: 1px solid rgba(255, 255, 255, .25);
}
.popover__cell:nth-child(3n) { border-right: 0; }
.popover__cell:nth-last-child(-n+3) { border-bottom: 0; }
.popover__cell--head { font-weight: 600; text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }
.popover__cell--label { font-weight: 600; font-size: 11px; }
.popover__note { display: block; margin-top: 12px; font-weight: 300; opacity: .9; }
.popover__note--plain { margin-top: 0; opacity: 1; font-size: 13px; }

/* inverted variant, for use on the indigo hero */
.popover--light {
  background: var(--white); color: var(--ink);
  border-color: var(--indigo);
  text-align: left;
  width: min(400px, 80vw);
}
.popover--light .popover__title { color: var(--indigo); }
/* opens downward so it never covers the headline above it.
   Phones keep the shared centred-overlay treatment below. */
@media (min-width: 641px) {
  .popover--below { top: calc(100% + 12px); bottom: auto; left: 50%; margin-left: -200px; }
  .hover-wrap:hover .popover--below,
  .hover-trigger:focus-visible + .popover--below,
  .hover-trigger:focus + .popover--below,
  .popover--below:hover { transform: translateY(0); }
}

@media (max-width: 640px) {
  .popover { position: fixed; left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(560px, 92vw); }
  .hover-wrap:hover .popover, .hover-trigger:focus-visible + .popover,
  .hover-trigger:focus + .popover, .popover:hover { transform: translate(-50%, -50%); }
}

/* ---------- system ---------- */
.system__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.system__card {
  background: var(--white); color: var(--ink);
  border: 1px solid var(--white); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px);
}
.system__card .sketch--small { width: 90px; height: 90px; color: var(--ink); margin-bottom: 20px; }
.system__title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .02em; font-size: clamp(22px, 2.4vw, 29px);
  color: var(--indigo);
  margin-bottom: 14px;
}
.system__card p { font-size: 15px; line-height: 1.55; }

@media (max-width: 820px) {
  .system__grid { grid-template-columns: 1fr; }
}

/* ---------- verticals ---------- */
.vert__list { border-top: 1px solid var(--mist); }
.vert { border-bottom: 1px solid var(--mist); }
.vert__head {
  width: 100%; display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "num name toggle" "num tag toggle";
  column-gap: clamp(16px, 2.4vw, 28px); row-gap: 4px;
  align-items: center; text-align: left;
  padding: clamp(20px, 2.8vw, 30px) 0;
}
.vert__head .num-box { grid-area: num; align-self: center; }
.vert__name {
  grid-area: name;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .02em; line-height: .95;
  font-size: clamp(24px, 3.6vw, 44px);
  color: var(--ink);
}
.vert__head:hover .vert__name { color: var(--indigo); }
.vert__tag { grid-area: tag; font-size: 14px; font-weight: 300; color: var(--ink); }
.vert__toggle {
  grid-area: toggle;
  position: relative; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--indigo); border-radius: var(--radius);
}
.vert__toggle::before, .vert__toggle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--indigo);
  transition: transform .3s var(--ease-out-hard);
}
.vert__toggle::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.vert__toggle::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.vert__head[aria-expanded="true"] .vert__toggle::after,
.qa__q[aria-expanded="true"] .vert__toggle::after { transform: translate(-50%, -50%) scaleY(0); }

.vert__body { overflow: hidden; }
.vert__body[hidden] { display: none; }
.vert__cols {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(20px, 3vw, 48px);
  padding: 4px 0 clamp(20px, 2.4vw, 28px);
}
.vert__cols h4 {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--indigo); margin-bottom: 10px;
}
.vert__cols p, .vert__cols li { font-size: 15px; line-height: 1.55; }
.vert__cols ul { list-style: none; }
.vert__cols li { padding-left: 18px; position: relative; margin-bottom: 10px; }
.vert__cols li::before { content: "*"; position: absolute; left: 0; top: 1px; color: var(--indigo); font-weight: 600; }
.vert__price {
  display: inline-block;
  border: 1px solid var(--indigo); border-radius: var(--radius);
  padding: 10px 16px; margin-bottom: clamp(20px, 2.4vw, 28px);
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--indigo);
}

@media (max-width: 700px) {
  .vert__cols { grid-template-columns: 1fr; }
  .vert__head { grid-template-columns: auto 1fr; grid-template-areas: "num name" "tag tag"; }
  .vert__head .vert__toggle { display: none; }
}

/* ---------- package builder ---------- */
.builder {
  background: var(--white);
  border: 1px solid var(--indigo); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 38px);
}
.builder__panel { border: 0; min-width: 0; }
.builder__panel + .builder__panel { margin-top: clamp(24px, 3vw, 38px); padding-top: clamp(20px, 2.4vw, 30px); border-top: 1px solid var(--mist); }
.builder__step {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .02em; font-size: clamp(19px, 2vw, 24px);
  color: var(--indigo);
  margin-bottom: 10px;
}
.builder__hint { font-size: 13px; font-weight: 300; margin-bottom: 16px; }

/* progressive disclosure: each step stays out of the page until it is unlocked */
.builder__reveal { display: none; }
.builder__reveal.is-open { display: block; }
html:not(.no-anima) .builder__reveal.is-open { animation: stepIn .5s var(--ease-out-hard) both; }
html:not(.no-anima) .builder__reveal.is-open .builder__revealInner {
  animation: stepIn .5s var(--ease-out-hard) .1s both;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.builder__goals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goal {
  text-align: left; padding: 14px 16px;
  border: 1px solid var(--mist); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .15s var(--ease-out-hard), background-color .15s var(--ease-out-hard);
}
.goal__name { font-size: 14px; font-weight: 600; line-height: 1.25; }
.goal__sub { font-size: 12px; font-weight: 300; line-height: 1.4; opacity: .8; }
.goal:hover { border-color: var(--indigo); }
.goal[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.goal[aria-pressed="true"] .goal__sub { opacity: .9; }

@media (max-width: 700px) {
  .builder__goals { grid-template-columns: 1fr; }
}

.builder__verts { display: flex; flex-direction: column; }
.pick {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--mist);
  cursor: pointer;
}
.pick:last-child { border-bottom: 0; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick__box {
  flex: none; width: 20px; height: 20px; margin-top: 2px;
  border: 1px solid var(--indigo); border-radius: var(--radius);
  position: relative;
  transition: background-color .15s var(--ease-out-hard);
}
.pick__box::after {
  content: ""; position: absolute; inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.5 3.5L15 6.5' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  opacity: 0;
}
.pick input:checked + .pick__box { background: var(--indigo); }
.pick input:checked + .pick__box::after { opacity: 1; }
.pick input:focus-visible + .pick__box { outline: 2px solid var(--indigo); outline-offset: 3px; }
.pick__num { flex: none; font-family: var(--display); font-size: 14px; letter-spacing: .05em; color: var(--indigo); margin-top: 3px; }
.pick__text { font-size: 14px; line-height: 1.45; font-weight: 300; }
.pick__text strong { display: block; font-weight: 600; }

.builder__fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--indigo); margin-bottom: 8px; }
.field__req { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink); opacity: .6; }
.field input {
  width: 100%; padding: 12px 14px;
  font-family: var(--body); font-size: 14px; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--mist); border-radius: var(--radius);
}
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; border-color: var(--indigo); }
.field input[aria-invalid="true"] { border-color: var(--indigo); border-width: 2px; }

.builder__msg { font-size: 14px; font-weight: 600; color: var(--indigo); min-height: 20px; margin-bottom: 10px; }
.builder__submit { width: 100%; }

.builder__summary {
  margin-top: clamp(24px, 3vw, 38px);
  border: 1px solid var(--indigo); border-radius: var(--radius);
  background: var(--indigo); background-image: var(--grid-dark); color: var(--white);
  padding: clamp(24px, 3vw, 38px);
}
.builder__summary h3 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .02em; font-size: clamp(24px, 3vw, 33px);
  margin-bottom: 16px;
}
.builder__summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 14px; margin-bottom: 16px; }
.builder__summary dt { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; padding-top: 2px; }
.builder__summary dd { font-weight: 300; }
.builder__summary ul { list-style: none; }
.builder__summary li { margin-bottom: 4px; }
.builder__summary .summary__note { font-size: 14px; font-weight: 400; border-top: 1px solid rgba(255,255,255,.35); padding-top: 14px; }

@media (max-width: 700px) {
  .builder__fields { grid-template-columns: 1fr; }
}

/* ---------- proof ---------- */
.proof .section-inner { padding-bottom: clamp(40px, 5vw, 64px); }
.proof__sub { max-width: 520px; font-weight: 300; margin-bottom: clamp(38px, 5vw, 56px); }
.proof__stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--white); border-radius: var(--radius);
  overflow: hidden;
}
.stat { padding: clamp(18px, 2.4vw, 30px); border-right: 1px solid var(--white); }
.stat:last-child { border-right: 0; }
.stat__num {
  display: block;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(30px, 4.4vw, 56px); line-height: 1; letter-spacing: .02em;
}
.stat__label { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

@media (max-width: 820px) {
  .proof__stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--white); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+1) { border-bottom: 0; }
}

/* technology partner credit */
.partner {
  margin-top: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--white); border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.6vw, 30px);
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px);
  flex-wrap: wrap;
}
.partner__label {
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  opacity: .8; flex: none;
}
.partner__logo { height: 24px; width: auto; flex: none; }
.partner__note { font-size: 14px; font-weight: 300; flex: 1 1 260px; min-width: 0; }

@media (max-width: 640px) {
  .partner { gap: 12px; }
  .partner__note { flex-basis: 100%; }
}

.rails { padding-bottom: clamp(56px, 7vw, 90px); overflow: hidden; }
.rail { border-top: 1px solid rgba(255,255,255,.35); padding: 18px 0; white-space: nowrap; overflow: hidden; }
.rail:last-child { border-bottom: 1px solid rgba(255,255,255,.35); }
.rail__track { display: inline-flex; align-items: center; gap: 38px; will-change: transform; }
.rail__item {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .03em; font-size: clamp(22px, 3vw, 33px);
  color: var(--white);
}
.rail__star { font-family: var(--display); font-size: clamp(18px, 2.4vw, 26px); opacity: .6; }

/* ---------- faq ---------- */
.faq__list { border-top: 1px solid var(--mist); max-width: 900px; }
.qa { border-bottom: 1px solid var(--mist); }
.qa__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  text-align: left; padding: clamp(18px, 2.2vw, 26px) 0;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .02em; line-height: 1.05;
  font-size: clamp(19px, 2.2vw, 26px);
  color: var(--ink);
}
.qa__q:hover { color: var(--indigo); }
.qa__a { padding-bottom: clamp(20px, 2.4vw, 28px); max-width: 68ch; }
.qa__a[hidden] { display: none; }
.qa__a p { font-size: 15px; line-height: 1.6; margin-bottom: 12px; font-weight: 400; }
.qa__a p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.footer { color: var(--white); }
.footer .section-inner { padding: clamp(56px, 7vw, 90px) var(--gutter) clamp(28px, 3vw, 38px); }
.footer__top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 38px;
  padding-bottom: clamp(38px, 5vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.footer__wordmark { display: block; font-family: var(--logo); font-size: clamp(48px, 8vw, 90px); line-height: .95; text-transform: lowercase; letter-spacing: .03em; }
.footer__byline { display: block; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-top: 12px; opacity: .8; }
.footer__links { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer__links a { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid transparent; }
.footer__links a:hover { border-bottom-color: currentColor; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 24px;
  font-size: 13px; font-weight: 300;
}

@media (max-width: 640px) {
  .footer__top { flex-direction: column; }
  .footer__links { align-items: flex-start; }
}

/* ============================================================
   Animation system, after Patch.
   .anima elements wait for .in from the IntersectionObserver.
   html.no-anima (reduced motion) shows everything immediately.
   ============================================================ */

/* headline word reveal */
.h-anim { opacity: 0; }
.h-anim .h-line {
  position: relative; display: block; overflow: hidden;
  perspective: 200vw; transform-style: preserve-3d;
  /* bleed guard so the rotateX flip is not clipped; kept narrow on small screens
     so the line never pushes the page sideways */
  --bleed: clamp(1rem, 4vw, 5rem);
  padding: 0 var(--bleed); margin: 0 calc(var(--bleed) * -1);
}
.h-anim .h-word {
  display: inline-block;
  transform: translateY(75%) rotateX(-88deg);
  transform-origin: 50% 75%;
  transform-style: preserve-3d;
}
.h-anim.in { opacity: 1; }
.h-anim.in .h-word {
  transform: translateY(0) rotateX(0);
  transition: transform .7s var(--ease-out-hard);
}

/* fadeUp / fade */
html:not(.no-anima) .fadeUp.anima { opacity: 0; transform: translateY(3rem); }
html:not(.no-anima) .fadeUp.anima.in {
  opacity: 1; transform: translateY(0);
  transition: opacity .3s ease-in-out, transform .5s var(--ease-out-hard);
}
html:not(.no-anima) .stagger.anima:nth-child(1) { transition-delay: 66ms; }
html:not(.no-anima) .stagger.anima:nth-child(2) { transition-delay: 132ms; }
html:not(.no-anima) .stagger.anima:nth-child(3) { transition-delay: 198ms; }
html:not(.no-anima) .stagger.anima:nth-child(4) { transition-delay: 264ms; }
html:not(.no-anima) .stagger.anima:nth-child(5) { transition-delay: 330ms; }
html:not(.no-anima) .stagger.anima:nth-child(6) { transition-delay: 396ms; }
html:not(.no-anima) .fade.anima { opacity: 0; }
html:not(.no-anima) .fade.anima.in { opacity: 1; transition: opacity .9s linear; }

/* reduced motion: everything visible, nothing moves */
html.no-anima .h-anim { opacity: 1; }
html.no-anima .h-anim .h-word { transform: none; transition: none; }
html.no-anima *, html.no-anima *::before, html.no-anima *::after {
  transition-duration: 0s !important;
  animation-duration: 0s !important;
}


/* ============================================================
   Tablets, 701px to 1024px.
   Between the phone poster and the desktop layout the type was
   barely larger than a phone and several grids dropped to one
   column too early. This layer sizes for the space available.
   ============================================================ */
@media (min-width: 701px) and (max-width: 1024px) {
  /* display type scales with the wider canvas */
  .hero__headline { font-size: clamp(56px, 9.6vw, 98px); }
  .heading { font-size: clamp(46px, 6.9vw, 68px); }
  .hero__sub { max-width: 60ch; font-size: 18px; }

  /* nav keeps its links, just tighter, and nothing is allowed to wrap */
  .nav__inner { gap: 12px; }
  .nav__links { gap: 12px; }
  .nav__links a { font-size: 11px; letter-spacing: .03em; white-space: nowrap; }
  .btn--nav { padding: 10px 16px; font-size: 11px; letter-spacing: .02em; white-space: nowrap; }
  .nav__wordmark { font-size: 24px; white-space: nowrap; }
  .nav__byline { font-size: 8px; letter-spacing: .14em; white-space: nowrap; }

  /* five stats across is too narrow here, three reads better */
  .proof__stats { grid-template-columns: repeat(3, 1fr); }
  .stat { border-bottom: 1px solid var(--white); }
  .stat:nth-child(3n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }

  /* email and mobile side by side, website on its own row */
  .builder__fields { grid-template-columns: 1fr 1fr; }
  .builder__fields .field:last-child { grid-column: 1 / -1; }

  /* the promise rows have room for larger type */
  .promise__text { font-size: clamp(34px, 5vw, 48px); }
}

/* Landscape tablets pin the loop scene at only ~768px tall,
   so the pane needs to fit that height rather than 600px minimum. */
@media (min-width: 901px) and (max-height: 820px) {
  .loop__sticky { min-height: 0; }
  .loop__inner { gap: clamp(14px, 2.2vh, 28px); padding-top: calc(var(--nav-h) + 10px); padding-bottom: 16px; }
  .loop__head .heading { font-size: clamp(30px, 3.9vw, 50px); }
  .loop__card { width: clamp(120px, 13vw, 180px); }
  .loop__step { padding: clamp(7px, 1.1vh, 14px) 0; }
  .loop__step p { font-size: clamp(15px, 1.6vw, 20px); }
}
