/* Font: locally hosted Bricolage Grotesque */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap
}

/* Design tokens: Figma colors, widths, spacing, and radius */
:root {
  color-scheme: light;
  --page-max: 1200px;
  --page-padding: clamp(24px, 8.333333vw, 120px);
  --section-space: 128px;
  --ink: #201f1e;
  --muted: #575553;
  --surface: #f4f4f3;
  --white: #fff;
  --dark: #201f1e;
  --dark-surface: #2c2b2a;
  --dark-border: #403f3d;
  --on-dark: #c3c1bf;
  --green: #12c77a;
  --red: #c00;
  --card-radius: 12px
}

/* Base reset, typography, and interactive element defaults */
* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-optical-sizing: auto;
  font-variation-settings: "wdth" 100
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0
}

h1,
h2,
h3 {
  font-weight: 600
}

h2,
.benefit h3 {
  font-size: 48px;
  line-height: 54px;
  letter-spacing: -.015em
}

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

button,
input,
select,
textarea {
  font: inherit
}

button {
  cursor: pointer;
  color: inherit
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent
}

button {
  border: 0
}

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

a,
button {
  touch-action: manipulation
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px
}

a:hover {
  text-decoration-thickness: 1px
}

/* Shared page container and section spacing */
.container {
  width: min(var(--page-max), calc(100% - var(--page-padding)*2));
  margin-inline: auto
}

.section {
  padding-block: var(--section-space)
}

.lead {
  font-size: 20px;
  line-height: 30px;
  color: var(--muted)
}

/* Shared buttons and button variants */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--green);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  flex-shrink: 0
}

.button:hover {
  filter: brightness(.95)
}

.button-outline {
  border-color: currentColor;
  background: transparent
}

.button-small {
  min-height: 44px;
  padding: 9px 20px
}

.button-white {
  background: #fff;
  color: #201f1e
}

/* Shared text utilities and accessibility helpers */
.eyebrow {
  color: var(--red);
  font-weight: 600
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--green);
  padding: 12px
}

.skip-link:focus {
  top: 12px
}

[hidden] {
  display: none !important
}

/* 01. Header: desktop links, actions, and mobile navigation */
.site-header {
  height: 80px;
  position: relative;
  z-index: 5
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px
}

.brand-home {
  flex: 0 0 120.36px
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 40px
}

.login-link {
  font-size: 14px;
  font-weight: 500
}

.menu-toggle {
  display: none;
  background: transparent;
  width: 20px;
  padding: 3px 0
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  margin: 3px 0
}

.mobile-nav {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 24px;
  box-shadow: 0 8px 16px #0001
}

.mobile-nav a {
  display: block;
  padding: 12px
}

/* 02. Hero: copy, typography, and call-to-action layout */
.hero {
  padding-block: 96px 128px
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 648fr) minmax(0, 480fr);
  gap: 72px;
  align-items: center
}

.hero-copy {
  padding-bottom: 64px
}

.hero .eyebrow {
  font-size: 24px;
  line-height: 30px;
  margin-bottom: 20px
}

.hero h1 {
  font-size: 65px;
  line-height: 70px;
  letter-spacing: -.02em;
  margin-bottom: 24px
}

.hero .lead {
  max-width: 520px
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 40px
}

/* 02. Hero: revenue share card and chart */
.growth-card {
  background: var(--dark);
  border-radius: 20px;
  padding: 32px;
  color: var(--on-dark);
  min-width: 0
}

.growth-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px
}

.red-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red)
}

.growth-card h2 {
  font-size: 56px;
  line-height: 56px;
  letter-spacing: -.02em;
  color: #fff;
  margin-top: 12px
}

.growth-sub {
  margin-top: 8px
}

.growth-chart {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  height: 153px;
  margin-top: 28px;
  align-items: end
}

.growth-tier {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0
}

.growth-tier>span {
  font-size: 20px;
  line-height: 24px;
  font-weight: 500
}

.growth-tier:last-child>span {
  color: white
}

.growth-bar {
  background: var(--dark-border);
  border-radius: 4px 4px 0 0
}

.bar-25 {
  height: 65px
}

.bar-30 {
  height: 78px
}

.bar-38 {
  height: 99px;
  background: var(--green)
}

.growth-tier small {
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap
}

.chart-caption {
  font-size: 14px;
  line-height: 20px;
  margin-top: 8px
}

.growth-bottom {
  margin-top: 24px;
  border-top: 1px solid var(--dark-border);
  padding-top: 20px
}

