/* =========================================================
   Mondiad — Shared design system
   Used by index, register, advertisers, publishers, ad-formats
   ========================================================= */

:root {
  --brand-50:  #E8F1FB;
  --brand-100: #C7DEF3;
  --brand-200: #9CC4EB;
  --brand-400: #3079c8;
  --brand-500: #2966A8;
  --brand-600: #20548B;
  --brand-700: #1A4470;
  --brand-900: #0F2A47;

    --accent-50:  #EAF8EC;
    --accent-100: #C9EECE;
    --accent-200: #A4E3AC;
    --accent-400: #51c85d;
    --accent-500: #3FA94B;
    --accent-600: #318C3B;

  --ink:    #0A1612;
  --ink-2:  #1F2A26;
  --muted:  #6B7770;
  --line:   #E5E7E2;
  --line-2: #D7DBD3;
  --bg:     #FAFAF7;
  --paper:  #FFFFFF;
  --warn:   #C2410C;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --display: 'Lato', system-ui, -apple-system, Segoe UI, sans-serif;
  --body: 'Lato', system-ui, -apple-system, Segoe UI, sans-serif;

  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

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

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 14px; letter-spacing: -0.01em;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand-400); color: #fff; }
.btn-primary:hover { background: var(--brand-500); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-light { background: #fff; color: var(--brand-600); }
.btn-light:hover { background: var(--brand-50); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Promo bar ─── */
.promo {
  background: var(--ink); color: #fff;
  text-align: center; font-size: 13px;
  padding: 10px 16px; letter-spacing: 0.01em;
}
.promo b { color: var(--accent-400); font-weight: 600; }
.promo a { text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }

/* ─── Header ─── */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600;
  font-size: 22px; letter-spacing: -0.03em;
  color: var(--ink);
}
.brand-logo {
    height: 32px;
    width: auto;
    display: block;
  }
  .brand { text-indent: -9999px; font-size: 0; width: auto; }
  .brand .brand-logo { text-indent: 0; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a { transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-500); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.lang { font-size: 12px; color: var(--muted); padding-right: 8px; border-right: 1px solid var(--line); margin-right: 4px; }
@media (max-width: 880px) { .nav-links { display: none; } }

/* ─── Section base ─── */
section.block { padding: 96px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { section.block { padding: 64px 0; } }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  color: var(--brand-500);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); font-weight: 600; margin-bottom: 16px; }
.section-head p { font-size: 17px; color: var(--ink-2); line-height: 1.55; }

/* ─── Hero (shared base) ─── */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
  opacity: 0.5;
  pointer-events: none;
}
.hero .container { position: relative; }
@media (max-width: 700px) { .hero { padding: 48px 0 64px; } }

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-50); color: var(--brand-700);
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; border: 1px solid var(--brand-100);
  margin-bottom: 24px;
}
.hero-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-400); animation: pulse 2s infinite; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(81, 200, 93, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(81, 200, 93, 0); }
  }

.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  margin-bottom: 20px;
  font-weight: 600;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand-500);
  font-family: var(--display);
  font-variation-settings: "wdth" 90;
}
.hero-sub {
  font-size: 18px; color: var(--ink-2); max-width: 540px;
  margin-bottom: 28px; line-height: 1.55;
}
.hero-checks { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 28px; }
.check {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-2); font-weight: 500;
}
.check::before {
  content: ""; width: 16px; height: 16px;
  background: var(--brand-100); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6L5 8.5L9.5 4' stroke='%2320548B' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.hero-trust strong { color: var(--ink-2); font-weight: 600; }
.badge-cert {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--paper);
}

/* ─── Stats band ─── */
.stats { background: var(--ink); color: #fff; padding: 36px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: left;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-num { font-family: var(--display); font-size: 44px; font-weight: 600; letter-spacing: -0.04em; color: #fff; line-height: 1; }
.stat-num span { color: var(--accent-400); }
.stat-lbl { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 6px; font-weight: 500; }

/* ─── Generic card grid ─── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card-flat {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; background: var(--paper);
  transition: border-color .15s ease, transform .15s ease;
}
.card-flat:hover { border-color: var(--brand-400); transform: translateY(-2px); }

/* ─── FAQ ─── */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 22px 0;
  font-family: var(--display);
  font-size: 18px; font-weight: 500;
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v12M2 8h12' stroke='%230A1612' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .2s ease; flex-shrink: 0; margin-left: 16px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.faq-item .answer a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }

/* ─── Final CTA band ─── */
.final-cta {
  background: var(--brand-600); color: #fff;
  padding: 80px 0; text-align: center;
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.18) 1px, transparent 0);
  background-size: 32px 32px; opacity: 0.4; pointer-events: none;
}
.final-cta .container { position: relative; }
.final-cta h2 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 600; color: #fff; margin-bottom: 14px; }
.final-cta p { font-size: 17px; color: var(--brand-100); margin-bottom: 30px; }
.final-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.final-foot { font-size: 13px; color: var(--brand-200); }

