@font-face {
  font-family: Barlow;
  src: url('/assets/display.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url('/assets/sans.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url('/assets/sans-medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url('/assets/sans-semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url('/assets/mono.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* Brand tokens. Yellow is the 59: used sparingly until the final section. */
:root {
  --bg: #050505;
  --surface: #141414;
  --graphite: #2b2b29;
  --stone: #6f706a;
  --muted: #a9aaa3;
  --ink: #f4f4ed;
  --accent: #fbff00;
  --line: #ffffff1f;
  --line-strong: #ffffff38;
  --error-dark: #7a0000;
  --display: Barlow, Impact, 'Arial Narrow', sans-serif;
  --sans: DM, system-ui, sans-serif;
  --mono: Plex, ui-monospace, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

.wrap {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding-inline: clamp(16px, 5vw, 72px);
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.5;
}

.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.accent {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 16px;
}

.skip:focus {
  top: 12px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Buttons: one yellow action per view */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease-out, background 0.24s ease-out, border-color 0.2s ease-out;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-dark {
  background: var(--bg);
  color: var(--accent);
}

.lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32em;
  font-weight: 600;
  letter-spacing: -0.06em;
  white-space: nowrap;
  text-decoration: none;
  font-size: 24px;
}

.lockup .sym {
  font-family: var(--display);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.lockup-sm {
  font-size: 20px;
}

/* Section scaffolding */
.section {
  padding-block: clamp(72px, 10vw, 140px);
  border-top: 1px solid var(--line);
}

.kicker {
  display: block;
  color: var(--muted);
  margin-bottom: 22px;
}

.h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(46px, 6.4vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  max-width: 980px;
}

.h2-sub {
  font-size: clamp(46px, 5.4vw, 84px);
}

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--muted);
  max-width: 620px;
  margin-top: 24px;
}

/* ---- Nav ---- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 84px;
  border-bottom: 1px solid #ffffff26;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  color: #d8d8d0;
}

.nav-links a:not(.btn):hover,
.nav-links a[aria-current='page'] {
  color: var(--ink);
}

.nav-signin {
  white-space: nowrap;
}

/* ---- 1 Hero (rolling glyph field) ---- */
.roll-hero {
  position: relative;
  isolation: isolate;
  height: 100svh;
  min-height: 700px;
  max-height: 1100px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.roll-hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
}

.roll-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, #050505eb 0%, #05050500 55%),
    linear-gradient(0deg, #050505 0%, #05050500 28%);
}

.roll-copy {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 44px;
}

.roll-copy h1 {
  font-size: clamp(58px, 6.6vw, 112px);
  max-width: 640px;
  margin-top: 22px;
}

.roll-copy p {
  max-width: 400px;
  margin-top: 26px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.roll-caption {
  min-width: 220px;
  text-align: right;
  color: var(--accent);
}

.roll-caption strong {
  display: block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin-top: 6px;
}

.roll-ticks {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 14px;
}

.roll-ticks i {
  width: 22px;
  height: 2px;
  background: #f4f4ed33;
  transition: background 0.4s;
}

.roll-ticks i.on {
  background: var(--accent);
}

/* ---- 2 Facts bar ---- */
.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.facts li {
  white-space: nowrap;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.facts li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--stone);
}

/* ---- 3 Manifesto ---- */
.feed-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 64px;
  border: 1px solid var(--line);
}

.feed-vs > div {
  padding: clamp(24px, 3vw, 40px);
}

.feed-vs > div + div {
  border-left: 1px solid var(--line);
}

.feed-vs ul {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.feed-vs li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.feed-vs li b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 15px;
  white-space: nowrap;
}

.feed-vs .feed {
  color: var(--stone);
}

.feed-vs .feed li span {
  text-decoration: line-through;
  text-decoration-color: #6f706a99;
}

.threshold {
  margin-top: 64px;
}

.threshold-line {
  position: relative;
  height: 72px;
}

.threshold-line::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line-strong);
}

.threshold-line i {
  position: absolute;
  top: 50%;
  width: 1px;
  height: 12px;
  background: var(--stone);
  transform: translateY(-50%);
}

.threshold-line b {
  position: absolute;
  right: 0;
  top: 50%;
  width: 3px;
  height: 52px;
  background: var(--accent);
  transform: translateY(-50%);
}

.threshold-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
  color: var(--muted);
}

