/* =========================================================================
   Clear Meritoldship — northern-night fintech identity (geo-adapted, CA)
   Deep slate-blue surfaces, harbour-gold accent, restrained maple keyline.
   ========================================================================= */

/* --- Fonts (local, OFL) -------------------------------------------------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --bg:            #0E141C;
  --surface:       #141D28;
  --surface-2:     #1A2634;
  --border:        #263545;
  --border-strong: #33475C;
  --text:          #E7EDF4;
  --text-muted:    #9FB0C0;
  --accent:        #E8A33D;
  --accent-hover:  #F2B45A;
  --accent-tint:   rgba(232, 163, 61, .13);
  --accent-ink:    #1C1204;
  --maple:         #C8283C;

  --font-body:    'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(6, 12, 20, .5), 0 2px 8px rgba(6, 12, 20, .35);
  --shadow-md: 0 2px 4px rgba(6, 12, 20, .45), 0 10px 28px rgba(6, 12, 20, .5);
  --shadow-lg: 0 4px 8px rgba(6, 12, 20, .5), 0 18px 48px rgba(6, 12, 20, .6);

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

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: .3em 0; }

strong { color: var(--text); font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

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

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

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

main { display: block; padding-bottom: 0; }

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tight { padding: clamp(36px, 5vw, 56px) 0; }

.section-head { max-width: 720px; margin: 0 0 clamp(24px, 4vw, 44px); }
.section-head p { color: var(--text-muted); font-size: 1.06em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* --- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, transform .16s ease,
              box-shadow .16s ease, border-color .16s ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn--sm { padding: 11px 18px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* --- Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 20, 28, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled {
  background: rgba(14, 20, 28, .96);
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  flex-shrink: 0;
}
.brand__mark { display: inline-flex; width: 38px; height: 38px; }
.brand__plate { fill: var(--accent); }
.brand__line  { stroke: #17202B; stroke-width: 2.4; }
.brand__node  { fill: #17202B; }
.brand__keel  { stroke: var(--maple); stroke-width: 2.2; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand:hover .brand__word { color: var(--accent); }

.main-nav { margin-left: auto; }
.main-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.main-nav__trigger:hover { color: var(--accent); background: var(--accent-tint); }
.main-nav__caret { width: 15px; height: 15px; transition: transform .18s ease; }
.main-nav__item { position: relative; }
.main-nav__item.is-open .main-nav__caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  max-width: 360px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 110;
}
.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; }
.main-nav__item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown__list { list-style: none; margin: 0; padding: 0; max-height: 62vh; overflow-y: auto; }
.dropdown__link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .93rem;
  transition: background .14s ease, color .14s ease;
}
.dropdown__link:hover, .dropdown__link:focus-visible {
  background: var(--accent-tint);
  color: var(--accent);
}
.dropdown__link.is-current { color: var(--accent); }

.header-cta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.main-nav + .header-cta { margin-left: 0; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 14px 0 22px;
}
.mobile-nav__group { border-bottom: 1px solid var(--border); }
.mobile-nav__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 0;
  cursor: pointer;
}
.mobile-nav__caret { width: 18px; height: 18px; transition: transform .18s ease; }
.mobile-nav__trigger[aria-expanded="true"] .mobile-nav__caret { transform: rotate(180deg); }
.mobile-nav__sub { list-style: none; margin: 0; padding: 0 0 12px; }
.mobile-nav__sub a {
  display: block;
  padding: 9px 12px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}
.mobile-nav__sub a:hover, .mobile-nav__sub a[aria-current="page"] { color: var(--accent); background: var(--accent-tint); }
.mobile-nav__cta { margin-top: 18px; }

/* --- Ticker strip area ------------------------------------------------------- */
.ticker-note {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 6px 16px;
}

