.demo-page { display: flex; min-height: 100vh; flex-direction: column; }
.demo-page main { position: relative; isolation: isolate; display: flex; flex: 1; flex-direction: column; }
.demo-page :is(.demo-intro, .demo-calendar, .demo-walkthrough) { position: relative; z-index: 1; }
.demo-page .demo-intro {
  background: linear-gradient(110deg, #fbfcfd 11%, rgb(249 250 251 / 30%) 90%),
    #f9fafb url('/website-assets/tendersnap-hero-ribbons.webp') center 62% / cover no-repeat;
  padding: clamp(111px, 10vw, 144px) 0 clamp(45px, 5.2vw, 74px);
}
.demo-page :is(.demo-shell, .demo-walkthrough .container) { width: min(1180px, calc(100% - 56px)); }
.demo-page .demo-shell {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(45px, 5.2vw, 75px);
}
.demo-page .demo-intro h1 {
  max-width: 13ch;
  margin: 0 0 21px;
  color: #172630;
  font-size: clamp(44px, 5.35vw, 66px);
  line-height: 1.04;
  font-weight: 550;
  letter-spacing: -.062em;
  text-wrap: balance;
}
.demo-page .demo-lead {
  max-width: 42ch;
  margin: 0;
  color: #435966;
  font-size: clamp(16px, 1.38vw, 19px);
  line-height: 1.55;
}
.demo-page .demo-illustration {
  --artwork-bleed: clamp(24px, 5.2vw, 82px);
  width: calc(100% + var(--artwork-bleed));
  margin: 0 0 0 calc(var(--artwork-bleed) / -2);
}
.demo-page .demo-artwork-stage { position: relative; }
.demo-page .demo-artwork {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}
.demo-page .demo-document-scan {
  position: absolute;
  inset: 0;
  /* Limit the light to the front sheet, keeping it behind the curved glass rim. */
  clip-path: polygon(30.4% 25.7%, 77.1% 17%, 73.1% 46%, 63.1% 53.4%, 48.7% 61.2%, 34.4% 69.2%, 23.5% 75.1%);
  pointer-events: none;
}
.demo-page .demo-document-scan > span,
.demo-page .demo-document-scan > span::before {
  position: absolute;
  inset: 0;
}
.demo-page .demo-scan-halo { filter: blur(6px); }
.demo-page .demo-scan-edge { filter: blur(1px) drop-shadow(0 3px 4px rgb(178 211 231 / 52%)); }
.demo-page .demo-document-scan > span::before {
  content: "";
  opacity: 0;
}
.demo-page .demo-scan-halo::before {
  background: linear-gradient(100deg, rgb(249 253 255 / 18%), rgb(255 255 255 / 61%) 49%, rgb(232 244 252 / 34%));
}
.demo-page .demo-scan-edge::before {
  background: linear-gradient(100deg, rgb(242 251 255 / 40%), #fff 38%, #fff 70%, rgb(240 249 255 / 73%));
}
@media (prefers-reduced-motion: no-preference) {
  .demo-page .demo-scan-halo::before { animation: demo-paper-halo 2.15s .28s ease-in-out both; }
  .demo-page .demo-scan-edge::before { animation: demo-paper-edge 2.15s .28s ease-in-out both; }
}
/* Each sweep polygon follows the front sheet's converging side edges. */
@keyframes demo-paper-halo {
  0% { clip-path: polygon(32.6% 12.2%, 79.1% 0.7%, 77.7% 12.2%, 31.1% 21.7%); opacity: 0; }
  19% { clip-path: polygon(31.2% 20.7%, 77.8% 11.0%, 76.4% 22.5%, 29.7% 30.2%); opacity: 0.7; }
  40% { clip-path: polygon(29.1% 34.5%, 75.7% 27.6%, 74.3% 39.1%, 27.6% 44.0%); opacity: 1; }
  62% { clip-path: polygon(26.6% 49.9%, 73.4% 46.1%, 71.9% 57.6%, 25.1% 59.4%); opacity: 1; }
  83% { clip-path: polygon(24.6% 63.1%, 71.3% 62.1%, 69.9% 73.6%, 23.1% 72.7%); opacity: 0.6; }
  100% { clip-path: polygon(22.4% 76.9%, 69.2% 78.7%, 67.8% 90.2%, 20.9% 86.5%); opacity: 0; }
}
@keyframes demo-paper-edge {
  0% { clip-path: polygon(31.7% 17.5%, 78.3% 7.2%, 78.1% 9.1%, 31.5% 19.1%); opacity: 0; }
  19% { clip-path: polygon(30.4% 26.0%, 77.0% 17.4%, 76.8% 19.3%, 30.1% 27.6%); opacity: 0.7; }
  40% { clip-path: polygon(28.2% 39.8%, 74.9% 34.0%, 74.7% 35.9%, 28.0% 41.4%); opacity: 1; }
  62% { clip-path: polygon(25.8% 55.2%, 72.5% 52.6%, 72.3% 54.5%, 25.6% 56.8%); opacity: 1; }
  83% { clip-path: polygon(23.7% 68.5%, 70.5% 68.5%, 70.3% 70.5%, 23.5% 70.1%); opacity: 0.6; }
  100% { clip-path: polygon(21.5% 82.3%, 68.4% 85.2%, 68.2% 87.1%, 21.3% 83.9%); opacity: 0; }
}
.demo-action { margin-top: 28px; }
.demo-page main .demo-action .button {
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 9px;
  white-space: nowrap;
  color: #233e4e;
  background: linear-gradient(155deg, rgb(255 255 255 / 84%), rgb(234 241 246 / 48%) 46%, rgb(164 192 210 / 32%));
  border-color: #9aafbd;
  backdrop-filter: blur(3px) saturate(1.07);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 94%), inset 0 -1px 2px rgb(112 145 166 / 19%), 0 4px 11px -7px rgb(40 70 88 / 48%);
  transition: background .18s ease, border-color .18s ease;
}
.demo-page main .demo-action .button:not(:disabled):hover {
  color: #173448;
  background: linear-gradient(155deg, rgb(255 255 255 / 87%), rgb(224 238 246 / 67%) 50%, rgb(156 189 209 / 41%));
  border-color: #7996a8;
}
@media (prefers-reduced-motion: reduce) {
  .demo-page main .demo-action .button { transition: none; }
}
.demo-page .demo-note {
  margin: 14px 0 0;
  color: #455d6d;
  font-size: 13px;
  line-height: 1.55;
}
.demo-page .demo-action button[hidden] { display: none; }
.demo-page .mobile-nav-panel .demo-narrow-signin { display: none; }
.demo-page .site-footer.tendersnap-footer.footer-refined { padding-top: 38px !important; }
.demo-page .footer-refined > .footer-transition { display: none; }
.demo-page .demo-walkthrough {
  flex: 1;
  padding: clamp(27px, 3.5vw, 50px) 0 clamp(36px, 4.7vw, 67px);
  border-top: 1px solid #d8e2e7;
  background: linear-gradient(165deg, rgb(243 247 249 / 82%), rgb(235 241 245 / 67%)),
    #eff4f6 url('/website-assets/tendersnap-hero-ribbons.webp') center 73% / cover no-repeat;
}
.demo-page .ribbon-ready .demo-intro {
  background: linear-gradient(110deg, rgb(250 252 253 / 45%), transparent 80%);
}
.demo-page .ribbon-ready .demo-walkthrough {
  background: linear-gradient(165deg, rgb(242 246 248 / 32%), rgb(232 240 245 / 36%));
}
.demo-page .demo-walkthrough h2 {
  margin: 0 0 21px;
  color: #182c37;
  font-size: clamp(26px, 2.6vw, 37px);
  font-weight: 550;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.demo-page .demo-agenda {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px clamp(16px, 2vw, 26px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.demo-page .demo-agenda li {
  color: #405b6b;
  padding: clamp(16px, 1.8vw, 24px);
  border: 1px solid rgb(255 255 255 / 83%);
  border-radius: 14px;
  background: linear-gradient(135deg, rgb(255 255 255 / 63%), rgb(255 255 255 / 24%) 50%, rgb(231 240 245 / 43%) 78%, rgb(255 255 255 / 57%));
  backdrop-filter: blur(7px) saturate(1.06);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%), inset 0 -2px 3px rgb(99 128 149 / 11%),
    0 7px 18px -14px rgb(38 59 73 / 29%), 0 1px 3px -2px rgb(38 59 73 / 25%);
}
.demo-page .demo-agenda h3 {
  margin: 0 0 5px;
  color: inherit;
  font-size: 17px;
  font-weight: 600;
}
.demo-page .demo-agenda p { margin: 0; color: inherit; font-size: 14px; line-height: 1.6; max-width: 40ch; }
.demo-calendar { padding: 31px 0 54px; scroll-margin-top: 67px; }
.demo-calendar h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.036em; }
.demo-calendar > p { margin: 10px 0 0; color: #405965; }
#demo-widget iframe { display: block; width: 100%; min-width: 0; min-height: 760px; border: 0; }
@media (max-width: 820px) {
  .demo-page :is(.demo-shell, .demo-walkthrough .container) { width: calc(100% - 40px); }
  .demo-page .demo-intro {
    background-position: 60% center;
    padding: 102px 0 34px;
  }
  .demo-page .demo-shell { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .demo-page .demo-illustration { --artwork-bleed: 24px; }
  .demo-page .demo-intro h1 { margin-bottom: 16px; font-size: clamp(37px, 11.3vw, 48px); }
  .demo-action { margin-top: 24px; }
  .demo-page .demo-walkthrough h2 { margin-bottom: 17px; }
  .demo-page .demo-agenda { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 690px) {
  #demo-widget { width: 100vw; margin-left: calc((100% - 100vw) / 2); }
  #demo-widget iframe { min-height: 820px; }
}

@media (max-width: 360px) {
  .demo-page .site-header.homepage-header .nav { width: calc(100% - 28px); gap: 9px; }
  .demo-page .site-header.homepage-header .brand { font-size: 18px; gap: 7px; }
  .demo-page .site-header.homepage-header .nav-cta { gap: 7px; }
  .demo-page .site-header.homepage-header .nav-cta .nav-login { display: none; }
  .demo-page .site-header.homepage-header .mobile-nav-panel .demo-narrow-signin { display: block; }
}
