/*
Theme Name: AdScale Partners
Theme URI: https://adscalepartners.net
Author: AdScale Partners
Author URI: https://adscalepartners.net
Description: Custom WordPress theme for AdScale Partners, an AI & SaaS affiliate and partner network.
Version: 2.0.0
Text Domain: adscale-partners
*/

/* =========================================================
   DESIGN TOKENS
========================================================= */

:root {
  --bg: #f8faff;
  --bg-soft: #f3f6ff;
  --surface: #ffffff;
  --surface-soft: #f8fafc;

  --dark: #0b1220;
  --navy: #101936;
  --text: #263247;
  --muted: #68758c;

  --blue: #315be8;
  --blue-dark: #2446c6;
  --blue-light: #edf3ff;
  --blue-border: #cad8ff;

  --green: #16a34a;

  --border: #e4e9f2;
  --border-strong: #d7deea;

  --shadow-sm:
    0 8px 24px rgba(15, 23, 42, 0.05);

  --shadow-md:
    0 18px 48px rgba(15, 23, 42, 0.08);

  --shadow-blue:
    0 18px 40px rgba(49, 91, 232, 0.22);

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;

  --container: 1180px;
}


/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}


/* =========================================================
   GLOBAL
========================================================= */

.container {
  width: min(
    var(--container),
    calc(100% - 48px)
  );

  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section:nth-of-type(even) {
  background: var(--surface);
}

.section-title {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-title h2 {
  margin: 16px 0 14px;

  font-size: clamp(
    34px,
    4vw,
    52px
  );

  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--dark);
}

.section-title h3 {
  margin: 0 0 12px;
  font-size: 28px;
  color: var(--dark);
}

.section-title p {
  margin: 0;
  max-width: 700px;

  font-size: 18px;
  color: var(--muted);
}


/* =========================================================
   BADGE
========================================================= */

.badge {
  display: inline-flex;
  align-items: center;

  padding: 8px 14px;

  border: 1px solid var(--blue-border);
  border-radius: 999px;

  background: var(--blue-light);

  color: var(--blue-dark);

  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;

  background:
    rgba(255, 255, 255, 0.92);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom:
    1px solid rgba(226, 232, 240, 0.9);
}

.header-inner {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.logo {
  flex: 0 0 auto;

  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.04em;

  color: var(--blue);
}

.nav {
  display: flex;
  align-items: center;

  gap: 25px;

  font-size: 14px;
  font-weight: 700;

  color: #344158;
}

.nav a {
  position: relative;

  display: inline-flex;
  align-items: center;

  min-height: 40px;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.nav a:not(.nav-cta):hover {
  color: var(--blue);
}

.nav a:not(.nav-cta)::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 3px;

  width: 0;
  height: 2px;

  background: var(--blue);
  border-radius: 99px;

  transform: translateX(-50%);

  transition: width 0.2s ease;
}

.nav a:not(.nav-cta):hover::after {
  width: 70%;
}

.nav-cta {
  padding: 10px 18px;

  background:
    linear-gradient(
      135deg,
      var(--blue),
      #4269ed
    );

  color: #ffffff !important;

  border-radius: 999px;

  box-shadow:
    0 10px 28px
    rgba(49, 91, 232, 0.25);
}

.nav-cta:hover {
  transform: translateY(-1px);

  box-shadow:
    0 14px 32px
    rgba(49, 91, 232, 0.30);
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  overflow: hidden;

  padding:
    115px 0 105px;

  background:
    radial-gradient(
      circle at 82% 20%,
      rgba(68, 107, 238, 0.18),
      transparent 32%
    ),
    radial-gradient(
      circle at 16% 85%,
      rgba(124, 151, 255, 0.11),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f7f9ff 100%
    );
}

.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(49, 91, 232, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(49, 91, 232, 0.035) 1px,
      transparent 1px
    );

  background-size:
    52px 52px;

  mask-image:
    linear-gradient(
      to bottom,
      transparent,
      black 25%,
      black 75%,
      transparent
    );
}

.hero-grid {
  position: relative;
  z-index: 2;

  display: grid;

  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(360px, 0.9fr);

  gap: 78px;

  align-items: center;
}

.hero h1 {
  max-width: 720px;

  margin:
    23px 0 22px;

  font-size:
    clamp(48px, 6vw, 76px);

  line-height: 0.99;

  letter-spacing:
    -0.065em;

  color: var(--dark);
}

.hero p {
  max-width: 680px;

  margin:
    0 0 34px;

  font-size: 19px;
  line-height: 1.75;

  color: var(--muted);
}


/* =========================================================
   BUTTONS
========================================================= */

.hero-actions {
  display: flex;
  align-items: center;

  gap: 14px;

  flex-wrap: wrap;

  margin-top: 30px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  min-height: 50px;

  padding:
    13px 22px;

  border-radius: 13px;

  font-size: 15px;
  font-weight: 850;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.btn-primary {
  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      var(--blue),
      #4269ed
    );

  box-shadow:
    var(--shadow-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);

  background:
    linear-gradient(
      135deg,
      var(--blue-dark),
      var(--blue)
    );

  box-shadow:
    0 21px 44px
    rgba(49, 91, 232, 0.28);
}

.btn-secondary {
  color: var(--dark);

  background:
    rgba(255, 255, 255, 0.92);

  border:
    1px solid var(--border-strong);

  box-shadow:
    0 7px 20px
    rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
  transform: translateY(-2px);

  border-color:
    var(--blue-border);

  box-shadow:
    var(--shadow-sm);
}


/* =========================================================
   HERO NETWORK CARD
========================================================= */

.hero-card {
  position: relative;

  padding: 22px;

  background:
    rgba(255, 255, 255, 0.82);

  border:
    1px solid rgba(255, 255, 255, 0.9);

  border-radius:
    var(--radius-lg);

  box-shadow:
    0 30px 80px
    rgba(15, 23, 42, 0.11);

  backdrop-filter:
    blur(18px);
}

.hero-card::before {
  content: "";

  position: absolute;

  inset: -1px;

  border-radius:
    inherit;

  padding: 1px;

  background:
    linear-gradient(
      145deg,
      rgba(49, 91, 232, 0.30),
      rgba(255, 255, 255, 0.3)
    );

  pointer-events: none;

  opacity: 0.5;
}

.metric {
  position: relative;

  padding:
    24px 24px;

  margin-bottom: 14px;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f8faff
    );

  border:
    1px solid var(--border);

  border-radius:
    19px;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.metric:last-child {
  margin-bottom: 0;
}

.metric:hover {
  transform:
    translateY(-3px);

  border-color:
    var(--blue-border);

  box-shadow:
    var(--shadow-sm);
}

.metric strong {
  display: block;

  margin-bottom: 7px;

  font-size: 28px;
  line-height: 1.15;

  letter-spacing:
    -0.035em;

  color: var(--dark);
}

.metric span {
  display: block;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.65;
}


/* =========================================================
   TRUST / TWO-SIDED NETWORK
========================================================= */

.trust-section {
  background:
    radial-gradient(
      circle at 5% 10%,
      rgba(49, 91, 232, 0.07),
      transparent 30%
    ),
    #ffffff;
}

.trust-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 22px;
}

