/* Seatwell launch page. Palette and type from docs/site/BRIEF.md. */

:root {
  color-scheme: light dark;
  --paper: #faf6ee; /* page background */
  --paper-deep: #f1eadb; /* section wash, desk under the cards */
  --card: #fffdf8; /* cards, panels, stationery */
  --ink: #1f2430; /* body text, headings */
  --ink-soft: #5b5f6a; /* secondary text (AA on --paper and --card) */
  --rule: #e3dccd; /* hairlines */
  --rule-strong: #c9bfab; /* dashed outlines, frame edges */
  --sage: #4f6b58; /* primary buttons, links, filled seats */
  --sage-deep: #415a49; /* primary hover */
  --sage-soft: #e6ede6; /* quiet tint, step numbers */
  --on-sage: #ffffff;
  --rose: #a23b53; /* warnings, clash marks, over seats */
  --rose-soft: #f8e8eb; /* warning banners */
  --ok: #2f6b45; /* "No clashes", OK pill */
  --ok-soft: #e4f0e6;
  --gilt: #b08d57; /* decorative only: foil hairlines, the fleuron. Never text. */
  --focus: #2c5a7a;
  --shadow-paper:
    0 1px 1px rgb(60 45 20 / 0.05), 0 6px 16px rgb(60 45 20 / 0.08),
    0 24px 48px rgb(60 45 20 / 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16181d;
    --paper-deep: #1c2420;
    --card: #1e2128;
    --ink: #eee8dc;
    --ink-soft: #a9a49a;
    --rule: #3a3f4a;
    --rule-strong: #545a67;
    --sage: #9dbba5;
    --sage-deep: #b4cdb9;
    --sage-soft: #26332b;
    --on-sage: #14201a;
    --rose: #f0a3b3;
    --rose-soft: #3a2228;
    --ok: #8fc79b;
    --ok-soft: #1f3226;
    --gilt: #c9a96e;
    --focus: #8cc1e6;
    --shadow-paper:
      0 1px 2px rgb(0 0 0 / 0.3), 0 8px 20px rgb(0 0 0 / 0.35),
      0 24px 48px rgb(0 0 0 / 0.3);
  }
}

/* Theme-independent tokens: stationery stays light paper on a dark desk. */
:root {
  --stationery: #fffdf8;
  --stationery-ink: #1f2430;
  --stationery-soft: #5b5f6a;
  --stationery-rule: #c9bfab;
  --stationery-gilt: #b08d57;
  --shadow-half:
    0 1px 1px rgb(60 45 20 / 0.03), 0 3px 8px rgb(60 45 20 / 0.04),
    0 12px 24px rgb(60 45 20 / 0.04);
  --shadow-lift:
    0 2px 2px rgb(60 45 20 / 0.06), 0 10px 22px rgb(60 45 20 / 0.11),
    0 30px 56px rgb(60 45 20 / 0.12);
  --font-display:
    "Bodoni Moda", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    serif;
  --font-text:
    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pop: cubic-bezier(0.34, 1.4, 0.64, 1);
  --section-pad: clamp(4.5rem, 10vw, 8rem);
  --reading-max: 44rem;
  --header-h: 4rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --shadow-half:
      0 1px 2px rgb(0 0 0 / 0.2), 0 4px 10px rgb(0 0 0 / 0.2),
      0 12px 24px rgb(0 0 0 / 0.18);
    --shadow-lift:
      0 2px 3px rgb(0 0 0 / 0.35), 0 12px 26px rgb(0 0 0 / 0.4),
      0 30px 56px rgb(0 0 0 / 0.35);
  }
}

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

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

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

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

