/* ============================================================
   Reddit Pilot website
   ============================================================ */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --ink: #111214;
  --ink-2: #5e6169;
  --ink-3: #9a9da6;
  --paper: #ffffff;
  --cloud: #f4f5f7;
  --line: #e7e8ec;
  --flare: #ff6b35;
  --flare-ink: #c2410c;
  --flare-wash: #fff1eb;
  --go: #0ca678;
  --stop: #e03131;
  --on-ink: #ffffff;
  --hero-bg: #111214;
  --hero-ink: #ffffff;

  --shadow-1: 0 1px 2px rgba(17, 18, 20, .05), 0 2px 8px rgba(17, 18, 20, .04);
  --shadow-2: 0 2px 4px rgba(17, 18, 20, .04), 0 24px 48px -16px rgba(17, 18, 20, .18);

  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2f3f5;
    --ink-2: #a3a6af;
    --ink-3: #6c6f78;
    --paper: #0d0e10;
    --cloud: #17181b;
    --line: #26272c;
    --flare-ink: #ff8a5c;
    --flare-wash: #2a1810;
    --on-ink: #0d0e10;
    --hero-bg: #1b1c20;
    --hero-ink: #f2f3f5;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font: 400 16px/1.55 var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--flare);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  z-index: 100;
}
.skip:focus { top: 12px; }

/* ---- Type ---- */

.display {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
}
.h2 {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 780;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1;
  letter-spacing: -.035em;
}
.h3 {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 720;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--ink-2); }

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 84%, var(--paper)); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn svg { flex: none; }

/* ---- Nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.025em;
}
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s;
}
.nav-links a:not(.btn):hover { color: var(--ink); }

@media (max-width: 820px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---- Hero ---- */

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 120px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero h1 { font-size: clamp(46px, 5.5vw, 78px); }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--ink-3); }
.hero .lede { margin-top: 28px; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(46px, 11vw, 84px); }
  .stage { margin-top: 24px; }
}

/* ---- Thread stage (signature) ---- */

.stage {
  position: relative;
  padding: clamp(16px, 2.4vw, 28px) clamp(16px, 2.4vw, 28px) 92px;
  border-radius: 32px;
  background: var(--cloud);
}
.thread {
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.thread-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 0;
  font-size: 13px;
  color: var(--ink-3);
}
.thread-sub { font-weight: 600; color: var(--ink); }
.thread-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--cloud);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 11px;
  color: var(--ink-2);
}
.thread-title {
  padding: 10px 20px 16px;
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.22;
  letter-spacing: -.015em;
  min-height: 3.2em;
}
.thread-comments {
  display: grid;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.comment { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; }
.comment-bar { justify-self: center; width: 2px; border-radius: 2px; background: var(--line); }
.comment-who { font-size: 12px; color: var(--ink-3); }
.comment-text { color: var(--ink-2); }

.compose {
  margin: 0 12px 12px;
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: var(--cloud);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.compose-who {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
}
.compose-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink-2);
}
.compose-state i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--flare);
}
.compose-text {
  min-height: 3em;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}
.compose-text .caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -3px;
  background: var(--flare);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.compose[data-phase="posted"] {
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--go);
}
.compose[data-phase="posted"] .compose-state { color: var(--go); }
.compose[data-phase="posted"] .compose-state i { background: var(--go); }
.compose[data-phase="posted"] .caret { display: none; }

/* Floating readout echoing the extension's flight card */
.readout {
  position: absolute;
  right: -18px;
  bottom: -26px;
  width: min(250px, 62%);
  padding: 16px 18px 14px;
  border-radius: 20px;
  background: var(--hero-bg);
  color: var(--hero-ink);
  box-shadow: var(--shadow-2);
}
.readout-label { font-size: 12px; opacity: .6; }
.readout-time {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.readout-time .u { font-size: 18px; opacity: .55; margin: 0 4px 0 1px; letter-spacing: 0; }
.readout-track {
  position: relative;
  height: 4px;
  margin-top: 12px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--hero-ink) 14%, transparent);
}
.readout-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  border-radius: inherit;
  background: var(--flare);
}
.readout-fill::after {
  content: '';
  position: absolute;
  right: -5px; top: 50%;
  width: 10px; height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--flare);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--flare) 30%, transparent);
}

