/* Fold Trail website styles. Colours, type and spacing come from tokens.css. */

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--motion-fast);
}
a:hover {
  color: var(--color-text-muted);
}

button,
summary {
  font: inherit;
}

::selection {
  background: var(--color-highlight);
  color: var(--color-highlight-text);
}

:focus-visible {
  outline: var(--focus-width) solid var(--color-accent);
  outline-offset: var(--focus-offset);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--color-cta);
  color: var(--color-cta-text);
  font-weight: 600;
}
.skip-link:focus {
  top: var(--space-3);
  color: var(--color-cta-text);
}

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.root {
  position: relative;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.btn--cta {
  background: var(--color-cta);
  color: var(--color-cta-text);
}
.btn--cta:hover {
  background: var(--color-cta-hover);
  color: var(--color-cta-text);
}
.btn--ghost {
  border-color: var(--color-text);
  color: var(--color-text);
}
.btn--ghost:hover {
  background: var(--color-soft);
  color: var(--color-text);
}
.btn--lg {
  height: 56px;
  padding: 0 26px;
  font-size: 17px;
}
.btn--block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.inline-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-header);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 4px 0;
  color: var(--color-text);
  white-space: nowrap;
}
.brand:hover {
  color: var(--color-text);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.logo-mark .lm-sheet {
  fill: var(--color-surface);
  stroke: var(--color-text);
}
.logo-mark .lm-fold {
  fill: var(--color-soft);
  stroke: var(--color-text);
}
.logo-mark .lm-trail {
  stroke: var(--trail);
}
.logo-mark .lm-dot {
  fill: var(--trail);
  stroke: var(--color-text);
}
.logo-mark--paper .lm-sheet {
  fill: var(--paper-bg);
  stroke: var(--paper-text);
}
.logo-mark--paper .lm-fold {
  fill: var(--paper-soft);
  stroke: var(--paper-text);
}
.logo-mark--paper .lm-dot {
  stroke: var(--paper-text);
}

.nav-wide {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  font-size: 15px;
  font-weight: 600;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav-link[aria-current='page'] {
  border-bottom-color: var(--color-text);
}

.site-header__cta {
  margin-left: auto;
  padding: 0 14px;
}

.site-header__row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
}

.menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-right: 8px;
  cursor: pointer;
  list-style: none;
}
.menu > summary::-webkit-details-marker {
  display: none;
}
.menu > summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--motion-base);
}
.menu[open] > summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 24px 32px -24px rgba(16, 27, 46, 0.35);
}
.menu__list {
  list-style: none;
  margin: 0;
  padding: var(--space-2) var(--gutter) var(--space-4);
}
.menu__list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-top: 1px solid var(--color-line);
  color: var(--color-text);
  font-size: 17px;
}
.menu__list li:first-child a {
  border-top: 0;
}
.menu__list a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

@media (min-width: 880px) {
  .nav-wide {
    display: flex;
  }
  .site-header__cta {
    margin-left: 0;
    padding: 0 18px;
  }
  .site-header__row2 {
    display: none;
  }
}

/* Type */

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: 13px;
  color: var(--color-text-muted);
}

