/* ==========================================================================
   Emarka landing
   Structure: tokens, base, shared components, then one section per block
   (each block keeps its own media queries next to it), HubSpot form last.

   Breakpoints (desktop-first, max-width):
     991px  tablet and below  (header turns into a burger, grids 4 -> 3 columns)
     767px  large phone       (grids 3 -> 2 columns, cards stack)
     479px  phone
     359px  narrow phone      (header only)
     540px  HubSpot form only (pills in two columns)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --color-ink: #02251f;
  --color-ink-soft: #02251fb3;
  --color-forest: #005742;
  --color-mint: #c3e7c3;
  --color-lime: #dcfb92;
  --color-page: #f2f2f1;
  --color-white: #fff;
  --color-muted: #5b6d6a;
  --color-line: #e1e1e1;
  --color-line-green: #95c095;
  --color-menu: #c8c8c8;

  --font-body: Syne, sans-serif;
  --font-display: Gordita, Arial, sans-serif;

  --fs-hero: 80px; /* clamp()ed below 992px */
  --fs-title: 64px;
  --fs-body: 24px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-15: 60px;
  --space-25: 100px;

  --radius-sm: 8px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --radius-pill: 100px;

  --shadow-hover: 0 0 8px #0000004d;

  --gutter: 60px;
  --header-h: 70px;
}

@media (max-width: 991px) {
  :root {
    --fs-hero: clamp(44px, 13vw, 80px);
    --gutter: 16px;
    --header-h: 60px;
  }
}

/* ---------- Fonts ---------- */
@font-face {
  font-family: Syne;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/Syne-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: Syne;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/Syne-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Gordita;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/Gordita-Medium-latin.woff2") format("woff2");
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 130%;
}

/* The landing page body is 20px below 992px; legal pages and 404 stay 24px. */
.home {
  background-color: var(--color-page);
}

@media (max-width: 991px) {
  .home {
    --fs-body: 20px;
  }
}

main,
header,
footer,
nav,
section {
  display: block;
}

img {
  display: inline-block;
  max-width: 100%;
  border: 0;
  vertical-align: middle;
}

:where(img[width][height]) {
  width: auto;
  height: auto;
}

a {
  padding-top: 8px;
  padding-bottom: 8px;
  background-color: transparent;
  color: var(--color-ink);
  text-decoration: underline;
}

a:hover {
  color: var(--color-forest);
  outline: 0;
}

strong {
  font-weight: bold;
}

h1,
h2 {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 500;
}

h1 {
  margin: 0 0 10px;
  color: var(--color-ink);
  line-height: 90%;
}

h2 {
  margin: var(--space-5) 0;
  line-height: 100%;
  text-align: center;
}

p {
  margin: 0 0 10px;
}

ul,
ol {
  margin: 0 0 10px;
  padding-left: 40px;
}

@media (max-width: 991px) {
  h1 {
    margin-bottom: var(--space-3);
    font-size: 50px;
    line-height: 100%;
    text-align: center;
  }

  h2 {
    margin-top: 0;
    margin-bottom: var(--space-4);
    font-size: 40px;
  }
}

@media (max-width: 479px) {
  h2 {
    margin-bottom: 10px;
    font-size: 32px;
  }
}

/* Form controls (the HubSpot form is built from these) */
button,
input,
select,
textarea {
  margin: 0;
  color: inherit;
  font: inherit;
}

button {
  overflow: visible;
  border: 0;
  text-transform: none;
  cursor: pointer;
  -webkit-appearance: button;
  appearance: button;
}

input {
  line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
  padding: 0;
}

textarea {
  overflow: auto;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  color: var(--color-white);
  font-size: 16px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--color-forest);
  outline-offset: 3px;
}

.problems :focus-visible,
.customers :focus-visible,
.platforms :focus-visible,
.lead-form :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--color-lime);
}

section[id],
#Form {
  scroll-margin-top: var(--header-h);
}

.is-hidden {
  display: none;
}

/* ---------- Shared layout ---------- */

/* Sections: a flex column; the container inside centres itself */
.hero,
.logos,
.offers,
.customers,
.cashback,
.platforms,
.problems,
.team,
.lead-form,
.legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 130%;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

