/* Public site: landing page, product documents, and error pages.
 * Motion is CSS-only plus one IntersectionObserver (static/boot.js) and is
 * fully disabled under prefers-reduced-motion. */

.site { font-size: 16px; }
.site p { line-height: 1.6; }

.wrap {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header {
      animation: header-settle linear both;
      animation-timeline: scroll();
      animation-range: 0 96px;
    }
  }
}

@keyframes header-settle {
  from { border-bottom-color: transparent; background: color-mix(in srgb, var(--paper) 0%, transparent); }
  to { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 84%, transparent); }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 64px;
}

.site-nav .wordmark { font-size: 16.5px; }
.site-nav .wordmark img { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a, .nav-account > a:not(.button) {
  padding: 6px 10px;
  border-radius: var(--r);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 450;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-links a:hover, .nav-account > a:not(.button):hover { background: var(--hover); color: var(--ink); }
.nav-links a[aria-current] { color: var(--ink); font-weight: 550; }

.nav-account {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-mobile { display: none; position: relative; }

.nav-mobile > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  list-style: none;
}

.nav-mobile > summary::-webkit-details-marker { display: none; }

.nav-mobile-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.nav-mobile-panel a {
  padding: 10px 12px;
  border-radius: var(--r);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}

.nav-mobile-panel a:hover { background: var(--hover); }
.nav-mobile-panel hr { margin: 6px 4px; }

/* Shared section typography */

.section { padding: clamp(72px, 9vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-title {
  max-width: 22ch;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.06;
}

.section-title span { color: var(--muted); }
.section-title.wide { max-width: 26ch; }
.section-title.wide span { display: block; }

.section-lede {
  max-width: 58ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font: 500 12.5px/1 var(--mono);
  letter-spacing: .02em;
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto 38%;
  z-index: -1;
  height: 120%;
  background:
    radial-gradient(42% 46% at 62% 44%, color-mix(in srgb, var(--allow-mark) 9%, transparent), transparent 70%),
    radial-gradient(30% 34% at 78% 66%, color-mix(in srgb, var(--review-mark) 7%, transparent), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.hero-title {
  font-size: clamp(44px, 5.3vw, 76px);
  font-weight: 620;
  letter-spacing: -.052em;
  line-height: .98;
  text-wrap: balance;
}

.hero-title .line { display: block; padding-bottom: .04em; }
.hero-title .line + .line { color: var(--muted); }

.hero-sub {
  max-width: 34ch;
  margin: 28px 0 0;
  color: var(--ink-2);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 36px;
}

.site .button.large { --h: 46px; padding: 0 22px; border-radius: 8px; font-size: 15px; }

.site .button.primary {
  box-shadow: 0 1px 0 hsl(0 0% 100% / .12) inset, var(--shadow-md);
}

.site .button.primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 hsl(0 0% 100% / .12) inset, var(--shadow-lg); }
.site .button.primary:active { transform: translateY(1px); }
.hero-actions .arrow-link { font-size: 15px; }

.hero-visual { margin: 0; }

.hero-visual figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-title .line, .hero-sub, .hero-actions {
    animation: rise 1s var(--ease) both;
  }
  .hero-title .line:nth-child(2) { animation-delay: 80ms; }
  .hero-sub { animation-delay: 180ms; }
  .hero-actions { animation-delay: 280ms; }
  .hero-visual { animation: rise-scale 1.1s var(--ease) 240ms both; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes rise-scale {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* Integrations */

.integrations {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.integrations-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

.integrations-inner > p { margin: 0; color: var(--muted); font-size: 14px; white-space: nowrap; }

.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  flex: none;
  gap: 44px;
  margin: 0;
  padding: 0 22px;
  list-style: none;
}

.marquee-track li {
  margin: 0;
  color: var(--ink-2);
  font: 500 15px/1 var(--mono);
  letter-spacing: -.01em;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 46s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex: 1 1 auto; flex-wrap: wrap; gap: 12px 28px; padding: 0; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Three outcomes */

.spectrum { margin-top: 56px; }

.spectrum-bar, .spectrum-cols {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  gap: 0 6px;
}

.spectrum-bar span {
  height: 8px;
  border-radius: 99px;
  transform-origin: left;
}

.spectrum-bar .allow { background: var(--allow-mark); }
.spectrum-bar .review { background: var(--review-mark); }
.spectrum-bar .block { background: var(--block-mark); }

.spectrum-cols { gap: 0 clamp(20px, 3vw, 40px); margin-top: 28px; }

.outcome h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -.03em;
}

.outcome p { max-width: 36ch; margin: 0; color: var(--muted); font-size: 15px; }

.outcome code {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}

.motion .spectrum .spectrum-bar span { transform: scaleX(0); transition: transform 1.1s var(--ease); }
.motion .spectrum.is-visible .spectrum-bar span { transform: none; }
.motion .spectrum.is-visible .spectrum-bar .review { transition-delay: .14s; }
.motion .spectrum.is-visible .spectrum-bar .block { transition-delay: .28s; }

/* How it works */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}

.how-intro { position: sticky; top: 112px; }
.how-intro .arrow-link { margin-top: 24px; }

.how-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-step {
  position: relative;
  margin: 0;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
}

.how-step + .how-step { margin-top: 0; }

.how-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease);
}

.how-step.is-current::before { transform: none; }

.how-verb {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
  font: 500 12.5px/1 var(--mono);
}

.how-step h3 { margin-bottom: 10px; font-size: 24px; letter-spacing: -.03em; }
.how-step > p { max-width: 54ch; color: var(--muted); font-size: 15.5px; }

.how-step pre {
  margin: 20px 0 0;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.75;
  box-shadow: var(--shadow-sm);
}

.how-step pre .c { color: var(--muted); }
.how-step pre .k { color: var(--ink); font-weight: 650; }

.rules-preview {
  display: grid;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.rules-preview > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.rules-preview > div + div { border-top: 1px solid var(--line); }
.rules-preview dt { color: var(--ink); font: 500 13px var(--mono); }
.rules-preview dt span { color: var(--muted); font-weight: 400; }
.rules-preview dd { margin: 0; }

/* Product showcase */

.showcase { overflow: hidden; }
.showcase-head { display: grid; justify-items: start; }

.shot {
  margin: 56px auto 0;
  width: min(1320px, 100% - 48px);
  perspective: 1800px;
}

.shot-frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.shot img { display: block; width: 100%; height: auto; }
.shot-dark { display: none !important; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none !important; }
  :root:not([data-theme="light"]) .shot-dark { display: block !important; }
}

:root[data-theme="dark"] .shot-light { display: none !important; }
:root[data-theme="dark"] .shot-dark { display: block !important; }

.shot figcaption {
  max-width: 64ch;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .shot-frame {
      transform-origin: 50% 0;
      animation: shot-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 42%;
    }
  }
}

@keyframes shot-settle {
  from { opacity: .35; transform: rotateX(16deg) translateY(56px) scale(.94); }
  to { opacity: 1; transform: none; }
}

/* Workspaces */

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.compare article {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 32px clamp(0px, 4vw, 48px) 8px 0;
}

.compare article + article {
  padding-left: clamp(24px, 4vw, 48px);
  border-left: 1px solid var(--line);
}

.compare h3 { font-size: 22px; letter-spacing: -.03em; }
.compare p { max-width: 44ch; margin: 0; color: var(--muted); }
.compare .roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.compare .roles .tag { font-family: var(--mono); font-size: 12px; }

/* Evidence statement */

.statement-title {
  max-width: 17ch;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -.048em;
  line-height: 1.02;
}

.statement-title span { display: block; color: var(--muted); }

.statement-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 48px;
  max-width: 920px;
  margin-top: 36px;
}

.statement-body p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.statement-body .arrow-link { grid-column: 1 / -1; }

.chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}

.chain li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  margin: 0;
  padding: 0 28px 0 0;
}

