/* Book a demo — a split page in the same shape as sign up: brand art on the
   left, the request form on the right.

   The wordmark is a mask rather than a coloured image, so its green comes from
   the colour library and follows it if it changes. */

.demo-page { min-height: 100vh; background: var(--paper); }

.demo-shell {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
}

/* ---------- left: dark green brand panel ---------- */
.demo-art {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--nav-green);
  padding: clamp(24px, 3vw, 44px);
}

.demo-brand {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(112px, 12vw, 148px);
  height: 46px;
  background-color: var(--lime);
  -webkit-mask: url(/assets/merle-wordmark-transparent.png) left center / contain no-repeat;
  mask: url(/assets/merle-wordmark-transparent.png) left center / contain no-repeat;
}

.demo-art-copy {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  align-content: center;
  max-width: 340px;
  padding: 24px 0;
}

.demo-quote {
  margin: 0 0 12px;
  color: var(--parchment);
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 400;
  letter-spacing: -.8px;
  line-height: 1.16;
}
.demo-quote em { color: var(--lime); font-style: italic; }
.demo-quote-sub { margin: 0; color: rgba(245,241,232,.66); font-size: 14px; }

.demo-points {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(245,241,232,.74);
  font-size: 13.5px;
  line-height: 1.45;
}
.demo-points li { position: relative; margin-top: 11px; padding-left: 22px; }
.demo-points li::before { content: "✦"; position: absolute; left: 0; color: var(--lime); }

/* ---------- right: white, the form ---------- */
.demo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: clamp(30px, 3.4vw, 46px) clamp(24px, 4vw, 56px);
}

.demo-form-wrap { width: 100%; max-width: 486px; }

.demo-eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.4px;
}

.demo-form-wrap h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 38px);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.1;
}

.demo-sub { margin: 0 0 26px; color: var(--muted); font-size: 15px; }

.demo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.demo-field { display: block; margin-bottom: 15px; }
.demo-field > span {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 500;
}
.demo-field > span i { color: var(--muted); font-style: normal; font-weight: 400; }

.demo-field input,
.demo-field select,
.demo-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(21,21,21,.24);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
}
.demo-field textarea { min-height: 84px; resize: vertical; line-height: 1.45; }

/* The native arrow is replaced so the control matches the text inputs. */
.demo-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23151515' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  cursor: pointer;
}
.demo-field select:invalid { color: var(--muted); }

.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
  border-color: var(--nav-green);
  outline: 2px solid var(--nav-green);
  outline-offset: 1px;
}

.demo-field input.invalid,
.demo-field select.invalid,
.demo-field textarea.invalid { border-color: var(--accent-dark); }

.demo-submit { width: 100%; margin-top: 7px; }
.demo-form button:disabled { cursor: wait; opacity: .65; }

.demo-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.demo-note.sent { color: var(--nav-green); font-weight: 500; }

.demo-link { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.demo-link:hover { color: var(--ink); }

.demo-legal {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- narrow: one column, art panel becomes a short brand band ---------- */
@media (max-width: 900px) {
  .demo-shell { grid-template-columns: 1fr; min-height: 0; }
  .demo-art { min-height: 0; padding: 22px clamp(20px, 5vw, 32px) 26px; }
  .demo-brand { height: 34px; }
  .demo-art-copy { max-width: none; padding: 18px 0 0; }
  .demo-points { display: none; }
  .demo-panel { align-items: flex-start; padding: 32px clamp(20px, 5vw, 32px) 56px; }
}

@media (max-width: 560px) {
  .demo-pair { grid-template-columns: 1fr; gap: 0; }
  .demo-quote { font-size: 23px; }
  .demo-quote-sub { font-size: 13px; }
}
