/* EDHQ booking site: one stylesheet for every public page.
   Visual language matches the EDHQ landing page (rounded cards, pill buttons with an arrow disc,
   hollow display text, numbered steps), on black, with neutral greys (no blue tint). */

:root {
  color-scheme: dark;

  --bg: #06080c;
  --card: rgba(12, 13, 16, 0.92);
  --raised: #121418;          /* tiles and inputs inside the card */
  --raised-hover: #181a1f;
  --hair: rgba(255, 255, 255, 0.07);
  --hair-2: rgba(255, 255, 255, 0.12);
  --hair-3: rgba(255, 255, 255, 0.22);
  --fg: #f5f5f3;
  --muted: #9b9b9b;
  --faint: #55575c;
  --alt: #c4c4c4;             /* hollow text outline */
  --accent: #e9e9e6;          /* pill buttons and selected states */
  --accent-fg: #06080c;
  --danger: #f08a7e;
  --danger-bg: rgba(240, 138, 126, 0.08);

  --font-display: "Unbounded", "Inter", system-ui, sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --font-num: "Inter", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 24px;
  --gutter: clamp(16px, 4vw, 56px);
  --wrap: 1180px;
  --ease: cubic-bezier(0.16, 0.84, 0.24, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.svgdefs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Atmosphere: the landing page photo, dimmed, fading into black ---------- */
.atmos { position: absolute; inset: 0 0 auto 0; height: min(760px, 92svh); z-index: -1; overflow: hidden; pointer-events: none; }
.atmos img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: grayscale(0.35) brightness(0.55); }
.atmos::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 6%, rgba(6, 8, 12, 0.82) 45%, rgba(6, 8, 12, 0.6) 80%, rgba(6, 8, 12, 0.75)),
    linear-gradient(to right, rgba(6, 8, 12, 0.88), rgba(6, 8, 12, 0.35) 75%);
}

/* ---------- Nav ---------- */
.nav { max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter); height: 72px; display: flex; align-items: center; justify-content: space-between; }
.nav__logo img { height: 34px; width: auto; }
.nav__link { font: 500 12px/1 var(--font-num); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.nav__link:hover { color: var(--fg); }

/* ---------- Layout ---------- */
.layout {
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(20px, 5vw, 64px) var(--gutter) clamp(56px, 8vw, 96px);
  display: grid; gap: clamp(28px, 5vw, 72px);
}
@media (min-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: start; }
  .intro { position: sticky; top: 40px; }
}

/* ---------- Type ---------- */
.eyebrow { font: 600 12px/1.3 var(--font-num); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.display {
  margin: 0;
  font: 700 clamp(34px, 6.4vw, 64px)/1.08 var(--font-display);
  text-transform: uppercase; letter-spacing: -0.06em; word-spacing: 0.2em;
  text-wrap: balance;
}
.text-outline { display: block; color: #fff; filter: url(#hollow); padding-bottom: 0.08em; }
.h3 { margin: 0; font: 700 18px/1.25 var(--font-display); text-transform: uppercase; letter-spacing: -0.04em; word-spacing: 0.16em; }
.lead { color: var(--muted); font-size: clamp(15px, 1.3vw, 17px); max-width: 34rem; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.fine { font-size: 12px; color: var(--muted); }

/* ---------- Intro column ---------- */
.intro { display: grid; gap: 22px; align-content: start; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 9999px;
  border: 1px solid var(--hair-2); background: rgba(255, 255, 255, 0.04);
  font-size: 12px; font-weight: 500; padding: 6px 12px; color: var(--fg);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(233, 233, 230, 0.14); }

/* Numbered steps (desktop): doubles as the progress indicator */
.steps { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--hair); display: none; }
@media (min-width: 1080px) { .steps { display: grid; } }
.steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--hair); color: var(--faint); transition: color 0.3s; }
.steps b { font: 600 13px/1.5 var(--font-num); letter-spacing: 0.08em; }
.steps strong { display: block; font: 700 14px/1.4 var(--font-display); text-transform: uppercase; letter-spacing: -0.03em; word-spacing: 0.14em; }
.steps span { display: block; font-size: 14px; }
.steps li[data-state="done"] { color: var(--muted); }
.steps li[data-state="done"] span { color: var(--fg); }
.steps li[data-state="current"] { color: var(--fg); }
.steps li[data-state="current"] span { color: var(--muted); }