/* Stack: heading + content with a gap */
.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  width: 100%;
}

@media (max-width: 991px) {
  .stack {
    gap: var(--space-3);
  }
}

/* Light, dark and green section backgrounds with their vertical rhythm */
.offers,
.cashback,
.team {
  padding: var(--space-25) 0;
  background-color: var(--color-page);
}

.customers,
.problems {
  padding: var(--space-25) 0;
  background-color: var(--color-ink);
  color: var(--color-mint);
}

.platforms,
.lead-form {
  padding: var(--space-25) 0;
  background-color: var(--color-forest);
  color: var(--color-mint);
}

.lead-form {
  padding-bottom: 0;
}

@media (max-width: 991px) {
  .offers,
  .cashback,
  .team,
  .customers,
  .problems,
  .platforms {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .lead-form {
    padding-top: 50px;
  }
}

/* Centred intro: title + one line of text */
.intro {
  max-width: 900px;
  text-align: center;
}

.text-muted {
  color: var(--color-ink-soft);
}

@media (max-width: 767px) {
  .intro,
  .title-box {
    padding-right: var(--space-4);
    padding-left: var(--space-4);
  }
}

@media (max-width: 479px) {
  .intro {
    padding-right: 0;
    padding-left: 0;
  }
}

/* Title column used by the hero, the problems block and the legal pages */
.title-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 991px) {
  .title-box {
    align-items: center;
  }
}

@media (max-width: 479px) {
  .title-box {
    padding: 0 0 var(--space-3);
  }
}

/* Small footnote under a block */
.note {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.note__text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-4);
  color: var(--color-muted);
  font-size: 16px;
  line-height: 130%;
  text-align: center;
}

@media (max-width: 991px) {
  .note {
    padding-top: var(--space-6);
  }
}

/* White tag above the hero and legal titles */
.badge {
  display: flex;
  padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
}

/* Count-up numbers and card figures */
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.stat__value {
  margin: var(--space-5) 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 100%;
  text-align: center;
}

/* ---------- Buttons ---------- */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px var(--space-6) 7px;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--color-ink);
  font-family: var(--font-display);
  text-decoration: none;
  text-transform: uppercase;
  word-spacing: 0.12em;
}

/* Header button */
.button--sm {
  height: 48px;
  padding-right: var(--space-4);
  padding-left: var(--space-4);
  font-size: 14px;
  transition:
    color 0.3s,
    background-color 0.3s;
}

.button--sm:hover {
  background-color: var(--color-forest);
  color: var(--color-white);
}

/* Hero buttons */
.button--lg {
  height: 60px;
  font-size: 18px;
}

.button--primary {
  width: 100%;
  padding-right: var(--space-8);
  padding-left: var(--space-8);
  border-width: 0;
  background-color: var(--color-lime);
  transition:
    color 0.3s,
    background-color 0.3s;
}

.button--primary:hover {
  background-color: var(--color-forest);
  color: var(--color-white);
}

.button--secondary {
  color: var(--color-white);
  transition: color 0.3s;
}

.button--secondary:hover {
  background-color: var(--color-ink);
  color: var(--color-lime);
}

@media (max-width: 991px) {
  .button--sm {
    height: 44px;
  }

  .button--lg {
    height: 50px;
  }

  .button--primary {
    font-size: 16px;
  }
}

@media (max-width: 479px) {
  .button--sm {
    height: 40px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 13px;
  }

  .button--secondary {
    color: #04241e;
  }

  .button--secondary:hover {
    background-color: var(--color-ink);
    color: var(--color-white);
  }
}

