/* ============================================================
   codes-de-parrainages.fr — Design system
   ============================================================ */

:root {
  --navy: #0E2A56;
  --navy-dark: #091d3e;
  --green: #16A06A;
  --green-light: #e8f7f1;
  --bg: #f0f2f5;
  --white: #ffffff;
  --text: #0E2A56;
  --muted: #6b7280;
  --border: #e5e7eb;

  --boursorama: #e91e8c;
  --fortuneo: #1e4fc4;
  --n26: #1a1a1a;
  --trade-republic: #16A06A;
  --revolut: #0066FF;

  --radius: 16px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; line-height: 1.2; }

h1 { font-size: 4rem; font-weight: 800; line-height: 1.05; }
h2 { font-size: 2.2rem; font-weight: 700; }

p { margin: 0 0 1rem; }

code, .mono { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  min-height: 40px;
}
.topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 40px;
  gap: 16px;
}
.topbar__left { justify-self: start; display: flex; align-items: center; gap: 8px; }
.topbar__center { justify-self: center; }
.topbar__right { justify-self: end; }
.topbar .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22,160,106,.25);
  flex: 0 0 auto;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(14,42,86,.08); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}
.brand-logo .tld { color: var(--muted); font-weight: 600; }
.brand-logo svg { flex: 0 0 auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
  transition: background .15s ease;
}
.nav__links a:hover { background: var(--bg); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy-dark);
  color: var(--white) !important;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.nav__cta:hover { background: var(--navy); transform: translateY(-1px); }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 44px; height: 44px;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--navy);
  align-items: center;
  justify-content: center;
}

/* ============================================================
   BRAND BADGE PILLS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  font-weight: 800;
  font-size: .8rem;
  color: #fff;
  flex: 0 0 auto;
  letter-spacing: .02em;
}
.badge--boursorama { background: var(--boursorama); }
.badge--fortuneo { background: var(--fortuneo); }
.badge--n26 { background: var(--n26); }
.badge--trade-republic { background: var(--trade-republic); font-size: .68rem; }
.badge--revolut { background: var(--revolut); }
.badge--lg { width: 44px; height: 44px; border-radius: 12px; font-size: 1.1rem; }
.badge--lg.badge--trade-republic { font-size: .9rem; }

/* ============================================================
   BRAND LOGOS (wordmarks) — distinct from the site .brand-logo
   ============================================================ */
.brand-mark {
  width: auto;
  object-fit: contain;
  object-position: left center;
}
/* Nav menu pills (header) */
.brand-mark--nav { height: 18px; max-width: 110px; }
/* Homepage hero "Top primes" rows (white card) — uniform size on all screens */
.brand-mark--row { height: 28px; max-width: 140px; margin-right: auto; }
/* Homepage offer card header (white card) */
.brand-mark--card { height: 30px; max-width: 170px; }
/* "Voir aussi" pills on brand pages (light bg) */
.brand-mark--pill { height: 20px; max-width: 130px; }

/* Card header now stacks the logo above the subtitle */
.card__brand { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-width: 0; }

/* Brand-page hero: white chip so dark logos stay visible on the gradient.
   Sized by height only (no width cap) so every brand logo shares the same
   visual height across pages; the chip hugs the logo's natural width. */