/* Once someone has started, the phone layout drops the intro text so the card stays in view */
@media (max-width: 1079px) {
  body.is-started .intro .lead, body.is-started .intro .pills { display: none; }
  body.is-started .intro .display { font-size: clamp(24px, 6.6vw, 30px); }
}

/* ---------- The booking card ---------- */
.card {
  position: relative;
  padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--hair-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
  min-height: 420px;
}
.card__top { display: grid; gap: 14px; margin-bottom: 26px; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress--3 { grid-template-columns: repeat(3, 1fr); }
.progress i { height: 2px; border-radius: 2px; background: var(--hair-2); transition: background 0.4s var(--ease); }
.progress i.on { background: var(--accent); }
.step-count { font: 600 11px/1 var(--font-num); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.step-title { display: grid; gap: 6px; }
.step-title:focus { outline: none; }

.back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0;
  background: none; border: 0; cursor: pointer; text-decoration: none;
  font: 600 11px/1 var(--font-num); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.back:hover { color: var(--fg); }
.back::before { content: "\2190"; font-size: 14px; letter-spacing: 0; }

.chosen { display: flex; flex-wrap: wrap; gap: 6px; }
.chosen span { font-size: 12px; padding: 5px 11px; border-radius: 9999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hair); color: var(--fg); }

/* Step transitions */
.view { animation: rise 0.45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } }

/* ---------- Meeting type ---------- */
.options { display: grid; gap: 10px; }
.option {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  width: 100%; padding: 18px 16px 18px 18px;
  background: var(--raised); border: 1px solid var(--hair); border-radius: var(--radius);
  text-align: left; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.option:hover { border-color: var(--hair-3); background: var(--raised-hover); transform: translateY(-1px); }
.option[aria-pressed="true"] { border-color: var(--accent); }
.option__num { font: 600 13px/1 var(--font-num); letter-spacing: 0.08em; color: var(--muted); }
.option__text { display: grid; gap: 3px; min-width: 0; }
.option__name { font-weight: 600; font-size: 16px; }
.option__desc { color: var(--muted); font-size: 13px; line-height: 1.5; }

.disc {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06); color: var(--fg);
  transition: transform 0.25s var(--ease), background 0.2s;
}
.disc svg { width: 14px; height: 14px; }
.option:hover .disc { transform: rotate(-45deg); background: var(--accent); color: var(--accent-fg); }