.growth-bottom>p {
  font-size: 14px;
  line-height: 20px
}

.growth-bottom>a {
  display: flex;
  gap: 8px;
  align-items: center;
  color: white;
  margin-top: 12px;
  font-weight: 500
}

/* 03. Statistics: responsive tile grid */
.stats {
  padding-bottom: 128px
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px
}

.stat {
  min-height: 200px;
  background: var(--surface);
  border-radius: 12px;
  padding: 28px
}

.stat:first-child {
  background: #fff1f1
}

.stat h2 {
  font-size: 40px;
  line-height: 44px;
  font-weight: 500;
  letter-spacing: -.015em;
  margin-bottom: 12px
}

.stat p {
  color: var(--muted)
}

/* 04. Brands: heading, carousel cards, arrows, and pagination */
.brands {
  padding-block: 96px;
  background: var(--dark);
  color: #fff;
  overflow: hidden
}

.brands-heading {
  display: flex;
  gap: 96px;
  align-items: center;
  margin-bottom: 48px
}

.brands-heading h2 {
  flex: 1
}

.brands-heading .lead {
  color: var(--on-dark);
  width: 420px
}

.brand-carousel {
  position: relative
}

.brand-stage {
  height: 388px;
  position: relative
}

.brand-card {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 440px;
  height: 340px;
  padding: 28px;
  border: 1px solid var(--dark-border);
  background: var(--dark-surface);
  border-radius: 24px;
  display: flex;
  flex-direction: column
}

.brand-logo {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0
}

.brand-logo img {
  max-width: calc(100% + 5px);
  height: auto
}

.brand-card>p {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 500;
  min-height: 24px
}

.brand-ghost {
  position: absolute;
  width: 300px;
  height: 280px;
  top: 38px;
  background: var(--dark-surface);
  border-radius: 24px;
  opacity: .35
}

.ghost-left {
  right: calc(50% + 316px)
}

.ghost-right {
  left: calc(50% + 316px)
}

.carousel-controls {
  height: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dark-border);
  border-radius: 50%;
  background: transparent;
  position: absolute;
  top: 156px
}

.carousel-arrow.previous {
  right: calc(50% + 246px)
}

.carousel-arrow.next {
  left: calc(50% + 246px)
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 24px
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  padding: 0;
  background: var(--dark-border);
  position: relative
}

.carousel-dots button::after {
  content: "";
  position: absolute;
  inset: -12px -3px
}

.carousel-dots button.active {
  width: 24px;
  background: #fff
}

/* 05. Commissions: heading and tier selector */
.commissions {
  background: var(--surface)
}

.commission-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  gap: 72px;
  align-items: end;
  margin-bottom: 48px
}

.commission-heading h2 {
  margin-bottom: 20px
}

.commission-heading .lead {
  max-width: 560px
}

.tier-selector>p {
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 12px;
  font-weight: 500
}

.segments {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  width: 332px;
  max-width: 100%
}

.segments button {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  min-height: 48px;
  border-radius: 8px;
  flex: 1;
  padding: 0 18px;
  white-space: nowrap;
  background: var(--surface)
}

.segments .selected {
  color: #fff;
  background: var(--dark)
}

/* 05. Commissions: desktop comparison table */
.deal-table {
  /* Figma table surface: the Revenue share row inherits this fill. */
  --commission-table-surface: #fff;
  background: var(--commission-table-surface);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 48px
}

.deal-labels,
.deal-tier {
  min-width: 0;
}

.deal-top {
  height: 231px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 27px 27px;
  background: var(--white)
}

.deal-labels .deal-top {
  border-radius: 12px 0 0 0
}

.deal-labels .deal-top p {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  max-width: 220px
}

.deal-tier:last-child .deal-top {
  border-radius: 0 12px 0 0
}

.deal-labels>p,
.deal-tier>p {
  height: 64px;
  display: flex;
  align-items: center;
  padding-inline: 27px;
  border-top: 1px solid #dedddc
}

.deal-labels>p {
  font-weight: 500
}

.deal-tier>p {
  font-size: 16px;
  color: var(--muted)
}

.deal-tier.selected {
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: hidden
}

.deal-tier.selected .deal-top {
  height: 230px
}

.deal-tier .deal-top h3 {
  font-size: 48px;
  line-height: 52px;
  font-weight: 500;
  letter-spacing: -.02em
}

.deal-bar {
  width: 56px;
  height: 78px;
  background: #dedddc;
  border-radius: 6px 6px 0 0
}

.deal-tier:nth-child(3) .deal-bar {
  height: 94px
}

