/* Scale — sales site (home + pricing)
   Same world as the product: warm canvas, white sheets on hairlines, charcoal ink,
   one muted blue for "needs you", focus and links. Inter for text, Inter Tight for display.
   Tokens come from ../assets-v2/tokens.css so the site and the app share one source. */

:root {
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1132px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 9vw, 128px);
  --spot-dot: #E1E1DC;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "calt" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

a:not([class]) {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent-ink) 35%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:not([class]):hover { text-decoration-color: currentColor; }

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.tnum { font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 550;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Icons ---------- */
.i {
  width: 18px; height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i-sm { width: 15px; height: 15px; }
.i-xs { width: 13px; height: 13px; stroke-width: 2; }

.os-mark { width: 100%; height: 100%; }

/* ---------- Buttons ---------- */
.btn {
  --h: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: 550 15px/1 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease), transform 140ms var(--ease);
}
.btn:active { transform: translateY(0.5px); }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #313236; }
.btn-primary:active { background: #000; }

.btn-secondary { background: var(--sheet); color: var(--ink); border-color: var(--rule-2); }
.btn-secondary:hover { background: var(--wash); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--wash); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #ECECE8; }

.btn-lg { --h: 48px; padding: 0 22px; font-size: 16px; border-radius: 10px; }
.btn-block { width: 100%; }

.btn .i { width: 17px; height: 17px; }
.btn[disabled] { opacity: .5; cursor: default; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink);
  font-weight: 550;
  text-decoration: none;
}
.link-arrow .i { transition: transform 200ms var(--ease); width: 16px; height: 16px; }
.link-arrow:hover .i { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--canvas) 94%, transparent);
  transition: box-shadow 200ms var(--ease), background-color 200ms var(--ease);
}
.nav.is-scrolled {
  background: var(--canvas);
  box-shadow: 0 1px 0 var(--rule);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 66px;
  padding-top: 25px;
  padding-bottom: 0;
}
.nav.is-scrolled .nav-inner { height: 60px; padding-top: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--ink);
  text-decoration: none;
  font: 650 23px/1 var(--font);
  letter-spacing: -0.035em;
}
.brand-mark { width: 35px; height: 35px; flex: none; }
/* The wordmark: the lowercase word beside the mark (together: /scale). Lowercase has its optical middle at the
   x-height, below the middle of the line, so it is lifted onto the middle of the tile. */
.brand-word { position: relative; top: -0.06em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 450;
  letter-spacing: -0.005em;
  transition: background-color 140ms var(--ease);
}
.nav-links a:hover { background: var(--wash); }
.nav-links a[aria-current="page"] { font-weight: 600; }

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.nav-signin {
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 450;
  padding: 8px 6px;
  border-radius: 8px;
}
.nav-signin:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule-2); }
.nav-cta.btn { --h: 39px; padding: 0 17px; font-size: 15.5px; font-weight: 500; border-radius: 8px; }

.nav-menu { display: none; }

@media (max-width: 900px) {
  .nav-inner { grid-template-columns: 1fr auto; height: 60px; padding-top: 0; }
  .nav-links { display: none; }
  .nav-signin { display: none; }
  .nav-menu { display: inline-flex; }
  .brand { font-size: 20px; gap: 9px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-actions { gap: 8px; }
  .nav-cta.btn { --h: 36px; font-size: 15px; padding: 0 14px; }
  .nav-sheet {
    position: absolute;
    left: 12px; right: 12px; top: 60px;
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: 12px;
    box-shadow: var(--shadow-pop);
    padding: 8px;
  }
  .nav-sheet[hidden] { display: none; }
  .nav-sheet a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
  }
  .nav-sheet a:hover { background: var(--wash); }
}
@media (min-width: 901px) { .nav-sheet { display: none !important; } }

/* ---------- Type ---------- */
.h-display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.h-section {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 3.55vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.h-block {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
  max-width: 62ch;
}
.lede strong { color: var(--ink); font-weight: 550; }

.body-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 60ch;
}

.fineprint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.section { padding: var(--section) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lede { margin-top: 18px; }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.is-center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
  padding-top: 45px;
  text-align: center;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2.75rem, 5.38vw, 5.5rem);
  line-height: 1.03;
  letter-spacing: 0.004em;
  margin: 0 auto;
}

.hero-sub {
  margin: 13px auto 0;
  font-size: clamp(1.0625rem, 1.355vw, 1.22rem);
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: -0.012em;
  max-width: 64ch;
  text-wrap: balance;
}

.url-form {
  display: flex;
  width: min(487px, 100%);
  height: 49px;
  margin: 31px auto 0;
  border-radius: 10px;
  background: var(--sheet);
  box-shadow: 0 0 0 1px var(--rule-2);
  transition: box-shadow 160ms var(--ease);
}
.url-form:focus-within { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--tint-2); }
.url-form.is-invalid { box-shadow: 0 0 0 1px var(--critical), 0 0 0 4px var(--critical-tint); }

.url-form input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 400 17px/1 var(--font);
  letter-spacing: -0.005em;
  border-radius: 10px 0 0 10px;
  caret-color: var(--accent);
}
.url-form input::placeholder { color: #8A8C91; }
.url-form input:focus { outline: none; }

.url-form .btn {
  --h: 49px;
  flex: none;
  width: 127px;
  padding: 0 14px;
  border-radius: 0 10px 10px 0;
  font-size: 17px;
  font-weight: 550;
}
.url-form .btn .i { width: 17px; height: 17px; }
.url-form.is-busy .btn { cursor: progress; }

.form-note {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--muted);
}
.form-error {
  margin-top: 10px;
  font-size: 14px;
  color: var(--critical);
}

