/* ═══════════════════════════════════════════════════════════════
   Turnkey Systems — V2 (Home-Services Revenue Redesign)
   Loaded ONLY on V2 templates (page-home-v2.php, missed-call-recovery,
   home-services). Extends fxcto.css's existing variables/components —
   does not redefine or override anything V1 pages rely on.
   ═══════════════════════════════════════════════════════════════ */

/* ── Pain recognition list ── */
.pain-list { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin: 0 auto; }
.pain-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; font-size: 0.95rem; color: rgba(var(--fg-rgb),0.82); line-height: 1.5;
}
.pain-item .pain-mark { color: #ef4444; font-size: 1.1rem; font-weight: 800; flex-shrink: 0; line-height: 1.4; }

/* ── Workflow diagram (missed-call recovery flow) ── */
.workflow-diagram { display: flex; flex-direction: column; align-items: stretch; gap: 0; max-width: 620px; margin: 0 auto; }
.workflow-step {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; display: flex; align-items: center; gap: 14px;
}
.workflow-step .wf-num {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue-grad); color: #fff; font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.workflow-step .wf-text { font-size: 0.92rem; color: var(--white); font-weight: 600; }
.workflow-step .wf-sub { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.workflow-arrow { text-align: center; color: var(--blue-light); font-size: 1.3rem; padding: 4px 0; }
.workflow-step.wf-human { border-color: var(--border-blue); background: rgba(77,184,255,0.06); }
.workflow-step.wf-human .wf-num { background: linear-gradient(135deg,var(--green),#34d399); }

/* ── Simulated demo phone ── */
.demo-phone-wrap { max-width: 380px; margin: 0 auto; }
.demo-phone {
  background: var(--bg-dark); border: 1px solid var(--border); border-radius: 28px;
  padding: 20px 16px 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.demo-phone-header { text-align: center; font-size: 0.72rem; color: var(--muted); margin-bottom: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.demo-thread { display: flex; flex-direction: column; gap: 10px; min-height: 260px; }
.demo-bubble {
  max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 0.85rem; line-height: 1.4;
  opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.35s ease;
}
.demo-bubble.in { opacity: 1; transform: translateY(0); }
.demo-bubble.system { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border); color: var(--white); border-bottom-left-radius: 4px; }
.demo-bubble.customer { align-self: flex-end; background: var(--blue-grad); color: #fff; border-bottom-right-radius: 4px; }
.demo-bubble.event {
  align-self: center; background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.35);
  color: #f59e0b; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px;
}
.demo-controls { text-align: center; margin-top: 16px; }
.demo-note { text-align: center; font-size: 0.72rem; color: var(--muted); margin-top: 10px; }

/* ── Revenue calculator ── */
.calc-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-lg) var(--sp-md); max-width: 640px; margin: 0 auto;
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); margin-bottom: var(--sp-md); }
@media (max-width: 560px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-field label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.calc-field input, .calc-field select {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-dark); color: var(--white); font-size: 0.92rem;
}
.calc-results { border-top: 1px solid var(--border); padding-top: var(--sp-md); margin-top: 4px; }
.calc-result-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; font-size: 0.9rem; color: rgba(var(--fg-rgb),0.75); }
.calc-result-row strong { color: var(--white); font-size: 1.05rem; }
.calc-result-row.headline strong { color: var(--green,#10b981); font-size: 1.6rem; }
.calc-disclaimer { font-size: 0.75rem; color: var(--muted); margin-top: var(--sp-sm); line-height: 1.5; }

/* ── FAQ accordion ── */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 16px 20px; font-size: 0.95rem; font-weight: 700; color: var(--white);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q .faq-toggle-icon { flex-shrink: 0; transition: transform 0.2s ease; color: var(--blue-light); }
.faq-item.open .faq-q .faq-toggle-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a-inner { padding: 0 20px 18px; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.faq-item.open .faq-a { max-height: 400px; }

/* ── Trust strip (real facts, no fabricated proof) ── */
.trust-facts-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-sm); max-width: 720px; margin: 0 auto; }
@media (min-width: 640px) { .trust-facts-grid { grid-template-columns: repeat(3,1fr); } }
.trust-fact { text-align: center; padding: var(--sp-sm); }
.trust-fact .tf-num { font-family: var(--ff-display); font-size: 1.8rem; font-weight: 800; color: var(--white); }
.trust-fact .tf-label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* ── Home-services icon strip ── */
.hs-workflow-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-sm); }
@media (min-width: 640px) { .hs-workflow-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px) { .hs-workflow-grid { grid-template-columns: repeat(3,1fr); } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .demo-bubble { transition: none; }
  .faq-a { transition: none; }
}