.deal-tier:nth-child(4) .deal-bar {
  height: 119px
}

.deal-tier.selected .deal-bar {
  background: var(--ink)
}

/* 05. Commissions: mobile rows and shared note */
.tier-rows {
  display: none
}

.commission-note {
  display: flex;
  gap: 34px;
  align-items: center
}

.commission-note p {
  flex: 1;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600
}

.commission-note .button {
  min-width: 128px
}

/* 06. Benefits: feature rows and highlighted benefit */
.benefits h2 {
  margin-bottom: 48px
}

.benefit-list {
  display: grid;
  gap: 8px
}

.benefit {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 440px;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border-radius: 12px;
  padding: 32px
}

.benefit.featured {
  background: var(--green)
}

.benefit.featured .lead {
  color: var(--ink)
}

/* 07. How it works: step list and numbered badges */
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 568fr) minmax(0, 560fr);
  gap: 72px;
  align-items: start
}

.steps h2 {
  margin-bottom: 40px
}

.steps ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px
}

.steps li {
  display: flex;
  gap: 24px;
  padding-block: 24px
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  background: var(--surface);
  color: var(--muted);
  border-radius: 50%;
  font-weight: 500
}

.steps li:first-child .step-number {
  background: var(--red);
  color: #fff
}

.steps li>div {
  min-width: 0
}

.steps h3,
.creator-card h3 {
  font-size: 24px;
  line-height: 30px;
  margin-bottom: 8px
}

/* How it works: inactive step headings use the Figma secondary text color. */
.steps li:not(:first-child) h3 {
  color: var(--muted)
}

.steps li p,
.creator-card>div>p:last-child {
  color: var(--muted)
}

.steps>.button {
  margin-top: 32px;
  min-width: 120px
}

/* 07. How it works: promotion channel card and tags */
.promotion-stage {
  height: 560px;
  background: var(--surface);
  border-radius: 12px;
  padding: 48px;
  display: grid;
  place-items: center
}

.promotion-card {
  background: var(--white);
  border: 1px solid #e7e7e5;
  border-radius: 8px;
  width: 440px;
  max-width: 100%;
  padding: 28px 28px 20px
}

.promotion-card h3 {
  font-size: 24px;
  line-height: 30px;
  margin-bottom: 24px
}

.promotion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0
}

.promotion-tags li {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--surface);
  padding: 6px 12px;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap
}

.promotion-tags li::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url("../images/check.svg") center/contain no-repeat;
  flex: 0 0 16px
}

/* 07. How it works: creator program call to action */
.creator-card {
  margin-top: 64px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 72px;
  background: var(--surface);
  border-radius: 12px
}

.creator-card>div {
  max-width: 516px
}

.creator-card .eyebrow {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  margin-bottom: 16px
}

.creator-card h3 {
  margin-bottom: 16px
}

.creator-card>.button {
  margin-left: auto;
  min-width: 128px
}

/* 08. FAQ: category tabs and accordion states */
.faq {
  background: var(--surface)
}

.faq-grid {
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr);
  gap: 72px
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px
}

.faq-tabs button {
  background: var(--white);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap
}

.faq-tabs button[aria-selected=true] {
  background: var(--ink);
  color: var(--white)
}

#faq-panel {
  display: grid;
  gap: 8px
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  padding: 24px
}

.faq-item[open] {
  background: #eafbf2
}

.faq-item summary {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  line-height: 30px;
  cursor: pointer
}

.faq-item summary::-webkit-details-marker {
  display: none
}

.faq-item summary::after {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background: url("../images/plus.svg") center/contain no-repeat
}

.faq-item[open] summary::after {
  background-image: url("../images/minus.svg")
}

.faq-item>p {
  margin-top: 12px;
  max-width: 640px
}

.faq-item a {
  text-decoration: underline
}

/* 09. Contact: information panel and decorative perforation */
.contact-coupon {
  display: grid;
  grid-template-columns: minmax(0, 520fr) 28px minmax(0, 652fr);
  border-radius: 12px;
  background: var(--dark);
  color: #fff
}

.contact-info {
  padding: 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0
}

.contact-caption {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--on-dark)
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  line-height: 30px
}

.contact-link img {
  flex: 0 0 22px
}

.contact-link span {
  text-decoration: underline
}

.contact-info h3 {
  margin-top: auto;
  padding-top: 24px;
  font-size: 24px;
  line-height: 30px
}

