/* ==========================================================================
   Bold Accrudency — design system
   Modern fintech minimalist · LIGHT theme
   Warm ivory background, deep ink-navy text, refined gold accent,
   Space Grotesk headings + Inter body, hairline dividers, flat surfaces.
   ========================================================================== */

:root {
  /* palette */
  --bg: #faf9f6;              /* warm ivory */
  --surface: #ffffff;         /* cards, nav */
  --surface-2: #f3f0e8;       /* warm tint / bands */
  --border: #e5e0d3;          /* hairline */
  --border-soft: #ede9df;
  --text: #1d2a44;            /* deep ink navy */
  --text-muted: #5c6472;
  --text-soft: #8a8f9a;

  --accent: #b8860b;          /* refined brand gold (main.js reads this for .calc-canvas) */
  --accent-hover: #966c06;
  --accent-tint: rgba(184, 134, 11, 0.09);
  --accent-tint-strong: rgba(184, 134, 11, 0.18);
  --gold: #d4a017;            /* bright gold, decorative only */
  --navy: #16233d;            /* footer / dark panels */
  --navy-2: #0e1830;

  --logo-bg: transparent;
  --logo-accent: #b8860b;
  --flag-blue: #174e9a;
  --flag-red: #d7263d;
  --danger: #b3261e;
  --ok: #1e7d42;

  /* shape + depth: flat, sharp small radii */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(29, 42, 68, 0.05), 0 2px 6px rgba(29, 42, 68, 0.04);
  --shadow-md: 0 2px 6px rgba(29, 42, 68, 0.06), 0 10px 24px rgba(29, 42, 68, 0.07);
  --shadow-lg: 0 4px 12px rgba(29, 42, 68, 0.07), 0 24px 56px rgba(29, 42, 68, 0.12);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---- base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe, video, canvas { max-width: 100%; }
iframe { border: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.3rem); font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin-bottom: 0.4em; }
strong { color: var(--text); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }

#registration-form input[type="submit"] {
  padding: 0 10px !important;
  background: var(--accent) !important;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--text); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.container-narrow { width: 100%; max-width: 880px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.site-main { min-height: 60vh; }

/* ---- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; line-height: 1; white-space: nowrap;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  padding: 14px 26px; cursor: pointer; text-decoration: none;
  transition: background 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms var(--ease);
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn--secondary:hover { background: var(--surface); border-color: var(--text); color: var(--text); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--sm { padding: 10px 18px; font-size: 0.92rem; }
.btn--block { width: 100%; }

/* ---- top utility bar ---------------------------------------------------- */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.topbar__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 36px; padding-block: 5px;
}
.topbar__note { margin: 0; display: inline-flex; align-items: center; gap: 7px; }
.topbar__note .icon { width: 14px; height: 14px; color: var(--gold); }
.topbar__note a { color: #fff; }
.topbar__note a:hover { color: var(--gold); }
@media (max-width: 767px) {
  .topbar__note--right { display: none; }
}

/* ---- header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 249, 246, 0.97);
  /* no backdrop-filter: it turns the header into a containing block for the
     fixed mobile drawer (clips it to 64px and spills layout past the viewport) */
  border-bottom: 1px solid var(--border);
  transition: box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.site-header.is-scrolled { background: #ffffff; box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  min-height: 72px;
}

/* logo lockup (logo_lockup() in icons.php) */
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo__mark { width: 40px; height: 40px; display: block; }
.logo__word {
  font-family: var(--font-heading);
  font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); line-height: 1.15; max-width: 190px;
}
.logo__word em { font-style: normal; color: var(--accent); }

/* nav: underline links with pill hover */
.header__nav { margin-inline: auto; }
.nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; margin: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 0.95rem; font-weight: 500;
  color: var(--text); background: none; border: 0;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  position: relative; text-decoration: none;
  transition: background 150ms var(--ease), color 150ms var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 180ms var(--ease);
  border-radius: 2px;
}
.nav__link:hover { background: var(--accent-tint); color: var(--text); }
.nav__link:hover::after,
.nav__trigger[aria-expanded="true"]::after { transform: scaleX(1); }

.icon--caret { width: 13px; height: 13px; transition: transform 160ms var(--ease); }
.nav__trigger[aria-expanded="true"] .icon--caret { transform: rotate(180deg); }

