/* =========================================================================
   MTN Capital — stylesheet
   Geo-adapted profile: South African identity (flag green + gold, Sandton
   skyline motif), warm paper light theme, fintech chart/node motifs.
   System font stack (no external font CDN). Tokens first, components after.
   ========================================================================= */

/* ---- tokens ------------------------------------------------------------- */
:root {
  --bg: #faf9f4;
  --surface: #ffffff;
  --surface-2: #f1efe6;
  --band: #eef3ec;
  --border: #e2ddcf;
  --border-strong: #cfc9b6;
  --text: #1c2620;
  --text-muted: #57635c;
  --accent: #046a38;
  --accent-hover: #03552d;
  --accent-tint: #e3efe6;
  --accent-ink: #0b3d24;
  --gold: #c89212;
  --gold-bright: #e3a92c;
  --gold-tint: #f8eed4;
  --danger: #a13a2b;
  --ok: #046a38;

  --font-sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(28, 38, 32, .07), 0 2px 6px rgba(28, 38, 32, .05);
  --shadow-md: 0 1px 2px rgba(28, 38, 32, .06), 0 8px 24px rgba(28, 38, 32, .09);
  --shadow-lg: 0 2px 6px rgba(28, 38, 32, .08), 0 18px 44px rgba(28, 38, 32, .13);

  --header-h: 68px;
  --container: 1200px;
}

/* ---- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe, video, canvas { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.012em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: clamp(1.12rem, 1.6vw, 1.32rem); }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid rgba(4, 106, 56, .55); outline-offset: 2px; border-radius: 4px; }
.icon { width: 22px; height: 22px; flex: none; }
.icon--inline { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.section { padding: clamp(44px, 6vw, 78px) 0; }
.section--tight { padding: clamp(30px, 4vw, 48px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(22px, 3vw, 36px); }
.section-head p { color: var(--text-muted); font-size: 1.04rem; margin-bottom: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; line-height: 1.2;
  border-radius: 12px; padding: 13px 24px; min-height: 48px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fdfcf8; box-shadow: var(--shadow-sm); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--accent-hover); color: #fdfcf8; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }
.btn--secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--secondary:hover, .btn--secondary:focus-visible { background: var(--accent-tint); color: var(--accent-hover); transform: translateY(-1px); }
.btn--sm { padding: 9px 16px; min-height: 40px; font-size: .93rem; }
.btn--gold { background: var(--gold-bright); color: #2c2205; }
.btn--gold:hover { background: #d99e1f; color: #2c2205; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ---- header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(250, 249, 244, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { background: #fbfaf5; box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand__mark { width: 40px; height: 40px; display: block; }
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__word { font-weight: 750; font-size: 1.18rem; letter-spacing: -.02em; }
.brand--footer .brand__word { color: #f4f2e9; }

.main-nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; font: inherit; font-weight: 560; font-size: .95rem;
  color: var(--text); padding: 9px 12px; border-radius: 10px; cursor: pointer;
}
.nav-link:hover { background: var(--accent-tint); color: var(--accent-ink); }
.nav-link .icon--caret { width: 15px; height: 15px; transition: transform .16s ease; }
.nav-link[aria-expanded="true"] .icon--caret { transform: rotate(180deg); }

.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 130;
  min-width: 265px; max-width: 340px; max-height: 70vh; overflow-y: auto;
  background: #fbfaf5; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-menu::before {
  content: ""; position: absolute; top: -5px; left: 22px; width: 10px; height: 10px;
  background: #fbfaf5; border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.nav-item.is-open .nav-menu, .nav-menu:focus-within { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu__item {
  display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none;
  color: var(--text); font-size: .93rem; font-weight: 520;
}
.nav-menu__item:hover, .nav-menu__item:focus-visible { background: var(--accent-tint); color: var(--accent-ink); }
.nav-item--edge .nav-menu { left: auto; right: 0; }
.nav-item--edge .nav-menu::before { left: auto; right: 22px; }

.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang-switch__link {
  padding: 4px 12px; border-radius: 999px; text-decoration: none; font-size: .85rem; font-weight: 600; color: var(--text-muted);
}
.lang-switch__link:hover { color: var(--accent-ink); background: var(--accent-tint); }
.lang-switch__link.is-current { background: var(--accent); color: #fdfcf8; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 10px;
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--text);
}
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ---- hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 460px at 82% -10%, rgba(4, 106, 56, .10), transparent 60%),
    radial-gradient(700px 380px at 8% 0%, rgba(227, 169, 44, .14), transparent 55%),
    linear-gradient(180deg, #fbfaf3 0%, #f4f4ea 68%, #eef2e8 100%);
  border-bottom: 1px solid var(--border);
}
.hero__skyline { position: absolute; inset: auto 0 -1px 0; width: 100%; height: clamp(140px, 24vw, 260px); z-index: 0; pointer-events: none; }
.hero__skyline svg { width: 100%; height: 100%; display: block; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(40px, 6vw, 84px) 0 clamp(96px, 10vw, 150px); }
.hero__copy h1 { max-width: 15ch; }
.hero__lead { font-size: 1.07rem; color: var(--text-muted); max-width: 54ch; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px; font-size: .88rem; font-weight: 560; color: var(--text);
  box-shadow: var(--shadow-sm); text-decoration: none;
}
.hero__badge:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.hero__badge .icon { width: 18px; height: 18px; color: var(--accent); }
.hero__flags { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .92rem; color: var(--text-muted); }
.hero__flag { display: inline-flex; align-items: center; gap: 8px; font-weight: 560; color: var(--text); }
.hero__flag svg { width: 28px; height: 19px; border-radius: 3px; box-shadow: var(--shadow-sm); }
.hero__form-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: .9rem; color: var(--text-muted); }
.hero__form-note .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.hero__chartline { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

/* ---- ticker row ------------------------------------------------------------- */
.ticker-band { background: var(--surface); border-bottom: 1px solid var(--border); }
.tv-ticker-host { overflow: hidden; max-width: 100vw; }
.tv-ticker-wrapper { overflow: hidden; max-width: 100%; }