.perforation {
  position: relative;
  background: radial-gradient(circle, #fff 2.5px, transparent 3px) center 28px/5px 16px repeat-y
}

.perforation::before,
.perforation::after {
  content: "";
  width: 28px;
  height: 28px;
  position: absolute;
  left: 0;
  background: var(--white);
  border-radius: 50%;
  top: -14px
}

.perforation::after {
  top: 626px
}

/* 09. Contact: design-only inputs, select, textarea, and button */
#contact-form {
  padding: 56px;
  display: grid;
  gap: 16px;
  min-width: 0
}

#contact-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  min-width: 0
}

input,
select,
textarea {
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  color: #fff;
  background: var(--dark-surface);
  width: 100%;
  min-width: 0;
  padding: 13px 16px;
  font-size: 16px;
  line-height: 24px;
  height: 52px;
  font-weight: 400
}

input::placeholder,
textarea::placeholder {
  color: var(--on-dark);
  opacity: 1
}

select {
  appearance: none;
  background-image: url("../images/chevron.svg");
  background-position: right 16px center;
  background-repeat: no-repeat;
  padding-right: 44px
}

textarea {
  height: 140px;
  resize: vertical
}

/* 10. Footer: final call to action, information, and legal row */
.site-footer {
  background: var(--dark);
  color: #fff;
  padding-block: 96px 48px
}

.footer-cta h2 {
  font-size: 72px;
  line-height: 78px;
  font-weight: 700;
  letter-spacing: -.02em
}

.footer-cta .lead {
  color: var(--on-dark);
  margin-top: 16px
}

.footer-buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px
}

.footer-buttons .button {
  border-radius: 8px;
  padding-inline: 32px
}

.footer-buttons .button:first-child {
  min-width: 171px
}

.footer-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px 200px;
  gap: 48px;
  margin-top: 80px
}

.footer-contact,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.footer-info h3 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--on-dark);
  margin-bottom: 12px
}

.footer-info a,
.footer-info p,
.footer-info button {
  font-size: 16px;
  line-height: 24px
}

.text-button {
  background: transparent;
  padding: 0;
  text-align: left;
  color: inherit;
  align-self: start
}

.text-button:hover,
.footer-info a:hover,
.desktop-nav a:hover {
  text-decoration: underline
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--on-dark);
  font-size: 14px;
  line-height: 20px;
  margin-top: 80px
}

.footer-legal button {
  font-size: 14px;
  line-height: 20px
}

/* Terms dialog: panel, backdrop, and typography */
dialog {
  max-width: min(560px, calc(100% - 32px));
  border: 0;
  border-radius: 12px;
  padding: 32px;
  background: var(--white);
  color: var(--ink)
}

dialog::backdrop {
  background: #0008
}

dialog h2 {
  font-size: 30px;
  line-height: 36px;
  margin-bottom: 20px
}

dialog p {
  margin-bottom: 24px;
  overflow-wrap: anywhere
}

dialog a {
  text-decoration: underline
}

/* Responsive: wide desktop container margins */
@media(min-width:1441px) {

  /* Design tokens: Figma colors, widths, spacing, and radius */
  :root {
    --page-padding: 120px
  }
}

/* Responsive: compact desktop and laptop layouts */
@media(max-width:1250px) and (min-width:769px) {
  .header-inner {
    gap: 24px
  }

  .header-actions {
    gap: 20px
  }

  .desktop-nav {
    gap: 20px
  }

  .hero-grid {
    gap: 40px
  }

  .hero h1 {
    font-size: clamp(40px, 4.52vw, 65px);
    line-height: 1.08
  }

  .hero .eyebrow {
    font-size: 20px;
    line-height: 26px
  }

  /* 02. Hero: revenue share card and chart */
  .growth-card {
    padding: 24px
  }

  .growth-card h2 {
    font-size: 44px;
    line-height: 48px
  }

  .stat {
    padding: 20px
  }

  .stat h2 {
    font-size: 32px;
    line-height: 38px
  }

  .benefit {
    grid-template-columns: 40px minmax(0, 1fr) minmax(220px, 36.67%);
    gap: 24px
  }

  .benefit h3 {
    font-size: 38px;
    line-height: 44px
  }

  .commission-heading,
  .how-grid {
    gap: 40px
  }

  .faq-grid {
    grid-template-columns: 25% minmax(0, 1fr);
    gap: 40px
  }

  /* 07. How it works: promotion channel card and tags */
  .promotion-stage {
    padding: 24px;
    height: 500px
  }

  .promotion-card {
    padding: 24px
  }

  .contact-info,
  #contact-form {
    padding: 32px
  }

  .contact-link {
    font-size: 16px;
    line-height: 24px
  }

  .footer-info {
    grid-template-columns: minmax(0, 1fr) 260px 180px;
    gap: 32px
  }

  .hero {
    padding-block: 80px 100px;
  }

   .brands {
    padding-block: 86px;
  }

  .section {
    padding-block: 100px;
  }

  h2, .benefit h3 {
    font-size: 36px;
    line-height: 46px;
  }
  .deal-tier .deal-top h3 {
    font-size: 40px;
    line-height: 42px;
  }
  .promotion-card {
    width: auto;
  }

  .footer-cta h2 {
    font-size: 58px;
    line-height: 64px;
  }

}

