/* Get a demo: one screen. What the call covers on the left, the form on the right, and the calendar in the
   form's place once it has been sent. Tokens and buttons come from brand.css. */
.demo { padding: 150px 0 120px; min-height: min(100svh, 1040px); }
.demo > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-areas: "pitch card" "see card"; column-gap: clamp(40px, 8vw, 132px); row-gap: 44px; align-items: start; grid-template-rows: auto 1fr; }
.demo .pitch { grid-area: pitch; padding-top: 14px; }
.demo .card { grid-area: card; }
.demo .see { grid-area: see; max-width: 30em; }
.demo h1 { font-size: clamp(40px, 4.6vw, 68px); margin-top: 20px; max-width: 9.5em; }
.demo .lede { margin-top: 22px; max-width: 25em; }

/* What the call covers: three numbered lines, ruled like the rest of the record. */
.demo .see h6 { font: 400 12.5px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--faint-l); margin-bottom: 14px; }
.demo .see ol { counter-reset: see; border-bottom: 1px solid var(--line-l); }
.demo .see li { counter-increment: see; display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 16px 0 17px; border-top: 1px solid var(--line-l); }
.demo .see li::before { content: counter(see, decimal-leading-zero); grid-row: 1 / span 2; font: 400 12.5px/1.75 var(--mono); color: var(--faint-l); }
.demo .see b { font: 450 17.5px/1.3 var(--sans); letter-spacing: -.015em; }
.demo .see span { grid-column: 2; margin-top: 3px; font-size: 15.5px; line-height: 1.4; color: var(--mute-l); }
.demo .self { margin-top: 22px; font-size: 15px; color: var(--mute-l); }
.demo .self a, .demo .fine a { color: var(--on-l); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* The form: a sheet of white on the paper, with the mark's two corners outside it. */
.demo .card { position: relative; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line-l), 0 40px 70px -40px rgba(10, 11, 13, .22); padding: clamp(22px, 3vw, 38px); }
.demo .card::before, .demo .card::after { content: ""; position: absolute; width: 16px; height: 16px; border: 0 solid rgba(10, 11, 13, .38); pointer-events: none; }
.demo .card::before { left: -11px; bottom: -11px; border-width: 0 0 1px 1px; }
.demo .card::after { right: -11px; top: -11px; border-width: 1px 1px 0 0; }
.demo form { display: grid; gap: 18px; }
.demo .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.demo label { display: grid; align-content: start; gap: 7px; font: 500 14px/1.3 var(--sans); letter-spacing: -.005em; color: #26282e; position: relative; }
.demo label i { position: absolute; right: 0; top: 0; font: 400 13px/1.4 var(--sans); font-style: normal; color: var(--faint-l); }
.demo input, .demo textarea { width: 100%; min-width: 0; font: 400 16px/1.35 var(--sans); letter-spacing: -.005em; color: var(--on-l); background: #fff; border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(10, 11, 13, .2); padding: 0 14px; height: 48px; transition: box-shadow .15s; -webkit-appearance: none; appearance: none; }
.demo textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.demo input::placeholder, .demo textarea::placeholder { color: #a3a5ab; }
.demo input:hover, .demo textarea:hover { box-shadow: inset 0 0 0 1px rgba(10, 11, 13, .42); }
.demo input:focus, .demo textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--sig), 0 0 0 4px rgba(48, 80, 255, .16); }
.demo [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #c9372c; }
.demo [aria-invalid="true"]:focus { box-shadow: inset 0 0 0 1.5px #c9372c, 0 0 0 4px rgba(201, 55, 44, .14); }
.demo .bad { font: 400 13.5px/1.3 var(--sans); color: #b3261e; }
.demo .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo form .btn { height: 52px; width: 100%; margin-top: 4px; font-size: 16.5px; }
.demo form .btn[aria-busy="true"] { background: #3b3d44; cursor: default; transform: none; }
.demo .oops { font-size: 15px; line-height: 1.45; color: #8f1d17; background: #fdf1ef; box-shadow: inset 0 0 0 1px rgba(201, 55, 44, .32); border-radius: 8px; padding: 12px 14px; }
.demo .oops a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.demo .card .fine { margin: 0; max-width: none; font-size: 13.5px; color: var(--mute-l); }

/* Step two, in the form's place: the calendar. */
.demo .booked h2 { font-size: clamp(27px, 2.5vw, 36px); margin: 14px 0 20px; outline: none; }
.demo .booked .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #0a7a43; }
.demo .booked .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--allow); }
.demo .cal { margin: 0 calc(-1 * clamp(22px, 3vw, 38px)) 16px; border-block: 1px solid var(--line-l); }
.demo .cal .show { display: grid; justify-items: center; gap: 12px; padding: 44px 20px; background: var(--paper); }
.demo .cal iframe { display: block; width: 100%; min-width: 312px; min-height: 615px; height: 756px; border: 0; }
.demo .card:has(.booked:not([hidden])) { padding-bottom: 20px; }
.demo [hidden] { display: none !important; }

@media (max-width: 1000px) {
  .demo { padding: 128px 0 84px; min-height: 0; }
  .demo > .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pitch" "card" "see"; row-gap: 36px; grid-template-rows: none; }
  .demo .pitch { padding-top: 0; }
  .demo .card { max-width: 640px; }
  .demo .see { max-width: 640px; }
}
@media (max-width: 600px) {
  .demo { padding: 112px 0 64px; }
  .demo h1 { font-size: 40px; }
  .demo .card::before, .demo .card::after { display: none; }
  .demo .card { padding: 20px 18px; }
  .demo .cal { margin-inline: -18px; }
  .demo form { gap: 16px; }
}