/* ---- icon badge / cards -------------------------------------------------------- */
.icon-badge {
  width: 50px; height: 50px; border-radius: 13px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent);
}
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--gold { background: var(--gold-tint); color: var(--gold); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px;
  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(--border-strong); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--text-muted); margin-bottom: 0; font-size: .97rem; }
.card__head { display: flex; align-items: center; gap: 13px; margin-bottom: 10px; }
.card__head h3 { margin: 0; }

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

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

/* ---- comparison table ---------------------------------------------------------- */
.compare { overflow: hidden; }
.compare th, .compare td { text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare__ours { background: var(--accent-tint); }
.tick-yes { color: var(--ok); }
.tick-no { color: var(--danger); }
.tick-yes .icon, .tick-no .icon { width: 20px; height: 20px; }

/* ---- tables ---------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.table th { background: var(--surface-2); text-align: left; padding: 13px 16px; font-weight: 650; border-bottom: 1px solid var(--border); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(even) { background: rgba(241, 239, 230, .45); }

/* ---- exchanges --------------------------------------------------------------------- */
.exchanges { background: var(--surface); border-block: 1px solid var(--border); }
.exchanges__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.exchange-chip {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
  padding: 9px 20px 9px 12px; box-shadow: var(--shadow-sm); color: var(--text-muted);
  transition: transform .16s ease, box-shadow .16s ease, color .16s ease;
}
.exchange-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--text); }
.exchange-chip svg { width: 26px; height: 26px; display: block; color: var(--accent); }
.exchange-chip span { font-weight: 620; font-size: .98rem; letter-spacing: .01em; }