/* The live queue: a sheet of the product at display scale */
.queue {
  position: relative;
  width: min(1025px, 100%);
  margin: 28px auto 0;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(23, 23, 23, .04), 0 10px 24px -14px rgba(23, 23, 23, .16);
  text-align: left;
  padding: 13px 16px 4px 13px;
}

.queue-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px 0 9px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: var(--sheet);
  font-size: 13.5px;
  font-weight: 450;
  color: var(--ink);
  white-space: nowrap;
}
.chip.is-active { border-color: var(--ink); }
.chip .i { width: 14px; height: 14px; stroke-width: 2; }
.chip .chip-tick { stroke-dasharray: 22; stroke-dashoffset: 0; }

.queue-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  opacity: 0;
  transition: opacity 240ms var(--ease);
  white-space: nowrap;
}
.queue-status.is-on { opacity: 1; }
.spin {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  animation: spin 800ms linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.qgrid {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 166px 135px 118px;
  align-items: center;
}

.queue-head {
  margin-top: 7px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: #5A5C60;
}
.queue-head > span:first-child { width: 31px; text-align: center; }

.queue-head-status { justify-self: end; width: 116px; }
.queue-rows { position: relative; }

.qrow {
  position: relative;
  height: 65px;
  padding-top: 9px;
  border-bottom: 1px solid var(--rule);
  background: var(--sheet);
}
.qrow:last-child { border-bottom: 0; }

.qrow-rank {
  width: 31px;
  text-align: center;
  font-size: 16px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.qrow-title {
  display: block;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qrow-meta {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qrow-impact {
  font-size: 16px;
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dots { display: inline-flex; gap: 4.5px; align-items: center; }
.dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--spot-dot);
  transition: background-color 280ms var(--ease), transform 280ms var(--ease);
}
.dots i.on { background: var(--ink); }
.dots i.now { background: var(--ink); box-shadow: 0 0 0 2px var(--sheet), 0 0 0 3.5px var(--ink); transform: scale(.8); }

.pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 116px;
  height: 29px;
  padding: 0 6px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--sheet);
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 320ms var(--ease), border-color 320ms var(--ease), color 320ms var(--ease);
}
.pill.is-needs {
  height: 45px;
  gap: 9px;
  border-color: transparent;
  background: var(--tint-2);
  color: var(--ink);
  line-height: 1.2;
  text-align: left;
  justify-content: flex-start;
  padding: 0 10px 0 13px;
}
.pill.is-needs .pill-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.pill.is-needs small { display: block; font-size: 14px; color: var(--accent-ink); }
.pill-empty { justify-self: end; }

.qrow.is-arriving { opacity: .45; }

.queue-caption {
  width: min(1025px, 100%);
  margin: 14px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: left;
}

.ready-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0 10px;
  padding: 12px 12px 12px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
}
.ready-bar[hidden] { display: none; }
.ready-bar p { flex: 1; }
.ready-bar p span { color: #B9BBC0; }
.ready-bar .btn { --h: 38px; }


/* hero states driven by site.js */
.js .queue.is-reading .qrow { opacity: 0; transform: translateY(10px); }
.js .queue .qrow.is-in { opacity: 1; transform: none; transition: opacity 520ms var(--ease), transform 620ms var(--ease); }
.js .queue .qrow.is-in.is-arriving { opacity: .45; }
.js .queue.is-reading .chip { border-style: dashed; color: var(--muted); }
.js .queue.is-reading .chip .chip-tick { stroke-dashoffset: 22; }
.js .queue .chip.is-read { border-style: solid; color: var(--ink); }
.js .queue .chip.is-read .chip-tick { stroke-dashoffset: 0; transition: stroke-dashoffset 360ms var(--ease) 60ms; }
.js .queue.is-reading .chip.is-read.is-active { border-color: var(--ink); }

@media (max-width: 1080px) {
  .qgrid { grid-template-columns: 36px minmax(0, 1fr) 150px 118px; }
  .qcol-spine { display: none; }
}

@media (max-width: 720px) {
  .hero { padding-top: 28px; }
  .hero-title { font-size: clamp(2.5rem, 11.5vw, 3.4rem); }
  .hero-sub { font-size: 16.5px; }
  .url-form { height: 50px; }
  .url-form .btn { width: auto; }
  .queue { padding: 10px 12px 2px; border-radius: 12px; }
  .queue-head { display: none; }
  .chips { gap: 6px; }
  .chip { height: 28px; font-size: 13px; padding: 0 10px 0 8px; }
  .chip:nth-child(n+3) { display: none; }
  .queue-status { display: none; }
  .qgrid { grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 10px; }
  .qrow { height: auto; padding: 12px 0; align-items: start; }
  .qrow-rank { font-size: 15px; padding-top: 1px; }
  .qrow-title { white-space: normal; font-size: 15.5px; }
  .qrow-meta { font-size: 13px; }
  .qcol-impact { grid-column: 2; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
  .qcol-status { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .pill { min-width: 0; font-size: 13px; height: 28px; padding: 0 10px; }
  .pill.is-needs { height: 40px; }
  .pill.is-needs small { font-size: 13px; }
  .queue-caption { flex-direction: column; gap: 4px; }
  .ready-bar { flex-direction: column; align-items: stretch; }
}

/* ---------- Sources ---------- */
.sources {
  padding: clamp(64px, 8vw, 104px) 0 0;
}
.sources-line {
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}
.sources-line strong { color: var(--ink); font-weight: 550; }

.logo-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1000px;
  margin: 26px auto 0;
}
.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 15px 0 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--sheet);
  font-size: 14.5px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color 360ms var(--ease), color 360ms var(--ease), opacity 360ms var(--ease);
}
.logo-chip img { width: 20px; height: 20px; object-fit: contain; transition: filter 360ms var(--ease), opacity 360ms var(--ease); }
.logo-chip.is-more { color: var(--muted); border-style: dashed; }
.js .logo-wall.is-waiting .logo-chip { border-style: dashed; border-color: var(--rule-2); color: var(--faint); }
.js .logo-wall.is-waiting .logo-chip img { filter: grayscale(1); opacity: .45; }
.js .logo-wall .logo-chip.is-on { border-style: solid; border-color: var(--rule); color: var(--ink-2); }
.js .logo-wall .logo-chip.is-on img { filter: none; opacity: 1; }