body {
  position: relative;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

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

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

svg {
  display: block;
}

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

.wrap {
  width: 100%;
  max-width: calc(72rem + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-paper);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.sentinel {
  position: absolute;
  top: 24px;
  left: 0;
  width: 1px;
  height: 1px;
}

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

.section-title,
.hero-title,
.closing-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-title {
  max-width: 22ch;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.08;
}

.section-title em,
.hero-title em {
  font-style: italic;
}

.intro {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: var(--ink-soft);
}

.fine {
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.count,
.board-pill,
.seat-list,
.tab .badge {
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.btn--pill {
  background: var(--sage);
  color: var(--on-sage);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.15) inset,
    0 6px 16px -8px rgb(40 60 45 / 0.6);
}

.btn--pill:hover {
  background: var(--sage-deep);
}

.btn--large {
  min-height: 3.25rem;
  padding: 0 1.75rem;
  font-size: 1rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn .short {
  display: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 2.75rem;
  color: var(--sage);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--sage) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.text-link:hover {
  color: var(--sage-deep);
  text-decoration-color: currentColor;
}

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

.mark .m-table {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.mark .m-seat {
  fill: var(--sage);
}

.mark .m-top {
  fill: var(--rose);
}

.mark .m-fleuron {
  fill: var(--gilt);
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
}

.logo {
  min-height: 2.75rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

.wordmark--small {
  font-size: 1.0625rem;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  border-bottom-color: var(--rule);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--sage);
}

@media (max-width: 719.98px) {
  .nav-link {
    display: none;
  }

  .site-header .btn .long {
    display: none;
  }

  .site-header .btn .short {
    display: inline;
  }
}

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

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem));
  padding-bottom: var(--section-pad);
  border-bottom: 1px solid var(--gilt);
  background: radial-gradient(
    ellipse 70% 60% at 100% 0%,
    var(--paper-deep),
    transparent 70%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-title {
  font-size: clamp(2.6rem, 7.5vw, 5.75rem);
  line-height: 1.02;
}

.hero-copy .hero-title {
  font-size: clamp(2.6rem, 5.4vw, 5.75rem);
}

.hero-sub {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}

.hero .fine {
  margin-top: 1rem;
}

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

  .hero-copy .hero-title {
    font-size: clamp(2.6rem, 7.5vw, 5.75rem);
  }
}

/* The seating board */

.board {
  position: relative;
  aspect-ratio: 640 / 520;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-paper);
}

.board-svg {
  width: 100%;
  height: 100%;
}

.grid-dot {
  fill: var(--rule);
}

.b-table {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}

.b-alert {
  fill: none;
  stroke: var(--rose);
  stroke-width: 2;
  opacity: 0;
  filter: drop-shadow(0 0 6px var(--rose));
}

.b-label {
  fill: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  text-anchor: middle;
}

.b-label--italic {
  font-style: italic;
}

@media (max-width: 719.98px) {
  .b-label {
    font-size: 24px;
  }
}

.b-empty circle {
  fill: var(--card);
  stroke: var(--rule-strong);
  stroke-width: 1.5;
}

.dot {
  fill: var(--sage);
  transform-box: fill-box;
  transform-origin: center;
}

.board-pill {
  position: absolute;
  top: 3.5%;
  right: 3.5%;
  display: grid;
  justify-items: end;
}

.board-pill > * {
  grid-area: 1 / 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.pill--ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.pill--warn {
  background: var(--rose-soft);
  color: var(--rose);
}

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

.pill-dot,
.chip-dot {
  flex: none;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: currentColor;
}

.board-pill .pill {
  font-size: clamp(0.6875rem, 1.4vw, 0.8125rem);
}

.board-pill-warn {
  opacity: 0;
}

.board-chip {
  position: absolute;
  left: 3.5%;
  bottom: 3%;
  display: flex;
  align-items: center;
  gap: 0.5em;
  max-width: 60%;
  padding: 0.45em 0.9em 0.45em 0.75em;
  border-left: 3px solid var(--rose);
  border-radius: 6px 999px 999px 6px;
  background: var(--rose-soft);
  color: var(--ink);
  font-size: clamp(0.6875rem, 1.5vw, 0.875rem);
  font-weight: 500;
  line-height: 1.3;
  box-shadow: var(--shadow-paper);
  opacity: 0;
}

.board-chip .chip-dot {
  background: var(--rose);
}

@media (prefers-reduced-motion: no-preference) {
  .b-dots .dot {
    animation: pop 220ms var(--ease-pop) calc(300ms + var(--i) * 35ms) both;
  }

  .b-dots .dot--t4 {
    animation:
      pop 220ms var(--ease-pop) calc(300ms + var(--i) * 35ms) both,
      t4-seat 4.5s ease both;
  }

  .b-dots .dot--ninth {
    animation: ninth 4.5s ease both;
  }

  .b-alert {
    animation: t4-alert 4.5s ease both;
  }

  .board-chip {
    animation: chip 4.5s ease both;
  }

  .board-pill-ok {
    animation: pill-ok 4.5s ease both;
  }

  .board-pill-warn {
    animation: pill-warn 4.5s ease both;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Beats on the 4.5 s timeline: clash at 2.6 s (57.8%), fix at 3.8 s (84.4%). */
@keyframes t4-seat {
  0%,
  57.8% {
    fill: var(--sage);
  }
  62%,
  84.4% {
    fill: var(--rose);
  }
  91%,
  100% {
    fill: var(--sage);
  }
}

@keyframes ninth {
  0%,
  55% {
    opacity: 0;
    fill: var(--rose);
    transform: translate(-100px, 150px);
  }
  61%,
  84.4% {
    opacity: 1;
    fill: var(--rose);
    transform: translate(-128px, 138px);
  }
  95%,
  100% {
    opacity: 1;
    fill: var(--sage);
    transform: translate(0, 0);
  }
}

@keyframes t4-alert {
  0%,
  57.8% {
    opacity: 0;
  }
  62%,
  84.4% {
    opacity: 1;
  }
  91%,
  100% {
    opacity: 0;
  }
}

@keyframes chip {
  0%,
  57.8% {
    opacity: 0;
    transform: translateY(8px);
  }
  63%,
  84.4% {
    opacity: 1;
    transform: translateY(0);
  }
  90%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

@keyframes pill-ok {
  0%,
  57.8% {
    opacity: 1;
    transform: scale(1);
  }
  60%,
  84.4% {
    opacity: 0;
    transform: scale(0.9);
  }
  90% {
    opacity: 1;
    transform: scale(1.08);
  }
  95%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pill-warn {
  0%,
  57.8% {
    opacity: 0;
  }
  60%,
  84.4% {
    opacity: 1;
  }
  87%,
  100% {
    opacity: 0;
  }
}

/* ---------- Reveal on scroll (only hidden when JS runs) ---------- */

.reveal {
  transition:
    opacity 500ms var(--ease-out) var(--d, 0ms),
    translate 500ms var(--ease-out) var(--d, 0ms);
}

.js .reveal:not(.is-in) {
  opacity: 0;
  translate: 0 16px;
}

/* ---------- 2. The problem ---------- */

.problem {
  padding-block: var(--section-pad);
  text-align: center;
}

.reading {
  max-width: calc(var(--reading-max) + 2 * var(--gutter));
}

.problem-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.3;
  text-wrap: pretty;
}

.scribble {
  position: relative;
  white-space: nowrap;
}

.scribble svg {
  position: absolute;
  left: -2%;
  bottom: -0.3em;
  width: 104%;
  height: 0.45em;
  overflow: visible;
}

.scribble path {
  fill: none;
  stroke: var(--rose);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
  transition: stroke-dashoffset 700ms var(--ease-out) 250ms;
}

.js .problem-text:not(.is-in) .scribble path {
  stroke-dashoffset: 1;
}

.problem-after {
  margin-top: 1.5rem;
  color: var(--ink-soft);
}

/* ---------- Cards ---------- */

.card {
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-half);
}

.caps {
  color: var(--ink-soft);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Seat diagrams, as in the app */

.rd-table {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}

.rd-empty circle {
  fill: var(--card);
  stroke: var(--rule-strong);
  stroke-width: 1.5;
}

.rd-fill circle {
  fill: var(--sage);
  transform-box: fill-box;
  transform-origin: center;
}

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

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

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.step {
  position: relative;
  padding: 1.5rem 1.5rem 1.75rem;
}

.vignette {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  height: 160px;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step-title {
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.2;
}

.step p,
.feature p {
  color: var(--ink-soft);
}

/* Step 1 */

.mini-table {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
}

.v-tables .round-diagram {
  width: 92px;
  height: 92px;
}

.v-tables .long-diagram {
  width: 150px;
  height: 66px;
}

.fill-on-enter .rd-fill circle {
  transition:
    opacity 220ms ease calc(350ms + var(--i) * 45ms),
    transform 220ms var(--ease-pop) calc(350ms + var(--i) * 45ms);
}

.js .step:not(.is-in) .fill-on-enter .rd-fill circle {
  opacity: 0;
  transform: scale(0.6);
}

/* Step 2 */

.v-paste {
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
}

.faux-field,
.faux-area {
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--card);
  padding: 0.2rem 0.6rem;
}

.faux-area {
  display: grid;
  line-height: 1.35;
}

.faux-area span:last-child::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--ink);
}

.v-paste .pill {
  align-self: flex-start;
}

/* Step 3 */

.v-rules {
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  padding: 0 1rem;
}

.rule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--card);
  font-size: 0.8125rem;
}

.rule-text {
  min-width: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .js .step.is-in .pill--pulse {
    animation: ring 1.5s ease-out 700ms 1;
  }
}

@keyframes ring {
  from {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--rose) 55%, transparent);
  }
  to {
    box-shadow: 0 0 0 12px color-mix(in srgb, var(--rose) 0%, transparent);
  }
}