/* ---- reviews ----------------------------------------------------------------------- */
.reviews { background:
  radial-gradient(900px 320px at 90% 0%, rgba(227, 169, 44, .08), transparent 60%),
  var(--band);
}
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.review { display: flex; flex-direction: column; gap: 10px; }
.review__head { display: flex; align-items: center; gap: 13px; }
.review__avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  border: 1px solid var(--border-strong); background: var(--accent-tint); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review__avatar .icon { width: 26px; height: 26px; }
.review__name { font-weight: 680; }
.review__role { font-size: .85rem; color: var(--text-muted); }
.review__text { font-size: .95rem; color: var(--text); margin: 0; flex: 1; }
.review__stats { display: flex; flex-wrap: wrap; gap: 8px 18px; border-top: 1px dashed var(--border-strong); padding-top: 10px; font-size: .87rem; }
.review__stats div { color: var(--text-muted); }
.review__stats b { color: var(--text); font-family: var(--font-mono); font-weight: 650; font-size: .9rem; }
.reviews__note { font-size: .86rem; color: var(--text-muted); max-width: 72ch; margin: 18px auto 0; text-align: center; }

/* ---- company block ------------------------------------------------------------------- */
.company { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); }
.company__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); }
.company__facts { margin: 16px 0 4px; padding: 0; list-style: none; font-size: .96rem; }
.company__facts li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border-strong); }
.company__facts li:last-child { border-bottom: 0; }
.company__facts .icon { width: 19px; height: 19px; color: var(--accent); margin-top: 3px; }
.company__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; align-content: start; }
.company-card { display: flex; align-items: center; gap: 13px; padding: 16px; text-decoration: none; color: var(--text); }
.company-card:hover h3 { color: var(--accent-hover); }
.company-card h3 { font-size: .99rem; margin: 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(18px, 2.6vw, 28px);
}
.form-block__intro { font-size: .95rem; color: var(--text-muted); margin-bottom: 10px; }
.form-legal { font-size: .8rem; color: var(--text-muted); margin: 10px 0 0; }
.form-legal a { color: var(--accent); }