/* Responsive: small laptop and large tablet layouts */
@media(max-width:1000px) and (min-width:769px) {
  .desktop-nav {
    gap: 14px;
    font-size: 12px
  }

  .header-actions {
    gap: 16px
  }

  .brand-home {
    flex-basis: 100px
  }

  .hero-grid {
    gap: 24px;
    grid-template-columns: 1.1fr 1fr
  }

  .growth-chart {
    gap: 8px
  }

  .growth-tier small {
    font-size: 12px
  }

  .commission-heading {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .stat h2 {
    font-size: 28px;
    line-height: 34px
  }

  .benefit h3 {
    font-size: 32px;
    line-height: 38px
  }

  .promotion-tags li {
    font-size: 12px;
    padding-inline: 8px
  }

  .promotion-card h3 {
    font-size: 20px;
    line-height: 26px
  }

  /* 09. Contact: information panel and decorative perforation */
  .contact-coupon {
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1.25fr)
  }

  .contact-info,
  #contact-form {
    padding: 24px
  }

  .contact-info h3 {
    font-size: 20px;
    line-height: 26px
  }

  .contact-link {
    gap: 8px;
    font-size: 14px
  }

  .perforation::before,
  .perforation::after {
    width: 20px;
    height: 20px;
    top: -10px
  }

  .perforation::after {
    top: 626px
  }

  .footer-info {
    grid-template-columns: 1fr 1fr;
    gap: 40px
  }

  .footer-brand {
    grid-column: 1/-1
  }
}