.display-1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(50px, 5.6vw, 90px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.display-page {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(50px, 6.6vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 11ch;
  overflow-wrap: normal;
}
.display-2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 5.2vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.display-3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.mw-9 {
  max-width: 9ch;
}
.mw-10 {
  max-width: 10ch;
}
.mw-12 {
  max-width: 12ch;
}
.mw-13 {
  max-width: 13ch;
}

.lede {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 36ch;
  text-wrap: pretty;
}
.body-lg {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 44ch;
}
.fine {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 46ch;
}

.tag-pending {
  align-self: flex-start;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  border: 1px dashed var(--color-text-muted);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
}

/* Sections */

.section {
  padding-top: clamp(72px, 9vw, 128px);
  padding-bottom: clamp(72px, 9vw, 128px);
}
.stack {
  display: flex;
  flex-direction: column;
}
.gap-section {
  gap: clamp(32px, 4vw, 48px);
}
.gap-tight {
  gap: clamp(28px, 3.5vw, 44px);
}
.gap-loose {
  gap: clamp(48px, 6vw, 80px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 48px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px 64px;
  align-items: end;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}

.crease {
  height: 2px;
  background:
    linear-gradient(var(--color-crease-dark), var(--color-crease-dark)) top / 100% 1px no-repeat,
    linear-gradient(var(--color-crease-light), var(--color-crease-light)) bottom / 100% 1px no-repeat;
  box-shadow: 0 -12px 20px -14px var(--color-crease-dark);
}

.deep {
  background: var(--color-deep);
  color: var(--color-deep-text);
}
.deep .lede,
.deep .body-lg {
  color: var(--color-deep-muted);
}
.deep a {
  color: var(--color-deep-text);
}
.deep a:hover {
  color: var(--color-deep-muted);
}
.deep :focus-visible {
  outline-color: var(--color-deep-text);
}

.grid-bg {
  background-image:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Printed paper: receipts, packs and the footer sitemap */

.paper {
  background-color: var(--paper-bg);
  background-image:
    url('/img/paper-noise.svg'),
    linear-gradient(90deg, rgba(16, 27, 46, 0.05), rgba(16, 27, 46, 0) 9%, rgba(16, 27, 46, 0) 91%, rgba(16, 27, 46, 0.06)),
    linear-gradient(180deg, rgba(16, 27, 46, 0) 70%, rgba(16, 27, 46, 0.035));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  color: var(--paper-text);
}
.paper-shadow {
  filter: drop-shadow(0 1px 1px rgba(16, 27, 46, 0.14)) drop-shadow(0 22px 22px rgba(16, 27, 46, 0.24));
}
.paper a {
  color: var(--paper-text);
}
.paper a:hover {
  color: var(--color-cta);
}
.paper :focus-visible {
  outline-color: var(--paper-text);
}
.p-center {
  text-align: center;
}
.p-muted {
  color: var(--paper-muted);
}
.p-strong {
  font-weight: 500;
}
.p-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  white-space: nowrap;
}
.p-rule {
  border-top: 1px dashed var(--paper-rule);
  margin: 10px 0 6px;
}
.p-small {
  font-size: 12px;
}
.p-mb {
  margin-bottom: 12px;
}
.p-mt {
  margin-top: 14px;
}

.mark {
  padding: 1px 4px;
  border-radius: 2px;
  background: var(--color-highlight);
  color: var(--color-highlight-text);
  transition: box-shadow var(--motion-base);
}
.mark.is-on {
  box-shadow: 0 0 0 2px var(--paper-text);
}
.mark--ring {
  box-shadow: 0 0 0 2px var(--paper-text);
}

/* Home hero */

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
  padding-top: 24px;
  padding-bottom: clamp(64px, 7vw, 96px);
}
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding-top: 8px;
}
.hero__sub {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 34ch;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.hero__fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  container-type: inline-size;
}
.hero__box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 6px 0;
}
.hero__rcpt {
  justify-self: center;
  width: 100%;
  max-width: 290px;
  transform: rotate(-2deg);
}
.hero__rcpt .paper {
  padding: 24px 22px 50px;
  font-size: 13px;
  line-height: 1.85;
}
.hero__rcpt .p-big {
  font-size: 14px;
}
@container (min-width: 540px) {
  .hero__box {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
    gap: 64px;
  }
  .hero__rcpt {
    justify-self: start;
  }
}

.mini-sheet {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.mini-sheet__bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--color-soft);
  border-bottom: 1px solid var(--color-line);
  font-size: 12px;
  color: var(--color-text-muted);
}
.mini-sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.mini-sheet th {
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-align: left;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-line);
}
.mini-sheet td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text-muted);
  vertical-align: top;
}
.mini-sheet .num {
  text-align: right;
  white-space: nowrap;
  padding-right: 14px;
}
.mini-sheet .date {
  white-space: nowrap;
}
.mini-sheet tr.is-traced td {
  background: var(--color-highlight);
  color: var(--color-highlight-text);
  transition: box-shadow var(--motion-base);
}
.mini-sheet tr.is-traced td:first-child {
  font-weight: 600;
}
.mini-sheet tr.is-traced td.num {
  font-weight: 500;
}
.mini-sheet td.is-on,
.mini-sheet td:focus-visible {
  box-shadow: inset 0 0 0 2px var(--paper-text);
  outline: none;
}
.mini-sheet tr.is-traced td[tabindex] {
  cursor: pointer;
}