/* ---- calculator ------------------------------------------------------------------------- */
.calc-section { background:
  radial-gradient(800px 360px at 12% 6%, rgba(4, 106, 56, .07), transparent 55%),
  var(--surface);
  border-block: 1px solid var(--border);
}
.calc-canvas-wrap { margin-top: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.calc-canvas-wrap canvas { display: block; width: 100%; height: 150px; }

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

/* ---- inner pages ---------------------------------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 380px at 88% -12%, rgba(4, 106, 56, .09), transparent 60%),
    radial-gradient(620px 320px at 4% 0%, rgba(227, 169, 44, .12), transparent 55%),
    linear-gradient(180deg, #fbfaf3, #f2f3e9);
}
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 54px); align-items: center; padding: clamp(34px, 5vw, 64px) 0; }
.page-hero__motif { position: absolute; inset: auto 0 -1px 0; height: clamp(80px, 12vw, 140px); z-index: 0; pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero p { color: var(--text-muted); font-size: 1.03rem; }

.doc-body { padding: clamp(34px, 5vw, 60px) 0; }
.doc-body h2 { margin-top: 1.7em; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { margin-top: 1.3em; font-size: 1.08rem; }
.doc-body p, .doc-body li { color: var(--text); max-width: 78ch; }
.doc-body .lead { font-size: 1.05rem; color: var(--text-muted); }
.doc-body--band { background: var(--surface); border-bottom: 1px solid var(--border); }

.note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--gold-tint); border: 1px solid #e8d5a4; border-radius: var(--radius);
  padding: 15px 18px; font-size: .95rem; margin: 18px 0;
}
.note .icon { color: var(--gold); margin-top: 2px; }
.note p { margin: 0; }
.note--risk { background: #f7e8e2; border-color: #e5c1b3; }
.note--risk .icon { color: var(--danger); }

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

.breadcrumbs { background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 12px 0; font-size: .87rem; color: var(--text-muted); }
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs__sep { width: 13px; height: 13px; transform: rotate(-90deg); color: var(--border-strong); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* ---- footer --------------------------------------------------------------------------------- */
.site-footer { background: #14231b; color: #d8ddd2; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(140px, .8fr)); gap: 26px; padding: clamp(36px, 5vw, 58px) 0 30px; }
.footer-col__title { color: #f2f0e6; font-size: .95rem; margin-bottom: 12px; }
.footer-col__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-col__list a { color: #c3ccc0; text-decoration: none; font-size: .9rem; }
.footer-col__list a:hover { color: #fff; text-decoration: underline; }
.footer-note { font-size: .9rem; color: #b9c3b5; margin-bottom: 8px; }
.footer-note a { color: #e9ece2; }
.footer-note--muted { color: #97a498; }
.footer-disclaimer { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0 6px; }
.footer-disclaimer__title { color: #f2f0e6; font-size: .95rem; }
.footer-disclaimer p { font-size: .82rem; color: #a7b3a6; line-height: 1.6; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0 26px; }
.footer-bottom__copy { font-size: .84rem; color: #97a498; margin: 0; }
.lang-switch--footer { border-color: rgba(255, 255, 255, .2); background: transparent; }
.lang-switch--footer .lang-switch__link { color: #c3ccc0; }
.lang-switch--footer .lang-switch__link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lang-switch--footer .lang-switch__link.is-current { background: var(--accent); color: #fdfcf8; }

/* ---- special offer --------------------------------------------------------------------------- */
.urgency-strip { background: var(--accent-ink); color: #eef2e9; font-size: .87rem; }
.urgency-strip .container { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; padding-block: 9px; }
.urgency-strip span { display: inline-flex; align-items: center; gap: 7px; }
.urgency-strip .icon { width: 15px; height: 15px; color: var(--gold-bright); }

.so-hero { background:
  radial-gradient(900px 400px at 85% -8%, rgba(227, 169, 44, .18), transparent 58%),
  radial-gradient(700px 340px at 6% 4%, rgba(4, 106, 56, .12), transparent 55%),
  linear-gradient(180deg, #fbf7ea, #f1efdf); }
.countdown { display: inline-flex; gap: 8px; margin: 14px 0; }
.countdown__box { background: var(--accent-ink); color: #f6f4ea; border-radius: 10px; padding: 8px 12px; min-width: 62px; text-align: center; }
.countdown__box b { display: block; font-family: var(--font-mono); font-size: 1.5rem; font-weight: 650; line-height: 1.1; }
.countdown__box span { font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: #c8cfc3; }
.so-cta-band { background: linear-gradient(120deg, var(--accent-ink), var(--accent)); color: #f3f5ee; }
.so-cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: clamp(30px, 4vw, 44px); }
.so-cta-band p { font-size: 1.15rem; font-weight: 620; margin: 0; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(20, 35, 27, .55);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal-card {
  position: relative; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); max-width: 430px; width: 100%; padding: 28px 26px 26px; text-align: center;
  animation: modal-in .18s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; font-size: 1.15rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; color: var(--text);
}
.modal-close:hover { background: var(--accent-tint); }
.modal-card .countdown { justify-content: center; }

/* ---- scroll reveal ---------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- responsive -------------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .hero__grid, .page-hero__grid, .company__grid { grid-template-columns: 1fr; }
  .hero__grid { padding-bottom: clamp(70px, 9vw, 110px); }
  .grid-cards--stagger .card:nth-child(even) { transform: none; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: static; margin: 0; }
  .nav-list {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 110;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fbfaf5; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    padding: 10px 16px 20px; display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-item { border-bottom: 1px solid var(--border); }
  .nav-link { width: 100%; justify-content: space-between; padding: 13px 4px; font-size: 1rem; }
  .nav-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    background: transparent; padding: 0 0 10px 12px; max-height: none; max-width: none; overflow: visible; display: none;
  }
  .nav-item.is-open .nav-menu { display: block; }
  .nav-menu::before { display: none; }
  .header-actions { gap: 10px; }
  .header-cta { display: none; }
  .hero__canvas { display: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .brand__word { font-size: 1rem; }
  .brand__mark { width: 34px; height: 34px; }
  .lang-switch__link { padding: 3px 7px; font-size: .74rem; }
  .nav-toggle { width: 40px; height: 40px; }
  .countdown__box { min-width: 56px; padding: 7px 9px; }
  .countdown__box b { font-size: 1.28rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

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

.hero--market {
  background: linear-gradient(90deg, #fbfaf3 0%, #fbfaf3f5 40%, #fbfaf373 100%), url("../images/hero-market.webp") right center / cover no-repeat #fbfaf3;
}
.hero--market .hero__skyline { opacity: .18; }

@media (max-width: 700px) {
  .hero--market {
    background-image: linear-gradient(180deg, #fbfaf3f5 0%, #fbfaf3d9 52%, #fbfaf3c7 100%), url("../images/hero-market.webp");
  }
}

.review-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Homepage registration, market sources and calculator */
.home-lead.hero--market {
  padding: clamp(38px, 7vw, 92px) 0;
  background: linear-gradient(90deg, #faf9f4 7%, #faf9f4ed 47%, #faf9f4a0 100%), url('../images/hero-redesign.webp') right center / cover no-repeat var(--bg);
}
.home-lead .hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
  padding-block: 0;
}
.home-lead h1 {
  max-width: none;
  font-size: clamp(2.45rem, 5vw, 4.45rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.home-lead h1 span { display: block; color: var(--accent-ink, var(--accent-deep)); }
.home-lead .hero__copy { min-width: 0; }
.home-lead .hero__form {
  min-width: 0;
  padding: clamp(14px, 2.4vw, 24px);
  border: 1px solid var(--border-strong); border-bottom: 4px solid var(--gold); background: #fff; border-radius: 18px;
}
.home-lead .hero__form > .form-block {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.home-lead .home-lead__form-title,
.home-lead .form-block__heading {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 2.15vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}
.home-lead .home-lead__risk { margin: 12px 0 0; font-size: .85rem; color: var(--text-muted); }
.home-lead .home-lead__jump { display: none; }
.home-lead #registration-form { scroll-margin-top: 92px; }

.home-market { padding: clamp(24px, 4vw, 52px) 0; border-block: 1px solid var(--border); background: var(--surface); }
.home-market > .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(15px, 3vw, 36px);
}
.home-market .section-head, .home-market .section__head, .home-market .exchange-caption, .home-market .exchanges__lead { margin: 0; }
.home-market h2 { font-size: clamp(1.35rem, 2.5vw, 1.95rem); }
.home-market .exchanges__row { justify-content: center; gap: 12px; }
.home-market .exchange-chip { background: var(--accent-tint); border-radius: 7px; }

.home-estimate { background: var(--bg); }
.home-estimate .calc-widget {
  padding: clamp(14px, 3vw, 32px);
  background: #fff; border: 1px solid var(--border-strong); border-radius: 22px;
}
.home-estimate .calc-widget__title, .home-estimate .calc-widget__subtitle { display: none; }
.home-estimate .calc-widget__wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(12px, 2.3vw, 26px);
  margin: 0 0 18px;
}
.home-estimate .calc-widget__controls { gap: 10px; }
.home-estimate .calc-widget__control, .home-estimate .calc-widget__result {
  min-width: 0;
  margin: 0;
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.home-estimate .calc-widget__control { background: var(--surface); }
.home-estimate .calc-widget__control .calc-widget__label,
.home-estimate .calc-widget__control .calc-widget__value,
.home-estimate .calc-widget__control .calc-widget__minmax { color: var(--text); }
.home-estimate .calc-widget__value { margin: 6px 0 10px; text-align: left; }
.home-estimate .calc-widget__result { background: var(--accent-ink); color: #fff; border-bottom: 3px solid var(--gold); text-align: left; }
.home-estimate .calc-widget__result :is(.calc-widget__result-title, .calc-widget__total, .calc-widget__stat-label, .calc-widget__stat-value) { color: inherit; }
.home-estimate .calc-widget__total { line-height: 1.12; overflow-wrap: anywhere; }
.home-estimate .calc-widget__stats { gap: 12px; flex-wrap: wrap; }
.home-estimate .calc-widget__stat-value { overflow-wrap: anywhere; }
.home-estimate .calc-widget__range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.home-estimate .calc-widget__cta { min-height: 44px; justify-content: center; width: min(100%, 340px); font-weight: 700; border-radius: 8px; background: var(--accent-ink); color: #fff; }

.account-action {
  gap: 10px;
  min-height: 42px;
  padding: 5px 7px 5px 13px;
  border-radius: 8px; background: var(--accent-ink); color: #fff;
}
.account-action__arrow {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  background: var(--gold-bright); color: var(--accent-ink); border-radius: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .account-action__arrow svg { transition: transform .18s ease; }
  .account-action:hover .account-action__arrow svg,
  .account-action:focus-visible .account-action__arrow svg { transform: translateX(2px); }
}
@media (prefers-reduced-motion: reduce) {
  .account-action { transition: none; }
  .account-action:hover { transform: none; }
}
@media (max-width: 820px) {
  .home-lead.hero--market { background-position: 70% center; }
  .home-lead .hero__grid, .home-market > .container { grid-template-columns: minmax(0, 1fr); }
  .home-lead h1 { font-size: clamp(2rem, 7vw, 3.5rem); }
  .home-lead .home-lead__jump { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; }
}
@media (max-width: 635px) {
  .home-estimate .calc-widget__wrapper { grid-template-columns: minmax(0, 1fr); }
}

.home-lead h1 span { font-size: .7em; line-height: 1.12; margin-top: .2em; }
.home-lead .hero__form { box-shadow: 0 14px 34px #0b3d2420; }
.home-market > .container > h2 { text-align: center; }
.home-estimate .calc-widget__control { background: var(--band); }
.home-estimate .calc-widget__total { color: #fff1c8; }

/* Distinct homepage composition */
.brand-exchanges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style:none;margin:0;padding:0}
.brand-exchanges li{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:10px;margin:0;padding:14px 8px;border:1px solid var(--border);border-radius:12px;background:var(--surface);font-weight:600;min-width:0}
.brand-exchanges__icon{display:grid;place-items:center;width:52px;height:52px;flex:0 0 52px;background:#18212a;border-radius:10px}
.brand-exchanges img{display:block;width:36px;height:36px;object-fit:contain}
.brand-exchanges img[src*="bybit"]{width:44px}
.home-market>.container{grid-template-columns:1fr}
.home-lead .hero__grid{grid-template-columns:.9fr 1.1fr}.home-lead .hero__form{grid-column:1;grid-row:1}.home-lead .hero__copy{grid-column:2;grid-row:1}.home-estimate .calc-widget__wrapper{gap:0;grid-template-columns:1.25fr 1fr}.home-estimate .calc-widget__controls{padding:20px}.home-estimate .calc-widget__result{border-radius:18px;display:flex;flex-direction:column;justify-content:center}.account-action{border-radius:12px;border-bottom:3px solid var(--gold)}
@media(max-width:820px){
.home-lead .hero__grid{grid-template-columns:1fr;grid-template-areas:none}
.home-lead .hero__copy,.home-lead .hero__form{grid-column:auto;grid-row:auto}
.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;font-size:.85rem}
}
@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__wrapper{gap:14px}
.home-estimate .calc-widget__controls{padding:0}
.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; }
}