/* Responsive: tablet and mobile layout */
@media(max-width:768px) {

  /* Design tokens: Figma colors, widths, spacing, and radius */
  :root {
    --page-padding: 24px;
    --section-space: 64px
  }

  h2,
  .benefit h3 {
    font-size: 30px;
    line-height: 36px
  }

  .lead {
    font-size: 18px;
    line-height: 26px
  }

  .header-inner {
    justify-content: space-between;
    gap: 16px
  }

  .brand-home {
    flex-basis: 100px
  }

  .brand-home img {
    width: 100px;
    height: auto
  }

  .desktop-nav,
  .login-link {
    display: none
  }

  .header-actions {
    gap: 32px
  }

  .menu-toggle {
    display: block
  }

  /* 02. Hero: copy, typography, and call-to-action layout */
  .hero {
    padding-block: 64px
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .hero-copy {
    padding-bottom: 16px
  }

  .hero .eyebrow {
    font-size: 20px;
    line-height: 26px;
    max-width: 343px
  }

  .hero h1 {
    font-size: clamp(33px, 5.5vw, 46px);
    line-height: 1.09;
    letter-spacing: -.02em
  }

  .hero .lead {
    max-width: 520px
  }

  .hero-actions {
    margin-top: 16px;
    flex-direction: column
  }

  /* 02. Hero: revenue share card and chart */
  .growth-card {
    padding: 24px
  }

  .growth-card h2 {
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -.015em
  }

  .growth-chart {
    margin-top: 16px
  }

  .growth-tier>span {
    font-size: 18px;
    line-height: 26px
  }

  .growth-bottom>a {
    margin-top: 8px
  }

  /* 03. Statistics: responsive tile grid */
  .stats {
    padding-bottom: 64px
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .stat {
    min-height: 152px;
    padding: 16px
  }

  .stat h2 {
    font-size: 26px;
    line-height: 30px;
    margin-bottom: 8px
  }

  /* 04. Brands: heading, carousel cards, arrows, and pagination */
  .brands {
    padding-block: 64px
  }

  .brands-heading {
    display: block;
    margin-bottom: 32px
  }

  .brands-heading .lead {
    width: auto;
    margin-top: 12px
  }

  .brand-stage {
    height: 348px
  }

  .brand-card {
    width: 271px;
    height: 300px;
    padding: 20px
  }

  .brand-logo img {
    max-width: 100%
  }

  .brand-ghost {
    width: 200px;
    height: 250px;
    top: 33px
  }

  .ghost-left {
    right: calc(50% + 151.5px)
  }

  .ghost-right {
    left: calc(50% + 151.5px)
  }

  .carousel-controls {
    height: 44px;
    gap: 20px;
    margin-top: 20px
  }

  .carousel-arrow {
    position: static
  }

  .commission-heading {
    display: block;
    margin-bottom: 32px
  }

  .tier-selector {
    margin-top: 24px
  }

  /* 05. Commissions: desktop comparison table */
  .deal-table {
    display: none
  }

  /* 05. Commissions: mobile rows and shared note */
  .tier-rows {
    display: grid;
    gap: 8px;
    margin-bottom: 32px
  }

  .tier-rows article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid transparent;
    border-radius: 12px;
    min-height: 80px
  }

  .tier-rows article.selected {
    border: 2px solid var(--ink);
    min-height: 82px
  }

  .tier-rows h3 {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    margin-bottom: 2px
  }

  .tier-rows p {
    font-size: 14px;
    line-height: 20px;
    color: var(--muted)
  }

  .tier-rows strong {
    font-size: 32px;
    line-height: 36px;
    letter-spacing: -.02em;
    font-weight: 600
  }

  .commission-note {
    display: block
  }

  .commission-note .button {
    margin-top: 16px;
    width: 100%
  }

  /* 06. Benefits: feature rows and highlighted benefit */
  .benefits h2 {
    margin-bottom: 32px
  }

  .benefit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px
  }

  .benefit img {
    flex: 0 0 40px
  }

  /* 07. How it works: step list and numbered badges */
  .how-grid {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .steps h2 {
    margin-bottom: 40px
  }

  .steps h3 {
    font-size: 20px;
    line-height: 26px
  }

  .steps>.button {
    margin-top: 32px
  }

  /* 07. How it works: promotion channel card and tags */
  .promotion-stage {
    height: 420px;
    padding: 24px 16px
  }

  .promotion-card {
    width: 440px;
    padding: 28px 28px 20px
  }

  .promotion-card h3 {
    font-size: 20px;
    line-height: 26px
  }

  /* 07. How it works: creator program call to action */
  .creator-card {
    margin-top: 32px;
    display: block;
    padding: 24px 20px
  }

  .creator-card h3 {
    font-size: 20px;
    line-height: 26px
  }

  .creator-card>.button {
    margin-top: 20px
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .faq-item {
    padding: 24px 16px
  }

  .faq-item summary {
    font-size: 18px;
    line-height: 26px
  }

  /* 09. Contact: information panel and decorative perforation */
  .contact-coupon {
    grid-template-columns: 1fr
  }

  .contact-info {
    padding: 32px 20px 24px;
    gap: 24px;
    min-height: 352px
  }

  .contact-info h3 {
    font-size: 20px;
    line-height: 26px;
    padding-top: 40px;
    margin-top: 0
  }

  .contact-link {
    font-size: 18px;
    line-height: 26px
  }

  .perforation {
    height: 2px;
    background: repeating-linear-gradient(90deg, #fff6 0 5px, transparent 5px 13px)
  }

  .perforation::before,
  .perforation::after {
    display: none
  }

  /* 09. Contact: design-only inputs, select, textarea, and button */
  #contact-form {
    padding: 24px 20px 32px
  }

  /* 10. Footer: final call to action, information, and legal row */
  .site-footer {
    padding-block: 64px 32px
  }

  .footer-cta h2 {
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.075;
    letter-spacing: -.02em
  }

  .footer-buttons {
    flex-direction: column
  }

  .footer-info {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px
  }

  .footer-legal {
    margin-top: 48px
  }

  .footer-contact,
  .footer-links {
    gap: 8px
  }
}

/* Responsive: small mobile typography and asset sizing */
@media(max-width:560px) {

  /* Design tokens: Figma colors, widths, spacing, and radius */
  :root {
    --page-padding: 16px
  }

  .hero h1 {
    font-size: 33px;
    line-height: 36px
  }

  .footer-cta h2 {
    font-size: 28px;
    line-height: 30px
  }

  .promotion-card {
    width: 311px
  }

  .promotion-tags {
    max-width: 253px
  }

  .brand-logo img {
    max-height: 80px
  }

  .hero .lead {
    max-width: none
  }
}

/* Accessibility: reduce animations when requested */
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    transition: none !important
  }
}

/* The source mobile header keeps its actions beside the logo. */