/* ─── Footer ─── */
footer.site { background: var(--ink); color: rgba(255,255,255,0.65); padding: 64px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
.foot-col h4 { font-size: 12px; color: rgba(255,255,255,0.4); font-family: var(--body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; transition: color .15s; }
.foot-col a:hover { color: #fff; }
.foot-brand .brand { color: #fff; margin-bottom: 16px; }
.foot-brand p { font-size: 13px; line-height: 1.6; max-width: 280px; }
.foot-bottom { padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; }
.foot-socials { display: flex; gap: 14px; }
.foot-socials a { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; display: grid; place-items: center; transition: all .15s; }
.foot-socials a:hover { background: var(--brand-400); border-color: var(--brand-400); color: #fff; }

/* ─── Live chat float ─── */
.chat-float {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--brand-400); color: #fff;
  padding: 14px 20px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; z-index: 40;
  transition: transform .15s ease, background .15s ease;
}
.chat-float:hover { background: var(--brand-500); transform: translateY(-2px); }
.chat-float .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand-200);
  animation: pulse 2s infinite;
}

/* ─── Reveal on scroll ─── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ─── Animation: counters ─── */
[data-counter] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ─── Animation: bar fill ─── */
[data-bar-fill] {
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Animation: staggered group reveal ─── */
[data-anim-group] > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-anim-group].anim-in > * {
  opacity: 1;
  transform: none;
}
[data-anim-group].anim-in > *:nth-child(1) { transition-delay: 0ms; }
[data-anim-group].anim-in > *:nth-child(2) { transition-delay: 80ms; }
[data-anim-group].anim-in > *:nth-child(3) { transition-delay: 160ms; }
[data-anim-group].anim-in > *:nth-child(4) { transition-delay: 240ms; }
[data-anim-group].anim-in > *:nth-child(5) { transition-delay: 320ms; }
[data-anim-group].anim-in > *:nth-child(6) { transition-delay: 400ms; }
[data-anim-group].anim-in > *:nth-child(7) { transition-delay: 480ms; }
[data-anim-group].anim-in > *:nth-child(8) { transition-delay: 560ms; }
[data-anim-group].anim-in > *:nth-child(9) { transition-delay: 640ms; }
[data-anim-group].anim-in > *:nth-child(10) { transition-delay: 720ms; }

/* ─── Respect prefers-reduced-motion ─── */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  [data-counter],
  [data-bar-fill],
  [data-anim-group] > * {
    transition: none !important;
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  [data-anim-group] > * { opacity: 1; transform: none; }
}

/* ─── Scroll progress bar (top of viewport) ─── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand-400), var(--accent-400));
  z-index: 200;
  transition: width 80ms linear;
  pointer-events: none;
}

/* ─── Sticky bottom CTA bar ─── */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -2px 20px rgba(10, 22, 18, 0.18);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-right: 40px;
  position: relative;
}
.sticky-cta-text {
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
}
.sticky-cta-text strong { color: var(--accent-200); font-weight: 700; }
.sticky-cta-text small {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  margin-top: 2px;
}
.sticky-cta .btn { flex-shrink: 0; }
.sticky-cta-close {
  position: absolute;
  top: 50%; right: 0;
  transform: translateY(-50%);
  background: none; border: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .15s;
}
.sticky-cta-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
@media (max-width: 700px) {
  .sticky-cta-inner { padding-right: 28px; }
  .sticky-cta-text small { display: none; }
  .sticky-cta .btn { padding: 8px 12px; font-size: 13px; }
}

/* Chat float moves up when sticky CTA is visible */
body.sticky-cta-visible .chat-float { bottom: 90px; }
body.sticky-cta-visible .payout-ticker { bottom: 90px; }

/* ─── Exit-intent modal ─── */
.exit-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.exit-modal.show { opacity: 1; pointer-events: auto; }
.exit-modal-bg {
  position: absolute; inset: 0;
  background: rgba(10, 22, 18, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.exit-modal-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 40px;
  max-width: 480px;
  width: calc(100% - 40px);
  margin: 60px auto 0;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}
.exit-modal.show .exit-modal-card { transform: translateY(0); }
@media (max-width: 700px) {
  .exit-modal-card { padding: 28px 22px; margin-top: 80px; }
}
.exit-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none; border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  display: grid; place-items: center;
  line-height: 1;
  transition: all .15s;
}
.exit-modal-close:hover {
  background: var(--bg);
  color: var(--ink);
}
.exit-modal-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-50);
  color: var(--accent-600);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.exit-modal-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-400);
  animation: pulse 2s infinite;
}
.exit-modal-card h2 {
  font-size: 26px;
  margin-bottom: 12px;
  line-height: 1.15;
}
.exit-modal-card > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 24px;
}
.exit-modal-form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.exit-modal-form input {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 14px;
}
.exit-modal-form input:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px var(--brand-50);
}
.exit-modal-form button {
  background: var(--brand-400);
  color: #fff;
  border: none;
  padding: 13px 20px;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.exit-modal-form button:hover { background: var(--brand-500); }
.exit-modal-decline {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  margin-top: 8px;
}
.exit-modal-decline:hover { color: var(--ink-2); }
.exit-modal-success {
  display: none;
  padding: 24px;
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  color: var(--accent-600);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
}

/* ─── Live payout ticker ─── */
.payout-ticker {
  position: fixed;
  bottom: 24px; left: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 16px;
  z-index: 40;
  display: flex; align-items: center; gap: 12px;
  min-width: 260px;
  max-width: 360px;
  box-shadow: 0 6px 24px rgba(10, 22, 18, 0.08);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), bottom 0.4s ease;
}
.payout-ticker.visible {
  opacity: 1;
  transform: translateY(0);
}
.payout-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-400);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.payout-content { flex: 1; min-width: 0; }
.payout-status {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.payout-detail {
  display: block;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
  transition: opacity 0.3s ease;
}
.payout-detail.fading {
  opacity: 0;
}
.payout-detail strong {
  font-family: var(--display);
  font-weight: 600;
  color: var(--accent-600);
}
.payout-close {
  background: none; border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  line-height: 1;
}
.payout-close:hover { color: var(--ink); }
@media (max-width: 700px) {
  .payout-ticker {
    bottom: 16px; left: 16px;
    right: 16px;
    max-width: none;
  }
}

/* ─── Marquee logo strip ─── */
.logos-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.logos-track {
  display: flex;
  gap: 56px;
  animation: marquee 30s linear infinite;
  width: max-content;
  opacity: 0.7;
}
.logos-track:hover {
  animation-play-state: paused;
}
.logos-track .logo-item {
  flex-shrink: 0;
  white-space: nowrap;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Magic-link signup styles ─── */
.magic-link-toggle {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px;
  margin-top: 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: block;
  width: 100%;
  text-align: center;
}
.magic-link-toggle:hover { color: var(--ink); }

.magic-link-success {
  display: none;
  text-align: center;
  padding: 24px 16px;
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-radius: var(--r-md);
}
.magic-link-success.show { display: block; }
.magic-link-success-icon {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent-400);
  color: #fff;
  display: grid; place-items: center;
}
.magic-link-success h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.magic-link-success p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.magic-link-success p strong { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { transition: none !important; }
  .sticky-cta, .exit-modal, .exit-modal-card, .payout-ticker { transition: none !important; }
  .logos-track { animation: none !important; }
}

/* ─── Form fields (shared) ─── */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; font-family: inherit; font-size: 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-400);
  box-shadow: 0 0 0 3px var(--brand-50);
}