/* Step 4: folded table cards (stationery) */

.v-cards {
  gap: 1rem;
  perspective: 600px;
}

.tent {
  display: grid;
  place-items: center;
  width: 7.5rem;
  height: 5rem;
  border-radius: 3px;
  background: linear-gradient(to bottom, #f3eee3 0 14%, var(--stationery) 14%);
  color: var(--stationery-ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  box-shadow:
    inset 0 0 0 4px var(--stationery),
    inset 0 0 0 5px var(--stationery-gilt),
    var(--shadow-paper);
}

.tent span {
  padding-top: 0.5rem;
}

.tent:last-child span {
  font-style: italic;
}

/* ---------- 4. Features ---------- */

.features {
  padding-block: var(--section-pad);
  background: linear-gradient(
    to bottom,
    transparent,
    var(--paper-deep) 30%,
    var(--paper-deep) 70%,
    transparent
  );
}

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

.f-a {
  grid-column: 1 / 3;
  grid-row: 1;
}
.f-b {
  grid-column: 3;
  grid-row: 1;
}
.f-d {
  grid-column: 1;
  grid-row: 2 / 4;
}
.f-c {
  grid-column: 2;
  grid-row: 2;
}
.f-e {
  grid-column: 3;
  grid-row: 2;
}
.f-f {
  grid-column: 2 / 4;
  grid-row: 3;
}

.feature {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition:
    opacity 500ms var(--ease-out) var(--d, 0ms),
    translate 500ms var(--ease-out) var(--d, 0ms),
    transform 200ms ease,
    box-shadow 200ms ease;
}

@media (hover: hover) {
  .feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
  }
}

.feature-title {
  margin: 1.25rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.2;
}

.slice {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 9rem;
  padding: 1rem;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: 0.8125rem;
}

/* A */
.warn-panel {
  width: 100%;
  max-width: 32rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--rose);
  border-radius: 4px 8px 8px 4px;
  background: var(--rose-soft);
}

