/* Brand colours taken from the 2024 apextradingtools.com page */
:root {
  --navy: #02192b;
  --ink: #0d0f20;
  --panel: #0f2638;
  --line: #1e3a50;
  --green: #1aa82a;
  --green-hi: #22c435;
  --red: #c0392b;
  --text: #e8eef3;
  --muted: #9fb3c3;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-hi); }

.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.narrow { width: min(760px, 92vw); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(2, 25, 43, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark { width: 40px; height: 26px; color: var(--text); }
.brand-text { font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; letter-spacing: 0.08em; }
.nav nav { display: flex; gap: 22px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav nav a:hover { color: var(--text); }

/* hero */
.hero {
  background: var(--navy);
  padding: 72px 0 0;
  text-align: center;
  overflow: hidden;
}
.eyebrow { color: var(--green-hi); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; margin: 0 0 18px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin: 0 auto 28px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 0.85rem; margin-top: 18px; }
.hero-img { margin: 40px auto 0; width: min(1400px, 100%); }

/* buttons */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-hi); }
.btn-ghost { border: 1px solid var(--green); color: var(--text); }
.btn-ghost:hover { background: rgba(26, 168, 42, 0.12); }

/* sections */
.section { padding: 80px 0; }
.section-alt { background: var(--navy); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 32px; text-align: center; }
.section p { color: var(--muted); }

/* product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card img { aspect-ratio: 1 / 1; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.25rem; }
.card-body p { margin: 0; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.price { font-size: 1.6rem; font-weight: 700; color: var(--text) !important; margin: 10px 0 14px !important; }
.price span { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.card-featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 20px 40px rgba(0, 0, 0, 0.35); }

/* comparison table */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th[scope="row"] { text-align: left; font-weight: 400; color: var(--text); }
.compare thead th { background: #13344a; font-size: 1rem; }
.compare .yes { color: var(--green-hi); font-weight: 700; }
.compare .no { color: var(--red); }
.compare .price-row th, .compare .price-row td { font-weight: 700; border-bottom: 0; }

/* requirements + setup */
.req { font-size: 0.85rem; border-left: 3px solid var(--green); padding-left: 10px; margin-top: 8px !important; }
.req a { color: var(--green-hi); }
#setup h3 { margin: 28px 0 8px; font-size: 1.1rem; }
.steps { color: var(--muted); padding-left: 1.2rem; }
.steps li { margin-bottom: 8px; }
.steps strong { color: var(--text); }

/* video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* footer */
.footer { background: var(--navy); border-top: 1px solid var(--line); padding: 28px 0 20px; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.social { display: flex; gap: 18px; }
.social a { color: var(--muted); }
.disclaimer { font-size: 0.8rem; opacity: 0.75; margin-top: 14px; }

/* short sections read better centred; long text stays left-aligned */
#contact .wrap { text-align: center; }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .disclaimer { text-align: center; }
  .nav-inner { flex-direction: column; height: auto; padding: 10px 0 8px; gap: 6px; }
  .nav nav { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .nav nav a { white-space: nowrap; font-size: 0.9rem; }
  .nav nav a:nth-child(n+4) { display: none; }
  .section { padding: 56px 0; }
}

/* ---------------------------------------------------------------- NFP replay (news-volatility.html) */
.rp { margin: 40px auto 0; width: min(920px, 94vw); text-align: left; }
.rp-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: 0.82rem; }
.rp-tag { color: var(--text); border: 1px solid var(--line); background: var(--ink); border-radius: 999px; padding: 3px 12px; }
.rp-sym { color: var(--muted); letter-spacing: 0.06em; }
.rp-stage { position: relative; aspect-ratio: 16 / 9; background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.rp-fallback { width: 100%; height: 100%; object-fit: contain; }
.rp-ready .rp-stage canvas { display: block; }
.rp-ready .rp-fallback { visibility: hidden; }
.rp-clock, .rp-badge, .rp-card { display: none; }
.rp-ready .rp-clock, .rp-ready .rp-badge, .rp-ready .rp-card { display: block; }
.rp-clock { position: absolute; top: 12px; left: 12px; font-size: 0.85rem; color: var(--muted); background: rgba(13, 15, 32, 0.8);
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-clock b { color: var(--text); font-size: 1.15rem; margin: 0 4px; }
.rp-badge { position: absolute; top: 12px; right: 12px; font-weight: 700; font-size: 0.95rem; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid #f5a623; color: #f5a623; background: rgba(13, 15, 32, 0.85); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-badge.now { background: #f5a623; color: var(--ink); animation: rp-pulse 0.9s ease-in-out infinite; }
.rp-badge.post { opacity: 0.85; }
@keyframes rp-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.7); transform: scale(1); }
  50% { box-shadow: 0 0 0 10px rgba(245, 166, 35, 0); transform: scale(1.06); } }
.rp-card { position: absolute; left: 50%; top: 10px; transform: translate(-50%, -10px); opacity: 0; transition: opacity .6s, transform .6s;
  background: rgba(2, 25, 43, 0.97); border: 1px solid var(--green); border-radius: 12px; padding: 10px 18px; text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); pointer-events: none; width: max-content; max-width: 92%; }
.rp-card.show { opacity: 1; transform: translate(-50%, 0); }
.rp-clock, .rp-badge { transition: opacity .4s; }
@media (max-width: 640px) { .rp-done .rp-clock, .rp-done .rp-badge { opacity: 0; } }
.rp-card strong { display: block; font-size: 1.05rem; color: var(--text); }
.rp-card span { display: block; font-size: 0.85rem; color: var(--green-hi); }
.rp-controls { display: none; align-items: center; gap: 8px; margin-top: 10px; }
.rp-ready .rp-controls { display: flex; }
.rp-controls button { font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; min-width: 64px; }
.rp-controls button:hover { border-color: var(--green); }
.rp-controls button:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 2px; }
.rp-progress { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rp-progress i { display: block; height: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); }
.rp-panel { display: none; margin-top: 10px; background: var(--navy); border: 1px solid var(--green); padding: 10px 12px 8px;
  font-family: "Segoe UI", system-ui, sans-serif; font-size: 0.8rem; line-height: 1.35; }
.rp-ready .rp-panel { display: block; }
.rp-panel p { margin: 0; white-space: pre-wrap; color: var(--text); }
.rp-panel .pl-1 { color: var(--green-hi); font-weight: 600; }
.rp-panel .pl-3, .rp-panel .pl-5, .rp-panel .pl-s { color: var(--muted); }
.rp-panel .pl-s { font-size: 0.72rem; }
.rp-panel .pl-4 { font-weight: 600; margin: 2px 0; }
.rp-panel .pl-4.red { color: #ff5a4f; }
.rp-panel .pl-4.amber { color: #f5a623; }
.rp-panel .pl-5 { margin-bottom: 6px; }
.pl-hist { display: flex; align-items: flex-end; gap: 2px; height: 40px; margin-top: 8px; }
.pl-hist i { flex: 1; background: var(--green); height: 10%; transition: height .4s; }
.pl-hist i.ev { background: #f5a623; }
.rp figcaption { color: var(--muted); font-size: 0.8rem; margin-top: 10px; }
.reel { display: flex; flex-direction: column; align-items: center; padding: 36px 0 48px; }
.reel-video { width: min(300px, 70vw); height: auto; aspect-ratio: 9 / 16; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink); }
.reel .fine { max-width: 420px; }
@media (max-width: 640px) {
  .rp-stage { aspect-ratio: 1 / 1; }
  .rp-clock { top: 8px; left: 8px; font-size: 0.72rem; padding: 3px 7px; }
  .rp-clock b { font-size: 0.98rem; margin: 0 2px; }
  .rp-clock-day { display: none; }
  .rp-badge { top: 8px; right: 8px; font-size: 0.8rem; padding: 4px 10px; }
  .rp-card { top: 6px; left: 6px; right: 6px; width: auto; max-width: none; transform: translateY(-10px); padding: 8px 10px; }
  .rp-card.show { transform: none; }
  .rp-card strong { font-size: 0.9rem; }
  .rp-panel { font-size: 0.7rem; padding: 8px 9px 6px; }
  .rp-panel .pl-s { font-size: 0.64rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-badge.now { animation: none; }
  .rp-card, .pl-hist i { transition: none; }
}

/* technical details (news-volatility.html) */
.tech { margin: 18px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; background: var(--panel); }
.tech summary { cursor: pointer; font-weight: 600; color: var(--green-hi); }
.tech[open] summary { margin-bottom: 8px; }
.tech li { font-size: 0.92rem; }

/* ---------------------------------------------------------------- live scoreboard (news-volatility.html) */
.live-status { color: var(--text) !important; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--green);
  border-radius: 8px; padding: 12px 16px; }
.live-table th, .live-table td { padding: 10px 12px; font-variant-numeric: tabular-nums; }
.live-sub { color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.live-ev { color: #f5a623; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.live-select { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin-left: 8px; }
@media (max-width: 560px) { .live-table th, .live-table td { padding: 8px 6px; font-size: 0.85rem; } }

/* ---------------------------------------------------------------- Edge Check (edge-check.html) */
.ec-hero { padding-bottom: 56px; }
.ec-privacy { max-width: 680px; margin: 0 auto; text-align: left; background: var(--panel); border: 1px solid var(--green);
  border-left: 4px solid var(--green); border-radius: 10px; padding: 14px 18px; color: var(--muted); }
.ec-privacy strong { color: var(--text); }
.ec-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer;
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--panel); padding: 34px 16px; transition: border-color .15s, background .15s; }
.ec-drop:hover, .ec-drop.ec-over { border-color: var(--green); background: #12304a; }
.ec-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ec-drop:focus-within { outline: 2px solid var(--green-hi); outline-offset: 2px; }
.ec-drop-main { font-weight: 600; color: var(--text); }
.ec-drop-sub { font-size: 0.82rem; color: var(--muted); }
.ec-paste-box textarea { width: 100%; font: 0.85rem/1.4 Consolas, "Courier New", monospace; color: var(--text); background: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.ec-or { margin: 22px 0 8px; }
.ec-examples { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-ex { font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--text); background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.ec-ex:hover { border-color: var(--green); }
.ec-ex[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.ec-ex:focus-visible, .ec-inline button:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 2px; }
.ec-load-msg { color: var(--text) !important; overflow-wrap: anywhere; }
.ec-warn { color: #f5a623; font-size: 0.85rem; }
.ec-bad { color: #ff5a4f; }
.ec-settings { margin-top: 22px; }
.ec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 18px; margin: 6px 0 4px; }
.ec-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 0.86rem; color: var(--muted); }
.ec-grid input, .ec-grid select, .ec-inline input { font: inherit; font-size: 0.92rem; color: var(--text); background: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; min-width: 0; }
.ec-grid label.ec-check { flex-direction: row; align-items: flex-start; gap: 8px; color: var(--text); }
.ec-grid label.ec-check input { margin-top: 4px; }
.ec-verdict { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--muted); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; }
.ec-verdict p { margin: 0 0 8px; color: var(--muted); }
.ec-verdict .ec-v-label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; margin: 0; }
.ec-verdict .ec-v-word { font-size: clamp(1.35rem, 4.5vw, 2rem); font-weight: 800; line-height: 1.2; color: var(--text); margin: 4px 0 10px; overflow-wrap: anywhere; }
.ec-verdict .ec-v-reason { font-size: 0.88rem; margin: 0; }
.ec-v-no { border-left-color: #ff5a4f; } .ec-v-no .ec-v-word { color: #ff7b72; }
.ec-v-weak { border-left-color: #f5a623; } .ec-v-weak .ec-v-word { color: #f5a623; }
.ec-v-check { border-left-color: #f5d123; } .ec-v-check .ec-v-word { color: #f5d123; }
.ec-v-ok { border-left-color: var(--green-hi); } .ec-v-ok .ec-v-word { color: var(--green-hi); }
.ec-stats th[scope="row"] { font-size: 0.9rem; }
.ec-stats td { text-align: right; font-variant-numeric: tabular-nums; }
.ec-stats th, .ec-stats td { padding: 9px 14px; }
.ec-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ec-checks li { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; overflow-wrap: anywhere; }
.ec-tag { flex: 0 0 auto; min-width: 46px; text-align: center; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; border-radius: 6px; padding: 3px 6px; margin-top: 2px; }
.ec-pass .ec-tag { background: rgba(34, 196, 53, 0.16); color: var(--green-hi); }
.ec-fail .ec-tag { background: rgba(255, 90, 79, 0.16); color: #ff7b72; }
.ec-na .ec-tag { background: rgba(159, 179, 195, 0.14); color: var(--muted); }
.ec-st-info .ec-tag { background: rgba(120, 170, 230, 0.16); color: #8fbcef; }
.ec-st-warn .ec-tag { background: rgba(245, 166, 35, 0.16); color: #f5a623; }
.ec-hint { background: var(--panel); border: 1px solid #f5a623; border-radius: 10px; padding: 12px 14px; margin: 10px 0 0; color: var(--text); overflow-wrap: anywhere; }
.ec-hint .btn { margin-top: 8px; padding: 7px 16px; font: inherit; font-weight: 600; cursor: pointer; background: transparent; }
.ec-canvas { width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ec-canvas canvas { display: block; }
.section h3 { margin: 30px 0 10px; font-size: 1.1rem; }
.ec-h2-sub { margin-top: 56px; }
.ec-big { font-size: clamp(1.4rem, 4.5vw, 1.9rem); font-weight: 800; color: var(--text) !important; margin: 4px 0 8px; line-height: 1.25; }
.ec-big-sub { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.ec-lock { background: var(--panel); border: 1px solid var(--green); border-radius: var(--radius); padding: 20px; }
.ec-lock-value { color: var(--text) !important; font-size: 1.1rem; font-weight: 700; margin-top: 0; }
.ec-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ec-inline label { color: var(--muted); font-size: 0.9rem; }
.ec-inline input { flex: 1 1 200px; font-family: Consolas, "Courier New", monospace; }
.ec-inline .btn { padding: 8px 18px; font: inherit; font-weight: 600; cursor: pointer; background: transparent; }
code { font-family: Consolas, "Courier New", monospace; font-size: 0.88em; color: var(--text); }
@media (max-width: 560px) {
  .ec-stats th, .ec-stats td { padding: 8px 8px; font-size: 0.85rem; }
  .ec-verdict { padding: 14px 14px; }
  .ec-lock { padding: 14px; }
}
.ec-privacy-small { display: block; margin-top: 8px; font-size: 0.82rem; }

/* ---------------------------------------------------------------- chart screenshots (news-volatility.html) */
.shots-intro { max-width: 760px; margin: -12px auto 28px; text-align: center; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.shot { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; }
.shot a { display: block; background: var(--navy); }
.shot img { width: 100%; aspect-ratio: 1113 / 916; object-fit: cover; }
.shot figcaption { padding: 14px 16px 16px; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.shot figcaption strong { color: var(--text); }
.shots-note { text-align: center; }
.rp-panel .pl-u { color: var(--text); font-size: 0.74rem; }

/* ---------------------------------------------------------------- Edge Check teaser card (index.html) */
.ec-teaser { display: flex; align-items: center; gap: 18px; text-align: left; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 0 auto 18px;
  max-width: 640px; transition: border-color .15s, transform .15s; }
.ec-teaser:hover { border-color: var(--green); transform: translateY(-1px); }
.ec-teaser:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 2px; }
.ec-teaser img { width: 200px; flex: 0 0 200px; border-radius: 8px; aspect-ratio: 480 / 323; }
.ec-teaser-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ec-teaser-kicker { color: var(--green-hi); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ec-teaser strong { font-size: 1.05rem; line-height: 1.3; }
.ec-teaser-text { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.ec-teaser-cta { color: var(--green-hi); font-weight: 600; font-size: 0.9rem; }
@media (max-width: 520px) {
  .ec-teaser { gap: 12px; padding: 10px; align-items: flex-start; }
  .ec-teaser img { width: 108px; flex-basis: 108px; }
  .ec-teaser-text { display: none; }
  .ec-teaser strong { font-size: 0.95rem; }
}