/* dropdown panel */
.nav__menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 70;
  min-width: 230px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 150ms var(--ease), transform 150ms var(--ease), visibility 0s linear 150ms;
}
.nav__item.is-open > .nav__menu,
.nav__item:focus-within > .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.nav__menu li { margin: 0; }
.nav__menu-link {
  display: block; padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 0.92rem; font-weight: 500; color: var(--text);
}
.nav__menu-link:hover { background: var(--accent-tint); color: var(--text); text-decoration: none; }

.header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-switch__item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.lang-switch__item img { border-radius: 2px; display: block; }
.lang-switch__item:hover { color: var(--text); text-decoration: none; border-color: var(--text-soft); }
.lang-switch__item.is-current { background: var(--text); border-color: var(--text); color: #fff; }

/* burger */
.nav-burger {
  display: none; position: relative;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text);
  align-items: center; justify-content: center;
}
.nav-burger .icon { width: 22px; height: 22px; position: absolute; transition: opacity 150ms var(--ease), transform 150ms var(--ease); }
.nav-burger .icon--burger-close { opacity: 0; transform: rotate(45deg); }
body.nav-open .nav-burger .icon--burger-open { opacity: 0; transform: rotate(-45deg); }
body.nav-open .nav-burger .icon--burger-close { opacity: 1; transform: rotate(0); }

/* ---- hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 96px);
}
.hero__bg {
  position: absolute; inset: -20% 0 auto 0; height: 140%;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(212, 160, 23, 0.14), transparent 65%),
    radial-gradient(700px 420px at -12% 108%, rgba(29, 42, 68, 0.07), transparent 60%),
    linear-gradient(180deg, #fffdf8 0%, var(--bg) 55%);
  pointer-events: none; z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

.hero__motif {
  position: absolute; right: -40px; top: 10%;
  width: clamp(300px, 36vw, 480px); height: auto;
  color: var(--accent); opacity: 0.28;
  pointer-events: none; z-index: 0;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero__eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

.hero h1 { margin-bottom: 0.45em; }
.hero__brand { color: var(--accent); white-space: nowrap; }
.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--text-muted); max-width: 56ch; margin-bottom: 1.4em; }

.hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.hero__text { max-width: 640px; }

/* home/auth split: title, form, then the rest */
.hero__inner--split { grid-template-areas: "title form" "rest form"; row-gap: 26px; align-items: start; }
.hero__inner--split .hero__title-group { grid-area: title; margin: 0; }
.hero__inner--split .hero__rest-group { grid-area: rest; margin: 0; }
.hero__inner--split .hero__form-col { grid-area: form; }

/* home editorial hero: full-width copy, form floats below */
.hero__inner--editorial { display: block; }
.hero__inner--editorial .hero__copy { max-width: 780px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 26px 48px;
  padding-top: 26px; margin-top: 34px;
  border-top: 1px solid var(--border);
}
.hero__benefits { display: flex; flex-direction: row; gap: 16px 28px; }
.hero__benefit { display: flex; gap: 13px; align-items: flex-start; flex: 1 1 0; }
.hero__benefit-icon { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.hero__benefit strong { display: block; font-size: 0.95rem; line-height: 1.35; }
.hero__benefit small { display: block; color: var(--text-muted); font-size: 0.85rem; line-height: 1.45; }
.hero__places { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 0.9rem; color: var(--text-muted); }
.hero__country { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.hero__flag { border-radius: 3px; display: block; }

/* floating form card that overlaps the hero bottom edge (home) */
.hero-form-float {
  position: relative; z-index: 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 3vw, 34px);
  max-width: 520px;
  margin-top: -58px;
}

/* form column inside hero (inner pages / auth) */
.hero__form-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(20px, 2.6vw, 30px);
}

/* generic hero page variant */
.hero--page { padding: clamp(44px, 6vw, 72px) 0; }

/* home hero: extra bottom padding so the floating form card can overlap */
.hero--home { padding-bottom: clamp(88px, 11vw, 128px); }

