/* /book-a-demo. One split panel: the case on navy on the left, the request
   on white on the right. Loaded after styles.css, this page only. Sized so
   the whole panel fits a laptop screen without scrolling.

   The form files into access_requests, the same queue as the pilot form, so
   the founder alert email (0118) announces it the moment it lands. */

.bd-page {
  --line: #E4E0D6;
  --ground: #FAF8F3;
  --night: #17283D;
  --sel-bg: #E8EDF4;
  --sel-text: #1D3450;
  --hover-navy: #24405F;
  --red: #B3261E;
  --red-tint: #FCEDEC;
  background: var(--ground);
}

/* ---------- Masthead ---------- */

.bd-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(18px, 4vw, 56px);
  font-size: 15px;
}
.bd-logo { display: block; height: 30px; width: auto; }

/* ---------- The split panel ---------- */

.bd-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4px var(--gutter) 40px;
}

.bd-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

/* ---------- Left: the case ---------- */

.bd-pitch {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(28px, 4.5vw, 56px);
  background: var(--night);
  color: #E7ECF3;
}

.bd-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 3.8vw, 46px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: #fff;
}
.bd-title em { font-style: normal; color: var(--gold); }

.bd-lede {
  margin: 20px 0 0;
  max-width: 440px;
  font-size: 16px;
  line-height: 1.6;
  color: #D5DDE8;
}

.bd-covers-h {
  margin: 32px 0 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #A9B6C8;
}

.bd-covers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.bd-covers li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.5;
}
.bd-covers svg { margin-top: 4px; color: var(--gold); }

/* ---------- Right: the request ---------- */

.bd-ask {
  display: flex;
  align-items: center;
  padding: 40px clamp(24px, 4vw, 52px);
}
.bd-ask__inner { width: 100%; max-width: 440px; margin: 0 auto; }

.bd-ask__title {
  margin: 0;
  font-family: 'Inter Tight', var(--sans);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--sel-text);
}
.bd-ask__lede {
  margin: 6px 0 4px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #4A5565;
}

.bd-form { display: grid; gap: 14px; }
.bd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.bd-field { display: grid; gap: 6px; min-width: 0; }
.bd-label { font-size: 13.5px; font-weight: 600; color: var(--sel-text); }
.bd-opt { font-weight: 400; color: #7A8798; }

.bd-input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--ground);
  color: var(--ink);
  font-size: 15.5px;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.bd-input::placeholder { color: #9AA3AF; }
.bd-input:hover { border-color: #CFC9BB; }
.bd-input:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px var(--sel-bg);
}
.bd-input[aria-invalid="true"] { border-color: var(--red); }
select.bd-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%232C4A6E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 5.5 7 9l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
select.bd-input:invalid { color: #9AA3AF; }
select.bd-input option { color: var(--ink); }

.bd-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13.5px;
  line-height: 1.5;
  color: #4A5565;
  cursor: pointer;
}
.bd-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy); }

.bd-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 48px;
  border: 1px solid var(--navy);
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.bd-submit:hover { background: var(--hover-navy); border-color: var(--hover-navy); box-shadow: 0 2px 0 rgba(26, 36, 50, .18); }
.bd-submit:active { transform: translateY(1px); box-shadow: none; }
.bd-submit:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bd-submit[disabled] { opacity: .7; cursor: progress; }

.bd-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--red-tint);
  color: var(--red);
  font-size: 14px;
  line-height: 1.5;
}
.bd-msg svg { flex: none; margin-top: 3px; }

/* Honeypot: off screen, never display:none, so a bot still finds it. */
.bd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Done ---------- */

.bd-done:focus { outline: none; }
.bd-done__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  color: var(--sel-text);
}
.bd-done__body { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: #4A5565; }
.bd-done__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.bd-done__cta:hover { background: var(--sel-bg); color: var(--sel-text); }

/* ---------- Narrow screens ---------- */

@media (max-width: 940px) {
  .bd-split { grid-template-columns: 1fr; }
  .bd-pitch { padding: 36px 24px; }
  .bd-ask { padding: 32px 24px; }
}

@media (max-width: 620px) {
  .bd-main { padding: 0 12px 32px; }
  .bd-row { grid-template-columns: 1fr; gap: 14px; }
  .bd-title { font-size: 32px; }
  .bd-covers-h, .bd-covers { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bd-page *, .bd-page *::before, .bd-page *::after { transition: none !important; }
}