@media (max-width: 359px) {
  .button--sm {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 12px;
  }
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: var(--header-h);
  border-bottom: 1px solid #e0e0e0;
  background-color: #f2f2f1b3;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  font-size: 16px;
  font-weight: 500;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-header__brand {
  display: flex;
  align-items: center;
  width: 200px;
}

.nav {
  display: flex;
}

.nav__link {
  display: inline-block;
  padding: var(--space-5);
  color: #222;
  text-align: left;
  text-decoration: none;
  transition: all 0.3s;
}

.nav__link:hover {
  background-color: transparent;
  color: var(--color-forest);
}

.menu-toggle {
  display: none;
  padding: 18px;
  background: transparent;
  font-size: 24px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.menu-toggle.is-open {
  background-color: var(--color-menu);
  color: var(--color-white);
}

/* Burger drawn in CSS (no icon font) */
.menu-toggle__icon {
  display: block;
  width: 20px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) bottom / 100% 2px no-repeat;
  color: var(--color-ink);
}

@keyframes nav-drop {
  from {
    transform: translateY(-12px);
  }

  to {
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .site-header__brand {
    width: 140px;
  }

  .site-header .button {
    margin-left: auto;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-right: -10px;
  }

  .site-header.is-open .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    min-width: 200px;
    background: var(--color-menu);
    text-align: center;
    animation: nav-drop 0.4s ease;
  }

  .site-header.is-open .nav__link {
    display: block;
  }
}

@media (max-width: 767px) {
  .site-header__brand {
    padding-left: 10px;
  }
}

@media (max-width: 479px) {
  .site-header__bar {
    gap: var(--space-2);
  }

  .site-header__brand {
    flex: none;
    width: 120px;
    min-width: 0;
    padding-left: 0;
  }
}

@media (max-width: 359px) {
  .site-header__brand {
    width: 100px;
  }

  .menu-toggle {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header.is-open .nav {
    animation: none;
  }
}

/* ---------- Hero (also the frame of the legal pages) ---------- */
.hero,
.legal {
  background-color: var(--color-page);
}

.hero__inner,
.legal__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.hero__content,
.legal__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-10);
  width: 100%;
  height: 100%;
  margin-top: var(--space-10);
  margin-bottom: var(--space-15);
}

.hero__title {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.hero__title-main {
  display: block;
  margin-bottom: var(--space-5);
  background-image: linear-gradient(27deg, #000 77%, var(--color-forest));
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--color-ink);
  -webkit-text-fill-color: transparent;
  font-size: var(--fs-hero);
  font-weight: 500;
  letter-spacing: -3px;
  line-height: 100%;
}

.hero__title-sub {
  display: block;
  margin-bottom: var(--space-5);
  font-family: var(--font-body);
  font-size: 48px;
  font-weight: 400;
  line-height: 100%;
}

.hero__actions {
  display: flex;
  gap: var(--space-2);
}

.hero__buttons {
  display: flex;
  border-radius: 30px;
  background-color: var(--color-ink);
  box-shadow: 0 2px 8px #02251f66;
}

.hero__media {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-10);
  width: 70%;
  margin-top: var(--space-10);
  margin-bottom: 80px;
}

.hero__image {
  width: 130%;
  transition: transform 1s;
}

.hero__image:hover {
  transform: scale(1.03);
}

