/* Cortex Connect: one look per plan. body[data-tier] is set by agent-tier.js once the member's plan is known. */

/* Guest (free): quiet graphite, gold held back */
body[data-tier="free"]{ --tier:#9AA3B5; --tier-hi:#C5CCDA; --tier-wash:rgba(154,163,181,.10); --tier-line:rgba(154,163,181,.32); }
/* Plus: warm rose */
body[data-tier="plus"]{ --tier:#FF6E84; --tier-hi:#FFA3B1; --tier-wash:rgba(255,110,132,.10); --tier-line:rgba(255,110,132,.38);
  --line:rgba(255,110,132,.18); --line-2:rgba(255,110,132,.44); }
/* Premium: full gold */
body[data-tier="premium"]{ --tier:#F2C94C; --tier-hi:#FFE08A; --tier-wash:rgba(242,201,76,.12); --tier-line:rgba(242,201,76,.5);
  --line:rgba(242,201,76,.24); --line-2:rgba(242,201,76,.6); }
/* VVIP: champagne accent; its card is always the black room, in either theme */
body[data-tier="vvip"]{ --tier:#EAD9B0; --tier-hi:#FFF4D6; --tier-wash:rgba(234,217,176,.10); --tier-line:rgba(234,217,176,.6); }
.tier-card.tier-vvip{ --panel:#08080B; --panel-2:#15151B; --ink:#F5EFE0; --ink-2:#D9D0BC; --ink-3:#A39B88; --line:rgba(234,217,176,.24); --line-2:rgba(234,217,176,.6);
  --tier:#EAD9B0; --tier-hi:#FFF4D6; --tier-wash:rgba(234,217,176,.10); --tier-line:rgba(234,217,176,.6); --gold:#D4AF37; --gold-hi:#F2C94C; }

/* Light theme: the same four identities in inks that read on white */
html[data-theme=light] body[data-tier="free"]{ --tier:#4A5263; --tier-hi:#2E3442; --tier-wash:rgba(74,82,99,.08); --tier-line:rgba(74,82,99,.55); }
html[data-theme=light] body[data-tier="plus"]{ --tier:#B3123A; --tier-hi:#8A0020; --tier-wash:rgba(179,18,58,.07); --tier-line:rgba(179,18,58,.6); --line:rgba(138,0,32,.5); --line-2:rgba(138,0,32,.85); }
html[data-theme=light] body[data-tier="premium"]{ --tier:#8A6500; --tier-hi:#5A4300; --tier-wash:rgba(138,101,0,.09); --tier-line:rgba(138,101,0,.7); --line:rgba(90,67,0,.55); --line-2:rgba(90,67,0,.9); }
html[data-theme=light] body[data-tier="vvip"]{ --tier:#6B5A2E; --tier-hi:#3F3518; --tier-wash:rgba(107,90,46,.08); --tier-line:rgba(107,90,46,.7); }

.tier-card{ margin:16px 0 20px; padding:18px 18px 16px; border:1px solid var(--tier-line,var(--line)); border-radius:var(--r,20px);
  background:linear-gradient(160deg,var(--tier-wash,transparent),transparent 62%),var(--panel,#151926); color:var(--ink,#F5EFE0); position:relative; overflow:hidden; }
.tier-head{ display:flex; gap:12px; align-items:flex-start; flex-wrap:wrap; }
.tier-head p{ margin:0; flex:1 1 220px; font:500 15px/1.5 var(--body,system-ui); color:var(--ink-2,#C9C1AE); }
.tier-badge{ flex:none; padding:6px 14px; border-radius:999px; border:1px solid var(--tier-line); color:var(--tier-hi); background:var(--tier-wash);
  font:700 12px/1 var(--mono,ui-monospace); letter-spacing:.14em; text-transform:uppercase; }
.tier-perks{ list-style:none; margin:14px 0 0; padding:0; display:grid; gap:8px; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); }
.tier-perks li{ padding:10px 12px; border-radius:12px; background:var(--panel-2,#1B2030); border:1px solid var(--line); font:500 14px/1.4 var(--body,system-ui); }
.tier-perks li::before{ content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--tier); margin-inline-end:9px; vertical-align:middle; }
.tier-more{ margin-top:12px; }
.tier-more summary{ cursor:pointer; min-height:44px; display:flex; align-items:center; color:var(--tier-hi); font:600 14px/1.3 var(--body,system-ui); }
.tier-more ul{ margin:4px 0 12px; padding-inline-start:20px; color:var(--ink-3,#8E8775); font:14px/1.6 var(--body,system-ui); }
.tier-vvip{ margin-top:16px; padding-top:14px; border-top:1px solid var(--line); }
.tier-vvip h3{ margin:0 0 10px; font:700 16px/1.2 var(--display,system-ui); color:var(--tier-hi); }
.tier-picks{ list-style:none; margin:0 0 14px; padding:0; display:grid; gap:8px; }
.tier-picks li{ display:grid; grid-template-columns:1fr auto; gap:2px 12px; padding:12px; border-radius:12px; background:var(--panel-2); border:1px solid var(--line); }
.tier-picks b{ font:600 15px/1.3 var(--body,system-ui); }
.tier-picks span{ grid-column:1; color:var(--ink-3); font:13px/1.4 var(--body,system-ui); }
.tier-picks em{ grid-row:1 / span 2; grid-column:2; align-self:center; font:700 16px/1 var(--mono,ui-monospace); font-style:normal; color:var(--tier-hi); }
.tier-note{ margin:0 0 14px; color:var(--ink-3); font:14px/1.5 var(--body,system-ui); }
.tier-pay{ padding:12px 14px; border-radius:12px; border:1px solid var(--line-2); background:var(--gold-mute,rgba(212,175,55,.22)); color:var(--ink); }

/* The wallet and primary buttons pick up the level's colour */
body[data-tier="plus"] .wallet b, body[data-tier="premium"] .wallet b, body[data-tier="vvip"] .wallet b{ color:var(--tier-hi); }
.tier-card.tier-vvip .btn.gold{ color:#14110a; }
body[data-tier="vvip"] .tier-card::after{ content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(110deg,transparent 35%,rgba(255,244,214,.10) 50%,transparent 65%); background-size:250% 100%; animation:tier-sheen 7s linear infinite; }
@keyframes tier-sheen{ from{background-position:120% 0} to{background-position:-130% 0} }
@media (prefers-reduced-motion:reduce){ body[data-tier="vvip"] .tier-card::after{ animation:none; } }
@media (pointer:coarse){ .tier-card .btn{ min-height:44px; } }

.tier-journey ol{ list-style:none; counter-reset:step; margin:6px 0 12px; padding:0; display:grid; gap:8px; }
.tier-journey li{ counter-increment:step; display:grid; grid-template-columns:auto 1fr auto; gap:4px 12px; align-items:start; padding:12px; border-radius:12px; background:var(--panel-2,#1B2030); border:1px solid var(--line); }
.tier-journey li::before{ content:counter(step); width:26px; height:26px; border-radius:50%; display:grid; place-items:center; background:var(--tier-wash); border:1px solid var(--tier-line); color:var(--tier-hi); font:700 13px/1 var(--mono,ui-monospace); }
.tier-journey li div{ min-width:0; }
.tier-journey b{ display:block; font:600 15px/1.3 var(--body,system-ui); color:var(--ink); }
.tier-journey span{ display:block; margin-top:2px; color:var(--ink-3); font:13px/1.45 var(--body,system-ui); }
.tier-journey em{ font:700 13px/1.3 var(--mono,ui-monospace); font-style:normal; color:var(--tier-hi); white-space:nowrap; padding-top:4px; }
.tier-set{ margin-top:18px; padding:16px; border:1px solid var(--line); border-radius:var(--r,20px); background:var(--panel,#151926); }
.tier-set h3{ margin:0 0 10px; font:700 16px/1.2 var(--display,system-ui); }
.tier-toggle{ display:flex; gap:12px; align-items:flex-start; min-height:44px; cursor:pointer; font:500 14px/1.45 var(--body,system-ui); color:var(--ink); }
.tier-toggle input{ flex:none; width:22px; height:22px; margin-top:1px; accent-color:var(--tier,var(--gold)); }

/* ---- Agent HQ (15 Nov 2026): the wingman, the live report, the next level and the four levels side by side ---- */
.ahq .sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
body[data-tier] .dhead .warn{ display:none; }
.ahq{ padding:0 0 16px; }
.ahq > *:not(.ahq-stage){ margin-inline:16px; }
/* The stage is always the night room, in either theme, so the faces and the orb read the same */
.ahq-stage{ position:relative; display:grid; grid-template-columns:104px 1fr; gap:14px; align-items:start; padding:16px; color:#F5EFE0; isolation:isolate;
  background:#0B0D14 url(img/orbs.jpg) center 30%/cover no-repeat; border-bottom:1px solid var(--tier-line,var(--line)); }
.ahq-stage::before{ content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(100deg,rgba(11,13,20,.9) 0%,rgba(11,13,20,.78) 55%,rgba(11,13,20,.5) 100%); }
[dir=rtl] .ahq-stage::before{ background:linear-gradient(260deg,rgba(11,13,20,.9) 0%,rgba(11,13,20,.78) 55%,rgba(11,13,20,.5) 100%); }
.ahq-face{ position:relative; margin:0; width:104px; }
.ahq-face > img:first-child{ display:block; width:104px; height:130px; object-fit:cover; border-radius:18px; border:1px solid rgba(242,201,76,.55); box-shadow:0 14px 34px -12px rgba(0,0,0,.8); }
.ahq-orb{ position:absolute; inset-inline-end:-12px; bottom:-12px; width:52px; height:52px; border-radius:50%; object-fit:cover; background:#000; border:1px solid rgba(242,201,76,.6); box-shadow:0 0 22px rgba(242,201,76,.45); }
.is-paused .ahq-orb{ filter:grayscale(1) brightness(.7); box-shadow:none; }
.ahq-say{ min-width:0; }
.ahq-who{ margin:0 0 6px; display:flex; flex-wrap:wrap; gap:2px 8px; align-items:baseline; }
.ahq-who b{ font:700 18px/1.2 var(--display,system-ui); color:#FFE08A; }
.ahq-who span{ font:500 12px/1.3 var(--mono,ui-monospace); letter-spacing:.06em; text-transform:uppercase; color:#C9C1AE; }
.ahq-line{ margin:0; font:500 16px/1.45 var(--body,system-ui); color:#F5EFE0; text-wrap:pretty; }
.ahq-acts{ margin-top:10px; display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; }
.ahq-live{ display:inline-flex; align-items:center; gap:7px; padding:6px 11px; border-radius:999px; background:rgba(120,220,160,.12); border:1px solid rgba(120,220,160,.4); color:#A9EBC6; font:600 12px/1 var(--body,system-ui); }
.ahq-live i{ width:7px; height:7px; border-radius:50%; background:#6EE7A8; animation:ahq-pulse 1.8s ease-in-out infinite; }
.ahq-live.off{ background:rgba(255,200,110,.12); border-color:rgba(255,200,110,.45); color:#FFD591; }
.ahq-live.off i{ background:#FFC86E; animation:none; }
@keyframes ahq-pulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(110,231,168,.6) } 50%{ box-shadow:0 0 0 6px rgba(110,231,168,0) } }
.ahq-link{ background:none; border:0; padding:0; min-height:44px; cursor:pointer; color:#FFE08A; font:600 14px/1.2 var(--body,system-ui); text-decoration:underline; text-underline-offset:3px; }
.ahq-picker{ margin-top:14px; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.ahq-picker button[role=radio]{ display:grid; justify-items:center; gap:3px; padding:8px 4px; border-radius:14px; border:1px solid var(--line); background:var(--panel-2,#1B2030); color:var(--ink); cursor:pointer; }
.ahq-picker button[aria-checked=true]{ border-color:var(--gold-hi,#F2C94C); box-shadow:0 0 0 1px var(--gold-hi,#F2C94C) inset; }
.ahq-picker img{ width:56px; height:70px; object-fit:cover; border-radius:10px; }
.ahq-picker b{ font:600 14px/1.2 var(--body,system-ui); }
.ahq-picker small{ font:12px/1.2 var(--body,system-ui); color:var(--ink-3); }
.ahq-picker .ahq-swap{ grid-column:1/-1; justify-self:start; color:var(--tier-hi,var(--gold-hi)); }
.ahq .tier-head{ margin-top:16px; align-items:center; }
.ahq-stats{ list-style:none; margin-block:14px 0; padding:0; display:grid; gap:8px; grid-template-columns:repeat(2,1fr); }
.ahq-stats li{ padding:12px; border-radius:14px; background:var(--panel-2,#1B2030); border:1px solid var(--line); display:grid; gap:2px; align-content:start; }
.ahq-stats b{ font:800 26px/1 var(--display,system-ui); color:var(--tier-hi,var(--gold-hi)); font-variant-numeric:tabular-nums; }
.ahq-stats span{ font:600 13px/1.3 var(--body,system-ui); color:var(--ink); }
.ahq-stats small{ font:12px/1.35 var(--body,system-ui); color:var(--ink-3); }
.ahq-found{ margin-block:10px 0; font:500 13px/1.4 var(--body,system-ui); color:var(--ink-2); }
.ahq-found b{ color:var(--tier-hi,var(--gold-hi)); font-family:var(--mono,ui-monospace); }
.ahq-pitch{ margin-top:16px; display:grid; border-radius:16px; overflow:hidden; border:1px solid var(--gold-hi,#F2C94C); background:var(--panel-2,#1B2030); }
.ahq-pitch img{ display:block; width:100%; height:150px; object-fit:cover; }
.ahq-pitch.ahq-to-vvip img{ object-position:50% 18%; }
.ahq-pitch > div{ padding:14px; }
.ahq-kick{ margin:0 0 4px; font:600 11px/1.2 var(--mono,ui-monospace); letter-spacing:.14em; text-transform:uppercase; color:var(--gold-hi,#F2C94C); }
html[data-theme=light] .ahq-kick{ color:#8A6500; }
.ahq-pitch h3{ margin:0 0 6px; font:700 19px/1.25 var(--display,system-ui); color:var(--ink); text-wrap:balance; }
.ahq-pitch p:not(.ahq-kick){ margin:0 0 12px; font:15px/1.5 var(--body,system-ui); color:var(--ink-2); }
.ahq-ladder{ margin-top:16px; border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.ahq-row{ display:grid; grid-template-columns:minmax(0,1.5fr) repeat(4,minmax(0,1fr)); align-items:center; border-top:1px solid var(--line); }
.ahq-row:first-child{ border-top:0; }
.ahq-feat{ padding:10px; font:500 13px/1.3 var(--body,system-ui); color:var(--ink-2); }
.ahq-col{ padding:10px 2px; text-align:center; font:13px/1.2 var(--body,system-ui); color:var(--ink-2); align-self:stretch; display:grid; place-items:center; align-content:center; }
.ahq-col b{ font:700 15px/1.1 var(--display,system-ui); color:var(--ink); font-variant-numeric:tabular-nums; }
.ahq-col small{ display:block; font-size:10px; color:var(--ink-3); }
.ahq-col.is-here{ background:var(--tier-wash,rgba(154,163,181,.1)); box-shadow:inset 1px 0 0 var(--tier-line), inset -1px 0 0 var(--tier-line); }
.ahq-headrow{ background:var(--panel-2,#1B2030); }
.ahq-headrow .ahq-feat{ font-weight:700; color:var(--ink); }
.ahq-headrow .ahq-col{ font:700 10px/1.2 var(--mono,ui-monospace); letter-spacing:.04em; text-transform:uppercase; color:var(--ink); gap:3px; }
.ahq-headrow .ahq-col em{ font:700 9px/1 var(--mono,ui-monospace); font-style:normal; padding:3px 6px; border-radius:99px; background:var(--tier,#9AA3B5); color:#0B0D14; }
html[data-theme=light] .ahq-headrow .ahq-col em{ color:#fff; }
.ahq-yes{ width:16px; height:16px; border-radius:50%; background:var(--gold-hi,#F2C94C); position:relative; display:block; }
.ahq-yes::after{ content:""; position:absolute; inset-inline-start:5.5px; top:3px; width:4px; height:7px; border:solid #141006; border-width:0 2px 2px 0; transform:rotate(45deg); }
html[data-theme=light] .ahq-yes{ background:#8A6500; }
html[data-theme=light] .ahq-yes::after{ border-color:#fff; }
.ahq-no{ width:10px; height:2px; border-radius:2px; background:var(--ink-3,#8E8775); opacity:.55; display:block; }
.ahq-plans{ margin-top:12px; display:flex; }
.ahq .tier-more{ margin-top:8px; }
.ahq-more{ padding-top:16px; margin-top:22px; }
.ahq-more > .ahq-pitch:first-child, .ahq-more > .ahq-ladder:first-child{ margin-top:0; }
.ahq-teaser{ margin-block:12px 0; padding:10px 14px; border-radius:14px; border:1px solid var(--gold-hi,#F2C94C); background:var(--gold-mute,rgba(212,175,55,.22)); display:flex; flex-wrap:wrap; gap:2px 14px; align-items:center; justify-content:space-between; }
.ahq-teaser span{ font:600 14px/1.4 var(--body,system-ui); color:var(--ink); }
.ahq-teaser .ahq-link{ color:var(--ink); }
@media (min-width:720px){
  .ahq > *:not(.ahq-stage){ margin-inline:20px; }
  .ahq-stage{ grid-template-columns:150px 1fr; gap:24px; padding:22px 24px; align-items:center; }
  .ahq-face{ width:150px; }
  .ahq-face > img:first-child{ width:150px; height:188px; }
  .ahq-orb{ width:68px; height:68px; }
  .ahq-who b{ font-size:22px; }
  .ahq-line{ font-size:19px; max-width:52ch; }
  .ahq-picker{ grid-template-columns:repeat(6,1fr); }
  .ahq-stats{ grid-template-columns:repeat(4,1fr); }
  .ahq-stats b{ font-size:32px; }
  .ahq-pitch{ grid-template-columns:300px 1fr; align-items:stretch; }
  .ahq-pitch img{ height:100%; min-height:190px; }
  .ahq-pitch > div{ padding:20px 22px; align-self:center; }
  .ahq-feat{ padding:12px 16px; font-size:14px; }
  .ahq-headrow .ahq-col{ font-size:12px; }
  .ahq-plans{ display:inline-flex; }
}
@media (prefers-reduced-motion:reduce){ .ahq-live i{ animation:none; } }