/* ---- form block (formFactory wrapper) ------------------------------------ */
.form-heading {
  font-family: var(--font-heading);
  font-size: 1.15rem; margin: 0 0 14px; color: var(--text);
  padding-bottom: 12px; border-bottom: 1px solid var(--border-soft);
}
.form-block { margin: 0; }
.form-block__intro { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 14px; }
.form-block h2, .form-block .form-heading { margin-top: 0; }
.form-block form { margin: 0; }
.form-block label { display: block; font-size: 0.84rem; font-weight: 600; margin: 12px 0 5px; color: var(--text); }
.form-block input:not([type="checkbox"]):not([type="radio"]),
.form-block select, .form-block textarea {
  width: 100%;
  font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.form-block input:focus, .form-block select:focus, .form-block textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint-strong);
  background: var(--surface);
}
.form-block button[type="submit"], .form-block .bf-submit {
  width: 100%;
  font: inherit; font-weight: 600; font-size: 1rem;
  background: var(--accent); color: #fff;
  border: 0; border-radius: var(--radius-sm);
  padding: 14px 22px; margin-top: 16px; cursor: pointer;
  transition: background 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.form-block button[type="submit"]:hover, .form-block .bf-submit:hover {
  background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.form-legal { font-size: 0.78rem; color: var(--text-soft); margin: 12px 0 0; line-height: 1.55; }
.form-legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-note { display: flex; gap: 9px; align-items: flex-start; font-size: 0.88rem; color: var(--text-muted); margin-top: 12px; }
.form-note .icon { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* intl-tel-input inside beacon form: keep white on light */
.iti__country-list { background: #fff; }

/* ---- sections ------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--band { background: var(--surface-2); border-block: 1px solid var(--border-soft); }
.section--tint { background: var(--surface); border-block: 1px solid var(--border-soft); }

.section__head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--text-muted); font-size: 1.02rem; }
.section__head h2 { position: relative; padding-bottom: 16px; }
.section__head h2::before {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 44px; height: 3px; border-radius: 2px; background: var(--accent);
}
.section__head--center h2::before { left: 50%; transform: translateX(-50%); }

/* ---- cards ------------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
  gap: 18px;
}
.card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  color: var(--text);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}
.card p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }
.card h3 { margin: 0; }
a.card { text-decoration: none; }
a.card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--accent-tint-strong); color: var(--text); text-decoration: none;
}
.card--flat:hover { transform: none; box-shadow: none; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 4px;
}
.icon-badge .icon { width: 22px; height: 22px; }
.icon-badge--sm { width: 38px; height: 38px; }
.icon-badge--sm .icon { width: 19px; height: 19px; }

/* ---- steps: horizontal numbered timeline ------------------------------------- */
.investment-steps .investment-visual {
  width: 100%; height: auto; object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: clamp(30px, 4vw, 48px);
  box-shadow: var(--shadow-md);
}
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--border);
}
.step { position: relative; padding: 30px 26px 8px 0; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--border); }
.step::before {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
}
.step:first-child::before { left: 0; }
.step__num {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 12px;
}
.step__num::before { counter-increment: step; content: "0" counter(step); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }

/* ---- data tables ---------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
table.data {
  width: 100%; border-collapse: collapse;
  font-size: 0.94rem; min-width: 520px;
}
table.data th, table.data td {
  text-align: left; padding: 13px 18px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
table.data thead th {
  font-family: var(--font-heading);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:nth-child(even) { background: rgba(243, 240, 232, 0.4); }
table.data td.tick { color: var(--ok); font-weight: 700; }
table.data td.cross { color: var(--text-soft); font-weight: 700; }
table.data td:not(:first-child), table.data th:not(:first-child) { text-align: center; }

/* ---- fact list ----------------------------------------------------------------- */
.fact-list { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.fact-list li { display: flex; gap: 13px; align-items: flex-start; margin: 0; }
.fact-list .icon { color: var(--accent); width: 21px; height: 21px; margin-top: 2px; }
.fact-list li > span { display: flex; flex-direction: column; font-size: 0.94rem; }
.fact-list strong { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 2px; }

/* ---- FAQ ------------------------------------------------------------------------ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.faq-item[open] { border-color: var(--accent-tint-strong); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
  padding: 17px 20px;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item[open] summary { color: var(--accent); }
.faq-item summary .icon--caret { width: 16px; height: 16px; color: var(--accent); transition: transform 160ms var(--ease); }
.faq-item[open] summary .icon--caret { transform: rotate(180deg); }
.faq-item__a { padding: 0 20px 18px; color: var(--text-muted); font-size: 0.95rem; }
.faq-item__a p:last-child { margin-bottom: 0; }

/* ---- reviews ---------------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}
.review {
  display: flex; flex-direction: column; gap: 14px;
  margin: 0; padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.review__head { display: flex; align-items: center; gap: 13px; }
.review__photo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.review__name { font-family: var(--font-heading); font-weight: 700; font-size: 0.98rem; }
.review__meta { font-size: 0.83rem; color: var(--text-muted); }
.review__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 0; padding: 12px 0;
  border-block: 1px solid var(--border-soft);
}
.review__stats dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-soft); margin-bottom: 2px; }
.review__stats dd { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; }
.review__stats dd:first-letter { color: inherit; }
.review__text { margin: 0; font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }
.reviews-note { margin-top: 26px; font-size: 0.8rem; color: var(--text-soft); text-align: center; }

/* negative results shown neutral, positive in green */
.review__stats dd { color: var(--text); }

/* ---- exchange logos strip ------------------------------------------------------------ */
.exchange-strip { padding-block: clamp(36px, 5vw, 56px); }
.exchange-strip .section__head { margin-bottom: 26px; }
.exchange-strip h2 { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.exchange-strip h2::before { display: none; padding: 0; }
.xlogos {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px; align-items: center;
}
.xlogo {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 8px 6px;
  color: var(--text);
  font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.01em;
  opacity: 0.62;
  transition: opacity 160ms var(--ease);
}
.xlogo:hover { opacity: 1; }
.xlogo img { object-fit: contain; filter: grayscale(1) brightness(0) opacity(0.75); transition: filter 160ms var(--ease); }
.xlogo:hover img { filter: none; opacity: 1; }
.xlogo__mark { width: 34px; height: 34px; }
.xlogo--binance { font-size: 1.15rem; }
.xlogo--okx img { width: 96px; height: 36px; }

/* ---- company grid (facts + cards) ------------------------------------------------------ */
.company-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(28px, 5vw, 64px); align-items: start;
}
.company-grid .section__head { margin-bottom: 18px; }
.security-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-bottom: clamp(28px, 4vw, 44px); }
.security-visual, .security-page-visual {
  width: 100%; height: auto;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-md); object-fit: cover;
}