.brand-hero__logo {
  display: inline-flex;
  background: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 22px;
  max-width: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.brand-hero__logo img { height: clamp(24px, 4.8vw, 34px); width: auto; object-fit: contain; }

/* ============================================================
   BUTTONS / PILLS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  cursor: pointer;
  min-height: 44px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn--navy { background: var(--navy-dark); color: #fff; }
.btn--navy:hover { background: var(--navy); transform: translateY(-1px); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: #128a5a; transform: translateY(-1px); }

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
}
.pill-badge--dark { background: rgba(255,255,255,.08); color: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.15); }
.pill-badge--green { background: var(--green-light); color: var(--green); }

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green-light);
  color: var(--green);
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.eyebrow {
  display: inline-block;
  color: var(--green);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 72px 0 88px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: #fff; margin: 22px 0; }
.hero__sub {
  color: rgba(255,255,255,.72);
  font-size: 1.15rem;
  max-width: 540px;
  margin-bottom: 28px;
}
.hero__checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero__checks li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,.92); font-weight: 500; }
.check-icon {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(22,160,106,.2);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  margin-top: 1px;
}

/* Floating card */
.hero-card {
  background: #fff;
  color: var(--text);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,.3);
}
.hero-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.hero-card__head .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22,160,106,.18);
}
.hero-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.hero-row:last-of-type { border-bottom: none; }
.hero-row__name { font-weight: 600; flex: 1; }
.hero-row__bonus { font-weight: 700; color: var(--green); white-space: nowrap; }
.hero-card__tag {
  margin-top: 14px;
  background: var(--green-light);
  color: var(--green);
  font-weight: 700;
  font-size: .85rem;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 0; }
