/* Dueback launch site. Tokens from docs/site/BRIEF.md, shared with the app. */

:root {
  color-scheme: light dark;

  --bg: #f5efe6;
  --bg-glow: #f3dccb;
  --surface: #fffcf7;
  --surface-raised: #ffffff;
  --surface-sunken: #efe7db;
  --border: #e8dfd2;
  --border-strong: #cdbfad;
  --text: #2a211c;
  --text-muted: #6b5e53;
  --text-faint: #998a7c;

  --accent: #b5562b;
  --accent-hover: #9c4823;
  --accent-soft: #f8e6da;
  --accent-text: #7f3a1b;
  --accent-glow: rgb(181 86 43 / 0.28);
  --on-accent: #ffffff;

  --danger: #b3261e;
  --danger-soft: #fbe4e1;
  --danger-text: #8a1c15;

  --warn: #a15c00;
  --warn-soft: #fbead0;
  --warn-text: #7a4300;

  --ok: #2f6b3a;
  --ok-soft: #dff0e0;
  --ok-text: #245730;

  --paper: #ffffff;
  --ink: #000000;
  /* Ruled lines on paper: the card is white in both schemes, so this never flips. */
  --rule: #cdbfad;

  --shadow-sm: 0 1px 2px rgb(66 42 26 / 0.06), 0 1px 1px rgb(66 42 26 / 0.04);
  --shadow-md: 0 2px 4px rgb(66 42 26 / 0.05), 0 12px 28px -10px rgb(66 42 26 / 0.16);
  --shadow-lg: 0 4px 8px rgb(66 42 26 / 0.06), 0 28px 56px -18px rgb(66 42 26 / 0.24);
  --shadow-primary: 0 8px 18px -8px rgb(181 86 43 / 0.55);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-text: "Figtree", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --stage-scale: 0.66;
  --section-gap: 32px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130f;
    --bg-glow: #3a2619;
    --surface: #201b17;
    --surface-raised: #2a2420;
    --surface-sunken: #120e0b;
    --border: #352e28;
    --border-strong: #4f443c;
    --text: #f3ebe2;
    --text-muted: #b5a899;
    --text-faint: #7f7368;

    --accent: #e6895e;
    --accent-hover: #ee9d77;
    --accent-soft: #3a2619;
    --accent-text: #f3b899;
    --accent-glow: rgb(230 137 94 / 0.32);
    --on-accent: #17130f;

    --danger: #f0776d;
    --danger-soft: #41221f;
    --danger-text: #f7a8a1;

    --warn: #e0a24a;
    --warn-soft: #3c2d16;
    --warn-text: #f1c27a;

    --ok: #7cc48a;
    --ok-soft: #1f3324;
    --ok-text: #a6dcb0;

    --paper: #ffffff;
    --ink: #000000;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.35), 0 1px 1px rgb(0 0 0 / 0.25);
    --shadow-md: 0 2px 4px rgb(0 0 0 / 0.3), 0 12px 28px -10px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 4px 8px rgb(0 0 0 / 0.35), 0 28px 56px -18px rgb(0 0 0 / 0.6);
    --shadow-primary: 0 8px 18px -8px rgb(230 137 94 / 0.5);
  }
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: clip;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

svg {
  display: inline-block;
  vertical-align: middle;
  flex: none;
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  min-height: 44px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

.container {
  width: min(100% - 48px, 72rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-gap);
}

/* ---------- Type ---------- */

.headline,
.section-title,
.wordmark,
.pet-name,
.due-date,
.numeral,
.bar-value,
.print-name,
.index-card p,
.price {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-variation-settings:
    "SOFT" 50,
    "WONK" 1;
}

.headline {
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-title {
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 20px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.lead {
  font-size: 1.0625em;
  color: var(--text-muted);
}

.narrow {
  max-width: 38rem;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.label-small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
}

.btn-secondary {
  background: var(--surface-raised);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--surface-sunken);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.97);
}

.btn-lg {
  min-height: 52px;
  padding: 0 30px;
  font-size: 16px;
}

/* ---------- Nav ---------- */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.wordmark {
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.nav-links {
  display: none;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out);
}

.nav-link:hover {
  background: var(--surface-sunken);
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: 40px 48px;
  --px: 0;
  --py: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-lead {
  max-width: 34rem;
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.trust {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-muted);
}

.hero-stage {
  position: relative;
  width: calc(520px * var(--stage-scale));
  height: calc(600px * var(--stage-scale));
  max-width: 100%;
  margin-inline: auto;
  overflow: clip;
}

.hero-mock {
  position: relative;
  width: 520px;
  height: 600px;
  transform: scale(var(--stage-scale));
  transform-origin: top left;
}

.plane {
  position: absolute;
  inset: 0;
  transition: transform 200ms ease-out;
}

.plane-back {
  transform: translate3d(calc(var(--px) * -6px), calc(var(--py) * -6px), 0);
  animation: fade 500ms var(--ease-out) 260ms backwards;
}

.plane-mid {
  transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -14px), 0);
  animation: rise 500ms var(--ease-out) 120ms backwards;
}