.warn-title {
  margin-bottom: 0.4rem;
  color: var(--rose);
  font-weight: 600;
}

.warn-panel li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.3rem 0;
  border-top: 1px solid color-mix(in srgb, var(--rose) 18%, transparent);
}

.warn-panel .chip-dot {
  background: var(--rose);
  transform: translateY(-0.05em);
}

/* B */
.app-table {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 14rem;
  padding: 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
}

.app-table-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

.app-table-name {
  margin-right: auto;
  font-weight: 600;
}

.app-table .round-diagram {
  width: 84px;
  height: 84px;
}

/* C */
.unseated {
  width: 100%;
  max-width: 15rem;
  padding: 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
}

.unseated-head {
  font-weight: 600;
}

.unseated-group {
  margin: 0.35rem 0 0.5rem;
  color: var(--ink-soft);
}

.faux-select {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
}

.opt {
  padding: 0.3rem 0.6rem;
}

.opt--off {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--ink-soft) 50%, transparent);
}

.opt--on {
  background: var(--sage);
  color: var(--on-sage);
  font-weight: 600;
}

/* D and the find-your-seat sheet */
.seat-list {
  width: 100%;
  max-width: 17rem;
}

.slice .seat-list {
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--card);
  box-shadow: var(--shadow-half);
}