.blank-marker {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 11px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.hero__cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--color-line);
  font-size: 12px;
  color: var(--color-text-muted);
}
.hero__hint {
  display: none;
}
.js .hero__hint {
  display: inline;
}

/* Hero trail. The static connector shows without JavaScript; site.js replaces it with a drawn path. */
.trail-static {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: auto;
  width: 7px;
  height: 40px;
  margin-left: -3.5px;
  border-radius: 4px;
  background: var(--trail);
  pointer-events: none;
}
.trail-static::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--paper-text);
}
.mini-sheet {
  position: relative;
}
.hero__box .trail-static {
  display: none;
}
.mini-sheet .trail-static {
  display: block;
  top: -40px;
}
@container (min-width: 540px) {
  .mini-sheet .trail-static {
    top: 88px;
    left: -64px;
    width: 64px;
    height: 7px;
    margin-left: 0;
  }
  .mini-sheet .trail-static::after {
    left: auto;
    right: -4px;
    bottom: -0.5px;
  }
}
.mini-sheet {
  overflow: visible;
}
.mini-sheet__clip {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.js .trail-static {
  display: none !important;
}

.trail-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s;
}
.trail-svg path {
  stroke: var(--trail);
  opacity: 0.92;
}
.trail-svg circle {
  fill: var(--paper-text);
}
.dark-dot {
  fill: var(--color-text);
}

.rail {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 6;
  display: none;
}
.rail path {
  stroke: var(--trail);
  opacity: 0.9;
}
.rail circle {
  fill: var(--trail);
  stroke: var(--color-text);
  stroke-width: 1.5px;
  transition: opacity 0.3s;
}

/* Review screen ("proof") */