.chain li::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 14px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.chain li::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 22px;
  right: 8px;
  height: 2px;
  background: var(--ink);
  transform-origin: left;
}

.chain li:last-child::after { display: none; }
.chain li.dashed::after { background: repeating-linear-gradient(90deg, var(--faint) 0 6px, transparent 6px 11px); }
.chain li.gap::before { border-style: dashed; border-color: var(--faint); }
.chain li.gap strong { color: var(--muted); }
.chain strong { font-size: 15px; }
.chain .mono { color: var(--muted); font-size: 12px; }
.chain p { margin: 0; color: var(--muted); font-size: 13.5px; }

.motion .chain li::after { transform: scaleX(0); transition: transform .8s var(--ease); }
.motion .chain.is-visible li::after { transform: none; }
.motion .chain.is-visible li:nth-child(2)::after { transition-delay: .3s; }
.motion .chain.is-visible li:nth-child(3)::after { transition-delay: .6s; }

/* Questions */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  margin-top: 48px;
}

.faq-grid article { padding: 28px 0; border-top: 1px solid var(--line); }
.faq-grid h3 { margin-bottom: 10px; font-size: 18px; letter-spacing: -.02em; }
.faq-grid p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Closing call to action */

.closing {
  padding: clamp(80px, 10vw, 136px) 0;
  text-align: center;
}