/* ---------- Problem ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.photo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--wash);
}
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo figcaption {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(23, 23, 23, .72);
  color: #fff;
  font-size: 12px;
}

.drains {
  margin-top: 28px;
  border-top: 1px solid var(--rule);
}
.drains li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
}
.drains li span:last-child { color: var(--muted); font-size: 14.5px; text-align: right; }

.pull {
  margin-top: 26px;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

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

/* ---------- Shift table ---------- */
.shift {
  border-top: 1px solid var(--rule);
}
.shift-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  font-size: 16px;
}
.shift-table th, .shift-table td {
  text-align: left;
  vertical-align: top;
  padding: 18px 22px;
  border-bottom: 1px solid var(--rule);
}
.shift-table tr:last-child th, .shift-table tr:last-child td { border-bottom: 0; }
.shift-table thead th {
  font-size: 14.5px;
  font-weight: 550;
  color: var(--muted);
  background: var(--canvas);
  padding-top: 14px; padding-bottom: 14px;
}
.shift-table thead th.is-us { color: var(--ink); }
.shift-table tbody th { font-weight: 550; width: 26%; }
.shift-table td { color: var(--ink-2); width: 24.6%; }
.shift-table td.is-us { color: var(--ink); background: #FCFCFB; font-weight: 500; }
.shift-table td.is-us .who { display: inline-flex; align-items: center; gap: 8px; }
.who-mark {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--ink); color: #fff; flex: none;
}
.who-mark .i { width: 12px; height: 12px; stroke-width: 2; }
.who-person {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--person-1); color: var(--ink-2); flex: none;
  font-size: 10px; font-weight: 600;
}
.shift-table .muted-cell { color: var(--muted); }

@media (max-width: 760px) {
  .shift-table, .shift-table tbody, .shift-table tr, .shift-table th, .shift-table td { display: block; width: auto; }
  .shift-table thead { display: none; }
  .shift-table tr { border-bottom: 1px solid var(--rule); padding: 14px 16px; }
  .shift-table tr:last-child { border-bottom: 0; }
  .shift-table th, .shift-table td { border: 0; padding: 3px 0; }
  .shift-table tbody th, .shift-table td { width: auto; }
  .shift-table tbody th { font-size: 15px; margin-bottom: 6px; }
  .shift-table td::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 400; }
  .shift-table td.is-us { background: none; }
}

/* ---------- The loop (sticky spine + chapters) ---------- */
.loop { border-top: 1px solid var(--rule); }

.loop-bar {
  position: sticky;
  top: 60px;
  z-index: 20;
  margin-bottom: clamp(40px, 5vw, 64px);
  background: color-mix(in srgb, var(--canvas) 96%, transparent);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.loop-bar-inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 170px;
  align-items: center;
  gap: 28px;
  padding: 14px 0 13px;
}
.loop-bar-title { font-size: 14px; color: var(--muted); line-height: 1.35; }
.loop-bar-title b { display: block; color: var(--ink); font-weight: 600; }
.loop-bar-state {
  justify-self: end;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-2);
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: 999px;
  transition: background-color 240ms var(--ease), color 240ms var(--ease);
}
.loop-bar-state.is-needs { color: var(--accent-ink); background: var(--tint); }

