/* TradeNuro homepage (Concept A, "Terminal"). Layer on top of styles.css. Never styles an .ix- selector: the approved AI
   Intelligence styles live untouched in approved-intel.css (pinned by app/tests/homepage-gauge.test.mjs). */


/* ---- 1. dashboard base rules (verbatim from /app/app.css) ---- */
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-xs { width: 13px; height: 13px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.tone-bull { color: var(--bull); } .tone-bear { color: var(--bear); } .tone-hold { color: var(--hold); }
.tone-accent { color: var(--accent-soft); } .tone-muted { color: var(--text-3); }
.ticker-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; flex: none; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(145deg, var(--card-elev), #0B1424); border: 1px solid var(--sep); color: var(--text); }
.change { font-size: 13px; font-weight: 600; }
.mk-lwc { width: 100%; height: 100%; }

/* ---- 2. homepage primitives ---- */
:root {
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --hair: rgba(61, 219, 200, 0.14);
  --glass: linear-gradient(180deg, rgba(22, 34, 58, 0.72), rgba(10, 18, 32, 0.78));
}
main section { padding: 0; }           /* styles.css pads every <section>; concepts set their own rhythm */
.cx-sec { padding: 88px 0; position: relative; }
@media (max-width: 719px) { .cx-sec { padding: 60px 0; } }
.cx-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-soft); }
.cx-eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.cx-h2 { font-family: var(--font-display); font-size: clamp(28px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.03em; margin: 14px 0 14px; font-weight: 700; text-wrap: balance; }
.cx-lede { color: var(--text-2); font-size: clamp(16px, 1.6vw, 18px); max-width: 680px; text-wrap: pretty; }
.cx-ex-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cx-ex { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--hold); background: rgba(255, 159, 10, .1); border: 1px solid rgba(255, 159, 10, .28); padding: 3px 9px; border-radius: 999px; }
.cx-h { font-size: clamp(26px, 4vw, 36px); margin: 0; letter-spacing: -.02em; line-height: 1.15; font-weight: 700; }
.cx-gauge-head { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; }
.cx-gauge-head strong { display: block; font-size: 20px; letter-spacing: -.01em; }
.cx-gauge-head .muted { display: block; }

.cx-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; border: 1px solid; white-space: nowrap; }
.cx-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cx-pill.live { color: var(--bull); border-color: rgba(52, 199, 89, .4); background: rgba(52, 199, 89, .08); }
.cx-pill.data { color: var(--accent-soft); border-color: rgba(61, 219, 200, .4); background: rgba(25, 195, 177, .08); }
.cx-pill.soon { color: var(--hold); border-color: rgba(255, 159, 10, .4); background: rgba(255, 159, 10, .08); }

.cx-card { border-radius: 20px; border: 1px solid var(--hair); background: var(--glass); padding: 22px; position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 50px rgba(0,0,0,.3); }
.cx-chart { height: 340px; border-radius: 14px; overflow: hidden; border: 1px solid var(--sep); background: #0A1220; }
.cx-chart.sm { height: 220px; }
/* Static chart images (no data on the page): fill the mount exactly; within a layout band the image is scaled by at most
   ~8% horizontally, never cropped, so the TradingView logo in the bottom-left corner always shows. */
.cx-chart > picture, .cx-chart > picture > img { display: block; width: 100%; height: 100%; }
.cx-chart > picture > img { object-fit: fill; }
@media (max-width: 559px) { .cx-chart { height: 280px; } .cx-chart.sm { height: 200px; } }
.cx-fine { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.cx-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cx-ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--text-2); }
.cx-ticks li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; border-radius: 4px; background: rgba(25,195,177,.16);
  box-shadow: inset 0 0 0 1px rgba(61,219,200,.5); }
.cx-ticks.no li::before { background: rgba(255,69,58,.12); box-shadow: inset 0 0 0 1px rgba(255,69,58,.45); }
.cx-ticks strong { color: var(--text); font-weight: 600; }

