/* Book a demo page. Builds on site.css (tokens, nav, buttons, footer). */

.demo-page { background: var(--navy-950); }
.demo-main {
  position: relative; overflow: hidden; color: #fff;
  margin-top: -69px; padding: 141px 0 96px;
}
.demo-main::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(143, 210, 255, .14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 15%, transparent 70%);
}
.demo-main .hero-glow { inset: -10% auto auto -15%; width: 80%; height: 90%; }
.demo-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px; align-items: start;
}
@media (max-width: 1000px) { .demo-grid { grid-template-columns: 1fr; gap: 40px; } .demo-main { padding-bottom: 72px; } }

/* ---------- Left: the pitch ---------- */
.demo-intro { position: sticky; top: 110px; }
@media (max-width: 1000px) { .demo-intro { position: static; } }
.demo-intro h1 { font-size: clamp(40px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.035em; margin: 18px 0 20px; }
.demo-intro .grad { display: inline; }
@media (min-width: 1001px) { .demo-intro .grad { white-space: nowrap; } }
.ways { display: grid; gap: 12px; margin-top: 32px; }
.way {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 16px;
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.way b { display: block; font-size: 16.5px; }
.way span { color: rgba(255,255,255,.66); font-size: 15px; }
.way-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none;
  color: var(--sky); background: rgba(43, 139, 255, .16); box-shadow: inset 0 0 0 1px rgba(143, 210, 255, .22);
}
.way-icon .ic { width: 21px; height: 21px; }
.expect { display: grid; gap: 10px; margin-top: 26px; }
.expect li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.8); font-weight: 600; font-size: 15.5px; }
.expect .ic { color: #34d399; width: 19px; height: 19px; }

/* ---------- Right: the form card ---------- */
.book-card {
  background: #fff; color: var(--ink); border-radius: 24px;
  padding: 30px 30px 26px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255,255,255,.06);
  scroll-margin-top: 90px;
}
@media (max-width: 560px) { .book-card { padding: 22px 16px 20px; border-radius: 20px; } }
.book-card h2 { font-size: 26px; font-weight: 800; }
.book-sub { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

.step { border: 0; padding: 0; margin: 26px 0 0; min-width: 0; }
.step legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 12px; font-weight: 800; font-size: 16px; }
.step-num {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: 13px; color: #fff; background: linear-gradient(135deg, #3a9bff, var(--blue-700));
}

/* How to meet */
.meet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.meet-opt { position: relative; cursor: pointer; }
.meet-opt input { position: absolute; opacity: 0; pointer-events: none; }
.meet-box {
  display: grid; gap: 2px; justify-items: start;
  padding: 14px 16px; border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .15s, background .15s;
}
.meet-box .ic { width: 22px; height: 22px; color: var(--blue-600); margin-bottom: 6px; }
.meet-box b { font-size: 15px; }
.meet-box small { font-size: 13px; color: var(--muted); }
.meet-opt:hover .meet-box { box-shadow: inset 0 0 0 1.5px #b9c7dc; }
.meet-opt input:checked + .meet-box { background: #eef5ff; box-shadow: inset 0 0 0 2px var(--blue); }
.meet-opt input:focus-visible + .meet-box { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Calendar */
.cal { border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); padding: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { font-size: 15.5px; }
.cal-nav {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; cursor: pointer;
  background: #f1f5fb; color: var(--ink);
}
.cal-nav:hover:not(:disabled) { background: #e3ebf7; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow span { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-days button, .cal-days span {
  aspect-ratio: 1 / 1; max-height: 46px; width: 100%;
  display: grid; place-items: center; border-radius: 11px; border: 0;
  font: 700 14.5px var(--font); font-variant-numeric: tabular-nums;
}
.cal-days button { background: #f4f8ff; color: var(--ink); cursor: pointer; transition: background .12s, color .12s, transform .12s; }
.cal-days button:hover { background: #dde9fb; }
.cal-days button[aria-pressed="true"] { background: linear-gradient(135deg, #3a9bff, var(--blue-700)); color: #fff; transform: scale(1.04); box-shadow: 0 6px 14px -6px rgba(26, 111, 232, .8); }
.cal-days button:disabled { background: transparent; color: #b6c1d2; cursor: default; font-weight: 500; }
.cal-days .today:disabled { box-shadow: inset 0 0 0 1.5px #cdd7e6; }

/* Time slots */
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 420px) { .slots { grid-template-columns: repeat(3, 1fr); } }
.slots button {
  padding: 10px 4px; border-radius: 11px; border: 0; cursor: pointer;
  font: 700 14px var(--font); color: var(--ink);
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .12s, background .12s;
}
.slots button:hover { box-shadow: inset 0 0 0 1.5px #b9c7dc; }
.slots button[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, #3a9bff, var(--blue-700)); box-shadow: none; }

/* Fields */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 5px; }
.field > span { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field em, .mini-q em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 11px; border: 0;
  font: 500 15.5px var(--font); color: var(--ink); background: #f6f8fc;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .12s, background .12s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
.field-wide { margin-top: 14px; }
.apps-pick { margin-top: 16px; }
.mini-q { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px var(--line); transition: all .12s;
}
.chips input:checked + span { color: #fff; background: var(--blue-600); box-shadow: none; }
.chips input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Problems */
.has-error .cal, .has-error .meet-box, .has-error.field input, .has-error .slots button { box-shadow: inset 0 0 0 2px #f87171; }
.field-msg { font-size: 13px; font-weight: 600; color: #dc2626; margin-top: 6px; }

/* Send */
.send { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 14px; justify-items: start; }
.summary { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.summary.empty { color: var(--muted); font-weight: 600; }
.captcha { min-height: 65px; }
.form-error { color: #b91c1c; background: #fef2f2; padding: 10px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; width: 100%; }
.form-error[hidden] { display: none; }
.btn-send { border: 0; cursor: pointer; font-size: 16px; padding: 15px 28px; }
.btn-send:disabled { opacity: .6; cursor: progress; transform: none; }
.fine { font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .btn-send { width: 100%; justify-content: center; } }

/* Sent */
.done { text-align: center; padding: 30px 8px 12px; display: grid; justify-items: center; gap: 10px; }
.done[hidden] { display: none; }
.done:focus { outline: none; }
.done-icon {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; margin-bottom: 6px;
  color: #fff; background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 14px 30px -12px rgba(5, 150, 105, .8);
  animation: pop .5s ease;
}
.done-icon .ic { width: 34px; height: 34px; stroke-width: 3; }
.done h2 { font-size: 30px; }
.done-when { font-size: 18px; font-weight: 700; color: var(--blue-700); }
.done p { color: var(--ink-2); }
.btn-dark { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; margin-top: 10px; }
.btn-dark:hover { background: #f4f7fc; }

.demo-page .footer-base { border-top: 0; padding-top: 28px; }
.demo-page .footer-base a { color: inherit; }
