/* Vetstead launch page. Tokens from docs/site/BRIEF.md. */

:root {
  color-scheme: light dark;
  --bg: #f6f0e6; /* oat */
  --bg-deep: #ece3d4; /* alternate section band */
  --surface: #fffdf8; /* cards, paper */
  --ink: #2a2622; /* body text */
  --ink-muted: #625a50; /* secondary text, AA on --bg and --surface */
  --line: #ddd1bf; /* hairlines */
  --line-strong: #c4b39a;
  --sage: #3f6b4f; /* brand, primary buttons, links */
  --sage-deep: #24402f; /* hero band, closing band */
  --sage-soft: #dbe7d9; /* "Done by now" chips, highlights */
  /* The brief's #b5562f reaches only 4.3:1 as small text on --bg, so the
     lightness drops a step (same hue) to pass AA on --bg and --bg-deep. */
  --clay: #a24a26; /* accent: ticks, "Due now", small marks */
  --clay-soft: #f5dac8;
  --brick: #8e2f22; /* emergency only */
  --on-sage: #ffffff;
  --on-deep: #f3ece0; /* text on --sage-deep */
  --focus: #c26a1d;

  /* Pairs that must flip in dark mode to keep AA contrast. */
  --on-clay: #ffffff;
  --on-brick: #ffffff;
  --inverse-bg: var(--sage-soft);
  --inverse-ink: var(--sage-deep);
  --code-string: var(--sage-soft);
  --eyebrow-on-deep: var(--clay-soft);
  --open-dot: #3f9a5a;

  --font-display: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  --font-text: Figtree, 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);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-warm: 0 1px 2px rgb(60 45 25 / 0.06), 0 10px 30px -14px rgb(60 45 25 / 0.22);
  --shadow-warm-deep: 0 2px 4px rgb(60 45 25 / 0.08), 0 22px 44px -16px rgb(60 45 25 / 0.32);
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1916;
    --bg-deep: #23201c;
    --surface: #2a2622;
    --ink: #f1ebe1;
    --ink-muted: #bcb2a4;
    --line: #3b362f;
    --line-strong: #5a5147;
    --sage: #9cc7a6;
    --sage-deep: #142219;
    --sage-soft: #2a3b2f;
    --clay: #eb9a74;
    --clay-soft: #47302a;
    --brick: #e0806e;
    --on-sage: #13221a;
    --on-deep: #e9e2d6;
    --focus: #f0a556;

    --on-clay: #1b1916;
    --on-brick: #1b1916;
    --inverse-bg: var(--sage);
    --inverse-ink: var(--on-sage);
    --code-string: var(--sage);
    --eyebrow-on-deep: var(--clay);
    --open-dot: #7fc48f;
    --shadow-warm: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px -14px rgb(0 0 0 / 0.6);
    --shadow-warm-deep: 0 2px 4px rgb(0 0 0 / 0.35), 0 22px 44px -16px rgb(0 0 0 / 0.7);
  }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--sage);
}

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

.band--sage :focus-visible {
  outline-color: var(--clay-soft);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--sage);
  color: var(--on-sage);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.band {
  padding-block: clamp(4.5rem, 10vw, 8rem);
  background: var(--bg);
}

.band--deep {
  background: var(--bg-deep);
}

.band--sage {
  background: var(--sage-deep);
  color: var(--on-deep);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--clay);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.h2 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 1rem / 1.2 var(--font-text);
  text-align: center;
  text-decoration: none;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms var(--ease-out);
}

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

.btn--primary {
  background: var(--sage);
  color: var(--on-sage);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--sage) 88%, var(--ink));
}

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

.btn--secondary:hover {
  background: var(--surface);
}

.btn--small {
  min-height: 44px;
  padding: 0 1.1rem;
  font-size: 0.9375rem;
}

.btn--large {
  min-height: 56px;
  padding: 0 1.9rem;
  font-size: 1.125rem;
}

.btn--inverse {
  background: var(--inverse-bg);
  color: var(--inverse-ink);
}

