/* ThinqShift: Rewire page. Tokens in tokens.css, shared nav/footer/layout in base.css. */

.split-copy .program-mark { margin-bottom: 18px; }

/* ReWire tile watermark: the rewire loop (mechanics in base.css .way-card.branded) */
.ways-grid .way-card.branded { --watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 0 1 14-5.3M20 12a8 8 0 0 1-14 5.3'/%3E%3Cpath d='M18 3v4h-4M6 21v-4h4'/%3E%3C/svg%3E"); }

/* ─── CIRCLE OF SUCK DIAGRAM ─── */
/* Circle of Suck decoder: symptoms (dashed, amber) read through the Cube into named patterns (solid) */
.decoder { margin-top: 40px; }
.decoder-head { display: grid; grid-template-columns: 1fr 200px 1fr; gap: 0 44px; margin-bottom: 14px; text-align: center; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.decoder-head span:first-child { color: var(--amber-soft); }
.decoder-grid { display: grid; grid-template-columns: 1fr 200px 1fr; gap: 16px 44px; align-items: center; }
.decoder-cube { grid-column: 2; grid-row: 1 / span 3; align-self: stretch; position: relative; display: flex; align-items: center; justify-content: center; }
.decoder-cube-art { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 0 28px rgba(136,39,171,0.5)); }
.decoder-links { position: absolute; top: 0; bottom: 0; left: -44px; width: calc(100% + 88px); max-width: none; height: 100%; overflow: visible; }
.decoder-links path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.decoder-links .in { stroke: rgba(224,171,63,0.6); stroke-dasharray: 5 5; }
.decoder-links .out { stroke: var(--amber-soft); }
@media (prefers-reduced-motion: no-preference) { .decoder-links .in { animation: decoder-flow 1.6s linear infinite; } }
@keyframes decoder-flow { to { stroke-dashoffset: -20; } }
.decoder-in, .decoder-out { position: relative; border-radius: var(--radius); padding: 18px 20px; }
.decoder-in { grid-column: 1; display: flex; align-items: center; gap: 14px; border: 1.5px dashed rgba(224,171,63,0.55); background: rgba(224,171,63,0.06); }
.decoder-in p { font-family: 'Crimson Pro', Georgia, serif; font-style: italic; font-size: 1.08rem; color: var(--text); line-height: 1.35; }
.decoder-out { grid-column: 3; border: 1px solid var(--border2); background: linear-gradient(165deg, rgba(136,39,171,0.2), rgba(136,39,171,0.05)); }
.decoder-out p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.decoder-out .decoder-coord { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--amber-soft); margin-bottom: 4px; }
.decoder-ring { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.6px dashed var(--amber-soft); }
@media (prefers-reduced-motion: no-preference) { .decoder-ring { animation: decoder-spin 14s linear infinite; } }
@keyframes decoder-spin { to { transform: rotate(360deg); } }
.decoder-caption { max-width: 640px; margin: 26px auto 0; text-align: center; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
@media (max-width: 860px) {
  .decoder-head { display: none; }
  .decoder-grid { grid-template-columns: 1fr; gap: 0; }
  .decoder-cube { grid-column: 1; grid-row: auto !important; max-width: 160px; margin: 0 auto 4px; }
  .decoder-links { display: none; }
  .decoder-in, .decoder-out { grid-column: 1; grid-row: auto !important; }
  .decoder-in { margin-top: 18px; }
  .decoder-out { margin-top: 26px; }
  .decoder-in::after { content: ''; position: absolute; left: 50%; top: 100%; height: 26px; border-left: 1.5px dashed rgba(224,171,63,0.55); }
}

/* ─── AMPLIFIED BY THINQEE: session handoff ─── */
.session-flow { width: 100%; max-width: 380px; }
.session-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.session-node { text-align: center; }
.session-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px;
  background: var(--card-solid); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(136,39,171,0.18);
}
.session-icon svg { width: 26px; height: 26px; }
.session-label { font-size: 0.8rem; color: var(--text); font-weight: 600; }
.session-sub { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.session-arrow { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border2), var(--purple-200), var(--border2)); position: relative; top: -18px; min-width: 20px; }

/* The decoder's outgoing lines draw in once the section scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
  .decoder .decoder-links .out { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s ease .5s; }
  .decoder.in .decoder-links .out { stroke-dashoffset: 0; }
  .decoder .decoder-links .in { opacity: 0; transition: opacity .8s ease .2s; }
  .decoder.in .decoder-links .in { opacity: 1; }
}
