.final-rail {
  background: #fff;
}

.closing-cta {
  position: relative;
  height: 450px;
  padding: 100px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #fff;
}

.closing-cta__art {
  position: absolute;
  left: calc(66.67% - 51.17px);
  bottom: -533px;
  width: 2843px;
  height: 1493px;
  transform: translateX(-50%);
  background: url("../assets/ascii.png") center / 100% 100% no-repeat;
  mix-blend-mode: luminosity;
  opacity: .16;
  pointer-events: none;
}

.closing-cta__content {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.closing-cta__copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.closing-cta h2 {
  color: #18181a;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -2.24px;
}

.closing-cta h2 span {
  color: #8e8e8f;
}

.closing-cta__copy p {
  color: #8d8d8d;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.16px;
}

.closing-cta__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.closing-cta__actions a {
  text-decoration: none;
}

.site-footer {
  height: 380px;
  padding: 72px 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: #fff;
}

.site-footer__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
}

.site-footer__top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.site-footer__brand {
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.brand-lockup {
  position: relative;
  height: 20px;
  width: 75.2px;
  display: block;
  color: #18181a;
  text-decoration: none;
}

.brand-lockup img {
  position: absolute;
  top: .4px;
  left: 0;
  width: 15.2px;
  height: 19.2px;
}

.brand-lockup span {
  position: absolute;
  left: 23.2px;
  top: 0;
  width: 52px;
  height: 20px;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -.32px;
}

.site-footer__brand > p {
  color: #8d8d8d;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.18px;
}

.site-footer__nav {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 72px;
}

.footer-column {
  width: 130px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-column h3 {
  width: 100%;
  height: 24.667px;
  margin: 0 0 4px;
  color: #18181a;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -.16px;
}

.footer-column a,
.site-footer__bottom a {
  color: #8d8d8d;
  text-decoration: none;
}

.footer-column a {
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.13px;
}

.site-footer__bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #8d8d8d;
  font-size: 13px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -.13px;
}

.site-footer__bottom > p {
  min-width: 0;
  flex: 1 1 0;
}

.site-footer__bottom > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  white-space: nowrap;
}

.site-footer__bottom .footer-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #656565;
  transition: color .16s ease, transform .16s ease;
}

.site-footer__bottom .footer-trust:hover { color: #18181a; transform: translateY(-1px); }
.footer-trust img { width: 32px; height: 32px; object-fit: contain; }
.footer-trust span { white-space: nowrap; }

@media (max-width: 1250px) {
  .closing-cta,
  .site-footer {
    padding-left: clamp(40px, 6.5vw, 100px);
    padding-right: clamp(40px, 6.5vw, 100px);
  }

  .site-footer__nav {
    gap: 32px;
  }
}

.demo-drawer {
  position: fixed;
  z-index: 1001;
  top: 0;
  right: 0;
  width: min(1266px, 100vw);
  height: 100vh;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 10px 8px 32px rgba(0,0,0,.16), 0 0 0 1px rgba(124,119,116,.2);
  visibility: hidden;
  opacity: 0;
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.22,1,.36,1), opacity .2s ease, visibility 0s linear .42s;
}

@media (min-width: 901px) and (max-height: 800px) {
  .demo-drawer { min-height: 0; overflow-y: auto; }
}

.demo-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: block;
  visibility: hidden;
  opacity: 0;
  background: rgba(24,24,26,.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity .28s ease, visibility 0s linear .42s;
  cursor: default;
}

