/* Hatcheck launch page. Tokens from docs/site/BRIEF.md. */
:root {
  color-scheme: light dark;

  --paper: #f7f3ea;
  --surface: #fffdf8;
  --surface-sunk: #efe9dc;
  --ink: #1f1d1a;
  --ink-display: #15130f;
  --ink-muted: #5a554c;
  --rule: #ddd5c4;
  --rule-strong: #b9ae97;
  --accent: #7a5c14;
  --accent-hover: #634a0f;
  --accent-soft: #f1e6c8;
  --on-accent: #ffffff;
  --ticket: #f2dfb4;
  --ticket-edge: #d9c08a;
  --focus: #1f5fbf;

  --held-text: #1f4e79;
  --held-bg: #e3eef8;
  --soon-text: #7a4a00;
  --soon-bg: #fdf0d5;
  --overdue-text: #9b1c1c;
  --overdue-bg: #fbe4e1;
  --returned-text: #1f5f3a;
  --returned-bg: #e2f2e7;

  --shadow-sm: 0 1px 2px rgb(60 45 20 / 0.08);
  --shadow-md:
    0 6px 18px -6px rgb(60 45 20 / 0.18), 0 1px 2px rgb(60 45 20 / 0.06);
  --shadow-lg:
    0 24px 48px -16px rgb(60 45 20 / 0.28), 0 2px 6px rgb(60 45 20 / 0.08);
  --shadow-inset: inset 0 1px 2px rgb(60 45 20 / 0.06);
  --grain: 0.035;

  --serif:
    "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia,
    serif;
  --sans:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius-md: 10px;
  --enter: cubic-bezier(0.16, 1, 0.3, 1);
  --state: cubic-bezier(0.2, 0, 0, 1);
  --pad: clamp(1.25rem, 4vw, 3rem);
  --rhythm: clamp(4.5rem, 10vw, 8rem);
  --notch: 7px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171512;
    --surface: #211e1a;
    --surface-sunk: #2b2722;
    --ink: #f1ece2;
    --ink-display: #fbf7ef;
    --ink-muted: #b8b0a2;
    --rule: #3a352e;
    --rule-strong: #5c5447;
    --accent: #d9b45a;
    --accent-hover: #e6c674;
    --accent-soft: #3a3020;
    --on-accent: #1f1a0e;
    --ticket: #3b3222;
    --ticket-edge: #5e4f33;
    --focus: #8ab4ff;

    --held-text: #a9cdf0;
    --held-bg: #1d2f42;
    --soon-text: #f5cf86;
    --soon-bg: #3b2c10;
    --overdue-text: #f6a9a0;
    --overdue-bg: #45201c;
    --returned-text: #9ed8b2;
    --returned-bg: #1b3526;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 6px 18px -6px rgb(0 0 0 / 0.55);
    --shadow-lg: 0 24px 48px -16px rgb(0 0 0 / 0.7);
    --shadow-inset: inset 0 1px 2px rgb(0 0 0 / 0.3);
    --grain: 0.05;
  }
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background:
    radial-gradient(
        56rem 40rem at 72% -6rem,
        var(--accent-soft),
        transparent 70%
      )
      no-repeat,
    var(--paper);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink-display);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.875rem, 1.4rem + 2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-hover);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
main:focus {
  outline: none;
}
.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section {
  padding: var(--rhythm) 0;
}
.lead {
  font-size: 1.25rem;
  color: var(--ink-muted);
}
.small {
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.micro {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.ref,
.mono {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.visually-hidden,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 0 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms var(--state),
    border-color 160ms var(--state),
    color 160ms var(--state);
}
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}
.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn--secondary:hover {
  color: var(--ink);
  border-color: var(--accent);
}
.btn--sm {
  min-height: 44px;
  padding: 0 1rem;
  font-size: 0.9375rem;
}
.btn--lg {
  min-height: 52px;
  padding: 0 1.75rem;
  font-size: 1.125rem;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
}
.text-link:hover {
  color: var(--accent);
}

/* Header */
#sentinel {
  position: absolute;
  top: 0;
  height: 1px;
  width: 1px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
  transition: border-color 200ms var(--state);
}
.site-header.at-top {
  border-bottom-color: transparent;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
}
.brand:hover {
  color: var(--ink);
}
.logo-mark {
  color: var(--accent);
  flex: none;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 639.98px) {
  .header-nav .text-link {
    display: none;
  }
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 var(--rhythm);
}
.hero-grid {
  display: grid;
  gap: 3rem;
}
.hero-copy {
  display: grid;
  gap: 1.5rem;
  align-content: center;
}
.hero-copy .lead {
  max-width: 34ch;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 5fr 6fr;
    gap: 4rem;
    align-items: start;
  }
  .hero-copy {
    padding-top: clamp(2rem, 6vh, 4rem);
  }
  .demo-list {
    min-height: 15rem;
  }
}

