/* SeatSweep. One memorable thing: the seat map. Everything else stays quiet. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #18233a;
  --ink-2: #44526a;
  --paper: #f6f7f9;
  --white: #ffffff;
  --line: #d5dbe3;
  --seat: #3d6ea5;
  --seat-deep: #2b5283;
  --gold: #e3a008;
  --gold-ink: #7a5300;
  --gold-soft: #fcefc7;
  --rose: #c8364e;
  --rose-soft: #f8dde2;
  --mist: #9aa8ba;
  --mist-soft: #e4e9ef;
  --font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --measure: 68ch;
  --wrap: 1120px;
  --radius: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; }
a { color: var(--seat-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius); z-index: 10; }
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--white); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; }
.site-head nav { margin-left: auto; display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.site-head nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-head nav a:hover { text-decoration: underline; }
.who { color: var(--ink-2); font-size: 0.95rem; }

/* Type */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.25rem); font-weight: 760; max-width: 19ch; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 720; max-width: 26ch; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.18rem; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.small { font-size: 0.95rem; color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.7rem 1.3rem; border-radius: var(--radius); border: 2px solid var(--ink); font: 650 1.02rem/1.2 var(--font); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--seat-deep); border-color: var(--seat-deep); }
.btn-plain { background: transparent; color: var(--ink); }
.btn-plain:hover { background: var(--white); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 1.6rem 0 0.8rem; }