/* ribbon tiles (filled by showcase.js) */
.cx-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cx-tile { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k k" "sym sym" "v c"; gap: 2px 8px; padding: 14px 18px; min-width: 0; }
.cx-tile + .cx-tile { border-left: 1px solid var(--sep); }
.cx-tile-k { grid-area: k; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.cx-tile-sym { grid-area: sym; font-weight: 700; font-size: 14px; }
.cx-tile-v { grid-area: v; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.cx-tile .change { grid-area: c; align-self: end; }
@media (max-width: 899px) {
  .cx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-tile { padding: 12px 14px; border-top: 1px solid var(--sep); }
  .cx-tile + .cx-tile { border-left: 0; }
  .cx-tile:nth-child(2n+1):not(:first-child) { border-left: 1px solid var(--sep); }
  .cx-tile:first-child { grid-column: 1 / -1; border-top: 0; }
}
.cx-tile { position: relative; }

/* FAQ */
.cx-faq { display: grid; gap: 10px; max-width: 860px; }
.cx-faq details { border: 1px solid var(--sep); border-radius: 16px; background: rgba(14, 24, 40, .6); padding: 0 20px; }
.cx-faq details[open] { border-color: var(--hair); }
.cx-faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.cx-faq summary::-webkit-details-marker { display: none; }
.cx-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--accent-soft); }
.cx-faq details[open] summary::after { content: "–"; }
.cx-faq details p { color: var(--text-2); margin: 0 0 18px; }

/* scroll reveal (static for reduced motion; styles.css already disables transitions there) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.no-js .reveal { opacity: 1; transform: none; }


/* focus: visible on every interactive element (styles.css sets the ring; make sure summaries get it too) */
summary:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 8px; }
.disclaimer a, .cx-lede a, .plans-note a { text-decoration: underline; }


.cx-a { background: radial-gradient(1200px 600px at 78% -10%, rgba(25,195,177,.10), transparent 60%), var(--bg); }

/* hero */
.a-hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.a-grid-bg { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(61,219,200,.05) 1px, transparent 1px) 0 0 / 100% 40px,
              linear-gradient(90deg, rgba(61,219,200,.04) 1px, transparent 1px) 0 0 / 40px 100%;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%); }
.a-hero-grid { position: relative; display: grid; gap: 36px; align-items: start; }
@media (min-width: 1040px) { .a-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 48px; } .a-hero { padding: 72px 0 56px; } }
.a-hero h1 { font-family: var(--font-display); font-size: clamp(36px, 5.4vw, 62px); line-height: 1.02; letter-spacing: -.035em; margin: 16px 0 18px; font-weight: 700; text-wrap: balance; }
.a-grad { background: linear-gradient(92deg, #3DDBC8 0%, #19C3B1 45%, #34C759 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.a-lede { color: var(--text-2); font-size: clamp(16px, 1.5vw, 18.5px); max-width: 600px; text-wrap: pretty; }
.a-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 26px; }
.a-actions svg { margin-right: 2px; }
.a-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--sep); border-radius: 16px; overflow: hidden; background: rgba(10,18,32,.55); max-width: 600px; }
.a-status > div { padding: 12px 14px; min-width: 0; }
.a-status > div + div { border-left: 1px solid var(--sep); }
.a-status dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.a-status dd { margin: 0; }
@media (max-width: 559px) {
  .a-status { grid-template-columns: 1fr; }
  .a-status > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .a-status > div + div { border-left: 0; border-top: 1px solid var(--sep); }
  .a-status dt { margin: 0; }
}
.a-note { color: var(--text-3); font-size: 13.5px; margin: 16px 0 0; max-width: 600px; }

