/* =========================================================================
   AfriQuant AI — design system
   Theme: dark green-black "JSE terminal" surface, Krugerrand-gold accent.
   Profile: geo-adapted (Sandton skyline hero, SA-flag colour cues).
   Fonts: Space Grotesk (display) + Inter (text), local variable woff2.
   ========================================================================= */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-var.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0B120F;
  --surface: #111A16;
  --surface-2: #16221D;
  --surface-3: #1B2A23;
  --border: #24332C;
  --text: #ECF2EE;
  --text-muted: #9FB4AA;
  --accent: #E8B54A;
  --accent-hover: #F3C874;
  --accent-tint: rgba(232, 181, 74, .13);
  --accent-line: rgba(232, 181, 74, .35);
  --green: #2F9E68;
  --green-deep: #1F8A5F;
  --green-tint: rgba(47, 158, 104, .14);
  --danger: #E06A55;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(3, 10, 7, .5);
  --shadow-md: 0 2px 6px rgba(3, 10, 7, .42), 0 10px 28px rgba(3, 10, 7, .36);
  --shadow-lg: 0 4px 12px rgba(3, 10, 7, .5), 0 22px 48px rgba(3, 10, 7, .44);
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, Menlo, monospace;
  --header-h: 72px;
}

/* ---------- base ------------------------------------------------------ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe, video, canvas { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .45em; }
strong { color: var(--text); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.section { padding: clamp(48px, 7vw, 88px) 0; position: relative; }
.section--tint { background: var(--surface); }
.section--tint-2 {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(47, 158, 104, .09), transparent 60%),
    radial-gradient(760px 380px at 88% 100%, rgba(232, 181, 74, .07), transparent 60%),
    var(--surface-2);
}
.section--mesh {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M36 0H0v36' fill='none' stroke='%232F9E68' stroke-opacity='.10'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--bg), var(--surface));
}
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--text-muted); font-size: 1.06rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent-line); }
main { min-height: 50vh; }
.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }

/* data-flavoured labels (quant identity, rationed) */
.data-label { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; color: var(--text-muted); }

