/* The public site: landing, pricing, Pro, legal. Colours and fonts come from
   web/tokens.css, the same as the app's, so the site leads into one product. */

* { box-sizing: border-box; }

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

body.site {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 3.9rem); line-height: 1.03; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.25rem); line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 0.9em; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }

.muted { color: var(--muted); }
.fine { font-size: 0.875rem; color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.skip:focus { top: 12px; }

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

.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 15px; border-radius: 8px;
  font: 600 0.9375rem/1.3 var(--font-sans); text-decoration: none; cursor: pointer;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
}
.button:hover { border-color: var(--ink); text-decoration: none; }
.button.primary { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.button.primary:hover { filter: brightness(1.08); }
.button.large { padding: 13px 24px; font-size: 1.0625rem; border-radius: 10px; }

/* Masthead and footer ------------------------------------------------------ */

.masthead { border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.wordmark {
  font: 600 1.375rem/1 var(--font-display); letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; margin: 0;
}
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 0.9375rem; }
.site-nav a:not(.button) { color: var(--muted); text-decoration: none; }
.site-nav a:not(.button):hover, .site-nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) {
  .site-nav { gap: 16px; }
  .site-nav a[href$="/pricing"], .site-nav a[href$="/pro"] { display: none; }
}

.colophon { margin-top: 112px; padding-block: 40px 28px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.colophon-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.colophon .wordmark { font-size: 1.125rem; margin-bottom: 6px; }
.colophon nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.colophon nav a { color: var(--muted); text-decoration: none; }
.colophon nav a:hover { color: var(--ink); }
.copyright { margin-top: 28px; font-size: 0.8125rem; }

/* Sections ------------------------------------------------------------------ */

main > section { margin-top: 112px; }
main > section:first-child { margin-top: 0; }
.section-lede { margin-top: 14px; max-width: 60ch; color: var(--muted); font-size: 1.0625rem; }

/* Hero: the copy beside the room. */
.hero {
  display: grid; grid-template-columns: minmax(0, 4.9fr) minmax(0, 7.1fr);
  align-items: center; gap: 48px; padding-block: 56px 24px;
}
.hero-copy { max-width: 34rem; }
.lede { margin-top: 22px; font-size: 1.1875rem; line-height: 1.55; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 30px; }
.actions .quiet { color: var(--ink); font-weight: 500; }
.hero .fine { margin-top: 16px; }
.hero-plan { margin: 0; }
.legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  margin: 14px 0 0; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--muted);
}
.legend li { display: flex; align-items: center; gap: 7px; }
.swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--fill); }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 40px; }
}

/* The floor plan (marketing/_plan.svg), drawn like the editor draws it. */
.plan { display: block; width: 100%; height: auto; overflow: visible; }
.plan .room { fill: var(--room); stroke: var(--line-strong); stroke-width: 4; }
.plan .grid-line { fill: none; stroke: var(--canvas-grid); stroke-width: 1.5; }
.plan .dimension line { stroke: var(--muted); stroke-width: 2.5; }
.plan .dimension text {
  fill: var(--muted); font: 500 44px var(--font-sans); text-anchor: middle;
  font-variant-numeric: tabular-nums;
}
.plan .fixture { fill: var(--fixture-fill); stroke: var(--table-stroke); stroke-width: 2; stroke-opacity: 0.45; }
.plan .fixture-label {
  fill: var(--muted); font: 500 36px var(--font-sans); text-anchor: middle; dominant-baseline: central;
}
.plan .top { fill: var(--table-fill); stroke: var(--table-stroke); stroke-width: 3; }
.plan .number, .plan .name {
  fill: var(--ink); font-family: var(--font-display); font-weight: 600;
  text-anchor: middle; dominant-baseline: central;
}
.plan .number { font-size: 60px; }
.plan .name { font-size: 34px; }
.plan .seat { fill: var(--seat-empty); stroke: var(--table-stroke); stroke-width: 2.5; }
.plan .seat.taken { fill: var(--fill); stroke: var(--fill); }

/* On load, the story in marketing/hero.py plays once. Seats fill (and one
   empties) at the moments in their markup; everything else that moves has
   keyframes written into the drawing, all on one clock. */