@media (max-width: 991px) {
  .hero__inner,
  .legal__inner {
    flex-direction: column;
    padding-right: 0;
    padding-left: 0;
  }

  .hero__content,
  .legal__content {
    align-items: center;
    gap: var(--space-8);
    margin-bottom: 0;
  }

  .hero__media {
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
  }

  .hero__image {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .hero__title-main {
    word-spacing: 0.1em;
  }

  .hero__lead {
    text-align: center;
  }
}

@media (max-width: 479px) {
  .hero__content,
  .legal__content {
    padding-right: var(--space-4);
    padding-left: var(--space-4);
  }

  .hero__title-main {
    letter-spacing: -2px;
  }

  .hero__title-sub {
    font-size: 30px;
  }

  .hero__lead {
    margin-top: var(--space-5);
    margin-bottom: var(--space-10);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__buttons {
    flex-direction: column;
    gap: var(--space-3);
    background-color: transparent;
    box-shadow: none;
  }

  .hero__media {
    margin-top: var(--space-8);
  }

  .hero__image {
    margin-bottom: var(--space-10);
  }
}

/* ---------- Logos (marquee) ---------- */
.logos {
  align-items: flex-start;
  gap: var(--space-10);
  padding: var(--space-10) 0 80px;
  background-color: var(--color-white);
  overflow: clip;
}

.logos__title {
  width: 100%;
  margin: 0;
  text-align: center;
}

.logos__marquee {
  display: flex;
  width: 100%;
}

.logos__track {
  display: flex;
  align-items: center;
  gap: 70px;
  margin-left: var(--space-15);
}

.logos__set {
  display: flex;
  align-items: center;
  gap: 70px;
}

.logos__item {
  display: flex;
  width: 120px;
}

.logos__img--wide {
  max-width: 120%;
}

@keyframes logo-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-1140px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .logos__track {
    animation: logo-marquee 40s linear infinite;
  }
}

@media (max-width: 991px) {
  .logos {
    gap: var(--space-8);
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

@media (max-width: 479px) {
  .logos {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
  }

  .logos__track {
    gap: var(--space-15);
  }

  @keyframes logo-marquee {
    to {
      transform: translateX(-1130px);
    }
  }
}

/* ---------- Offers of the month ---------- */
.offers__title,
.customers__title,
.cashback__title {
  letter-spacing: -2px;
}

.offers__cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  width: 100%;
}

.offers__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 600px;
  padding: var(--space-15) var(--space-10);
  border-radius: var(--radius-lg);
  background-position: 50%;
  background-size: cover;
  color: var(--color-white);
}

.offers__card--netflix {
  justify-content: space-between;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("/images/1.avif");
}

.offers__card--prime {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("/images/2.avif");
}

.offers__card--google {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("/images/3.avif");
}

.offers__logo {
  height: 100px;
}

.offers__logo-img--netflix {
  height: 40px;
}

.offers__logo-img--prime {
  height: 70px;
}

.offers__logo-img--google {
  height: 50px;
}

.stat__value--lg {
  margin: var(--space-3) 0 var(--space-1);
  font-size: 80px;
  letter-spacing: -2px;
}

@media (max-width: 991px) {
  .offers__title,
  .customers__title,
  .cashback__title {
    font-size: 50px;
  }

  .offers__cards {
    gap: var(--space-3);
  }

  .offers__card {
    height: 300px;
    padding: var(--space-8);
  }

  .offers__logo {
    height: 50px;
  }

  .offers__logo-img--netflix {
    height: 30px;
  }

  .offers__logo-img--prime {
    height: 50px;
  }

  .offers__logo-img--google {
    height: 38px;
  }

  .stat__value--lg {
    font-size: 40px;
  }
}

@media (max-width: 767px) {
  .offers__cards {
    flex-wrap: wrap;
  }

  .offers__title,
  .customers__title,
  .cashback__title,
  .platforms__title,
  .lead-form__title,
  .problems__title,
  .problems__title-accent,
  .team__title {
    word-spacing: 0.1em;
  }
}

@media (max-width: 479px) {
  .offers__title {
    font-size: 40px;
  }

  .offers__title,
  .customers__title,
  .cashback__title {
    letter-spacing: -1px;
  }
}

/* ---------- Customers ---------- */
.customers__title {
  color: var(--color-mint);
}

.customers__grid {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  width: 100%;
  padding-top: var(--space-5);
}

.customers__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) 0;
}

.customers__cell--flush {
  padding: 0;
}

/* Logo height at desktop, below 768px and below 480px */
.customers__logo {
  height: var(--h);
}

.customers__logo--flo {
  --h: 50px;
  --h-md: 40px;
  --h-sm: 32px;
}

.customers__logo--simple {
  --h: 36px;
  --h-md: 32px;
  --h-sm: 24px;
}

.customers__logo--zing {
  --h: 38px;
  --h-md: 36px;
  --h-sm: 24px;
}

.customers__logo--eve {
  --h: 40px;
  --h-md: 40px;
  --h-sm: 30px;
}

.customers__logo--finom {
  --h: 26px;
  --h-md: 24px;
  --h-sm: 20px;
}

.customers__logo--my-games {
  --h: 46px;
  --h-md: 38px;
  --h-sm: 30px;
}

.customers__logo--playrix {
  --h: 38px;
  --h-md: 32px;
  --h-sm: 30px;
}

.customers__logo--fxpro {
  --h: 34px;
  --h-md: 32px;
  --h-sm: 25px;
}

.customers__logo--profit-lobby {
  --h: 40px;
  --h-md: 50px;
  --h-sm: 24px;
}

