/* ==========================================================================
   D01 Home — page styles (demo/home.html)
   Hero with a live demo workspace, logo wall, steps, bento (expandable),
   results, integrations, testimonials, Ship Log ticker, pricing teaser, CTA.
   ========================================================================== */

/* Shared section heading ------------------------------------------------- */
.home-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
}

.home-h2--14 { max-width: 14ch; }
.home-h2--16 { max-width: 16ch; }

/* Heading row: title left, meta/link right */
.home-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.home-head--flush {
  margin-bottom: 0;
}

.home-head__link {
  font-weight: 600;
}

/* Annotation variants (base: .annotation in base.css) */
.annotation--hero {
  max-width: 320px;
}

.annotation--hero .annotation__title {
  font-weight: 500;
}

.annotation--logos {
  top: 24px;
}

/* Sits just above the section heading */
.annotation--offset {
  top: calc(var(--sec-pad) - 56px);
}

.annotation--wide {
  max-width: 320px;
}

/* Hero ------------------------------------------------------------------- */
.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 1040px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}

.hero-pill__badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--pos-bg);
  color: var(--pos);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--hero-size);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.045em;
  font-variation-settings: 'wdth' var(--hero-wdth), 'opsz' 96;
  text-wrap: balance;
}

.hero__lead {
  max-width: 62ch;
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__secondary {
  padding-left: 22px;
  padding-right: 22px;
}

.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-3);
  font-size: 14px;
}

.hero__checks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Demo workspace (hero) ---------------------------------------------------
   A small working product UI. State lives in assets/js/pages/home.js.     */
.demo-app {
  position: relative;
  margin-top: clamp(48px, 6vw, 80px);
}

.demo-app__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-frame);
}

/* Window bar */
.demo-app__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.demo-app__dots {
  display: flex;
  gap: 6px;
}

.demo-app__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}

.demo-app__spacer {
  flex: 1;
}

.demo-app__avatars {
  display: flex;
  align-items: center;
}

/* Fixed avatar text colors: they sit on the categorical data colors */
.demo-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--surface-2);
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.demo-avatar + .demo-avatar {
  margin-left: -6px;
}

.demo-avatar--mk  { background: var(--c1); }
.demo-avatar--jb  { background: var(--c3); }
.demo-avatar--you { background: var(--c2); color: #111; }

.demo-app__tool {
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  white-space: nowrap;
}

/* Three columns */
.demo-app__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  min-height: 440px;
}

.demo-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.demo-col:last-child {
  border-right: 0;
}

.demo-col--canvas {
  background: var(--canvas);
}

.demo-col__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.demo-col__title {
  font-size: 15px;
  font-weight: 600;
}

.demo-col__foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.demo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-list--themes,
.demo-list--releases {
  gap: 12px;
}

.demo-list--releases:empty {
  display: none;
}

/* Source filters */
.demo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-filter {
  min-height: 30px;
  padding: 4px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.demo-filter[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--canvas);
}

/* Inbox request card */
.demo-request {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  animation: pop .24s ease-out;
}

.demo-request__text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.demo-request__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.demo-request__source {
  flex: 1 1 160px;
  min-width: 0;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.demo-request__assign {
  flex-shrink: 0;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px dashed var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.demo-request__assign:hover {
  border-style: solid;
  border-color: var(--ink);
}

.demo-empty {
  padding: 24px 16px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  color: var(--ink-3);
  font-size: 14px;
  text-align: center;
}

.demo-group-all {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  margin-top: auto;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.demo-group-all__key {
  padding: 1px 5px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* Theme card */
.demo-theme {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.demo-theme__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.demo-theme__name {
  font-size: 15px;
  font-weight: 600;
}

.demo-theme__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
}

.demo-theme__stats span {
  white-space: nowrap;
}

.demo-theme__delta {
  color: var(--pos);
}

/* Bar width comes from --pct (share of the top theme's ARR) */
.demo-theme__bar {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-3);
}

.demo-theme__fill {
  width: var(--pct, 0%);
  height: 100%;
  border-radius: 4px;
  background: var(--ink);
  transition: width .36s cubic-bezier(.2, .8, .2, 1);
}

.demo-theme__action {
  align-self: flex-start;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.demo-theme__action--planned {
  background: var(--ink);
  color: var(--canvas);
}

.demo-theme__action:disabled {
  color: var(--ink-3);
  cursor: default;
}

/* Status pill: Triage → Planned → Shipped */
.demo-status {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.demo-status--planned {
  background: var(--surface-3);
}

.demo-status--shipped {
  background: var(--pos-bg);
  color: var(--pos);
}

/* Release note card */
.demo-release {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  animation: pop .36s cubic-bezier(.2, .8, .2, 1);
}

.demo-release__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.demo-release__version {
  padding: 2px 7px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.demo-release__new {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--pos-bg);
  color: var(--pos);
  font-family: var(--font-mono);
  font-size: 11px;
}

.demo-release__when {
  color: var(--ink-3);
  font-size: 12px;
}

.demo-release__title {
  font-weight: 600;
}

.demo-release__notified {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13px;
}

/* Empty release column */
.demo-nothing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 18px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 14px;
}

.demo-nothing__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--line-2);
  border-radius: 10px;
  color: var(--ink-3);
  font-family: var(--font-mono);
}

.demo-nothing__title {
  color: var(--ink);
  font-weight: 600;
}

/* Teammate cursors — fixed identity colors, animated with curA / curB */
.demo-cursors {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.demo-cursor {
  position: absolute;
  pointer-events: none;
}

.demo-cursor--maya {
  --cursor: #3E6FB0;
  top: 110px;
  left: 18%;
  animation: curA 14s ease-in-out infinite;
}

.demo-cursor--jonas {
  --cursor: #2F8F7A;
  top: 220px;
  left: 72%;
  animation: curB 17s ease-in-out infinite;
}

.demo-cursor__arrow {
  width: 0;
  height: 0;
  border-top: 7px solid var(--cursor);
  border-right: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 7px solid var(--cursor);
}

.demo-cursor__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: -2px 0 0 12px;
}

.demo-cursor__name {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cursor);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.demo-cursor__comment {
  max-width: 190px;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 4px 12px 12px 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .25);
}

/* Logo wall -------------------------------------------------------------- */
.logo-wall {
  padding-top: 72px;
}

.logo-wall__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.logo-wall__text {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

.logo-wall__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 20px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--line);
  list-style: none;
}

