/* ============================================================
   Trafficleads — main styles
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --c-brand:        #403EE1;
  --c-brand-deep:   #2E2CB3;
  --c-white:        #FFFFFF;
  --c-black:        #000000;
  --c-text:         #0A0A14;
  --c-text-muted:   #4B5063;

  /* Surfaces */
  --c-page:         #F4F6FA;   /* base body bg */
  --c-soft-blue:    #E6EFF9;   /* hero bg */
  --c-pale-blue:    #EAF1FB;   /* funnel section bg */
  --c-card:         #FFFFFF;
  --c-card-glass:   rgba(255,255,255,0.07);
  --c-card-border:  rgba(255,255,255,0.37);

  /* Radii */
  --r-button:  9px;
  --r-card-sm: 19px;
  --r-card-md: 24px;
  --r-card-lg: 32px;
  --r-pill:    999px;

  /* Spacing scale (multiples of 4) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Typography */
  --ff-base: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-h1:   48px;
  --fs-h2:   39px;
  --fs-h3:   24px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-small:14px;

  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-extra:    800;

  /* Layout */
  --container-max: 1200px;

  /* Shadow */
  --sh-card: 0 12px 28px -16px rgba(20, 23, 54, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  color: var(--c-text);
  background: var(--c-page);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; }
h1, h2, h3, p { margin: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 53px;
  min-width: 256px;
  padding: 0 22px;
  border-radius: var(--r-button);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: 1;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
  will-change: transform;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-brand);
  color: var(--c-white);
  box-shadow: 0 6px 18px -6px rgba(64,62,225,0.5);
}
.btn--primary:hover { background: var(--c-brand-deep); }

.btn--white {
  background: var(--c-white);
  color: var(--c-brand);
  height: 64px;
  min-width: 315px;
  font-size: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 28px -10px rgba(0,0,0,0.25);
}
.btn--white:hover { background: #F1F3FF; }

.btn--pill {
  background: var(--c-white);
  color: var(--c-brand);
  height: auto;
  min-width: 0;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  box-shadow: 0 4px 12px -6px rgba(15, 20, 60, 0.12);
}
.btn--pill:hover { background: #F2F4FE; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 5;
  padding: 28px 0 12px;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--fw-extra);
  letter-spacing: -0.01em;
  font-size: 22px;
}
.brand__mark { width: 36px; height: 36px; flex: 0 0 36px; perspective: 600px; }
.brand__mark img {
  width: 100%;
  height: 100%;
  animation: brand-rotate 3s linear infinite;
  transform-origin: 50% 50%;
}
@keyframes brand-rotate {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}
.brand__name { color: var(--c-brand); }
.brand__name b { color: var(--c-black); font-weight: var(--fw-extra); }

.nav {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Hero ---------- */
/* Wrap so header + hero share ONE background image (waves + arrows) */
.hero-wrap {
  position: relative;
  overflow: hidden;
  background-color: var(--c-soft-blue);
  background-image: url("assets/illustrations/hero-bg-new.svg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.hero-wrap .site-header { background: transparent; }

.hero {
  position: relative;
  padding: 8px 0 0;
  background: transparent;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  min-height: 540px;
}
.hero__copy { max-width: 560px; }
.hero h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-extra);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-black);
  margin-bottom: 20px;
}
.hero__para {
  font-size: var(--fs-body);
  color: #2C3142;
  margin-bottom: 14px;
  max-width: 460px;
}
.hero .btn { margin-top: 18px; }

.hero__visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 540px;
}
.hero__visual img {
  max-height: 540px;
  width: auto;
  filter: drop-shadow(0 30px 40px rgba(20, 30, 80, 0.08));
}

/* ---------- Stats ---------- */
.stats { padding: 56px 0; }
.stats__grid {
  display: grid;
  /* First card (campaigns) is wider, like in the Figma layout */
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 16px;
}
.stat {
  background: var(--c-card);
  border-radius: var(--r-card-lg);
  padding: 32px 36px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--sh-card);
}
.stat__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stat__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.stat__num {
  font-size: 64px;
  font-weight: var(--fw-extra);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-black);
}
.stat__label {
  font-size: var(--fs-body);
  color: var(--c-text-muted);
  margin-top: 8px;
}
/* Smaller cards (clicks/leads) — slightly smaller number */
.stat:nth-child(2) .stat__num,
.stat:nth-child(3) .stat__num { font-size: 56px; }