.btn--inverse:hover {
  background: color-mix(in srgb, var(--inverse-bg) 88%, #ffffff);
}

/* ---------- Logo lockup ---------- */

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

.lockup__mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.lockup__word {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.lockup--small .lockup__mark {
  width: 22px;
  height: 22px;
}

.band--sage .lockup {
  --mark-house: var(--inverse-bg);
  --mark-paw: var(--sage-deep);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav__links {
  display: flex;
  gap: 0.25rem;
  margin-right: 0.5rem;
}

.site-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav__links a:hover {
  color: var(--sage);
}

@media (max-width: 719px) {
  .site-nav__links {
    display: none;
  }
}

/* ---------- 1. Hero ---------- */

.band--hero {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(4.5rem, 10vw, 8rem);
}

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  column-gap: 2rem;
  min-height: min(92svh, 860px);
}

.hero__text {
  grid-column: 1 / span 6;
}

.hero__visual {
  grid-column: 7 / span 6;
}

.hero__title {
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.25rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.hero__sub {
  max-width: 34ch;
  margin-top: 1.5rem;
  color: var(--ink-muted);
  font-size: 1.25rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__fine {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.hero__visual {
  position: relative;
  margin: 0;
  padding: 2.5rem 1rem;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.paper-wrap,
.float-chip {
  transition: translate 300ms var(--ease-out);
}

.paper-wrap {
  width: min(400px, 100%);
}

.paper {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 6px;
  background: var(--surface);
  box-shadow:
    0 1px 2px rgb(60 45 25 / 0.08),
    0 18px 40px -12px rgb(60 45 25 / 0.22);
  transform: rotate(-2.5deg);
  font-size: 0.875rem;
  line-height: 1.45;
}

.paper__tape {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 72px;
  height: 22px;
  margin-left: -36px;
  background: var(--clay-soft);
  opacity: 0.85;
  transform: rotate(4deg);
}

.paper__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.paper__clinic {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
}

.paper__phone {
  color: var(--ink-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.paper__kind {
  margin-top: 0.5rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paper__group {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.paper__list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding-block: 0.25rem;
}

.box {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  position: relative;
}

.tick {
  position: absolute;
  inset: -3px -1px -1px -3px;
  width: 20px;
  height: 20px;
  overflow: visible;
}

.tick path,
.file-pills__check path {
  fill: none;
  stroke: var(--clay);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.highlight {
  position: relative;
}

.highlight__swipe {
  position: absolute;
  inset: 0.05em -0.2em;
  border-radius: 3px;
  background: var(--clay-soft);
  transform-origin: left center;
}

.highlight__text {
  position: relative;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-warm-deep);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: nowrap;
}

.float-chip--open {
  top: 0.75rem;
  right: 0;
}

.float-chip--due {
  bottom: 0.75rem;
  left: 0;
}

.dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--open-dot);
  flex: none;
}

.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--open-dot);
  opacity: 0;
}

.tag-due {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--clay);
  color: var(--on-clay);
  font-size: 0.8125rem;
}

@media (max-width: 899px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.5rem;
    min-height: 0;
  }

  .hero__text,
  .hero__visual {
    grid-column: 1;
  }

  .hero__visual {
    padding: 2.75rem 0;
  }

  .paper-wrap {
    width: 88%;
  }

  /* Keep the tape clear of the "Open now" chip on narrow screens. */
  .paper__tape {
    left: 30%;
  }

  .float-chip--open {
    top: 0.25rem;
    right: -0.25rem;
  }
}

@media (max-width: 420px) {
  .paper {
    padding: 1.5rem 1.1rem 1.25rem;
  }

  .paper__head {
    flex-direction: column;
    gap: 0.1rem;
  }

  .float-chip {
    font-size: 0.8125rem;
    padding: 0.45rem 0.75rem;
  }
}

/* ---------- 2. Questions ---------- */

.questions {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.questions__row {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.questions__q {
  position: relative;
  justify-self: start;
  padding-bottom: 0.35rem;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem);
  line-height: 1.2;
  text-wrap: balance;
}

.questions__q q {
  quotes: "\201C" "\201D";
}

.questions__q::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--clay);
  transform-origin: left center;
}

.answer-chip {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.3;
  pointer-events: none;
}

.questions__close {
  max-width: 52ch;
  margin-top: 2rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
}

@media (max-width: 759px) {
  .questions__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .answer-chip {
    justify-self: start;
  }
}

/* ---------- 3. How it works ---------- */

.steps {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.steps__line {
  position: absolute;
  top: 1.75rem;
  left: 3.5rem;
  width: calc(100% - 3.5rem - (100% - 5rem) / 3 - 0.5rem);
  height: 2px;
  overflow: visible;
}

.steps__line line:not(.steps__draw) {
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
  vector-effect: non-scaling-stroke;
}

.steps__draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.step__num {
  display: inline-block;
  align-self: flex-start;
  padding-right: 0.75rem;
  background: var(--bg);
  color: var(--clay);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-weight: 500;
  font-size: 3.5rem;
  line-height: 1;
}

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

.step > :last-child {
  margin-top: 0.75rem;
}

.code-card {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--sage-deep);
  color: var(--on-deep);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.code-card__bar {
  padding: 0.5rem 16px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  color: color-mix(in srgb, var(--on-deep) 70%, transparent);
  font-size: 0.8125rem;
}

.code-card pre {
  margin: 0;
  padding: 16px;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .code-card pre {
    padding: 14px 12px;
    letter-spacing: -0.02em;
  }
}

.code-card .s {
  color: var(--code-string);
}

.code-card .k {
  color: var(--on-deep);
}

.code-card .p {
  opacity: 0.6;
}

.error-panel {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.error-panel__title {
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-weight: 600;
  font-size: 1rem;
}

.error-panel li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  padding-block: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.brick-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brick);
  transform: translateY(-1px);
}

.file-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.file-pill {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.file-pill--ok {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-color: var(--sage);
  color: var(--sage);
}

.file-pills__check {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
}

.file-pills__check path {
  stroke: var(--sage);
  stroke-width: 1.5;
}

@media (max-width: 899px) {
  .steps__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps__line {
    display: none;
  }
}

/* ---------- 4. What's inside ---------- */

.inside__intro {
  max-width: 56ch;
  margin-top: 1.25rem;
  color: var(--ink-muted);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-warm);
  transition:
    transform 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}

.card > p {
  color: var(--ink-muted);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-warm-deep);
  }
}

