/* ================================================================
   SEO landing pages
   Standalone, no JavaScript, one stylesheet. Themed per market with
   body[data-market] so the Forex pages match the blue Forex edition and the
   Indian pages match the orange one, using the same accent tokens as the
   React app.
   ================================================================ */

:root {
  color-scheme: dark;
  --bg: #060608;
  --surface: #0d0c10;
  --text: #f1ede4;
  --muted: #aaa49a;
  --faint: #6c675f;
  --gold: #ff6e01;
  --gold-bright: #ff9134;
  --gold-rgb: 255 110 1;
  --gold-bright-rgb: 255 145 52;
  --line: rgba(255, 145, 52, 0.2);
  --line-strong: rgba(255, 145, 52, 0.42);
  /* the market switch always wears the *other* edition's accent */
  --switch-rgb: 31 143 255;
  --switch-bright-rgb: 90 171 255;
  --font-sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-detail: Inter, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-market='forex'] {
  --bg: #05070c;
  --surface: #0a0f1a;
  --gold: #1f8fff;
  --gold-bright: #5aabff;
  --gold-rgb: 31 143 255;
  --gold-bright-rgb: 90 171 255;
  --line: rgba(90, 171, 255, 0.22);
  --line-strong: rgba(90, 171, 255, 0.45);
  --switch-rgb: 255 110 1;
  --switch-bright-rgb: 255 145 52;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgb(var(--gold-rgb) / 0.1), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-detail);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-bright); }

.shell { width: min(calc(100% - 36px), 1050px); margin: auto; padding: 28px 0 80px; }

/* --- nav ------------------------------------------------------- */

.nav { display: flex; align-items: center; justify-content: space-between; gap: 15px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand img { width: 34px; height: 24px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 12px; }

.nav-links a { color: var(--muted); font-size: 12.5px; text-decoration: none; }
.nav-links a:hover { color: var(--gold-bright); }

/* Qualified so it beats `.nav-links a` on specificity without !important. */
.nav-links .market-switch {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgb(var(--switch-rgb) / 0.45);
  border-radius: 999px;
  background: rgb(var(--switch-rgb) / 0.1);
  color: rgb(var(--switch-bright-rgb));
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.nav-links .market-switch:hover { border-color: rgb(var(--switch-rgb) / 0.8); background: rgb(var(--switch-rgb) / 0.2); }

.nav-cta { color: var(--gold-bright) !important; font-weight: 700; }

/* --- hero ------------------------------------------------------ */

.hero { padding: 96px 0 64px; max-width: 830px; }

.kicker {
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(40px, 7.4vw, 74px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.06em;
}
h1 span { color: var(--gold-bright); }

.lead { max-width: 690px; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gold);
  color: #1a0900;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.button:hover { background: var(--gold-bright); }
/* Scoped to the solid button on purpose. Unscoped, body[data-market] .button
   outranks .button.secondary and paints dark-on-dark text on the ghost variant. */
body[data-market='forex'] .button:not(.secondary) { color: #04101f; }
.button.secondary { border-color: var(--line-strong); background: transparent; color: var(--text); }
.button.secondary:hover { border-color: var(--gold); background: rgb(var(--gold-rgb) / 0.1); color: var(--gold-bright); }

/* --- sections -------------------------------------------------- */

.section { padding: 54px 0; border-top: 1px solid var(--line); }
.section h2 { margin: 0; font-family: var(--font-sans); font-size: clamp(26px, 4.4vw, 40px); font-weight: 850; line-height: 1.06; letter-spacing: -0.045em; }
.section > p { max-width: 68ch; color: var(--muted); }

.grid { display: grid; gap: 12px; margin-top: 25px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(10, 10, 15, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent 75%);
  content: '';
}
.card h3 { margin: 0; font-family: var(--font-sans); font-size: 18px; font-weight: 800; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.card .tag {
  display: inline-block;
  margin-bottom: 11px;
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* --- steps ----------------------------------------------------- */

.steps { margin-top: 25px; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  display: grid;
  gap: 4px 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 42px minmax(0, 1fr);
}
.steps li::before {
  color: rgb(var(--gold-rgb) / 0.5);
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.2;
}
.steps h3 { margin: 0; font-family: var(--font-sans); font-size: 17px; font-weight: 800; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

/* --- faq ------------------------------------------------------- */

.faq { margin-top: 25px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 4px 0;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 750;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { color: var(--gold-bright); content: '+'; font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0 0 18px; max-width: 74ch; color: var(--muted); font-size: 14.5px; }

/* --- cta band -------------------------------------------------- */

.cta-band {
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: radial-gradient(90% 130% at 88% 6%, rgb(var(--gold-rgb) / 0.13), transparent 62%), var(--surface);
  text-align: center;
}
.cta-band h2 { margin: 0; }
.cta-band p { margin: 14px auto 0; max-width: 56ch; color: var(--muted); font-size: 15px; }
.cta-band .actions { justify-content: center; }

/* --- notes + footer -------------------------------------------- */

.note {
  margin-top: 24px;
  padding: 15px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgb(var(--gold-rgb) / 0.06);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.footer { margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--gold-bright); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.risk-copy { margin: 0; max-width: 80ch; line-height: 1.6; }

@media (max-width: 760px) {
  .hero { padding-top: 62px; }
  .grid,
  .grid.two { grid-template-columns: 1fr; }
  .lead { font-size: 16px; }
  .nav-links .market-switch { display: none; }
  .cta-band { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