.review {
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.review__bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-line);
  font-size: 12px;
  color: var(--color-text-muted);
}
.review__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .review__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}
.review__doc {
  background: var(--color-soft);
  padding: clamp(24px, 3vw, 44px) clamp(16px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.review__rcpt {
  width: 100%;
  max-width: 320px;
  transform: rotate(-1deg);
}
.review__rcpt .paper {
  padding: 26px 24px 56px;
  font-size: 14px;
  line-height: 1.9;
}
.review__rcpt .p-big {
  font-size: 15px;
}
.review__file {
  font-size: 12px;
  color: var(--color-text-muted);
}
.review__fields {
  padding: clamp(20px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.review__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 0 12px 10px;
}
.review__head strong {
  font-size: 15px;
}
.review__head span {
  font-size: 12px;
  color: var(--color-text-muted);
}
.fields {
  list-style: none;
  margin: 0;
  padding: 0;
}
.field {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  padding: 13px 12px;
  border-radius: 6px;
  border-top: 1px solid var(--color-line);
}
.field:first-child,
.field--selected,
.field--selected + .field {
  border-top-color: transparent;
}
.field--selected {
  background: var(--color-highlight);
  color: var(--color-highlight-text);
}
.field__key {
  font-size: 13px;
  color: var(--color-text-muted);
}
.field--selected .field__key,
.field--selected .field__src {
  color: var(--color-highlight-text);
}
.field__val {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.field__v {
  font-family: var(--font-mono);
  font-size: 15px;
}
.field__src {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
}
.status {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.status--ok {
  background: var(--color-ok-bg);
  color: var(--color-ok);
}
.status--edit {
  background: var(--color-edit-bg);
  color: var(--color-edit);
}
.status--warn {
  background: var(--color-warn-bg);
  color: var(--color-warn);
}
.review__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}
.fake-btn {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}
.fake-btn--solid {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-bg);
}

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--color-text);
}
.note__n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
}
.note__t {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.note__b {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* Four steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
@media (min-width: 620px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px 24px;
  background: var(--color-deep-card);
  border: 1px solid var(--color-deep-card-line);
  border-radius: var(--radius-lg);
}
.step__n {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-deep-muted);
}
.step__t {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.025em;
  line-height: 1;
}
.step__b {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-deep-muted);
}
.vig {
  position: relative;
  height: 190px;
  background: var(--color-deep-well);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--paper-text);
}
.vig .mono,
.vig-sheet {
  font-variant-numeric: tabular-nums slashed-zero;
}
.v1-doc {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 84px;
  margin-left: -42px;
  background: var(--paper-bg);
  padding: 11px 9px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(62px);
  opacity: 1;
  transition: transform 0.7s cubic-bezier(0.3, 0, 0.2, 1), opacity 0.35s;
}
.v1-doc span {
  height: 3px;
  background: #c9ced8;
}
.v1-doc .v1-h {
  height: 5px;
  background: var(--paper-text);
  width: 70%;
  align-self: center;
}
.v1-doc .v1-s {
  width: 80%;
}
.v1-doc .v1-t {
  height: 4px;
  background: var(--paper-text);
  margin-top: 4px;
}
.v1-tray {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  height: 70px;
  border: 2px solid var(--p-navy-500);
  border-top: none;
  border-radius: 0 0 10px 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 7px;
  font-size: 12px;
  color: #e9ecf2;
}
.v1-count-a {
  display: none;
}
.steps[data-phase='0'] .v1-doc {
  transform: translateY(-18px);
  opacity: 0;
}
.steps[data-phase='1'] .v1-doc {
  transform: translateY(0);
}
.steps[data-phase='0'] .v1-count-a,
.steps[data-phase='1'] .v1-count-a {
  display: inline;
}
.steps[data-phase='0'] .v1-count-b,
.steps[data-phase='1'] .v1-count-b {
  display: none;
}

.vig-rcpt {
  width: calc(100% - 28px);
  background: var(--paper-bg);
  padding: 16px 16px 20px;
  font-size: 12px;
  line-height: 1.8;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}
.vig-rcpt .hl {
  padding: 0 3px;
  background: var(--color-highlight);
  transition: background 0.35s;
}
.steps[data-phase='0'] .hl-s,
.steps[data-phase='0'] .hl-d,
.steps[data-phase='1'] .hl-d,
.steps[data-phase='0'] .hl-t,
.steps[data-phase='1'] .hl-t,
.steps[data-phase='2'] .hl-t {
  background: transparent;
}

.vig-card {
  width: 100%;
  background: var(--paper-bg);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vig-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--paper-muted);
}
.vig-card__state {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--p-paper-200);
  color: var(--paper-text);
}
.vig-card__value {
  font-size: 17px;
}
.vig-card__was {
  font-size: 12px;
  color: var(--paper-muted);
  border-top: 1px solid var(--paper-soft);
  padding-top: 10px;
}

.vig-sheet {
  width: 100%;
  background: var(--paper-bg);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.vig-sheet__name {
  padding: 7px 10px;
  background: var(--paper-soft);
  color: var(--paper-muted);
}
.vig-sheet__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-top: 1px solid var(--paper-soft);
  color: var(--paper-muted);
}
.vig-sheet__row span {
  padding: 6px 10px;
}
.vig-sheet__row span:first-child {
  font-family: var(--font-body);
  font-size: 11px;
}
.vig-sheet__row span:last-child {
  text-align: right;
}
.vig-sheet__row--first {
  color: var(--paper-text);
}
.vig-sheet__row--first span:first-child {
  font-weight: 600;
}
.vig-sheet__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px 4px;
  background: var(--paper-soft);
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--paper-muted);
}
.vig-sheet__tabs span {
  padding: 4px 6px;
  border-radius: 3px;
  transition: transform 0.45s cubic-bezier(0.3, 0, 0.2, 1), opacity 0.3s;
}
.vig-sheet__tabs span:first-child {
  background: var(--paper-bg);
  color: var(--paper-text);
}
.steps[data-phase='0'] .vt-3,
.steps[data-phase='0'] .vt-4,
.steps[data-phase='1'] .vt-4,
.steps[data-phase='0'] .vt-2 {
  opacity: 0;
  transform: translateX(-12px);
}