.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}
.demo {
  display: grid;
  gap: 1rem;
}
.caller {
  display: grid;
  gap: 0.375rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.caller-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.caller-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--ink-display);
}
.demo-search {
  display: grid;
  gap: 0.375rem;
}
.demo-search[hidden] {
  display: none;
}
.field-label {
  font-weight: 600;
}
.input {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-inset);
}
.input:focus-visible {
  border-color: var(--focus);
}
.hint {
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.count {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.demo-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.demo-empty[hidden] {
  display: none;
}
.demo-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 639.98px) {
  .card {
    padding: 1rem;
  }
  .demo:not(.has-query) .demo-list {
    max-height: 26rem;
    overflow: auto;
  }
}

/* Ticket component */
.ticket,
.k-row,
.strip,
.big-ticket {
  background: var(--ticket);
  border: 1px solid var(--ticket-edge);
  border-radius: 10px;
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51%
      100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right /
      51% 100% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51%
      100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right /
      51% 100% no-repeat;
}
.t-row {
  display: grid;
  grid-template-rows: 1fr;
}
.t-row.is-out {
  display: none;
}
.t-clip {
  min-height: 0;
  padding-bottom: 0.5rem;
  filter: drop-shadow(0 1px 1px rgb(60 45 20 / 0.1));
}
.ticket {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  min-height: 4.25rem;
}
.t-stub {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0.25rem 0.5rem 0.5rem;
  border-right: 1px dashed var(--ticket-edge);
}
.t-stub .ref {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}
.hole {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 1px 2px rgb(60 45 20 / 0.35);
}
.t-body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.75rem;
  align-items: center;
  align-content: center;
  padding: 0.5rem 1rem 0.5rem 0.875rem;
}
.t-desc {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}
.t-meta {
  grid-column: 1;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.4;
}
.t-body .badge {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.t-row.is-match .ticket {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.t-row.is-match .t-clip {
  filter: drop-shadow(0 6px 10px rgb(60 45 20 / 0.22));
}
@media (max-width: 639.98px) {
  .t-body {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.25rem;
  }
  .t-desc {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .t-body .badge {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

.badge {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.badge--held {
  color: var(--held-text);
  background: var(--held-bg);
}
.badge--soon {
  color: var(--soon-text);
  background: var(--soon-bg);
}
.badge--overdue {
  color: var(--overdue-text);
  background: var(--overdue-bg);
}

/* How it works */
.how h2 {
  max-width: 22ch;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.strip {
  --notch: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.panel {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 2rem clamp(1.5rem, 3vw, 2.5rem);
}
.panel + .panel {
  border-left: 2px dashed var(--ticket-edge);
}
.numeral {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
}
@media (max-width: 767.98px) {
  .strip {
    grid-template-columns: 1fr;
    -webkit-mask:
      radial-gradient(circle var(--notch) at 50% 0, #0000 98%, #000) top / 100%
        51% no-repeat,
      radial-gradient(circle var(--notch) at 50% 100%, #0000 98%, #000) bottom /
        100% 51% no-repeat;
    mask:
      radial-gradient(circle var(--notch) at 50% 0, #0000 98%, #000) top / 100%
        51% no-repeat,
      radial-gradient(circle var(--notch) at 50% 100%, #0000 98%, #000) bottom /
        100% 51% no-repeat;
  }
  .panel + .panel {
    border-left: 0;
    border-top: 2px dashed var(--ticket-edge);
  }
}

/* Holding period band */
.band {
  background: var(--surface-sunk);
  border-block: 1px solid var(--rule);
}
.hold-grid {
  display: grid;
  gap: 2.5rem;
}
.hold-copy {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}
@media (min-width: 960px) {
  .hold-grid {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}
.hold-control {
  min-width: 0;
  display: grid;
  gap: 1rem;
}
.range-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.range-head output {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-display);
}
.range {
  --fill: 45.78%;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.range:disabled {
  cursor: default;
}
.range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--accent) var(--fill),
    var(--rule-strong) var(--fill)
  );
}
.range::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--rule-strong);
}
.range::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  margin-top: -12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-md);
}
.range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-md);
}
.range:focus-visible {
  outline-offset: 0;
}
.kept {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .kept {
    grid-template-columns: 1fr 1fr;
  }
}
.k-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 1rem 0.5rem 1.125rem;
}
.k-row .ref {
  grid-row: 1 / span 2;
  font-size: 0.875rem;
  font-weight: 700;
  padding-right: 0.75rem;
  border-right: 1px dashed var(--ticket-edge);
  align-self: stretch;
  display: flex;
  align-items: center;
}
.k-desc {
  grid-column: 2 / -1;
  grid-row: 1;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.k-date {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.875rem;
  color: var(--ink-muted);
  white-space: nowrap;
}
.k-row .badge {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
}

/* Features */
.features {
  overflow-x: clip;
}
.features-grid {
  display: grid;
  gap: 3rem;
}
.features-grid h2 {
  max-width: 20ch;
}
@media (min-width: 960px) {
  .features-grid {
    grid-template-columns: 7fr 5fr;
    column-gap: 5rem;
    row-gap: 3.5rem;
  }
  .features-grid h2 {
    grid-column: 1 / -1;
  }
}
.sheet-stage {
  position: relative;
  min-width: 0;
  padding: 1.5rem 1rem 2rem;
}
.sheet-stage::before {
  content: "";
  position: absolute;
  inset: 1.5rem 1rem 2rem;
  background: #fbfaf6;
  box-shadow: var(--shadow-md);
  transform: rotate(3deg) translate(0.75rem, 0.5rem);
}
.sheet {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1.3;
  padding: 2rem;
  background: #ffffff;
  color: #1f1d1a;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  font-size: 0.875rem;
  line-height: 1.45;
}
.sheet .micro {
  color: #5a554c;
  margin-top: 0.25rem;
}
.sheet-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
}
.tile {
  display: grid;
  gap: 0.125rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid #ddd5c4;
  border-radius: 6px;
}
.tile-n {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
}
.tile-l {
  font-size: 0.875rem;
  color: #5a554c;
  line-height: 1.2;
}
.sheet-group {
  font-weight: 700;
  margin: 1rem 0 0.25rem;
}
.sheet table {
  width: 100%;
  border-collapse: collapse;
}
.sheet th {
  text-align: left;
  font-weight: 600;
  color: #5a554c;
  border-bottom: 1px solid #b9ae97;
  padding: 0.25rem 0.375rem 0.25rem 0;
}
.sheet td {
  padding: 0.375rem 0.375rem 0.375rem 0;
  border-bottom: 1px solid #ddd5c4;
  vertical-align: top;
}
.col-tick {
  width: 1.5rem;
}
.tick {
  display: inline-block;
  width: 0.875rem;
  height: 0.875rem;
  border: 1.5px solid #1f1d1a;
  border-radius: 2px;
  vertical-align: -2px;
}
@media (max-width: 639.98px) {
  .sheet {
    padding: 1.25rem;
    aspect-ratio: auto;
  }
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .col-found,
  .col-keep {
    display: none;
  }
}
.feature-list {
  display: grid;
  align-content: center;
}
.feature {
  display: grid;
  gap: 0.625rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}
.feature:last-child {
  border-bottom: 1px solid var(--rule);
}
.feature p {
  color: var(--ink-muted);
}
.icon {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Real app */
.live-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.25rem;
}
.live-inner .lead {
  max-width: 40ch;
}
.seg {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  margin-top: 0.75rem;
  background: var(--surface-sunk);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.seg[hidden] {
  display: none;
}
.seg button {
  min-height: 44px;
  padding: 0 1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background-color 160ms var(--state),
    color 160ms var(--state);
}
.seg button:hover {
  color: var(--ink);
}
.seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.window {
  width: 100%;
  max-width: 64rem;
  margin-top: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  text-align: left;
}
.window-bar {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-sunk);
  border-bottom: 1px solid var(--rule);
}
.dots {
  position: absolute;
  left: 14px;
  display: flex;
  gap: 7px;
}
.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rule-strong);
}
.window-pill {
  padding: 0.125rem 0.875rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}
#app-frame {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: var(--surface);
}
.quiet-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  font-weight: 600;
  border-radius: 6px;
}
@media (max-width: 639.98px) {
  .window {
    border-radius: 22px;
  }
  .window-bar {
    height: 28px;
  }
  .dots {
    display: none;
  }
  .window-pill {
    padding: 0 1.25rem;
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }
  #app-frame {
    height: 640px;
  }
}

