/* Cloche launch site. Tokens are the app's own (docs/site/BRIEF.md). */
:root {
  --bg: #faf6ef;
  --surface: #ffffff;
  --sunken: #f2ece2;
  --ink: #221d17;
  --ink-muted: #5f564b;
  --rule: #e4dccf;
  --rule-strong: #b9ab97;
  --accent: #a83f1d;
  --accent-hover: #8f3416;
  --accent-strong: #842f12;
  --accent-soft: #f8e4d8;
  --on-accent: #ffffff;
  --herb: #2f6b3a;
  --focus: #1d5fd1;
  --shadow-tint: 34 29 23;

  --font-display: Fraunces, "Iowan Old Style", Charter, Georgia, serif;
  --font-text: Inter, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 1px 2px rgb(var(--shadow-tint) / 0.06), 0 8px 24px -8px rgb(var(--shadow-tint) / 0.14);
  --shadow-deep: 0 1px 2px rgb(var(--shadow-tint) / 0.08), 0 12px 28px -10px rgb(var(--shadow-tint) / 0.22),
    0 32px 64px -24px rgb(var(--shadow-tint) / 0.24);
  --card-border: 1px solid transparent;
  --pad: clamp(20px, 5vw, 48px);
  --gap-section: clamp(80px, 12vw, 160px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130f;
    --surface: #1f1b16;
    --sunken: #2a251e;
    --ink: #f3ede4;
    --ink-muted: #b8ad9e;
    --rule: #3a332a;
    --rule-strong: #6a5e4f;
    --accent: #f0875a;
    --accent-hover: #f59c75;
    --accent-strong: #ffb08c;
    --accent-soft: #3d2418;
    --on-accent: #1a0f0a;
    --herb: #8fd19e;
    --focus: #8ab4ff;
    --shadow-tint: 0 0 0;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 28px -8px rgb(0 0 0 / 0.5);
    --shadow-deep: 0 1px 2px rgb(0 0 0 / 0.4), 0 14px 32px -10px rgb(0 0 0 / 0.6), 0 36px 72px -24px rgb(0 0 0 / 0.6);
    --card-border: 1px solid var(--rule);
  }
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
p {
  max-width: 62ch;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
main:focus {
  outline: none;
}
.num {
  font-variant-numeric: tabular-nums;
}
.visually-hidden,
.sprite {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: var(--pad);
}
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings:
    "SOFT" 50,
    "WONK" 0;
  font-optical-sizing: auto;
  text-wrap: balance;
  line-height: 1.08;
}
.h2 {
  font-size: clamp(1.875rem, 3vw + 1rem, 3rem);
  letter-spacing: -0.03em;
}
.h3 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}
.overline,
.label {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.4;
}
.overline {
  margin-bottom: 14px;
}
/* Phones: nothing under 14px outside the prep-sheet specimen. */
@media (max-width: 639px) {
  .overline,
  .label,
  .ticket-foot {
    font-size: 0.875rem !important;
  }
  .overline,
  .label {
    letter-spacing: 0.06em;
  }
}
.small-muted {
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.muted {
  color: var(--ink-muted);
}

/* Links and buttons */
.link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.link:hover {
  text-decoration-thickness: 2px;
}
.link-pad {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font: 600 1rem/1 var(--font-text);
  text-decoration: none;
  transition:
    background-color 240ms var(--ease),
    transform 240ms var(--ease);
}
.btn-primary {
  background-color: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: scale(0.97);
}
.btn-ghost {
  border: 1px solid var(--rule-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink-muted);
}
.btn-small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.9375rem;
}
.btn-large {
  min-height: 56px;
  padding: 0 32px;
  font-size: 1.0625rem;
}

/* Skip link and header */
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  min-height: 44px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow);
}
.skip:focus {
  top: 10px;
}
#top-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(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.scrolled .site-header {
  border-bottom-color: var(--rule);
}
.header-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding-top: 8px;
  color: var(--ink);
  text-decoration: none;
}
.brand .logo {
  color: var(--accent);
  align-self: center;
  transform: translateY(-2px);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  font-variation-settings:
    "SOFT" 50,
    "WONK" 0;
  letter-spacing: -0.01em;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-how .link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  font-size: 0.9375rem;
}
@media (max-width: 639px) {
  .nav-how {
    display: none;
  }
}