.trust-card {
  position: relative;

  padding: 30px;

  background:
    rgba(255, 255, 255, 0.94);

  border:
    1px solid var(--border);

  border-radius:
    var(--radius-md);

  box-shadow:
    var(--shadow-sm);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.trust-card:hover {
  transform:
    translateY(-5px);

  border-color:
    var(--blue-border);

  box-shadow:
    var(--shadow-md);
}

.trust-icon {
  width: 46px;
  height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 21px;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      var(--blue-light),
      #e8efff
    );

  color: var(--blue);

  font-weight: 900;
  font-size: 14px;
}

.trust-card h3 {
  margin:
    0 0 11px;

  font-size: 22px;

  letter-spacing:
    -0.025em;

  color: var(--dark);
}

.trust-card p {
  margin: 0;

  color: var(--muted);

  line-height: 1.72;
}


/* =========================================================
   FEATURE CARDS
========================================================= */

.cards {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 22px;
}

.card {
  position: relative;

  min-height: 180px;

  padding: 29px;

  background:
    var(--surface);

  border:
    1px solid var(--border);

  border-radius:
    var(--radius-md);

  box-shadow:
    var(--shadow-sm);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 28px;

  width: 42px;
  height: 3px;

  border-radius:
    0 0 99px 99px;

  background:
    var(--blue);

  opacity: 0;

  transition:
    opacity 0.22s ease;
}

.card:hover {
  transform:
    translateY(-5px);

  border-color:
    var(--blue-border);

  box-shadow:
    var(--shadow-md);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin:
    0 0 11px;

  color: var(--dark);

  font-size: 21px;

  letter-spacing:
    -0.02em;
}

.card p {
  margin: 0;

  color: var(--muted);

  line-height: 1.72;
}


/* =========================================================
   MARKETPLACE SECTION
========================================================= */

#marketplace {
  position: relative;

  background:
    linear-gradient(
      180deg,
      #f7f9ff 0%,
      #ffffff 100%
    );
}

#marketplace .card {
  min-height: 165px;
}


/* =========================================================
   HOW IT WORKS
========================================================= */

#how-it-works {
  background:
    var(--surface);
}

.process {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 18px;
}

.step {
  position: relative;

  padding: 28px;

  background:
    #ffffff;

  border:
    1px solid var(--border);

  border-radius:
    var(--radius-md);

  box-shadow:
    var(--shadow-sm);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.step:hover {
  transform:
    translateY(-4px);

  border-color:
    var(--blue-border);
}

.step-number {
  width: 42px;
  height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 22px;

  border-radius: 13px;

  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      var(--blue),
      #5274ed
    );

  box-shadow:
    0 9px 22px
    rgba(49, 91, 232, 0.20);

  font-weight: 900;
}

.step h3 {
  margin:
    0 0 10px;

  color:
    var(--dark);

  font-size:
    21px;
}

.step p {
  margin: 0;

  color:
    var(--muted);

  line-height:
    1.7;
}


/* =========================================================
   PRICING
========================================================= */

#pricing {
  background:
    linear-gradient(
      180deg,
      #f7f9ff,
      #ffffff
    );
}

.pricing-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 22px;

  align-items: stretch;
}

