/* /services/human-calls-for-ai-agents.

   Only what the shared stylesheet does not already have: the call card in the
   hero, the problem and use-case cards, the API panel, the ground rules and
   the waitlist form. Colours, type and radii all come from site.css tokens so
   the page reads as the same site. */

/* Headings on this page break evenly, so no line ends on one stray word. */
.hc-hero h1, .hc-page .section-head h2 { text-wrap: balance; }

/* ---------- hero: the call card ---------- */
.hc-call .brief-stack { gap: 12px; }
.hc-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.hc-card-top .ui-card-label { margin-bottom: 0; }
.hc-api-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; font-weight: 600;
  color: var(--action-deep); background: #eef3fd; border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.hc-task .brief-row .v { max-width: 26ch; }
.hc-collect { display: flex; align-items: baseline; gap: 14px; padding-top: 8px; font-size: 14.5px; }
.hc-collect .k { color: var(--ink-faint); flex: none; }
.hc-collect .brief-chips { padding-top: 0; justify-content: flex-end; margin-left: auto; }

.hc-connector .conn-text { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.hc-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c58b; flex: none; }
.hc-call.is-live .hc-dot { background: var(--action); }
.hc-clock { font-variant-numeric: tabular-nums; color: var(--ink-faint); letter-spacing: 0.04em; }