/* Bands */
.band {
  padding-block: var(--gap-section);
}
.band-sunken {
  background: var(--sunken);
}

/* 1. Hero */
.hero {
  display: grid;
  gap: 56px;
  padding-block: clamp(48px, 8vw, 112px) var(--gap-section);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw + 1rem, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 24px;
}
.hero-line {
  display: inline-block;
}
.hero-sub {
  display: block;
  font-size: 1.1875rem;
  color: var(--ink-muted);
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.hero .small-muted {
  display: block;
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
  }
  .hero-text {
    grid-column: 1 / span 6;
  }
  .ticket-wrap {
    grid-column: 7 / span 6;
  }
  h1 .hero-line {
    display: block;
  }
}

/* The order ticket */
.ticket-wrap {
  --rot: 0deg;
  --settle-tilt: 0deg;
  justify-self: center;
  width: 100%;
  max-width: 30rem;
  transform: rotate(var(--rot));
  filter: drop-shadow(0 1px 1px rgb(var(--shadow-tint) / 0.08)) drop-shadow(0 12px 18px rgb(var(--shadow-tint) / 0.14));
}
@media (min-width: 960px) {
  .ticket-wrap {
    --rot: -1.5deg;
    --settle-tilt: -2.5deg;
  }
}
.ticket {
  position: relative;
  background: var(--surface);
  border: var(--card-border);
  border-radius: 0 0 12px 12px;
  padding: 28px clamp(18px, 4vw, 28px) 22px;
  -webkit-mask: radial-gradient(circle at 8px 0, transparent 5px, #000 5.5px) 0 0 / 16px 100% repeat-x;
  mask: radial-gradient(circle at 8px 0, transparent 5px, #000 5.5px) 0 0 / 16px 100% repeat-x;
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
}
.ticket-block {
  border: 0;
  margin: 0;
  padding: 18px 0;
  border-top: 1px dashed var(--rule-strong);
  min-width: 0;
}
.ticket-block > .label,
.chips legend {
  display: block;
  padding: 0;
  margin-bottom: 8px;
}
.chips legend {
  float: left;
  width: 100%;
}
.chip-row {
  clear: both;
}
.stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
}
.no-js .stepper {
  grid-template-columns: 1fr;
}
.step-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
  font: 500 1.375rem/1 var(--font-text);
  cursor: pointer;
  transition:
    background-color 240ms var(--ease),
    transform 160ms var(--ease);
}
.step-btn:hover {
  background-color: var(--sunken);
}
.step-btn:active {
  transform: scale(0.94);
}
.step-btn[aria-disabled="true"] {
  color: var(--ink-muted);
  border-color: var(--rule);
  cursor: default;
  background-color: var(--surface);
  transform: none;
}
.guests-num {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variation-settings:
    "SOFT" 50,
    "WONK" 0;
}

/* Range */
.range {
  --fill: 9.77%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  margin: 8px 0 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--rule) var(--fill));
}
.range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--rule);
}
.range::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 10px transparent;
}
.range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 240ms var(--ease);
}
.chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip:hover {
  border-color: var(--ink-muted);
}
.chip:has(:checked) {
  background-color: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent-strong);
  font-weight: 600;
}
.chip:has(:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Output list */
.ticket-out li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 6px 0;
  font-size: 0.9375rem;
}
.ticket-out li + li {
  border-top: 1px solid var(--rule);
}
.ticket-out output {
  font-weight: 600;
  font-size: 1.0625rem;
  text-align: right;
  white-space: nowrap;
}
.ticket-out li:first-child output {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
}
.ticket-foot {
  padding-top: 14px;
  border-top: 1px dashed var(--rule-strong);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.ch {
  display: inline-block;
  position: relative;
  white-space: pre;
}
.ghost {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}
.no-js .js-only,
.js .nojs-only {
  display: none !important;
}
.nojs-only {
  font-weight: 600;
}

/* 2. Problem */
.problem .wrap {
  text-align: center;
}
.problem-line {
  margin: 0 auto 24px;
  max-width: 28ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw + 1rem, 2.25rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.problem-sub {
  margin: 0 auto;
  color: var(--ink-muted);
}

/* 3. How it works */
.how h2 {
  margin-bottom: 56px;
}
.steps {
  display: grid;
  gap: 48px;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}
.step-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 6px 0 8px;
}
.step-body > p {
  color: var(--ink-muted);
  margin-bottom: 20px;
}
@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  .step {
    grid-template-columns: 1fr;
  }
}
.mini {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  font-size: 0.875rem;
}
.mini-title {
  font-weight: 600;
  margin-bottom: 8px;
}
.mini-rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 5px 0;
  border-top: 1px solid var(--rule);
}
.mini-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mini-field {
  padding: 6px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
}
.mini-stepper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  color: var(--ink-muted);
}
.mini-stepper b {
  color: var(--ink);
}
.mini-paper {
  display: grid;
  gap: 10px;
  max-width: 15rem;
  padding: 18px 18px 14px;
  background: #fff;
  border-color: #e4dccf;
  color: #221d17;
  border-radius: 4px;
  transform: rotate(-2deg);
}
.ruled {
  display: block;
  height: 1px;
  background: #d9d0c2;
}
.ruled:nth-child(2) {
  width: 80%;
}
.ruled:nth-child(3) {
  width: 64%;
}
.paper-service {
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f8e4d8;
  color: #842f12;
  font-weight: 600;
  font-size: 0.875rem;
}