.price-card {
  position: relative;

  padding: 32px;

  background:
    #ffffff;

  border:
    1px solid var(--border);

  border-radius:
    26px;

  box-shadow:
    var(--shadow-sm);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.price-card:hover {
  transform:
    translateY(-5px);

  box-shadow:
    var(--shadow-md);
}

.price-card.featured {
  border:
    2px solid var(--blue);

  box-shadow:
    0 25px 60px
    rgba(49, 91, 232, 0.15);
}

.price-card.featured::before {
  content: "Most Popular";

  position: absolute;

  top: 18px;
  right: 18px;

  padding:
    6px 10px;

  border-radius:
    999px;

  background:
    var(--blue-light);

  color:
    var(--blue);

  font-size:
    11px;

  font-weight:
    900;

  text-transform:
    uppercase;

  letter-spacing:
    0.04em;
}

.price-card h3 {
  margin: 0;

  color:
    var(--dark);

  font-size:
    23px;
}

.price-card p {
  color:
    var(--muted);

  line-height:
    1.7;
}

.price {
  margin:
    17px 0;

  color:
    var(--dark);

  font-size:
    42px;

  line-height:
    1;

  font-weight:
    900;

  letter-spacing:
    -0.045em;
}

.price small {
  font-size:
    14px;

  font-weight:
    700;

  color:
    var(--muted);

  letter-spacing:
    0;
}

.list {
  padding: 0;

  margin:
    24px 0 0;

  list-style:
    none;
}

.list li {
  position: relative;

  margin:
    13px 0;

  padding-left:
    27px;

  color:
    var(--muted);
}

.list li::before {
  content: "✓";

  position: absolute;

  left: 0;
  top: 0;

  color:
    var(--green);

  font-weight:
    900;
}


/* =========================================================
   FAQ
========================================================= */

.faq-section {
  background:
    #ffffff;
}

.faq-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;

  margin-top: 32px;
}

.faq-item {
  padding: 27px;

  background:
    #ffffff;

  border:
    1px solid var(--border);

  border-radius:
    var(--radius-md);

  box-shadow:
    var(--shadow-sm);
}

.faq-item h3 {
  margin:
    0 0 10px;

  color:
    var(--dark);

  font-size:
    19px;

  line-height:
    1.4;
}

.faq-item p {
  margin: 0;

  color:
    var(--muted);

  line-height:
    1.75;
}


/* =========================================================
   FINAL CTA
========================================================= */

.contact-form-section {
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(83, 117, 237, 0.15),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      #f6f8ff,
      #eef3ff
    );
}

.contact-form-wrap {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 24px;

  align-items: stretch;
}

.contact-form-copy {
  position: relative;

  overflow: hidden;

  padding: 46px;

  color:
    #ffffff;

  background:
    linear-gradient(
      145deg,
      #111a38,
      #17244b
    );

  border-radius:
    var(--radius-lg);

  box-shadow:
    0 28px 70px
    rgba(15, 23, 42, 0.18);
}

.contact-form-copy::after {
  content: "";

  position: absolute;

  width: 260px;
  height: 260px;

  top: -120px;
  right: -90px;

  border-radius: 50%;

  background:
    rgba(82, 116, 237, 0.25);

  filter:
    blur(4px);
}

.contact-form-copy .badge {
  position: relative;
  z-index: 2;

  background:
    rgba(255, 255, 255, 0.10);

  border-color:
    rgba(255, 255, 255, 0.18);

  color:
    #cbd8ff;
}

.contact-form-copy h2 {
  position: relative;
  z-index: 2;

  margin:
    20px 0 15px;

  font-size:
    clamp(34px, 4vw, 50px);

  line-height:
    1.07;

  letter-spacing:
    -0.045em;
}

.contact-form-copy p {
  position: relative;
  z-index: 2;

  margin: 0;

  max-width: 560px;

  color:
    #cbd5e1;

  font-size:
    17px;

  line-height:
    1.75;
}

.contact-form-card {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 44px;

  background:
    #ffffff;

  border:
    1px solid var(--border);

  border-radius:
    var(--radius-lg);

  box-shadow:
    var(--shadow-md);
}

.contact-form-card h3 {
  margin:
    0 0 10px;

  color:
    var(--dark);

  font-size:
    26px;

  letter-spacing:
    -0.03em;
}

.contact-form-card p {
  margin:
    0 0 12px;

  color:
    var(--muted);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding:
    46px 0;

  background:
    #0b1020;

  color:
    #9da9bd;

  border-top:
    1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 28px;

  flex-wrap: wrap;
}

.footer-brand {
  margin-bottom: 3px;

  color:
    #ffffff;

  font-size:
    20px;

  font-weight:
    900;

  letter-spacing:
    -0.03em;
}

.footer-links {
  display: flex;

  align-items: center;

  gap: 16px;

  flex-wrap: wrap;
}

.footer-links a {
  color:
    #b8c2d3;

  font-size:
    13px;

  font-weight:
    700;

  transition:
    color 0.2s ease;
}

.footer-links a:hover {
  color:
    #ffffff;
}

.footer-email {
  color:
    #9eb6ff;

  font-weight:
    700;
}

.footer-email:hover {
  color:
    #ffffff;
}


/* =========================================================
   LEGAL PAGES
========================================================= */

.legal-page {
  min-height: 70vh;

  padding:
    80px 0;

  background:
    var(--bg);
}

.legal-container {
  width:
    min(
      860px,
      calc(100% - 40px)
    );

  margin:
    0 auto;

  padding:
    48px;

  background:
    #ffffff;

  border:
    1px solid var(--border);

  border-radius:
    var(--radius-lg);

  box-shadow:
    var(--shadow-md);
}

.legal-container h1 {
  margin:
    10px 0 26px;

  color:
    var(--dark);

  font-size:
    clamp(36px, 5vw, 54px);

  line-height:
    1.08;

  letter-spacing:
    -0.045em;
}

.legal-content h2 {
  margin:
    36px 0 12px;

  color:
    var(--dark);

  font-size:
    24px;
}

.legal-content p,
.legal-content li {
  color:
    #536176;

  font-size:
    16px;

  line-height:
    1.75;
}

.legal-content ul {
  padding-left:
    22px;
}

