/* AA Global FX - AirLume-style theme: dark indigo hero, glass cards, pill buttons.
   Mobile-first, no frameworks. One self-hosted variable font (45KB, cached sitewide). */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --hero-1: #0c0f3a;
  --hero-2: #1a1f6e;
  --navy: #12143c;
  --blue: #4046f0;
  --blue-dark: #2f35d8;
  --blue-tint: #eceefc;
  --ink: #1d2233;
  --muted: #626a7e;
  --bg: #f2f4fb;
  --card: #ffffff;
  --line: #e3e7f2;
  --amber: #f0a51f;
  --green: #1a9e5c;
  --red: #d64545;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 10px 30px rgba(18, 20, 60, .08);
  --maxw: 1020px;
  /* 4pt spacing scale (added Jul 27 2026). The brokers page previously used 21 distinct
     ad-hoc values; everything now comes from this set so rhythm is deliberate. */
  --sp-1: .25rem;  /*  4px */
  --sp-2: .5rem;   /*  8px */
  --sp-3: .75rem;  /* 12px */
  --sp-4: 1rem;    /* 16px */
  --sp-5: 1.5rem;  /* 24px */
  --sp-6: 2rem;    /* 32px */
  --sp-7: 3rem;    /* 48px */
  --sp-8: 4rem;    /* 64px */
  /* section separation grows with the viewport so the page breathes on desktop */
  --sp-section: clamp(2.5rem, 6vw, 4rem);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img, iframe { max-width: 100%; border-radius: var(--radius); }