/* ---------- buttons ---------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn-primary { background: var(--accent); color: #17211B; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); color: #17211B; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent-line); }
.btn-secondary:hover { background: var(--accent-tint); color: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent-line); }

/* ---------- header ----------------------------------------------------- */

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: #17211B; padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: 600; transition: top .18s ease;
}
.skip-link:focus { top: 12px; color: #17211B; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 18, 15, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { background: rgba(11, 18, 15, .97); box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand svg { height: 34px; width: auto; display: block; }
.logo-word { font-family: 'Space Grotesk', var(--font-display); font-weight: 700; fill: var(--text); letter-spacing: -.01em; }

.nav-groups { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; color: var(--text); cursor: pointer;
  font-family: var(--font-body); font-size: .95rem; font-weight: 500;
  padding: 10px 12px; border-radius: var(--radius-sm);
}
.nav-trigger .icon { color: var(--text-muted); transition: transform .16s ease; }
.nav-trigger:hover, .nav-trigger:focus-visible { background: var(--surface-2); }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); color: var(--accent); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 110;
  min-width: 260px; max-width: 340px; margin: 0; padding: 8px; list-style: none;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(4px); visibility: hidden; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.dropdown::before {
  content: ""; position: absolute; top: -5px; left: 22px; width: 10px; height: 10px;
  background: var(--bg); border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.dropdown.align-right { left: auto; right: 0; }
.dropdown.align-right::before { left: auto; right: 22px; }
.nav-group { position: relative; }
.nav-group.is-open > .dropdown { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; }
.dropdown a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text); font-size: .92rem;
}
.dropdown a:hover, .dropdown a:focus-visible { background: var(--accent-tint); color: var(--accent); }
.dropdown a[aria-current="page"] { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.btn-header { min-height: 42px; padding: 9px 20px; font-size: .93rem; }
.btn-account {
  gap: 12px;
  min-height: 44px;
  padding: 5px 6px 5px 15px;
  white-space: nowrap;
  font-weight: 700;
  background: var(--accent);
  border: 1px solid var(--accent-hover);
  border-radius: 10px;
}
.btn-account__arrow {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: var(--accent-hover);
  background: #17211b;
}
.btn-account:hover, .btn-account:focus-visible {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px #e8b54a38;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-account__arrow svg { transition: transform .18s ease; }
  .btn-account:hover .btn-account__arrow svg,
  .btn-account:focus-visible .btn-account__arrow svg { transform: translateX(2px); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-account { transition: none; }
  .btn-account:hover { transform: none; }
}

.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch a {
  padding: 6px 14px; font-size: .84rem; color: var(--text-muted); font-weight: 500;
  transition: background-color .16s ease, color .16s ease;
}
.lang-switch a + a { border-left: 1px solid var(--border); }
.lang-switch a:hover { color: var(--text); background: var(--surface-2); }
.lang-switch a[aria-current="true"] { background: var(--accent-tint); color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 8px; cursor: pointer;
}
.nav-toggle__icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close { display: inline-flex; }

.mobile-menu { border-top: 1px solid var(--border); background: var(--bg); padding: 14px 0 26px; }
.mobile-group__head {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  background: none; border: 0; color: var(--text); font: inherit; font-weight: 600;
  padding: 13px 4px; cursor: pointer; border-bottom: 1px solid var(--border);
}
.mobile-group__head .icon { color: var(--text-muted); transition: transform .16s ease; }
.mobile-group__head[aria-expanded="true"] .icon { transform: rotate(180deg); color: var(--accent); }
.mobile-group__list { list-style: none; margin: 0; padding: 6px 4px; display: none; }
.mobile-group.is-open .mobile-group__list { display: block; }
.mobile-group__list a { display: block; padding: 9px 8px; color: var(--text-muted); border-radius: var(--radius-sm); }
.mobile-group__list a:hover, .mobile-group__list a:focus-visible { color: var(--accent); background: var(--accent-tint); }
.mobile-menu__foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; }

/* ---------- hero (home + special-offer) -------------------------------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 520px at 78% 8%, rgba(232, 181, 74, .10), transparent 62%),
    radial-gradient(880px 480px at 8% 92%, rgba(47, 158, 104, .12), transparent 60%),
    linear-gradient(180deg, #0D1511 0%, var(--bg) 78%);
  padding: clamp(48px, 6.5vw, 92px) 0 0;
}
.hero__skyline {
  position: absolute; inset: auto 0 0 0; height: clamp(180px, 30vw, 380px);
  background: url('../images/hero-skyline.svg') bottom center / cover no-repeat;
  will-change: transform; pointer-events: none;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Cpath d='M46 0H0v46' fill='none' stroke='%23ECF2EE' stroke-opacity='.035'/%3E%3C/svg%3E");
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 72%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding-bottom: clamp(200px, 26vw, 320px); }
.hero__copy h1 { margin-bottom: .45em; }
.hero__copy .hero-lead { color: var(--text-muted); font-size: 1.1rem; max-width: 34em; }
.hero__copy p { max-width: 36em; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 22px 0 6px; align-items: center; }
.hero-badges .badge-icon {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--border); background: rgba(17, 26, 22, .75); border-radius: 999px;
  padding: 7px 14px 7px 10px; font-size: .88rem; color: var(--text);
  transition: border-color .16s ease, transform .16s ease;
}
.badge-icon:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.badge-icon .icon { color: var(--accent); }

.hero-office { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; color: var(--text-muted); font-size: .93rem; }
.hero-office .flag {
  width: 34px; height: 23px; border-radius: 3px; overflow: hidden; display: inline-flex; flex-direction: column;
  box-shadow: var(--shadow-sm); flex: 0 0 auto;
}
.hero-office .flag i { display: block; height: 5px; }
.hero-office .flag i:nth-child(4) { height: 3px; }

.hero__form-card { position: relative; z-index: 2; }

/* ---------- page hero (inner pages) ------------------------------------ */

.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 380px at 85% 0%, rgba(232, 181, 74, .08), transparent 62%),
    radial-gradient(640px 340px at 5% 100%, rgba(47, 158, 104, .10), transparent 60%),
    linear-gradient(180deg, #0D1511, var(--bg));
  border-bottom: 1px solid var(--border);
  padding: clamp(40px, 5.5vw, 72px) 0;
}
.page-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 130px; pointer-events: none;
  background: url('../images/hero-skyline.svg') bottom center / 1440px 260px no-repeat;
  opacity: .5; mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
  -webkit-mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
}
.page-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(26px, 4vw, 52px); align-items: start; z-index: 1; }
.page-hero--plain .page-hero__inner { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }
.page-hero h1 { max-width: 15em; }