.hc-result { background: var(--band); display: flex; flex-direction: column; }
.hc-result .ui-card-label { color: #a8bacb; }
.hc-line {
  font-size: 12.5px; color: #cfdbe7; text-align: right; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hc-result-rows { display: flex; flex-direction: column; }
.hc-result-row {
  display: flex; justify-content: space-between; gap: 14px; padding: 8px 0;
  font-size: 14.5px; border-top: 1px solid rgba(255,255,255,0.12);
}
.hc-result-row .k { color: #a8bacb; }
.hc-result-row .v { color: #fff; font-weight: 700; text-align: right; transition: opacity 0.3s ease; }
.hc-call.is-live .hc-result-row .v { color: #6f8aa3; font-weight: 600; }
.hc-result-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 10px -10px -8px; padding: 11px 14px; background: #22384e; border-radius: 10px;
}
.hc-files { display: flex; gap: 6px; }
.hc-files span {
  font-family: var(--font-display); font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; padding: 3px 10px;
}
.hc-billed { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: #aef1e1; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- shared card bits ---------- */
/* card icons reuse the nav's .dd-icon tile and tints, one size up */
.hc-icon { width: 46px; height: 46px; border-radius: 12px; }
.hc-icon img { width: 26px; height: 26px; }
.hc-problem h3, .hc-case h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- why this exists ---------- */
.hc-problems { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hc-problem {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 12px;
}
.hc-problem p { font-size: 15px; }

/* ---------- use cases ---------- */
.hc-cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hc-case {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 24px 22px 20px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.hc-case:hover { border-color: #c9dbe6; box-shadow: 0 18px 36px -24px rgba(43,69,95,0.45); transform: translateY(-2px); }
.hc-case > p:not(.hc-example) { font-size: 15px; }
.hc-example {
  margin-top: auto; padding: 12px 14px; border-radius: 10px; background: var(--bg-wash);
  font-size: 13.5px; line-height: 1.5; color: var(--ink);
}
.hc-example span {
  display: block; margin-bottom: 3px; font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint);
}

/* ---------- how it works + API panel ---------- */
.hc-how { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.hc-steps { list-style: none; display: flex; flex-direction: column; }
.hc-step { display: flex; gap: 18px; padding: 20px 0; position: relative; }
.hc-step + .hc-step { border-top: 1px solid rgba(43,69,95,0.12); }
.hc-step h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 4px; }
.hc-step p { font-size: 15px; }
.hc-step-n {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(43,69,95,0.14);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.hc-step.is-on .hc-step-n { background: var(--ink); color: #fff; box-shadow: 0 0 0 4px rgba(46,166,245,0.18); }

.hc-code {
  background: #1d3044; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(18,32,48,0.6);
  position: sticky; top: 104px;
}
.hc-code-bar { display: flex; align-items: center; gap: 4px; padding: 10px 10px 0 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hc-code-bar [role="tab"] {
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: #a8bacb;
  padding: 10px 14px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease; min-height: 44px;
}
.hc-code-bar [role="tab"]:hover { color: #fff; }
.hc-code-bar [role="tab"][aria-selected="true"] { color: #fff; border-color: #2ea6f5; }
.hc-code-dots { margin-left: auto; display: flex; gap: 6px; padding-right: 6px; }
.hc-code-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.hc-code-pane { padding: 18px 22px 6px; outline: none; }
.hc-code-pane:focus-visible { box-shadow: inset 0 0 0 2px var(--action); }
.hc-code-line, .hc-code pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.7;
}
.hc-code-line { color: #e6eef5; margin-bottom: 8px; }
.hc-method { color: #aef1e1; font-weight: 700; margin-right: 6px; }
.hc-method.is-hook { color: #ffd38a; }
.hc-code pre { color: #cfdbe7; overflow-x: auto; padding-bottom: 14px; }
.hc-code .tok-k { color: #8fd3ff; }
.hc-code .tok-s { color: #aef1e1; }
.hc-code .tok-n { color: #ffd38a; }
.hc-code .tok-p { color: #7f96ab; }
.hc-code-note {
  margin: 0 22px; padding: 12px 0 16px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px; color: #8ea3b7;
}

/* ---------- callers band ---------- */
.hc-callers .section-head { margin-bottom: 36px; }
.hc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row; }

/* ---------- pricing: the note is long, keep the figure column narrow ---------- */
#pricing .pricing-note { max-width: 32ch; }

/* ---------- ground rules ---------- */
.hc-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.hc-rule { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 24px; }
.hc-rule-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); margin-bottom: 14px; }
.hc-rule ul { list-style: none; display: flex; flex-direction: column; }
.hc-rule li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; font-size: 15px; color: var(--ink-soft); }
.hc-rule li + li { border-top: 1px dashed var(--line); }
.hc-mark {
  width: 22px; height: 22px; border-radius: 50%; flex: none; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
}
.hc-mark.is-yes { background: var(--action); color: #fff; }
.hc-mark.is-no { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- waitlist ---------- */
.hc-wait { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.hc-wait-sub { font-size: 1.06rem; margin: 14px 0 30px; max-width: 46ch; }
.hc-who-title {
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px;
}
.hc-who { list-style: none; }
.hc-who li { padding: 12px 0; border-bottom: 1px solid rgba(43,69,95,0.12); font-size: 15px; }
.hc-who b { font-family: var(--font-display); font-weight: 600; color: var(--ink); }

.hc-form-card {
  background: #fff; border-radius: 16px; padding: clamp(22px, 3vw, 36px);
  box-shadow: 0 24px 52px -28px rgba(43,69,95,0.4);
}
/* The form and its messages set their own display, which would beat the
   hidden attribute the script toggles. */
.hc-page [hidden] { display: none !important; }
.hc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; }
.hc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hc-field:has(textarea), .hc-field:has(select), .hc-form-error, .hc-submit, .hc-form-foot { grid-column: 1 / -1; }
.hc-field label { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.hc-optional { font-family: var(--font-body); font-weight: 400; color: var(--ink-faint); font-size: 13px; margin-left: 4px; }
.hc-field input, .hc-field select, .hc-field textarea {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
  background: #fff; border: 1.5px solid #d6e1e9; border-radius: 10px; padding: 11px 14px; min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hc-field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232b455f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 12px no-repeat;
}
.hc-field select:invalid { color: var(--ink-faint); }
.hc-field textarea { resize: vertical; min-height: 92px; }
.hc-field input::placeholder, .hc-field textarea::placeholder { color: #8a9bab; }
.hc-field input:hover, .hc-field select:hover, .hc-field textarea:hover { border-color: #b9cad7; }
.hc-field input:focus, .hc-field select:focus, .hc-field textarea:focus {
  outline: none; border-color: var(--action); box-shadow: 0 0 0 4px rgba(46,166,245,0.16);
}
.hc-field [aria-invalid="true"] { border-color: #c4373b; }
.hc-field-error, .hc-form-error { font-size: 13.5px; color: #b3262b; }
.hc-form-error { background: #fdf0f0; border-radius: 10px; padding: 10px 14px; }
.hc-submit { justify-content: center; min-height: 50px; margin-top: 4px; }
.hc-submit[disabled] { opacity: 0.7; cursor: progress; }
.hc-form-foot { font-size: 13px; color: var(--ink-faint); text-align: center; }
/* The trap field is for bots: off-screen rather than display:none, which
   some form fillers skip. */
.hc-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hc-done { text-align: center; padding: 40px 12px; outline: none; }
.hc-done-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center; background: var(--action); color: #fff;
}
.hc-done h3 { font-size: 1.5rem; margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hc-problems, .hc-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .hc-call { max-width: 520px; }
  .hc-how, .hc-wait { grid-template-columns: minmax(0, 1fr); }
  .hc-code { position: static; }
  .hc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-stats .rd-stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 767px) {
  .hc-rules { grid-template-columns: minmax(0, 1fr); }
  .hc-form { grid-template-columns: minmax(0, 1fr); }
  .hc-form > * { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  /* site.css turns the homepage's brief rows into chips on a phone and hides
     their labels. This card keeps its labelled rows, so those rules are undone. */
  .hc-call .brief-stack .brief-row {
    background: none; border-radius: 0; padding: 6px 0; border-bottom: 1px dashed var(--line);
    font-family: var(--font-body); font-size: 14px;
  }
  .hc-call .brief-stack .brief-row .k { display: inline; }
  .hc-call .brief-stack .brief-row .v { font-weight: 700; text-align: right; }
  .hc-call .brief-stack .brief-chips { display: flex; }
  .hc-problems, .hc-cases { grid-template-columns: minmax(0, 1fr); }
  .hc-task .brief-row .v { max-width: 20ch; }
  .hc-collect { flex-direction: column; gap: 6px; }
  .hc-collect .brief-chips { margin-left: 0; justify-content: flex-start; }
  .hc-result-foot { margin: 10px -8px -6px; flex-wrap: wrap; }
  .hc-code-pane { padding: 16px 16px 4px; }
  .hc-code-note { margin: 0 16px; }
  .hc-code-line, .hc-code pre { font-size: 12px; }
  .hc-rule { padding: 22px 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-case, .hc-step-n, .hc-result-row .v { transition: none; }
  .hc-case:hover { transform: none; }
}