/* Hero */
.hero { padding: clamp(2rem, 4.5vw, 3.75rem) 0 clamp(2rem, 5vw, 4rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-map { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem 1.4rem 1.1rem; }
.stage { display: block; margin: 0 auto 1rem; width: 62%; height: 10px; border-radius: 0 0 40px 40px; background: var(--mist-soft); }
.stage-label { text-align: center; font-size: 0.85rem; color: var(--ink-2); margin: -0.6rem 0 1rem; }

/* Seat map */
.seatmap { display: block; width: 100%; height: auto; }
.seat use { fill: var(--seat); stroke: var(--seat-deep); }
.seat--unassigned use { fill: var(--gold-soft); stroke: var(--gold); }
.seat--unassigned .mark { fill: var(--gold); }
.seat--disabled use { fill: var(--ink-2); stroke: var(--ink); }
.seat--disabled .mark { stroke: var(--white); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.seat--dormant use { fill: var(--mist-soft); stroke: var(--mist); stroke-dasharray: 3 2.5; }
.seat--dormant .mark { stroke: var(--ink-2); stroke-width: 1.6; fill: none; stroke-linejoin: round; }
.seat--doubled use { fill: var(--rose); stroke: #9e2238; }
.seat--doubled .mark { fill: var(--white); stroke: var(--rose); stroke-width: 1.4; }
.seat--doubled .mark-text { font: 700 8px/1 var(--font); fill: var(--rose); text-anchor: middle; }

.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.4rem 1.2rem; margin: 1rem 0 0; padding: 0; list-style: none; font-size: 0.93rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 0.55rem; }
.legend svg { width: 22px; height: 22px; flex: none; }
.legend b { color: var(--ink); font-weight: 700; }

/* One orchestrated moment: the room fills, then the waste shows itself. */
@media (prefers-reduced-motion: no-preference) {
  .animate .seat { opacity: 0; animation: seat-in 380ms ease-out forwards; }
  .animate .seat.r1 { animation-delay: 70ms; }
  .animate .seat.r2 { animation-delay: 140ms; }
  .animate .seat.r3 { animation-delay: 210ms; }
  .animate .seat.r4 { animation-delay: 280ms; }
  .animate .seat.r5 { animation-delay: 350ms; }
  .animate .seat.r6 { animation-delay: 420ms; }
  .animate .seat.r7 { animation-delay: 490ms; }
  .animate .seat.r8 { animation-delay: 560ms; }
  .animate .seat.r9 { animation-delay: 630ms; }
  .animate .seat:not(.seat--used) use,
  .animate .seat:not(.seat--used) svg { animation: reveal 700ms ease-out 900ms backwards; }
  @keyframes seat-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes reveal { from { fill: var(--seat); stroke: var(--seat-deep); opacity: 0.25; } }
}

/* Sections */
.band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.band.white { background: var(--white); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3.5rem; margin-top: 2rem; }
.check svg { width: 40px; height: 40px; margin-bottom: 0.6rem; }
.check p { color: var(--ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.perms { margin: 1.2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.perms li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.perms code { font-family: var(--font); font-weight: 700; color: var(--ink); }
.perms + .small { margin-top: 0.9rem; }

/* Pricing table */
.price-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 1rem; background: var(--white); border: 1px solid var(--line); }
.price-table th, .price-table td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-size: 0.95rem; color: var(--ink-2); font-weight: 600; }
.price-table td.amount { font-size: 1.5rem; font-weight: 760; white-space: nowrap; }
.price-table td.amount span { font-size: 0.95rem; font-weight: 500; color: var(--ink-2); }

.faq dt { font-weight: 700; margin-top: 1.4rem; }
.faq dd { margin: 0.3rem 0 0; color: var(--ink-2); max-width: var(--measure); }

.site-foot { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--ink-2); font-size: 0.95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-foot nav { display: flex; gap: 1.25rem; }
.site-foot .marks { flex-basis: 100%; margin: 0; max-width: 92ch; font-size: 0.85rem; }
.site-foot a { color: var(--ink-2); }

/* App */
.app-main { padding: 2rem 0 4rem; min-height: 60vh; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2rem); margin: 0 0 1.5rem; }
.panel h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.notice { border-left: 4px solid var(--seat); background: var(--white); padding: 0.9rem 1.1rem; margin: 0 0 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; }
.notice.warn { border-color: var(--gold); background: var(--gold-soft); }
.notice.bad { border-color: var(--rose); background: var(--rose-soft); }
.notice p { margin: 0; }
.notice p + p { margin-top: 0.4rem; }
.progress { display: flex; align-items: center; gap: 0.8rem; color: var(--ink-2); }
.progress .dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--seat); border-right-color: transparent; animation: spin 0.9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .progress .dot { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

.summary { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: center; }
.big-number { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 780; letter-spacing: -0.03em; line-height: 1; margin: 0.2rem 0 0.4rem; }
.tallies { margin: 1.2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.tallies li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.tallies li span:last-child { font-weight: 700; }

.controls { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: end; margin: 0 0 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
select, input[type="number"], input[type="text"] { font: 500 1rem/1.3 var(--font); color: var(--ink); background: var(--white); border: 1.5px solid var(--mist); border-radius: var(--radius); padding: 0.55rem 0.7rem; min-height: 2.75rem; }
input[type="number"] { width: 7.5rem; }

.finding { margin-top: 2rem; }
.finding-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; }
.finding-head h2 { margin: 0; font-size: 1.45rem; }
.finding-head .cost { margin-left: auto; font-weight: 760; font-size: 1.25rem; }
.finding-head svg { width: 28px; height: 28px; align-self: center; }
.table-scroll { overflow-x: auto; margin-top: 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
table.data th, table.data td { text-align: left; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-weight: 650; color: var(--ink-2); background: var(--paper); position: sticky; top: 0; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: 0.82rem; padding: 0.05rem 0.45rem; border-radius: 4px; background: var(--mist-soft); color: var(--ink-2); margin-left: 0.35rem; white-space: nowrap; }
.empty { color: var(--ink-2); margin: 0.6rem 0 0; }
.locked { border: 1.5px dashed var(--mist); border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 0.8rem; color: var(--ink-2); background: var(--white); }

details.prices { margin-top: 2rem; }
details.prices summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 1rem; align-items: center; margin-top: 1rem; max-width: 40rem; }

/* Landing (purchase set-up) */
.ticket { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 2rem 0; }
.ticket-main { padding: clamp(1.5rem, 4vw, 2.5rem); }
.ticket-stub { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--paper); border-left: 2px dashed var(--line); }
.ticket dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.55rem 1.2rem; margin: 1rem 0 0; }
.ticket dt { color: var(--ink-2); }
.ticket dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.steps { margin: 1rem 0 0; padding-left: 1.3rem; }
.steps li { margin: 0.4rem 0; }
.steps li.done { color: var(--ink-2); }
.steps li.now { font-weight: 700; }

.prose { padding: 2.5rem 0 4rem; }
.prose h1 { max-width: none; }
.prose h2 { margin-top: 2rem; font-size: 1.45rem; max-width: none; }
.prose ul { max-width: var(--measure); padding-left: 1.3rem; }
.prose li { margin: 0.35rem 0; }

@media (max-width: 860px) {
  .hero .wrap, .split, .summary, .ticket { grid-template-columns: 1fr; }
  .ticket-stub { border-left: 0; border-top: 2px dashed var(--line); }
  .site-head nav { gap: 0.9rem; }
}
@media (max-width: 640px) {
  .checks { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 1rem; }
  .price-table td.amount { font-size: 1.25rem; }
  .site-head .wrap { flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.6rem; }
}
@media print {
  .site-head nav, .actions, .controls, details.prices, .site-foot { display: none; }
  body { background: var(--white); }
  .panel { border: 0; padding: 0; }
}
