/* Shared bottom contact box and next-page button. Loaded last so it wins. */

.contact:not(.section),
#platform .pilot,
body.platform-doc .pilot {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 72px;
  box-sizing: border-box;
}

section.section.contact {
  padding-top: 0;
  padding-bottom: 72px;
}

.contact-box,
#platform .pilot-box,
body.platform-doc .pilot-box {
  box-sizing: border-box;
  width: 100%;
  height: 176px;
  min-height: 176px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid var(--line, rgba(243, 242, 237, 0.14));
  background: var(--panel, #191d24);
}

.contact-box .contact-copy,
#platform .pilot-box .contact-copy,
body.platform-doc .pilot-box .contact-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.contact-box h2,
#platform .pilot-box h2,
body.platform-doc .pilot-box h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: left;
  text-transform: uppercase;
  line-height: 1.05;
  white-space: normal;
}

.contact-box p,
#platform .pilot-box p,
body.platform-doc .pilot-box p {
  margin: 8px 0 0;
  max-width: 62ch;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--mute, rgba(243, 242, 237, 0.62));
}

.contact-actions,
#platform .pilot-side,
body.platform-doc .pilot-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  margin: 0;
}

.contact-box .btn,
.contact-box .copy-email,
#platform .pilot-box .btn,
body.platform-doc .pilot-box .btn {
  box-sizing: border-box;
  height: 48px;
  margin: 0;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  width: auto;
  border: 0;
  background: var(--ink, #f3f2ed);
  color: #101218;
  font-family: "Syne", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}

footer.site-foot {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 48px) 40px;
  border-top: 1px solid var(--line, rgba(243, 242, 237, 0.14));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute, rgba(243, 242, 237, 0.62));
}

footer.site-foot .foot-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

footer.site-foot a {
  color: var(--ink, #f3f2ed);
  text-decoration: none;
}

footer.site-foot a.next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 168px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line, rgba(243, 242, 237, 0.14));
  background: var(--panel, #191d24);
  color: var(--ink, #f3f2ed);
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer.site-foot a.next:hover {
  color: var(--ink, #f3f2ed);
  border-color: var(--signal, #4aa3e0);
}

@media (max-width: 860px) {
  .contact-box,
  #platform .pilot-box,
  body.platform-doc .pilot-box {
    height: auto;
    min-height: 176px;
    flex-wrap: wrap;
    align-items: stretch;
    padding: 28px 20px;
  }

  .contact-actions,
  #platform .pilot-side,
  body.platform-doc .pilot-side {
    width: 100%;
    flex-wrap: wrap;
  }

  .contact-box .btn,
  #platform .pilot-box .btn,
  body.platform-doc .pilot-box .btn {
    flex: 1 1 180px;
  }

  footer.site-foot {
    flex-wrap: wrap;
  }

  footer.site-foot a.next {
    min-width: 168px;
  }
}