/* ---------- flags ------------------------------------------------------ */

.flag-za { display: inline-flex; flex-direction: column; width: 34px; height: 23px; border-radius: 3px; overflow: hidden; box-shadow: var(--shadow-sm); }

/* ---------- cards / icon badges ---------------------------------------- */

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.card h3 { margin-bottom: .4em; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 50px; height: 50px; border-radius: 13px; background: var(--accent-tint); color: var(--accent);
}
.icon-badge--green { background: var(--green-tint); color: var(--green); }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.card-head h3 { margin: 0; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.grid-cards--stagger { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-cards--stagger .card:nth-child(even) { transform: translateY(14px); }
.grid-cards--stagger .card:nth-child(even):hover { transform: translateY(12px); }

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

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #17211B; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--text-muted); margin: 0; font-size: .95rem; }

/* ---------- tables ------------------------------------------------------ */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
thead th {
  text-align: left; background: var(--surface-2); color: var(--text);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .01em;
  padding: 14px 18px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td { padding: 13px 18px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(22, 34, 29, .35); }
td:first-child { color: var(--text); }
.tick { color: var(--green); font-weight: 700; }
.cross { color: var(--danger); font-weight: 700; }

.compare-col { width: 26%; }
.compare-col--us { background: rgba(232, 181, 74, .05); }

/* ---------- exchange chips ---------------------------------------------- */

.exchanges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.exchange-chip {
  display: inline-flex; align-items: center; gap: 11px;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: 10px 22px 10px 12px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .02em; color: var(--text-muted);
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.exchange-chip:hover { border-color: var(--accent-line); color: var(--text); transform: translateY(-2px); }
.exchange-chip svg { display: block; }

/* ---------- reviews ----------------------------------------------------- */

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.review { display: flex; flex-direction: column; gap: 12px; }
.review__head { display: flex; align-items: center; gap: 14px; }
.review__avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid var(--accent-line); background: var(--surface-2); overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.review__avatar svg, .review__avatar img { width: 100%; height: 100%; display: block; }
.review__name { font-weight: 600; margin: 0; }
.review__role { color: var(--text-muted); font-size: .86rem; margin: 0; }
.review__body { margin: 0; color: var(--text-muted); font-size: .96rem; flex: 1; }
.review__stats { display: flex; flex-wrap: wrap; gap: 8px 18px; border-top: 1px dashed var(--border); padding-top: 12px; }
.review__stat { font-size: .85rem; color: var(--text-muted); }
.review__stat b { display: block; color: var(--text); font-family: var(--font-mono); font-size: .95rem; font-weight: 600; }
.review__stat--profit b { color: var(--green); }
.reviews-note { color: var(--text-muted); font-size: .86rem; margin-top: 18px; }

/* ---------- company block ---------------------------------------------- */

.company-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 52px); }
.company-facts { list-style: none; margin: 18px 0 0; padding: 0; }
.company-facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.company-facts .icon { color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.company-facts b { color: var(--text); font-weight: 600; }
.company-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; align-self: start; }
.company-cards .card { padding: 18px; }
.company-cards a.card { display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.company-cards a.card:hover { color: var(--text); }
.company-cards .card span { color: var(--text-muted); font-size: .92rem; }

/* ---------- FAQ --------------------------------------------------------- */

.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer;
  padding: 16px 20px; font-family: var(--font-display); font-weight: 600; list-style: none;
  border-radius: var(--radius-md); transition: background-color .16s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--accent-tint); }
.faq-item summary .icon { color: var(--accent); flex: 0 0 auto; transition: transform .16s ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item__body { padding: 0 20px 18px; color: var(--text-muted); }
.faq-item__body p:last-child { margin-bottom: 0; }

/* ---------- form block -------------------------------------------------- */

.form-block {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: clamp(20px, 2.6vw, 30px);
}
.form-block__intro { color: var(--text-muted); font-size: .95rem; margin-bottom: 14px; }
.form-block__heading { font-size: 1.2rem; margin-bottom: 10px; }
.form-legal { color: var(--text-muted); font-size: .82rem; margin: 12px 0 0; }
.form-legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-legal a:hover { color: var(--accent-hover); }
/* formFactory wrapper polish: keep intl dial code + placeholders readable (AA).
 * The widget's inputs are light/white surfaces — use dark ink on them. */
.form-block .iti__selected-dial-code,
.calc-modal .iti__selected-dial-code { color: rgb(24, 33, 47) !important; }
.form-block input::placeholder,
.calc-modal input::placeholder { color: #5C6B65 !important; opacity: 1 !important; }
.form-block input,
.calc-modal input { color: #1B2621; }
/* calculator modal form submit: same dark-ink-on-gold treatment (AA) */
.calc-modal form input[type="submit"] { color: #17211B !important; }
.form-note { color: var(--text-muted); font-size: .88rem; margin: 12px 0 0; display: flex; align-items: center; gap: 8px; }
.form-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }

/* ---------- calculator section ----------------------------------------- */

.calc-section { position: relative; }
.calc-section .calc-widget { margin-top: 8px; }

/* decorative chart canvas frame */
.chart-frame {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow-sm); padding: 10px; max-width: 100%;
}
.chart-frame canvas { display: block; width: 100%; height: auto; border-radius: 10px; }

/* ---------- breadcrumbs ------------------------------------------------- */

.breadcrumbs { border-bottom: 1px solid var(--border); background: var(--surface); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 12px 0; font-size: .86rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--text); }

/* ---------- footer ------------------------------------------------------ */

.site-footer { border-top: 1px solid var(--border); background: #0A100D; padding: clamp(40px, 5vw, 64px) 0 28px; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, .95fr)); gap: 28px; }
.footer-brand__tag { color: var(--text-muted); font-size: .9rem; margin: 14px 0 4px; }
.footer-brand__mail { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: .92rem; }
.footer-brand__mail .icon { color: var(--accent); }
.footer-col h3 { font-size: .95rem; margin-bottom: 12px; color: var(--text); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { color: var(--text-muted); font-size: .9rem; display: inline-block; padding: 3px 0; }
.footer-col a:hover { color: var(--accent); }
.lang-switch--footer { margin-top: 16px; }
.footer-disclaimer {
  margin-top: 36px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); padding: 18px 22px;
}
.footer-disclaimer h3 { font-size: .95rem; }
.footer-disclaimer p { color: var(--text-muted); font-size: .84rem; margin: 0; }
.footer-copy { color: var(--text-muted); font-size: .84rem; margin: 26px 0 0; }

/* ---------- special offer ---------------------------------------------- */

.urgency-strip { background: linear-gradient(90deg, #201A0B, #241d0c, #201A0B); border-bottom: 1px solid var(--accent-line); }
.urgency-strip .container { display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center; padding-top: 10px; padding-bottom: 10px; }
.urgency-strip span { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .05em; color: var(--accent); }
.countdown { display: inline-flex; gap: 6px; align-items: center; }
.countdown__seg {
  min-width: 44px; padding: 5px 6px; text-align: center; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--accent-line);
  font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600; color: var(--text);
}
.countdown__sep { color: var(--accent); font-weight: 700; }
.so-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.so-cta-band {
  border-top: 1px solid var(--accent-line); border-bottom: 1px solid var(--accent-line);
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(232, 181, 74, .14), transparent 70%),
    linear-gradient(180deg, #141a10, #10150d);
}
.so-cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 34px; padding-bottom: 34px; }
.so-cta-band p { margin: 0; font-size: 1.08rem; max-width: 34em; }

.exit-modal { position: fixed; inset: 0; z-index: 300; display: none; }
.exit-modal.is-open { display: block; }
.exit-modal__overlay { position: absolute; inset: 0; background: rgba(5, 9, 7, .78); }
.exit-modal__card {
  position: relative; z-index: 1; max-width: 460px; margin: 12vh auto 0; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--accent-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 28px; text-align: center;
}
.exit-modal__close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.exit-modal__close:hover { color: var(--text); border-color: var(--accent-line); }
.exit-modal__art { margin: 6px auto 14px; display: block; }

/* ---------- reveal ------------------------------------------------------ */

.reveal { opacity: 0; transform: translateY(8px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
.grid-cards--stagger .card:nth-child(even).reveal { transform: translateY(22px); }
.grid-cards--stagger .card:nth-child(even).reveal.is-visible { transform: translateY(14px); }

/* ---------- docs layout ------------------------------------------------- */

.doc { max-width: 860px; }
.doc h2 { margin-top: 1.9em; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--text-muted); }
.doc .card h3, .doc .card p { color: var(--text); }
.doc-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 22px; margin-bottom: 28px; }
.doc-toc h2 { font-size: 1rem; margin: 0 0 8px; }
.doc-toc ul { margin: 0; padding-left: 1.1em; font-size: .92rem; }
.doc-toc a { color: var(--text-muted); }
.doc-toc a:hover { color: var(--accent); }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* ---------- map --------------------------------------------------------- */

.map-embed {
  max-width: 860px; margin-top: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface);
}
.map-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 320px; border: 0; }

/* ---------- vacancies --------------------------------------------------- */

.vacancy { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; justify-content: space-between; }
.vacancy__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.vacancy__tag {
  font-size: .78rem; font-family: var(--font-mono); letter-spacing: .04em;
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; color: var(--text-muted);
}
.vacancy p { margin-bottom: .6em; }

/* ---------- article cards ----------------------------------------------- */

.article-card .data-label { display: block; margin-bottom: 8px; }

/* ---------- responsive -------------------------------------------------- */

@media (max-width: 1080px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero__inner, .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__inner { padding-bottom: clamp(160px, 34vw, 260px); }
  .company-block { grid-template-columns: minmax(0, 1fr); }
  .btn-header { display: none; }
}
@media (max-width: 620px) {
  .grid-cards--stagger .card:nth-child(even) { transform: none; }
  .grid-cards--stagger .card:nth-child(even).reveal { transform: translateY(8px); }
  .grid-cards--stagger .card:nth-child(even).reveal.is-visible { transform: none; }
  .exchange-chip { padding: 8px 16px 8px 10px; }
  .exit-modal__card { margin: 8vh 14px 0; }
  .countdown__seg { min-width: 38px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .brand svg { height: 27px; }
  .lang-switch a { padding: 5px 10px; font-size: .78rem; }
  .lang-switch a + a { border-left-width: 1px; }
}

/* ---------- reduced motion ---------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__skyline { transform: none !important; }
}

.tv-ticker-wrapper {
  padding-top: 0px !important;
  height: 58px !important;
}

.iti__selected-country,
.iti__selected-dial-code {
  color: rgb(24, 33, 47) !important;
}

/* ---------- homepage hero and market coverage -------------------------- */
.hero--market {
  padding: clamp(36px, 5.5vw, 80px) 0 clamp(28px, 4vw, 54px);
  background:
    linear-gradient(90deg, #0b120f99 4%, #0b120f66 45%, #0b120f12 100%),
    linear-gradient(0deg, #0b120f 0%, #0b120f00 60%),
    url('../images/hero-sandton.webp') right 58% / cover no-repeat #0b120f;
}

.hero--market .hero__inner {
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(28px, 5vw, 72px);
  row-gap: 16px;
  padding-bottom: 0;
}

.hero--market .hero-office {
  margin: 0 0 clamp(16px, 2.6vw, 28px);
  color: #c7d9ce;
  font-size: .86rem;
  gap: 9px;
}

.hero--market .flag-za svg {
  width: 24px;
  height: auto;
  display: block;
  border-radius: 2px;
}

.hero--market h1 {
  font-size: clamp(2.65rem, 5.25vw, 4.65rem);
  line-height: 1.02;
  letter-spacing: -.052em;
  margin-bottom: .35em;
  text-wrap: balance;
}

.hero--market h1 span {
  display: block;
  color: var(--accent);
}

.hero--market .hero-lead {
  color: #c7d9ce;
  margin-bottom: 0;
}

.hero--market .hero-badges {
  margin: 22px 0 0;
}

.hero--market .hero__form-card {
  min-width: 0;
  padding: clamp(14px, 2.4vw, 24px);
  background: linear-gradient(155deg, #182720, #111a16 75%);
  border: 1px solid var(--accent-line);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero--market .form-block {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.hero--market .form-block__heading {
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  margin-bottom: 16px;
  text-wrap: balance;
}

.hero--market .form-note {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.hero__form-link {
  display: none;
}

@media (max-width: 820px) {
  .hero__form-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

.hero__risk {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-muted);
  font-size: .8rem;
}

.home-exchanges {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding: clamp(26px, 4vw, 48px) 0;
}

.home-exchanges__inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
}

.home-exchanges h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: .35em;
}

.home-exchanges__copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: .93rem;
}

.home-exchanges__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-exchanges__list li {
  display: grid;
  place-items: center;
  min-height: 46px;
  margin: 0;
  padding: 8px 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font: 700 clamp(.86rem, 1.5vw, 1.05rem) var(--font-display);
}

@media (max-width: 820px) {
  .hero--market {
    background-position: right top;
    background-image:
      linear-gradient(180deg, #0b120fd9 0%, #0b120fe6 57%, #0b120f 96%),
      url('../images/hero-sandton.webp');
    background-size: auto, auto max(380px, 60vw);
  }

  .hero--market .hero__inner,
  .home-exchanges__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero--market .hero__inner {
    row-gap: 20px;
  }

  .hero--market h1 {
    font-size: clamp(2rem, 7.1vw, 3.6rem);
  }

  .hero--market .hero-lead {
    font-size: 1rem;
  }

  .hero--market .hero-badges {
    margin-top: 14px;
  }
}

.iti__country-name {
  color: #000;
}

/* ---------- homepage calculator ---------------------------------------- */
#calculator-section {
  scroll-margin-top: calc(var(--header-h) + 12px);
  background: radial-gradient(ellipse at 86% 0%, var(--green-tint), transparent 60%), var(--bg);
}

#calculator-section .section-head {
  margin-bottom: clamp(20px, 3vw, 32px);
}

#calculator-section .section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

#calculator-section .calc-widget {
  padding: clamp(14px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

#calculator-section .calc-widget__title,
#calculator-section .calc-widget__subtitle {
  display: none;
}

#calculator-section .calc-widget__wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(12px, 2.4vw, 28px);
  margin: 0 0 20px;
}

#calculator-section .calc-widget__controls {
  justify-content: center;
  gap: 12px;
}

#calculator-section .calc-widget__control,
#calculator-section .calc-widget__result {
  min-width: 0;
  padding: clamp(14px, 2.3vw, 24px);
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

#calculator-section .calc-widget__control {
  background: var(--surface-2);
}

#calculator-section .calc-widget__label {
  color: var(--text-muted);
  font-size: .95rem;
}