.customers__logo--tonybet {
  --h: 36px;
  --h-md: 32px;
  --h-sm: 24px;
}

.customers__logo--candy {
  --h: 38px;
  --h-md: 36px;
  --h-sm: 28px;
}

.customers__logo--joom {
  --h: 38px;
  --h-md: 32px;
  --h-sm: 24px;
}

.customers__logo--playgama {
  --h: 40px;
  --h-md: 50px;
  --h-sm: 24px;
}

.customers__logo--property-finder {
  --h: 60px;
  --h-md: 50px;
  --h-sm: 40px;
}

.customers__logo--adskill {
  --h: 38px;
  --h-md: 32px;
  --h-sm: 24px;
}

.customers__logo--nexum {
  --h: 38px;
  --h-md: 32px;
  --h-sm: 24px;
}

@media (max-width: 991px) {
  .customers__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 767px) {
  .customers__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .customers__logo {
    height: var(--h-md);
  }
}

@media (max-width: 479px) {
  .customers__title {
    font-size: 32px;
  }

  .customers__grid {
    grid-template-rows: 102px;
    padding-top: 0;
  }

  .customers__logo {
    height: var(--h-sm);
  }
}

/* ---------- Cashback ---------- */
.cashback__pool {
  max-width: 900px;
  margin-top: var(--space-10);
  text-align: center;
}

.cashback__pool-value {
  margin: 0;
  font-family: var(--font-body);
  font-size: 40px;
  font-weight: 500;
  line-height: 100%;
  text-align: center;
}

.cashback__grid {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  width: 100%;
}

.bonus-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 30px var(--space-5);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  transition: box-shadow 0.5s;
}

.bonus-card:hover {
  box-shadow: var(--shadow-hover);
}

.bonus-card__head {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-line);
}

.bonus-card__label {
  font-size: 32px;
  font-weight: 600;
  text-align: left;
}

.bonus-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: -4px;
}

.bonus-card__hint {
  color: var(--color-muted);
}

.bonus-card__amount {
  align-self: center;
  width: 100%;
  font-size: 24px;
  font-weight: 600;
}

@media (max-width: 991px) {
  .cashback__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cashback__pool-value {
    font-size: 30px;
  }

  .bonus-card__label {
    font-size: 24px;
  }

  .bonus-card__hint {
    margin-bottom: var(--space-3);
  }

  .bonus-card__amount {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .cashback__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {
  .cashback__title {
    font-size: 30px;
  }

  .cashback__pool {
    margin-top: var(--space-5);
  }

  .cashback__pool-value {
    font-size: 24px;
  }

  .cashback__grid {
    gap: var(--space-4);
  }

  .bonus-card {
    padding-right: 10px;
  }

  .bonus-card__label {
    margin-bottom: 0;
    text-align: center;
  }

  .bonus-card__body {
    gap: 0;
  }

  .bonus-card__hint {
    margin-bottom: 6px;
  }

  .bonus-card__amount {
    font-family: var(--font-display);
    font-weight: 500;
  }
}

/* ---------- Platforms ---------- */
.platforms__title,
.lead-form__title {
  margin-top: 0;
  letter-spacing: -2px;
}

.platforms__grid {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  width: 100%;
  margin-top: var(--space-10);
}

.platforms .note__text {
  color: var(--color-mint);
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-5) var(--space-5) 30px;
  border-radius: var(--radius-md);
  background-color: var(--color-mint);
  color: var(--color-ink);
  font-size: 16px;
  line-height: 130%;
  transition: box-shadow 0.5s;
}

.platform-card:hover {
  box-shadow: 0 0 8px #00000080;
}

.platform-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-line-green);
}

.platform-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  transition: transform 0.3s;
}

.platform-card__icon:hover {
  transform: scale(1.07);
}

.platform-card__name,
.problem-card__title {
  margin: 0;
  font-weight: 600;
  line-height: 130%;
}

.platform-card__name {
  align-self: center;
  width: 100%;
  font-size: 24px;
}

.platform-card__note-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: -4px;
}

.platform-card__note {
  margin-top: 10px;
  padding-left: 52px;
}

