/* =========================================================
   TBXH low-fidelity prototype — greyscale wireframe styles
   ========================================================= */
:root {
  --ink: #1f1f1f;
  --mid: #5f5f5f;
  --soft: #8a8a8a;
  --line: #c4c4c4;
  --fill: #e6e6e6;
  --fill-2: #f3f3f3;
  --bg: #ffffff;
  --accent: #1f1f1f;
  --note: #fff1a8;
  --note-ink: #5a4a00;
  --task: #222;
  --radius: 6px;
  --wrap: 1160px;
  --gutter: 16px;
  --header-h: 64px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); line-height: 1.5; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .9em; }
.muted { color: var(--mid); }
.lede { font-size: 1.15rem; color: var(--mid); max-width: 60ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .75em 1.3em; border-radius: var(--radius); border: 2px solid var(--accent);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2;
  background: transparent; color: var(--ink); white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #444; border-color: #444; }
.btn-ghost:hover { background: var(--fill-2); }
.btn-small { padding: .45em .9em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--line); }
:focus-visible { outline: 3px solid #4a7bd0; outline-offset: 2px; }

/* ---------- Placeholders ---------- */
.ph {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 180px; background-color: var(--fill); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-align: center; padding: 1rem;
  background-image:
    linear-gradient(to top right, transparent calc(50% - 1px), var(--line) 50%, transparent calc(50% + 1px)),
    linear-gradient(to bottom right, transparent calc(50% - 1px), var(--line) 50%, transparent calc(50% + 1px));
  margin-bottom: 1rem;
}
.ph > span { position: relative; background: var(--fill); color: var(--mid); padding: .3em .7em; font-size: .85rem; border-radius: 4px; }
.ph-wide { min-height: 320px; }
.ph-small { min-height: 80px; }
.ph-fill { position: absolute; inset: 0; min-height: 0; border: 0; border-radius: 0; margin: 0; align-items: flex-start; justify-content: flex-end; padding: 1rem; }
.ph-logo { min-height: 56px; flex: 1 1 120px; margin: 0; }

/* ---------- Notes (facilitator) ---------- */
.note {
  display: none; background: var(--note); color: var(--note-ink); font-size: .78rem; font-weight: 500;
  padding: .15em .5em; border-radius: 3px; margin-left: .3em; vertical-align: middle;
}
p.note { display: none; margin: .8rem 0 0; padding: .4em .7em; }
body.show-notes .note { display: inline-block; }
body.show-notes p.note { display: block; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.logo { font-weight: 800; font-size: 1.4rem; letter-spacing: .04em; text-decoration: none; margin: 0; }
.main-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.main-nav > a, .dd-btn {
  padding: .5em .75em; text-decoration: none; border-radius: var(--radius); font: inherit; font-weight: 500;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.main-nav > a:hover, .dd-btn:hover { background: var(--fill-2); }
.main-nav .active { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.dd { position: relative; }
.dd-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem; box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.dd-menu a { display: block; padding: .5em .75em; text-decoration: none; border-radius: 4px; }
.dd-menu a:hover { background: var(--fill-2); }
.dd-menu a.sub { padding-left: 1.75em; color: var(--mid); font-size: .92rem; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { display: block; }
.nav-toggle { display: none; margin-left: auto; font: inherit; font-weight: 600; background: none; border: 2px solid var(--ink); border-radius: var(--radius); padding: .4em .8em; cursor: pointer; }

/* ---------- Task banner ---------- */
#task-banner { background: var(--task); color: #fff; position: sticky; top: 0; z-index: 50; }
#task-banner .task-inner { max-width: var(--wrap); margin: 0 auto; padding: .7rem var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
#task-banner p { margin: 0; flex: 1 1 300px; }
.task-label { text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; background: #fff; color: var(--task); padding: .2em .6em; border-radius: 3px; font-weight: 700; }
#task-banner .btn-ghost { color: #fff; border-color: #fff; }
#task-banner .btn-ghost:hover { background: #444; }
body.has-task .site-header { top: var(--banner-h, 52px); }

/* ---------- Sections ---------- */
.block { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.block.alt { background: var(--fill-2); }
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0; border-bottom: 1px solid var(--line); background: var(--fill-2); }
.crumbs { font-size: .85rem; color: var(--soft); }
.crumbs a { color: var(--mid); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--mid); }

.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: center; padding: 3rem 0; }
.hero-content { position: relative; z-index: 1; }
.hero-card { max-width: 640px; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.hero .lede { color: var(--ink); }

.grid-2, .grid-3 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.align-center { align-items: center; }

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: #fff; display: flex; flex-direction: column; align-items: flex-start; }
.card > .btn, .card > .link-arrow { margin-top: auto; }
.card .ph { width: 100%; }
.tier-grid { margin-top: 1.5rem; }
.tier { position: relative; padding-top: 1.75rem; }
.tier-num { position: absolute; top: -14px; left: 1.25rem; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; margin: 0; }
.price { font-weight: 700; }
.price-big { font-size: 1.6rem; font-weight: 800; }

.stat { text-align: center; padding: 1rem; border: 1px dashed var(--line); border-radius: var(--radius); }
.stat-big { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin: 0; }

.icon-grid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.icon-grid li { display: flex; align-items: center; gap: .6rem; padding: .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem; flex-wrap: wrap; }
.ico { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--soft); flex: none; background: var(--fill); }

.quote { margin: 0; font-size: 1.1rem; }
.quote p { font-style: italic; }
.quote footer { font-size: .9rem; color: var(--mid); }
.logo-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

.tick-list { padding-left: 1.2rem; }
.tick-list li { margin-bottom: .5rem; }
.event-list { list-style: none; padding: 0; }
.event-list li { padding: .8rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 1rem; flex-wrap: wrap; }
.event-list strong { min-width: 110px; }

.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.media-grid .ph { margin: 0; }
.media-grid .ph:first-child { grid-row: span 2; }

.lines { height: .9rem; background: var(--fill); border-radius: 3px; margin: 1.2rem 0; }
.lines.short { width: 60%; }

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 1rem; }
.price-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 480px; }
.price-table th, .price-table td { padding: .8rem; border-bottom: 1px solid var(--line); text-align: left; }
.price-table th { background: var(--fill); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }

/* Tabs */
.tab-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tab-btns button { font: inherit; font-weight: 600; padding: .6em 1em; border: 2px solid var(--ink); background: #fff; border-radius: 999px; cursor: pointer; }
.tab-btns button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab-panel[hidden] { display: none; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; padding: .7em .8em; border: 1px solid var(--soft); border-radius: var(--radius); background: #fff; width: 100%; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.form-inline { grid-template-columns: 1fr auto; align-items: end; }
.form-block { background: var(--fill-2); border-top: 1px solid var(--line); }
.cta-card { gap: .5rem; }

/* Day-pass sticky bar */
.page-sticky {
  position: sticky; bottom: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  justify-content: center; padding: .7rem var(--gutter); background: #fff; border-top: 2px solid var(--ink);
  box-shadow: 0 -6px 16px rgba(0,0,0,.06);
}
.page-sticky span { font-weight: 700; margin-right: auto; }
body.on-daypass .sticky-cta { display: none !important; }

/* Footer */
.site-footer { background: var(--fill); padding: 3rem 0 6rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 1.5rem; }
.footer-grid a { display: block; padding: .2rem 0; color: var(--mid); text-decoration: none; }
.f-title { font-weight: 700; margin-bottom: .4rem; }

/* Mobile sticky CTA */
.sticky-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: .6rem var(--gutter); background: #fff; border-top: 1px solid var(--line); }

/* ---------- Dialogs ---------- */
.dlg { border: 0; border-radius: 10px; padding: 1.75rem; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.dlg::backdrop { background: rgba(0,0,0,.45); }
.dlg-close { position: absolute; top: .6rem; right: .8rem; font-size: 1.6rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--mid); }
.dlg { position: fixed; }
.step-count { font-size: .8rem; color: var(--soft); text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.slots label, .rating label, .seg label { position: relative; cursor: pointer; }
.slots input, .rating input, .seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slots span, .rating span, .seg span { display: block; text-align: center; padding: .6em; border: 1px solid var(--soft); border-radius: var(--radius); font-weight: 500; }
.slots input:checked + span, .rating input:checked + span, .seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.slots input:focus-visible + span, .rating input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid #4a7bd0; }
.rating { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.rating legend { font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.rating .rating-ends { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: .78rem; color: var(--soft); }
.rating .rating-ends span { border: 0; padding: 0; }
#results-copy { width: 100%; font: .8rem/1.4 ui-monospace, monospace; }

/* ---------- Prototype panel ---------- */
#proto-toggle {
  position: fixed; left: 12px; bottom: 12px; z-index: 60; font: inherit; font-size: .85rem; font-weight: 700;
  background: var(--note); color: var(--note-ink); border: 2px solid var(--note-ink); border-radius: 999px; padding: .5em 1em; cursor: pointer;
}
#proto-panel {
  position: fixed; left: 12px; bottom: 60px; z-index: 60; width: min(360px, calc(100vw - 24px)); max-height: calc(100vh - 80px); overflow-y: auto;
  background: #fffdf0; border: 2px solid var(--note-ink); border-radius: 10px; padding: 1rem; box-shadow: 0 12px 40px rgba(0,0,0,.2); font-size: .9rem;
}
#proto-panel[hidden] { display: none; }
.pp-head { display: flex; justify-content: space-between; align-items: center; position: relative; }
.pp-head .dlg-close { position: static; }
.pp-sec { border-top: 1px solid #e5dca0; padding-top: .8rem; margin-top: .8rem; }
.pp-title { font-weight: 700; margin-bottom: .5rem; }
.pp-small { font-size: .8rem; color: var(--mid); margin: .5rem 0; }
.seg { display: grid; gap: .35rem; }
.seg span { text-align: left; background: #fff; }
.check { display: flex; gap: .5rem; align-items: center; margin-top: .6rem; }
#proto-panel select, #link-out { width: 100%; font: inherit; padding: .5em; border: 1px solid var(--soft); border-radius: var(--radius); background: #fff; }
#link-out { margin-top: .6rem; font-size: .75rem; }
.res-table { width: 100%; border-collapse: collapse; font-size: .8rem; margin-bottom: .5rem; }
.res-table th, .res-table td { border-bottom: 1px solid #e5dca0; padding: .3rem .25rem; text-align: left; }

/* Tester mode hides the prototype controls and notes */
body.clean #proto-toggle, body.clean #proto-panel { display: none !important; }
body.clean .note { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .header-cta { display: none; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; margin: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-header.nav-open .main-nav { display: flex; }
  .main-nav > a, .dd-btn { padding: .8em .5em; text-align: left; width: 100%; border-bottom: 1px solid var(--fill); border-radius: 0; }
  .dd-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 .5rem .75rem; min-width: 0; }
  .dd:hover .dd-menu { display: block; }
  .sticky-cta { display: block; }
  .site-footer { padding-bottom: 7rem; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  #proto-toggle { bottom: 76px; }
  #proto-panel { bottom: 124px; max-height: calc(100vh - 140px); }
  .page-sticky { bottom: 0; }
  body.on-daypass .site-footer { padding-bottom: 3rem; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .tier-grid { gap: 2rem; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .media-grid .ph:first-child { grid-column: span 2; grid-row: auto; }
  .hero { min-height: 82vh; align-items: flex-end; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .form-inline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .page-sticky span { flex-basis: 100%; text-align: center; margin: 0; }
  .page-sticky .btn { flex: 1; }
  .slots { grid-template-columns: 1fr; }
}