/* Dispensify kit: charcoal ground, one teal for actions, mint only for small state cues.
   Hairline borders, 4px corners on controls and photos, 14px radius on the CTA. Nothing under 14px. */
:root {
  --bg: #0d1311;
  --panel: #121c19;
  --panel-2: #17241f;
  --line: rgba(247, 249, 246, 0.09);
  --line-strong: rgba(247, 249, 246, 0.2);
  --text: #f7f9f6;
  --muted: #9fada7;
  --teal: #2e8c77;
  --teal-hover: #277b6b;
  --mint: #84cca0;
  --danger: #e2735f;
  --r: 4px;
  --r-cta: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 'Mulish', system-ui, sans-serif; min-height: 100vh; }
a { color: var(--mint); }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2 { text-wrap: balance; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.wide { max-width: 1200px; }

/* ---------- header ---------- */
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
header.top img.logo { height: 26px; width: auto; }
header.top img.lockup { height: 29px; width: auto; opacity: 0.92; }
header.top .meta { color: var(--muted); font-size: 14px; text-align: right; }

/* ---------- hero: centered co-brand lockup (same build as the BLAZE banner lockup) ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before { /* one faint diagonal light band, decoration only */
  content: ''; position: absolute; left: -10%; right: -10%; top: 38%; height: 220px; transform: rotate(-12deg);
  background: linear-gradient(90deg, transparent, rgba(46, 140, 119, 0.07) 40%, rgba(132, 204, 160, 0.05) 60%, transparent);
  pointer-events: none;
}
.hero-center { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 88px; padding-bottom: 32px; }

.colock { position: relative; width: min(680px, 100%); aspect-ratio: 680 / 112; margin-bottom: 56px; }
.colock svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.colock .mj, .colock .ds { position: absolute; transform: translate(-50%, -50%); }
.colock .mj { left: 23.4%; top: 50%; width: 31%; height: auto; }
.colock .ds { left: 76.3%; top: 55%; width: 33%; line-height: 0; }
.colock .ds img { width: 100%; height: auto; }