@media (max-width: 560px) {
  .stage { padding-bottom: 16px; }
  .readout { position: relative; right: auto; bottom: auto; width: auto; margin-top: 12px; }
}

/* ---- Launch video ---- */

.film { padding-bottom: clamp(16px, 4vw, 40px); }
.film-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.film-head .muted { font-size: 14px; }
.film-frame {
  padding: clamp(8px, 1.4vw, 16px);
  border-radius: clamp(20px, 3vw, 36px);
  background: var(--cloud);
}
.film-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: clamp(14px, 2vw, 24px);
  background: #fff;
  box-shadow: var(--shadow-2);
}

/* ---- Sections ---- */

.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { max-width: 760px; }
.section-head .lede { margin-top: 20px; }
.kicker {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--flare-ink);
}

/* ---- Cycle (a real sequence, so it's numbered) ---- */

.cycle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 64px;
  list-style: none;
}
.cycle::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--ink) 0 0) 0 0 / var(--cycle-progress, 0%) 100% no-repeat, var(--line);
  transition: background-size 1.6s var(--ease);
}
.cycle.is-in { --cycle-progress: 100%; }
.cycle li { position: relative; }
.cycle-n {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
}
.cycle li:last-child .cycle-n { background: var(--ink); color: var(--on-ink); }
.cycle .h3 { margin-top: 22px; }
.cycle p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

@media (max-width: 900px) {
  .cycle { grid-template-columns: 1fr; gap: 28px; }
  .cycle::before {
    top: 20px; bottom: 20px; left: 19px; right: auto;
    width: 2px; height: auto;
    background: linear-gradient(var(--ink) 0 0) 0 0 / 100% var(--cycle-progress, 0%) no-repeat, var(--line);
  }
  .cycle li { display: grid; grid-template-columns: 40px 1fr; column-gap: 20px; }
  .cycle .h3 { margin-top: 8px; }
  .cycle p { grid-column: 2; }
}

/* ---- How to use ---- */

.guide { background: var(--cloud); }
.setup {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
  list-style: none;
}
.setup li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 22px;
  border-radius: 20px;
  background: var(--paper);
}
.setup-n {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--mono);
  font-size: 13px;
}
.setup strong, .rules strong { display: block; font-weight: 600; }
.setup span:not(.setup-n), .rules li span:not(.rule-icon) { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-2); }

.pace {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  border-radius: 24px;
  background: var(--hero-bg);
  color: var(--hero-ink);
}
.pace-item { display: grid; gap: 6px; padding: 26px 28px; }
.pace-item + .pace-item { border-left: 1px solid color-mix(in srgb, var(--hero-ink) 14%, transparent); }
.pace-label { font-size: 14px; opacity: .6; }
.pace-value {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.pace-value small {
  margin-left: 6px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: .55;
}

.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.rule-card { padding: 32px; border-radius: 24px; background: var(--paper); }
.rule-card ul { list-style: none; margin-top: 20px; display: grid; gap: 18px; }
.rule-card li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.rule-icon {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: #fff;
}
.rule-do .rule-icon { background: var(--go); }
.rule-dont .rule-icon { background: var(--stop); }

@media (max-width: 1000px) {
  .setup { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .setup, .rules { grid-template-columns: 1fr; }
  .pace { grid-template-columns: 1fr; }
  .pace-item + .pace-item { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--hero-ink) 14%, transparent); }
}