/* ---------- How we work ---------- */
.howwework {
  position: relative;
  overflow: hidden;
  /* Uniform brand blue with subtle soft-light waves overlay — no harsh dark vignette */
  background-color: var(--c-brand);
  background-image:
    radial-gradient(140% 80% at 50% 0%, rgba(255,255,255,0.08), transparent 60%),
    url("assets/illustrations/blue-waves.svg");
  background-size: auto, 100% 100%;
  background-repeat: no-repeat;
  background-position: top, center;
  color: var(--c-white);
  padding: 72px 0 80px;
}
.howwework__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.howwework h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-extra);
  line-height: 1;
  margin-bottom: 32px;
}
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.step {
  background: var(--c-card-glass);
  border-radius: var(--r-card-sm);
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}
.step::before {
  /* gradient border accent */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.65) 50%, rgba(255,255,255,0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.step__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: var(--fw-semibold);
  margin-bottom: 8px;
}
.step__title::before {
  content: "";
  width: 24px;
  height: 24px;
  /* Hexagonal checkmark badge (flat-top hex with check inside) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpolygon points='12,1.5 22,7 22,17 12,22.5 2,17 2,7' fill='%23ffffff'/%3E%3Cpath d='M7 12 l3.5 3.5 L17 8' stroke='%23403EE1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  flex: 0 0 24px;
}
.step__desc {
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.88);
  line-height: 1.4;
}

/* Highlighted step (solid white card) */
.step--active {
  background: var(--c-white);
  border-color: rgba(64, 62, 225, 0.18);
  color: var(--c-black);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 18px 40px -18px rgba(15, 20, 60, 0.35);
}
.step--active::before { display: none; }
.step--active .step__title { color: var(--c-black); }
.step--active .step__desc  { color: var(--c-text-muted); }
.step--active .step__title::before {
  /* Hex badge — filled blue with white check */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpolygon points='12,1.5 22,7 22,17 12,22.5 2,17 2,7' fill='%23403EE1'/%3E%3Cpath d='M7 12 l3.5 3.5 L17 8' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

.howwework__visual {
  position: relative;
  min-height: 460px;
}
.howwework__visual img.figure {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: block;
}

/* Floating input badges */
.float-input {
  position: absolute;
  background: var(--c-white);
  color: var(--c-text);
  border-radius: 12px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: var(--fw-medium);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.25);
  white-space: nowrap;
}
/* Positions roughly match the mockup: both badges sit at mid-height,
   bridging the gap between the step cards and the figure. */
.float-input--name  { top: 52%; left: 8%; }
.float-input--phone { top: 38%; right: 6%; }
.float-input svg { width: 16px; height: 16px; color: var(--c-brand); }
.float-input span { color: #6D7184; }

/* ---------- Who it's for ---------- */
.whofor {
  padding: 80px 0 88px;
  background: var(--c-page);
}
.whofor__head {
  text-align: center;
  margin-bottom: 40px;
}
.whofor h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-extra);
  line-height: 1;
  margin-bottom: 12px;
}
.whofor__sub {
  font-size: var(--fs-body);
  color: var(--c-text-muted);
}
.whofor__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.whocard {
  text-align: center;
}
.whocard__visual {
  /* Hexagonal background — vertical flat-top hex with rounded corners (SVG) */
  background: url("assets/illustrations/hex-card-bg.svg") center/contain no-repeat;
  aspect-ratio: 220 / 260;
  padding: 24px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
}
.whocard__visual img {
  max-height: 100%;
  width: auto;
  position: relative;
  z-index: 1;
}

/* Social bubbles around the Brands funnel illustration */
.whocard__visual--brands .social-bubble {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(20, 30, 80, 0.10);
  z-index: 2;
}
.whocard__visual--brands .social-bubble img {
  max-width: 60%;
  max-height: 60%;
  width: auto;
  height: auto;
  position: static;
  filter: none;
}
.social-bubble--yt { top: 10%;    left: 6%;  }
.social-bubble--x  { top: 10%;    right: 6%; }
.social-bubble--tg { bottom: 22%; left: 2%;  }
.social-bubble--in { bottom: 22%; right: 2%; }
.whocard__title {
  font-size: 20px;
  font-weight: var(--fw-bold);
  margin-bottom: 10px;
}
.whocard__desc {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.55;
  max-width: 280px;
  margin: 0 auto;
}

/* ---------- Manage the funnel ---------- */
.funnel {
  background: var(--c-pale-blue);
  padding: 72px 0 80px;
}
.funnel h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-extra);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.05;
}
.funnel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 40px;
}
.funnel__card {
  background: var(--c-card);
  border-radius: var(--r-card-md);
  padding: 28px 32px;
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.7;
  text-align: center;
  box-shadow: var(--sh-card);
}
.funnel__card p { margin-bottom: 14px; }
.funnel__card p:last-child { margin-bottom: 0; }
.funnel__cta {
  display: flex;
  justify-content: center;
}

/* ---------- Channels mix ---------- */
.channels {
  background: var(--c-white);
  padding: 80px 0 64px;
  text-align: center;
}
/* Desktop/tablet: full composite image (heading is baked in) */
.channels__composite {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto;
}
/* Mobile fallback (heading + figures only) */
.channels__mobile { display: none; }
.channels__mobile h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-extra);
  line-height: 1.15;
  margin-bottom: 24px;
}
.channels__mobile img {
  width: 90%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
}