.plane-front {
  transform: translate3d(calc(var(--px) * -22px), calc(var(--py) * -22px), 0);
  animation: rise 500ms var(--ease-out) backwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.glow {
  position: absolute;
  inset: 40px 20px 60px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--bg-glow), transparent 72%);
}

.paws {
  position: absolute;
  inset: 0;
}

.due-row {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 300px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.due-row-1 {
  top: 16px;
  right: 10px;
}

.due-row-2 {
  top: 98px;
  right: 10px;
}

.due-row-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.3;
}

.due-row-name {
  font-weight: 600;
}

.due-row-meta {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent));
  color: var(--accent-text);
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings:
    "SOFT" 50,
    "WONK" 1;
}

.monogram-sm {
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.monogram-lg {
  width: 64px;
  height: 64px;
  font-size: 32px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.badge-danger {
  background: var(--danger-soft);
  color: var(--danger-text);
}

.badge-warn {
  background: var(--warn-soft);
  color: var(--warn-text);
}

.pet-card {
  position: absolute;
  top: 150px;
  left: 8px;
  width: 360px;
  padding: 24px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pet-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pet-name {
  display: block;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pet-meta {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 15px;
}

.chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.chip {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
}

.chip-accent,
.chip-on {
  color: var(--accent-text);
  border-color: var(--accent-soft);
}

.chip-accent {
  background: var(--accent-soft);
}

.chip-on::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent-soft);
}

.chip-note {
  font-size: 13px;
  color: var(--text-muted);
}

.chip-phone {
  color: var(--accent-text);
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

.allergy-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger-text);
  font-weight: 600;
  font-size: 14px;
}

.due-panel {
  padding: 10px 14px;
  border-left: 4px solid var(--warn);
  border-radius: 6px 10px 10px 6px;
  background: var(--surface-sunken);
}

.due-date {
  display: block;
  font-size: 24px;
  line-height: 1.15;
  margin-top: 2px;
}

.due-note {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--warn-text);
}

.owner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
}

.owner .label-small {
  grid-column: 1 / -1;
}

.owner-name {
  font-weight: 500;
}

.pet-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.mock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.mock-btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-primary);
}

.mock-btn-secondary {
  background: var(--surface-raised);
  color: var(--text);
  border-color: var(--border-strong);
}

.mock-btn-danger {
  color: var(--danger-text);
  border-color: var(--danger);
}

.mock-btn-sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

/* ---------- Why: index cards ---------- */

.why {
  text-align: center;
}

.why .narrow {
  margin-inline: auto;
}

.index-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 44px;
}

.index-card {
  width: 260px;
  max-width: 100%;
  height: 180px;
  padding: 20px 18px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  text-align: left;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 23px,
    var(--rule) 23px,
    var(--rule) 24px
  );
  /* Rules at 40, 64, 88px: one pixel under each 24px baseline of the 22px Fraunces line. */
  background-position: 0 17px;
  transform: rotate(var(--tilt));
}

.index-card + .index-card {
  margin-top: -60px;
}

.index-card p {
  font-size: 22px;
  line-height: 24px;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.numeral {
  font-size: 48px;
  line-height: 1;
  color: var(--accent-text);
}

.step p {
  color: var(--text-muted);
}

.illus {
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-sunken);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.field-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
}

.field-price {
  width: 120px;
}

.price {
  font-size: 18px;
}

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

.calendar {
  position: relative;
  display: inline-flex;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.due-row-static {
  position: static;
  width: 100%;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.due-row-static .due-row-text {
  flex: 1 1 120px;
  gap: 4px;
  align-items: flex-start;
}

.due-row-name {
  white-space: nowrap;
}

/* ---------- Coats ---------- */

.coat-card {
  margin-top: 32px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.coat-rows {
  display: grid;
  gap: 14px;
}

.coat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px 20px;
  align-items: center;
}

.coat-label {
  font-weight: 600;
}

.bar {
  position: relative;
  display: block;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: 8px;
  background: var(--accent);
  transform-origin: left center;
}

.bar-value {
  position: absolute;
  top: 0;
  left: var(--w);
  display: flex;
  align-items: center;
  height: 100%;
  padding-right: 12px;
  transform: translateX(-100%);
  color: var(--on-accent);
  font-size: 18px;
  white-space: nowrap;
}

.coat-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.feature {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}

.feature:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  color: var(--accent-text);
  margin-bottom: 16px;
}

.feature h3 {
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-muted);
}

/* ---------- See it ---------- */

.browser {
  margin-top: 28px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.browser-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
}