/* Small print */
.faq-inner {
  max-width: 44rem;
}
.faq h2 {
  margin-bottom: 2rem;
}
.faq dl {
  margin: 0;
}
.faq dl > div {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}
.faq dl > div:last-child {
  border-bottom: 1px solid var(--rule);
}
.faq dt {
  font-weight: 700;
}
.faq dd {
  margin: 0.25rem 0 0;
  color: var(--ink-muted);
}

/* Close */
.close {
  padding-top: calc(var(--rhythm) * 0.5);
}
.big-ticket {
  --notch: 14px;
  max-width: 40rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.big-ticket .t-stub {
  padding: 2.5rem 1rem;
  gap: 0.5rem;
}
.big-ticket .t-stub .ref {
  font-size: 1.5rem;
}
.big-ticket .hole {
  width: 14px;
  height: 14px;
}
.big-body {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 2.5rem 3rem;
}
/* The notch mask clips box-shadow, so tickets take their shadow from a parent. */
.close .wrap {
  filter: drop-shadow(0 8px 16px rgb(60 45 20 / 0.16));
}
.kept {
  filter: drop-shadow(0 1px 1px rgb(60 45 20 / 0.1));
}
.big-body h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
}
.big-body .small {
  color: var(--ink-muted);
}
@media (max-width: 639.98px) {
  .big-ticket {
    grid-template-columns: 1fr;
  }
  .big-ticket .t-stub {
    padding: 1.5rem 1rem 1.25rem;
    border-right: 0;
    border-bottom: 1px dashed var(--ticket-edge);
  }
  .big-body {
    padding: 2rem 1.5rem 2.5rem;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-footer .text-link {
  color: var(--accent);
  padding: 0 0.75rem;
}

/* Motion: only for visitors who have not asked for less. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .pulse {
    animation: pulse 2s ease-in-out infinite;
  }
  .hero-copy {
    animation: rise 500ms var(--enter) both;
  }
  .demo {
    animation: settle 700ms var(--enter) 120ms both;
  }

  .t-row {
    transition:
      grid-template-rows 220ms var(--enter),
      opacity 220ms var(--enter);
  }
  .t-row.is-out {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
  }
  .t-row.is-out .t-clip {
    overflow: hidden;
    padding-bottom: 0;
  }
  .t-clip {
    transition: padding 220ms var(--enter);
  }
  .ticket {
    transition:
      transform 260ms var(--state),
      border-color 220ms var(--state);
  }
  .t-row.is-match .ticket {
    transform: translateY(-2px);
  }

  .badge {
    transition:
      background-color 220ms var(--state),
      color 220ms var(--state);
  }
  .k-row.nudge {
    animation: nudge 260ms var(--state);
  }

  .js .reveal {
    transition:
      opacity 600ms var(--enter) var(--d, 0ms),
      transform 600ms var(--enter) var(--d, 0ms);
  }
  .js .panel.reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(16px);
  }
  .js .big-ticket.reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(20px) rotate(-3deg);
  }

  #app-frame {
    transition: opacity 300ms var(--enter);
  }

  @media (hover: hover) and (pointer: fine) {
    .sheet {
      transition:
        transform 300ms var(--enter),
        box-shadow 300ms var(--enter);
    }
    .sheet-stage:hover .sheet {
      transform: rotate(0) translateY(-6px);
    }
  }
}
#app-frame.is-loading {
  opacity: 0;
}

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(12px) rotate(1.5deg);
  }
}
@keyframes nudge {
  50% {
    transform: translateX(1px);
  }
}
