/* ============================================================
   Calls Into Jobs — shared design system
   Palette inherited from the original one-page site:
   navy #0d2137 / orange #ff6b35
   Mobile-first. No external fonts (Core Web Vitals).
   ============================================================ */

:root {
  --navy: #0d2137;
  --navy-800: #132d4a;
  --navy-700: #1a3a5c;
  --navy-100: #e8eef4;
  --orange: #ff6b35;
  --orange-dark: #e8551f;
  --orange-soft: #fff1ea;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --ink: #1c2b3a;
  --muted: #55677a;
  --line: #e3e9ef;
  --green: #1e8e5a;
  --amber: #b45309;
  --amber-bg: #fff7e6;
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1120px;
  --shadow: 0 4px 24px rgba(13, 33, 55, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 800; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
@media (min-width: 768px) { section { padding: 80px 0; } }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 12px;
}
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-lg { padding: 16px 34px; font-size: 1.1rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 12px; flex-wrap: nowrap;
}
.logo {
  font-size: 1.25rem; font-weight: 800; color: var(--navy);
  letter-spacing: -0.02em; white-space: nowrap; flex-shrink: 0;
}
.logo span { color: var(--orange); }
.logo:hover { text-decoration: none; }
.logo-light { color: #fff; }

.site-nav { display: none; }
.site-nav.open {
  display: flex; flex-direction: column;
  position: absolute; top: 64px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 12px 20px 20px;
  box-shadow: var(--shadow);
}
.site-nav a {
  color: var(--navy); font-weight: 600; padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.site-nav a:hover { color: var(--orange-dark); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--orange-dark); }
.site-nav .nav-cta { border-bottom: none; margin-top: 12px; color: #fff; }
.site-nav .nav-cta:hover { color: #fff; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: none; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span { display: block; height: 3px; width: 100%; background: var(--navy); border-radius: 2px; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; align-items: center; gap: 22px;
    position: static; box-shadow: none; border: none; padding: 0;
  }
  .site-nav a { border-bottom: none; padding: 6px 0; font-size: 0.95rem; }
  .site-nav .nav-cta { margin-top: 0; padding: 10px 20px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 64px 0 72px;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .lead { color: rgba(255,255,255,0.85); font-size: 1.2rem; max-width: 640px; }
.hero .accent { color: var(--orange); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 88px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

/* Photo heroes: keep the photo bright; darken only under the text
   via a directional scrim on .hero-copy (not a full-bleed overlay). */
.hero-photo {
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-photo::before {
  /* very light overall tint for edge blending only — not for text contrast */
  content: ""; position: absolute; inset: 0;
  background: rgba(13, 33, 55, 0.18);
}
.hero-photo .container { position: relative; z-index: 1; }
.hero-copy {
  background: linear-gradient(115deg, rgba(13,33,55,0.92) 0%, rgba(13,33,55,0.84) 62%, rgba(13,33,55,0.58) 100%);
  border-radius: var(--radius);
  padding: 30px 28px;
}
@media (min-width: 900px) { .hero-copy { padding: 38px 36px; } }

/* ---------- Content images ---------- */
.img-rounded {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

/* ---------- Shared chat message bubbles (used by the hero preview and the
   site-wide floating widget below) ---------- */
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.msg { padding: 10px 14px; border-radius: 14px; max-width: 85%; line-height: 1.45; word-wrap: break-word; }
.msg-bot { background: var(--bg-alt); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-user { background: var(--orange); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }

/* ---------- Hero widget preview (static teaser — opens the real floating
   widget instead of running its own separate chat) ---------- */
.widget-preview {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; max-width: 420px; width: 100%; margin: 0 auto; color: var(--ink);
}
.widget-preview-head {
  background: var(--navy-800); color: #fff; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600;
}
.widget-preview-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.widget-preview-actions { display: flex; gap: 10px; padding: 4px 16px 20px; }
.widget-preview-actions .btn { flex: 1; font-size: 0.92rem; padding: 12px 10px; }
.widget-preview-foot {
  border-top: 1px solid var(--line); padding: 10px 16px;
  font-size: 0.78rem; color: var(--muted); text-align: center;
}

/* ---------- Global floating widget (chat + click-to-call), on every page.
   Presentation modeled on the ElevenLabs Agents widget (elevenlabs.io/docs/
   eleven-agents/overview): collapsed bubble → expanded panel with an orb
   avatar, a call action, and a text chat. Injected by chat-widget.js. ---------- */
.ci-widget { position: fixed; right: 18px; bottom: 18px; z-index: 9999; font-family: var(--font); }

.ci-widget-fab {
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: conic-gradient(from 180deg, var(--navy) 0%, var(--orange) 50%, var(--navy) 100%);
  box-shadow: 0 6px 20px rgba(13,33,55,0.35);
  align-items: center; justify-content: center;
}
.ci-widget-fab svg { width: 24px; height: 24px; fill: #fff; }

.ci-widget-bubble {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 999px; box-shadow: var(--shadow);
  padding: 8px 8px 8px 14px; max-width: 340px;
}
.ci-widget-bubble-orb {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(from 180deg, var(--navy), var(--orange), var(--navy));
}
.ci-widget-bubble-text { font-size: 0.86rem; font-weight: 600; color: var(--navy); flex: 1; }
.ci-widget-bubble-actions { display: flex; align-items: center; gap: 6px; }
.ci-widget-btn-call {
  display: inline-flex; align-items: center; gap: 6px; background: var(--orange); color: #fff;
  border: none; border-radius: 999px; padding: 10px 14px; font-weight: 700; font-size: 0.85rem;
  cursor: pointer; white-space: nowrap;
}
.ci-widget-btn-call svg { width: 14px; height: 14px; fill: #fff; }
.ci-widget-btn-call:hover { background: var(--orange-dark); text-decoration: none; color: #fff; }
.ci-widget-icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-alt);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; padding: 0;
}
.ci-widget-icon-btn svg { width: 16px; height: 16px; fill: var(--navy); }
.ci-widget-icon-btn:hover { background: var(--orange-soft); }

.ci-widget-panel {
  width: 360px; max-width: calc(100vw - 32px); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; flex-direction: column;
}
.ci-widget-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.ci-widget-panel-title { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.ci-widget-panel-sub { font-size: 0.78rem; color: var(--muted); }
.ci-widget-orb-wrap { display: flex; flex-direction: column; align-items: center; padding: 20px 16px 12px; }
.ci-widget-orb {
  width: 88px; height: 88px; border-radius: 50%;
  background: conic-gradient(from 180deg, var(--navy) 0%, var(--orange) 50%, var(--navy) 100%);
  box-shadow: 0 4px 18px rgba(13,33,55,0.25);
  animation: ciWidgetSpin 6s linear infinite;
}
@keyframes ciWidgetSpin { to { transform: rotate(360deg); } }
.ci-widget-call-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center; margin-top: -18px; box-shadow: var(--shadow);
  cursor: pointer;
}
.ci-widget-call-btn svg { width: 16px; height: 16px; fill: #fff; }
.ci-widget-call-btn:hover { background: var(--orange-dark); }
.ci-widget-messages {
  padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem;
  max-height: 260px; overflow-y: auto; scroll-behavior: smooth;
}
.ci-widget-input { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.ci-widget-input input {
  flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 0.9rem; font-family: var(--font); background: var(--bg-alt);
}
.ci-widget-input input:focus { outline: 2px solid var(--orange); outline-offset: 0; background: #fff; }
.ci-widget-input button {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; border: none;
  background: var(--orange); color: #fff; font-size: 1rem; font-weight: 800; cursor: pointer;
}
.ci-widget-input button:hover { background: var(--orange-dark); }
.ci-widget-input button:disabled { opacity: 0.6; cursor: default; }
.ci-widget-foot { border-top: 1px solid var(--line); padding: 8px 14px; font-size: 0.72rem; color: var(--muted); text-align: center; }

@media (max-width: 480px) {
  .ci-widget { right: 12px; bottom: 12px; left: 12px; }
  .ci-widget-bubble { max-width: none; }
  .ci-widget-bubble-text { display: none; }
  .ci-widget-panel { width: 100%; max-width: none; }
}

/* ---------- Header call link ---------- */
.nav-call { color: var(--orange-dark) !important; font-weight: 800 !important; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--bg-alt); }
.stats-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--orange-dark); line-height: 1.1; }
.stat-label { font-weight: 600; color: var(--navy); margin-top: 6px; }
.stat-source { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }
.stats-note { font-size: 0.8rem; color: var(--muted); margin-top: 20px; }

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; gap: 24px; }
.grid-3 { display: grid; gap: 24px; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 2px 8px rgba(13,33,55,0.04);
}
.card h3 { margin-bottom: 10px; }
.card .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-dark);
  font-weight: 800; font-size: 1.1rem; margin-bottom: 14px;
}
.card-accent { border-top: 4px solid var(--orange); }

/* ---------- Flow diagram ---------- */
.flow { display: flex; flex-direction: column; gap: 0; max-width: 560px; margin: 0 auto; }
.flow-step {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; text-align: center;
}
.flow-step strong { color: var(--navy); display: block; }
.flow-step small { color: var(--muted); }
.flow-step.highlight { border-color: var(--orange); background: var(--orange-soft); }
.flow-arrow {
  text-align: center; color: var(--orange); font-size: 1.5rem; line-height: 1;
  padding: 6px 0; font-weight: 800;
}

/* ---------- Trust band ---------- */
.trust-band { background: var(--navy); color: #fff; padding: 40px 0; }
.trust-grid { display: grid; gap: 20px; text-align: center; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item strong { display: block; font-size: 1.05rem; color: var(--orange); margin-bottom: 4px; }
.trust-item span { font-size: 0.9rem; color: rgba(255,255,255,0.8); }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; min-width: 560px; font-size: 0.95rem;
}
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: var(--navy); color: #fff; font-size: 0.9rem; }
.compare-table thead th:nth-child(3) { background: var(--orange-dark); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 600; color: var(--navy); }

/* ---------- Pricing ---------- */
.price-cards { display: grid; gap: 24px; max-width: 860px; margin: 0 auto; }
@media (min-width: 768px) { .price-cards { grid-template-columns: repeat(2, 1fr); } }
.price-card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 32px; }
.price-card.featured { border-color: var(--orange); }
.price-figure { font-size: 2.4rem; font-weight: 800; color: var(--navy); margin: 8px 0 2px; }
.price-figure small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-from { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.check-list { list-style: none; margin: 18px 0 0; }
.check-list li { padding: 7px 0 7px 30px; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--green); font-weight: 800;
}
.x-list li::before { content: "—"; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px; font-weight: 700; color: var(--navy); cursor: pointer;
  list-style: none; position: relative; padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--orange); font-size: 1.4rem; font-weight: 800;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); max-width: 560px; margin: 0 auto;
}
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: 0.95rem; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"],
.form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 1rem; font-family: var(--font);
  background: var(--bg-alt);
}
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--orange); outline-offset: 0; background: #fff;
}
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: 0.85rem; color: var(--muted); }
.consent-row input { margin-top: 4px; flex-shrink: 0; width: 16px; height: 16px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }
.form-success {
  background: #ecfdf3; border: 1px solid #b7e4c7; color: var(--green);
  border-radius: var(--radius-sm); padding: 14px 18px; font-weight: 600;
  margin-bottom: 20px; display: none;
}