/* ---- Controls (panel showcase) ---- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.panel-stage {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 64px) 16px;
  border-radius: 32px;
  background: var(--cloud);
}
.panel-shot {
  width: 380px;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  outline: 1px solid var(--line);
}
.controls { margin-top: 40px; list-style: none; border-top: 1px solid var(--line); }
.controls li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.controls strong { font-weight: 600; }
.controls span { color: var(--ink-2); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .controls li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- Guardrails ---- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.card {
  padding: 28px;
  border-radius: 24px;
  background: var(--cloud);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-1);
}
.card .h3 { margin-top: 28px; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  color: var(--ink-2);
}
.tag s { text-decoration-color: var(--stop); text-decoration-thickness: 1.5px; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---- Pricing ---- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 880px;
  margin-top: 56px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan-pro { background: var(--hero-bg); color: var(--hero-ink); box-shadow: none; }
.plan-name { font-weight: 600; font-size: 15px; }
.plan-pro .plan-name { color: var(--flare); }
.plan-price {
  margin-top: 16px;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -.045em;
}
.plan-price small {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: .6;
  margin-left: 6px;
}
.plan-rate { margin-top: 12px; font-size: 18px; font-weight: 600; }
.plan ul { list-style: none; margin: 24px 0 32px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; opacity: .78; }
.plan li svg { flex: none; margin-top: 4px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan-pro .btn-primary { background: var(--hero-ink); color: var(--hero-bg); }
.plan-pro .btn-primary:hover { background: color-mix(in srgb, var(--hero-ink) 88%, var(--hero-bg)); }
.plan-foot { margin-top: 12px; font-size: 13px; text-align: center; opacity: .55; }

.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.plans-4 .plan, .plans-3 .plan { padding: 28px; }
.plans-4 .plan-price { font-size: 52px; }
.plan-name { display: flex; align-items: center; gap: 8px; min-height: 26px; }
.plan-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--flare-wash);
  color: var(--flare-ink);
  font-size: 12px;
  font-weight: 600;
}
.plan-pro .plan-chip { background: var(--flare); color: #fff; }
.plans-note { margin-top: 20px; font-size: 14px; color: var(--ink-3); }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

.notice {
  max-width: 760px;
  margin-top: 32px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--cloud);
  font-size: 15px;
}

@media (max-width: 1100px) {
  .plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .plans-3 { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 640px) {
  .plans, .plans-4 { grid-template-columns: 1fr; }
}

/* ---- FAQ ---- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(32px, 6vw, 96px);
}
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -2px; }
.faq-plus {
  position: relative;
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cloud);
}
.faq-plus::before, .faq-plus::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 1.5px;
  margin: -.75px 0 0 -5px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.faq-plus::after { transform: rotate(90deg); }
.faq details[open] .faq-plus::after { transform: rotate(0); }
.faq-body { padding: 0 48px 24px 0; color: var(--ink-2); }
.faq-body p + p { margin-top: 10px; }

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ---- Closing band ---- */

.band {
  margin: 0 var(--gutter);
  padding: clamp(56px, 8vw, 112px) var(--gutter);
  border-radius: 36px;
  background: var(--hero-bg);
  color: var(--hero-ink);
  text-align: center;
}
.band .h2 { font-size: clamp(36px, 6vw, 80px); max-width: 12em; margin: 0 auto; }
.band p { margin: 20px auto 0; max-width: 32em; opacity: .7; font-size: 18px; }
.band .btn { margin-top: 36px; background: var(--hero-ink); color: var(--hero-bg); }

/* ---- Footer ---- */

.footer { padding: 56px 0 48px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer a { text-decoration: none; color: var(--ink-2); font-size: 14px; }
.footer a:hover { color: var(--ink); }
.footer small { color: var(--ink-3); font-size: 13px; }

/* ---- Reveal ---- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---- Document pages (privacy) ---- */

.doc { padding: clamp(40px, 7vw, 88px) 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(44px, 7vw, 76px); }
.doc-meta { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.doc h2 {
  margin-top: 56px;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 750;
  font-size: 24px;
  letter-spacing: -.02em;
}
.doc h3 { margin-top: 28px; font-size: 17px; font-weight: 600; }
.doc p, .doc ul { margin-top: 14px; color: var(--ink-2); }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--flare); }
.doc-table {
  margin-top: 18px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow-x: auto;
}
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 14px 16px; text-align: left; vertical-align: top; }
.doc th { font-weight: 600; background: var(--cloud); }
.doc td { color: var(--ink-2); border-top: 1px solid var(--line); }
.doc td:first-child { color: var(--ink); font-weight: 500; }

/* ---- Status pages (checkout result, errors) ---- */

.status-page { min-height: 100vh; display: flex; flex-direction: column; }
.status-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px var(--gutter) 80px;
}
.status-card { max-width: 520px; text-align: center; }
.status-mark {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 28px;
  border-radius: 50%;
  color: #fff;
}
.status-mark[data-tone="good"] { background: var(--go); }
.status-mark[data-tone="neutral"] { background: var(--ink); color: var(--on-ink); }
.status-mark[data-tone="bad"] { background: var(--stop); }
.status-card h1 { font-size: clamp(40px, 6vw, 60px); }
.status-card p { margin-top: 18px; font-size: 18px; color: var(--ink-2); }
.status-card .btn { margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