.card--prep {
  grid-column: span 7;
  grid-row: span 2;
}

.card--vaccines {
  grid-column: span 5;
  grid-row: span 2;
}

.card--third {
  grid-column: span 4;
}

.card--half {
  grid-column: span 6;
}

.mini {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
  pointer-events: none;
  user-select: none;
}

/* Visit prep mini */
.mini-prep {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.segmented {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 20rem;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

.segmented__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: var(--sage);
  transform: translateX(200%);
}

.segmented__opt {
  position: relative;
  padding: 0.45rem 0;
  text-align: center;
  font-weight: 600;
  color: var(--ink-muted);
}

.segmented__opt--rabbit {
  color: var(--on-sage);
}

.fake-select {
  align-self: flex-start;
  max-width: 100%;
  padding: 0.5rem 2.25rem 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%) right 1.1rem center / 6px 6px no-repeat,
    var(--surface);
  font-weight: 500;
}

.swap {
  display: grid;
}

.swap__set {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.swap__set--dog {
  opacity: 0;
}

.mini-row {
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: var(--bg);
}

.mini-row--key {
  border-left: 3px solid var(--clay);
  font-weight: 500;
}

/* Vaccine mini */
.mini-vax__summary {
  margin-bottom: 1rem;
  font-weight: 600;
}

.timeline__item {
  --node-y: 0.3rem;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.5rem;
  padding: 0 0 1rem 1.75rem;
}

.timeline__item:not(:last-child)::before,
.timeline__item:first-child::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(var(--node-y) + 6px);
  height: 100%;
  width: 2px;
  background: var(--line-strong);
}

.timeline__item:first-child::after {
  background: var(--sage);
  transform-origin: top center;
}

.timeline__node {
  position: absolute;
  left: 0;
  top: var(--node-y);
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--surface);
}

.timeline__item:first-child .timeline__node {
  border-color: var(--sage);
  background: var(--sage);
}

.timeline__item--due .timeline__node {
  border-color: var(--clay);
  background: var(--clay);
  box-shadow: 0 0 0 6px var(--clay-soft);
}

.timeline__item--due .timeline__node::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--clay);
  opacity: 0;
}