/* 4. Features */
.feature {
  display: grid;
  gap: 48px;
  align-items: center;
}
.feature-text h3 {
  margin-bottom: 20px;
}
.feature-text p:not(.overline) {
  color: var(--ink-muted);
}
@media (min-width: 960px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
  .feature-flip .feature-text {
    order: 2;
  }
}
.spec-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.shop {
  display: grid;
  gap: 12px;
}
.shop .label {
  margin-bottom: 6px;
}
.shop-list li {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 8px;
}
.shop-list li + li {
  border-top: 1px solid var(--rule);
}
.shop-list .item {
  font-weight: 500;
}
.shop-list .item b {
  font-weight: 600;
  margin-left: 6px;
}
.shop-list .for {
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.sweep {
  background-image: linear-gradient(var(--accent-soft), var(--accent-soft));
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.spec-more {
  font-size: 0.875rem;
  color: var(--ink-muted);
  padding-left: 4px;
}

/* Timeline */
.tl {
  position: relative;
  padding-left: 28px;
}
.tl::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 18px;
  width: 2px;
  background: var(--rule-strong);
}
.tl-track {
  position: absolute;
  left: 2px;
  top: 6px;
  bottom: 18px;
  width: 12px;
}
.tl-now {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.tl-day {
  margin: 4px 0 6px;
}
.tl-list + .tl-day {
  margin-top: 18px;
}
.tl-list li {
  display: flex;
  flex-wrap: wrap;
  column-gap: 14px;
  padding: 6px 0;
  font-size: 0.9375rem;
}
.tl-time {
  min-width: 7.5rem;
  color: var(--ink-muted);
  font-weight: 500;
}
.tl-list .tl-service {
  margin-top: 8px;
  margin-left: -10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  align-items: center;
}
.tl-service .tl-time {
  color: var(--accent-strong);
  font-weight: 700;
}
.tl-glyph {
  margin-left: auto;
  color: var(--accent-strong);
}

/* Prep sheet specimen: always white paper */
.sheets {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 22rem;
  padding: 12px 12px 12px 0;
}
.sheet {
  aspect-ratio: 210 / 297;
  background: #fff;
  color: #000;
  border-radius: 3px;
  padding: 9% 8%;
}
.sheet-back {
  position: absolute;
  inset: 12px 0 0 12px;
  transform: rotate(-2deg);
  display: grid;
  align-content: start;
  gap: 18px;
  padding-top: 18%;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 10px 24px -10px rgb(0 0 0 / 0.2);
}
.sheet-front {
  position: relative;
  transform: rotate(1.5deg);
  box-shadow: var(--shadow-deep);
  font-size: 9px;
  line-height: 1.5;
  transition: transform 320ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .sheet-front:hover {
    transform: rotate(0deg);
  }
}
.sheet-head {
  font: 600 11px/1.3 var(--font-display);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1.5px solid #000;
}
.sheet-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
.sheet-table th,
.sheet-table td {
  text-align: left;
  padding: 3px 0;
  border-bottom: 0.5px solid #999;
}
.sheet-table th:last-child,
.sheet-table td:last-child {
  text-align: right;
}
.sheet-sub {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}
.sheet-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 0.5px dotted #999;
}

/* The smaller things */
.h3 {
  margin-bottom: 32px;
}
.tiles {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tile {
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
}
.tile .icon {
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 12px;
}
.tile h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.tile p {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* 5. Live app */
.live h2 {
  margin-bottom: 16px;
}
.live .measure {
  color: var(--ink-muted);
  margin-bottom: 40px;
}
.live .measure strong {
  color: var(--ink);
}
.frame {
  margin: 0 auto;
  width: 100%;
  max-width: 400px;
  border-radius: 28px;
  border: 1px solid var(--rule);
  background: var(--surface);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}
.frame-bar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.dots {
  display: none;
  position: absolute;
  left: 16px;
  gap: 8px;
}
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rule-strong);
}
.pill {
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--sunken);
  color: var(--ink-muted);
  font-size: 0.875rem;
}
.frame iframe {
  display: block;
  width: 100%;
  height: min(680px, 80svh);
  border: 0;
  background: var(--bg);
}
@media (min-width: 960px) {
  .frame {
    max-width: none;
    border-radius: 14px;
  }
  .dots {
    display: flex;
  }
  .frame iframe {
    height: 720px;
  }
}
.frame-note {
  margin: 24px auto 0;
  max-width: 62ch;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  text-wrap: balance;
}
.frame-note .link-pad {
  display: flex;
  width: fit-content;
  margin: 4px auto 0;
}