.demo-drawer:target + .demo-backdrop {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.demo-drawer:target {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0s;
}

.demo-drawer__header {
  position: relative;
  flex: 0 0 68px;
  height: 68px;
  padding: 24px;
  border-bottom: 1px solid #e8e8e8;
}

.demo-drawer__header h2 {
  margin: 0;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.demo-drawer__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #f4f4f4;
}

.demo-drawer__close img { width: 14px; height: 14px; display: block; }

.demo-drawer__body {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.demo-drawer__story {
  min-width: 0;
  height: 100%;
  padding: 100px 56px;
  border-right: 1px solid #ebebeb;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.demo-drawer__pitch { display: flex; flex-direction: column; gap: 36px; }

.drawer-brand {
  position: relative;
  width: 75.2px;
  height: 20px;
  color: #18181a;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.32px;
}

.drawer-brand img { position: absolute; left: 0; top: .4px; width: 15.2px; height: 19.2px; }
.drawer-brand span { position: absolute; left: 23.2px; top: 0; line-height: 20px; }
.demo-drawer__copy { display: flex; flex-direction: column; gap: 24px; }

.demo-drawer__copy h3 {
  margin: 0;
  color: #18181a;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -2.24px;
}

.demo-drawer__copy h3 span {
  color: transparent;
  background: linear-gradient(#18181a, rgba(24,24,26,.1));
  -webkit-background-clip: text;
  background-clip: text;
}

.demo-drawer__copy p {
  margin: 0;
  color: #8d8d8d;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -.16px;
}

.demo-drawer__form-area {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  height: 100%;
  padding: 100px 56px;
  display: flex;
  align-items: center;
  background: #d8d5d0;
}

.demo-drawer__form-area::before {
  position: absolute;
  z-index: -2;
  inset: -28px;
  background: url("../assets/demo-form-background.webp") center 48% / cover no-repeat;
  filter: blur(14px) saturate(.72);
  transform: scale(1.04);
  content: "";
}

.demo-drawer__form-area::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(135deg,rgba(247,245,241,.62),rgba(250,249,245,.78));
  content: "";
}

.demo-form {
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 0 0 1px rgba(29,29,29,.09),0 18px 48px rgba(29,29,29,.16);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.demo-form label { display: flex; flex-direction: column; gap: 8px; color: #656565; font-family: Inter,Geist,sans-serif; font-size: 13px; font-weight: 500; line-height: 18px; letter-spacing: -.28px; }
.demo-form label b { color: #9f998f; font-weight: 500; }
.demo-form__context>span { color: #18181a; font-size: 14px; font-weight: 600; line-height: 20px; }
.demo-form input,.demo-form textarea { width: 100%; border: 1px solid #e8e8e8; border-radius: 8px; outline: none; background: #fff; color: #18181a; font: 450 13px/18px Inter,Geist,sans-serif; letter-spacing: -.28px; }
.demo-form input { height: 36px; padding: 0 10px; }
.demo-form textarea { height: 100px; padding: 10px; resize: none; }
.demo-form .demo-form__honeypot { display: none; }
.demo-form input::placeholder,.demo-form textarea::placeholder { color: #656565; opacity: 1; }
.demo-form .demo-form__focused,.demo-form input:focus,.demo-form textarea:focus { border-color: #2d68ff; box-shadow: 0 0 0 2px #ebf2ff; }
.demo-form button { width: 100%; height: 38px; padding: 8px 12px; border: 0; border-radius: 8px; background: #18181a; color: #fff; font-family:"Geist Mono",ui-monospace,monospace; font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 0 0 1px rgba(29,29,29,.8),0 5px 10px -5px rgba(29,29,29,.12); cursor: pointer; }
.demo-form button:disabled { opacity: .55; cursor: wait; }
.demo-form>p { margin: 0; color: #666; font-size: 12px; line-height: 20px; letter-spacing: -.12px; text-align: center; }
.demo-form__status:empty { display: none; }
.demo-form__status.is-error { color: #b42318; }
.demo-form__success { display: none; text-align: center; }
.demo-form__success strong,.demo-form__success span { display: block; }
.demo-form__success strong { color: #18181a; font-size: 18px; font-weight: 650; letter-spacing: -.03em; }
.demo-form__success span { margin-top: 6px; color: #6b6560; font-size: 13px; line-height: 1.5; }
.demo-form.is-submitted h3,.demo-form.is-submitted label,.demo-form.is-submitted button,.demo-form.is-submitted .demo-form__status { display: none; }
.demo-form.is-submitted .demo-form__success { display: block; }
.demo-form>p a { color: #000; text-underline-position: from-font; }

@media (max-width: 900px) {
  .demo-drawer { min-height: 0; overflow-y: auto; }
  .demo-drawer__body { grid-template-columns: 1fr; }
  .demo-drawer__story,.demo-drawer__form-area { padding: 56px 32px; }
  .demo-drawer__story { border-right: 0; border-bottom: 1px solid #ebebeb; }
  .demo-drawer__copy h3 { font-size: 44px; }
}

/* iOS may shrink the 1210px landing page to fit; keep the fixed demo drawer on
   the actual device viewport instead of shrinking the desktop drawer with it. */
@media (max-device-width: 600px) {
  html,body { min-width: 0 !important; }
  .demo-drawer {
    left: 0;
    right: auto;
    width: 100vw;
    max-width: none;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .demo-drawer__header {
    position: sticky;
    z-index: 4;
    top: 0;
    flex-basis: 60px;
    height: 60px;
    padding: 20px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
  }
  .demo-drawer__close { top: 16px; right: 20px; }
  .demo-drawer__body { display: block; }
  .demo-drawer__story {
    height: auto;
    min-height: 0;
    padding: 40px 24px;
    border-right: 0;
    border-bottom: 1px solid #ebebeb;
  }
  .demo-drawer__pitch { gap: 28px; }
  .demo-drawer__copy { gap: 18px; }
  .demo-drawer__copy h3 { font-size: 40px; line-height: 1.04; letter-spacing: -1.6px; }
  .demo-drawer__copy p { font-size: 15px; }
  .demo-drawer__form-area { height: auto; padding: 16px 20px 48px; align-items: flex-start; }
  .demo-form { gap: 20px; padding: 20px; }
  .demo-form input { height: 42px; }
  .demo-form textarea { height: 92px; }
  .demo-form button { height: 42px; }
}