/* Responsive: tablet and mobile layout */
@media(max-width:768px) {
  .header-inner {
    /* justify-content: flex-start; */
    gap: 32px
  }

  .header-actions {
    gap: 8px
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    flex: 0 0 44px
  }
}

/* Final geometry corrections measured against the source frames. */
.deal-top {
  height: 230px
}

.deal-tier.selected .deal-top {
  height: 228px
}

.promotion-tags li:nth-child(1) {
  width: min(100%, 178px)
}

.promotion-tags li:nth-child(2) {
  width: min(100%, 74px)
}

.promotion-tags li:nth-child(3) {
  width: min(100%, 116px)
}

.promotion-tags li:nth-child(4) {
  width: min(100%, 140px)
}

.promotion-tags li:nth-child(5) {
  width: min(100%, 131px)
}

.promotion-tags li:nth-child(6) {
  width: min(100%, 212px)
}

.promotion-tags li:nth-child(7) {
  width: min(100%, 185px)
}

.promotion-tags li:nth-child(8) {
  width: min(100%, 162px)
}

@media(min-width:1251px) {
  .stat {
    padding: 24px
  }
}

@media(min-width:769px) {
  .perforation {
    background: url("../images/perforation.svg") center top/28px 832px no-repeat
  }

  .perforation::before,
  .perforation::after {
    display: none
  }
}

@media (max-width:767px) {
  .header-inner {
    justify-content: flex-start;
  }
}

@media(max-width:560px) {
  #active-brand-logo[alt="youwin"] {
    width: 221px;
    height: 48px
  }
}

@media(max-width:1366px) and (min-width:1281px) {
  .hero {
    padding-block: 80px 100px;
  }
  .hero .eyebrow {
    font-size: 20px;
    line-height: 30px;
  }
  .hero h1 {
    font-size: 60px;
    line-height: 68px;
  }
  .stat h2 {
    font-size: 38px;
  }
  .brands {
    padding-block: 86px;
  }
  .section {
    padding-block: 100px;
  }
  h2, .benefit h3 {
    font-size: 42px;
    line-height: 50px;
  }
  .footer-cta h2 {
    font-size: 58px;
    line-height: 64px;
  }
}

@media (max-width:1280px)  and (min-width:1249px) {
  .hero h1 {
    font-size: 52px;
    line-height: 64px;
  }
  .hero h1 {
    font-size: 52px;
    line-height: 64px;
  }
  h2, .benefit h3 {
    font-size: 36px;
    line-height: 46px;
  }
  .promotion-card {
    width: auto;
  }
}

@media (max-width:1200px)  and (min-width:1100px) {
 .hero {
    padding-block: 80px 100px;
  }
   .brands {
    padding-block: 86px;
  }
  .section {
    padding-block: 100px;
  }
  .promotion-card {
    width: 360px;
  } 
  .hero h1 {
    font-size: 52px;
    line-height: 64px;
  }
  h2, .benefit h3 {
    font-size: 36px;
    line-height: 46px;
  }
  .footer-cta h2 {
    font-size: 58px;
    line-height: 64px;
  }
}

/* Theme-specific colors measured from Figma frames 147:167 and 147:793. */
.theme-toggle {
  width: 44px;
  height: 44px;
  border: 1.5px solid #6e6c69;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
}

/* Dark theme: shared Figma palette overrides */
body.dark-theme {
  color-scheme: dark;
  --ink: #f4f4f3;
  --muted: #c3c1bf;
  --white: #141413;
  --surface: #201f1e;
  --dark: #2c2b2a;
  --dark-surface: #403f3d;
  --dark-border: #575553;
  --red: #ee5547;
}

/* Dark theme: statistics and commission selectors */
.dark-theme .stat:first-child {
  background: #3d0a08;
}

.dark-theme .segments {
  background: #201f1e;
}

.dark-theme .segments button {
  background: #201f1e;
  color: #f4f4f3;
}

.dark-theme .segments .selected {
  background: #f4f4f3;
  color: #201f1e;
}

.dark-theme .button {
  color: #201f1e;
}

.dark-theme .button-outline {
  color: inherit;
}

/* Dark theme: desktop and mobile commission surfaces */
.dark-theme .deal-table {
  background: #201f1e;
}

.dark-theme .deal-top {
  background: transparent;
}

.dark-theme .deal-labels>p,
.dark-theme .deal-tier>p {
  border-top-color: transparent;
  color: #f4f4f3;
}

.dark-theme .deal-bar,
.dark-theme .deal-tier.selected .deal-bar {
  background: #403f3d;
}