.plan .seat.fills {
  transform-box: fill-box; transform-origin: center;
  animation: take 0.45s var(--at) both cubic-bezier(0.3, 1.5, 0.5, 1);
}
.plan .seat.fills.leaves {
  animation: take 0.45s var(--at) both cubic-bezier(0.3, 1.5, 0.5, 1), leave 0.3s var(--away) forwards;
}
@keyframes take {
  0% { fill: var(--seat-empty); stroke: var(--table-stroke); transform: scale(1); }
  45% { fill: var(--fill); stroke: var(--fill); transform: scale(1.35); }
  100% { fill: var(--fill); stroke: var(--fill); transform: scale(1); }
}
@keyframes leave {
  from { fill: var(--fill); stroke: var(--fill); }
  to { fill: var(--seat-empty); stroke: var(--table-stroke); }
}
.plan .moves { animation-fill-mode: both; animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
/* Hidden at the end of the story, and so when motion is off. */
.plan .ghost { opacity: 0; }
/* Resized from the top-left corner. */
.plan .from-corner { transform-box: fill-box; transform-origin: 0 0; }

.plan .card-body { fill: var(--surface); stroke: var(--line-strong); stroke-width: 3; filter: drop-shadow(0 14px 18px rgb(0 0 0 / 0.18)); }
.plan .card-name { fill: var(--ink); font: 600 40px var(--font-sans); dominant-baseline: central; }
.plan .card-count { fill: var(--fill); }
.plan .card-count-label {
  fill: #fff; font: 700 32px var(--font-sans); text-anchor: middle; dominant-baseline: central;
}
.plan .warning circle { fill: none; stroke: var(--danger); stroke-width: 6; }
.plan .warning text {
  fill: var(--danger); font: 600 36px var(--font-sans); text-anchor: middle;
  paint-order: stroke; stroke: var(--room); stroke-width: 14px; stroke-linejoin: round;
}
.plan .guides line { stroke: var(--guide); stroke-width: 4; stroke-dasharray: 16 12; }
.plan .selection rect { fill: none; stroke: var(--select); stroke-width: 5; }
.plan .selection .handle { fill: var(--surface); }
.plan .pointer { fill: var(--ink); stroke: var(--surface); stroke-width: 5; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) {
  .plan .seat.fills, .plan .moves { animation: none; }
}

/* Screenshots of the app. */
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  box-shadow: 0 30px 60px -36px rgb(40 28 16 / 0.35);
}