/* --- Hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 84px) 0 clamp(52px, 6vw, 92px);
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(232, 163, 61, .10), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(38, 66, 96, .55), transparent 65%),
    linear-gradient(165deg, #111a26 0%, var(--bg) 55%);
}
.hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__art svg { position: absolute; right: -40px; bottom: -20px; width: min(880px, 92vw); height: auto; opacity: .95; }
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 18px;
  background: rgba(20, 29, 40, .65);
}
.hero__kicker svg { width: 15px; height: 15px; color: var(--accent); }
.hero h1 { margin-bottom: .35em; max-width: 15ch; }
.hero__lead {
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 54ch;
  margin-bottom: 26px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.badge-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.badge-link svg { width: 20px; height: 20px; color: var(--accent); }
.badge-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.badge-link small { display: block; font-weight: 400; color: var(--text-muted); font-size: .8rem; }

.hero__flags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
}
.hero__flags-label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}
.flag-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--text);
}
.flag-chip svg { width: 26px; height: 19px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(231, 237, 244, .16); display: block; }

.hero__manager-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: .93rem;
}
.hero__manager-note svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.hero__form-col .form-block { margin: 0; }

/* --- formFactory wrapper -------------------------------------------------------- */
/* The injected formFactory fields get light control surfaces so their text
   stays readable on the dark card (contrast override, wrapper-level only). */
.form-block input[type="text"],
.form-block input[type="email"],
.form-block input[type="tel"],
.calc-modal input[type="text"],
.calc-modal input[type="email"],
.calc-modal input[type="tel"] {
  background: #F4F7FA;
  color: #17202B;
  border: 1px solid var(--border-strong);
}
.form-block input::placeholder,
.calc-modal input::placeholder {
  color: #5B6B7B;
}
.form-block .iti__selected-dial-code,
.calc-modal .iti__selected-dial-code {
  color: #17202B;
}
.form-block form input[type="submit"],
.form-block input[type="submit"] {
  background-color: var(--accent) !important;
  color: var(--accent-ink) !important;
  font-family: var(--font-display);
  border-radius: var(--radius-sm);
}
.form-block input[type="submit"]:hover {
  background-color: var(--accent-hover) !important;
}
.form-block {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: clamp(20px, 3vw, 30px);
  max-width: 560px;
  scroll-margin-top: calc(var(--header-h) + 84px);
}
.form-block__title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 14px;
}
.form-block__intro { color: var(--text-muted); font-size: .95rem; margin-bottom: 12px; }
.form-legal { font-size: .8rem; color: var(--text-muted); margin: 12px 0 0; }
.form-legal a { text-decoration: underline; }

/* --- Cards ----------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(18px, 2.4vw, 26px);
  height: 100%;
  transition: transform .18s cubic-bezier(.2, .6, .2, 1), box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text-muted); font-size: .97rem; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.icon-badge svg { width: 25px; height: 25px; }
.icon-badge--sm { width: 40px; height: 40px; border-radius: 11px; }
.icon-badge--sm svg { width: 20px; height: 20px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card-link { display: block; color: var(--text); }
.card-link:hover { color: var(--text); border-color: var(--accent); }
.card-link .card__go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-weight: 600;
  font-size: .93rem;
  margin-top: 12px;
}
.card-link .card__go svg { width: 16px; height: 16px; transition: transform .16s ease; }
.card-link:hover .card__go svg { transform: translateX(3px); }

/* --- Steps ------------------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 2vw, 22px);
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.step:hover { transform: translateY(-3px); 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: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; }
.step p { color: var(--text-muted); 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);
  -webkit-overflow-scrolling: touch;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: .95rem;
}
.table-wrap th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table-wrap td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:nth-child(even) { background: rgba(26, 38, 52, .45); }

.tick { color: #6FBF8E; display: inline-flex; vertical-align: middle; }
.tick svg { width: 19px; height: 19px; }
.cross { color: var(--maple); display: inline-flex; vertical-align: middle; }
.cross svg { width: 19px; height: 19px; }

.compare-col { font-weight: 600; }

/* --- Reviews ------------------------------------------------------------------------- */
.review-note {
  font-size: .88rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 22px;
  max-width: 760px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-card__head {
  display: flex;
  align-items: center;
  gap: 13px;
}
.review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.review-avatar svg { width: 26px; height: 26px; }
.review-card__name { font-weight: 600; }
.review-card__role { color: var(--text-muted); font-size: .85rem; }
.review-card__body { color: var(--text-muted); font-size: .96rem; flex: 1; }
.review-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.review-card__stat strong { display: block; font-family: var(--font-display); font-size: .98rem; }
.review-card__stat span { font-size: .74rem; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }

/* --- Exchange logos -------------------------------------------------------------------- */
.exchanges { background: var(--surface); border-block: 1px solid var(--border); }
.exchanges__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 178px;
  height: 62px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease;
}
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.chip img { height: 28px; width: auto; max-width: 82%; }
.exchanges__note { text-align: center; color: var(--text-muted); font-size: .88rem; margin-top: 18px; }