@media (max-width: 991px) {
  .platforms__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  .platform-card__icon {
    width: 36px;
    height: 36px;
  }

  .platform-card__name {
    font-size: 20px;
  }

  .platform-card__note {
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .platforms__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platforms__title,
  .lead-form__title {
    font-size: 50px;
  }
}

@media (max-width: 479px) {
  .platforms__title,
  .lead-form__title {
    font-size: 30px;
    letter-spacing: -1px;
  }

  .platforms__grid {
    margin-top: var(--space-5);
  }

  .platform-card__head {
    flex-wrap: wrap;
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-3);
  }

  .platform-card__name {
    font-family: var(--font-display);
    font-weight: 500;
  }
}

/* ---------- Problems ---------- */
.problems {
  background-image: url("/images/bg_ng.avif");
  background-repeat: no-repeat;
  background-size: 1190px;
}

.problems__inner {
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
}

.problems__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-10);
  width: 100%;
  height: 100%;
}

.problems__title {
  margin-top: 0;
  color: var(--color-mint);
  letter-spacing: -2px;
  text-align: left;
}

.problems__title-accent {
  display: block;
  margin-top: var(--space-6);
  color: var(--color-lime);
  font-family: var(--font-body);
  letter-spacing: 0;
  text-align: left;
}

.problems__cards {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-6);
  width: 100%;
  padding-left: var(--space-15);
}

.problem-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-10);
  border-radius: var(--radius-lg);
  background-color: var(--color-mint);
  color: var(--color-ink);
}

.problem-card__icon--entry {
  height: 40px;
  margin-bottom: var(--space-5);
}

.problem-card__icon--slow {
  height: 60px;
  margin-bottom: var(--space-5);
}

.problem-card__icon--scattered {
  height: 50px;
  margin-bottom: 10px;
}

.problem-card__title {
  font-size: 32px;
  text-align: left;
}

@media (max-width: 991px) {
  .problems {
    background-image: none;
  }

  .problems__inner {
    flex-direction: column;
  }

  .problems__title,
  .problems__title-accent {
    text-align: center;
  }

  .problems__cards {
    padding-left: 0;
  }

  .problem-card {
    padding: var(--space-5);
    font-size: 20px;
  }

  .problem-card__icon--entry {
    height: 32px;
  }

  .problem-card__icon--slow {
    height: 50px;
  }

  .problem-card__icon--scattered {
    height: 40px;
  }

  .problem-card__title {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  .problems__title,
  .problems__title-accent {
    font-size: 50px;
  }
}

@media (max-width: 479px) {
  .problems__title,
  .problems__title-accent {
    font-size: 30px;
  }

  .problems__title {
    letter-spacing: -1px;
  }

  .problem-card__title {
    text-align: center;
  }
}

/* ---------- Team and partners ---------- */
.team__title {
  letter-spacing: -2px;
}

.team__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  width: 100%;
}

.team__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 256px;
  margin-top: var(--space-5);
  padding: var(--space-10);
  border-radius: var(--radius-lg);
  background-color: var(--color-mint);
  color: var(--color-ink);
  transition: box-shadow 0.5s;
}

.team__stat:hover {
  box-shadow: 0 0 8px #0057424d;
}

.stat__value--gradient {
  background-image: linear-gradient(59deg, #000 76%, var(--color-forest));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 64px;
  letter-spacing: -2px;
}

.team__partners {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  width: 100%;
  margin-bottom: -20px;
  padding-top: var(--space-10);
}

.team__partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) 0;
}

.team__partner:nth-child(5) {
  grid-column-start: 2;
}

.partners__logo {
  height: var(--h);
}

.partners__logo--google {
  --h: 70px;
  --h-md: 60px;
  --h-sm: 50px;
}

.partners__logo--meta {
  --h: 60px;
  --h-md: 50px;
  --h-sm: 40px;
}

.partners__logo--microsoft {
  --h: 60px;
  --h-md: 50px;
  --h-sm: 40px;
}

.partners__logo--amazon {
  --h: 64px;
  --h-md: 55px;
  --h-sm: 45px;
}

.partners__logo--tiktok {
  --h: 68px;
  --h-md: 55px;
  --h-sm: 45px;
}