/* Each customer's wordmark is imitated with type only */
.logo-wall__logo {
  padding: 26px 16px;
  background: var(--canvas);
  color: var(--ink-2);
  text-align: center;
}

.logo-wall__logo--fernweh {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.logo-wall__logo--fernweh span {
  font-weight: 300;
}

.logo-wall__logo--kestrel {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .14em;
}

.logo-wall__logo--northbeam {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
}

.logo-wall__logo--tallow {
  font-family: Georgia, serif;
  font-size: 21px;
  font-style: italic;
}

.logo-wall__logo--quillpay {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  font-variation-settings: 'wdth' 75;
}

.logo-wall__logo--oakline {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 500;
}

/* How it works ----------------------------------------------------------- */
.steps__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: end;
  gap: 32px;
}

.steps__title {
  text-wrap: balance;
}

.steps__lead {
  max-width: 52ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.step__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.step__text {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

.step__foot {
  margin-top: auto;
}

.step-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.step-sources__item {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
}

.step-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.step-bars__row {
  display: flex;
  justify-content: space-between;
}

.step-bars__track {
  height: 4px;
  border-radius: 4px;
  background: var(--surface-3);
}

.step-bars__fill {
  width: var(--w, 50%);
  height: 100%;
  border-radius: 4px;
  background: var(--ink);
}

.step-bars__fill--muted {
  background: var(--ink-3);
}

.step-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
  font-size: 13px;
}

/* Bento features --------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.bento-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.bento-tile:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.bento-tile__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.bento-tile__metric {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.bento-tile__text {
  color: var(--ink-2);
  font-size: 15px;
}

.bento-tile__foot {
  margin-top: auto;
}

.bento-tile .badge {
  align-self: flex-start;
}

/* Hero tile: full row, text + merge illustration */
.bento-tile--hero {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.bento-tile--hero__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
}

.bento-tile--hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.03em;
}

.bento-tile--hero__text {
  max-width: 44ch;
  color: var(--ink-2);
  font-size: 16px;
}

.bento-tile--hero__cta {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
}

.bento-merge {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border-left: 1px solid var(--line);
  background: var(--surface-2);
}

.bento-merge__item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
}

.bento-merge__item--1 { margin-left: 16px; }
.bento-merge__item--2 { margin-left: 32px; }

.bento-merge__src {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
}

.bento-merge__result {
  align-self: flex-start;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--inverse);
  color: var(--on-inverse);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Roadmap mini columns */
.bento-columns {
  display: flex;
  gap: 8px;
}

.bento-columns__card {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}

.bento-columns__label {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.bento-columns__votes {
  color: var(--ink-3);
  font-family: var(--font-mono);
}

/* Dark quote tile */
.bento-tile--quote {
  gap: 16px;
  background: var(--inverse);
  color: var(--on-inverse);
}

.bento-tile--quote:hover {
  border-color: var(--line);
  transform: none;
}

.bento-tile__quote {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.bento-tile__cite {
  font-size: 14px;
}

.bento-tile__note {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: .75;
}

/* Keyboard keys */
.bento-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.bento-keys__key {
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: inherit;
}

/* View-transition names morph each tile into the expanded panel */
[data-bento-open="inbox"]     { view-transition-name: tile-inbox; }
[data-bento-open="themes"]    { view-transition-name: tile-themes; }
[data-bento-open="roadmap"]   { view-transition-name: tile-roadmap; }
[data-bento-open="changelog"] { view-transition-name: tile-changelog; }
[data-bento-open="quote"]     { view-transition-name: tile-quote; }
[data-bento-open="keys"]      { view-transition-name: tile-keys; }
[data-bento-open="import"]    { view-transition-name: tile-import; }

/* Expanded tile */
.bento-expanded {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-frame);
  view-transition-name: var(--vt, none);
}

.bento-expanded__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.bento-expanded__close {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.bento-expanded__esc {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-weight: 400;
}

.bento-expanded__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.bento-expanded__main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(28px, 4vw, 56px);
}

.bento-expanded__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
}