.timeline__age {
  flex-basis: 100%;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.timeline__what {
  font-weight: 500;
}

.chip {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.chip--done {
  background: var(--sage-soft);
  color: var(--sage);
}

.chip--due {
  background: var(--clay);
  color: var(--on-clay);
}

.chip--soon {
  border: 1px solid var(--line-strong);
  color: var(--ink-muted);
}

.chip--life {
  background: var(--bg-deep);
  color: var(--ink-muted);
  font-weight: 500;
}

/* Hours mini */
.badge-open {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage);
  font-weight: 600;
}

.hours,
.prices {
  margin: 0;
}

.hours div,
.prices div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.hours dt,
.prices dt {
  font-weight: 500;
}

.hours dd,
.prices dd {
  margin: 0;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.hours__today {
  background: var(--sage-soft);
}

.hours__today dd {
  color: var(--ink);
}

.prices div {
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.prices dt {
  min-width: 0;
}

.prices dd {
  flex: none;
  color: var(--ink);
  font-weight: 600;
}

.prices__note {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.emergency-bar {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--brick);
  color: var(--on-brick);
  font-weight: 600;
}

/* Emergency mini: the bar at the top of a mock clinic page. */
.mini-page {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.mini-page .emergency-bar {
  border-radius: 0;
}

.mini-page__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.mini-page__mark {
  flex: none;
  width: 18px;
  height: 18px;
}

.mini-page__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
}

.mini-page__nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.mini-page__nav span {
  width: 36px;
  height: 6px;
  border-radius: 999px;
  background: var(--line-strong);
}

.mini-page__hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.mini-page__line {
  width: 70%;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.mini-page__line--short {
  width: 45%;
  height: 8px;
}

.mini-page__pill {
  width: 64px;
  height: 22px;
  border-radius: 999px;
  background: var(--sage-soft);
}

/* Team mini */
.mini-team {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.monos {
  display: flex;
}

.mono {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-weight: 600;
  font-size: 0.9375rem;
}

.mono:first-child {
  margin-left: 0;
}

.mono--1,
.mono--4 {
  background: var(--sage-soft);
}

.mono--2 {
  background: var(--clay-soft);
}

.mono--3 {
  background: var(--bg-deep);
}

.mini-team__name {
  font-weight: 600;
}

/* Accessibility checks */
.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.25rem;
  margin-top: 0.25rem;
}

.checks li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 1rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.35em;
  width: 0.75rem;
  height: 0.4rem;
  border-left: 2.5px solid var(--clay);
  border-bottom: 2.5px solid var(--clay);
  transform: rotate(-45deg);
}

@media (max-width: 1023px) {
  .card--third {
    grid-column: span 6;
  }

  .card--third:last-of-type {
    grid-column: span 12;
  }
}

@media (max-width: 759px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento .card {
    grid-column: 1;
    grid-row: auto;
    padding: 22px;
  }

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

/* ---------- 5. Demo ---------- */

.band--sage .eyebrow {
  color: var(--eyebrow-on-deep);
}

.band--sage .h2 {
  color: var(--on-deep);
}

.demo__sub {
  max-width: 58ch;
  margin-top: 1.25rem;
  color: color-mix(in srgb, var(--on-deep) 80%, transparent);
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  color: var(--on-deep);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
}

.tab:hover {
  border-color: rgb(255 255 255 / 0.45);
}

.tab[aria-current="page"] {
  border-color: var(--inverse-bg);
  background: var(--inverse-bg);
  color: var(--inverse-ink);
}

.frame {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  border-radius: 16px;
  overflow: hidden;
  background: #2f2a25;
  box-shadow: 0 40px 80px -20px rgb(0 0 0 / 0.45);
}

.frame__bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
}

.frame__dots {
  display: flex;
  gap: 8px;
}

.frame__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0806e;
}

.frame__dots i:nth-child(2) {
  background: #e8b86b;
}

.frame__dots i:nth-child(3) {
  background: #9cc7a6;
}

.frame__url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 1rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: #d9d0c3;
  font-size: 0.8125rem;
}

.frame iframe {
  display: block;
  width: 100%;
  height: 680px;
  border: 0;
  background: #fffdf8;
}

.demo__after {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  text-align: center;
}

.demo__note {
  font-size: 0.875rem;
  opacity: 0.7;
}

@media (max-width: 899px) {
  .tabs {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 8px 4px 4px;
    margin-inline: -4px;
    mask-image: linear-gradient(to right, #000 calc(100% - 8px), transparent);
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .frame {
    max-width: 400px;
    aspect-ratio: 9 / 17;
    max-height: 78svh;
    border: 10px solid #2f2a25;
    border-radius: 36px;
  }

  .frame__bar {
    display: none;
  }

  .frame iframe {
    height: 100%;
    border-radius: 26px;
  }
}

/* ---------- 6. Closing ---------- */

.closing {
  max-width: 40rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing__mark {
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
}

.closing__title {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.75rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.closing__line {
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
}

/* ---------- 7. Footer ---------- */

.site-footer {
  padding-block: 3rem 2rem;
  background: var(--bg-deep);
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}

.site-footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
}

.site-footer .lockup__word {
  font-size: 1.125rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.6rem;
  color: var(--ink);
  font-weight: 500;
}

.site-footer__fine {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 80ch;
}

/* ---------- Motion (only with no reduced-motion preference) ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Reveal on scroll: hidden only once main.js has run. */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 520ms var(--ease-out),
      transform 520ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .js .card[data-reveal].is-in {
    transition:
      opacity 520ms var(--ease-out) var(--reveal-delay, 0ms),
      transform 200ms var(--ease-out),
      box-shadow 200ms var(--ease-out);
  }

  /* Hero, on load, once. */
  .paper {
    animation: paper-settle 700ms var(--ease-out) both;
  }

  .tick path {
    animation: draw 260ms ease-out both;
    animation-delay: calc(700ms + var(--n) * 180ms);
  }

  .highlight__swipe {
    animation: swipe 420ms var(--ease-out) 1500ms both;
  }

  .float-chip {
    animation: chip-in 400ms var(--ease-out) both;
    animation-delay: 1900ms;
  }

  .float-chip--due {
    animation-delay: 2000ms;
  }

  .float-chip .dot::after {
    animation: pulse 2.4s ease-out 2400ms infinite;
  }

  /* Questions: the note-taking underline. */
  .js .questions__q::after {
    transform: scaleX(0);
    transition: transform 600ms var(--ease-out);
    transition-delay: calc(var(--reveal-delay, 0ms) + 200ms);
  }

  .js .questions__row.is-in .questions__q::after {
    transform: scaleX(1);
  }

  /* How it works: connector and the publish tick draw in. */
  .js .steps__draw {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 900ms var(--ease-out) 200ms;
  }

  .js .steps.is-in .steps__draw {
    stroke-dashoffset: 0;
  }

  .js .file-pills__check path {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 400ms ease-out;
    transition-delay: calc(var(--reveal-delay, 0ms) + 700ms);
  }

  .js .step.is-in .file-pills__check path {
    stroke-dashoffset: 0;
  }

  /* Visit prep card: Dog slides to Rabbit, then the rows crossfade. */
  .js .card--prep .segmented__thumb {
    transform: translateX(0);
    transition: transform 300ms var(--ease-out) 500ms;
  }

  .js .card--prep .segmented__opt--dog {
    color: var(--on-sage);
  }

  .js .card--prep .segmented__opt--rabbit {
    color: var(--ink-muted);
  }

  .js .card--prep .segmented__opt {
    transition: color 150ms ease 650ms;
  }

  .js .card--prep .swap__set--dog {
    opacity: 1;
  }

  .js .card--prep .swap__set--rabbit {
    opacity: 0;
  }

  .js .card--prep .swap__set {
    transition: opacity 150ms ease 800ms;
  }

  .js .card--prep.is-in .segmented__thumb {
    transform: translateX(200%);
  }

  .js .card--prep.is-in .segmented__opt--dog {
    color: var(--ink-muted);
  }

  .js .card--prep.is-in .segmented__opt--rabbit {
    color: var(--on-sage);
  }

  .js .card--prep.is-in .swap__set--dog {
    opacity: 0;
  }

  .js .card--prep.is-in .swap__set--rabbit {
    opacity: 1;
  }

  /* Vaccine card: the rail fills to "Due now", then the halo pulses once. */
  .js .timeline__item:first-child::after {
    transform: scaleY(0);
    transition: transform 600ms var(--ease-out) 300ms;
  }

  .js .card--vaccines.is-in .timeline__item:first-child::after {
    transform: scaleY(1);
  }

  .js .card--vaccines.is-in .timeline__item--due .timeline__node::after {
    animation: halo 900ms ease-out 900ms 1 both;
  }

  /* Demo frame rises and settles. */
  .js .frame[data-reveal] {
    transform: translateY(24px) scale(0.97);
    transition:
      opacity 700ms var(--ease-out),
      transform 700ms var(--ease-out);
  }

  .js .frame[data-reveal].is-in {
    transform: none;
  }

  /* Closing mark settles from a tilt. */
  .js .closing .closing__mark {
    transform: rotate(-8deg);
    transition: transform 600ms var(--ease-spring) 200ms;
  }

  .js .closing.is-in .closing__mark {
    transform: none;
  }
}

@keyframes paper-settle {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: rotate(-2.5deg);
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes swipe {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(3);
  }
}

@keyframes halo {
  0% {
    opacity: 0.7;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}