.back-link {
  display:
    inline-flex;

  margin-bottom:
    10px;

  color:
    var(--blue);

  font-weight:
    800;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

a:focus-visible,
button:focus-visible {
  outline:
    3px solid
    rgba(49, 91, 232, 0.32);

  outline-offset:
    3px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {

  .container {
    width:
      min(
        100% - 32px,
        var(--container)
      );
  }

  .header-inner {
    min-height:
      auto;

    padding:
      15px 0;

    flex-direction:
      column;

    align-items:
      flex-start;

    gap:
      10px;
  }

  .nav {
    width:
      100%;

    overflow-x:
      auto;

    gap:
      17px;

    padding:
      2px 0 5px;

    white-space:
      nowrap;

    scrollbar-width:
      none;
  }

  .nav::-webkit-scrollbar {
    display:
      none;
  }

  .nav a {
    flex:
      0 0 auto;
  }

  .hero {
    padding:
      76px 0;
  }

  .hero-grid {
    grid-template-columns:
      1fr;

    gap:
      42px;
  }

  .hero h1 {
    max-width:
      760px;

    font-size:
      clamp(45px, 8vw, 65px);
  }

  .hero-card {
    max-width:
      720px;
  }

  .cards {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .trust-grid {
    grid-template-columns:
      1fr;
  }

  .process {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns:
      1fr;
  }

  .price-card {
    max-width:
      720px;
  }

  .contact-form-wrap {
    grid-template-columns:
      1fr;
  }

  .contact-form-copy,
  .contact-form-card {
    padding:
      36px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

  html {
    scroll-padding-top:
      130px;
  }

  .container {
    width:
      calc(100% - 28px);
  }

  .section {
    padding:
      68px 0;
  }

  .logo {
    font-size:
      20px;
  }

  .nav {
    gap:
      13px;

    font-size:
      13px;
  }

  .nav-cta {
    padding:
      8px 13px;
  }

  .hero {
    padding:
      58px 0 64px;
  }

  .hero h1 {
    margin:
      18px 0 17px;

    font-size:
      42px;

    line-height:
      1.02;
  }

  .hero p {
    font-size:
      16px;

    line-height:
      1.7;
  }

  .hero-actions {
    flex-direction:
      column;

    align-items:
      stretch;
  }

  .btn {
    width:
      100%;
  }

  .hero-card {
    padding:
      16px;

    border-radius:
      24px;
  }

  .metric {
    padding:
      20px;
  }

  .metric strong {
    font-size:
      24px;
  }

  .section-title {
    margin-bottom:
      30px;
  }

  .section-title h2 {
    font-size:
      34px;
  }

  .section-title p {
    font-size:
      16px;
  }

  .cards,
  .process,
  .faq-grid {
    grid-template-columns:
      1fr;
  }

  .card,
  .step,
  .trust-card,
  .faq-item,
  .price-card {
    padding:
      23px;
  }

  .card {
    min-height:
      auto;
  }

  .price {
    font-size:
      36px;
  }

  .price-card.featured::before {
    position:
      static;

    display:
      inline-flex;

    margin-bottom:
      18px;
  }

  .contact-form-copy,
  .contact-form-card {
    padding:
      28px;

    border-radius:
      24px;
  }

  .contact-form-copy h2 {
    font-size:
      34px;
  }

  .footer-inner {
    flex-direction:
      column;

    align-items:
      flex-start;
  }

  .legal-container {
    padding:
      27px;

    border-radius:
      24px;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

  .hero h1 {
    font-size:
      37px;
  }

  .badge {
    padding:
      7px 11px;

    font-size:
      12px;
  }

  .section-title h2 {
    font-size:
      31px;
  }

  .contact-form-copy h2 {
    font-size:
      31px;
  }

}

/* =========================================================
   MARKETPLACE PAGE
========================================================= */

.marketplace-hero {
  position: relative;
  overflow: hidden;

  padding:
    100px 0 76px;

  text-align: center;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(49, 91, 232, 0.16),
      transparent 40%
    ),
    linear-gradient(
      180deg,
      #ffffff,
      #f7f9ff
    );
}

.marketplace-hero h1 {
  max-width: 900px;

  margin:
    22px auto 18px;

  color:
    var(--dark);

  font-size:
    clamp(44px, 6vw, 70px);

  line-height:
    1.02;

  letter-spacing:
    -0.06em;
}

.marketplace-hero p {
  max-width:
    720px;

  margin:
    0 auto;

  color:
    var(--muted);

  font-size:
    18px;

  line-height:
    1.75;
}


/* SEARCH */

.marketplace-search {
  max-width:
    720px;

  margin:
    38px auto 0;
}

.marketplace-search-box {
  display:
    flex;

  align-items:
    center;

  gap:
    12px;

  padding:
    8px 18px;

  min-height:
    64px;

  background:
    #ffffff;

  border:
    1px solid var(--border);

  border-radius:
    18px;

  box-shadow:
    0 20px 50px
    rgba(15, 23, 42, 0.09);
}

.search-icon {
  color:
    var(--muted);

  font-size:
    23px;
}

.marketplace-search-box input {
  width:
    100%;

  border:
    0;

  outline:
    0;

  background:
    transparent;

  color:
    var(--dark);

  font-size:
    16px;
}


/* DIRECTORY */

.marketplace-directory {
  padding:
    70px 0 100px;

  background:
    #f8faff;
}


/* FILTER */

.marketplace-filter-wrap {
  display:
    flex;

  gap:
    9px;

  flex-wrap:
    wrap;

  margin-bottom:
    34px;
}

.marketplace-filter {
  padding:
    10px 15px;

  border:
    1px solid var(--border);

  border-radius:
    999px;

  background:
    #ffffff;

  color:
    #48556a;

  cursor:
    pointer;

  font-size:
    13px;

  font-weight:
    750;

  transition:
    0.2s ease;
}

.marketplace-filter:hover {
  border-color:
    var(--blue-border);

  color:
    var(--blue);
}

.marketplace-filter.active {
  background:
    var(--blue);

  color:
    #ffffff;

  border-color:
    var(--blue);
}


/* TOOLBAR */

.marketplace-toolbar {
  display:
    flex;

  justify-content:
    space-between;

  align-items:
    center;

  gap:
    20px;

  margin:
    0 0 24px;
}

.marketplace-toolbar strong {
  color:
    var(--dark);
}

.marketplace-toolbar span {
  color:
    var(--muted);

  margin-left:
    5px;
}

.marketplace-sort {
  min-height:
    42px;

  padding:
    8px 36px 8px 13px;

  border:
    1px solid var(--border);

  border-radius:
    11px;

  background:
    #ffffff;

  color:
    var(--dark);
}


/* PROGRAM GRID */

.program-grid {
  display:
    grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap:
    20px;
}


/* PROGRAM CARD */

.program-card {
  display:
    flex;

  flex-direction:
    column;

  min-height:
    330px;

  padding:
    25px;

  background:
    #ffffff;

  border:
    1px solid var(--border);

  border-radius:
    23px;

  box-shadow:
    var(--shadow-sm);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.program-card:hover {
  transform:
    translateY(-5px);

  border-color:
    var(--blue-border);

  box-shadow:
    var(--shadow-md);
}


/* TOP */

.program-card-top {
  display:
    flex;

  justify-content:
    space-between;

  align-items:
    flex-start;

  gap:
    15px;

  margin-bottom:
    21px;
}

.program-logo {
  width:
    52px;

  height:
    52px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  border-radius:
    15px;

  background:
    linear-gradient(
      145deg,
      var(--blue-light),
      #e5edff
    );

  color:
    var(--blue);

  font-size:
    16px;

  font-weight:
    900;
}

.program-status {
  display:
    inline-flex;

  padding:
    6px 10px;

  border-radius:
    999px;

  background:
    #eff6ff;

  color:
    #315be8;

  font-size:
    11px;

  font-weight:
    800;
}

.program-coming {
  background:
    #f1f5f9;

  color:
    #64748b;
}


.program-card h2 {
  margin:
    0 0 9px;

  color:
    var(--dark);

  font-size:
    23px;

  letter-spacing:
    -0.03em;
}

.program-description {
  margin:
    0;

  min-height:
    78px;

  color:
    var(--muted);

  font-size:
    14px;

  line-height:
    1.7;
}


/* META */

.program-meta {
  display:
    grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap:
    10px;

  margin:
    20px 0;

  padding:
    15px;

  background:
    #f8faff;

  border-radius:
    15px;
}

.program-meta div {
  min-width:
    0;
}

.program-meta span {
  display:
    block;

  margin-bottom:
    3px;

  color:
    var(--muted);

  font-size:
    11px;
}

.program-meta strong {
  display:
    block;

  color:
    var(--dark);

  font-size:
    13px;
}


/* FOOTER */

.program-card-footer {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    14px;

  margin-top:
    auto;

  padding-top:
    17px;

  border-top:
    1px solid var(--border);
}

.program-category {
  color:
    var(--muted);

  font-size:
    12px;
}

.program-view {
  color:
    var(--blue);

  font-size:
    13px;

  font-weight:
    850;
}

.program-view:hover {
  color:
    var(--blue-dark);
}


/* EMPTY STATE */

.marketplace-empty {
  display:
    none;

  padding:
    60px 20px;

  text-align:
    center;
}

.marketplace-empty h3 {
  margin:
    0 0 8px;

  color:
    var(--dark);
}

.marketplace-empty p {
  margin:
    0;

  color:
    var(--muted);
}


/* JOIN CTA */

.marketplace-join {
  padding:
    90px 0;

  background:
    #ffffff;
}

.marketplace-join-card {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    40px;

  padding:
    48px;

  border-radius:
    30px;

  color:
    #ffffff;

  background:
    linear-gradient(
      145deg,
      #101936,
      #18254e
    );

  box-shadow:
    0 30px 80px
    rgba(15, 23, 42, 0.18);
}

.marketplace-join-card .badge {
  background:
    rgba(255,255,255,0.10);

  border-color:
    rgba(255,255,255,0.15);

  color:
    #cbd8ff;
}

.marketplace-join-card h2 {
  margin:
    17px 0 10px;

  font-size:
    clamp(
      31px,
      4vw,
      45px
    );

  line-height:
    1.08;

  letter-spacing:
    -0.04em;
}

.marketplace-join-card p {
  max-width:
    620px;

  margin:
    0;

  color:
    #cbd5e1;
}


/* TABLET */

@media (max-width: 980px) {

  .program-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .marketplace-join-card {
    flex-direction:
      column;

    align-items:
      flex-start;
  }

}


/* MOBILE */

@media (max-width: 640px) {

  .marketplace-hero {
    padding:
      65px 0 55px;
  }

  .marketplace-hero h1 {
    font-size:
      42px;
  }

  .marketplace-hero p {
    font-size:
      16px;
  }

  .marketplace-filter-wrap {
    flex-wrap:
      nowrap;

    overflow-x:
      auto;

    padding-bottom:
      5px;

    scrollbar-width:
      none;
  }

  .marketplace-filter-wrap::-webkit-scrollbar {
    display:
      none;
  }

  .marketplace-filter {
    flex:
      0 0 auto;
  }

  .marketplace-toolbar {
    align-items:
      flex-start;

    flex-direction:
      column;
  }

  .program-grid {
    grid-template-columns:
      1fr;
  }

  .program-description {
    min-height:
      auto;
  }

  .marketplace-join-card {
    padding:
      30px;
  }

}

/* Dynamic Affiliate Programs */

.program-logo-image {
  overflow: hidden;
  background: #ffffff;
}

.program-logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

.program-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.program-featured {
  display: inline-flex;

  padding: 6px 10px;

  border-radius: 999px;

  background: #fff7ed;
  color: #c2410c;

  font-size: 11px;
  font-weight: 800;
}

/* =========================================================
   FOR BRANDS PAGE
========================================================= */

.brand-page-hero {
  position: relative;
  overflow: hidden;

  padding: 92px 0 96px;

  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(49, 91, 232, 0.14),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f5f8ff 100%
    );
}

.brand-page-hero-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(360px, 0.92fr);

  gap: 72px;

  align-items: center;
}

.brand-page-copy h1 {
  max-width: 720px;

  margin: 20px 0 20px;

  color: var(--dark);

  font-size: clamp(
    46px,
    5.5vw,
    70px
  );

  line-height: 1.01;

  letter-spacing: -0.06em;
}

.brand-page-copy > p {
  max-width: 680px;

  margin: 0;

  color: var(--muted);

  font-size: 18px;

  line-height: 1.75;
}


/* =========================================================
   HERO SIDE CARD
========================================================= */

.brand-page-side-card {
  padding: 26px;

  background:
    rgba(255, 255, 255, 0.88);

  border:
    1px solid var(--border);

  border-radius: 28px;

  box-shadow:
    0 26px 70px
    rgba(15, 23, 42, 0.10);

  backdrop-filter: blur(18px);
}

.brand-side-label {
  display: inline-flex;

  margin-bottom: 17px;

  padding: 7px 11px;

  border-radius: 999px;

  background: var(--blue-light);

  color: var(--blue);

  font-size: 12px;
  font-weight: 850;
}

.brand-side-item {
  display: grid;

  grid-template-columns:
    42px 1fr;

  gap: 16px;

  padding: 20px;

  margin-bottom: 12px;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f8faff
    );

  border:
    1px solid var(--border);

  border-radius: 18px;
}

.brand-side-item:last-child {
  margin-bottom: 0;
}

.brand-side-item > strong {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: var(--blue-light);

  color: var(--blue);

  font-size: 12px;
  font-weight: 900;
}

.brand-side-item h3 {
  margin: 0 0 5px;

  color: var(--dark);

  font-size: 19px;
}

.brand-side-item p {
  margin: 0;

  color: var(--muted);

  font-size: 14px;

  line-height: 1.65;
}


/* =========================================================
   BRAND BENEFITS
========================================================= */

.brand-benefits {
  background: #ffffff;
}

.brand-benefits .card {
  min-height: 190px;
}


/* =========================================================
   BRAND APPLICATION SECTION
========================================================= */

.brand-application-section {
  padding: 100px 0;

  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(49, 91, 232, 0.08),
      transparent 28%
    ),
    #f6f8ff;
}

.brand-application-layout {
  display: grid;

  grid-template-columns:
    minmax(300px, 0.76fr)
    minmax(0, 1.24fr);

  gap: 38px;

  align-items: start;
}


/* =========================================================
   APPLICATION INTRO
========================================================= */

.brand-application-intro {
  position: sticky;

  top: 115px;

  padding: 38px;

  color: #ffffff;

  background:
    linear-gradient(
      145deg,
      #101936,
      #182653
    );

  border-radius: 28px;

  box-shadow:
    0 26px 65px
    rgba(15, 23, 42, 0.16);
}

.brand-application-intro .badge {
  background:
    rgba(255,255,255,0.09);

  border-color:
    rgba(255,255,255,0.15);

  color: #ced9ff;
}

.brand-application-intro h2 {
  margin: 20px 0 14px;

  color: #ffffff;

  font-size: clamp(
    32px,
    4vw,
    46px
  );

  line-height: 1.08;

  letter-spacing: -0.045em;
}

.brand-application-intro > p {
  margin: 0;

  color: #cbd5e1;

  font-size: 16px;

  line-height: 1.75;
}

.brand-application-points {
  margin-top: 30px;

  padding-top: 24px;

  border-top:
    1px solid rgba(
      255,
      255,
      255,
      0.12
    );
}

.brand-application-points > div {
  display: flex;

  align-items: center;

  gap: 12px;

  padding: 10px 0;
}

.brand-application-points strong {
  width: 30px;
  height: 30px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;

  background:
    rgba(255,255,255,0.09);

  color: #b9c9ff;

  font-size: 11px;
}

.brand-application-points span {
  color: #e1e7f1;

  font-size: 14px;

  font-weight: 700;
}


/* =========================================================
   APPLICATION FORM CARD
========================================================= */

.brand-application-card {
  padding: 38px;

  background: #ffffff;

  border:
    1px solid var(--border);

  border-radius: 28px;

  box-shadow:
    var(--shadow-md);
}

.adscale-brand-apply {
  width: 100%;
}

.brand-form-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 20px;
}