/* ---- 4 Demo ---- */
.demo {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.tab {
  background: none;
  border: 1px solid var(--line-strong);
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

.tab[aria-selected='true'] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.phone-chat {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 36px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.chat-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg {
  font-size: 16px;
  line-height: 1.55;
  max-width: 88%;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.24s ease-out, transform 0.24s ease-out;
}

.msg.in {
  opacity: 1;
  transform: none;
}

.msg.me {
  align-self: flex-end;
  background: var(--graphite);
  padding: 14px 16px;
}

.msg.coach {
  border-left: 2px solid var(--ink);
  padding: 2px 0 2px 16px;
}

.msg .who {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.evidence {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.evidence span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 1px solid var(--line-strong);
  padding: 4px 8px;
  color: var(--muted);
}

.proposal {
  border: 1px solid var(--line-strong);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.proposal .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.proposal .acts {
  display: flex;
  gap: 10px;
}

.proposal .acts span {
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
}

.proposal .acts span:first-child {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.illus {
  margin-top: auto;
  color: var(--stone);
}

/* ---- 5 What's your 59 ---- */
.picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.goal {
  background: none;
  border: 1px solid var(--line-strong);
  padding: 12px 16px;
  cursor: pointer;
  font-size: 15px;
}

.goal[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.goal-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  margin-top: 48px;
  align-items: end;
}

.goal-time {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(110px, 18vw, 260px);
  line-height: 0.8;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.goal-time .pre {
  color: var(--ink);
}

.goal-time .s {
  color: var(--accent);
}

.goal-copy h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.goal-copy ul {
  list-style: none;
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.goal-copy li {
  padding-left: 22px;
  position: relative;
  color: var(--muted);
}

.goal-copy li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 10px;
  height: 1px;
  background: var(--ink);
}

/* ---- 6 How it works ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--line-strong);
}

.step {
  padding: 32px 32px 0 0;
}

.step + .step {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.step .n {
  font-family: var(--display);
  font-size: 64px;
  line-height: 0.8;
  color: var(--stone);
}

.step h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-top: 28px;
}

.step p {
  color: var(--muted);
  margin-top: 12px;
}

/* ---- 7 Features by moment ---- */
.moments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.moment {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 360px;
}

.moment .t {
  color: var(--muted);
}

.moment h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 34px;
  line-height: 0.92;
  font-weight: 700;
}

.moment p {
  color: var(--muted);
  font-size: 15px;
}

.moment .snip {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 14px;
  color: var(--ink);
}

/* ---- 8 Method ---- */
.method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
}

.commit {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.commit > div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.commit .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding-top: 6px;
}

.commit h3 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.commit p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 16px;
}

.reads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}

.reads div {
  background: var(--bg);
  padding: 18px;
}

.reads b {
  display: block;
  font-weight: 500;
}

.reads span {
  font-size: 14px;
  color: var(--muted);
}

/* ---- 9 Privacy ---- */
.privacy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.privacy div {
  border: 1px solid var(--line);
  padding: 28px;
}

.privacy .x {
  font-family: var(--display);
  font-size: 56px;
  line-height: 0.8;
  color: var(--stone);
}

.privacy h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 24px;
}

.privacy p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 16px;
}

.privacy-link-row {
  margin-top: 32px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: border-color 0.2s ease-out, color 0.2s ease-out;
}

.arrow-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Decorative arrow silenced for screen readers with fallback for older browsers */
.arrow-link::after {
  content: ' →';
  content: ' →' / '';
}

/* ---- 10 Why 59 ---- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}

.story-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  filter: grayscale(1) contrast(1.25) brightness(0.85);
}

.story-photo .stamp {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--display);
  font-size: 34px;
  color: var(--accent);
}

.story-photo figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  color: var(--ink);
}

.story p {
  color: var(--muted);
  margin-top: 20px;
  max-width: 540px;
}

.story p strong {
  color: var(--ink);
  font-weight: 500;
}

/* ---- 11 FAQ (progressive details animation + silenced markers) ---- */
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 90px);
}

details {
  border-bottom: 1px solid var(--line);
}

details:first-of-type {
  border-top: 1px solid var(--line-strong);
}

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  content: '+' / '';
  font-family: var(--mono);
  color: var(--muted);
}

details[open] summary::after {
  content: '–';
  content: '–' / '';
}

details p {
  color: var(--muted);
  padding-bottom: 24px;
  max-width: 640px;
}

details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

details:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  details::details-content {
    transition: block-size 0.24s ease-out, content-visibility 0.24s ease-out, display 0.24s ease-out;
    transition-behavior: allow-discrete;
  }
}

/* ---- 12 Final CTA: the one yellow takeover ---- */
.finale {
  background: var(--accent);
  color: var(--bg);
  padding-block: clamp(80px, 12vw, 160px);
}

