/* TradeMaster design system for inner pages (loaded after style.css / learn.css). Navy + gold, matches the homepage. */
:root {
  color-scheme: dark;
  --bg: #0a1120; --panel: #111d31; --panel-2: #14223a; --ink: #f4f6fc; --muted: #b1bed2; --soft: #93a5c0;
  --line: #293951; --lime: #f1cb8d; --orange: #ffe0a9; --gold-ink: #21170c; --mint: #98dac8; --loss: #f19a8d;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
body { background: radial-gradient(1100px 520px at 88% -8%, #1b2a47 0, transparent 62%), var(--bg); font-family: inherit; }
body, button, input { font-family: inherit; }
a { color: var(--lime); text-underline-offset: .18em; }
a:hover { color: var(--orange); }

/* header */
body > header, header.top {
  position: sticky; top: 0; z-index: 20; max-width: none; margin: 0;
  padding: 12px max(24px, calc((100% - 1120px) / 2 + 30px));
  display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; flex-wrap: wrap;
  background: #0a1120ef; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; font-weight: 760; letter-spacing: -.02em; text-decoration: none; }
.brand::before { content: "TM"; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #ba985e; border-radius: 8px; background: #271f1e; color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
header nav { gap: 6px 18px; }
header nav a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
header nav a:hover, header nav a[aria-current] { color: var(--orange); }
.header-cta { min-height: 40px !important; padding: 8px 14px !important; font-size: 14px !important; }

/* layout + type */
main { max-width: 1120px; }
h1, h2, h3 { letter-spacing: -.04em; text-wrap: balance; }
h1 { font-weight: 780; }
.learn-hero h1, main > h1, .hero h1 { background: linear-gradient(180deg, #ffffff 30%, #d7e0f0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); }
.eyebrow { color: var(--lime); }
p, li { line-height: 1.7; }

/* buttons */
.button, button { background: var(--lime); color: var(--gold-ink); border: 1px solid var(--lime); border-radius: 9px; font: 750 15px/1.4 inherit; padding: 13px 20px; box-shadow: 0 8px 24px #f1cb8d22; }
.button:hover, button:hover { background: var(--orange); color: var(--gold-ink); }
.secondary, .button.secondary { background: transparent; color: var(--ink); border-color: #3c5070; box-shadow: none; }

/* panels */
.panel { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, var(--panel-2), #0e182a 75%); box-shadow: 0 18px 50px #02060f55; padding: clamp(20px, 3vw, 32px); }
.panel h2 { margin-top: 0; }
.rtm-cta { border-color: #7a6440; background: linear-gradient(125deg, #2a2224, #142038 70%); }
.rtm-cta ul, [data-rtm-why] ul, [data-rtm-inside] ul { padding-left: 1.1em; }
.rtm-cta li::marker, [data-rtm-why] li::marker, [data-rtm-inside] li::marker { color: var(--lime); }
.rtm-results { border-color: #7a6440; }
.rtm-results strong, [data-rtm-why] strong, [data-rtm-inside] strong { color: var(--orange); }
.learn-formula { border-inline-start-color: var(--lime); border-radius: 0 10px 10px 0; background: var(--panel-2); }

/* tables */
.learn-table, .rtm-table { overflow-x: auto; margin-block: 1.25rem; border: 1px solid var(--line); border-radius: 14px; }
.learn-table table, .rtm-table table { width: 100%; border-collapse: collapse; }
.learn-table thead, .rtm-table thead { background: var(--panel-2); }
.learn-table th, .rtm-table th { color: var(--orange); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.learn-table th, .learn-table td, .rtm-table th, .rtm-table td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); text-align: start; }
.rtm-table tr:last-child td { border-bottom: 0; }
.rtm-table .yes { color: var(--mint); font-weight: 700; }
.rtm-table .no { color: var(--loss); }

/* faq */
details { border-bottom: 1px solid var(--line); }
summary { color: var(--ink); }
summary:hover { color: var(--orange); }

/* tools + inputs */
.tool { border-radius: 14px; border-top-color: var(--lime); background: var(--panel); }
.tool span { color: var(--lime); }
input[type=number] { border-radius: 9px; background: #0b1424; }
.output .big { color: var(--lime); }
.steps b { color: var(--lime); }

/* footer */
footer { max-width: 1120px; border-top: 1px solid var(--line); color: var(--soft); }
footer .rtm-hub a { color: var(--muted); text-decoration: none; font-size: 13px; }
footer .rtm-hub a:hover { color: var(--orange); }

/* flagship components (AutoBot, Results) */
.fx-hero { padding: clamp(28px, 6vw, 72px) 0 24px; }
.fx-hero .lede { max-width: 760px; font-size: clamp(17px, 1.8vw, 20px); }
.fx-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 26px; }
.fx-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 30px 0 0; padding: 0; }
.fx-stats li { padding: 16px; border: 1px solid var(--line); border-top: 2px solid var(--lime); border-radius: 12px; background: var(--panel); }
.fx-stats strong { display: block; color: var(--orange); font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.fx-stats span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.fx-section { margin: clamp(40px, 6vw, 72px) 0; }
.fx-section > h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 0 0 10px; }
.fx-section > p.sub { color: var(--muted); max-width: 720px; margin: 0 0 24px; font-size: 17px; }
.fx-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; }
.fx-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fx-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(150deg, #16243a, #0e182a 80%); }
.fx-card.gold { border-color: #6d5a3d; background: linear-gradient(150deg, #261f22, #111d31 72%); }
.fx-card h3 { margin: 6px 0 8px; font-size: 19px; }
.fx-card p { margin: 0; color: var(--muted); font-size: 15px; }
.fx-num { color: var(--lime); font: 800 12px/1 ui-monospace, Consolas, monospace; letter-spacing: .1em; }
.fx-flow { list-style: none; counter-reset: fx; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
.fx-flow li { counter-increment: fx; position: relative; padding: 20px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.fx-flow li::before { content: "0" counter(fx); display: block; margin-bottom: 10px; color: var(--lime); font: 800 12px/1 ui-monospace, Consolas, monospace; letter-spacing: .1em; }
.fx-flow strong { display: block; margin-bottom: 6px; font-size: 16px; }
.fx-flow span { color: var(--muted); font-size: 14px; line-height: 1.55; }
.fx-bar { display: flex; height: 16px; overflow: hidden; border-radius: 999px; background: #1a2740; margin: 18px 0 10px; }
.fx-bar i { display: block; height: 100%; }
.fx-bar .w { background: linear-gradient(90deg, #98dac8, #6fc3ad); }
.fx-bar .b { background: #5d6f8e; }
.fx-bar .l { background: var(--loss); }
.fx-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 13px; }
.fx-legend b { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: 0; }
.fx-quote { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.fx-quote blockquote { margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.fx-quote figcaption { color: var(--soft); font-size: 12px; }
.fx-final { margin: 56px 0 24px; padding: clamp(24px, 4vw, 48px); border: 1px solid #66533b; border-radius: 18px; background: linear-gradient(115deg, #29222a, #172236 72%); }
.fx-final h2 { margin: 0 0 10px; font-size: clamp(26px, 3.4vw, 40px); }
.fx-final p { color: var(--muted); max-width: 640px; }
@media (max-width: 960px) { .fx-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fx-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .fx-stats, .fx-grid, .fx-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fx-stats, .fx-grid, .fx-grid.cols-2, .fx-grid.cols-4, .fx-flow { grid-template-columns: minmax(0, 1fr); } body > header, header.top { padding-inline: 18px; } }