.hspine { position: relative; }
.hspine::before, .hspine-fill {
  content: "";
  position: absolute;
  top: 11px;
  left: 6.25%;
  right: 6.25%;
  height: 2px;
  border-radius: 2px;
}
.hspine::before { background: var(--rule); }
.hspine-fill { background: var(--ink); transform-origin: left center; transform: scaleX(0); transition: transform 560ms var(--ease); }
.hspine ol { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.hspine li {
  display: grid;
  justify-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  transition: color 320ms var(--ease);
}
.spine-node {
  position: relative;
  z-index: 1;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px dashed var(--rule-2);
  background: var(--canvas);
  flex: none;
  transition: background-color 320ms var(--ease), border-color 320ms var(--ease);
}
.spine-node .i { position: absolute; width: 13px; height: 13px; stroke-width: 2.2; color: #fff; opacity: 0; transition: opacity 240ms var(--ease); }
.hspine li.is-done { color: var(--ink-2); }
.hspine li.is-done .spine-node { border: 0; background: var(--ink); }
.hspine li.is-done .spine-node .i { opacity: 1; }
.hspine li.is-current { color: var(--ink); font-weight: 600; }
.hspine li.is-current .spine-node { border: 2px solid var(--ink); background: var(--sheet); }
.hspine li.is-current .spine-node::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.hspine li.is-current.is-needs { color: var(--accent-ink); }
.hspine li.is-current.is-needs .spine-node { border-color: var(--accent); }
.hspine li.is-current.is-needs .spine-node::after { background: var(--accent); }

.chapters { display: grid; gap: clamp(72px, 9vw, 128px); }

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  scroll-margin-top: 170px;
}
.chapter-copy { position: sticky; top: 196px; }
.chapter .h-block + .body-text { margin-top: 14px; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-2);
}
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.ev { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink); flex: none; }
.ev-observed { background: var(--ink); }
.ev-calculated { background: radial-gradient(circle, var(--ink) 0 2px, transparent 2.5px); }
.ev-inferred { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.ev-asserted { background: transparent; }
.ev-hypothesis { border-style: dashed; border-color: var(--muted); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 20px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.facts b { font-weight: 600; color: var(--ink); }

/* product screen frames */
.screen {
  position: relative;
  width: fit-content;
  max-width: 100%;
  border-radius: 12px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.screen img { max-width: 100%; height: auto; }
.screen-body { position: relative; }
.screen-body picture { display: block; }
@media (max-width: 720px) {
  .screen { width: auto; }
  .screen-body img { width: 100%; }
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  background: #FBFBFA;
}
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #E3E3DE; }
.screen-bar span {
  margin-left: 10px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.screen-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.screen.is-crop-top img { object-fit: cover; object-position: top; }

.js .reveal-shot { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(4px); }
.js .reveal-shot.is-in { opacity: 1; transform: none; filter: none; transition: opacity 700ms var(--ease), transform 900ms var(--ease), filter 700ms var(--ease); }

@media (max-width: 1100px) {
  .loop-bar-inner { grid-template-columns: minmax(0, 1fr) 170px; }
  .loop-bar-title { display: none; }
}
@media (max-width: 900px) {
  .loop-bar { display: none; }
  .chapter { grid-template-columns: 1fr; gap: 24px; }
  .chapter-copy { position: static; }
}

/* ---------- HiPPOs and ZEBRAs ---------- */
.rivals { border-top: 1px solid var(--rule); }
.rivals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 72px) clamp(28px, 4.5vw, 64px);
}
.rival-shot { position: relative; }
.rival .photo figcaption { top: 12px; bottom: auto; }

/* the opinion, filed the way the product files a claim */
.claim {
  position: absolute;
  right: 16px; bottom: -40px;
  width: min(340px, calc(100% - 32px));
  margin: 0;
  padding: 12px 14px 13px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--sheet);
  box-shadow: var(--shadow-pop);
}
.claim-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px;
  color: var(--muted);
}
.claim-label b { color: var(--ink); font-weight: 600; }
.claim-quote {
  margin-top: 5px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}
.js .rival-shot .claim { opacity: 0; transform: translateY(8px); }
.js .rival-shot .reveal-shot.is-in + .claim { opacity: 1; transform: none; transition: opacity 420ms var(--ease) 380ms, transform 520ms var(--ease) 380ms; }

