/* fxpro-za.com — charcoal + green, data-heavy layout */

:root {
  --charcoal: #22262a;
  --charcoal-deep: #1a1d21;
  --charcoal-panel: #2b3036;
  --green: #1e8e5a;
  --green-bright: #27b573;
  --green-dim: #16663f;
  --ink: #e8ebee;
  --ink-soft: #aab3ba;
  --line: #3a4048;
  --radius: 6px;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--charcoal);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--charcoal-deep);
  border-bottom: 2px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.logo-accent { color: var(--green-bright); }

.top-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 22px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.top-nav a:hover { color: var(--green-bright); }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--charcoal-deep) 0%, var(--charcoal) 70%);
  padding-top: 64px;
}

.kicker {
  color: var(--green-bright);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  line-height: 1.18;
  font-weight: 800;
  max-width: 20ch;
}

.hero-lead {
  margin: 20px 0 28px;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.cta-center { justify-content: center; margin-top: 36px; }

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid var(--green);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: var(--green-bright); border-color: var(--green-bright); }

.btn-ghost {
  background: transparent;
  color: var(--green-bright);
}

.btn-ghost:hover { background: rgba(39, 181, 115, 0.12); }

.hero-risk {
  margin: 18px 0 46px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Stat strips ---------- */

.stat-strip {
  background: var(--charcoal-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.stat-strip-inline {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--green-bright);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- Sections ---------- */

.section { padding: 60px 0; }

.section-alt {
  background: var(--charcoal-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
}

h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--green);
  margin-top: 10px;
}

.section p { margin-bottom: 16px; max-width: 74ch; }

.answer-first {
  font-size: 1.08rem;
  color: var(--ink);
  border-left: 4px solid var(--green);
  background: rgba(30, 142, 90, 0.08);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.section a { color: var(--green-bright); }

/* ---------- Licence cards ---------- */

.licence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.licence-card {
  background: var(--charcoal-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.licence-card strong {
  display: block;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.licence-card span {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.45;
  display: block;
}

.licence-local {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.licence-local strong { color: var(--green-bright); }

/* ---------- Check list ---------- */

.check-list { list-style: none; margin-top: 20px; }

.check-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px solid var(--line);
  max-width: 74ch;
}

.check-list li:last-child { border-bottom: none; }

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 4px;
  color: var(--green-bright);
  font-weight: 800;
}

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; margin: 26px 0 10px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 640px;
}

thead th {
  background: var(--green-dim);
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 2px solid var(--green-bright);
}

tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

tbody td strong { color: var(--ink); }

tbody tr:nth-child(even) { background: var(--charcoal-panel); }

tbody tr:hover { background: rgba(30, 142, 90, 0.1); }

.table-note {
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- FAQ ---------- */

details {
  background: var(--charcoal-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

details[open] { border-color: var(--green); }

summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green-bright);
  font-size: 1.3rem;
  font-weight: 800;
}

details[open] summary::after { content: "\2212"; }

details p {
  padding: 0 20px 18px;
  color: var(--ink-soft);
  max-width: none;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal-deep);
  border-top: 2px solid var(--green);
  padding: 40px 0;
}

.risk-warning {
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 86ch;
  margin-bottom: 16px;
}

.risk-warning strong { color: var(--ink); }

.footer-meta {
  font-size: 0.78rem;
  color: #7a838b;
  max-width: 86ch;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .licence-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .top-nav a { margin-left: 12px; font-size: 0.78rem; }
  .header-inner { flex-direction: column; gap: 8px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .licence-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
}

/* FxPro partner disclosure bar + about block (brand guidelines) */
.partner-bar { background: #1a1e22; color: #9fd8bc; font-size: .82rem; padding: .45rem 1rem; text-align: center; }
.partner-bar a { color: inherit; text-decoration: underline; font-weight: 600; }
.about-fxpro { padding: 1.5rem 1rem; max-width: 900px; margin: 0 auto; }
.about-fxpro h2 { font-size: 1.05rem; margin-bottom: .5rem; }
.about-fxpro p { font-size: .88rem; opacity: .85; line-height: 1.6; }
