/* CEO Coaching & Business Automation page.
   The category picker is one markup with two layouts:
   - wide screens: a list of problems on the left, the chosen one's detail in a
     sticky panel on the right (grid + display:contents, so every panel shares
     the right-hand cell);
   - narrow screens: the same items as an accordion, detail under its button.
   Without JavaScript (no .is-ready) every detail shows, stacked. */

.cx-sec{padding-top:clamp(40px,5vw,72px)}

.cx{--cx-line:rgba(52,63,88,.55);max-width:1180px;margin:0 auto}
.cx-group{
  font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted);line-height:1.2;padding:30px 18px 12px;
}
.cx-group:first-child{padding-top:0}

/* ── Problem buttons ─────────────────────────────────────────────────────── */
.cx-btn{
  width:100%;display:flex;align-items:center;gap:18px;text-align:left;
  padding:18px 18px;border-radius:14px;border:1px solid transparent;
  transition:background .25s,border-color .25s;
}
.cx-btn:hover{background:rgba(60,148,221,.05)}
.cx-text{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.cx-name{font-family:var(--display);font-weight:700;font-size:17px;line-height:1.35;letter-spacing:-.005em;color:#fff;transition:color .25s}
.cx-sym{font-size:14.5px;line-height:1.55;color:var(--muted);letter-spacing:.01em}
.cx-chev{
  width:20px;height:20px;flex:none;fill:none;stroke:var(--muted);stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;transition:transform .35s var(--ease),stroke .25s;
}
.cx-btn:hover .cx-chev{stroke:#fff}
.cx-item.is-open .cx-name{color:var(--light-navy)}
.cx-item.is-open .cx-chev{stroke:var(--light-navy)}

/* ── Detail card ─────────────────────────────────────────────────────────── */
.cx-card{
  position:relative;isolation:isolate;overflow:hidden;
  background:var(--elevated);border:1px solid var(--line);border-radius:24px;
  padding:clamp(26px,3.4vw,44px);
  box-shadow:0 30px 60px -34px rgba(4,104,255,.35);
}
.cx-card::before{
  content:'';position:absolute;z-index:-1;inset:-40% -30% auto auto;width:70%;aspect-ratio:1;
  background:radial-gradient(circle,rgba(60,148,221,.16) 0%,transparent 65%);pointer-events:none;
}
.cx-title{font-size:15px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--light-navy);line-height:1.4;margin-bottom:18px}
.cx-quote{
  font-family:var(--display);font-weight:200;font-size:clamp(24px,2.5vw,34px);
  line-height:1.25;letter-spacing:-.02em;color:#fff;text-wrap:balance;max-width:24ch;
  padding-bottom:28px;margin-bottom:28px;border-bottom:1px solid var(--cx-line);
}
.cx-cols{display:grid;grid-template-columns:1.15fr 1fr;gap:clamp(24px,3vw,40px)}
.cx-label{font-size:11.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);line-height:1.3;margin-bottom:12px}
.cx-body{font-size:15.5px;line-height:1.8;color:#dfe6f2;max-width:52ch}
.cx-take{display:flex;flex-direction:column;gap:12px}
.cx-take li{position:relative;padding-left:30px;font-size:15px;line-height:1.55;color:#fff}
.cx-take li::before{
  content:'';position:absolute;left:0;top:1px;width:20px;height:20px;border-radius:50%;
  background:rgba(60,148,221,.14);border:1px solid rgba(60,148,221,.45);
}
.cx-take li::after{
  content:'';position:absolute;left:6.5px;top:6px;width:7px;height:4px;
  border-left:1.6px solid var(--light-navy);border-bottom:1.6px solid var(--light-navy);
  transform:rotate(-45deg);
}
.cx-cta{margin-top:34px;white-space:normal;text-align:center;line-height:1.35}

/* ── Wide: list + sticky detail ──────────────────────────────────────────── */
@media (min-width:960px){
  .cx.is-ready{
    display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
    column-gap:clamp(32px,4vw,64px);row-gap:0;align-items:start;
  }
  .cx.is-ready .cx-item{display:contents}
  .cx.is-ready .cx-group,.cx.is-ready .cx-btn{grid-column:1}
  .cx.is-ready .cx-btn{margin-bottom:4px}
  .cx.is-ready .cx-item.is-open .cx-btn{background:rgba(60,148,221,.08);border-color:rgba(60,148,221,.35)}
  .cx.is-ready .cx-item.is-open .cx-chev{transform:translateX(3px)}
  .cx.is-ready .cx-panel{
    grid-column:2;grid-row:1 / span 40;align-self:start;
    position:sticky;top:112px;display:none;
  }
  .cx.is-ready .cx-item.is-open .cx-panel{display:block;animation:cxIn .5s var(--ease) both}
}
@keyframes cxIn{
  from{opacity:0;transform:translateY(10px);filter:blur(6px)}
  to{opacity:1;transform:none;filter:none}
}

/* ── Narrow: accordion ───────────────────────────────────────────────────── */
@media (max-width:959.98px){
  .cx-group{padding-left:4px;padding-right:4px}
  .cx-item{border-bottom:1px solid var(--cx-line)}
  .cx-group + .cx-item{border-top:1px solid var(--cx-line)}
  .cx-btn{padding:18px 4px;border-radius:0}
  .cx-btn:hover{background:none}
  .cx-chev{transform:rotate(90deg)}
  .cx-item.is-open .cx-chev{transform:rotate(-90deg)}
  .cx-title{display:none}
  .cx-card{border-radius:18px;margin-bottom:20px;box-shadow:none}
  .cx-cols{grid-template-columns:1fr}
  .cx-quote{font-size:22px;padding-bottom:20px;margin-bottom:20px}

  .cx.is-ready .cx-panel{
    display:grid;grid-template-rows:0fr;visibility:hidden;
    transition:grid-template-rows .45s var(--ease),visibility 0s linear .45s;
  }
  .cx.is-ready .cx-item.is-open .cx-panel{
    grid-template-rows:1fr;visibility:visible;
    transition:grid-template-rows .45s var(--ease),visibility 0s;
  }
  .cx.is-ready .cx-panel-in{min-height:0;overflow:hidden}
  /* On a phone the symptom already reads as the question; the card repeats it
     only on wide screens, where the list and the card sit apart. */
  .cx.is-ready .cx-quote{display:none}
  .cx.is-ready .cx-cols{padding-top:0}
}
.cx:not(.is-ready) .cx-chev{display:none}

/* ── Steps ───────────────────────────────────────────────────────────────── */
.cx-steps{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(24px,3vw,44px);
  max-width:1120px;margin:0 auto;counter-reset:none;position:relative;
}
.cx-steps::before{
  content:'';position:absolute;left:0;right:0;top:21px;height:1px;
  background:linear-gradient(90deg,transparent,var(--line) 12%,var(--line) 88%,transparent);
}
.cx-steps li{position:relative}
.cx-step-n{
  position:relative;display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;
  background:var(--ground);border:1px solid var(--light-navy);
  font-family:var(--display);font-weight:700;font-size:14px;letter-spacing:.04em;color:var(--light-navy);
  margin-bottom:22px;
}
.cx-steps h3{font-size:22px;margin-bottom:10px}
.cx-steps p{color:var(--muted);font-size:15.5px;line-height:1.8;max-width:38ch}
@media (max-width:820px){
  .cx-steps{grid-template-columns:1fr;gap:30px}
  .cx-steps::before{display:none}
  .cx-steps li{padding-left:68px}
  .cx-steps li:not(:last-child)::before{
    content:'';position:absolute;left:21.5px;top:44px;bottom:-30px;width:1px;background:var(--line);
  }
  .cx-step-n{position:absolute;left:0;top:0;margin:0}
}

/* ── Closing CTA ─────────────────────────────────────────────────────────── */
.cx-end-in{
  position:relative;isolation:isolate;overflow:hidden;text-align:center;
  display:flex;flex-direction:column;align-items:center;gap:20px;
  max-width:980px;margin:0 auto;padding:clamp(40px,6vw,80px) clamp(22px,5vw,64px);
  border:1px solid var(--line);border-radius:28px;background:var(--elevated);
}
.cx-end-in::before{
  content:'';position:absolute;z-index:-1;left:50%;bottom:-60%;width:120%;aspect-ratio:2;transform:translateX(-50%);
  background:radial-gradient(ellipse at center,rgba(4,104,255,.22) 0%,transparent 62%);
}
.cx-end-in .sub{text-align:center}
.cx-end-in .btn{margin-top:8px}
/* One gradient per page: the hero headline. */
.cx-sec h2 .fat,.cx-steps-sec h2 .fat,.cx-end h2 .fat{background:none;color:var(--light-navy)}

@media (prefers-reduced-motion:reduce){
  .cx.is-ready .cx-item.is-open .cx-panel{animation:none}
  .cx.is-ready .cx-panel,.cx-chev{transition:none}
}