/* ---- breadcrumbs -------------------------------------------------------------------------- */
.breadcrumbs { padding-block: 18px 6px; font-size: 0.83rem; }
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.breadcrumbs__item { margin: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); }
.breadcrumbs__item a { color: var(--text-muted); }
.breadcrumbs__item a:hover { color: var(--accent); }
.breadcrumbs__item[aria-current] { color: var(--text); font-weight: 500; }
.breadcrumbs__sep { color: var(--border); }

/* ---- prose / doc pages ------------------------------------------------------------------------ */
.page-body { padding-top: 8px; }
.doc-hero { padding-top: 6px; }
.doc-hero h1 { margin-bottom: 0.5em; }
.prose { font-size: 1rem; color: var(--text); }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 1.4em 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 13px; text-align: left; }
.prose th { background: var(--surface-2); font-family: var(--font-heading); }

.map-embed {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  margin: 1.2em 0;
}
.map-embed iframe { display: block; width: 100%; min-height: 340px; }

/* ---- footer -------------------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0;
  border-top: 3px solid var(--accent);
}
.site-footer .logo__word { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(48px, 6vw, 72px) 0 40px;
}
.footer__tagline { margin: 16px 0 8px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }
.footer__contact { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; margin: 0; }
.footer__contact .icon { width: 16px; height: 16px; color: var(--gold); }
.footer__contact a { color: #fff; }
.footer__contact a:hover { color: var(--gold); }
.footer__head {
  font-family: var(--font-heading);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 16px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer__col li { margin: 0; }
.footer__col a { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; }
.footer__col a:hover { color: #fff; text-decoration: none; }
.footer__disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 26px 0 8px;
  font-size: 0.8rem; line-height: 1.6; color: rgba(255, 255, 255, 0.5);
}
.footer__disclaimer p { margin: 0; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0 26px;
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.45);
}
.footer__bottom p { margin: 0; }

/* ---- calculator overrides (light skin over module defaults) ---------------------------------------- */
.calc-wrap { position: relative; }
.calc-canvas {
  display: block; width: 100%; height: 110px;
  margin-top: 34px;
}
/* higher specificity than the module's own .calc-widget block (loaded later) */
.section .calc-widget,
.calc-widget {
  --calc-accent: #b8860b;
  --calc-cta-bg: #b8860b;
  --calc-track: #e5e0d3;
  --calc-surface: var(--surface-2);
  --calc-title-color: #1d2a44;
  --calc-subtitle-color: #5c6472;
  --calc-label-color: #1d2a44;
  --calc-value-color: #1d2a44;
  --calc-minmax-color: #8a8f9a;
  --calc-result-bg: #ffffff;
  --calc-result-title-color: #5c6472;
  --calc-result-value-color: #1d2a44;
  --calc-result-label-color: #5c6472;
  --calc-cta-text-color: #ffffff;
  --calc-skeleton-bg: #e7e3d8;
  --calc-skeleton-shimmer: rgba(255, 255, 255, 0.65);
}
.calc-widget__title { font-family: var(--font-heading); letter-spacing: -0.02em; }
.calc-widget__total { font-family: var(--font-heading); }
.calc-widget__value { font-family: var(--font-heading); }
.calc-widget__result {
  border: 1px solid var(--border) !important;
  backdrop-filter: none;
  box-shadow: var(--shadow-md) !important;
}