.partners__logo--snapchat {
  --h: 60px;
  --h-md: 50px;
  --h-sm: 40px;
}

@media (max-width: 991px) {
  .team__stats {
    gap: var(--space-3);
  }

  .team__stat {
    margin-top: var(--space-3);
    padding: var(--space-8);
  }

  .stat__value--gradient {
    font-size: 40px;
  }

  /* The old layout ended with a row of empty cells; the empty track keeps the same gap */
  .team__partners {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
  }

  .team__partner:nth-child(5) {
    grid-column-start: auto;
  }
}

@media (max-width: 767px) {
  .team__title {
    font-size: 50px;
  }

  .team__stats {
    flex-wrap: wrap;
  }

  .team__stat {
    height: auto;
    margin-top: 0;
  }

  .team__partners {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 7px;
  }

  .partners__logo {
    height: var(--h-md);
  }
}

@media (max-width: 479px) {
  .team__title {
    font-size: 30px;
    letter-spacing: -1px;
  }

  .team__partners {
    margin-bottom: 0;
  }

  .partners__logo {
    height: var(--h-sm);
  }
}

/* ---------- Lead form ---------- */
.lead-form__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  text-align: center;
}

.lead-form__card {
  max-width: 700px;
  margin-top: var(--space-10);
  padding: var(--space-8) var(--space-10);
  border-radius: 20px;
  background-color: var(--color-ink);
  transition: transform 1s;
}

.lead-form__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
}

.lead-form__heading {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}

.lead-form__embed {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  text-align: left;
}

@media (max-width: 991px) {
  .lead-form__card {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .lead-form__card {
    margin-top: var(--space-4);
    padding: var(--space-5) var(--space-4);
  }
}

@media (max-width: 479px) {
  .lead-form__heading {
    text-align: center;
  }
}

/* ---------- Site footer ---------- */
.site-footer {
  padding: var(--space-5) 0 var(--space-6);
  background-color: var(--color-forest);
  color: var(--color-mint);
  line-height: 130%;
}

.site-footer__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 700px;
  margin-top: var(--space-5);
}

.site-footer__main {
  display: flex;
  flex-direction: column;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-8);
}

.site-footer__link {
  margin-right: -12px;
  margin-left: -12px;
  padding-right: var(--space-3);
  padding-left: var(--space-3);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer__link:hover,
.site-footer__link[aria-current="page"] {
  color: var(--color-lime);
}

.site-footer__copy {
  margin: 0;
  color: #ffffffcc;
  font-size: 16px;
  font-weight: 400;
}

@media (max-width: 479px) {
  .site-footer__row {
    flex-direction: column;
    align-items: center;
  }

  .site-footer__row > .site-footer__link {
    order: -1;
  }

  .site-footer__main {
    align-items: center;
  }

  .site-footer__nav {
    justify-content: center;
  }

  .site-footer__copy {
    text-align: center;
  }
}

/* ---------- Legal pages ---------- */
.legal__title {
  text-transform: uppercase;
}

.legal__text,
.legal__cell {
  width: 100%;
  font-size: 18px;
  line-height: 140%;
  overflow-wrap: anywhere;
}

.legal__text ol,
.legal__text ul {
  overflow: hidden;
}

.legal-table {
  display: grid;
  width: 100%;
}

.legal-table--4 {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(8, auto);
  grid-auto-rows: 1fr;
  gap: var(--space-1);
  padding: var(--space-1);
}

.legal-table--2 {
  grid-template-columns: 0.5fr 1fr;
  grid-template-rows: repeat(7, auto);
  gap: var(--space-4);
}

@media (max-width: 991px) {
  .legal__text,
  .legal__cell {
    font-size: 16px;
  }
}

@media (max-width: 479px) {
  .legal__title {
    font-size: 32px;
  }

  .legal__text,
  .legal__cell {
    font-size: 15px;
  }
}

/* ---------- 404 ---------- */
.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 70px);
  padding: 48px var(--space-4);
  background-color: var(--color-page);
}

.not-found__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.not-found__code {
  align-self: center;
  margin: 0;
  font-size: 300px;
  line-height: 100%;
}

.not-found__text {
  margin: 0 0 var(--space-6);
  font-size: 20px;
}