/* Spreadsheet preview */

.xl {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.xl__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--color-soft);
  border-bottom: 1px solid var(--color-line);
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--color-text-muted);
}
.xl__dots {
  display: flex;
  gap: 6px;
}
.xl__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-line);
}
.xl__fx {
  display: grid;
  grid-template-columns: 72px 28px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--color-line);
  font-size: 13px;
}
.xl__fx > span {
  padding: 9px 12px;
}
.xl__ref {
  border-right: 1px solid var(--color-line);
}
.xl__fxlabel {
  padding: 9px 0 !important;
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
  font-family: var(--font-body);
}
.xl__fxval {
  padding: 9px 14px !important;
  overflow-wrap: anywhere;
}
.xl__fxval.is-blank {
  color: var(--color-text-muted);
}

.scroll-frame {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.scroll-frame:focus-visible {
  outline-offset: -3px;
}

.xl-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
  font-size: 13px;
}
.xl-table--wide {
  min-width: 1040px;
}
.xl-table .xl-letters th {
  padding: 6px 16px;
  background: var(--color-soft);
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-muted);
  text-align: center;
}
.xl-table .xl-rn {
  width: 44px;
  padding: 10px 0;
  text-align: center;
  background: var(--color-soft);
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
}
.xl-table .xl-head th {
  padding: 10px 16px;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
.xl-table td {
  padding: 11px 16px;
  min-height: 42px;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  white-space: nowrap;
}
.xl-table .xl-head th.n,
.xl-table td.n {
  text-align: right;
}
.xl-table td.s {
  font-family: var(--font-body);
}
.xl-table td.wrap {
  white-space: normal;
}
.xl-table td.strong {
  font-weight: 600;
}
.xl-table td.blank {
  background: repeating-linear-gradient(135deg, rgba(90, 101, 119, 0.13) 0 3px, transparent 3px 7px);
}
.xl-table td.is-sel {
  background-color: var(--color-edit-bg);
  box-shadow: inset 0 0 0 2px var(--color-accent);
}
.xl-table td.blank.is-sel {
  background: repeating-linear-gradient(135deg, rgba(90, 101, 119, 0.13) 0 3px, transparent 3px 7px), var(--color-edit-bg);
}
.js .xl-table td {
  cursor: cell;
}
.st-ok {
  color: var(--color-ok);
}
.st-warn {
  color: var(--color-warn);
}
.st-edit {
  color: var(--color-edit);
}

.xl__tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  background: var(--color-soft);
  border-top: 1px solid var(--color-line);
  padding: 0 8px;
}
.xl__tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.xl__tab[aria-selected='true'],
.xl__tab.is-current {
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
  border-bottom-color: var(--color-accent);
}

/* Without JavaScript the sheet tabs are links and :target picks the sheet. */
html:not(.js) .xl-panels:has(.xl-panel:target) .xl-panel:not(:target),
html:not(.js) .xl-panels:not(:has(.xl-panel:target)) .xl-panel:not(.xl-panel--default) {
  display: none;
}
html:not(.js) .xl:has(.xl-panel:target) .xl__tab.is-current {
  background: transparent;
  color: var(--color-text-muted);
  font-weight: 400;
  border-bottom-color: transparent;
}
html:not(.js) .xl:has(#sheet-line-items:target) .xl__tab[href='#sheet-line-items'],
html:not(.js) .xl:has(#sheet-additional-fields:target) .xl__tab[href='#sheet-additional-fields'],
html:not(.js) .xl:has(#sheet-exceptions:target) .xl__tab[href='#sheet-exceptions'],
html:not(.js) .xl:has(#sheet-readme:target) .xl__tab[href='#sheet-readme'],
html:not(.js) .xl:has(#sheet-documents:target) .xl__tab[href='#sheet-documents'] {
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
  border-bottom-color: var(--color-accent);
}
.xl-panel[hidden] {
  display: none;
}

/* Big facts */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 2px solid var(--color-text);
}
.fact__big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.fact__body {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 30ch;
}

/* FAQ accordion */

.faq {
  border-bottom: 1px solid var(--color-line);
}
.faq__item {
  border-top: 1px solid var(--color-line);
}
.faq__item > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 24px);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq__item > summary::-webkit-details-marker {
  display: none;
}
.faq__item > summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--color-accent);
}
.faq__item[open] > summary::after {
  content: '\2212';
}
.faq__a {
  margin: 0 0 26px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 56ch;
}
.faq__a + .faq__a {
  margin-top: -14px;
}
.faq-group + .faq-group {
  margin-top: clamp(48px, 6vw, 72px);
}
.faq-group__t {
  margin: 0 0 12px;
}