/* 6. Questions */
.faq-inner {
  max-width: calc(44rem + 2 * var(--pad));
}
.faq h2 {
  margin-bottom: 32px;
  text-align: center;
}
details {
  border-top: 1px solid var(--rule);
}
details:last-of-type {
  border-bottom: 1px solid var(--rule);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.pm {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.pm::before,
.pm::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.pm::after {
  transform: rotate(90deg);
  transition: transform 200ms var(--ease);
}
details[open] .pm::after {
  transform: rotate(0deg);
}
details p {
  padding-bottom: 18px;
  color: var(--ink-muted);
}

/* 7. Closing */
.closing-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 20px;
}
.closing-inner p {
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.logo-large {
  color: var(--accent);
  overflow: visible;
}

/* 8. Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 28px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 32px;
  row-gap: 8px;
}
.site-footer .brand {
  padding-top: 0;
  align-items: center;
}
.site-footer .brand .logo {
  transform: none;
}
.site-footer p {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* Motion: only when allowed, and only once JS has said so */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
/* One keyframes name at every width: swapping animation-name in a media query
   restarts the animation whenever the viewport crosses the breakpoint. */
@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(calc(var(--rot) + var(--settle-tilt)));
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--rot));
  }
}
@keyframes roll-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes roll-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@keyframes sweep {
  from {
    background-size: 0% 100%;
  }
  to {
    background-size: 100% 100%;
  }
}
@keyframes lift {
  0% {
    transform: translateY(0);
  }
  /* SVG user units: the 96px logo is 32 units wide, so 2 units is 6px. */
  35% {
    transform: translateY(-2px);
  }
  65% {
    transform: translateY(0.35px);
  }
  82% {
    transform: translateY(-0.3px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes travel {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .motion .hero-line {
    animation: rise 480ms var(--ease) both;
    animation-delay: calc(var(--i) * 80ms);
  }
  .motion .ticket-wrap {
    animation: settle 600ms var(--ease) 120ms backwards;
  }
  .motion .roll {
    animation: roll-in 160ms var(--ease) both;
  }
  .motion .roll .ghost {
    animation: roll-out 160ms var(--ease) both;
  }
  .motion .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 480ms var(--ease),
      transform 480ms var(--ease);
    transition-delay: calc(var(--d, 0) * 100ms);
  }
  .motion .problem .reveal {
    transform: none;
  }
  .motion .reveal.is-in {
    opacity: 1;
    transform: none;
  }
  .motion .shop.reveal .sweep {
    background-size: 0% 100%;
  }
  .motion .shop.is-in .sweep {
    background-size: 100% 100%;
    animation: sweep 600ms var(--ease) 360ms both;
  }
  .motion .closing-inner.is-in .dome,
  .motion .closing-inner.is-in .handle {
    animation: lift 700ms var(--ease) 200ms both;
  }
  @supports (animation-timeline: view()) {
    .motion .tl-track {
      animation: travel linear both;
      animation-timeline: view();
      animation-range: entry 70% cover 65%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