/* ---------- Final CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 0% 100%, rgba(255,255,255,0.10), transparent 55%),
    radial-gradient(120% 70% at 100% 0%, rgba(0,0,0,0.15), transparent 55%),
    var(--c-brand);
  color: var(--c-white);
  padding: 96px 0 112px;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(80% 50% at 50% 100%, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.cta__inner { position: relative; max-width: 700px; margin: 0 auto; }
.cta h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-extra);
  margin-bottom: 18px;
  line-height: 1.1;
}
.cta p {
  font-size: var(--fs-body);
  color: rgba(255,255,255,0.92);
  margin-bottom: 8px;
}
.cta .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-brand);
  color: var(--c-white);
  padding: 28px 0;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .brand__name      { color: var(--c-white); }
.site-footer .brand__name b    { color: var(--c-white); }
.site-footer__copy {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.site-footer__links {
  display: inline-flex;
  gap: 24px;
  font-size: 14px;
  font-weight: var(--fw-semibold);
}
.site-footer__links a:hover { text-decoration: underline; }

/* ============================================================
   Sub-pages (support / trust_and_privacy)
   ============================================================ */
.page {
  padding: 48px 0 80px;
  background: var(--c-page);
}
.page__inner { max-width: 820px; margin: 0 auto; }
.page h1 {
  font-size: 36px;
  font-weight: var(--fw-extra);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.page h2 {
  font-size: 22px;
  font-weight: var(--fw-extra);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 32px 0 10px;
  color: var(--c-black);
}
.page p {
  font-size: 16px;
  line-height: 1.65;
  color: #2C3142;
  margin-bottom: 14px;
}
.page p b { color: var(--c-black); }
.page a { color: var(--c-brand); text-decoration: underline; }
.page ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.page li {
  font-size: 16px;
  line-height: 1.65;
  color: #2C3142;
  margin-bottom: 8px;
}
.page li b { color: var(--c-black); font-weight: var(--fw-bold); }
.page__lead {
  font-size: 20px;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  color: var(--c-brand);
  margin: 0 0 24px;
}
.page__updated {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--c-text-muted);
  margin: 0 0 24px;
}
.page__legal {
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-text-muted);
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #E2E6EE;
}


/* ============================================================
   Responsive
   ============================================================ */

/* Tablet */
@media (max-width: 1199px) {
  .container { padding: 0 24px; }

  .hero { padding-bottom: 48px; }
  .hero__inner { min-height: 0; gap: 24px; }
  .hero__visual { min-height: 0; }
  .hero__visual img { max-height: 460px; }

  .stat__num { font-size: 52px; }
  .stat { min-height: 180px; }

  .steps { grid-template-columns: 1fr 1fr; }
  .howwework__visual { min-height: 380px; }
  .howwework__visual img.figure { max-width: 380px; }
  .float-input--name  { top: 50px; left: 10px; }
  .float-input--phone { top: 110px; right: 10px; }

  .channels__icon { width: 48px; height: 48px; }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --fs-h1: 36px;
    --fs-h2: 28px;
  }

  .site-header { padding: 20px 0 4px; }
  .site-header .container { flex-direction: column; }
  .nav { gap: 8px; }

  .hero { padding: 16px 0 40px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { margin: 0 auto; }
  .hero__para { margin-left: auto; margin-right: auto; }
  .hero .btn { margin-left: auto; margin-right: auto; display: flex; }
  .hero__visual { justify-content: center; }
  .hero__visual img { max-height: 320px; }

  .stats { padding: 32px 0; }
  .stats__grid { grid-template-columns: 1fr; gap: 16px; }
  .stat { min-height: 0; padding: 22px 24px; }
  .stat__num { font-size: 44px; }

  .howwework { padding: 48px 0 56px; }
  .howwework__inner { grid-template-columns: 1fr; }
  .howwework h2 { text-align: center; margin-bottom: 20px; }
  .steps { grid-template-columns: 1fr; }
  .howwework__visual { display: none; }

  .whofor { padding: 48px 0 56px; }
  .whofor__grid { grid-template-columns: 1fr; gap: 28px; }
  .whocard__visual { aspect-ratio: 3 / 4; }

  .funnel { padding: 48px 0; }
  .funnel__grid { grid-template-columns: 1fr; }

  .channels { padding: 48px 0; }
  .channels__composite { display: none; }
  .channels__mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .cta { padding: 64px 0 72px; }
  .cta h2 { font-size: 26px; }
  .btn--white {
    height: 56px;
    min-width: 260px;
    font-size: 17px;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .btn { min-width: 220px; height: 50px; }
}