.dark-theme .tier-rows article {
  background: #201f1e;
  border-color: #2c2b2a;
}

.dark-theme .tier-rows article.selected {
  border-color: #f4f4f3;
}

/* Dark theme: featured benefit and step text */
.dark-theme .benefit.featured,
.dark-theme .benefit.featured .lead {
  color: #201f1e;
}

.dark-theme .step-number {
  color: #f4f4f3;
}

.dark-theme .steps li:not(:first-child) h3 {
  color: #c3c1bf;
}

.dark-theme .steps li:first-child p {
  color: #f4f4f3;
}

/* Dark theme: promotion channel card and icons */
.dark-theme .promotion-card {
  background: #201f1e;
  border-color: #403f3d;
}

.dark-theme .promotion-tags li {
  background: #201f1e;
}

.dark-theme .promotion-tags li::before {
  background-image: url("../images/check-dark.svg");
}

/* Dark theme: FAQ tabs, answer surfaces, and control icons */
.dark-theme .faq-tabs button {
  background: #201f1e;
}

.dark-theme .faq-tabs button[aria-selected=true] {
  background: #f4f4f3;
  color: #201f1e;
}

.dark-theme .faq-item {
  background: #201f1e;
}

.dark-theme .faq-item[open] {
  background: #081d14;
}

.dark-theme .faq-item summary::after {
  background-image: url("../images/plus-dark.svg");
}

.dark-theme .faq-item[open] summary::after {
  background-image: url("../images/minus-dark.svg");
}

/* Dark theme: design-only contact button */
.dark-theme .button-white {
  background: #f4f4f3;
}

@media(max-width:1000px) {
  .theme-toggle {
    /* display: none; */
    width: 40px;
    height: 40px;
  }
  .theme-toggle img {
    width: 18px;
  }
}

/* Each FAQ tab owns one panel; animations respect reduced-motion preferences. */
.faq-category {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.faq {
  overflow-anchor: none;
}

.faq-item {
  transition: background-color 180ms ease;
}

/* Commissions: alternating Figma row fills and the table's rounded lower corners. */
.deal-labels>p:first-of-type,
.deal-tier>p:first-of-type {
  background: var(--surface);
}

.deal-labels>p:last-child,
.deal-tier>p:last-child {
  background: var(--commission-table-surface);
}

.deal-labels>p,
.deal-tier>p {
  border-top-color: transparent;
}

.dark-theme .deal-table {
  --commission-table-surface: #201f1e;
}

/* Contact Subject dropdown: Figma secondary text and themed option surfaces. */
#contact-form select {
  color: var(--on-dark);
}

#contact-form select option {
  color: var(--on-dark);
  background-color: var(--dark-surface);
}

/* How it works: the red highlight follows the hovered / focused / tapped step
   (same behaviour as Affiliatego). Only applies when JS adds .js-steps (app.js);
   without JS the first step stays highlighted as before. */
.steps.js-steps li {
  cursor: default
}

.steps.js-steps li .step-number {
  background: var(--surface);
  color: var(--muted);
  transition: background-color .35s ease, color .35s ease
}

.steps.js-steps li.is-active .step-number {
  background: var(--red);
  color: #fff
}

.steps.js-steps li h3 {
  color: var(--muted);
  transition: color .35s ease
}

.steps.js-steps li.is-active h3 {
  color: var(--ink)
}

.dark-theme .steps.js-steps li .step-number {
  color: #f4f4f3
}

.dark-theme .steps.js-steps li.is-active .step-number {
  color: #fff
}

.dark-theme .steps.js-steps li h3 {
  color: #c3c1bf
}

.dark-theme .steps.js-steps li.is-active h3 {
  color: var(--ink)
}

.dark-theme .steps.js-steps li p {
  color: var(--muted)
}

.dark-theme .steps.js-steps li.is-active p {
  color: #f4f4f3
}

/* How it works: soft background behind the active step (fades with the highlight).
   Drawn with ::before so the step layout does not move. */
.steps.js-steps li {
  position: relative;
  isolation: isolate
}

.steps.js-steps li::before {
  content: "";
  position: absolute;
  inset: 0 -16px;
  z-index: -1;
  border-radius: 16px;
  background: rgba(204, 0, 0, .05);
  opacity: 0;
  transition: opacity .35s ease
}

.steps.js-steps li.is-active::before {
  opacity: 1
}

.dark-theme .steps.js-steps li::before {
  background: rgba(238, 85, 71, .1)
}