.bento-expanded__body {
  max-width: 52ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 18px;
}

.bento-expanded__points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bento-expanded__points li {
  display: flex;
  gap: 12px;
  font-size: 16px;
}

.bento-expanded__check {
  color: var(--pos);
  font-weight: 700;
}

.bento-expanded__cta {
  align-self: flex-start;
}

.bento-expanded__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(28px, 4vw, 56px);
  border-left: 1px solid var(--line);
  background: var(--surface-2);
}

.bento-expanded__metric {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 104px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}

.bento-expanded__delta {
  align-self: flex-start;
}

.bento-expanded__note {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

/* Results ---------------------------------------------------------------- */
.results__lead {
  max-width: 46ch;
  margin: 0;
  color: var(--ink-2);
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1px;
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
}

.result {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: var(--surface);
}

.result .badge {
  align-self: flex-start;
}

.result__value {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}

.result__text {
  font-size: 16px;
}

.result__source {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Integrations ----------------------------------------------------------- */
.integrations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: center;
  gap: 48px;
}

.integrations__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.integrations__lead {
  max-width: 46ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 18px;
}

.integrations__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.integrations__browse {
  font-weight: 600;
}

.integrations__api {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 14px;
}

.integrations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.integration {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.integration__mono {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.integration__name {
  font-size: 14px;
  font-weight: 600;
}

/* Testimonials ----------------------------------------------------------- */
.quotes {
  columns: 3 300px;
  column-gap: 16px;
}

.quote {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  break-inside: avoid;
}

.quote__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  text-wrap: pretty;
}

.quote__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

.quote__who {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.3;
}

/* Ship Log ticker -------------------------------------------------------- */
.shiplog {
  padding-top: var(--sec-pad);
}

.shiplog__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 20px;
}

.shiplog__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.shiplog__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pos);
  animation: pulse 2s infinite;
}

.shiplog__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.shiplog__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shiplog__pause {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.shiplog__subscribe {
  font-size: 14px;
  font-weight: 600;
}

.shiplog__viewport {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.shiplog__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: tick 48s linear infinite;
}

.shiplog__track.is-paused {
  animation-play-state: paused;
}

.shiplog__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.shiplog__kind {
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.shiplog__kind--new      { background: var(--pos-bg);    color: var(--pos); }
.shiplog__kind--improved { background: var(--surface-3); color: var(--ink); }
.shiplog__kind--fixed    { background: var(--surface-2); color: var(--ink-2); }

.shiplog__name {
  font-size: 15px;
  font-weight: 500;
}

.shiplog__ago {
  color: var(--ink-3);
  font-size: 13px;
}

/* Pricing teaser --------------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

/* Recommended plan: 2px border, 1px less padding keeps the size equal */
.plan--featured {
  padding: 27px;
  border: 2px solid var(--ink);
}

.plan--muted {
  background: var(--surface-2);
}

.plan__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan__name {
  font-weight: 600;
}

.plan__pick {
  padding: 3px 9px;
}

.plan__price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}

.plan__terms {
  color: var(--ink-3);
  font-size: 14px;
}

.plan__cta {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.plan__cta--primary {
  border-color: transparent;
  background: var(--action);
  color: var(--on-action);
}

.plan__cta--primary:hover {
  background: var(--action-hover);
  color: var(--on-action);
}

/* CTA band --------------------------------------------------------------- */
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  position: relative;
  padding: clamp(40px, 7vw, 96px);
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--inverse);
  color: var(--on-inverse);
}

.cta-band__kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  opacity: .8;
}

.cta-band__title {
  max-width: 14ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 96px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.045em;
  font-variation-settings: 'wdth' var(--hero-wdth);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-band__secondary {
  padding-left: 22px;
  padding-right: 22px;
}

.cta-band__note {
  font-size: 14px;
  opacity: .85;
}

/* The original renders "Start free→" tight: no gap between label and arrow */
.cta-band__primary {
  gap: 0;
}

/* Buttons on this page keep the body line-height (taller than the .btn default) */
.hero__actions .btn,
.cta-band__actions .btn,
.bento-expanded__cta {
  line-height: inherit;
}

/* Filled buttons here have no border (1px shorter/narrower than outlined ones) */
.hero__actions .btn--primary,
.cta-band__actions .btn--primary,
.bento-expanded__cta,
.plan__cta--primary {
  border: 0;
}