iframe { aspect-ratio: 16 / 9; height: auto; width: 100%; border: 0; }
a { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: 2rem; margin: .3em 0 .4em; font-weight: 850; }
h2 { font-size: 1.45rem; margin-top: 1.7em; font-weight: 800; }
h3 { font-size: 1.12rem; margin-top: 1.4em; font-weight: 700; }
p, li { text-wrap: pretty; }
blockquote {
  margin: 1.2em 0; padding: .95em 1.15em;
  background: var(--blue-tint); border: 1px solid #c6cbf6;
  border-radius: var(--radius);
}
code { background: var(--blue-tint); padding: .1em .35em; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--hero-1); color: #fff;
  padding: .75rem 1rem;
  position: sticky; top: 0; z-index: 50;
}
.site-header .inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
}
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.08rem; letter-spacing: .01em; display: flex; align-items: center; gap: .45rem; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--blue), #7c81ff);
  display: inline-flex; align-items: center; justify-content: center; font-size: .95rem;
}
.brand span.fx { color: #9aa0ff; }
.site-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: center; }
.site-nav a { color: #c6cbee; text-decoration: none; font-size: .92rem; }
.site-nav a:hover { color: #fff; }
.site-nav a.nav-cta {
  background: var(--blue); color: #fff; font-weight: 700;
  padding: .5em 1.2em; border-radius: 999px;
}
.site-nav a.nav-cta:hover { background: var(--blue-dark); }

/* ---------- Layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 1.2rem 1rem 5.5rem; }
main.full-bleed { max-width: none; padding: 0 0 5.5rem; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
.crumb { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }
main > .lead, .wrap > .lead { color: var(--muted); font-size: 1.08rem; max-width: 40em; }
.crumb a { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  text-decoration: none; text-align: center;
  padding: .8em 1.6em; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 0; cursor: pointer; transition: transform .12s, background .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(64, 70, 240, .35); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid #c9cee6; }
.btn-light { background: #fff; color: var(--navy); }
/* WhatsApp green is brand-critical, but white on it is 1.98:1. Navy label = 8.89:1. */
.btn-whatsapp { background: #25d366; color: var(--navy); }
.btn-whatsapp:hover { background: #1ebe57; color: var(--navy); }
.btn-whatsapp .wa-ic { flex: none; width: 24px; height: 24px; vertical-align: -5px; margin-right: .1em; }
.btn .arr { font-weight: 400; }

/* ---------- Hero (dark, striped, glass cards) ---------- */
.hero-dark {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 2px, transparent 2px 84px),
    radial-gradient(120% 90% at 50% 0%, var(--hero-2) 0%, var(--hero-1) 62%);
  color: #fff;
  padding: 3.2rem 1rem 4.5rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero-dark .inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.pill {
  display: inline-block; font-size: .85rem; font-weight: 600;
  color: #d5d9ff; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  padding: .38em 1.1em; border-radius: 999px; margin-bottom: 1.2rem;
}
.pill b { color: #9aa0ff; }
.hero-dark h1 {
  color: #fff; font-size: 2.9rem; font-weight: 800; margin: 0 0 .35em;
  letter-spacing: -.02em;
}
.hero-dark p.lead {
  color: #b9bfe6; max-width: 36em; margin: 0 auto 1.6em; font-size: 1.05rem;
}
.hero-dark .btn { margin: .25rem .3rem; }

/* Glass stat cards row */
.glass-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem; max-width: var(--maxw); margin: 2.6rem auto 0; text-align: left;
}
.glass {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg); padding: 1.15rem 1.25rem;
  color: #eef0ff;
}
.glass.solid { background: #fff; color: var(--ink); border-color: transparent; box-shadow: var(--shadow); }
.glass .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #9aa0ff; margin-bottom: .4rem;
}
.glass.solid .tag { color: var(--blue); }
.glass .big { font-size: 1.9rem; font-weight: 800; line-height: 1.15; color: #fff; }
.glass.solid .big { color: var(--navy); }
.glass small { color: #aab0dc; display: block; margin-top: .35rem; font-size: .82rem; }
.glass.solid small { color: var(--muted); }
.glass .chip {
  display: inline-block; background: var(--blue-tint); color: var(--blue-dark);
  font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .2em .8em; margin-top: .5rem;
}

/* Ring gauge (like the 94% dial) */
.ring {
  --p: 70;
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--blue) calc(var(--p) * 1%), #e4e7f5 0);
  display: inline-flex; align-items: center; justify-content: center;
}
.ring::after {
  content: attr(data-label);
  width: 48px; height: 48px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; color: var(--navy);
}
.glass .row { display: flex; align-items: center; gap: .9rem; }

/* Section header (light zone) */
.section-head { text-align: center; padding: 3rem 0 .5rem; }
.section-head .pill-light {
  display: inline-block; font-size: .85rem; font-weight: 700; color: var(--blue-dark);
  background: var(--blue-tint); padding: .38em 1.1em; border-radius: 999px; margin-bottom: 1rem;
}
.section-head h2 { font-size: 2.1rem; margin: 0 0 .35em; }
.section-head p { color: var(--muted); max-width: 38em; margin: 0 auto; }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; margin: 2.2rem 0; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.7rem 1.6rem;
  background: var(--card); display: flex; flex-direction: column; gap: .7rem;
  box-shadow: var(--shadow); transition: transform .15s;
}
.card:hover { transform: translateY(-3px); }
.card h3 { margin: .25rem 0 0; font-size: 1.25rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; flex: 1; }
.card .icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--blue-tint); color: var(--blue-dark);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.card .icon svg { width: 28px; height: 28px; }
.card .more { font-size: .9rem; font-weight: 700; text-decoration: none; color: var(--navy); }
.card .more:hover { color: var(--blue); }
.card.highlight { background: var(--blue); border-color: var(--blue); }
.card.highlight h3, .card.highlight .more { color: #fff; }
.card.highlight p { color: #d9dbff; }
.card.highlight .icon { background: rgba(255,255,255,.16); color: #fff; }
.card .btn { align-self: flex-start; padding: .55em 1.2em; font-size: .92rem; }

/* Social proof bar (floats in on scroll, numbers count up) */
.proof {
  display: flex; gap: 2.4rem; justify-content: center; align-items: flex-start; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem; margin: 2.2rem 0; text-align: center; box-shadow: var(--shadow);
}
.proof > div { min-width: 130px; max-width: 200px; }
.proof b { display: block; font-size: 2rem; color: var(--navy); font-weight: 850; font-variant-numeric: tabular-nums; }
.proof span { font-size: .87rem; color: var(--muted); }

/* ---------- Scroll reveal (JS adds .anim to <html>; without JS everything stays visible) ---------- */
.anim .reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1), box-shadow .8s ease;
}
.anim .reveal.in { opacity: 1; transform: none; }
.anim .proof.reveal.in { box-shadow: 0 22px 44px rgba(18, 20, 60, .14); }
.anim .cards .card.reveal:nth-child(2) { transition-delay: .07s; }
.anim .cards .card.reveal:nth-child(3) { transition-delay: .14s; }
.anim .cards .card.reveal:nth-child(4) { transition-delay: .21s; }
.anim .cards .card.reveal:nth-child(5) { transition-delay: .07s; }
.anim .cards .card.reveal:nth-child(6) { transition-delay: .14s; }
.anim .cards .card.reveal:nth-child(7) { transition-delay: .21s; }
.anim .cards .card.reveal:nth-child(8) { transition-delay: .28s; }

/* ---------- Hero load-in cascade (plays on page load, alchemyintelligence.com style) ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero-dark .video-banner { opacity: 0; animation: fadeUp .8s ease 0s forwards; }
.hero-dark .pill         { opacity: 0; animation: fadeUp .8s ease .12s forwards; }
.hero-dark h1            { opacity: 0; animation: fadeUp .8s ease .24s forwards; }
.hero-dark .lead         { opacity: 0; animation: fadeUp .8s ease .38s forwards; }
.hero-dark .inner > .btn { opacity: 0; animation: fadeUp .8s ease .52s forwards; }
.hero-dark .glass-row    { opacity: 0; animation: fadeUp .9s ease .68s forwards; }

/* Dark band CTA */
.band {
  background: radial-gradient(120% 120% at 50% 0%, var(--hero-2) 0%, var(--hero-1) 70%);
  color: #fff; border-radius: var(--radius-lg); padding: 2.2rem 1.5rem; text-align: center; margin: 2.5rem 0;
}
.band h2 { color: #fff; margin: 0 0 .4em; }
.band p { color: #b9bfe6; max-width: 34em; margin: 0 auto 1.2em; }

/* ---------- Takeaways box ---------- */
.takeaways {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem; margin: 1.2rem 0; box-shadow: var(--shadow);
}
.takeaways h2 { margin: 0 0 .5em; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .04em; color: var(--blue-dark); }
.takeaways ul { margin: 0; padding-left: 1.2em; }
.takeaways li { margin: .35em 0; font-size: .95rem; }

/* ---------- Guide signup banner (comment-CTA landing) ---------- */
.signup-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  background: rgba(26, 158, 92, 0.07); border: 1.5px solid rgba(26, 158, 92, 0.35);
  border-radius: var(--radius-lg);
  padding: 1rem 1.4rem; margin: 1.2rem 0;
}
.signup-banner-text { display: flex; flex-direction: column; gap: .15rem; flex: 1 1 260px; }
.signup-banner-text strong { font-size: 1.02rem; }
.signup-banner-text span { font-size: .92rem; color: var(--muted, #555c7a); }
.signup-banner .btn { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 560px) {
  .signup-banner { flex-direction: column; align-items: stretch; text-align: center; }
  /* flex-basis 260px becomes HEIGHT in column direction -> giant gap; reset it */
  .signup-banner-text { flex: 0 0 auto; }
  .signup-banner .btn { width: 100%; }
}

/* ---------- Course ---------- */
.progress-wrap { background: #e4e7f5; border-radius: 999px; height: 14px; overflow: hidden; }
.progress-bar {
  height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), #7c81ff);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.progress-label { font-size: .85rem; color: var(--muted); margin: .3rem 0 1rem; }
.level {
  border: 1px solid var(--line); border-radius: var(--radius-lg); margin: 1.1rem 0; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow);
}
.level-head { background: linear-gradient(135deg, var(--blue-tint), #fff); padding: 1rem 1.2rem; }
.level-head h2 { margin: 0; font-size: 1.12rem; }
.level-head p { margin: .3em 0 0; color: var(--muted); font-size: .92rem; }
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list li { border-top: 1px solid var(--line); }
.lesson-list a {
  display: flex; align-items: center; gap: .7rem; padding: .8rem 1.2rem;
  text-decoration: none; color: var(--ink);
}
.lesson-list a:hover { background: var(--blue-tint); }
.tick { width: 1.4em; height: 1.4em; border-radius: 50%; border: 2px solid #cdd3ea; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: .8em; color: #fff; }
.done .tick { background: var(--green); border-color: var(--green); }
.done { color: var(--muted); }

/* Lesson page */
.lesson-nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: 2rem; flex-wrap: wrap; }
.quiz { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.3rem; margin-top: 2rem; background: var(--card); box-shadow: var(--shadow); }
.quiz h3 { margin-top: 0; }
.quiz label { display: block; padding: .5em .7em; border-radius: 10px; cursor: pointer; }
.quiz label:hover { background: var(--blue-tint); }
.quiz .result { font-weight: 700; margin: .5em 0 0; }
.quiz .result.ok { color: var(--green); }
.quiz .result.no { color: var(--red); }
.cta-inline {
  display: block; margin: 1.6rem 0; padding: 1.05rem 1.3rem; border-radius: var(--radius-lg);
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; text-align: center;
  box-shadow: 0 8px 20px rgba(64, 70, 240, .35);
}
.cta-inline:hover { background: var(--blue-dark); }

/* ---------- Sticky bottom CTA ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(12, 15, 58, .96); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  padding: .6rem .9rem; font-size: .95rem;
}
.sticky-cta a.btn { padding: .5em 1.2em; font-size: .9rem; white-space: nowrap; box-shadow: none; }
.sticky-cta .close { background: none; border: 0; color: #8d94c9; font-size: 1.3rem; cursor: pointer; padding: 0 .2em; }

/* ---------- Tools ---------- */
.tool-form { display: grid; gap: .9rem; max-width: 480px; }
.tool-form label { font-weight: 600; font-size: .95rem; display: block; }
.tool-form input, .tool-form select {
  width: 100%; padding: .65em .9em; font-size: 1rem; border: 1px solid var(--line); border-radius: 12px;
  background: #fff;
}
.tool-form input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.tool-note { font-size: .85rem; color: var(--muted); }
.result-box {
  background: var(--card); border: 2px solid var(--blue); border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem; margin-top: 1rem; font-size: 1.05rem; box-shadow: var(--shadow);
}
.result-box b { font-size: 1.5rem; color: var(--navy); }

/* Checklist */
.check-item { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .4rem; border-bottom: 1px solid var(--line); }
.check-item input { width: 1.3em; height: 1.3em; margin-top: .2em; flex: none; accent-color: var(--blue); }
.check-item small { color: var(--muted); display: block; }
.banner { border-radius: var(--radius-lg); padding: 1.05rem 1.3rem; text-align: center; font-weight: 800; font-size: 1.15rem; margin: 1.2rem 0; }
.banner.wait { background: #fdecec; color: var(--red); }
.banner.clear { background: #e6f7ee; color: var(--green); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--hero-1); color: #aab0dc;
  margin-top: 3rem; padding: 2rem 1rem 6.5rem; font-size: .82rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.site-footer .inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: .9rem; }
.site-footer a { color: #c6cbee; }
.site-footer strong { color: #fff; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.14); padding-top: .9rem; }

.video-banner {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; color: #c6cbee;
  padding: .5rem 1.2rem; font-size: .9rem; text-align: center;
  max-width: 34em; margin: 0 auto 1.6rem;
}
.video-banner a { color: #fff; }

/* ---------- Inline SVG icons ---------- */
svg { flex: none; }
.brand .logo svg { display: block; }
.footer-brand { display: flex; gap: 1.1rem; align-items: center; }
.brand .logo-img { display: block; width: auto; height: 22px; border-radius: 0; }
.footer-logo-img { width: auto; height: 80px; border-radius: 0; flex: none; }
.pill .pill-ic, .video-banner .vb-ic { vertical-align: -2px; margin-left: .15em; }
.video-banner .vb-ic { margin: 0 .3em 0 0; }
.chip svg { vertical-align: -2px; margin-right: .2em; }
.glass .tag svg { vertical-align: -2.5px; margin-right: .25em; }
.proof .proof-ic { color: var(--blue); display: flex; justify-content: center; padding-top: .2rem; }
.proof .proof-ic svg { display: block; }
.card .icon svg { display: block; }
.banner { display: flex; align-items: center; justify-content: center; gap: .5em; }
.banner svg { flex: none; }
.kit-list { list-style: none; padding: 0; }
.kit-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; }
.kit-list .li-ic { color: var(--blue-dark); margin-top: .25em; }

/* ---------- Guide step figures (video-frame stills) ---------- */
.guide-step { margin: 1.2rem 0 1.6rem; }
.guide-step img {
  width: 100%; height: auto; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.guide-step figcaption {
  font-size: .88rem; color: var(--muted); text-align: center;
  margin-top: .5rem;
}

/* ---------- Starter kit: sectioned layout ---------- */
.kit-heading { margin-top: 1rem; padding-top: 1.6rem; }
.kit-cards { display: grid; gap: 1rem; margin: 1.2rem 0 2.4rem; }
.kit-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem; box-shadow: var(--shadow);
}
.kit-card .kit-ic {
  flex: none; width: 46px; height: 46px; border-radius: 14px;
  background: var(--blue-tint); color: var(--blue-dark);
  display: inline-flex; align-items: center; justify-content: center;
}
.kit-card strong { display: block; margin-bottom: .25rem; color: var(--navy); }
.kit-card p { margin: 0; font-size: .93rem; color: var(--muted); }
.kit-get {
  background: rgba(37, 211, 102, 0.07); border: 1.5px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; margin: 0 0 1.4rem;
}
.kit-get h2 { margin: 0 0 .5rem; }
.kit-get p { margin: 0 0 1.1rem; }
.kit-alt {
  background: var(--blue-tint); border-radius: var(--radius-lg);
  padding: 1rem 1.4rem; margin-bottom: 1rem;
}
.kit-alt p { margin: .25rem 0 0; font-size: .93rem; color: var(--muted); }
@media (max-width: 560px) {
  .kit-cards { gap: .85rem; }
  .kit-get .btn { width: 100%; }
}

/* Guide hero illustration */
.guide-hero { margin: 1.4rem 0; }
.guide-hero img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Official partner promo creative */
.promo-card { max-width: 420px; margin: 2.5rem auto; text-align: center; }
.promo-card img { border-radius: var(--radius-lg); box-shadow: var(--shadow); height: auto; transition: transform .15s; }
.promo-card a:hover img { transform: translateY(-3px); }
.promo-note { font-size: .75rem; color: var(--muted); margin-top: .5rem; }

/* AMD Entry Trainer game */
.amd-scoreboard { display: flex; gap: 1.4rem; justify-content: center; margin: 1.2rem 0; }
.amd-scoreboard > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem 1.1rem; text-align: center; min-width: 92px; box-shadow: var(--shadow); }
.amd-scoreboard b { display: block; font-size: 1.5rem; color: var(--navy); font-weight: 850; font-variant-numeric: tabular-nums; }
.amd-scoreboard span { font-size: .78rem; color: var(--muted); }
.amd-stage { margin: 1rem 0; }
.amd-phase {
  background: var(--navy); color: #fff; border-radius: var(--radius) var(--radius) 0 0;
  padding: .7rem 1rem; font-weight: 700; font-size: .98rem; text-align: center; transition: background .3s;
}
.amd-phase.amd-manip { background: #b5384a; }
.amd-phase.amd-mss { background: var(--blue-dark); }
.amd-phase.amd-entry { background: var(--amber-dark); color: #2a1c02; }
.amd-phase.amd-dist { background: #167a48; }
#amd-canvas { width: 100%; height: auto; display: block; border-radius: 0 0 var(--radius) var(--radius); background: #0c0f3a; }
#orm-canvas { width: 100%; height: auto; display: block; border-radius: 0 0 var(--radius) var(--radius); background: #ffffff; border: 1px solid var(--line); border-top: none; }
.amd-controls { display: flex; gap: .8rem; justify-content: center; margin: 1rem 0; flex-wrap: wrap; }
.amd-buy { background: #2fbd6f; color: #033a20; min-width: 130px; }
.amd-buy:hover { background: #26a860; color: #fff; }
.amd-sell { background: #e05a5a; color: #fff; min-width: 130px; }
.amd-sell:hover { background: #cf4646; }
.amd-buy:disabled, .amd-sell:disabled { opacity: .45; cursor: default; }
.amd-buy.armed { animation: amdpulse 1s ease-in-out infinite; }
.amd-sell.armed { animation: amdpulseSell 1s ease-in-out infinite; }
@keyframes amdpulse { 0%,100% { transform: scale(1); box-shadow: 0 8px 20px rgba(47,189,111,.45); } 50% { transform: scale(1.06); box-shadow: 0 10px 30px rgba(47,189,111,.75); } }
@keyframes amdpulseSell { 0%,100% { transform: scale(1); box-shadow: 0 8px 20px rgba(224,90,90,.45); } 50% { transform: scale(1.06); box-shadow: 0 10px 30px rgba(224,90,90,.75); } }
.amd-msg { text-align: center; color: var(--muted); font-size: .95rem; max-width: 40em; margin: .5rem auto 0; min-height: 2.4em; }
.amd-msg.amd-good { color: var(--green); font-weight: 700; }
.amd-msg.amd-bad { color: var(--red); font-weight: 700; }
.amd-msg a { color: var(--blue-dark); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .amd-buy.armed, .amd-sell.armed { animation: none; box-shadow: 0 0 0 3px rgba(255,255,255,.4) inset; } }

/* Strategy chart diagram */
.chart-fig { margin: 1.6rem 0; }
.chart-fig svg { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); display: block; }
.chart-cap { font-size: .85rem; color: var(--muted); margin-top: .6rem; line-height: 1.5; }

/* FAQ (AI-extractable Q&A) */
.faq { margin: 2rem 0; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius); margin: .6rem 0;
  background: var(--card); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--navy);
  list-style: none; position: relative; padding-right: 2.6rem; line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 1rem;
  font-size: 1.4rem; color: var(--blue); font-weight: 400; line-height: 1.4;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: var(--blue-tint); }
.faq-a { padding: .2rem 1.2rem 1.1rem; color: var(--ink); line-height: 1.7; }
.faq-a p:first-child { margin-top: 0; }

@media (max-width: 560px) {
  .faq-item { margin: .8rem 0; }
  .faq-item summary { padding: 1rem 1rem; padding-right: 2.6rem; font-size: 1rem; }
  .faq-item summary::after { right: .95rem; }
  .faq-a { padding: .3rem 1rem 1.1rem; }
}

/* Author box (E-E-A-T) */
.author-box {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1rem 1.2rem; margin: 1.6rem 0; box-shadow: var(--shadow); font-size: .92rem;
}
.author-box img { border-radius: 12px; flex: none; }
.author-box .updated { color: var(--muted); font-size: .85rem; }

@media (max-width: 640px) {
  .hero-dark h1 { font-size: 2.05rem; }
  .section-head h2 { font-size: 1.6rem; }
  body { font-size: 16px; }
  .sticky-cta { font-size: .85rem; }
  .sticky-cta .msg { display: none; }
  .glass-row { grid-template-columns: 1fr; }
  /* Header: scroll away instead of pinning (it wraps tall on phones);
     the bottom sticky CTA stays as the persistent action. */
  .site-header { position: static; padding: .6rem .8rem; }
  .site-header .inner { justify-content: center; gap: .5rem; }
  .site-nav { gap: .2rem .5rem; justify-content: center; }
  .site-nav a { padding: .55em .5em; }  /* thumb-sized tap targets */
  .site-nav a.nav-cta { padding: .55em 1.1em; }
}

/* ---------- Narrow content container (added Jul 27 2026) ---------- */
/* Was referenced in markup but never defined, so full-bleed pages had NO side gutter
   and content touched both screen edges on mobile. Fluid: 16px on a phone, 32px wide. */
.page-narrow {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
/* Cap the measure so prose does not run to 100+ characters on a wide screen. */
.page-narrow > p, .page-narrow .lead, .broker p, .callout p { max-width: 68ch; }

/* ---------- Brokers page (added Jul 26 2026; spacing reworked Jul 27) ---------- */
/* Rhythm: 8-12px binds related things, 24px separates groups inside a card,
   --sp-section separates page sections. All values come from the 4pt scale. */
.brokers-page h1 { font-size: clamp(1.6rem, 5.5vw, 2.15rem); line-height: 1.15; }
/* Size contrast so the three text roles are not all 16px competing as equals:
   intro > body > aside. Also buys back vertical space above the fold on phones,
   where preamble was eating ~70% of the first screen before the first broker. */
.brokers-page .lead { font-size: clamp(1rem, 2.4vw, 1.12rem); line-height: 1.55; }
.brokers-page .callout { font-size: .95rem; line-height: 1.55; }
.brokers-page > h2 {
  font-size: clamp(1.3rem, 3.4vw, 1.6rem);
  margin-top: var(--sp-section); margin-bottom: var(--sp-4);
}
.brokers-page > p  { margin-bottom: var(--sp-4); }

.crumbs { font-size: .85rem; color: var(--muted); margin: var(--sp-1) 0 var(--sp-4); }
.crumbs a { color: var(--muted); }

.callout {
  border: 1px solid #c6cbf6; background: var(--blue-tint);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-5) 0;
}
.callout p { margin: 0; }
.callout-warn { border-color: #efd39a; background: #fdf6e8; }

.broker-list { display: grid; gap: var(--sp-5); margin: var(--sp-6) 0 var(--sp-section); }
.broker {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card); box-shadow: var(--shadow);
  padding: clamp(1.125rem, 3.5vw, 2rem);
}
.broker-feat { border: 2px solid var(--blue); }

/* logo row binds tightly to the copy it labels */
.broker-top { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.broker-rank {
  flex: none; width: 36px; height: 36px; border-radius: 12px;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.05rem;
  display: grid; place-items: center;
}
.broker-feat .broker-rank { background: var(--blue); }
.broker-top h2 { margin: 0; font-size: 1.45rem; }
.broker-name { display: flex; align-items: center; line-height: 0; }
.broker-logo { height: 30px; width: auto; display: block; }
/* WelTrade is a tile + wordmark lockup, so equal box height reads far heavier
   than the two pure wordmarks. 24px matches their optical weight. */
.broker-logo--weltrade { height: 24px; }
.broker-tag {
  font-size: .78rem; font-weight: 700; color: var(--blue-dark);
  background: var(--blue-tint); padding: .4em 1em; border-radius: 999px;
}
.broker p { margin: 0 0 var(--sp-3); }
.broker p:last-of-type { margin-bottom: 0; }

/* 24px lifts the spec panel clear of the prose: a distinct group, not another paragraph */
.broker-specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-4); background: var(--bg); border-radius: var(--radius);
  padding: var(--sp-4); margin: var(--sp-5) 0 0;
}
.spec-k {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 700; margin-bottom: var(--sp-1);
}
.spec-v { font-weight: 600; font-size: .95rem; color: var(--ink); line-height: 1.35; }
.broker .callout-warn { margin: var(--sp-5) 0 0; }
.broker p.broker-cta { margin: var(--sp-5) 0 0; }
.broker p.broker-code {
  font-size: .9rem; color: var(--muted); background: var(--bg);
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4); margin: var(--sp-3) 0 0;
}

.table-wrap { overflow-x: auto; margin: 0 0 var(--sp-2); -webkit-overflow-scrolling: touch; }
.cmp { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .94rem; }
.cmp th, .cmp td { border: 1px solid var(--line); padding: var(--sp-3) var(--sp-4); text-align: left; }
.cmp thead th { background: var(--navy); color: #fff; font-weight: 700; }
.cmp tbody tr:nth-child(odd) { background: var(--bg); }
.cmp td:first-child { font-weight: 600; color: var(--ink); }
.cmp .yes { color: var(--green); font-weight: 700; }
.cmp .no { color: var(--muted); }

/* a tight list: 8px binds the rows into one block */
.choose { display: grid; gap: var(--sp-2); margin: 0 0 var(--sp-5); }
.choose-row {
  display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: var(--sp-4);
  align-items: baseline; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-3) var(--sp-4);
}
.choose-if { font-weight: 700; color: var(--blue-dark); font-size: .95rem; }
.choose-then { color: var(--ink); }
@media (max-width: 560px) {
  .choose-row { grid-template-columns: 1fr; gap: var(--sp-1); }
  .broker-top h2 { font-size: 1.25rem; }
  .callout { padding: var(--sp-3) var(--sp-4); margin: var(--sp-4) 0; }
  .brokers-page h1 { margin-bottom: var(--sp-2); }
}

/* ---------- Accessibility (added Jul 27 2026) ---------- */
/* Keyboard focus was relying on the UA default, which disappears against the dark
   hero and the pill buttons. Amber reads on both the navy and the light surfaces. */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

/* The scroll reveal shipped with no reduced-motion alternative. Content must be
   visible instantly for anyone who asks the OS to reduce motion. */
@media (prefers-reduced-motion: reduce) {
  .anim .reveal { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* build 153722 */