/* Page heads (pricing, security, inner pages) */

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px 64px;
  align-items: end;
  padding-top: clamp(48px, 7vw, 104px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
@media (min-width: 900px) {
  .page-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}
.page-head--tall {
  padding-bottom: clamp(56px, 7vw, 96px);
}

/* Page packs */

.packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  max-width: 900px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.pack__paper {
  transform: rotate(-1.2deg);
}
.pack--b .pack__paper {
  transform: rotate(1deg);
}
.pack .paper {
  position: relative;
  padding: 28px 26px 58px;
  font-size: 14px;
  line-height: 2;
}
.pack__price {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 10px 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.pack__cur {
  font-size: 40px;
  padding-top: 0.15em;
}
.pack__num {
  font-size: clamp(96px, 9vw, 136px);
}
.leader {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}
.leader dt,
.leader dd {
  margin: 0;
}
.leader::after {
  content: none;
}
.leader__dots {
  flex: 1;
  border-bottom: 1px dotted var(--paper-rule);
  transform: translateY(-4px);
}
.pack__total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
  font-size: 16px;
}
.stamp {
  position: absolute;
  right: 20px;
  top: 92px;
  transform: rotate(-11deg);
  border: 3px solid var(--paper-text);
  outline: 1.5px solid var(--paper-text);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-align: center;
  opacity: 0.9;
}

/* Numbered rules (pricing), ledger (security) */

.rules {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--color-line);
}
.rule {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px 20px;
  padding: 28px 0;
  border-top: 1px solid var(--color-line);
}
.rule__n {
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
}
.rule__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rule__t {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.rule__b {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 48ch;
}

.examples {
  margin: 0;
  padding: 0;
  list-style: none;
}
.example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--color-deep-card-line);
}
.example__what {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: clamp(17px, 1.5vw, 20px);
}
.example__calc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-deep-muted);
}
.example__cost {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2vw, 26px);
  white-space: nowrap;
}

.ledger {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--color-line);
}
.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 32px;
  padding: 32px 0;
  border-top: 1px solid var(--color-line);
  align-items: baseline;
}
@media (min-width: 860px) {
  .ledger__row {
    grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.2fr);
  }
}
.ledger__n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
}
.ledger__t {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.ledger__b {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.ledger__b p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 44ch;
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  border-top: 1px solid var(--color-deep-card-line);
  font-size: 19px;
  font-weight: 600;
}
.link-list__m {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-deep-muted);
}

/* Limits and other data tables */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.data-table caption {
  text-align: left;
  padding-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
}
.data-table th,
.data-table td {
  padding: 16px 16px 16px 0;
  border-top: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}
.data-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.data-table tbody th {
  font-weight: 600;
}
.data-table .num {
  font-family: var(--font-mono);
  white-space: nowrap;
}
.data-table--wide {
  min-width: 640px;
}

/* CTA band */

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(64px, 8vw, 112px);
}
.cta-band__t {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 5.6vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 12ch;
}
.cta-band .btn {
  height: 58px;
  padding: 0 28px;
  font-size: 17px;
}

/* Footer */