.finale .h2 {
  font-size: clamp(64px, 10vw, 168px);
  max-width: none;
  margin-top: 22px;
}

.finale > .wrap > p {
  max-width: 520px;
  margin-top: 28px;
  font-size: 19px;
  font-weight: 500;
}

.access {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
  margin-top: 40px;
  max-width: 560px;
  align-items: start;
}

.access-field {
  display: grid;
  gap: 6px;
}

.access input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  background: transparent;
  border: 1.5px solid var(--bg);
  color: var(--bg);
}

.access input::placeholder {
  color: #050505aa;
}

.access input:focus-visible {
  outline: 2px solid var(--bg);
  outline-offset: 2px;
}

.access :is(input:user-invalid, input.user-invalid-fallback) {
  border-color: var(--error-dark);
  background: #05050512;
}

.access-error {
  display: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--error-dark);
}

.access :is(input:user-invalid, input.user-invalid-fallback) + .access-error {
  display: block;
}

.finale .note {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 400;
  color: #050505bb;
}

.finale .done {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  max-width: 560px;
}

.finale .done[data-tone='err'] {
  color: var(--error-dark);
}

/* ---- Footer ---- */
footer {
  padding-block: 44px 56px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

footer nav a {
  text-decoration: none;
}

footer nav a:hover {
  color: var(--ink);
}

.footer-legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--stone);
}

.footer-legal a {
  text-decoration: none;
  color: var(--muted);
}

.footer-legal a:hover {
  color: var(--ink);
}

/* ---- Legal / Document pages (/privacy, 404) ---- */
.doc-header {
  padding-block: clamp(56px, 8vw, 108px) clamp(36px, 5vw, 60px);
}

.doc-header h1 {
  font-size: clamp(52px, 7vw, 104px);
  margin-top: 18px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 24px;
  color: var(--muted);
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 74ch);
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(40px, 6vw, 72px) clamp(72px, 10vw, 120px);
  border-top: 1px solid var(--line);
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: 32px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.doc-toc ol {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.doc-toc a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
  display: block;
}

.doc-toc a:hover {
  color: var(--ink);
}

.doc-toc a.toc-highlight {
  color: var(--accent);
}

.prose {
  display: grid;
  gap: 44px;
}

.prose section {
  display: grid;
  gap: 14px;
  scroll-margin-top: 36px;
}

.prose h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.prose h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 8px;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.prose strong {
  color: var(--ink);
  font-weight: 500;
}

.prose ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.prose a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--accent);
}

.callout-ai {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  padding: clamp(22px, 3vw, 34px);
}

.callout-ai .kicker {
  color: var(--accent);
  margin-bottom: 12px;
}

.doc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}

.doc-table th,
.doc-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface);
}

.doc-table td {
  color: var(--muted);
}

.doc-table td strong {
  color: var(--ink);
}

.doc-table tr:last-child td {
  border-bottom: 0;
}

.error-page {
  min-height: calc(100svh - 220px);
  display: grid;
  align-content: center;
  gap: 24px;
  padding-block: 72px;
}

.error-page h1 {
  font-size: clamp(64px, 12vw, 160px);
}

.error-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

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

@media (max-width: 1000px) {
  .moments {
    grid-template-columns: 1fr 1fr;
  }
  .demo,
  .method,
  .story,
  .faq,
  .goal-panel {
    grid-template-columns: 1fr;
  }
  .privacy {
    grid-template-columns: 1fr;
  }
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .doc-toc {
    position: static;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding-left: 0;
    padding-bottom: 24px;
  }
}

@media (max-width: 800px) {
  .nav-links a:not(.btn):not(.nav-signin) {
    display: none;
  }
  .roll-hero {
    height: auto;
    max-height: none;
  }
  .roll-copy {
    padding-top: min(58vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }
  .roll-caption {
    text-align: left;
  }
  .roll-ticks {
    justify-content: flex-start;
  }
  .roll-hero::after {
    background: linear-gradient(0deg, #050505 0%, #050505cc 38%, #05050500 62%);
  }
  .feed-vs {
    grid-template-columns: 1fr;
  }
  .feed-vs > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step,
  .step + .step {
    padding: 28px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .moments {
    grid-template-columns: 1fr;
  }
  .moment {
    min-height: 0;
  }
  .reads {
    grid-template-columns: 1fr;
  }
  .facts ul {
    justify-content: flex-start;
  }
  .phone-chat {
    min-height: 0;
  }
  .access {
    grid-template-columns: 1fr;
  }
}