.brand-field {
  display: flex;

  flex-direction: column;

  gap: 8px;
}

.brand-field-full {
  grid-column: 1 / -1;
}

.brand-field label {
  color: var(--dark);

  font-size: 13px;

  font-weight: 800;
}

.brand-field input:not([type="checkbox"]),
.brand-field select,
.brand-field textarea {
  width: 100%;

  min-height: 48px;

  padding: 12px 14px;

  color: var(--dark);

  background: #ffffff;

  border:
    1px solid #dce3ed;

  border-radius: 12px;

  outline: none;

  font-size: 14px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.brand-field textarea {
  min-height: 140px;

  resize: vertical;
}

.brand-field input:focus,
.brand-field select:focus,
.brand-field textarea:focus {
  border-color: var(--blue);

  box-shadow:
    0 0 0 3px
    rgba(49, 91, 232, 0.10);
}


/* =========================================================
   TERMS
========================================================= */

.brand-terms {
  display: flex !important;

  flex-direction: row !important;

  align-items: flex-start;

  gap: 10px;

  padding: 16px;

  background: #f8faff;

  border:
    1px solid var(--border);

  border-radius: 12px;

  color: var(--muted) !important;

  font-weight: 600 !important;

  line-height: 1.55;
}

.brand-terms input {
  flex: 0 0 auto;

  width: 16px;
  height: 16px;

  margin-top: 3px;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.brand-submit {
  width: 100%;

  margin-top: 24px;

  border: 0;

  cursor: pointer;

  min-height: 52px;
}


/* =========================================================
   FORM MESSAGES
========================================================= */

.brand-apply-success {
  padding: 30px;

  background: #f0fdf4;

  border:
    1px solid #bbf7d0;

  border-radius: 18px;
}

.brand-apply-success h2 {
  margin: 0 0 9px;

  color: #166534;
}

.brand-apply-success p {
  margin: 0;

  color: #3f6250;
}

.brand-apply-errors {
  margin-bottom: 24px;

  padding: 18px;

  background: #fef2f2;

  border:
    1px solid #fecaca;

  border-radius: 14px;
}

.brand-apply-errors p {
  margin: 5px 0;

  color: #b91c1c;

  font-size: 14px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {

  .brand-page-hero-grid {
    grid-template-columns: 1fr;

    gap: 42px;
  }

  .brand-page-side-card {
    max-width: 720px;
  }

  .brand-application-layout {
    grid-template-columns: 1fr;
  }

  .brand-application-intro {
    position: static;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

  .brand-page-hero {
    padding: 62px 0 68px;
  }

  .brand-page-copy h1 {
    font-size: 41px;
  }

  .brand-page-copy > p {
    font-size: 16px;
  }

  .brand-page-side-card {
    padding: 17px;
  }

  .brand-side-item {
    padding: 17px;
  }

  .brand-application-section {
    padding: 70px 0;
  }

  .brand-application-intro,
  .brand-application-card {
    padding: 25px;

    border-radius: 23px;
  }

  .brand-form-grid {
    grid-template-columns: 1fr;
  }

  .brand-field-full {
    grid-column: auto;
  }

}

/* =========================================================
   FOR AFFILIATES PAGE
========================================================= */

.affiliate-page-hero {
  position: relative;
  overflow: hidden;

  padding: 92px 0 96px;

  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(49, 91, 232, 0.14),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f5f8ff 100%
    );
}

.affiliate-page-hero-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(360px, 0.92fr);

  gap: 72px;

  align-items: center;
}


/* HERO COPY */

.affiliate-page-copy h1 {
  max-width: 680px;

  margin: 20px 0 20px;

  color: var(--dark);

  font-size: clamp(
    46px,
    5.5vw,
    70px
  );

  line-height: 1.01;

  letter-spacing: -0.06em;
}

.affiliate-page-copy > p {
  max-width: 680px;

  margin: 0;

  color: var(--muted);

  font-size: 18px;

  line-height: 1.75;
}


/* =========================================================
   AFFILIATE HERO SIDE CARD
========================================================= */

.affiliate-page-side-card {
  padding: 26px;

  background:
    rgba(255, 255, 255, 0.88);

  border:
    1px solid var(--border);

  border-radius: 28px;

  box-shadow:
    0 26px 70px
    rgba(15, 23, 42, 0.10);

  backdrop-filter: blur(18px);
}

.affiliate-side-label {
  display: inline-flex;

  margin-bottom: 17px;

  padding: 7px 11px;

  border-radius: 999px;

  background: var(--blue-light);

  color: var(--blue);

  font-size: 12px;

  font-weight: 850;
}

.affiliate-side-item {
  display: grid;

  grid-template-columns:
    42px 1fr;

  gap: 16px;

  padding: 20px;

  margin-bottom: 12px;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f8faff
    );

  border:
    1px solid var(--border);

  border-radius: 18px;
}

.affiliate-side-item:last-child {
  margin-bottom: 0;
}

.affiliate-side-item > strong {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: var(--blue-light);

  color: var(--blue);

  font-size: 12px;

  font-weight: 900;
}

.affiliate-side-item h3 {
  margin: 0 0 5px;

  color: var(--dark);

  font-size: 19px;
}

.affiliate-side-item p {
  margin: 0;

  color: var(--muted);

  font-size: 14px;

  line-height: 1.65;
}


/* =========================================================
   AFFILIATE BENEFITS
========================================================= */

.affiliate-benefits {
  background: #ffffff;
}

.affiliate-benefits .card {
  min-height: 205px;
}


/* =========================================================
   AFFILIATE APPLICATION SECTION
========================================================= */

.affiliate-application-section {
  padding: 100px 0;

  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(49, 91, 232, 0.08),
      transparent 28%
    ),
    #f6f8ff;
}