/* ─── Step number circles ─── */
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-700);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  flex-shrink: 0;
}

/* ─── Pill / tag ─── */
.tag {
  display: inline-block; padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--brand-50); color: var(--brand-700);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ─── Sub-nav (used on advertisers/publishers/formats pages) ─── */
.subnav {
  position: sticky; top: 64px; z-index: 30;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav-row {
  display: flex; gap: 32px; padding: 14px 0;
  font-size: 13px; overflow-x: auto;
}
.subnav-row a {
  color: var(--muted); white-space: nowrap;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
  transition: all .15s;
}
.subnav-row a:hover, .subnav-row a.active { color: var(--ink); border-color: var(--brand-400); }

/* ─── Quiz banner (used on Verticals, Ad Formats, etc.) ─── */
.quiz-banner {
  display: flex; align-items: center; gap: 24px;
  padding: 28px 32px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-lg);
}
@media (max-width: 700px) {
  .quiz-banner { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; }
}
.quiz-banner-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-600);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.quiz-banner-body { flex: 1; }
.quiz-banner-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.quiz-banner-body p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ─── Hero quiz sub-link (secondary CTA on homepage) ─── */
.hero-quiz-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  transition: color .15s ease;
}
.hero-quiz-link:hover { color: var(--brand-500); }
.hero-quiz-link svg {
  color: var(--brand-400);
  flex-shrink: 0;
}

/* ─── Quiz reference card on Register page (when arriving from quiz) ─── */
.quiz-result-ref {
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  color: var(--accent-600);
  line-height: 1.4;
}
.quiz-result-ref svg { color: var(--accent-400); flex-shrink: 0; }
.quiz-result-ref strong { color: var(--ink); font-weight: 600; }
.quiz-result-ref a {
  color: var(--accent-600);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: auto;
  font-weight: 600;
  white-space: nowrap;
}