/* --- Calculator section ------------------------------------------------------------------- */
.calc-section {
  background:
    radial-gradient(900px 480px at 12% 0%, rgba(232, 163, 61, .07), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-block: 1px solid var(--border);
}
.calc-disclaimer { color: var(--text-muted); font-size: .86rem; margin-top: 16px; max-width: 720px; }

/* --- Decorative section bands ---------------------------------------------------------------- */
.band-tint {
  background:
    radial-gradient(760px 420px at 88% 6%, rgba(232, 163, 61, .08), transparent 58%),
    var(--surface);
  border-block: 1px solid var(--border);
}
.band-mesh {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M0 14h28M14 0v28' stroke='%23263545' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--bg), #101925);
  border-block: 1px solid var(--border);
}
.band-quiet { background: linear-gradient(180deg, var(--bg), #101925); }

/* --- FAQ ---------------------------------------------------------------------------------------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  text-align: left;
  padding: 17px 20px;
  cursor: pointer;
}
.faq-item__q:hover { color: var(--accent); }
.faq-item__q svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; transition: transform .18s ease; }
.faq-item.is-open .faq-item__q svg { transform: rotate(180deg); }
.faq-item__a {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-muted);
}
.faq-item.is-open .faq-item__a { display: block; }

/* --- Breadcrumbs ---------------------------------------------------------------------------------- */
.breadcrumbs { background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 12px 0;
  font-size: .84rem;
}
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--border-strong); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--accent); }

/* --- Generic page body ---------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 5vw, 72px) 0;
  background:
    radial-gradient(820px 400px at 85% -20%, rgba(232, 163, 61, .09), transparent 60%),
    linear-gradient(170deg, #121b27 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--border);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}
.page-hero h1 { margin-bottom: .3em; }
.page-hero__lead { color: var(--text-muted); font-size: 1.08rem; max-width: 58ch; }
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
}
.pill svg { width: 16px; height: 16px; color: var(--accent); }

.prose { max-width: 76ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--text-muted); }
.prose a { text-decoration: underline; }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  color: var(--text-muted);
  margin: 1.4em 0;
}
.callout strong { color: var(--text); }
.callout--warning { border-left-color: var(--maple); }

.data-list { list-style: none; padding: 0; margin: 0; }
.data-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.data-list li:last-child { border-bottom: 0; }
.data-list svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

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

/* --- Vacancies ---------------------------------------------------------------------------------------- */
.vacancy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  transition: border-color .16s ease, transform .16s ease;
}
.vacancy:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.vacancy__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* --- CTA band ------------------------------------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(232, 163, 61, .14), transparent 60%),
    linear-gradient(180deg, #16202c, #101925);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4vw, 48px);
  text-align: center;
}
.cta-band p { color: var(--text-muted); max-width: 60ch; margin-inline: auto; }