@media (max-width: 479px) {
  .not-found__code {
    font-size: 150px;
  }
}

/* ---------- HubSpot form (#hubspot-form; classes come from HubSpot) ---------- */
.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289,
.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 * {
  position: static !important;
  float: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  order: 0 !important;
  z-index: auto !important;
  box-sizing: border-box;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  border-radius: 24px;
  background: #02251f;
  font-family: inherit;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 > .hs-form-field {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .hs-form-field {
  height: auto !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  font-weight: inherit !important;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 > .legal-consent-container,
.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 > .hs_submit {
  width: 100%;
  margin: 0 !important;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 > .hs_firstname,
.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 > .hs_lastname {
  width: calc(50% - 8px) !important;
}

/* Visually hidden labels, still read by screen readers */
.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .hs_firstname > label,
.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .hs_lastname > label,
.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .hs_email > label,
.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 div[class*="0-2/name"] > label {
  display: block !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 input.hs-input[type="text"],
.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 input.hs-input[type="email"] {
  display: block !important;
  width: 100% !important;
  height: 48px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  background: #ffffff;
  font-size: 16px;
  color: #141414;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 input.hs-input::placeholder {
  color: #6b6b6b;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 input.hs-input:focus {
  outline: 2px solid #dcfb92;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .hs_email {
  margin-bottom: 14px !important;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 div[class*="0-2/products"] > label {
  display: block !important;
  margin-bottom: 8px !important;
  color: #c3e7c3;
  font-size: 18px;
  font-weight: 400;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .hs-form-required {
  display: none;
}

/* Platforms as pills */
.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 ul.inputs-list.multi-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 ul.inputs-list.multi-container > li.hs-form-checkbox {
  display: block !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .hs-form-checkbox-display {
  display: inline-flex !important;
  align-items: center;
  min-height: 32px;
  margin: 0 !important;
  padding: 4px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .hs-form-checkbox-display input.hs-input {
  display: inline-block !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .hs-form-checkbox-display:has(input:focus-visible) {
  outline: 2px solid #dcfb92 !important;
  outline-offset: 2px;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .hs-form-checkbox-display:has(input:checked) {
  border-color: #dcfb92;
  background: #dcfb92;
  color: #02251f;
  font-weight: 400;
}

@media (max-width: 540px) {
  .hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 > .hs_firstname,
  .hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 > .hs_lastname {
    width: 100% !important;
  }

  form.hs-form.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 ul.inputs-list.multi-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  form.hs-form.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .hs-form-checkbox-display {
    display: flex !important;
    height: 100%;
    padding: 4px 10px;
    font-size: 13px;
  }
}

/* Consent checkbox and links */
.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .legal-consent-container ul.inputs-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 > .legal-consent-container {
  margin: 6px 0 !important;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .hs-form-booleancheckbox-display {
  display: flex !important;
  align-items: flex-start;
  gap: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .hs-form-booleancheckbox-display input.hs-input {
  -webkit-appearance: none;
  appearance: none;
  display: block !important;
  flex-shrink: 0;
  width: 28px !important;
  height: 28px !important;
  margin-top: 2px !important;
  margin-right: 10px !important;
  border: none;
  border-radius: 6px;
  background: #6f867b;
  opacity: 1;
  cursor: pointer;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289
  .hs-form-booleancheckbox-display
  input.hs-input:checked {
  background-color: #dcfb92;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2302251f' d='M6.2 11.6 3 8.4l1.1-1.1 2.1 2.1 4.7-4.7L12 5.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .legal-consent-container a {
  color: #ffffff;
  font-weight: 300;
  text-decoration: underline;
}

/* Errors */
.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .hs-error-msgs {
  list-style: none !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .hs-error-msg,
.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .hs-error-msgs label,
.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 .legal-consent-container .hs-error-msgs label {
  color: #ffb4b4 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

/* Submit */
.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 input.hs-button {
  display: block !important;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: #dcfb92;
  color: #02251f;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.1s ease;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 input.hs-button:hover {
  background: #c8f070;
}

.hs-form-f488eaf8-033b-42d3-9b34-11f339a0b289 input.hs-button:active {
  transform: scale(0.98) !important;
}