.affiliate-application-layout {
  display: grid;

  grid-template-columns:
    minmax(300px, 0.76fr)
    minmax(0, 1.24fr);

  gap: 38px;

  align-items: start;
}


/* =========================================================
   APPLICATION INTRO
========================================================= */

.affiliate-application-intro {
  position: sticky;

  top: 115px;

  padding: 38px;

  color: #ffffff;

  background:
    linear-gradient(
      145deg,
      #101936,
      #182653
    );

  border-radius: 28px;

  box-shadow:
    0 26px 65px
    rgba(15, 23, 42, 0.16);
}

.affiliate-application-intro .badge {
  background:
    rgba(255, 255, 255, 0.09);

  border-color:
    rgba(255, 255, 255, 0.15);

  color: #ced9ff;
}

.affiliate-application-intro h2 {
  margin: 20px 0 14px;

  color: #ffffff;

  font-size: clamp(
    32px,
    4vw,
    46px
  );

  line-height: 1.08;

  letter-spacing: -0.045em;
}

.affiliate-application-intro > p {
  margin: 0;

  color: #cbd5e1;

  font-size: 16px;

  line-height: 1.75;
}


/* STEPS */

.affiliate-application-points {
  margin-top: 30px;

  padding-top: 24px;

  border-top:
    1px solid rgba(
      255,
      255,
      255,
      0.12
    );
}