/* --- Footer ------------------------------------------------------------------------------------------------ */
.site-footer {
  background: #0B1017;
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 72px) 0 28px;
  margin-top: clamp(48px, 7vw, 88px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(140px, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.footer-brand .brand__word { font-size: 1.05rem; }
.footer-note { color: var(--text-muted); font-size: .88rem; margin-top: 16px; }
.footer-contact { color: var(--text-muted); font-size: .9rem; }
.footer-contact__icon { width: 15px; height: 15px; color: var(--accent); margin-right: 4px; vertical-align: -2px; }
.footer-col h3 {
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 3px 0; }
.footer-col a {
  display: inline-block;
  color: var(--text-muted);
  font-size: .9rem;
  padding: 7px 12px 7px 0;
}
.footer-col a:hover { color: var(--accent); }
.footer-disclaimer {
  border-top: 1px solid var(--border);
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 24px;
}
.footer-disclaimer h3 { font-size: .95rem; }
.footer-disclaimer p { color: var(--text-muted); font-size: .84rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 20px;
  color: var(--text-muted);
  font-size: .85rem;
}
.footer-legal-links { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
.footer-legal-links a { color: var(--text-muted); text-decoration: underline; }
.footer-legal-links a:hover { color: var(--accent); }

/* --- External-link note -------------------------------------------------------------------------------------- */
.external-note { font-size: .82rem; color: var(--text-muted); }
.external-note a { text-decoration: underline; }

/* --- Reveal animation ---------------------------------------------------------------------------------------- */
/* With JS active, .reveal elements start hidden and rise in on first view;
   without JS (or with reduced motion) everything stays fully visible. */
html.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .6, .2, 1);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* --- Special offer page ---------------------------------------------------------------------------------------- */
.offer-strip {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.offer-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-size: .86rem;
  color: var(--text-muted);
}
.offer-strip__inner span { display: inline-flex; align-items: center; gap: 8px; }
.offer-strip__inner svg { width: 15px; height: 15px; color: var(--accent); }

/* --- Responsive -------------------------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { gap: 12px; }
  .header-cta .btn { display: none; }
  .hero__grid, .page-hero__grid { grid-template-columns: 1fr; }
  .hero__art svg { right: -120px; opacity: .5; }
  .vacancy { grid-template-columns: 1fr; }

  /* Mobile hero order per the CA checklist: heading (with kicker), then the
     registration form, then flags, trust badges and the remaining copy. */
  .hero__copy { display: contents; }
  .hero__copy > .hero__kicker { order: 0; }
  .hero__copy > h1 { order: 1; }
  .hero__copy > .hero__lead { order: 2; }
  .hero__form-col { order: 3; }
  .hero__copy > .hero__flags { order: 4; }
  .hero__copy > .hero__badges { order: 5; }
}

@media (min-width: 961px) {
  .mobile-nav { display: none !important; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .chip { width: 148px; height: 54px; }
  .chip img { height: 24px; }
  .hero__flags-label { width: 100%; }
  .review-card__stats { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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

/* Homepage composition and desktop navigation */
.market-hero { background: linear-gradient(90deg, #141f33f5, #141f33bb 50%, #141f3366), url("../images/market-hero.webp") center / cover no-repeat; color: #fff; isolation: isolate; padding-block: clamp(3rem, 7vw, 7rem); }
.market-hero > .hero__art { visibility: hidden; }
.market-hero .hero__grid { display: grid; grid-template-columns: 1.24fr .76fr; align-items: center; gap: clamp(1.55rem, 4.4vw, 4.3rem); }
.market-hero .hero__copy { min-width: 0; }
.market-hero h1 { color: #fff; font-size: clamp(2.15rem, 4.1vw, 4.35rem); line-height: 1.07; margin: 0 0 1.15rem; text-wrap: balance; }
.market-hero .market-hero__accent { color: #ffcb78; }
.market-hero .hero__copy :is(p, .flag-label, .hero__flags-label), .market-hero .hero-aux :is(p, .flag-label) { color: #f0edf4; }
.market-hero :is(.badge-link, .hero-trust a, .hero-pill, .hero-icon-link, .flag-chip, .hero-flags .flag) { background-color: #21314f; color: #fff; border-color: #ffffff45; }
.market-hero :is(.badge-link, .hero-trust a, .hero-pill, .hero-icon-link) :is(span, small) { color: #fff; }
.market-hero .hero__form-col { background: #fff; color: #18212f; border-radius: 24px; padding: clamp(1rem, 2.6vw, 2rem); min-width: 0; width: 100%; box-sizing: border-box; box-shadow: 0 20px 58px #0005; border-top: 4px solid #ffcb78; }
.market-hero .hero__form-col :is(h2, .form-heading, .form-block-heading, .form-block__title) { color: #18212f; }
.market-hero .hero__form-col :is(.form-sub, .form-block-sub, .hero-note, .hero-form-note) { color: #374151; }
.market-section { padding-block: clamp(3rem, 6vw, 6rem); }
.market-section--2, .market-section--4, .market-section--8 { background-color: #eff3fa; }
.market-scenarios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 1.65rem); }
.market-scenarios :is(.review-card, .review) { min-width: 0; height: 100%; border-top: 3px solid #ffcb78; }
.market-scenarios :is(.review-avatar, .review-card__avatar) { display: block; flex: 0 0 52px; width: 52px; height: 52px; padding: 0; border-radius: 50%; overflow: hidden; }
.market-scenarios .market-scenarios__photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.iti .iti__selected-country { background-color: #fff; color: #18212f !important; border-radius: 5px; }
.iti .iti__selected-dial-code { color: #18212f !important; }
.iti .iti__dropdown-content, .iti .iti__country-list { background: #fff; color: #18212f; }
.iti .iti__country-name { color: #0c1118 !important; }
.iti .iti__country.iti__highlight { background-color: #e5edf7; }
@media (min-width: 1025px) {
  .site-header :is(.main-nav, .site-nav) { margin-inline: auto; }
  .site-header :is(.main-nav__list, .nav-list, .nav-groups) { column-gap: clamp(.25rem, 1vw, .85rem); }
  .site-header :is(.main-nav__trigger, .nav-trigger, .nav-group__link) { padding: .67rem .8rem; border-radius: 8px; white-space: nowrap; }
  .site-header :is(.main-nav__trigger, .nav-trigger, .nav-group__link):is(:hover, :focus-visible, [aria-expanded="true"]) { background: #eff3fa; color: #141f33; }
  .site-header .market-header-cta { min-height: 44px; padding-inline: 1.25rem; border-radius: 24px; background: #21314f; color: #fff; border: 1px solid #21314f; box-shadow: 0 5px 0 #ffcb78; white-space: nowrap; }
  .site-header .market-header-cta:is(:hover, :focus-visible) { background: #141f33; color: #fff; box-shadow: 0 2px 0 #ffcb78; }
}
@media (max-width: 820px) {
  .market-hero { padding-block: 2.75rem; background-image: linear-gradient(#141f33a8, #141f33ef), url("../images/market-hero.webp"); }
  .market-hero .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .market-hero .hero__copy { display: contents; }
  .market-hero .hero__copy > h1 { order: -3; grid-column: 1; grid-row: auto; margin: 0; }
  .market-hero .hero__form-col { order: -2; grid-column: 1; grid-row: auto; }
  .market-hero .hero-aux { grid-column: 1; grid-row: auto; }
  .market-scenarios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 570px) { .market-scenarios { grid-template-columns: minmax(0, 1fr); } }

section.market-hero h1 { font-size: clamp(2rem, 3.7vw, 4rem); }
@media (max-width: 820px) {
  section.market-hero { padding-block: 2.25rem; min-height: 0; }
  section.market-hero .hero__grid {
    grid-template-areas: none;
    grid-template-rows: none;
    row-gap: 1.125rem;
    padding-block: 0;
  }
  section.market-hero .hero__grid h1 {
    grid-area: 1 / 1 !important;
    order: -3 !important;
    font-size: clamp(2rem, 8vw, 3rem);
    margin: 0;
  }
  section.market-hero .hero__grid .hero__form-col {
    grid-area: 2 / 1 !important;
    order: -2 !important;
  }
}

.market-hero .hero__form-col .hero__manager-note { color: #34445a; }

.tv-ticker-wrapper {
  padding-top: 0px !important;
  height: 58px !important;
}