#calculator-section .calc-widget__value {
  margin: 4px 0 8px;
  text-align: left;
  font: 700 clamp(1.4rem, 3vw, 1.9rem) var(--font-display);
}

#calculator-section .calc-widget__range:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

#calculator-section .calc-widget__result {
  justify-content: center;
  background: radial-gradient(ellipse at 100% 0%, var(--green-tint), transparent 65%), var(--surface-2);
  border-color: var(--accent-line);
  text-align: left;
  gap: 14px;
}

#calculator-section .calc-widget__result-head {
  text-align: left;
  margin: 0;
  gap: 4px;
}

#calculator-section .calc-widget__result-title,
#calculator-section .calc-widget__stat-label {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
}

#calculator-section .calc-widget__total {
  color: var(--accent);
  font: 700 clamp(1.8rem, 5vw, 3.6rem) var(--font-display);
  overflow-wrap: anywhere;
}

#calculator-section .calc-widget__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

#calculator-section .calc-widget__stat-value {
  font: 700 clamp(1rem, 2.4vw, 1.6rem) var(--font-display);
  overflow-wrap: anywhere;
}

#calculator-section .calc-widget__disclaimer {
  margin-bottom: 14px;
  font-size: .85rem;
}

#calculator-section .calc-widget__cta {
  justify-content: center;
  width: min(100%, 360px);
  min-height: 46px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #17211b;
  font: 700 .95rem var(--font-body);
}

