/* Talk to Us and Book a free call screens for the static pages in public/site/.
   Copied from the call block in app/frosted-home.css; keep the two in step. */
#in-motion-talk {
  --font-geist-sans: "Geist";
  --font-geist-mono: "Geist Mono";
}
#in-motion-talk *, #in-motion-talk *::before, #in-motion-talk *::after { box-sizing: border-box; }

.call-stage {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px calc(32px + env(safe-area-inset-bottom));
  background: #fafaf8;
  color: #17191e;
  font-family: var(--font-geist-sans), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.call-kicker {
  margin: 0;
  font-family: var(--font-geist-mono), ui-monospace, "SF Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f7278;
}

.call-pulse {
  width: 18px;
  height: 18px;
  margin: 28px 0 22px;
  border-radius: 50%;
  background: #17191e;
  animation: call-pulse 1.6s ease-in-out infinite;
}

.call-line {
  margin: 0 0 48px;
  max-width: 14em;
  text-align: center;
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.call-end {
  min-width: 168px;
  height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: #17191e;
  color: #fafaf8;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.call-manual {
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: none;
  color: #6f7278;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.after-call {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: auto;
  padding: 28px 24px calc(40px + env(safe-area-inset-bottom));
  background: #fafaf8;
  color: #17191e;
  font-family: var(--font-geist-sans), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.after-letter {
  margin: 8px 0 28px;
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.02em;
  color: #17191e;
}

.call-stage .after-letter {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  text-align: center;
  margin: 0;
}

.after-letter span {
  color: #6f7278;
  font-weight: 400;
}

.after-title {
  margin: 18px 0 10px;
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-align: center;
}

.after-sub {
  margin: 0 0 40px;
  max-width: 28ch;
  text-align: center;
  color: #6f7278;
  font-size: 16px;
  line-height: 1.45;
}

.after-form {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.after-field span {
  display: block;
  font-family: var(--font-geist-mono), ui-monospace, "SF Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6f7278;
}

.after-field input,
.after-field textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid #e9e7e4;
  border-radius: 0;
  background: transparent;
  color: #17191e;
  font: inherit;
  font-size: 20px;
  letter-spacing: -0.02em;
  outline: none;
  resize: none;
}

.after-field input:focus,
.after-field textarea:focus {
  border-bottom-color: #17191e;
}

.after-form .call-end {
  align-self: center;
  margin-top: 8px;
}

.after-call-done {
  justify-content: center;
  padding-top: 24px;
}

.after-call-done .after-letter {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  text-align: center;
  margin: 0;
}

.after-call-done .after-sub {
  margin-bottom: 48px;
}

@keyframes call-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.45;
  }
}

/* Sit above every page's nav and menus. */
.call-stage { z-index: 1000; }
.after-call { z-index: 1001; }

/* X in the top-right corner of the Talk to Us screens */
.overlay-x {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top));
  right: 16px;
  z-index: 1002;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #17191e;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: box-shadow 120ms, transform 120ms;
}
.overlay-x:hover { box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.06); }
.overlay-x:active { transform: scale(0.96); }
.overlay-x:focus-visible { outline: 2px solid #17191e; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .overlay-x { transition: none; } }