/* ---------- Placeholders (proof page etc.) ---------- */
.placeholder-card {
  border: 2px dashed #d9a441; background: var(--amber-bg);
  border-radius: var(--radius); padding: 28px; color: var(--amber);
}
.placeholder-card h3 { color: var(--amber); }
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.badge-amber { background: #fde9c8; color: var(--amber); }
.badge-navy { background: var(--navy-100); color: var(--navy); }

/* ---------- Callout ---------- */
.callout {
  background: var(--orange-soft); border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm); padding: 20px 24px; margin: 24px 0;
}
.callout-navy { background: var(--navy-100); border-left-color: var(--navy); }

/* ---------- CTA section ---------- */
.cta-section { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff; text-align: center; }
.cta-section h2 { color: #fff; }
.cta-section .lead { color: rgba(255,255,255,0.85); margin: 12px auto 28px; max-width: 620px; }

/* ---------- Alt background ---------- */
.section-alt { background: var(--bg-alt); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: 56px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 32px; margin-bottom: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.footer-brand p { margin-top: 14px; max-width: 320px; font-size: 0.9rem; }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--orange); text-decoration: none; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px;
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
}
.footer-legal p { margin-bottom: 6px; }
.footer-ai-line { color: var(--orange); font-weight: 600; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.small { font-size: 0.85rem; color: var(--muted); }
