/* ==========================================================================
   THE ENGINE — six checks, one decision (engine.js).
   Theme roles: frost for the system checking (intelligence and safety),
   gold only for the money decision (Execute), ember only where a trade is
   stopped. Frosted midnight glass, hairlines, no plain drop shadows.
   ========================================================================== */
.mind { border-radius: var(--r-window); overflow: hidden; background: var(--deep-glass); box-shadow: var(--sh-modal); }

/* EA switch + trade ideas */
.mind__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 16px 20px; box-shadow: inset 0 -1px 0 var(--edge-soft); }
.mind__ea button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 10px; }
.mind__ea img { width: 22px; height: 22px; }
.mind__ea [data-ea="apollo"] img { width: 26px; margin: 0 -2px; }
.mind__ea button[aria-checked="false"] img { opacity: .55; }
.mind__ideas { display: flex; gap: 6px; flex-wrap: wrap; }
.mind__ideas button { height: 34px; padding: 0 14px; border-radius: var(--r-pill); font-size: 13.5px; color: var(--text-3); box-shadow: var(--sh-hair); white-space: nowrap; transition: color .2s, background-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.mind__ideas button[aria-checked="true"] { color: var(--text-hi); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge-strong); }
@media (hover: hover) { .mind__ideas button:hover { color: var(--text-hi); } }

.mind__board { padding: clamp(22px, 3vw, 36px); }
.mind__idea { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 30px; }
.mind__idea b { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--text-hi); }

/* the six checks on one rail; the rail fills as checks pass (--p, 0 to 1) */
.mind__gates { --p: 0; --col: calc((100% - 70px) / 12); position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 14px; }
.mind__gates::before, .mind__gates::after { content: ""; position: absolute; left: var(--col); right: var(--col); top: 22px; height: 2px; border-radius: 2px; }
.mind__gates::before { background: var(--edge); }
.mind__gates::after { background: linear-gradient(90deg, rgba(216, 236, 248, .55), var(--gold)); transform-origin: left; transform: scaleX(var(--p)); transition: transform .5s var(--ease-out); }
.mind__gates.is-blocked::after { background: linear-gradient(90deg, rgba(216, 236, 248, .55), var(--down)); }
.gate { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; }
.gate__node { position: relative; z-index: var(--z-raised); width: 46px; height: 46px; margin-bottom: 10px; border-radius: 50%; display: grid; place-items: center; color: var(--text-4); background: #090b18; box-shadow: var(--sh-hair), inset 0 1px 1px rgba(216, 236, 248, .1); transition: color .3s, background-color .3s, box-shadow .3s; }
.gate__node svg { width: 20px; height: 20px; }
.gate__name { font-size: 14px; font-weight: 500; color: var(--text-3); transition: color .3s; }
.gate__val { font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--text-4); transition: color .3s; }
.gate__why { max-width: 22ch; font-size: 12.5px; line-height: 1.45; color: var(--text-3); opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s var(--ease-out); }