/* ---------- Day picker ---------- */
.week-labels, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week-labels { margin-bottom: 8px; text-align: center; }
.week-labels span { font: 600 10px/1 var(--font-num); letter-spacing: 0.16em; color: var(--muted); }
.day {
  display: grid; place-items: center; align-content: center; gap: 3px;
  aspect-ratio: 1; min-height: 44px; padding: 0;
  background: var(--raised); border: 1px solid var(--hair); border-radius: 12px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.day__num { font: 600 16px/1 var(--font-num); font-variant-numeric: tabular-nums; }
.day__month { font: 600 9px/1 var(--font-num); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.day:hover:not(:disabled) { border-color: var(--hair-3); background: var(--raised-hover); }
.day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.day[aria-pressed="true"] .day__month { color: #55575c; }
.day:disabled { cursor: default; background: transparent; border-color: transparent; color: var(--faint); }
.day:disabled .day__month { color: var(--faint); }
.day--blank { visibility: hidden; }
.day-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---------- Time picker ---------- */
.tz-note { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.time {
  display: grid; gap: 1px; place-items: center;
  min-height: 52px; padding: 8px 12px;
  background: var(--raised); border: 1px solid var(--hair); border-radius: 9999px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.time:hover { border-color: var(--hair-3); background: var(--raised-hover); }
.time b { font: 600 15px/1.2 var(--font-num); font-variant-numeric: tabular-nums; }
.time small { font-size: 11px; color: var(--muted); }
.time[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.time[aria-pressed="true"] small { color: #55575c; }

/* ---------- Skeletons ---------- */
.skeleton { background: linear-gradient(90deg, var(--raised) 0%, #1b1d22 50%, var(--raised) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-color: transparent; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* ---------- Summary rows ---------- */
.rows { margin: 0; display: grid; border-top: 1px solid var(--hair); }
.rows > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.rows dt { font: 600 11px/1.9 var(--font-num); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.rows dd { margin: 0; font-weight: 600; font-size: 15px; }
.rows dd span { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.rows dd.was { font-weight: 400; color: var(--muted); }
.spaced { margin-bottom: 24px; }

.note { border-radius: var(--radius); padding: 18px 20px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--hair); display: grid; gap: 10px; }
.note--alert { background: var(--danger-bg); border-color: rgba(240, 138, 126, 0.25); }
.note--alert strong { color: var(--danger); }
.note .h-label { font: 600 11px/1.3 var(--font-num); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.dash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.dash-list li { position: relative; padding-left: 1.6em; }
.dash-list li::before { content: "\2014"; position: absolute; left: 0; color: var(--muted); }

.stack { display: grid; gap: 22px; }
.stack-sm { display: grid; gap: 10px; }

/* ---------- Forms (as on the landing page) ---------- */
.form { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 13px; font-weight: 500; }
.field .req { color: var(--muted); }
.field input, .field textarea {
  width: 100%; height: 48px; padding: 0 14px;
  font: 400 16px var(--font-body); color: var(--fg);
  background: var(--bg); border: 1px solid var(--hair-2); border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--hair-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(233, 233, 230, 0.12); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .error { font-size: 12px; color: var(--danger); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(240, 138, 126, 0.12); }
.prefilled { font-size: 13px; color: var(--fg); padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hair); }

.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }

/* ---------- Buttons: pill with an arrow disc ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 52px; padding: 6px 6px 6px 26px; border-radius: 9999px;
  background: var(--accent); color: var(--accent-fg); border: 0;
  font: 600 14px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn .disc { background: var(--accent-fg); color: var(--accent); }
.btn:hover .disc { transform: rotate(-45deg); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--hair-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.05); }
.btn--ghost .disc { background: rgba(255, 255, 255, 0.08); color: var(--fg); }
.btn--ghost:hover .disc { background: var(--accent); color: var(--accent-fg); }
.link { background: none; border: 0; padding: 10px 0; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--hair-3); }
.link:hover { color: var(--fg); }
.actions { display: grid; gap: 6px; justify-items: center; }
.actions .btn { width: 100%; }

.cal-menu { display: grid; gap: 8px; }

/* ---------- Notices ---------- */
.notice { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius); background: var(--danger-bg); border: 1px solid rgba(240, 138, 126, 0.25); margin-bottom: 20px; font-size: 14px; }
.notice strong { color: var(--danger); }

/* ---------- Confirmation ---------- */
.done-head { display: grid; gap: 14px; margin-bottom: 26px; }
.done-head .display { font-size: clamp(30px, 5vw, 44px); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hair); padding: 26px var(--gutter) 34px; text-align: center; }
.footer p { font: 500 11px/1.8 var(--font-num); letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.footer a { text-decoration: none; color: var(--muted); }
.footer a:hover { color: var(--fg); }
.fine--center { text-align: center; }
.email { color: var(--fg); font-weight: 600; }
@media (min-width: 1080px) { .chosen { display: none; } }
@media (min-width: 1080px) { .intro .display { font-size: clamp(36px, 4vw, 60px); } }
@media (max-width: 1079px) { body.is-done .intro { display: none; } }
.stack > .rows:first-child { border-top: 0; }
.stack > .rows:first-child > div:first-child { padding-top: 0; }

/* Test and local sites only */
.testbar { position: relative; z-index: 2; padding: 8px 16px; text-align: center; font: 600 11px/1.4 var(--font-num); letter-spacing: 0.14em; text-transform: uppercase; background: #3a2f12; color: #f3d98a; }