.affiliate-application-points > div {
  display: flex;

  align-items: center;

  gap: 12px;

  padding: 10px 0;
}

.affiliate-application-points strong {
  width: 30px;
  height: 30px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;

  background:
    rgba(255, 255, 255, 0.09);

  color: #b9c9ff;

  font-size: 11px;
}

.affiliate-application-points span {
  color: #e1e7f1;

  font-size: 14px;

  font-weight: 700;
}


/* =========================================================
   APPLICATION FORM CARD
========================================================= */

.affiliate-application-card {
  padding: 38px;

  background: #ffffff;

  border:
    1px solid var(--border);

  border-radius: 28px;

  box-shadow:
    var(--shadow-md);
}

.adscale-affiliate-apply {
  width: 100%;
}


/* =========================================================
   FORM GRID
========================================================= */

.affiliate-form-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 20px;
}

.affiliate-field {
  display: flex;

  flex-direction: column;

  gap: 8px;
}

.affiliate-field-full {
  grid-column: 1 / -1;
}

.affiliate-field label {
  color: var(--dark);

  font-size: 13px;

  font-weight: 800;
}


/* INPUTS */

.affiliate-field input:not([type="checkbox"]),
.affiliate-field select,
.affiliate-field textarea {
  width: 100%;

  min-height: 48px;

  padding: 12px 14px;

  color: var(--dark);

  background: #ffffff;

  border:
    1px solid #dce3ed;

  border-radius: 12px;

  outline: none;

  font-size: 14px;

  font-family: inherit;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.affiliate-field textarea {
  min-height: 150px;

  resize: vertical;
}


/* FOCUS */

.affiliate-field input:focus,
.affiliate-field select:focus,
.affiliate-field textarea:focus {
  border-color: var(--blue);

  box-shadow:
    0 0 0 3px
    rgba(49, 91, 232, 0.10);
}


/* =========================================================
   TERMS
========================================================= */

.affiliate-terms {
  display: flex !important;

  flex-direction: row !important;

  align-items: flex-start;

  gap: 10px;

  padding: 16px;

  background: #f8faff;

  border:
    1px solid var(--border);

  border-radius: 12px;

  color: var(--muted) !important;

  font-weight: 600 !important;

  line-height: 1.55;
}

.affiliate-terms input {
  flex: 0 0 auto;

  width: 16px;
  height: 16px;

  margin-top: 3px;
}


/* =========================================================
   SUBMIT
========================================================= */

.affiliate-submit {
  width: 100%;

  min-height: 52px;

  margin-top: 24px;

  border: 0;

  cursor: pointer;
}


/* =========================================================
   SUCCESS / ERROR
========================================================= */

.affiliate-apply-success {
  padding: 30px;

  background: #f0fdf4;

  border:
    1px solid #bbf7d0;

  border-radius: 18px;
}

.affiliate-apply-success h2 {
  margin: 0 0 9px;

  color: #166534;
}

.affiliate-apply-success p {
  margin: 0;

  color: #3f6250;
}


.affiliate-apply-errors {
  margin-bottom: 24px;

  padding: 18px;

  background: #fef2f2;

  border:
    1px solid #fecaca;

  border-radius: 14px;
}

.affiliate-apply-errors p {
  margin: 5px 0;

  color: #b91c1c;

  font-size: 14px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {

  .affiliate-page-hero-grid {
    grid-template-columns: 1fr;

    gap: 42px;
  }

  .affiliate-page-side-card {
    max-width: 720px;
  }

  .affiliate-application-layout {
    grid-template-columns: 1fr;
  }

  .affiliate-application-intro {
    position: static;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

  .affiliate-page-hero {
    padding: 62px 0 68px;
  }

  .affiliate-page-copy h1 {
    font-size: 41px;
  }

  .affiliate-page-copy > p {
    font-size: 16px;
  }

  .affiliate-page-side-card {
    padding: 17px;
  }

  .affiliate-side-item {
    padding: 17px;
  }

  .affiliate-application-section {
    padding: 70px 0;
  }

  .affiliate-application-intro,
  .affiliate-application-card {
    padding: 25px;

    border-radius: 23px;
  }

  .affiliate-form-grid {
    grid-template-columns: 1fr;
  }

  .affiliate-field-full {
    grid-column: auto;
  }

}