/* the node's small verdict mark */
.gate__node::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%; transform: scale(0); transition: transform .3s var(--ease-out); background: center / 9px no-repeat; }
.gate[data-s="check"] .gate__node { color: var(--text-hi); box-shadow: inset 0 0 0 1px var(--edge-strong), 0 0 0 0 rgba(186, 214, 247, .25); animation: gatePing .9s var(--ease-out) infinite; }
.gate[data-s="check"] .gate__val { color: var(--text-3); }
.gate[data-s="pass"] .gate__node { color: var(--text-hi); background: #0c1022; box-shadow: inset 0 0 0 1px rgba(216, 236, 248, .45), inset 0 1px 1px rgba(216, 236, 248, .25); }
.gate[data-s="pass"] .gate__node::after { transform: scale(1); background-color: #0c1022; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8ecf8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); box-shadow: inset 0 0 0 1px rgba(216, 236, 248, .5); }
.gate[data-s="block"] .gate__node { color: var(--down); background: rgba(228, 109, 76, .08); box-shadow: inset 0 0 0 1px rgba(240, 132, 102, .6), 0 0 24px -4px rgba(240, 132, 102, .45); }
.gate[data-s="block"] .gate__node::after { transform: scale(1); background-color: #1a0d0a; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f08466' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E"); box-shadow: inset 0 0 0 1px rgba(240, 132, 102, .6); }
.gate[data-s="pass"] .gate__name, .gate[data-s="block"] .gate__name, .gate[data-s="pass"] .gate__val { color: var(--text-hi); }
.gate[data-s="block"] .gate__val { color: var(--down); }
.gate[data-s="pass"] .gate__why, .gate[data-s="block"] .gate__why { opacity: 1; transform: none; }
.gate[data-s="skip"] { opacity: .35; }
@keyframes gatePing { 70% { box-shadow: inset 0 0 0 1px var(--edge-strong), 0 0 0 9px rgba(186, 214, 247, 0); } }

/* the decision: gold only when money moves */
.mind__verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 24px; margin-top: 34px; padding: 20px 24px; border-radius: var(--r-card); background: var(--glass); box-shadow: var(--sh-hair); transition: box-shadow .4s, background-color .4s; }
.mind__verdict .label { grid-column: 1 / -1; }
.verdict__t { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 500; line-height: 1.1; color: var(--text-3); }
.verdict__d { font-size: 15px; line-height: 1.5; color: var(--text-2); }
.verdict__d.mono { font-size: 14.5px; color: var(--text-hi); }
.mind__verdict[data-s="go"] { background: linear-gradient(90deg, rgba(242, 199, 92, .1), transparent 70%), var(--glass); box-shadow: inset 0 0 0 1px var(--gold-edge), 0 24px 60px -32px rgba(242, 199, 92, .55); }
.mind__verdict[data-s="go"] .verdict__t { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.mind__verdict[data-s="stop"] { box-shadow: inset 0 0 0 1px var(--edge-strong); }
.mind__verdict[data-s="stop"] .verdict__t { color: var(--text-hi); }

/* tablets: the rail still runs across, with the reasons tucked away */
@media (max-width: 1080px) { .gate__why { font-size: 12px; } }

/* phones: the rail runs down the left, one check per row */
@media (max-width: 760px) {
  .mind__bar { padding: 14px; }
  .mind__ea { display: flex; width: 100%; }
  .mind__ea button { flex: 1; justify-content: center; height: 42px; }
  .mind__ideas { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 28px); margin: 0 -14px; padding: 0 14px 2px; scrollbar-width: none; }
  .mind__ideas::-webkit-scrollbar { display: none; }
  .mind__ideas button { flex: none; }
  .mind__board { padding: 20px 16px; }
  .mind__idea { margin-bottom: 20px; }
  .mind__gates { grid-template-columns: 1fr; gap: 0; }
  .mind__gates::before, .mind__gates::after { left: 22px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto; }
  .mind__gates::after { transform-origin: top; transform: scaleY(var(--p)); background: linear-gradient(rgba(216, 236, 248, .55), var(--gold)); }
  .mind__gates.is-blocked::after { background: linear-gradient(rgba(216, 236, 248, .55), var(--down)); }
  .gate { grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "node name val" "node why why"; justify-items: stretch; align-items: center; gap: 2px 14px; padding: 7px 0; text-align: left; }
  .gate__node { grid-area: node; align-self: start; margin: 0; }
  .gate__name { grid-area: name; }
  .gate__val { grid-area: val; text-align: right; }
  .gate__why { grid-area: why; max-width: none; min-height: 1.45em; }
  .mind__verdict { grid-template-columns: 1fr; padding: 18px; margin-top: 24px; }
  .verdict__t { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .gate[data-s="check"] .gate__node { animation: none; } }

/* PRICING ORDER on stacked layouts: OLYMPUS, then ZEUS, then APOLLO (PC keeps price order) */
@media (max-width: 1080px) {
  .prices .price--olympus { order: -2; }
  .prices .price--zeus { order: -1; }
  .prices .price--apollo { order: 0; }
}