#calculator-section .calc-widget__cta:hover {
  background: var(--accent-hover);
  opacity: 1;
}

@media (max-width: 680px) {
  #calculator-section .calc-widget__wrapper {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Distinct homepage composition */
.brand-exchanges {display:grid;gap:12px;list-style:none;padding:0;margin:0;min-width:0;}
.brand-exchanges li {display:flex;align-items:center;justify-content:center;gap:12px;padding:16px 12px;margin:0;border:1px solid var(--border);font-weight:600;min-width:0;}
.brand-exchanges__icon {display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:10px;background:#18212a;}
.brand-exchanges img {display:block;width:36px;height:36px;object-fit:contain;}
.brand-exchanges img[src*="bybit"] {width:44px;}
.home-estimate .calc-widget__result-head {margin-bottom:18px;}
.hero--market .hero__inner {grid-template-columns: 1.25fr 1fr;} .hero--market h1 {font-size:clamp(2.5rem,5vw,4.4rem);}
 #calculator-section .calc-widget__wrapper{grid-template-columns:1.15fr 1fr;}
 .brand-exchanges{grid-template-columns:repeat(6,minmax(0,1fr));}
 .brand-exchanges li{flex-direction:column; border-bottom:2px solid var(--accent);}
@media(max-width:820px){
 .home-lead .hero__grid,.home-lead .hero__inner,.home-lead .hero-inner{grid-template-columns:minmax(0,1fr);}
 .home-lead .hero__copy,.home-lead .hero__aside,.home-lead .hero__form{grid-column:auto;grid-row:auto;}
 .home-lead .hero__grid{grid-template-areas:none;}
 .home-lead .hero__title,.home-lead .hero__formcol,.home-lead .hero__rest{grid-area:auto;}
 .brand-exchanges{grid-template-columns:repeat(3,minmax(0,1fr));}
 .brand-exchanges li{flex-direction:column;padding:12px 5px;font-size:.85rem;gap:6px;}
}
@media(max-width:635px){
 .home-estimate .calc-widget__wrapper,.home-estimate .calc-widget__controls,.home-estimate .calc-widget__result{display:flex;flex-direction:column;}
 .home-estimate .calc-widget__controls,.home-estimate .calc-widget__result{grid-column:auto;grid-row:auto;}
 .home-estimate .calc-widget__controls{padding:0;}
 .home-estimate .calc-widget__wrapper{gap:14px;}
 .brand-exchanges{grid-template-columns:repeat(2,minmax(0,1fr));}
}

/* Mobile lead order: heading, existing form, supporting content. */
@media (max-width: 820px) {
.hero.hero--market .hero-order-layout { display:flex; flex-direction:column; align-items:stretch; gap:20px; }
.hero.hero--market .hero-order-copy { display:contents; }
.hero.hero--market .hero-order-copy > h1 { order:-2; width:100%; max-width:none; margin:0; }
.hero.hero--market .hero-order-form { order:-1; width:100%; min-width:0; max-width:none; margin:0; align-self:stretch; }
.hero.hero--market .hero-order-copy > :not(h1) { order:0; margin-top:0; }
.hero.hero--market :is(.home-lead__jump,.hero__form-link) { display:none; }
}
