/* Book-a-call wizard (js/call.js creates the modal). Full-screen "free
   audit call" experience - the audit page's grammar: big serif question,
   kicker, whole viewport. Standalone on purpose: subpages include only
   this file + call.js. */

.call-modal {
  position: fixed;
  inset: 0;
  z-index: 500; /* above the studio overlay (z 90); Calendly sits above all */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(212, 160, 82, 0.06), transparent 55%),
    var(--bg-deep);
  overflow-y: auto;
  animation: callModalIn 0.4s var(--ease-out);
}
@keyframes callModalIn { from { opacity: 0; } to { opacity: 1; } }
.call-modal[hidden] { display: none; }

.call-card {
  position: relative;
  width: min(100%, 920px);
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(2.5rem, 8vh, 5rem) clamp(1.5rem, 6vw, 4rem);
  overflow: visible;
}

/* page-wide progress along the very top */
.call-track {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
}
.call-track i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.45s var(--ease-out);
}

.call-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.call-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.call-progress {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}
.call-attach {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--success);
  margin: -0.6rem 0 1.4rem;
}
.call-attach[hidden] { display: none; }

.call-step { min-height: 14rem; }
.call-step.is-in .call-q,
.call-step.is-in .call-sub,
.call-step.is-in .builder-input,
.call-step.is-in .call-taps { animation: callIn 0.5s var(--ease-out-expo) both; }
.call-step.is-in .call-sub { animation-delay: 0.06s; }
.call-step.is-in .builder-input,
.call-step.is-in .call-taps { animation-delay: 0.12s; }
@keyframes callIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.call-q {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.7rem;
}
.call-sub {
  color: var(--text-muted);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 58ch;
  margin: 0 0 1.1rem;
}

/* controls - self-contained versions of the studio's input grammar */
.call-card .builder-input {
  width: 100%;
  max-width: 640px;
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  margin: 0.9rem 0 0;
  outline: none;
  transition: border-color 0.2s;
}
.call-card .builder-input:focus { border-color: var(--accent-dim); }
.call-card textarea.builder-input { resize: vertical; min-height: 9rem; line-height: 1.55; max-width: 720px; }
.call-taps { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.call-taps .builder-tool {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.call-taps .builder-tool::before { content: none; }
.call-taps .builder-tool:hover { border-color: var(--border-hover); color: var(--text); }
.call-taps .builder-tool.is-on {
  color: var(--accent-bright);
  border-color: var(--accent-dim);
  background: var(--accent-soft);
}
.call-card .builder-next {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 8px;
  padding: 0.95rem 1.8rem;
  cursor: pointer;
  transition: background 0.18s;
}
.call-card .builder-next:hover { background: var(--accent-bright); }
.call-card .wb-clear {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.call-card .wb-clear:hover { color: var(--text-muted); }

.call-actions {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.call-teaser {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.call-teaser kbd {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  border: 1px solid var(--border-hover);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  color: var(--text-dim);
}

.call-close {
  position: fixed;
  top: 1.1rem;
  right: 1.3rem;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}
.call-close:hover { color: var(--text); border-color: var(--border-hover); }

/* error line (also defined in audit's flow.css - duplicated so this file
   stands alone on pages that don't load it) */
.flow-error {
  display: none;
  color: var(--danger);
  font-size: 0.85rem;
  margin: 0.6rem 0 0;
}
.flow-error.is-visible { display: block; }

@media (max-width: 520px) {
  .call-card { padding: 4.5rem 1.3rem 2rem; }
  .call-teaser { margin-left: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .call-step.is-in .call-q, .call-step.is-in .call-sub,
  .call-step.is-in .builder-input, .call-step.is-in .call-taps { animation: none; }
  .call-track i { transition: none; }
}
