.demo-page {
  min-height: 100vh;
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(38, 38, 46, .09) 1px, transparent 1px);
  background-size: 18px 18px;
}

.demo-main {
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
  padding: 92px 0 110px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(470px, 1.12fr);
  align-items: start;
  gap: clamp(54px, 7vw, 96px);
}

.demo-intro { position: sticky; top: 125px; }
.demo-intro h1 { max-width: 650px; margin: 18px 0 0; font-size: clamp(62px, 7.2vw, 102px); line-height: .88; letter-spacing: -.075em; }
.demo-deck { max-width: 630px; margin: 30px 0 0; color: var(--ink-soft); font-family: "Avenir Next", Avenir, system-ui, sans-serif; font-size: 19px; line-height: 1.62; }

.demo-route { margin-top: 42px; border-block: 2px solid var(--ink); }
.demo-route > div { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 18px 4px; border-bottom: 1px solid rgba(38, 38, 46, .25); }
.demo-route > div:last-child { border-bottom: 0; }
.demo-route b { color: var(--coral-dark); font-size: 13px; letter-spacing: .12em; }
.demo-route span { color: var(--ink-soft); font-family: "Avenir Next", Avenir, system-ui, sans-serif; line-height: 1.45; }
.demo-route strong { display: block; margin-bottom: 3px; color: var(--ink); font-family: inherit; }

.demo-note { position: relative; margin: 38px 0 0 34px; padding: 20px 22px 20px 86px; background: var(--yellow); border: 2px solid var(--ink); box-shadow: 6px 7px 0 var(--ink); transform: rotate(-1deg); }
.demo-note img { position: absolute; left: -34px; bottom: -18px; width: 108px; height: 108px; display: block; object-fit: contain; }
.demo-note p { margin: 0; font-family: "Avenir Next", Avenir, system-ui, sans-serif; font-size: 15px; line-height: 1.5; }

.demo-form-card { position: relative; padding: 38px; background: var(--white); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 12px 14px 0 var(--ink); }
.demo-form-card::before { content: ""; position: absolute; top: 17px; right: -15px; width: 72px; height: 18px; background: rgba(255, 119, 105, .78); transform: rotate(4deg); }
.form-card-heading { padding-bottom: 27px; border-bottom: 2px solid var(--ink); }
.form-card-heading span { color: var(--coral-dark); font-size: 11px; font-weight: 950; letter-spacing: .16em; }
.form-card-heading h2 { margin: 12px 0 0; font-size: clamp(37px, 4vw, 54px); line-height: .95; letter-spacing: -.055em; }
.form-card-heading p { margin: 17px 0 0; color: var(--ink-soft); font-family: "Avenir Next", Avenir, system-ui, sans-serif; line-height: 1.55; }

#demo-form { margin-top: 29px; display: grid; gap: 21px; }
.demo-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-field { display: grid; gap: 8px; }
.demo-field label { font-size: 13px; font-weight: 950; letter-spacing: .01em; }
.demo-field label span { color: var(--coral-dark); }
.demo-field input,
.demo-field select,
.demo-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  font: 600 16px/1.35 "Avenir Next", Avenir, system-ui, sans-serif;
}
.demo-field textarea { min-height: 120px; resize: vertical; }
.demo-field input::placeholder,
.demo-field textarea::placeholder { color: #77747c; opacity: 1; }
.demo-field input:focus-visible,
.demo-field select:focus-visible,
.demo-field textarea:focus-visible { outline: 4px solid rgba(117, 99, 176, .34); outline-offset: 2px; }

.demo-submit { width: 100%; margin-top: 4px; }
.demo-form-status { min-height: 1.4em; margin: -6px 0 0; color: var(--purple); font-family: "Avenir Next", Avenir, system-ui, sans-serif; font-weight: 800; text-align: center; }
.demo-form-note { margin: -6px 0 0; color: var(--ink-soft); font-family: "Avenir Next", Avenir, system-ui, sans-serif; font-size: 12px; line-height: 1.5; text-align: center; }
.demo-form-note a { color: var(--ink); font-weight: 850; text-underline-offset: 3px; }

.demo-footer { width: min(calc(100% - 48px), 1180px); margin: 0 auto; padding: 28px 0 38px; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; gap: 24px; color: var(--ink-soft); font-family: "Avenir Next", Avenir, system-ui, sans-serif; font-size: 14px; }
.demo-footer p { margin: 0; }
.demo-footer nav { display: flex; gap: 20px; }
.demo-footer a { color: inherit; font-weight: 800; }

@media (max-width: 920px) {
  .demo-main { width: min(calc(100% - 36px), 720px); grid-template-columns: 1fr; padding-top: 68px; }
  .demo-intro { position: static; }
  .demo-intro h1 { font-size: clamp(60px, 13vw, 88px); }
}

@media (max-width: 620px) {
  .demo-page .site-header .desktop-nav { display: none; }
  .demo-page .site-header .button-secondary { display: none; }
  .demo-main { width: min(calc(100% - 28px), 720px); padding: 48px 0 76px; gap: 46px; }
  .demo-intro h1 { font-size: clamp(55px, 17vw, 75px); }
  .demo-deck { font-size: 17px; }
  .demo-route > div { grid-template-columns: 46px 1fr; }
  .demo-note { margin-left: 25px; padding: 18px 16px 18px 70px; }
  .demo-note img { left: -26px; width: 88px; height: 88px; }
  .demo-form-card { padding: 27px 18px; border-radius: 16px; box-shadow: 7px 8px 0 var(--ink); }
  .demo-field-row { grid-template-columns: 1fr; gap: 21px; }
  .demo-footer { width: min(calc(100% - 28px), 720px); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-note { transform: none; }
}