.letter {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.letter:first-child {
  margin-top: 0;
}

.entry {
  display: flex;
  align-items: baseline;
  line-height: 1.7;
}

.entry span:first-child,
.entry span:last-child {
  flex: none;
}

.leader {
  flex: 1;
  min-width: 1rem;
  margin: 0 0.35em;
  border-bottom: 1.5px dotted var(--rule-strong);
  translate: 0 -0.25em;
}

/* E */
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--card);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8125rem;
}

.file-chip .dl {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* F */
.phone-edge {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-self: end;
  width: 100%;
  max-width: 22rem;
  margin-bottom: -1rem;
  padding: 0 0.5rem 1rem;
  border: 2px solid var(--rule-strong);
  border-top: none;
  border-radius: 0 0 2rem 2rem;
  background: var(--card);
}

.tab {
  position: relative;
  padding: 0.7rem 0 0.2rem;
  color: var(--ink-soft);
  text-align: center;
  border-top: 1px solid var(--rule);
}

.tab--on {
  color: var(--sage);
  font-weight: 600;
}

.tab--on::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--sage);
}

.tab .badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.3rem;
  border-radius: 999px;
  background: var(--rose);
  color: var(--card);
  font-size: 0.6875rem;
  font-weight: 600;
  vertical-align: 0.1em;
}

@media (max-width: 1024px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
  }

  .bento > .feature {
    grid-column: auto;
    grid-row: auto;
  }

  .bento > .f-a {
    grid-column: span 2;
  }

  .bento > .f-d {
    grid-row: span 2;
  }
}

/* ---------- 5. Try it ---------- */

.try {
  padding-block: var(--section-pad);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--paper-deep);
}

.browser {
  margin-top: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-paper);
}

.browser-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-bottom: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.browser-dots {
  position: absolute;
  left: 1rem;
  display: flex;
  gap: 6px;
}

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

.browser-address {
  padding: 0.15rem 1.5rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.browser iframe {
  display: block;
  width: 100%;
  height: min(78vh, 760px);
  border: 0;
  background: var(--paper);
}

.try-link {
  margin-top: 0.5rem;
}

.try-note {
  margin-top: 0.5rem;
}

.poster {
  display: none;
  justify-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.75rem 1.25rem 1.25rem;
  text-align: center;
}

.poster .round-diagram {
  width: 120px;
  height: 120px;
}

@media (max-width: 719.98px) {
  .browser,
  .try-link {
    display: none;
  }

  .poster {
    display: grid;
  }

  .try-note {
    margin-top: 1rem;
  }
}

/* ---------- 6. The printouts ---------- */

.print {
  padding-block: var(--section-pad);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  background: var(--paper-deep);
  border-top: 1px solid var(--gilt);
}

.print-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.desk {
  position: relative;
  height: 32rem;
}

.paper {
  position: absolute;
  width: 300px;
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--stationery);
  color: var(--stationery-ink);
  box-shadow: var(--shadow-paper);
  transform: rotate(var(--rot));
}

.paper::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--stationery-gilt);
  pointer-events: none;
}

.paper--sheet {
  --rot: -3deg;
  --fx: 24px;
  --fy: 40px;
  left: 0;
  top: 1rem;
  min-height: 400px;
  z-index: 1;
}