/* terminal window */
.a-term { border-radius: 22px; border: 1px solid rgba(61,219,200,.22); background: rgba(6,11,20,.7);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.02) inset, 0 0 60px -20px rgba(25,195,177,.35); overflow: hidden; min-width: 0; }
.a-term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--sep); background: rgba(14,24,40,.85); }
.a-term-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.a-term-bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-term-body { padding: 14px; display: grid; gap: 12px; }
.a-gauge-mount { min-height: 420px; }
.a-skel { border-radius: 22px; background: linear-gradient(180deg, rgba(22,34,58,.5), rgba(10,18,32,.5)); border: 1px solid var(--sep); }
.a-chart-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); margin: 2px 2px 10px; }
.a-chart-head strong { color: var(--text); font-size: 14px; }
.a-chart-head .cx-ex { margin-left: auto; }

/* market ribbon */
.a-ribbon { border-top: 1px solid var(--sep); border-bottom: 1px solid var(--sep); background: rgba(10,18,32,.8); }
.a-ribbon .container { padding-top: 12px; padding-bottom: 4px; }
.a-ribbon-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 2px 6px; }
.a-ribbon-k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); }
.a-tiles .cx-tile:first-child { padding-left: 2px; }

/* signals vs intelligence */
.a-split { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 900px) { .a-split { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.a-col { display: flex; flex-direction: column; gap: 14px; }
.a-col header { display: grid; gap: 12px; justify-items: start; }
.a-col h3 { font-size: 22px; margin: 0; letter-spacing: -.02em; }
.a-col p { margin: 0; }
.a-col .cx-fine { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--sep); }
.a-col-soon { border-style: dashed; border-color: rgba(255,159,10,.3); background: linear-gradient(180deg, rgba(40,30,12,.35), rgba(10,18,32,.7)); }

/* how it works */
.a-how-sec { background: linear-gradient(180deg, transparent, rgba(10,18,32,.6) 30%, rgba(10,18,32,.6) 70%, transparent); }
.a-how { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--sep); border-radius: 20px; overflow: hidden; }
@media (min-width: 820px) { .a-how { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.a-how li { padding: 24px 22px; background: rgba(14,24,40,.55); }
.a-how li + li { border-top: 1px solid var(--sep); }
@media (min-width: 820px) { .a-how li + li { border-top: 0; border-left: 1px solid var(--sep); } }
.a-how h3 { font-size: 18px; margin: 14px 0 6px; }
.a-how p { color: var(--text-2); margin: 0; font-size: 15px; }
.a-step { font-family: var(--font-mono); font-size: 13px; color: var(--accent-soft); border: 1px solid rgba(61,219,200,.35); border-radius: 8px; padding: 3px 8px; }

/* asset classes */
.a-class-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.a-class-head h3 { font-size: 24px; margin: 0; letter-spacing: -.02em; }
.a-stock { margin-top: 36px; display: grid; gap: 16px; }
.a-chart-card { padding: 16px; }
.a-classes { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .a-classes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.a-class { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.a-class p.muted { font-size: 14.5px; margin: 0 0 14px; }
.a-soon { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; font-size: 13.5px; color: var(--text-2); }

/* track record */
.a-record { display: grid; gap: 28px; padding: 32px; }
@media (min-width: 900px) { .a-record { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 44px; } }
.a-record-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.a-record-links li { display: grid; gap: 2px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--sep); background: rgba(6,11,20,.5); }
.a-record-links a { font-weight: 600; text-decoration: none; }
.a-record-links a:hover { text-decoration: underline; }
.a-record-links span { font-size: 13px; color: var(--text-3); }

/* plans */
.a-plans-sec { background: linear-gradient(180deg, transparent, rgba(10,18,32,.7)); }
.a-center { text-align: center; }
.a-center .cx-eyebrow::before { display: none; }
.a-plans-sec .plans { margin-top: 32px; }
.a-center-note { margin-left: auto; margin-right: auto; text-align: center; }
.a-stock > *, .a-term-body > *, .a-hero-grid > * { min-width: 0; }
@media (max-width: 559px) {
  .a-hero { padding: 28px 0 32px; }
  .a-hero h1 { font-size: 34px; margin: 12px 0 14px; }
  .a-lede { font-size: 16px; }
  .a-actions { margin: 20px 0; }
  .a-actions .btn { flex: 1 1 auto; }
  .a-term-body { padding: 8px; }
}