h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.03; font-weight: 800; letter-spacing: -0.035em; margin: 0 0 18px; }
h1 .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lede { color: var(--muted); font-size: 19px; line-height: 1.5; margin: 0 0 36px; max-width: 600px; text-wrap: pretty; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 1040px; margin: 8px 0 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.facts div { padding: 26px 24px; border-right: 1px solid var(--line-strong); }
.facts div:last-child { border-right: 0; }
.facts dt { color: var(--muted); font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }

.badge { position: absolute; top: 28px; right: 20px; width: 104px; height: auto; }

/* ---------- booking section ---------- */
.book { padding-top: 72px; scroll-margin-top: 16px; max-width: 1040px; }
#stage { min-height: 420px; }
.section-title { font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.03em; margin: 0; text-align: center; }
.down { display: block; width: 52px; height: 52px; margin: 16px auto 8px; color: var(--mint); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.book section.step > h2, .book section.step > .step-sub { text-align: center; }
.book .done-head { justify-content: center; }

h2 { font-size: 28px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.015em; }
.step-sub { color: var(--muted); margin: 0 0 24px; font-size: 18px; }
section.step { padding: 28px 0 8px; }
section.step-company { padding-top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* summary of choices */
.summary { border-top: 1px solid var(--line); margin-top: 24px; }
.summary:empty { display: none; }
.summary .row { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary .k { color: var(--muted); font-size: 14px; width: 64px; flex: none; }
.summary .v { font-weight: 700; flex: 1; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--mint); cursor: pointer; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* company rows: photo + copy, separated by hairlines (not tiles) */
.choices { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.choices li { border-bottom: 1px solid var(--line); }
.choice { width: 100%; display: flex; align-items: center; gap: 40px; text-align: left; background: none; border: 0; padding: 36px 8px 36px 0; cursor: pointer; transition: background 0.2s; }
.choice:hover, .choice:focus-visible { background: rgba(247, 249, 246, 0.025); outline: none; }
.choice:focus-visible { box-shadow: inset 2px 0 0 var(--mint); }
.choice .ph { flex: none; width: 260px; display: flex; align-items: center; justify-content: flex-start; padding-left: 8px; }
.choice .ph img { width: 230px; height: auto; }
.choice .ph img.logo-cloudbox { width: 196px; }
.choice .name { font-weight: 800; font-size: 30px; letter-spacing: -0.02em; display: block; }
.choice .desc { color: var(--muted); font-size: 17px; display: block; margin-top: 6px; max-width: 460px; }
.choice .go { margin-left: auto; flex: none; font-size: 17px; font-weight: 800; color: #fff; background: var(--teal); border-radius: var(--r-cta); padding: 16px 28px; box-shadow: 0 8px 24px rgba(46, 140, 119, 0.28); transition: background 0.2s, transform 0.2s; }
.choice:hover .go { background: var(--teal-hover); transform: translateY(-1px); }
.choice.simple { padding: 20px 8px 20px 4px; }

/* day picker: one segmented control */
.days { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; margin-bottom: 26px; }
.day { background: none; border: 0; border-right: 1px solid var(--line-strong); padding: 12px 8px; cursor: pointer; text-align: center; transition: background 0.2s; }
.day:last-child { border-right: 0; }
.day:hover { background: rgba(247, 249, 246, 0.04); }
.day b { display: block; font-size: 16px; font-weight: 800; }
.day .count { display: block; color: var(--muted); font-size: 14px; }
.day[aria-pressed='true'] { background: var(--text); color: var(--bg); }
.day[aria-pressed='true'] .count { color: #44514c; }

/* slots */
.slot-group + .slot-group { margin-top: 22px; }
.slot-label { color: var(--muted); font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.slot { border: 1px solid rgba(46, 140, 119, 0.7); background: var(--panel); border-radius: var(--r); padding: 14px 8px; font-weight: 700; font-size: 16px; cursor: pointer; font-variant-numeric: tabular-nums; transition: border-color 0.15s, background 0.15s; }
.slot:hover { border-color: var(--teal); background: var(--teal); color: #fff; }
.slot[disabled] { border-color: var(--line-strong); opacity: 0.28; cursor: not-allowed; text-decoration: line-through; }
.slot[disabled]:hover { border-color: var(--line-strong); background: var(--panel); color: inherit; }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* form */
form.details { display: grid; gap: 18px; max-width: 560px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 13px 14px; font-size: 16px; outline: none; transition: border-color 0.15s; }
.field input:focus, .field textarea:focus { border-color: var(--mint); }
.field textarea { min-height: 96px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--teal); color: #fff; border: 0; border-radius: var(--r-cta); padding: 15px 28px; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; transition: background 0.15s; }
.btn:hover { background: var(--teal-hover); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn.ghost { background: none; border: 1px solid var(--line-strong); color: var(--text); }
.btn.ghost:hover { border-color: var(--text); background: none; }
.btn.small { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.error { color: var(--danger); font-weight: 700; font-size: 15px; min-height: 1em; margin: 0; }

/* confirmation: a meeting ticket */
.done { padding: 36px 0 8px; }
.ticket { display: grid; grid-template-columns: 240px 1fr; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--panel); margin: 22px 0 26px; position: relative; }
.ticket .when { padding: 26px 24px; border-right: 1px dashed var(--line-strong); display: flex; flex-direction: column; justify-content: center; }
.ticket .when .d { font-weight: 700; color: var(--muted); font-size: 15px; }
.ticket .when .t { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; margin: 4px 0; }
.ticket .when .z { color: var(--muted); font-size: 14px; }
.ticket dl { display: grid; grid-template-columns: 76px 1fr; gap: 10px 16px; margin: 0; padding: 26px 24px; align-content: center; }
.ticket dt { color: var(--muted); font-size: 15px; }
.ticket dd { margin: 0; font-weight: 700; }
.ticket::before, .ticket::after { content: ''; position: absolute; left: 228px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); }
.ticket::before { top: -12px; clip-path: inset(50% 0 0 0); }
.ticket::after { bottom: -12px; clip-path: inset(0 0 50% 0); }
.done-head { display: flex; align-items: center; gap: 14px; }
.done-head .check { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; flex: none; }
.done-head h2 { margin: 0; font-size: 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

footer.foot { color: var(--muted); font-size: 14px; padding: 56px 0 40px; }
footer.foot .wrap { border-top: 1px solid var(--line); padding-top: 20px; }

/* ---------- phones ---------- */
@media (max-width: 720px) {
  header.top .wrap { height: 64px; }
  header.top img.logo { height: 22px; }
  header.top img.lockup { height: 24px; }
  .hero-center { padding-top: 84px; padding-bottom: 16px; }
  .colock { margin-bottom: 40px; }
  .badge { top: 14px; right: 16px; width: 56px; }
  .colock .mj { width: 36%; }
  .colock .ds { width: 38%; }
  h1 { font-size: clamp(36px, 10.5vw, 48px); margin-bottom: 14px; }
  .lede { font-size: 17px; margin-bottom: 26px; }
  .facts { margin-top: 4px; }
  .facts div { padding: 14px 6px; }
  .facts dt { font-size: 14px; margin-bottom: 2px; }
  .facts dd { font-size: 17px; white-space: normal; }
  .book { padding-top: 48px; }
  #stage { min-height: 0; }
  .section-title { font-size: 34px; }
  .down { width: 36px; height: 36px; }
  .choice { flex-wrap: wrap; gap: 14px 16px; padding: 26px 0; }
  .choice .ph { width: 100%; padding-left: 0; }
  .choice .ph img { width: 170px; }
  .choice .ph img.logo-cloudbox { width: 146px; }
  .choice .name { font-size: 24px; }
  .choice .desc { font-size: 16px; }
  .choice .go { width: 100%; text-align: center; margin-left: 0; }
  h2 { font-size: 24px; }
  .step-sub { font-size: 16px; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .two { grid-template-columns: 1fr; }
  .ticket { grid-template-columns: 1fr; }
  .ticket .when { border-right: 0; border-bottom: 1px dashed var(--line-strong); }
  .ticket::before, .ticket::after { display: none; }
  .summary .k { width: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .down { animation: none; }
}

/* ---------- admin / partner grid (unchanged look) ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px 0 18px; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 0 0 20px; }
.stat .n { font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 14px; }
.admin .days, .team .days { display: flex; gap: 8px; border: 0; margin-bottom: 20px; flex-wrap: wrap; }
.admin .day, .team .day { border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 15px; }
.admin .day[aria-pressed='true'], .team .day[aria-pressed='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }
.grid-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 12px; max-height: 72vh; }
table.grid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 640px; }
table.grid th, table.grid td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0; vertical-align: top; }
table.grid thead th { position: sticky; top: 0; background: var(--panel); z-index: 2; text-align: left; padding: 10px 12px; font-size: 14px; }
table.grid thead tr.co th { top: 0; color: var(--muted); font-weight: 700; }
table.grid thead tr.rp th { top: 39px; font-weight: 800; }
table.grid th.time { position: sticky; left: 0; background: var(--panel); z-index: 1; width: 92px; padding: 10px 12px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.grid thead th.time { z-index: 3; }
.cell { display: block; width: 100%; min-height: 54px; padding: 8px 10px; background: none; border: 0; text-align: left; cursor: default; font-size: 14px; line-height: 1.35; }
.cell.empty { color: transparent; }
.admin .cell.empty { cursor: pointer; }
.admin .cell.empty:hover { color: var(--muted); background: rgba(247, 249, 246, 0.03); }
.cell.booked { background: rgba(46, 140, 119, 0.16); box-shadow: inset 3px 0 0 var(--teal); cursor: pointer; }
.cell.booked b { display: block; font-size: 14px; }
.cell.booked span { color: var(--muted); display: block; }
.cell.booked + .cell.booked { border-top: 1px solid var(--line); }
.cap { display: block; padding: 4px 10px 8px; color: var(--muted); font-size: 14px; }
.cell.blocked { background: repeating-linear-gradient(135deg, rgba(247,249,246,0.05) 0 6px, transparent 6px 12px); color: var(--muted); cursor: pointer; }
.cell.past { opacity: 0.5; }
.links { margin: 40px 0; }
.links table { width: 100%; border-collapse: collapse; font-size: 14px; }
.links td, .links th { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.links th { color: var(--muted); font-weight: 700; }
.links code { font-size: 14px; color: var(--muted); word-break: break-all; }
.tag { display: inline-block; font-size: 14px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 9px; margin-left: 6px; }
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line-strong); border-radius: 16px; padding: 24px; width: min(460px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
dialog dl { display: grid; grid-template-columns: 84px 1fr; gap: 8px 14px; margin: 16px 0 22px; font-size: 15px; }
dialog dt { color: var(--muted); }
dialog dd { margin: 0; word-break: break-word; }
.gate { max-width: 360px; margin: 80px auto; display: grid; gap: 14px; }