.section--gray { background: var(--bg); }
.section--white { background: var(--white); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

/* ============================================================
   FILTER TABS
   ============================================================ */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.tab {
  font-family: inherit;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tab:hover { border-color: var(--navy); }
.tab.active { background: var(--navy-dark); color: #fff; border-color: var(--navy-dark); }

/* ============================================================
   CARDS GRID
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--navy);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(14,42,86,.1); }
.card[hidden] { display: none; }

.card__top { border-top-color: var(--c); }

.card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.card__title { font-weight: 700; font-size: 1.05rem; }
.card__subtitle { color: var(--muted); font-size: .82rem; font-weight: 500; }
.card__header .verified-pill { margin-left: auto; }

.amount-box {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.amount-box__value { font-size: 2rem; font-weight: 800; line-height: 1; }
.amount-box__label { color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.amount-box__icon { margin-left: auto; font-size: 1.6rem; }

.conditions {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 10px;
}
.conditions li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .9rem;
  counter-increment: step;
}
.conditions li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-weight: 700;
  font-size: .78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.code-box {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.code-box__label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.code-box__code { font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; }
.copy-btn {
  margin-left: auto;
  font-family: inherit;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  white-space: nowrap;
  min-height: 40px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.copy-btn:hover { border-color: var(--navy); }
.copy-btn.copied { background: var(--green); color: #fff; border-color: var(--green); }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--green);
}
.card__link:hover { gap: 10px; }

/* ============================================================
   STEPS (3 étapes)
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.step-card__top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--navy-dark);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.step-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step-card p { color: var(--muted); margin: 0; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%;
  font-family: inherit;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}
.faq__q .icon { flex: 0 0 auto; transition: transform .25s ease; font-size: 1.4rem; color: var(--green); line-height: 1; }
.faq__q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq__a-inner { padding: 0 0 22px; color: var(--muted); }

/* ============================================================
   BRAND PAGE HERO
   ============================================================ */
.brand-hero {
  color: #fff;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 48px 0 64px;
}
.breadcrumb {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 22px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }

.brand-hero h1 { font-size: 3.5rem; color: #fff; max-width: 880px; margin: 18px 0 32px; }

.code-display {
  background: rgba(0,0,0,.35);
  border: 2px solid rgba(22,160,106,.6);
  box-shadow: 0 0 40px rgba(22,160,106,.25);
  border-radius: 18px;
  padding: 28px 32px;
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 100%;
}
.code-display__label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.65); }
.code-display__code {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .15em;
  word-break: break-all;
}
.code-display .copy-btn { margin: 0; background: var(--green); color: #fff; border-color: var(--green); padding: 12px 22px; font-size: .9rem; }
.code-display .copy-btn.copied { background: #fff; color: var(--green); }

.brand-hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.brand-hero__note { color: rgba(255,255,255,.75); font-size: .92rem; max-width: 420px; }

.stat-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-top: 36px;
  max-width: 620px;
}
.stat-box {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 16px 18px;
}
.stat-box__icon { font-size: 1.4rem; margin-bottom: 6px; }
.stat-box__value { font-weight: 800; font-size: 1.15rem; }
.stat-box__label { color: rgba(255,255,255,.7); font-size: .8rem; }

/* ---- Brand hero: 2-column layout (left copy / right card) ---- */
.brand-hero__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* ~60 / 40 */
  gap: 48px;
  align-items: center;
  width: 100%;
}
.brand-hero__left { text-align: left; }
.brand-hero__left h1 { font-size: 3rem; color: #fff; max-width: none; margin: 18px 0 24px; }
.brand-hero__checks { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.brand-hero__checks li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,.92); font-weight: 500; }
.brand-hero__left .brand-hero__cta { margin-top: 0; }

/* Right floating card */
.brand-card {
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 30px 60px rgba(0,0,0,.3);
  text-align: center;
}
.brand-card__logo { display: flex; align-items: center; justify-content: center; min-height: 64px; margin-bottom: 20px; }
.brand-card__logo img { height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.brand-card__code-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.brand-card__code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 2rem; font-weight: 700; color: var(--navy);
  letter-spacing: .06em; word-break: break-all; margin: 6px 0 18px;
}
.brand-card__copy {
  width: 100%;
  font-family: inherit; font-weight: 700; font-size: .95rem;
  background: var(--green); color: #fff; border: none;
  border-radius: 10px; padding: 14px; min-height: 48px; cursor: pointer;
  transition: background .15s ease;
}
.brand-card__copy:hover { background: #128a5a; }
.brand-card__copy.copied { background: var(--navy); color: #fff; }
.brand-card__stats {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid; gap: 14px; text-align: left;
}
.brand-card__stat { display: flex; align-items: center; gap: 12px; }
.brand-card__stat-icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg); display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.brand-card__stat-value { font-weight: 800; font-size: 1rem; line-height: 1.2; }
.brand-card__stat-label { color: var(--muted); font-size: .8rem; }

/* ============================================================
   BRAND PAGE CONTENT
   ============================================================ */
.content {
  background: var(--white);
  padding: 80px 0;
}
.content__inner { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.content h2 { font-size: 1.7rem; margin: 48px 0 18px; }
.content h2:first-child { margin-top: 0; }
.content p { color: #374151; }

.steps-ol { counter-reset: s; list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 14px; }
.steps-ol li {
  display: flex; gap: 16px; align-items: flex-start;
  counter-increment: s;
  background: var(--bg);
  border-radius: 12px;
  padding: 16px 18px;
}
.steps-ol li::before {
  content: counter(s);
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy-dark);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}

.bullets { padding-left: 20px; color: #374151; }
.bullets li { margin-bottom: 8px; }

/* Maillage interne */
.internal-links { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.internal-links h2 { font-size: 1.3rem; margin: 0 0 18px; }
.link-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: .9rem;
  transition: border-color .15s ease, background .15s ease;
}
.link-pill:hover { border-color: var(--navy); background: var(--bg); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 56px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand .brand-logo { color: #fff; margin-bottom: 14px; }
.footer__brand p { font-size: .9rem; max-width: 360px; }
.footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: .92rem; transition: color .15s ease; }
.footer ul a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { gap: 36px; }
  h1 { font-size: 3.2rem; }
}

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(14,42,86,.1);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links { gap: 0; padding: 8px 0 12px; }
  .nav__links a { padding: 12px 16px; min-height: 44px; border-bottom: 1px solid #e5e7eb; border-radius: 0; }
  .nav__links li:last-child a { border-bottom: none; }
  .nav__cta { display: none; }

  .topbar__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 4px; padding: 8px 0; }
  .topbar__left, .topbar__center, .topbar__right { justify-self: center; }
  .topbar__center, .topbar__right { display: none; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }

  .cards-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: 1 / -1; }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  .brand-hero h1 { font-size: 2.2rem; }
  .brand-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .brand-hero__left h1 { font-size: 2.2rem; }
  .code-display__code { font-size: 1.7rem; letter-spacing: .08em; }
  .stat-boxes { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  .container { padding: 0 18px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .code-display { padding: 22px; }
}
