/* AI phone system page only (/services/ai-phone-system/). Loaded after the page's own link order, so selectors are scoped under .aps-*.
   Rule for this page: every block of text sits on a card or panel, never straight on a colour or image background.
   No inline styles are used anywhere (the site CSP allows style-src 'self' only). */

/* Hero: copy frame (existing .hero-copy) on the left, a words-free call-flow drawing on the right */
.aps-hero .aps-hero-inner{display:grid;grid-template-columns:minmax(0,1fr);gap:2rem;align-items:center}
.aps-hero .hero-copy{max-width:100%}
.aps-hero .hero-copy .lead{max-width:62ch}
.aps-flow{display:none;width:100%;max-width:420px;height:auto;justify-self:end;color:var(--teal-light)}
.aps-flow .aps-n{fill:rgba(143,211,214,.12)}
.aps-flow .aps-ai{fill:rgba(143,211,214,.22);stroke-width:2.6}
.aps-flow .aps-dash{stroke-dasharray:3 9;opacity:.8}
@media (min-width:980px){
  .aps-hero .aps-hero-inner{grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr)}
  .aps-flow{display:block}
}

/* Body: a stack of white panels on the page background */
.aps-body{padding:clamp(2rem,5vw,3.5rem) 0}
.aps-stack{display:grid;gap:1.5rem}
.aps-pair{display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,430px),1fr))}
.aps-panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:clamp(1.25rem,3vw,2.25rem);min-width:0}
.aps-panel p{margin:0 0 1rem;max-width:75ch}
.aps-panel p:last-child{margin-bottom:0}
.aps-head{display:flex;align-items:center;gap:1rem;margin:0 0 1.25rem}
.aps-head .icon{margin:0;flex:none;background:var(--teal)}
.aps-head h2{margin:0;font-size:clamp(1.4rem,2.6vw,1.9rem)}
.aps-pair .aps-panel{border-top:4px solid var(--teal)}

/* How it works: five numbered cards inside the panel */
.aps-steps{list-style:none;margin:0;padding:0;display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));counter-reset:none}
.aps-step{background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem 1.1rem 1.25rem}
.aps-step .step-n{background:var(--teal);margin-bottom:.7rem}
.aps-step p{margin:0;color:var(--ink);max-width:none}

/* MSP panel: deep navy panel, text stays on the panel */
.aps-msp{background:linear-gradient(90deg,rgba(143,211,214,.16),rgba(143,211,214,0) 3rem),var(--frame);border-color:var(--frame-stroke);box-shadow:var(--frame-shadow);color:#fff}
.aps-msp .aps-head h2{color:#fff}
.aps-msp .aps-head .icon{background:rgba(143,211,214,.18);color:var(--teal-light)}
.aps-msp-lead{color:#e4ebfb;font-size:1.1rem}
.aps-msp-list{list-style:none;margin:1.25rem 0 1.5rem;padding:0;display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
.aps-msp-list li{background:rgba(255,255,255,.07);border:1px solid var(--frame-stroke);border-radius:var(--radius);padding:1rem 1.15rem;color:#fff}
.aps-btn-row{display:flex;flex-wrap:wrap;gap:.9rem}

/* Add-ons and compare */
.aps-addons p{font-size:1.1rem}
.aps-compare .table-wrap{margin-bottom:1.25rem}
.aps-compare .compare-table{box-shadow:none}
.aps-note{background:var(--bg);border:1px solid var(--line);border-left:6px solid var(--teal);border-radius:var(--radius);padding:1rem 1.25rem;color:var(--ink)}
.aps-compare .aps-note{max-width:none}

/* FAQ inside its panel */
.aps-faq .faq-grid li{box-shadow:none;background:var(--bg)}

@media (max-width:640px){
  .aps-head{align-items:flex-start}
  .aps-head .icon{width:44px;height:44px}
  .aps-hero .hero-copy{width:100%}
}