/* How it works: a real sequence, so it's numbered, like table-number cards. */
.steps h2 { max-width: 20ch; }
.steps ol { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 88px; }
.step {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px; align-items: center;
}
.step-number {
  display: block; margin-bottom: 10px;
  font: 600 4.5rem/1 var(--font-display); color: var(--line-strong);
  font-variant-numeric: oldstyle-nums;
}
.step p { margin-top: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .steps ol { gap: 64px; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .step-number { font-size: 3.5rem; }
}

/* Warnings: a band in the plan's canvas colour, with the list styled like the
   editor's. */
.checks { background: var(--canvas); padding-block: 88px; }
.checks-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.checks-text p { margin-top: 16px; color: var(--muted); }
.warnings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.9375rem; }
.warnings li {
  padding: 12px 16px 12px 18px; border-radius: 8px; background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--warn);
}
.warnings li.severe { border-left-color: var(--danger); }
.warnings li.info { border-left-color: var(--line-strong); color: var(--muted); }
@media (max-width: 900px) {
  .checks { padding-block: 64px; }
  .checks-row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

.together { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.together-text p { margin-top: 14px; color: var(--muted); }
.together-text h2 + p + h2 { margin-top: 48px; }
@media (max-width: 900px) {
  .together { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* Plans: the event pass is the product, so it gets the room. */
.plans {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px; margin-top: 40px; align-items: start;
}
.plans article p + p { margin-top: 10px; }
.plan-pass {
  padding: 36px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: inset 0 4px 0 var(--accent);
}
.price { margin: 10px 0 14px; color: var(--muted); }
.price .amount {
  margin-right: 6px; color: var(--ink);
  font: 600 3.25rem/1 var(--font-display); letter-spacing: -0.02em;
}
.plan-side .price .amount { font-size: 1.75rem; }
.plan-pass .button { margin-top: 28px; }
.plan-pass .fine { margin-top: 12px; }
.plan-side { display: grid; gap: 32px; padding-top: 8px; }
.plan-side article { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.plan-side article:first-child { border-top: 0; padding-top: 0; }
.plan-side p { color: var(--muted); }
.plan-side p:first-of-type { color: var(--ink); }
.plan-side a { display: inline-block; margin-top: 12px; font-weight: 600; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
/* Bullets are seats: a filled one for each thing you get. */
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 0.5em;
  width: 11px; height: 11px; border-radius: 50%; background: var(--accent);
}
@media (max-width: 900px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-pass { padding: 28px 22px; }
}

/* The pricing page: a column for each plan. */
/* Positioned, so the screen-reader text in its cells (.sr-only) scrolls inside
   it rather than widening the page. */
.table-scroll { position: relative; overflow-x: auto; }
.matrix { --feature: 34%; }
.matrix table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 0.9375rem; }
/* Top-aligned, so a row's marks line up when one of them has words beneath. */
.matrix th, .matrix td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.matrix thead th { padding-top: 24px; border-bottom: 0; text-align: center; font: 600 1.375rem/1.2 var(--font-display); }
.matrix thead th:first-child { width: var(--feature); }
/* The event pass is the product, so its column is raised. */
.matrix tr > :nth-child(3) { background: var(--surface); }
.matrix thead th.featured { box-shadow: inset 0 3px 0 var(--accent); }
.matrix .offer td { padding-bottom: 24px; text-align: center; border-bottom-color: var(--line-strong); }
.matrix .amount {
  display: block; color: var(--ink);
  font: 600 2rem/1.1 var(--font-display); letter-spacing: -0.02em;
}
.matrix .amount.soon { font-size: 1.375rem; line-height: 1.6; }
.matrix .offer .fine { display: block; margin-top: 4px; }
.matrix .offer a { margin-top: 16px; }
.matrix .offer a:not(.button) { display: inline-block; font-weight: 600; }
.matrix .offer .button + .fine { margin-top: 10px; }
.matrix tbody th { text-align: left; font-weight: 500; }
.matrix .group > * { padding-top: 36px; border-bottom-color: var(--line-strong); }
.matrix .group th { font: 600 1.1875rem var(--font-display); }
.matrix td { text-align: center; color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
/* A tick for what a plan includes, a dash for what it doesn't, each above any
   words in the cell. */
.matrix :is(.yes, .no)::before { content: ""; display: block; margin-inline: auto; }
.matrix .yes::before {
  width: 22px; height: 22px; background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.matrix .no::before { width: 14px; height: 2px; margin-block: 10px; border-radius: 1px; background: var(--line-strong); }
/* Under the table: the nonprofit pass, which isn't a plan of its own. */
.matrix-note { max-width: 68ch; margin-top: 24px; color: var(--muted); font-size: 0.9375rem; }
.matrix .yes:not(:has(.sr-only))::before { margin-bottom: 6px; }
.matrix .no:not(:has(.sr-only))::before { margin-bottom: 16px; }
@media (max-width: 760px) {
  .matrix { --feature: 9.5rem; }
  .matrix table { min-width: calc(var(--feature) + 3 * 10rem); font-size: 0.875rem; }
  .matrix th, .matrix td { padding-inline: 10px; }
  .matrix .amount { font-size: 1.625rem; }
  /* The features stay in view while the plans scroll past. */
  .matrix tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); }
}

/* Questions. */
.questions h2 { margin-bottom: 20px; }
.faq { max-width: 50rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px; padding: 18px 0;
  cursor: pointer; list-style: none; font: 600 1.1875rem/1.35 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-family: var(--font-sans); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 20px; max-width: 65ch; color: var(--muted); }
.questions > p { margin-top: 20px; }

.closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.closing h2 { max-width: 22ch; }

/* Inner pages ----------------------------------------------------------- */

.page-head { padding-top: 64px; }
.page-head h1 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.25rem); max-width: 22ch; }
.page-head + section { margin-top: 48px; }

.pro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; margin-top: 56px; align-items: start; }
.pro-features dl { margin: 24px 0 0; }
.pro-features dt { margin-top: 26px; font: 600 1.1875rem/1.3 var(--font-display); }
.pro-features dd { margin: 6px 0 0; color: var(--muted); }
.pro-features dl + h2 { margin-top: 48px; }
.pro-meanwhile { padding: 32px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.pro-meanwhile h2 { font-size: 1.625rem; }
.pro-meanwhile p { margin-top: 12px; color: var(--muted); }
.pro-meanwhile .button { margin-top: 24px; }
@media (max-width: 900px) {
  .pro { grid-template-columns: minmax(0, 1fr); }
  .pro-meanwhile { padding: 24px 20px; }
}

.legal { padding-top: 64px; }
.legal > * { max-width: 46rem; }
.legal h1 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3rem); }
.legal h1 + p { margin-top: 10px; }
.legal h2 { margin: 40px 0 12px; font-size: 1.375rem; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 8px; }
