/* Voltex content pages — the documents search engines and shared links land on.
   Deliberately separate from styles.css: those pages are the trading app, this
   is prose. Sharing a stylesheet would mean every marketing tweak risks the
   order book, and every app change risks the page Google has indexed.

   Same palette and the same three-state theme resolution, so a visitor who
   arrives here from a search and then opens the app does not see two products. */

:root {
  --bg: #181a20;
  --bg-2: #0b0e11;
  --card: #1e2329;
  --card-2: #2b3139;
  --line: #2b3139;
  --text: #eaecef;
  --muted: #b7bdc6;
  --faint: #848e9c;
  --yellow: #fcd535;
  --yellow-2: #f0b90b;
  --radius: 10px;
  --maxw: 900px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; line-height: 1.65; font-size: 16px;
}
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.pg-top {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 20px;
}
.pg-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 0.06em; color: var(--text); }
.pg-brand:hover { text-decoration: none; }
.pg-mark { color: var(--yellow); }
.pg-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 0.9rem; }
.pg-nav a { color: var(--muted); }
.pg-nav .pg-cta {
  background: var(--yellow); color: #14161a; font-weight: 600;
  padding: 8px 16px; border-radius: 8px;
}
.pg-nav .pg-cta:hover { background: var(--yellow-2); text-decoration: none; }

/* ---------- body ---------- */
.pg-main { max-width: var(--maxw); margin: 0 auto; padding: 10px 20px 60px; }
.pg-main section { margin-bottom: 46px; }

h1 { font-size: 2.1rem; line-height: 1.25; letter-spacing: -0.02em; margin: 14px 0 16px; }
h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 38px 0 12px; }
h3 { font-size: 1rem; margin-bottom: 6px; }
p { margin-bottom: 14px; color: var(--muted); }
.pg-lead { font-size: 1.08rem; color: var(--text); }

/* Breadcrumbs are here for the reader as much as for the crawler — a page that
   arrives from a search result has no back button into the site. */
.pg-crumb { font-size: 0.82rem; color: var(--faint); }
.pg-crumb a { color: var(--faint); }
.pg-crumb i { font-style: normal; margin: 0 7px; opacity: 0.6; }

.pg-hero { padding: 26px 0 10px; }
.pg-hero h1 { font-size: 2.6rem; max-width: 18ch; }
.pg-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.pg-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.pg-btn {
  display: inline-block; background: var(--yellow); color: #14161a;
  font-weight: 600; padding: 12px 24px; border-radius: 8px;
}
.pg-btn:hover { background: var(--yellow-2); text-decoration: none; }
.pg-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.pg-btn.ghost:hover { border-color: var(--faint); background: var(--card); }
.pg-more { font-weight: 500; }

.pg-grid3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 18px; }
.pg-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.pg-card p { margin: 0; font-size: 0.92rem; }

.pg-curs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 18px 0; }
.pg-cur {
  display: flex; align-items: center; gap: 12px; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px;
}
.pg-cur:hover { border-color: var(--yellow); text-decoration: none; }
.pg-flag { font-size: 1.5rem; line-height: 1; }
.pg-cur-n {
  display: flex; flex-direction: column; line-height: 1.35; min-width: 0;
  font-size: 0.82rem; color: var(--faint);
}
.pg-cur-n b { font-size: 0.95rem; color: var(--text); }

.pg-steps { margin: 0 0 14px 20px; }
.pg-steps li { margin-bottom: 12px; color: var(--muted); padding-left: 4px; }
.pg-steps b, .pg-rules b { color: var(--text); }
.pg-rules { list-style: none; margin-bottom: 14px; }
.pg-rules li {
  color: var(--muted); margin-bottom: 12px; padding-left: 24px; position: relative;
}
.pg-rules li::before { content: "→"; position: absolute; left: 0; color: var(--yellow); }

.pg-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pg-chips li {
  background: var(--card); border: 1px solid var(--line); border-radius: 100px;
  padding: 6px 14px; font-size: 0.85rem; color: var(--muted);
}

.pg-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.92rem; }
.pg-table th, .pg-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.pg-table th { color: var(--faint); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 500; }
.pg-table td { color: var(--muted); }
.pg-table td b { color: var(--text); }

/* <details> so the answer is in the HTML for a crawler even while collapsed —
   content hidden behind JavaScript is content that may never be indexed. */
.pg-faq details { border-bottom: 1px solid var(--line); }
.pg-faq summary { cursor: pointer; padding: 15px 0; font-weight: 500; list-style: none; position: relative; padding-right: 28px; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; position: absolute; right: 6px; color: var(--yellow); font-size: 1.2rem; line-height: 1; }
.pg-faq details[open] summary::after { content: "−"; }
.pg-faq p { padding-bottom: 15px; margin: 0; font-size: 0.95rem; }

.pg-legal {
  white-space: pre-wrap; font-family: inherit; font-size: 0.9rem; color: var(--muted);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; overflow-x: auto;
}

/* ---------- footer ---------- */
.pg-foot { border-top: 1px solid var(--line); margin-top: 40px; }
.pg-foot-cols {
  max-width: var(--maxw); margin: 0 auto; padding: 34px 20px 10px;
  display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.pg-foot-cols h4 { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 10px; font-weight: 500; }
.pg-foot-cols a { display: block; color: var(--muted); font-size: 0.88rem; padding: 4px 0; }
.pg-fine { max-width: var(--maxw); margin: 0 auto; padding: 16px 20px 34px; font-size: 0.78rem; color: var(--faint); }

@media (max-width: 560px) {
  .pg-hero h1 { font-size: 1.9rem; }
  h1 { font-size: 1.65rem; }
  .pg-nav { gap: 12px; font-size: 0.84rem; width: 100%; margin-left: 0; }
}

/* ---------- light theme ----------
   Matches the app: no attribute follows the device, an explicit choice wins. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ffffff; --bg-2: #fafafa; --card: #ffffff; --card-2: #f5f5f5;
    --line: #eaecef; --text: #1e2329; --muted: #4a5058; --faint: #707a8a;
    --yellow: #8f6400; --yellow-2: #6f4e00;
    color-scheme: light;
  }
  :root:not([data-theme="dark"]) .pg-nav .pg-cta,
  :root:not([data-theme="dark"]) .pg-btn { color: #ffffff; }
  :root:not([data-theme="dark"]) .pg-card,
  :root:not([data-theme="dark"]) .pg-cur,
  :root:not([data-theme="dark"]) .pg-legal { background: #fafafa; }
}
:root[data-theme="light"] {
  --bg: #ffffff; --bg-2: #fafafa; --card: #ffffff; --card-2: #f5f5f5;
  --line: #eaecef; --text: #1e2329; --muted: #4a5058; --faint: #707a8a;
  --yellow: #8f6400; --yellow-2: #6f4e00;
  color-scheme: light;
}
:root[data-theme="light"] .pg-nav .pg-cta,
:root[data-theme="light"] .pg-btn { color: #ffffff; }
:root[data-theme="dark"] { color-scheme: dark; }