/* ---- misc / legacy aliases -------------------------------------------------------------------------- */
.hero--crypto { /* alias of hero--home */ }
.hero-form-wrap { position: relative; z-index: 2; }
.hero-node, .hero-link, .hero-trend, .hero-candle { color: inherit; }
.nav__item--group { /* behaviour hooks styled via .nav__item above */ }
.xlogo--coinbase, .xlogo--kraken, .xlogo--kucoin { /* inherit .xlogo sizing */ }

/* secondary hero elements (legacy/localised templates) */
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  transition: border-color 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease);
}
.hero__badge:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__details { display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; color: var(--text-muted); }
.hero__price { font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; color: var(--text); }

/* ---- scroll reveal ------------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- responsive ------------------------------------------------------------------------------------ */
@media (max-width: 1279px) {
  .hero__inner { gap: 28px; }
}

@media (max-width: 1023px) {
  .header__inner { min-height: 64px; }
  .nav-burger { display: inline-flex; }

  .header__nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(360px, 88vw);
    margin: 0;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 260ms var(--ease);
    overflow-y: auto;
    padding: 24px 22px calc(40px + env(safe-area-inset-bottom));
    z-index: 90;
    visibility: hidden;
  }
  .header__nav.is-open { transform: translateX(0); visibility: visible; }
  body.nav-open { overflow: hidden; }

  .nav { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { width: 100%; justify-content: space-between; border-radius: var(--radius-sm); padding: 13px 14px; font-size: 1.02rem; }
  .nav__link::after { display: none; }
  .nav__link:hover { background: var(--accent-tint); }
  .nav__menu {
    position: static; min-width: 0; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0;
    background: transparent; padding: 0 0 0 14px;
    display: none;
    border-left: 2px solid var(--border);
    margin-left: 14px;
  }
  .nav__item.is-open > .nav__menu { display: block; }
  .nav__menu-link { padding: 10px 12px; }

  .lang-switch { display: none; }

  .hero__inner, .hero__inner--split { grid-template-columns: 1fr; grid-template-areas: "title" "form" "rest"; }
  .hero__form-col { max-width: 560px; }

  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--border); }
  .step, .step + .step { padding: 0 0 30px 26px; border-left: 0; }
  .step + .step { padding-top: 0; }
  .step::before { top: 4px; left: -5px; }
  .step + .step { border-top: 0; }

  .company-grid, .security-intro { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .xlogos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .xlogo { font-size: 1.05rem; min-height: 48px; }
  .xlogo img { width: 28px; height: 28px; }
  .hero__benefits { flex-direction: column; }
  .xlogo__mark { width: 28px; height: 28px; }
  .xlogo--okx img { width: 78px; height: 30px; }
  .reviews-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 44px; }
  .hero__motif { opacity: 0.16; }
  .hero__form-col { padding: 22px 18px; }
  .footer__bottom { flex-direction: column; }
  .review__stats dd { font-size: 0.88rem; }
}

@media (max-width: 429px) {
  .header__cta { display: none; }
  .steps .step, .steps .step + .step { padding-left: 20px; }
  .section__head h2 { font-size: 1.4rem; }
  .hero-form-float { padding: 18px; }
  table.data { min-width: 440px; }
}

/* wide screens: let the composition breathe */
@media (min-width: 1440px) {
  :root { --container: 1280px; }
}
@media (min-width: 1920px) {
  :root { --container: 1360px; }
}

/* linked hero benefit tiles (licenses / security) */
a.hero__benefit { text-decoration: none; color: inherit; }
a.hero__benefit:hover strong, a.hero__benefit:focus-visible strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