.dots {
  position: absolute;
  left: 14px;
  top: 15px;
  display: flex;
  gap: 6px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.address {
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 12px;
}

.app-frame {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  background: var(--bg);
}

.caption {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 15px;
}

.see-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

/* ---------- The printout ---------- */

.print-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

/* The card is the 480px design at any width: every size is in container units of the stage,
   with the px values first as the fallback for browsers without cqw. */
.print-stage {
  position: relative;
  width: min(480px, 100%);
  margin-inline: auto;
  padding: 0;
  container-type: inline-size;
}

.print-backing {
  position: absolute;
  inset: -14px;
  background: var(--surface-sunken);
  border-radius: 10px;
  transform: rotate(-2deg);
}

.print-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  gap: 1.25cqw;
  aspect-ratio: 10 / 7;
  padding: 18px 20px;
  padding: 4.6cqw 5.4cqw;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-text);
  font-size: 14px;
  font-size: 3.125cqw;
  line-height: 1.35;
}

.print-name {
  font-weight: 700;
  font-size: 28px;
  font-size: 6.7cqw;
  line-height: 1.05;
}

.print-coat {
  font-size: 11px;
  font-size: 2.3cqw;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.print-rule {
  width: 100%;
  margin: 4px 0;
  border: 0;
  border-top: 1px solid var(--ink);
}

.print-allergy {
  padding: 5px 8px;
  padding: 1cqw 1.7cqw;
  border: 2px solid var(--ink);
  font-weight: 700;
}

.print-foot {
  margin-top: auto;
  font-size: 13px;
  font-size: 2.7cqw;
}

/* ---------- Yours ---------- */

.band {
  background: var(--surface-sunken);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.yours {
  max-width: 40rem;
  text-align: center;
}

.yours .lead {
  margin-bottom: 20px;
}

.file-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
}

/* ---------- Closing ---------- */

.closing {
  position: relative;
  padding-block: 96px;
  overflow: clip;
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(closest-side at 50% 55%, var(--bg-glow), transparent 75%);
  opacity: 0.6;
}

.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  max-width: 44rem;
}

.closing .lead {
  max-width: 30rem;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-text);
  font-weight: 600;
}

/* ---------- Reveals (hidden start states only when the script runs) ---------- */

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 600ms var(--ease-out),
    transform 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

.js .step.is-in {
  transition-delay: calc(var(--i, 0) * 100ms);
}

.js .reveal-card {
  transform: translate3d(0, 24px, 0) rotate(calc(var(--tilt) + 3deg));
}

.js .reveal-card.is-in {
  transform: rotate(var(--tilt));
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js .reveal-slide {
  transform: translate3d(20px, 0, 0);
}

.js .reveal-slide.is-in {
  transition-duration: 500ms;
}

.js .reveal-none,
.js .reveal-none.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0s,
    transform 0s;
}

.js .reveal-none .bar-fill {
  transform: scaleX(0);
}

.js .reveal-none .bar-value {
  opacity: 0;
}

.js .reveal-none.is-in .bar-fill {
  transform: scaleX(1);
  transition: transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

.js .reveal-none.is-in .bar-value {
  opacity: 1;
  transition: opacity 300ms var(--ease-out);
  transition-delay: calc(450ms + var(--i, 0) * 60ms);
}

.js .reveal .chip-on::before {
  opacity: 0;
}

.js .reveal.is-in .chip-on::before {
  opacity: 1;
  transition: opacity 200ms var(--ease-out);
  transition-delay: calc(600ms + var(--i, 0) * 200ms);
}

/* ---------- Breakpoints ---------- */

@media (min-width: 480px) {
  :root {
    --stage-scale: 0.8;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (min-width: 600px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coat-row {
    grid-template-columns: 140px minmax(0, 1fr);
  }
}

@media (min-width: 720px) {
  :root {
    --stage-scale: 1;
    --section-gap: 48px;
  }

  body {
    font-size: 17px;
  }

  .container {
    width: min(100% - 80px, 72rem);
  }

  .nav-links {
    display: flex;
  }

  .section-title {
    letter-spacing: -0.02em;
  }

  .hero {
    padding-block: 64px 48px;
  }

  .app-frame {
    height: 700px;
  }

  .closing {
    padding-block: 160px;
  }
}

@media (min-width: 800px) {
  .index-cards {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }

  .index-card + .index-card {
    margin-top: 0;
    margin-left: -30px;
  }
}

@media (min-width: 960px) {
  :root {
    --stage-scale: 0.68;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .print-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

@media (min-width: 1100px) {
  :root {
    --stage-scale: 0.78;
  }
}

@media (min-width: 1232px) {
  :root {
    --stage-scale: 0.88;
  }
}

/* ---------- Reduced motion: everything in its final state ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .plane {
    transform: none !important;
  }
}
