/* Static pages "refine, don't redesign" upgrade (docs/brand/UPGRADE-GUIDE.md, 2026-12-01).
   Loaded after home.css by src/pages/home/{static,legal,forex,chrome-routes}.mjs only. Layout, content and behaviour stay
   as they are; this file only adds the shared design language: card depth stack + gold hover edge, one gold hairline per
   page on the focal block, eyebrow bars, tabular figures, one section rhythm, table zebra/hover, Muse icon slots.
   OWNER: static-pages area. Scope everything to .st-gen (generated static pages), .st-legal, .fx-page or .st-simple. */

:root {
  --su-hi: inset 0 1px 0 color-mix(in srgb, var(--color-ink) 6%, transparent);
  --su-amb: 0 1px 2px rgb(0 0 0 / .32), 0 14px 32px -20px rgb(0 0 0 / .75);
  --su-amb-hover: 0 2px 4px rgb(0 0 0 / .32), 0 20px 40px -20px rgb(0 0 0 / .85);
  --su-edge-hover: color-mix(in srgb, var(--color-accent) 35%, var(--color-hairline));
  --su-gold-line: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold-500) 80%, transparent) 50%, transparent);
}
html[data-theme=light] {
  /* the ink-based highlight would draw a dark line on white cards: light theme uses a white sheen instead */
  --su-hi: inset 0 1px 0 rgb(255 255 255 / .9);
  --su-amb: 0 1px 2px rgb(18 17 16 / .05), 0 10px 26px -16px rgb(18 17 16 / .16);
  --su-amb-hover: 0 2px 4px rgb(18 17 16 / .06), 0 16px 34px -16px rgb(18 17 16 / .22);
  --su-gold-line: linear-gradient(90deg, transparent, var(--gold-600) 50%, transparent);
}

/* ---------- surfaces: depth stack on every card ---------- */
.st-gen :is(.st-card-1, .st-card-2, .st-card-3, .st-card-5, .st-card-6, .st-card-7, .st-card-8, .st-card-9, .st-card-10, .st-card-11,
  .st-card-13, .st-card-14, .st-card-15, .st-card-16, .st-card-17, .st-card-18, .st-card-19, .st-card-20, .st-card-21, .st-card-22,
  .st-card-23, .st-card-24, .st-card-25, .st-card-26, .st-card-27, .st-card-29, .st-card-30, .st-card-31, .st-card-32, .st-card-33,
  .st-card-36, .st-card-37, .st-card-38, .st-card-40, .st-card-41, .st-btn-2, .st-btn-3, .st-btn-4, .st-btn-10, .st-btn-16, .st-btn-17,
  .st-btn-18, .st-btn-19, .st-list-3, .st-list-6, .st-list-7, .st-sec-9, .st-sec-14, .st-sec-16, .st-sec-17, .st-grid-3, .st-grid-35),
.st-legal :is(.bc-ldoc-card, .bc-ldoc-toc, .bc-ldoc-contact, .bc-ldoc-history li, .bc-ldoc-tw, .bc-ldoc-defs) {
  box-shadow: var(--su-hi), var(--su-amb);
}

/* clickable cards: faint gold edge + 2px lift (translate composes with .bc-press's :active scale) */
.st-gen :is(a.st-btn-2, a.st-btn-3, a.st-btn-4, a.st-btn-10, a.st-btn-16, a.st-btn-17, a.st-btn-18, a.st-btn-19, .st-card-33, .st-card-41),
.fx-page .fx-card {
  transition-property: translate, transform, border-color, box-shadow, background-color, color;
  transition-duration: 160ms, var(--bc-dur-settle, .26s), 160ms, 160ms, .15s, .15s;
  transition-timing-function: var(--ease-out), var(--bc-ease-spring, ease), var(--ease-out), var(--ease-out), ease, ease;
}
@media (hover: hover) {
  .st-gen :is(a.st-btn-3, a.st-btn-4, a.st-btn-10, a.st-btn-17, a.st-btn-19, .st-card-33, .st-card-41):hover,
  .fx-page .fx-card:hover { border-color: var(--su-edge-hover); }
  .st-gen :is(a.st-btn-2, a.st-btn-3, a.st-btn-4, a.st-btn-10, a.st-btn-16, a.st-btn-17, a.st-btn-18, a.st-btn-19, .st-card-33, .st-card-41):hover,
  .fx-page .fx-card:hover { translate: 0 -2px; box-shadow: var(--su-hi), var(--su-amb-hover); }
}
@media (prefers-reduced-motion: reduce) {
  .st-gen :is(a.st-btn-2, a.st-btn-3, a.st-btn-4, a.st-btn-10, a.st-btn-16, a.st-btn-17, a.st-btn-18, a.st-btn-19, .st-card-33, .st-card-41):hover,
  .fx-page .fx-card:hover { translate: none; }
}

/* forex broker cards: keep the source card, add the inner highlight; light theme gets a clean white card instead of the grey wash */
.fx-page .fx-card { box-shadow: var(--su-hi), 0 9px 21px 0 rgb(0 0 0 / .25); }
html[data-theme=light] .fx-page .fx-card { background: var(--color-surface-1); border-color: var(--color-hairline); box-shadow: var(--su-hi), var(--su-amb); }
@media (hover: hover) { html[data-theme=light] .fx-page .fx-card:hover { border-color: var(--su-edge-hover); box-shadow: var(--su-hi), var(--su-amb-hover); } }

