/*
 * Connect your AI: the guided setup page. Large type, one step at a time,
 * built on site.css (palette, .doc, .btn, .kicker). Cut corners, no pills.
 *
 * @author Thomas G. and Sophia, SOPHIA XT LLC (sophiaxt.com)
 */

/* Hidden means hidden, whatever display a class sets. */
.cx [hidden] { display: none !important; }

/* Bigger reading size for a front-desk audience. */
.guide .cx { font-size: 19px; line-height: 1.6; }
.guide .cx .lead { font-size: 20px; }
.cx h2 { margin-top: 56px; }
.cx-sub { color: #c9d5e2; max-width: 62ch; }
.cx code { font: 0.92em var(--mono); color: var(--cyan-soft); background: rgba(0,212,255,0.08); padding: 1px 6px; }
.cx button { font: inherit; }
.cx .btn { border: 0; cursor: pointer; font-size: 17px; }

/* Signed-in line. */
.cx-who { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 30px; padding: 16px 20px; border: 1px solid var(--line); background: rgba(11,22,38,0.88); clip-path: var(--cut); }
.cx-dot { width: 12px; height: 12px; flex: none; background: var(--muted); }
.cx-who.in .cx-dot { background: var(--mint); }
.cx-who.out .cx-dot { background: #ffc857; }
.cx-who .btn { margin-left: auto; }

/* The walkthrough video. */
.cx-video { margin: 32px 0 0; }
.cx-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #02060c; border: 1px solid rgba(0,212,255,0.28); }
.cx-video figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Choose a path: three large buttons. */
.cx-paths { display: grid; gap: 14px; margin-top: 22px; }
.cx-path { display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; text-align: left; padding: 20px 22px; color: var(--text); background: rgba(11,22,38,0.92); border: 1px solid rgba(255,255,255,0.14); clip-path: var(--cut); cursor: pointer; }
.cx-path:hover { border-color: var(--cyan); }
.cx-path:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.cx-path[aria-pressed="true"] { border-color: var(--cyan); background: rgba(0,212,255,0.08); }
.cx-path-n { grid-row: span 2; align-self: center; width: 52px; height: 52px; display: grid; place-items: center; font: 600 22px var(--mono); color: var(--cyan); border: 1px solid rgba(0,212,255,0.45); }
.cx-path[aria-pressed="true"] .cx-path-n { background: var(--cyan); color: #03121c; }
.cx-path-t { font: 600 21px/1.3 var(--display); }
.cx-path-d { color: var(--muted); font-size: 16.5px; line-height: 1.45; }

/* A path's section. */
.cx-section { margin-top: 64px; padding-top: 8px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.cx-section h2 { margin-top: 12px; }

/* Steps: all visible without scripts; one at a time with them. */
.cx-steps { list-style: none; counter-reset: cx; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.cx-step { counter-increment: cx; position: relative; padding: 22px 22px 22px 84px; border: 1px solid var(--line); background: rgba(11,22,38,0.92); clip-path: var(--cut); }
.cx-step::before { content: counter(cx); position: absolute; left: 22px; top: 22px; width: 44px; height: 44px; display: grid; place-items: center; font: 600 20px var(--mono); color: #03121c; background: var(--cyan); }
.cx-step[data-n]::before { content: attr(data-n); }
.cx-step h3 { font-size: 23px; line-height: 1.3; }
.cx-step p { margin-top: 12px; }
.cx-step b { color: #fff; font-weight: 600; }
.cx-see { color: #c9d5e2; border-left: 2px solid rgba(0,212,255,0.5); padding-left: 14px; }
.cx-see span { display: block; font: 500 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 2px; }
.cx-note { color: #ffe1a8; border-left: 2px solid #ffc857; padding-left: 14px; }

/* Pager under the current step. */
.cx-pager { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.cx-pager .cx-count { font: 500 14px var(--mono); letter-spacing: .12em; color: var(--muted); margin-right: auto; }
.cx-pager button { padding: 12px 20px; font-size: 17px; font-weight: 600; cursor: pointer; }
.cx-back, .cx-all { background: none; color: var(--text); border: 1px solid rgba(255,255,255,0.18); }
.cx-back:hover, .cx-all:hover { border-color: var(--cyan); }
.cx-next { background: var(--cyan); color: #03121c; border: 0; clip-path: var(--cut); }
.cx-all { font-size: 15px; font-weight: 500; }
.cx-back[disabled], .cx-next[disabled] { opacity: 0.4; cursor: default; }

/* Copy rows for addresses and codes. */
.cx-copy { display: flex; align-items: stretch; gap: 0; margin-top: 14px; max-width: 100%; }
.cx-copy code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; padding: 13px 16px; font-size: 19px; color: #eaffff; background: rgba(4,10,20,0.95); border: 1px solid rgba(0,212,255,0.35); border-right: 0; }
.cx-copy-btn { flex: none; padding: 0 22px; font-weight: 600; color: #03121c; background: var(--cyan); border: 0; cursor: pointer; }
.cx-copy-btn:hover { filter: brightness(1.08); }
#cx-code { font-size: 26px; letter-spacing: .2em; }

/* The live check. */
.cx-check { display: flex; gap: 18px; align-items: flex-start; margin-top: 22px; padding: 20px 22px; border: 1px solid rgba(255,255,255,0.14); background: rgba(11,22,38,0.92); clip-path: var(--cut); }
.cx-check p { margin: 4px 0 0; color: var(--muted); font-size: 17px; }
.cx-check-t { font-size: 20px; }
.cx-mark { flex: none; width: 40px; height: 40px; border: 2px solid var(--muted); display: grid; place-items: center; font: 700 22px var(--mono); }
.cx-check.wait .cx-mark { border-color: #ffc857; }
.cx-check.wait .cx-mark::before { content: ""; width: 10px; height: 10px; background: #ffc857; animation: cx-blink 1.2s ease-in-out infinite; }
.cx-check.ok { border-color: rgba(102,255,224,0.6); background: rgba(102,255,224,0.07); }
.cx-check.ok .cx-mark { border-color: var(--mint); background: var(--mint); color: #03121c; }
.cx-check.ok .cx-mark::before { content: "✓"; }
.cx-check.ok .cx-check-t { color: var(--mint); }
@keyframes cx-blink { 50% { opacity: 0.25; } }

/* Troubleshooting. */
.cx-th { margin-top: 36px; font-size: 21px; }
.cx-trouble { border-bottom: 1px solid var(--line); padding: 16px 0; }
.cx-trouble summary { cursor: pointer; font-weight: 600; list-style: none; }
.cx-trouble summary::-webkit-details-marker { display: none; }
.cx-trouble summary::before { content: "+"; font-family: var(--mono); color: var(--cyan); margin-right: 12px; }
.cx-trouble[open] summary::before { content: "-"; }
.cx-trouble p { color: #c9d5e2; }
.cx-stuck { margin-top: 24px; font-weight: 500; }

/* Wider screens: the three paths side by side. */
@media (min-width: 900px) {
  .cx-paths { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx-path { grid-template-columns: 1fr; align-content: start; }
  .cx-path-n { grid-row: auto; margin-bottom: 10px; }
}
/* Phones: 16px gutters, the step number above the text. */
@media (max-width: 560px) {
  .guide .cx { padding: 48px 16px 72px; font-size: 18px; }
  .cx-step { padding: 18px 16px; }
  .cx-step::before { position: static; margin-bottom: 12px; }
  .cx-who .btn { margin-left: 0; }
  .cx-copy code { font-size: 16px; padding: 12px; }
  .cx-copy-btn { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { .cx-check.wait .cx-mark::before { animation: none; } }