.rival-name {
  margin-top: 68px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.rival-full {
  margin-top: 10px;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  letter-spacing: -0.01em;
  color: var(--muted);
}
.rival-full b { color: var(--ink); font-weight: 700; }
.rival-who { margin-top: 16px; }

.counters { margin-top: 24px; border-top: 1px solid var(--rule); }
.counters li {
  display: grid;
  grid-template-columns: minmax(0, 11em) minmax(0, 1fr);
  gap: 4px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.counters strong { font-weight: 600; letter-spacing: -0.005em; }
.counters p { color: var(--ink-2); }

.rivals-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 32px;
  margin-top: clamp(40px, 5vw, 64px);
}
.rivals-foot .pull { margin-top: 0; }

@media (max-width: 1040px) {
  .counters li { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .rivals-grid { grid-template-columns: 1fr; }
  .counters li { grid-template-columns: minmax(0, 11em) minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .claim { position: relative; right: auto; bottom: auto; width: auto; margin: -28px 12px 0; }
  .rival-name { margin-top: 28px; }
  .counters li { grid-template-columns: 1fr; }
}

/* ---------- Agents ---------- */
.agents { border-top: 1px solid var(--rule); }
.agents-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.agent-list { border-top: 1px solid var(--rule); }
.agent {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.agent-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}
.agent-mark .i { width: 20px; height: 20px; }
.agent h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.012em; }
.agent p { margin-top: 3px; color: var(--ink-2); font-size: 15.5px; }
.agent-perms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.agent-perms span { display: inline-flex; align-items: center; gap: 6px; }
.agent-perms .i { width: 14px; height: 14px; }
.agent-perms .is-gated { color: var(--ink-2); }

/* run log: an ink sheet, like the product's toasts */
.runlog {
  position: sticky;
  top: 100px;
  background: var(--ink);
  color: #F2F2EF;
  border-radius: 14px;
  padding: 20px 20px 18px;
}
.runlog-head { display: flex; align-items: center; gap: 12px; }
.runlog-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: #fff; color: var(--ink);
}
.runlog-mark .i { width: 17px; height: 17px; }
.runlog-title { font-weight: 600; font-size: 15.5px; }
.runlog-sub { font-size: 13px; color: #A9ABB0; }
.runlog-state {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: #D5D6D9;
}
.runlog-state .spin { color: #fff; }
.runlog-state.is-done .spin { animation: none; border: 0; width: 8px; height: 8px; background: #7EA3D6; }

.runlog .dots { margin: 18px 0 6px; }
.runlog .dots i { background: #3A3B3F; }
.runlog .dots i.on { background: #fff; }
.runlog .dots i.now { background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px #fff; }
.runlog .dots i.needs { background: #7EA3D6; box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px #7EA3D6; transform: scale(.8); }

.log {
  margin-top: 12px;
  min-height: 262px;
  font-size: 14px;
  line-height: 1.45;
}
.log li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid #2A2B2E;
}
.log time { color: #8D8F94; font-variant-numeric: tabular-nums; }
.log .is-flag { color: #F0C987; }
.js .log li { opacity: 0; transform: translateY(6px); }
.js .log li.is-in { opacity: 1; transform: none; transition: opacity 360ms var(--ease), transform 420ms var(--ease); }

.runlog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #2A2B2E;
}
.needs-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px;
  border-radius: 999px;
  background: var(--tint-2);
  color: var(--accent-ink);
  font-size: 13.5px; font-weight: 550;
  opacity: 0; transform: translateY(4px);
  transition: opacity 320ms var(--ease), transform 420ms var(--ease);
}
.needs-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.runlog.is-done .needs-pill { opacity: 1; transform: none; }
.runlog-replay {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: #A9ABB0; font: 500 13px/1 var(--font);
  display: inline-flex; align-items: center; gap: 6px;
}
.runlog-replay:hover { color: #fff; }
.runlog-replay .i { width: 14px; height: 14px; }

.agents-note { margin-top: 22px; }

@media (max-width: 960px) {
  .agents-grid { grid-template-columns: 1fr; }
  .runlog { position: relative; top: 0; }
}

/* ---------- Team (org chart) ---------- */
.team { border-top: 1px solid var(--rule); }
.org {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}
.org svg.org-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.org-lines path { fill: none; stroke: var(--rule-2); stroke-width: 1.5; }
.org-lines path.is-dashed { stroke-dasharray: 5 5; }
.org-lines path.is-needs { stroke: var(--accent); stroke-width: 2; }
.org-lines circle { fill: var(--ink); }
.org-lines circle.is-needs { fill: var(--accent); }

.org-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 170px;
  grid-template-rows: auto 64px auto 72px auto;
  column-gap: 20px;
}
.org-node { display: grid; justify-items: center; text-align: center; gap: 8px; }
.org-node strong { font-size: 15.5px; font-weight: 600; }
.org-node small { font-size: 13.5px; color: var(--muted); max-width: 22ch; line-height: 1.4; }
.person {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--person-1);
  color: var(--ink-2);
  font-weight: 600; font-size: 16px;
  box-shadow: 0 0 0 4px var(--canvas);
}
.person.p2 { background: var(--person-2); }
.person.p3 { background: var(--person-3); }
.person.p4 { background: var(--person-4); }
.person.p5 { background: var(--person-5); }
.person .i { width: 22px; height: 22px; }

.org-cmo { grid-column: 2; grid-row: 1; }
.org-os {
  grid-column: 1 / span 3; grid-row: 3;
  justify-self: center;
  align-self: center;
  width: min(640px, 100%);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--sheet);
  padding: 18px 20px 20px;
  text-align: center;
}
.org-os-title { font-size: 16px; }
.org-os-title b { font-weight: 650; }
.org-agents { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 16px; }
.org-agent { display: grid; justify-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.org-agent .agent-mark { width: 44px; height: 44px; border-radius: 11px; }
.org-agent .agent-mark .i { width: 22px; height: 22px; }
.org-lead-1 { grid-column: 1; grid-row: 5; }
.org-lead-2 { grid-column: 2; grid-row: 5; }
.org-lead-3 { grid-column: 3; grid-row: 5; }
.org-ctx { grid-column: 4; grid-row: 3; align-self: center; display: grid; gap: 18px; }
.org-ctx .org-node { gap: 6px; }

.org-tag {
  position: absolute;
  z-index: 2;
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-pop);
  font-size: 13.5px;
  line-height: 1.35;
  text-align: left;
  width: 220px;
}
.org-tag b { display: block; color: var(--accent-ink); font-weight: 600; }
.org-tag.is-on { display: block; animation: tag-in 420ms var(--ease) both; }
@keyframes tag-in { from { opacity: 0; transform: translateY(6px); } }

.roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 64px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.roles h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.roles p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

@media (max-width: 860px) {
  .org-grid { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto 48px auto 56px auto 40px auto; }
  .org-ctx { grid-column: 1 / span 3; grid-row: 7; display: flex; justify-content: center; gap: 40px; }
  .org-tag { display: none !important; }
  .roles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .org-agents { gap: 12px 14px; }
  .org-agent span { font-size: 12px; }
  .org-node small { font-size: 12.5px; }
  .roles { grid-template-columns: 1fr; }
}

/* ---------- Product surfaces (forecast, chat, memory) ---------- */
.surfaces { border-top: 1px solid var(--rule); }
.surface-row {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.surface-row + .surface-row { margin-top: clamp(64px, 8vw, 112px); }
.surface-row.is-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 330px); }
.surface-row.is-flip .surface-copy { order: 2; }
.surface-row .screen { justify-self: center; }
.surface-copy h3 { font-family: var(--display); font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 650; line-height: 1.15; letter-spacing: -0.022em; text-wrap: balance; }
.surface-copy p { margin-top: 12px; font-size: 16px; color: var(--ink-2); max-width: 46ch; }

@media (max-width: 900px) {
  .surface-row, .surface-row.is-flip { grid-template-columns: 1fr; }
  .surface-row.is-flip .surface-copy { order: 0; }
}

/* ---------- Experts ---------- */
.experts { border-top: 1px solid var(--rule); }
.faces {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 26px 16px;
}
.face { display: grid; justify-items: center; text-align: center; gap: 9px; }
.face img {
  width: 76px; height: 76px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: filter 360ms var(--ease), transform 360ms var(--ease);
}
.face:hover img { filter: none; transform: translateY(-2px); }
.face strong { font-size: 14px; font-weight: 600; line-height: 1.25; }
.face small { font-size: 12.5px; color: var(--muted); line-height: 1.3; }

.agencies {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 44px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.agencies img { height: 26px; width: auto; filter: grayscale(1); opacity: .7; transition: opacity 200ms var(--ease); }
.agencies img.is-light { filter: invert(1) grayscale(1); }
.agencies img:hover { opacity: .85; }

.experts-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
}
.disclaimer {
  display: inline-flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--muted); max-width: 70ch;
}
.disclaimer .i { width: 15px; height: 15px; margin-top: 1px; }

@media (max-width: 960px) { .faces { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .faces { grid-template-columns: repeat(3, minmax(0, 1fr)); } .face img { width: 64px; height: 64px; } }

/* ---------- Ledger ---------- */
.ledger-sec { border-top: 1px solid var(--rule); }
.ledger-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.ledger {
  background: var(--sheet);
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  padding: 26px 28px 24px;
}
.ledger h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.ledger-sub { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.ledger table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 16px; }
.ledger td { padding: 12px 2px; border-top: 1px solid var(--rule); }
.ledger td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger tr.is-total td { border-top: 3px double var(--ink); font-weight: 650; }
.ledger tr.is-us td { background: var(--wash); border-top: 1px solid var(--rule-2); font-weight: 600; }
.ledger tr.is-us td:first-child { padding-left: 12px; border-radius: 6px 0 0 6px; }
.ledger tr.is-us td:last-child { padding-right: 12px; border-radius: 0 6px 6px 0; }
.ledger tr.is-diff td { border-top: 2px solid var(--ink); color: var(--positive); font-weight: 650; }
.ledger tr.is-diff.is-negative td { color: var(--critical); }
.ledger-foot { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

.quote-line {
  margin-top: 26px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.ledger-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

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

/* ---------- Trust ---------- */
.trust { border-top: 1px solid var(--rule); }
.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 72px);
  border-top: 1px solid var(--rule);
}
.trust-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.trust-list .i { width: 22px; height: 22px; margin-top: 1px; }
.trust-list h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.trust-list p { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.trust-foot { margin-top: 20px; }

@media (max-width: 760px) { .trust-list { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
}
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.008em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .i { transition: transform 260ms var(--ease); color: var(--muted); }
.faq-list details[open] summary .i { transform: rotate(45deg); }
.faq-list .answer { padding: 0 0 22px; max-width: 68ch; color: var(--ink-2); font-size: 16px; }
.faq-list .answer p + p { margin-top: 10px; }

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

/* ---------- Closing CTA (ink) ---------- */
.closing {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: clamp(96px, 12vw, 160px) 0;
}
.closing .h-section { color: #fff; }
.closing .lede { color: #B9BBC0; margin: 18px auto 0; }
.closing .url-form { background: #232427; box-shadow: 0 0 0 1px #3A3B3F; }
.closing .url-form:focus-within { box-shadow: 0 0 0 1px #7EA3D6, 0 0 0 4px rgba(126, 163, 214, .3); }
.closing .url-form.is-invalid { box-shadow: 0 0 0 1px #F2A99F, 0 0 0 4px rgba(242, 169, 159, .25); }
.closing .url-form input { color: #fff; caret-color: #7EA3D6; }
.closing .url-form input::placeholder { color: #8D8F94; }
.closing .url-form .btn { background: #fff; color: var(--ink); }
.closing .url-form .btn:hover { background: #ECECE8; }
.closing .form-note { color: #9A9CA1; }
.closing .form-error { color: #F2A99F; }
.closing .spine-strip { margin: 44px auto 0; justify-content: center; }
.closing .dots i { background: #34353A; }
.closing .dots i.on { background: #fff; }

/* ---------- Footer ---------- */
.footer {
  background: var(--canvas);
  border-top: 1px solid var(--rule);
  padding: 56px 0 40px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer .brand { font-size: 18.5px; }
.footer .brand-mark { width: 28px; height: 28px; }
.footer-h { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--ink); }
.footer li + li { margin-top: 8px; }
.footer a:not(.brand) { color: var(--ink-2); text-decoration: none; }
.footer a:not(.brand):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-tag { margin-top: 12px; color: var(--muted); max-width: 34ch; }
.footer-legal {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer-legal p { max-width: 90ch; }

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ============ Pricing page ============ */
.price-hero { padding: clamp(40px, 6vw, 72px) 0 0; text-align: center; }
.price-hero .h-display { font-size: clamp(2.5rem, 5vw, 4.4rem); }
.price-hero .lede { margin: 18px auto 0; text-align: center; }

.billing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
  padding: 4px;
  border-radius: 999px;
  background: var(--wash-2);
}
.billing button {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: 500 15px/1 var(--font);
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.billing button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 23, 23, .08), 0 0 0 1px var(--rule); }
.billing .save { font-size: 12px; font-weight: 600; color: var(--positive); background: var(--positive-tint); padding: 3px 7px; border-radius: 999px; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
  align-items: stretch;
  text-align: left;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.plan.is-featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.plan-photo { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: var(--wash); border-radius: 13px 13px 0 0; }
.plan-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.plan:hover .plan-photo img { transform: scale(1.03); }
.plan-flag {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 12.5px; font-weight: 550;
}
.plan-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.plan h2 { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.plan-for { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); min-height: 4.5em; }
.plan-price {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 20px;
  font-family: var(--display);
}
.plan-price .from { font-family: var(--font); font-size: 15px; color: var(--muted); margin-right: 2px; }
.plan-price .amount {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-price .per { font-family: var(--font); font-size: 15px; color: var(--muted); }
.plan-bill { margin-top: 6px; font-size: 13.5px; color: var(--muted); min-height: 20px; }
.plan .btn { margin-top: 22px; }
.plan-list { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); display: grid; gap: 10px; font-size: 15px; }
.plan-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--ink-2); }
.plan-list li .i { width: 17px; height: 17px; margin-top: 2px; color: var(--ink); stroke-width: 2; }
.plan-list .plan-list-lead { display: block; grid-template-columns: none; font-weight: 600; color: var(--ink); font-size: 14.5px; }

.amount-swap { display: inline-block; }
.amount-swap.is-swapping { animation: swap 380ms var(--ease); }
@keyframes swap { 0% { opacity: 1; transform: none; } 40% { opacity: 0; transform: translateY(-8px); } 41% { transform: translateY(8px); } 100% { opacity: 1; transform: none; } }

@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } .plan-for { min-height: 0; } }

.included {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  margin-top: 36px;
  font-size: 14.5px; color: var(--ink-2);
}
.included span { display: inline-flex; align-items: center; gap: 8px; }
.included .i { width: 16px; height: 16px; color: var(--positive); stroke-width: 2; }

/* calculator */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.calc-inputs { display: grid; gap: 26px; }
.range-row label { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; font-weight: 500; }
.range-row output { font-variant-numeric: tabular-nums; font-weight: 600; }
.range-row small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  height: 24px;
  margin-top: 8px;
  background: transparent;
  cursor: pointer;
  --pct: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--ink) var(--pct), var(--wash-2) var(--pct));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--wash-2); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px; margin-top: -8px;
  border-radius: 50%; background: var(--sheet);
  border: 1.5px solid var(--ink);
  box-shadow: 0 1px 3px rgba(23, 23, 23, .18);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--sheet);
  border: 1.5px solid var(--ink);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--tint-2); border-color: var(--accent); }

.calc-result { position: sticky; top: 100px; }
.calc-result .ledger td:first-child { color: var(--ink-2); }

.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--wash-2); margin-top: 8px; }
.segmented button {
  height: 34px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent;
  font: 500 14.5px/1 var(--font); color: var(--ink-2); cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 0 0 1px var(--rule); }

@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc-result { position: static; } }

/* comparison table */
.compare-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 13px 18px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.compare thead th {
  position: sticky; top: 0;
  background: var(--canvas);
  font-size: 15px; font-weight: 600;
}
.compare thead th small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.compare tbody th { font-weight: 450; color: var(--ink-2); width: 34%; }
.compare td { width: 22%; font-variant-numeric: tabular-nums; }
.compare tr.group th {
  padding-top: 22px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  background: #FCFCFB;
}
.compare .yes .i { width: 18px; height: 18px; stroke-width: 2.2; }
.compare .no { color: var(--faint); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* add-ons */
.addons { border-top: 1px solid var(--rule); }
.addon-list { border-top: 1px solid var(--rule); }
.addon-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.addon-list h3 { font-size: 17px; font-weight: 600; }
.addon-list p { grid-column: 1; font-size: 15px; color: var(--ink-2); max-width: 64ch; }
.addon-list .addon-price { grid-column: 2; grid-row: 1 / span 2; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.addon-list .addon-price small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

/* enterprise dialog */
.dialog {
  width: min(480px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--sheet);
  color: var(--ink);
  box-shadow: var(--shadow-dialog);
}
.dialog::backdrop { background: rgba(23, 23, 23, .32); }
.dialog[open] { animation: tag-in 320ms var(--ease) both; }
.dialog-body { padding: 26px 26px 8px; }
.dialog h2 { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.dialog p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label { font-size: 14px; font-weight: 550; }
.field input, .field select, .field textarea {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  background: var(--sheet);
  color: var(--ink);
  font: 400 15.5px/1.3 var(--font);
}
.field textarea { height: 84px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint-2); }
.dialog-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 22px;
  padding: 14px 26px;
  border-top: 1px solid var(--rule);
  background: var(--canvas);
  border-radius: 0 0 14px 14px;
}
.dialog-done { padding: 30px 26px 26px; text-align: left; }
.dialog-done[hidden] { display: none; }

/* toast */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  z-index: 90;
  transform: translate(-50%, 16px);
  opacity: 0;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  box-shadow: var(--shadow-pop);
  transition: opacity 240ms var(--ease), transform 320ms var(--ease);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal-shot, .js .rival-shot .claim, .js .log li, .js .queue.is-reading .qrow { opacity: 1 !important; transform: none !important; filter: none !important; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ---------- Fluid first viewport ----------
   The approved comp was set at 1376px. One unit keeps the nav, hero and live queue in the
   same proportions from 1280 to 1600 instead of mixing vw type with fixed-px rows. */
:root { --u: clamp(0.93px, calc(100vw / 1376), 1.1px); }

@media (min-width: 901px) {
  :root { --wrap: calc(1132 * var(--u)); }
  .nav-inner { height: calc(66 * var(--u)); padding-top: calc(25 * var(--u)); }
  .brand { font-size: calc(23 * var(--u)); gap: calc(10 * var(--u)); }
  .brand-mark { width: calc(35 * var(--u)); height: calc(35 * var(--u)); }
  .nav-links a { font-size: calc(16 * var(--u)); padding: calc(8 * var(--u)) calc(12 * var(--u)); }
  .nav-signin { font-size: calc(16 * var(--u)); }
  .nav-cta.btn { --h: calc(39 * var(--u)); padding: 0 calc(17 * var(--u)); font-size: calc(15.5 * var(--u)); }
  .footer .brand { font-size: 18.5px; }
  .footer .brand-mark { width: 28px; height: 28px; }
}

@media (min-width: 721px) {
  .hero { padding-top: calc(45 * var(--u)); }
  .hero-title { font-size: calc(74 * var(--u)); }
  .hero-sub { margin-top: calc(13 * var(--u)); font-size: calc(18.65 * var(--u)); }
  .url-form { width: min(calc(487 * var(--u)), 100%); height: calc(49 * var(--u)); margin-top: calc(31 * var(--u)); }
  .url-form input { padding: 0 calc(18 * var(--u)); font-size: calc(17 * var(--u)); }
  .url-form .btn { --h: calc(49 * var(--u)); width: calc(127 * var(--u)); font-size: calc(17 * var(--u)); }
  .form-note { margin-top: calc(10 * var(--u)); font-size: calc(14.5 * var(--u)); }
  .hero .queue { width: min(calc(1025 * var(--u)), 100%); margin-top: calc(28 * var(--u)); padding: calc(13 * var(--u)) calc(16 * var(--u)) calc(4 * var(--u)) calc(13 * var(--u)); }
  .queue-top { min-height: calc(32 * var(--u)); gap: calc(12 * var(--u)); }
  .chips { gap: calc(8 * var(--u)); }
  .chip { height: calc(30 * var(--u)); padding: 0 calc(11 * var(--u)) 0 calc(9 * var(--u)); gap: calc(6 * var(--u)); font-size: calc(13.5 * var(--u)); }
  .chip .i { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
  .queue-status { font-size: calc(13.5 * var(--u)); }
  .queue-head { margin-top: calc(7 * var(--u)); padding-bottom: calc(8 * var(--u)); font-size: calc(14 * var(--u)); }
  .queue-head > span:first-child, .qrow-rank { width: calc(31 * var(--u)); }
  .queue-head-status { width: calc(116 * var(--u)); }
  .qrow { height: calc(65 * var(--u)); padding-top: calc(9 * var(--u)); }
  .qrow-rank { font-size: calc(16 * var(--u)); }
  .qrow-title { font-size: calc(16.5 * var(--u)); }
  .qrow-meta { margin-top: calc(4 * var(--u)); font-size: calc(13 * var(--u)); }
  .qrow-impact { font-size: calc(16 * var(--u)); }
  .hero .dots { gap: calc(4.5 * var(--u)); }
  .hero .dots i { width: calc(9 * var(--u)); height: calc(9 * var(--u)); }
  .pill { width: calc(116 * var(--u)); height: calc(29 * var(--u)); padding: 0 calc(6 * var(--u)); font-size: calc(14 * var(--u)); }
  .pill.is-needs { height: calc(45 * var(--u)); gap: calc(9 * var(--u)); padding: 0 calc(10 * var(--u)) 0 calc(13 * var(--u)); }
  .pill.is-needs small { font-size: calc(14 * var(--u)); }
  .pill.is-needs .pill-dot { width: calc(9 * var(--u)); height: calc(9 * var(--u)); }
  .queue-caption { width: min(calc(1025 * var(--u)), 100%); }
}

@media (min-width: 1081px) {
  .qgrid { grid-template-columns: calc(45 * var(--u)) minmax(0, 1fr) calc(166 * var(--u)) calc(135 * var(--u)) calc(118 * var(--u)); }
}

/* compare plans on phones: one plan at a time */
.compare-pick { display: none; margin-bottom: 14px; }
@media (max-width: 720px) {
  .compare-pick { display: inline-flex; }
  .compare { min-width: 0; }
  .compare th, .compare td { padding: 12px 14px; }
  .compare tbody th { width: 58%; }
  .compare[data-show="solo"] :is(th, td):nth-child(3), .compare[data-show="solo"] :is(th, td):nth-child(4),
  .compare[data-show="startup"] :is(th, td):nth-child(2), .compare[data-show="startup"] :is(th, td):nth-child(4),
  .compare[data-show="enterprise"] :is(th, td):nth-child(2), .compare[data-show="enterprise"] :is(th, td):nth-child(3) { display: none; }
  .compare tr.group th { display: table-cell !important; }
}
.price-proposal { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