/* ---------- gold accent: one thin gold hairline on the page's focal block (CTA band / form / summary) ---------- */
.st-gen :is(.st-card-8, .st-card-17, .st-card-18, .st-card-27, .st-card-31, .st-card-38, .st-card-40, .st-sec-14, .st-sec-17, .st-card-39),
.st-legal .bc-ldoc-top > .bc-ldoc-card:first-child {
  background-image: var(--su-gold-line);
  background-repeat: no-repeat;
  background-size: 64% 1px;
  background-position: 50% 0;
  background-origin: padding-box;
}

/* risk warning: a short gold bar closes the title */
.st-simple .bc-simple-title::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 20px; border-radius: 2px; background: var(--color-cta); }

/* ---------- eyebrow labels: small caps, ink-4, short gold bar ---------- */
.st-gen :is(.st-text-11, .st-h2-4) { color: var(--color-ink-4); letter-spacing: .08em; }
.st-gen :is(.st-text-11, .st-h2-4)::before {
  content: ""; display: inline-block; vertical-align: middle; width: 16px; height: 2px; margin: -2px 10px 0 0; border-radius: 2px;
  background: var(--color-cta);
}

/* ---------- numbers: tabular figures in KPIs, stats, years, prices ---------- */
.st-gen :is([data-countup], [data-count-to], .st-txt-5, .st-txt-10, .st-txt-11, .st-item-15),
.fx-page :is(.fx-joined, .fx-row dd, .fx-pop__tr p),
.st-legal :is(.bc-ldoc-hv, .bc-ldoc-no, .bc-ldoc-tw td) { font-variant-numeric: tabular-nums; }

/* ---------- rhythm: one vertical rhythm between sections (48 mobile / 64 tablet / 96 desktop) ---------- */
.st-gen :is(.st-wrap-1, .st-wrap-2) > section[class*="st-sec-"]:not(.st-sec-10) + section[class*="st-sec-"] { margin-top: 48px; }
@media (min-width: 40rem) { .st-gen :is(.st-wrap-1, .st-wrap-2) > section[class*="st-sec-"]:not(.st-sec-10) + section[class*="st-sec-"] { margin-top: 64px; } }
@media (min-width: 64rem) { .st-gen :is(.st-wrap-1, .st-wrap-2) > section[class*="st-sec-"]:not(.st-sec-10) + section[class*="st-sec-"] { margin-top: 96px; } }

/* ---------- tables (legal documents, forex popups): zebra 3% ink + row hover ---------- */
.st-legal .bc-ldoc-tw tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--color-ink) 3%, transparent); }
.st-legal .bc-ldoc-tw tbody tr { transition: background-color .15s; }
.st-legal .bc-ldoc-tw tbody tr:hover td { background: color-mix(in srgb, var(--color-accent) 6%, transparent); }
.st-legal .bc-ldoc-tw th { background: color-mix(in srgb, var(--color-surface-2) 88%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.fx-page .fx-pop__tr:not(.fx-pop__th):nth-child(odd) { background: color-mix(in srgb, var(--color-ink) 3%, transparent); }
.fx-page .fx-pop__tr:not(.fx-pop__th):hover { background: color-mix(in srgb, var(--color-accent) 6%, transparent); }

/* ---------- Muse 3D icon slots (markup from static.mjs wire()) ---------- */
/* VIP benefits: the 44px amber glyph tile becomes the 3D icon itself */
.page-vip .st-txt-84.su-ic { width: 56px; height: 56px; border: 0; background: none; }
.su-ic img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .35)); }
html[data-theme=light] .su-ic img { filter: drop-shadow(0 6px 10px rgb(18 17 16 / .14)); }
/* VIP hero: the gold whale scene (bc-hero-vip, 3:2, subject on the right) fills the square slot */
.page-vip .st-img-37.su-hero { aspect-ratio: 1; object-fit: cover; object-position: 100% 50%; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
/* copy trading empty state: friendly Muse icon + label instead of the source's raw shortcode */
.page-copy .st-txt-86.su-ic { width: 96px; height: 96px; border: 0; background: none; }
.page-copy .st-text-45.su-empty { font-family: var(--font-sans); font-size: var(--text-small); word-break: normal; color: var(--color-ink-4); }

@media print {
  .st-gen *, .st-legal * { box-shadow: none !important; }
}

/* ---------- consistency review (docs/research/upgrade/REVIEW.md): the few static values that differed from the site-wide set ---------- */
/* light theme: gold bars and hairlines use the CTA-edge gold (plain gold on white is too faint), as on the broker, tool,
   promo and blog pages */
html[data-theme=light] { --su-gold-line: linear-gradient(90deg, transparent, var(--color-cta-edge) 50%, transparent); }
html[data-theme=light] .st-gen :is(.st-text-11, .st-h2-4)::before,
html[data-theme=light] .st-simple .bc-simple-title::after { background: var(--color-cta-edge); }
/* table rows: neutral hover, as on the broker, promo, tool and blog tables */
.st-legal .bc-ldoc-tw tbody tr:hover td,
.fx-page .fx-pop__tr:not(.fx-pop__th):hover { background: color-mix(in srgb, var(--color-ink) 6%, transparent); }
/* about timeline figures (1K, 10K+, 100K): the brand number face (Inter, tabular) instead of the code face, as the KPIs on
   the home, VIP, tool and broker pages */
.st-gen :is(.st-txt-11, .st-txt-13) { font-family: var(--font-num); font-feature-settings: var(--num-features); }