.closing .wrap { display: grid; justify-items: center; }
.closing img { width: 48px; height: 48px; margin-bottom: 28px; border-radius: 11px; box-shadow: var(--shadow-md); }
.closing .section-title { max-width: 18ch; }
.closing p { margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.closing .button { margin-top: 32px; }

.underline {
  display: flex;
  gap: 8px;
  width: 220px;
  margin-top: 26px;
}

.underline span { height: 5px; border-radius: 99px; transform-origin: left; }
.underline .allow { flex: 144; background: var(--allow-mark); }
.underline .review { flex: 55; background: var(--review-mark); }
.underline .block { flex: 59; background: var(--block-mark); }

.motion .underline span { transform: scaleX(0); transition: transform .9s var(--ease); }
.motion .is-visible .underline span { transform: none; }
.motion .is-visible .underline .review { transition-delay: .15s; }
.motion .is-visible .underline .block { transition-delay: .3s; }

/* Scroll reveal (boot.js adds .motion and .is-visible) */

.motion [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.motion [data-reveal].is-visible { opacity: 1; transform: none; }
.motion [data-reveal-delay="1"] { transition-delay: .08s; }
.motion [data-reveal-delay="2"] { transition-delay: .16s; }
.motion [data-reveal-delay="3"] { transition-delay: .24s; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  padding: 48px 0 40px;
}

.footer-top p { margin: 14px 0 0; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; align-content: start; gap: 10px 28px; }
.footer-nav a, .footer-bottom a { color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover, .footer-bottom a:hover { color: var(--ink); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-bottom small { margin-right: auto; font-size: 13px; }

/* Documents */

.doc { padding: clamp(48px, 7vw, 88px) 0 96px; }
.doc-head { max-width: 820px; }
.doc-head h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 600; letter-spacing: -.045em; line-height: 1.04; }
.doc-intro { max-width: 60ch; margin-top: 22px; color: var(--ink-2); font-size: 19px; line-height: 1.55; }

.doc-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.doc-toc {
  position: sticky;
  top: 96px;
  display: grid;
  align-self: start;
  gap: 2px;
}

.doc-toc strong { margin-bottom: 10px; color: var(--muted); font-size: 12.5px; font-weight: 500; }

.doc-toc a {
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.doc-toc a:hover { color: var(--ink); }
.doc-toc a[aria-current="true"] { border-left-color: var(--ink); color: var(--ink); font-weight: 500; }

.doc-body { max-width: 68ch; }
.doc-body section + section { margin-top: 44px; }
.doc-body h2 { margin-bottom: 12px; font-size: 22px; letter-spacing: -.025em; }
.doc-body section p { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.doc-body .callout { margin-top: 44px; font-size: 15px; }
.doc-body .callout h2 { margin: 0 0 6px; font-size: 15px; }
.doc-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc-end .field-note { margin: 0; }

/* Not found */

.lost { padding: clamp(72px, 12vw, 160px) 0; }
.lost .code { display: block; margin-bottom: 18px; color: var(--muted); font: 500 14px var(--mono); }
.lost h1 { max-width: 14ch; font-size: clamp(40px, 6vw, 72px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.lost p { margin-top: 20px; color: var(--muted); font-size: 18px; }
.lost .hero-actions { margin-top: 32px; }

/* Pricing */

.pricing-head { padding-bottom: 48px; }
.pricing-head .section-title { max-width: 20ch; }
.pricing-head .section-title span { display: block; }
.pricing { padding-bottom: clamp(72px, 9vw, 120px); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.plan.featured { border-color: var(--ink); box-shadow: var(--shadow-md); }
.plan h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -.02em; }
.plan h2 .tag { font: 500 12px/1 var(--mono); }
.plan-for { min-height: 3em; margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 0; }
.plan-price strong { font-size: 40px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-yearly { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.plan .button { justify-content: center; }
.plan-planned { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.plan-planned strong { font: 500 12px/1 var(--mono); }
.plan-planned ul { display: grid; gap: 6px; margin: 10px 0 0; padding-left: 18px; }

.plan-features { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.plan-features li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.plan-features .i { margin-top: 3px; color: var(--allow); }
.pricing-note { margin-top: 20px; }
#quantum-assurance .plan-features { margin-top: 8px; }

/* Responsive */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 560px; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .how-intro { position: static; }
}

@media (max-width: 860px) {
  .nav-links, .nav-account { display: none; }
  .nav-mobile { display: block; margin-left: auto; }
  .integrations-inner { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .spectrum-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare article { padding-right: 0; }
  .compare article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .statement-body { grid-template-columns: minmax(0, 1fr); }
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .chain li:nth-child(2n)::after { display: none; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-for { min-height: 0; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .doc-toc { position: static; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .hero-title { font-size: clamp(38px, 11vw, 48px); }
  .hero-actions .button { width: 100%; }
  .shot { width: calc(100% - 32px); }
  .chain { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .chain li { padding: 0 0 28px 32px; }
  .chain li::before { position: absolute; top: 3px; left: 0; margin: 0; }
  .chain li::after { top: 21px; right: auto; bottom: 4px; left: 6px; width: 2px; height: auto; transform-origin: top; }
  .chain li.dashed::after { background: repeating-linear-gradient(180deg, var(--faint) 0 6px, transparent 6px 11px); }
  .motion .chain li::after { transform: scaleY(0); }
}