.site-footer {
  background: var(--color-deep);
  color: #e9ecf2;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(72px, 8vw, 104px);
  padding-bottom: 40px;
}
.footer-slot {
  position: relative;
  z-index: 2;
  width: min(470px, 100%);
  height: 14px;
  border-radius: 7px;
  background: var(--footer-slot);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.06);
}
.footer-rcpt {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 20px));
  margin-top: -6px;
}
.footer-rcpt .paper {
  padding: 34px 24px 64px;
  font-size: 13px;
  line-height: 1.9;
}
.footer-rcpt__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.footer-rcpt__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.footer-label {
  margin: 0;
  font-size: 11px;
  color: var(--paper-muted);
  letter-spacing: 0.12em;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 28px;
}
.footer-nav a[aria-current='page'] > span:first-child {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-nav .leader__dots {
  flex: 1;
}
.footer-nav .footer-n {
  color: var(--paper-muted);
}
.footer-tagline {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.footer-op {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--paper-muted);
}
.footer-copy {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--paper-muted);
}
.p-rule--wide {
  margin: 14px 0 10px;
}
.p-rule--end {
  margin: 16px 0 14px;
}

/* Inner content pages: how it works, limits, FAQ */

.prose {
  max-width: 68ch;
}
.prose p,
.prose li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-muted);
}
.prose strong {
  color: var(--color-text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 6px 12px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  font-size: 15px;
}

.cols-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px 64px;
}
@media (min-width: 900px) {
  .cols-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.limits-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 24px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.limits-strip li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
  border-top: 2px solid var(--color-text);
}
.limits-strip strong {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.limits-strip span {
  font-size: 15px;
  color: var(--color-text-muted);
}

/* Legal layout */

.legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px 64px;
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(72px, 9vw, 128px);
}
@media (min-width: 960px) {
  .legal {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}
.legal-nav {
  order: 2;
}
@media (min-width: 960px) {
  .legal-nav {
    order: 0;
  }
  .legal-nav__inner {
    position: sticky;
    top: 100px;
  }
}
.legal-nav__t {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
}
.legal-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-line);
}
.legal-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
}
.legal-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.legal-doc {
  max-width: 72ch;
  min-width: 0;
}
.legal-doc h1 {
  margin: 8px 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin: 0 0 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
}
.legal-summary {
  margin: 0 0 32px;
  padding: 20px 24px;
  border-left: 4px solid var(--color-highlight);
  background: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 17px;
  line-height: 1.6;
}
.legal-doc section {
  padding: 24px 0;
  border-top: 1px solid var(--color-line);
}
.legal-doc h2 {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.legal-doc h2 .legal-n {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0;
}
.legal-doc p,
.legal-doc li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.legal-doc p {
  margin: 0 0 12px;
}
.legal-doc ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
.legal-doc strong {
  color: var(--color-text);
}
.legal-doc a:not(.btn) {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-doc .data-table {
  font-size: 15px;
}
.legal-doc .data-table td,
.legal-doc .data-table th {
  color: var(--color-text-muted);
}
.legal-doc .data-table tbody th {
  color: var(--color-text);
}
.legal-doc dl.facts-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
}
@media (min-width: 640px) {
  .legal-doc dl.facts-list {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}
.facts-list dt,
.facts-list dd {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--color-line);
}
.facts-list dt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
}
@media (max-width: 639px) {
  .facts-list dd {
    border-top: 0;
    padding-top: 0;
  }
}
.tbc {
  font-style: italic;
  color: var(--color-text-muted);
}

/* 404 */

.nf {
  padding-top: clamp(64px, 10vw, 140px);
  padding-bottom: clamp(72px, 10vw, 140px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.nf__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

/* Reduced motion: no animation, every final state shown. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .cta-band,
  .rail,
  .trail-svg {
    display: none;
  }
}

.pack-note {
  margin-top: 40px;
}
.faq-more {
  margin-top: clamp(48px, 6vw, 72px);
}
.deep .prose p,
.deep .prose li {
  color: var(--color-deep-muted);
}
.deep .prose strong {
  color: var(--color-deep-text);
}
.ledger__b a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