.paper--back {
  --rot: -1deg;
  --fx: -24px;
  --fy: 40px;
  right: 0;
  top: 0;
  min-height: 200px;
  z-index: 2;
}

.paper--front {
  --rot: 2deg;
  --fx: 0px;
  --fy: 20px;
  left: 50%;
  margin-left: -120px;
  bottom: 0;
  min-height: 200px;
  z-index: 3;
}

.paper .seat-list {
  max-width: none;
  font-size: 0.8125rem;
}

.paper .leader {
  border-color: var(--stationery-rule);
}

.paper-title {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
}

.paper-eyebrow {
  color: var(--stationery-soft);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-align: center;
}

.paper-name {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
}

.paper-name--roman {
  font-style: normal;
}

.gilt {
  width: 3.5rem;
  height: 1px;
  margin: 0.6rem auto 0.8rem;
  border: 0;
  background: var(--stationery-gilt);
}

.paper-guests {
  columns: 2;
  column-gap: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .paper {
      animation: fan linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 55%;
    }
  }
}

@keyframes fan {
  from {
    transform: translate(var(--fx), var(--fy)) rotate(0deg);
  }
  to {
    transform: translate(0, 0) rotate(var(--rot));
  }
}

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

@media (max-width: 719.98px) {
  .desk {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    height: auto;
  }

  .paper {
    position: relative;
    inset: auto;
    width: min(100%, 300px);
    margin: 0;
  }

  .paper--sheet {
    --rot: -1.5deg;
    --fx: 0px;
    --fy: 16px;
    order: 3;
  }

  .paper--back {
    --rot: -1.5deg;
    --fx: 0px;
    --fy: 16px;
    order: 2;
  }

  .paper--front {
    --rot: 1.5deg;
    --fx: 0px;
    --fy: 8px;
    order: 1;
  }
}

/* ---------- 7. Fine print ---------- */

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

.fp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.fp {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.fp h3 {
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

.fp p {
  color: var(--ink-soft);
}

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

/* ---------- 8. Closing ---------- */

.closing {
  padding-block: var(--section-pad);
  background: var(--sage-soft);
  text-align: center;
}

.closing-inner {
  display: grid;
  justify-items: center;
}

.mark--closing {
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.closing-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.04;
}

.closing-copy {
  margin: 1rem 0 2rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.closing .fine {
  margin-top: 1rem;
}

.mark--closing .m-seat {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 220ms ease calc(300ms + var(--i) * 40ms),
    transform 220ms var(--ease-pop) calc(300ms + var(--i) * 40ms);
}

.js .closing-inner:not(.is-in) .mark--closing .m-seat {
  opacity: 0;
  transform: scale(0.6);
}

/* ---------- 9. Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.footer-note {
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

@media (max-width: 719.98px) {
  .footer-row {
    flex-direction: column;
    text-align: center;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    position: relative;
    padding-left: 2.75rem;
  }

  .steps::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    bottom: 3rem;
    left: 1rem;
    width: 1px;
    background: var(--sage);
  }

  .step-num {
    position: absolute;
    top: 1.25rem;
    left: -2.75rem;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--paper);
  }

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

  .bento > .f-a {
    grid-column: auto;
  }

  .bento > .f-d {
    grid-row: auto;
  }

  .vignette {
    gap: 1rem;
  }

  .v-tables .round-diagram {
    width: 76px;
    height: 76px;
  }

  .v-tables .long-diagram {
    width: 112px;
    height: 50px;
  }

  .mini-table .caps {
    max-width: 7.5rem;
    text-align: center;
    line-height: 1.3;
  }
}

/* ---------- Reduced motion: every illustration in its final state ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal:not(.is-in) {
    opacity: 1;
    translate: none;
  }

  .js .step:not(.is-in) .fill-on-enter .rd-fill circle,
  .js .closing-inner:not(.is-in) .mark--closing .m-seat {
    opacity: 1;
    transform: none;
  }

  .js .problem-text:not(.is-in) .scribble path {
    stroke-dashoffset: 0;
  }
}
