/* ═══════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════ */
:root {
  --black:      #161616;
  --white:      #ffffff;
  --blue:       #0000fe;
  --cyan:       #00faf7;
  --red:        #ff0000;
  --yellow:     #fff53e;
  --light-gray: #f3f3ee;

  --font-sans: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Spacing */
  --pad-x:    16px;
  --pad-x-lg: 64px;
  --max-w:    1440px;
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--light-gray);
  font-family: var(--font-sans);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Responsive media swap: show image on mobile, video on desktop */
.media--desktop { display: none; }
.media--mobile  { display: block; }

@media (min-width: 1024px) {
  .media--desktop { display: block; }
  .media--mobile  { display: none; }
}


/* ═══════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--pad-x-lg);
  }
}

.text-red   { color: var(--red); }
.text-blue  { color: var(--blue); }
.text-cyan  { color: var(--cyan); }
.text-white { color: var(--white); }
.text-dark  { color: var(--black); }

.section-label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
}

@media (min-width: 1024px) {
  .section-label {
    font-size: 26px;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 16px 32px;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background: #0000cc;
}

/* Secondary variant (outline / ghost) */
.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
}

@media (min-width: 1024px) {
  .btn-primary {
    font-size: 26px;
  }
}

/* Video overlay shared styles */
.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px 16px;
}

.video-overlay__title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 26px;
  line-height: 26px;
  color: var(--white);
  margin-bottom: 8px;
}

.video-overlay__meta {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  line-height: 1;
  color: var(--white);
  text-align: right;
  margin-bottom: 8px;
}

.progress-track {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--white);
  border-radius: 3px;
}


/* ═══════════════════════════════════════════════
   SECTION 1: ATF / HERO
═══════════════════════════════════════════════ */

/* ── Section container ── */
.section-atf {
  background: var(--light-gray);
  position: relative;
  overflow: hidden;
  padding-bottom: 48px;
}

@media (min-width: 1024px) {
  .section-atf {
    padding-bottom: 0;
  }
}

@media (min-width: 1024px) {
  /* All children are absolutely positioned on desktop,
     so we set an explicit height matching the Figma frame (982px). */
  .section-atf {
    min-height: 982px;
  }
}

/* ── Cyan triangles (top-right decoration) ── */
/* Mobile: Figma node 164:33 — 60×60px grid of 9 small triangles */
.atf-tri {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.atf-tri img {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 1024px) {
  /* Figma: top: 24px, right: 24px, width: 248px, height: 280px */
  .atf-tri {
    top: 24px;
    right: 24px;
    width: 248px;
    height: 280px;
    overflow: visible;
  }
}

/* ── Shared header (Web Component: <pr-header>) ── */
.site-header {
  padding: 24px var(--pad-x) 0;
  background: var(--light-gray);
}

@media (min-width: 1024px) {
  .site-header {
    padding: 48px var(--pad-x-lg) 0;
  }
}

/* Landing page hero: header overlaps ATF section */
.section-atf .site-header {
  position: relative;
  z-index: 5;
}

@media (min-width: 1024px) {
  .section-atf .site-header {
    position: absolute;
    top: 48px;
    left: 64px;
    padding: 0;
    z-index: 5;
  }
}

.site-logo {
  display: inline-block;
}

.site-logo img {
  height: 48px;
  width: auto;
  max-width: 113px;
  mix-blend-mode: darken;
}

@media (min-width: 1024px) {
  .site-logo img {
    height: 64px;
    max-width: 151px;
  }
}

/* ── Mobile video preview ── */
.mobile-preview {
  display: block;
  position: relative;
  width: 100%;
  padding: 0 var(--pad-x);
  margin-top: 48px;
  box-sizing: border-box;
}

.mobile-preview__inner {
  position: relative;
  /* Figma: iPhone 253.69×523.21px within 370px content width → 68.6% wide, centred */
  width: 68.6%;
  margin: 0 auto;
  aspect-ratio: 254 / 523;
}

/* iPhone outline — fills the container on top of the screen */
.mobile-phone__frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Screen area matches Figma "Video" frame: inset 4.42% left/right, 1.77% top/bottom */
.mobile-phone__screen {
  position: absolute;
  top: 1.77%;
  left: 4.42%;
  right: 4.42%;
  bottom: 1.77%;
  border-radius: 44px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  z-index: 1;
}

/* 16:9 video fills screen width; letterbox bars appear top/bottom */
.mobile-phone__video {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 1024px) {
  .mobile-preview {
    display: none;
  }
}

/* ── Headline ── */
.atf-headline {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--black);
  padding: 24px var(--pad-x) 0;
}

@media (min-width: 1024px) {
  /* Figma: top: 164px, left: 64px, width: 6 cols + 5 gutters
     Grid: 12 cols, 64px margins, 24px gutters
     6-col width = calc(50% - 76px)  [= 644px at 1440px] */
  .atf-headline {
    position: absolute;
    top: 164px;
    left: var(--pad-x-lg);
    width: calc(50% - 76px);
    font-size: 68px;
    line-height: normal;
    padding: 0;
    z-index: 2;
  }
}

/* ── Body text ── */
.atf-body {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  padding: 16px var(--pad-x) 0;
}

@media (min-width: 1024px) {
  /* Figma: top: 506px, left: 64px, width: 6 cols + 5 gutters
     Grid: 12 cols, 64px margins, 24px gutters
     6-col width = calc(50% - 76px)  [= 644px at 1440px] */
  .atf-body {
    position: absolute;
    top: 506px;
    left: var(--pad-x-lg);
    width: calc(50% - 76px);
    font-size: 26px;
    line-height: normal;
    padding: 0;
    z-index: 2;
  }
}

/* ── CTA: button + tagline ── */
.atf-cta {
  padding: 24px var(--pad-x) 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

@media (min-width: 1024px) {
  /* Figma: button top: 774px, left: 64px; tagline at top: 798px, left: ~418px */
  .atf-cta {
    position: absolute;
    top: 774px;
    left: 64px;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    z-index: 2;
  }
}

.atf-tagline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  color: var(--black);
}

@media (min-width: 1024px) {
  .atf-tagline {
    font-size: 16px;
    white-space: nowrap;
  }
}

/* ── iPhone mockup (desktop only) ── */
.atf-phone {
  display: none;
}

@media (min-width: 1024px) {
  /* Figma: top: 48px, left: calc(58.33% + 3px) ≈ 843px at 1440px,
     width: 422px, height: 870px */
  .atf-phone {
    display: block;
    position: absolute;
    top: 48px;
    left: calc(58.33% + 3px);
    width: 422px;
    height: 870px;
    z-index: 1;
  }
}

/* Screen area matches Figma "Video" frame: 19px left/right, 15px top/bottom inset */
.phone__screen {
  position: absolute;
  top: 15px;
  left: 19px;
  right: 19px;
  bottom: 15px;
  border-radius: 73px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  z-index: 1;
}

/* 16:9 video fills screen width; letterbox bars appear top/bottom */
.phone__video {
  width: 100%;
  height: auto;
  display: block;
}

.phone__overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  padding: 0;
}

.phone__frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* ── Yellow decorative graphic (desktop only) ── */
.atf-graphic {
  display: none;
}

@media (min-width: 1024px) {
  /* Figma: top: 458px, left: col-1 (64px), right: col-12 end (24px from edge)
     Grid: spans full 12 columns = left: var(--pad-x-lg), right: 24px */
  .atf-graphic {
    display: block;
    position: absolute;
    top: 458px;
    left: var(--pad-x-lg);
    right: 24px;
    width: auto;
    height: 524px;
    z-index: 0;
    pointer-events: none;
  }

  .atf-graphic img {
    width: 100%;
    height: 100%;
    object-fit: fill;
  }
}


/* ═══════════════════════════════════════════════
   SECTION 2: THE SYSTEM IS BROKEN
═══════════════════════════════════════════════ */
.section-broken {
  background: var(--red);
  position: relative;
  overflow: hidden;
}

.broken-tri {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  z-index: 2;
}

@media (min-width: 1024px) {
  .broken-tri {
    width: 47px;
    height: 47px;
    top: 16px;
    left: auto;
    right: 49.167vw; /* right edge aligns with photo left edge (732px at 1440px) */
  }
}

.broken-tri img {
  width: 100%;
  height: 100%;
  display: block;
}

.broken-tri-large {
  display: none;
}

@media (min-width: 1024px) {
  .broken-tri-large {
    display: block;
    position: absolute;
    top: 221px;
    left: auto;
    right: 49.167vw; /* right edge at col 7 left (732px at 1440px) */
    width: 223px;
    height: 223px;
    pointer-events: none;
  }

  .broken-tri-large img {
    width: 100%;
    height: 100%;
  }
}

.broken-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 0;
}

@media (min-width: 1024px) {
  .broken-content {
    max-width: none;       /* Remove 1440px cap — section is full-width */
    padding-left: 4.444%;  /* 64px at 1440px — proportional column 1 */
    padding-right: 4.444%;
  }

  .broken-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    position: relative; /* contains absolutely-positioned right column */
  }
}

.broken-left {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}

@media (min-width: 1024px) {
  .broken-left {
    width: 50.914%; /* 668px at 1312px content — spans col 1 to image start */
    padding-top: 41px;
    padding-bottom: 36px;
    gap: 0;
    position: relative;
  }
}

.broken-headline {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--black);
}

@media (min-width: 1024px) {
  .broken-headline {
    font-size: 68px;
    line-height: normal;
    width: 100%;        /* border-bottom spans full column width (matches Figma 668px rule) */
    padding-bottom: 16px;
    border-bottom: 1px solid var(--black);
    margin-bottom: 36px;
  }
}

.broken-body {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
}

@media (min-width: 1024px) {
  .broken-body {
    font-size: 26px;
    line-height: normal;
    width: 63.023%; /* 421px at 668px left column — 4-col span */
  }
}

.broken-said-no {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--black);
}

@media (min-width: 1024px) {
  .broken-said-no {
    font-size: 42px;
    line-height: normal;
    margin-top: 24px;
    width: 63.023%; /* 421px at 668px left column — 4-col span */
  }
}

.broken-right {
  flex: 1;
  overflow: hidden;
  max-height: 320px;
}

@media (min-width: 1024px) {
  .broken-right {
    position: absolute; /* out of flow — image fills section height without driving it */
    top: 0;
    bottom: 0;
    left: 50.914%;      /* starts at end of .broken-left (668px at 1312px content) */
    right: -4.444vw;    /* bleeds to viewport right edge past container padding */
    max-height: none;
    margin-right: 0;
    flex: none;
  }
}

.broken-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* ═══════════════════════════════════════════════
   SECTION 3: WHY PRISMA REELS IS DIFFERENT
═══════════════════════════════════════════════ */


.section-different {
  background: var(--black);
  position: relative;
  overflow: hidden;
  padding: 40px 0 40px;
}

@media (min-width: 1024px) {
  .section-different {
    padding: 96px 0 60px;
    min-height: 668px;
  }
}

.different-tri-corner,
.earning-tri-corner,
.movement-tri {
  overflow: hidden;
}

.different-tri-corner img,
.earning-tri-corner img,
.movement-tri img {
  width: 100%;
  height: 100%;
  display: block;
}

.different-tri-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 88px;
  z-index: 0;
}

.different-yellow-tri {
  display: none;
}

@media (min-width: 1024px) {
  .different-yellow-tri {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 151px;
    height: 151px;
    z-index: 0;
    overflow: hidden;
  }

  .different-yellow-tri img {
    width: 100%;
    height: 100%;
    display: block;
  }
}

.different-glass {
  display: none;
}

@media (min-width: 1024px) {
  .different-glass {
    display: block;
    position: absolute;
    inset: 24px;
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(0, 0, 0, 0);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1;
    pointer-events: none;
  }
}

.different-content {
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .different-content {
    max-width: none;       /* Remove 1440px cap — section is full-width */
    padding-left: 4.444%;  /* 64px at 1440px — proportional column 1 */
    padding-right: 4.444%;
  }
}

.section-different .section-label {
  margin-bottom: 16px;
}

@media (min-width: 1024px) {
  .section-different .section-label {
    text-align: center;
    margin-bottom: 24px;
    padding-left: 8.486%;  /* 111.33px at 1312px content width — pushes to column 2 */
    padding-right: 8.486%;
  }
}

.different-headline {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--light-gray);
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .different-headline {
    font-size: 68px;
    text-align: center;
    margin-bottom: 0;
    padding-left: 8.486%;  /* 111.33px at 1312px content width — pushes to column 2 */
    padding-right: 8.486%;
  }
}

.genre-video {
  display: block;
  width: 66%;
  margin: 48px auto;
}

@media (min-width: 1024px) {
  .genre-video {
    width: 24%;
  }
}

.different-boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .different-boxes {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.829%; /* 24px at 1312px content width, scales proportionally */
    margin-bottom: 48px;
  }
}

.feature-box {
  position: relative;
  border: 1px solid var(--light-gray);
  padding: 16px;
  min-height: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .feature-box {
    min-height: 99px;
    padding: 20px 16px;
  }
}

.feature-box__tri {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
}

.feature-box p {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: var(--white);
  text-align: center;
}

@media (min-width: 1024px) {
  .feature-box p {
    font-size: 20px;
  }
}

.different-footer-label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 1024px) {
  .different-footer-label {
    font-size: 26px;
  }
}


/* ═══════════════════════════════════════════════
   SECTION 4: HOW IT WORKS
═══════════════════════════════════════════════ */
.section-how {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}

@media (min-width: 1024px) {
  .section-how {
    flex-direction: row;
    align-items: stretch;
    min-height: 468px;
    margin: 80px 4.444%; /* 64px at 1440px, scales with viewport */
    gap: 1.829%;         /* 24px at 1440px, scales with viewport */
  }
}

/* ── Image column (left on desktop, top on mobile) ── */
.how-image-col {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .how-image-col {
    flex: 1; /* 6 of 12 columns — equal half */
    display: flex;
    height: auto;
    min-height: 468px;
    padding: 0;
    overflow: hidden;
  }
}

@media (min-width: 1024px) {
  .how-bg-img {
    flex: 1;
    width: 100%;
    min-height: 0;
  }
}

.how-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scaleX(-1);
}

.how-text-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
}

@media (min-width: 1024px) {
  .how-text-overlay {
    top: 24px;
    left: 24px; /* 24px from image column left = 88px from viewport */
  }
}

.how-headline {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 4px;
}

@media (min-width: 1024px) {
  .how-headline {
    font-size: 68px;
    margin-bottom: 8px;
  }
}

/* ── Boxes column (right on desktop, bottom on mobile) ── */
.how-boxes-col {
  flex: 0 0 50%;
}

@media (min-width: 1024px) {
  .how-boxes-col {
    flex: 1; /* 6 of 12 columns — equal half */
    padding: 0;
  }
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

@media (min-width: 1024px) {
  .how-grid {
    grid-template-rows: 1fr 1fr;
    gap: 3.727%; /* 24px at 644px column width, scales proportionally */
    height: 100%;
  }
}

.how-box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  min-height: 138px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .how-box {
    padding: 16px;
  }
}

.how-box--red    { background: var(--red); }
.how-box--yellow { background: var(--yellow); }
.how-box--cyan   { background: var(--cyan); }
.how-box--blue   { background: var(--blue); }

.how-box__tri {
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
}

@media (min-width: 1024px) {
  .how-box__tri {
    width: 96px;
    height: 96px;
  }
}

.how-box__num {
  position: absolute;
  top: 0;
  right: 4px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 40px;
  line-height: 56px;
  color: var(--white);
}

@media (min-width: 1024px) {
  .how-box__num {
    font-size: 68px;
    line-height: 96px;
    right: 8px;
  }
}

.how-box__label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .how-box__label {
    font-size: 26px;
    line-height: 1.3;
  }
}

.how-box--yellow .how-box__num {
  color: var(--white);
}

.how-box--yellow .how-box__tri {
  mix-blend-mode: color-burn;
}

.how-box--cyan .how-box__num {
  color: var(--white);
}


/* ═══════════════════════════════════════════════
   SECTION 5: EARNING POTENTIAL
═══════════════════════════════════════════════ */
.section-earning {
  background: var(--blue);
  position: relative;
  overflow: hidden;
  padding: 40px 0 40px;
}

@media (min-width: 1024px) {
  .section-earning {
    padding: 64px 0 60px;
    min-height: 654px;
  }
}

.earning-tri-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 88px;
  z-index: 0;
}

.earning-bottom-tri {
  display: none;
}

@media (min-width: 1024px) {
  .earning-bottom-tri {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 151px;
    height: 151px;
    z-index: 0;
    overflow: hidden;
  }

  .earning-bottom-tri img {
    width: 100%;
    height: 100%;
    display: block;
  }
}

.earning-glass {
  display: none;
}

@media (min-width: 1024px) {
  .earning-glass {
    display: block;
    position: absolute;
    inset: 24px;
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(0, 0, 0, 0);
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 1;
    pointer-events: none;
  }
}

.earning-content {
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .earning-content {
    max-width: none;       /* Remove 1440px cap — section is full-width */
    padding-left: 4.444%;  /* 64px at 1440px — proportional column 1 */
    padding-right: 4.444%; /* 64px at 1440px */
  }
}

.section-earning .section-label {
  display: block;
  margin-bottom: 16px;
}

.earning-headline {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .earning-headline {
    font-size: 68px;
    margin-bottom: 60px;
    /* width fills container — no fixed pixel width needed */
  }
}

.earning-boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .earning-boxes {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .earning-boxes {
    gap: 1.829%; /* 24px at 1312px container width, scales proportionally */
  }
}

.earning-box {
  position: relative;
  border: 1px solid var(--light-gray);
  padding: 16px;
  min-height: 138px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.earning-box--has-hover:hover {
  transform: scale(1.03);
}

@media (min-width: 1024px) {
  .earning-box {
    min-height: 174px;
    padding: 20px;
  }
}

.earning-box__tri {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
}

.earning-box__type {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: var(--white);
  text-align: center;
  margin-bottom: 4px;
}

@media (min-width: 1024px) {
  .earning-box__type {
    font-size: 20px;
  }
}

.earning-box__coming-soon {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  text-align: center;
  margin-top: 4px;
  margin-bottom: 4px;
}

.earning-box__split {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--white);
  text-align: center;
}

@media (min-width: 1024px) {
  .earning-box__split {
    font-size: 68px;
  }
}

.earning-box__sub {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: var(--white);
  text-align: center;
  margin-top: 4px;
}

@media (min-width: 1024px) {
  .earning-box__sub {
    font-size: 20px;
  }
}

/* Hover overlay for earning-box--has-hover */
.earning-box__type,
.earning-box__split,
.earning-box__sub,
.earning-box__coming-soon,
.earning-box__tri {
  transition: opacity 0.25s ease;
}

.earning-box__hover-overlay {
  position: absolute;
  inset: 0;
  background: #00faf7;
  padding: 16px 16px 16px 28px;
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
}

.earning-box__hover-close {
  position: absolute;
  top: 16px;
  right: 17px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.earning-box__hover-overlay ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.earning-box__hover-overlay li {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  line-height: normal;
  color: #0000fe;
}

.earning-box__hover-overlay li + li {
  margin-top: 4px;
}

@media (min-width: 1024px) {
  .earning-box__hover-overlay {
    padding: 20px 20px 20px 36px;
  }

  .earning-box__hover-overlay li {
    font-size: 20px;
  }
}

.earning-box--has-hover.is-active .earning-box__hover-overlay {
  opacity: 1;
}

.earning-box--has-hover.is-active .earning-box__type,
.earning-box--has-hover.is-active .earning-box__split,
.earning-box--has-hover.is-active .earning-box__sub,
.earning-box--has-hover.is-active .earning-box__coming-soon,
.earning-box--has-hover.is-active .earning-box__tri {
  opacity: 0;
}

.earning-box--has-hover {
  cursor: pointer;
}

.earning-note {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cyan);
}

@media (min-width: 1024px) {
  .earning-note {
    font-size: 16px;
  }
}


/* ═══════════════════════════════════════════════
   SECTION 6: BUILT FOR A GLOBAL AUDIENCE
═══════════════════════════════════════════════ */
.section-global {
  background: var(--light-gray);
  position: relative;
  overflow: hidden;
  padding: 40px 0;
}

@media (min-width: 1024px) {
  .section-global {
    padding: 0;
    height: 534px;
  }

  /* 1px black stroke with top padding — Figma node 124:35 */
  .section-global::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 4.444%;   /* 64px at 1440px */
    width: 44.722%; /* 644px at 1440px — spans cols 1-6 */
    height: 1px;
    background: var(--black);
    z-index: 2;
  }
}

.global-tri {
  position: absolute;
  top: 0;
  right: 0;       /* Mobile: top-right (matches Figma mobile) */
  width: 48px;
  height: 48px;
  overflow: hidden;
  z-index: 2;
}

.global-tri img {
  width: 100%;
  height: 100%;
}

@media (min-width: 1024px) {
  .global-tri {
    right: auto;
    top: 80px;    /* Align with black stroke */
    left: 4.444%; /* 64px at 1440px — aligns with stroke */
    width: 128px;
    height: 128px;
    transform: scaleX(-1);  /* Flip to correct top-left corner orientation */
    z-index: 0;             /* Text content should stack above the triangle */
  }
}

.global-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .section-global .global-grid {
    /* Override .container constraints for full-bleed layout */
    max-width: 100%;
    padding: 0;
    margin: 0;
    /* Two-column full-height grid */
    flex-direction: row;
    align-items: stretch;
    gap: 1.667%; /* 24px at 1440px — one gutter between cols 6 and 7 */
    height: 534px;
    position: relative;
    z-index: 1; /* Sit above the absolute-positioned triangle */
  }
}

.global-left {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1024px) {
  .global-left {
    flex: 0 0 calc(50% - 0.833%); /* Half viewport minus half gutter */
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 6.111%; /* 88px at 1440px — 64px margin + 24px from triangle edge */
    padding-top: 128px;   /* 80px stroke offset + 48px gap below stroke */
    padding-bottom: 64px;
    gap: 24px;
  }
}

.global-headline {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
}

@media (min-width: 1024px) {
  .global-headline {
    font-size: 68px;
  }
}

.global-body {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
}

@media (min-width: 1024px) {
  .global-body {
    font-size: 26px;
    line-height: 1.4;
  }
}

.global-right {
  flex: 1;
  overflow: hidden;
  max-height: 320px;
}

@media (min-width: 1024px) {
  .global-right {
    flex: 0 0 calc(50% - 0.833%); /* Half viewport minus half gutter */
    box-sizing: border-box;
    padding: 0 4.444% 0 0; /* 64px right margin at 1440px */
    max-height: none;
    align-self: stretch;
    display: flex;
    align-items: stretch;
    overflow: hidden;
  }
}

.global-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 1024px) {
  .global-img {
    transform: scaleX(-1);  /* Mirror horizontally per Figma */
  }
}

@media (max-width: 1023px) {
  .global-img {
    clip-path: none;
    max-height: 320px;
  }
}


/* ═══════════════════════════════════════════════
   SECTION 7: THIS IS A MOVEMENT
═══════════════════════════════════════════════ */
.section-movement {
  background: var(--black);
  position: relative;
  overflow: hidden;
  padding: 40px 0 48px;
}

@media (min-width: 1024px) {
  .section-movement {
    padding: 80px 0 100px;
    min-height: 610px;
  }
}

.movement-tri {
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 88px;
  z-index: 2;
}

.movement-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

@media (min-width: 1024px) {
  .movement-content {
    align-items: flex-start;
    gap: 40px;
    padding-left: 287px; /* Column 3 start: 64px margin + 2 cols + 2 gutters */
  }
}

.movement-headline {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
}

@media (min-width: 1024px) {
  .movement-headline {
    font-size: 68px;
  }
}

.movement-body {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
}

@media (min-width: 1024px) {
  .movement-body {
    font-size: 26px;
    line-height: 1.4;
    max-width: 866px; /* 8 columns */
  }
}


/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  background: var(--light-gray);
  border-top: 1px solid var(--black);
  padding: 32px 0;
}

@media (min-width: 1024px) {
  .footer {
    padding: 48px 0 48px 0;
  }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

@media (min-width: 1024px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-end;
    gap: 0;
    max-width: none;
    padding: 0 4.444%;
  }
}

.footer-logo {
  width: 151px;
  flex-shrink: 0;
}

.footer-logo img {
  height: 48px;
  max-width: 113px;
  width: auto;
  mix-blend-mode: darken;
}

@media (min-width: 1024px) {
  .footer-logo img {
    height: 64px;
    max-width: 151px;
  }
}

.footer-tagline {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: var(--black);
}

@media (min-width: 1024px) {
  .footer-tagline {
    font-size: 20px;
    margin-left: 24px;
  }
}

.footer-copy {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--black);
}

@media (min-width: 1024px) {
  .footer-copy {
    font-size: 16px;
    margin-left: auto;
    line-height: 1;
  }
}

.footer-contact {
  text-decoration: underline;
}

.footer-contact:hover {
  opacity: 0.7;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.footer-social a {
  display: flex;
  color: var(--black);
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 0.5;
}

.footer-social svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (min-width: 1024px) {
  .footer-social {
    margin-top: 0;
    margin-left: 16px;
  }
}


/* ═══════════════════════════════════════════════
   CREATOR APPLICATION PAGE
═══════════════════════════════════════════════ */
.apply-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 40px;
  min-height: 100vh;
  min-height: 100dvh;
}

@media (min-width: 640px) {
  .apply-page {
    padding: 32px 24px 48px;
  }
}

@media (min-width: 1024px) {
  .apply-page {
    padding: 48px 32px 64px;
  }
}


/* ── Intro ── */
.apply-intro {
  width: 100%;
  max-width: 640px;
  margin-bottom: 32px;
}

.apply-intro__title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.1;
  color: var(--black);
  margin: 0 0 8px;
}

.apply-intro__subtitle {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(22, 22, 22, 0.55);
  margin: 0;
}

@media (min-width: 640px) {
  .apply-intro__title {
    font-size: 36px;
  }

  .apply-intro__subtitle {
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .apply-intro__title {
    font-size: 42px;
  }

  .apply-intro__subtitle {
    font-size: 15px;
  }
}


/* ── Form ── */
.apply-form {
  width: 100%;
  max-width: 640px;
}


/* ── Section / Fieldset ── */
.apply-form__section {
  border: none;
  padding: 0;
  margin: 0 0 32px;
}

.apply-form__legend {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--black);
  padding: 0 0 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--blue);
  width: 100%;
  display: block;
}

@media (min-width: 640px) {
  .apply-form__legend {
    font-size: 20px;
  }
}


/* ── Field ── */
.apply-form__field {
  margin-bottom: 16px;
}

.apply-form__label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 6px;
}

.apply-form__label--small {
  font-size: 11px;
  color: rgba(22, 22, 22, 0.65);
}

.apply-form__required {
  color: var(--red);
}

.apply-form__hint {
  color: rgba(22, 22, 22, 0.45);
  font-size: 11px;
}

.apply-form__charcount {
  float: right;
  font-size: 11px;
  color: rgba(22, 22, 22, 0.4);
  font-weight: 600;
}

.apply-form__charcount.is-over {
  color: var(--red);
}

@media (min-width: 640px) {
  .apply-form__label {
    font-size: 13px;
  }
}


/* ── Input & Textarea ── */
.apply-form__input,
.apply-form__select,
.apply-form__textarea {
  width: 100%;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px;
  border: 2px solid rgba(22, 22, 22, 0.15);
  border-radius: 0;
  outline: none;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.apply-form__textarea {
  resize: vertical;
  min-height: 60px;
}

.apply-form__input::placeholder,
.apply-form__textarea::placeholder {
  color: rgba(22, 22, 22, 0.3);
}

.apply-form__input:focus,
.apply-form__select:focus,
.apply-form__textarea:focus {
  border-color: var(--blue);
}

.apply-form__input.is-invalid,
.apply-form__select.is-invalid,
.apply-form__textarea.is-invalid {
  border-color: var(--red);
}

/* Select arrow */
.apply-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23161616' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

@media (min-width: 640px) {
  .apply-form__input,
  .apply-form__select,
  .apply-form__textarea {
    font-size: 14px;
    padding: 12px 14px;
  }
}


/* ── Two-column row ── */
.apply-form__row--two {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 640px) {
  .apply-form__row--two {
    flex-direction: row;
    gap: 16px;
  }

  .apply-form__row--two > .apply-form__field {
    flex: 1;
  }
}


/* ── Radio group ── */
.apply-form__radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.apply-form__radio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--black);
  cursor: pointer;
}

.apply-form__radio input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}


/* ── Checkbox group ── */
.apply-form__checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.apply-form__checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--black);
  cursor: pointer;
}

.apply-form__checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}

.apply-form__checkbox input[type="checkbox"]:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.apply-form__checkbox input[type="checkbox"]:disabled + span {
  opacity: 0.35;
}

/* Agreement checkboxes — full-width stacked */
.apply-form__checkbox--agreement {
  font-size: 12px;
  line-height: 1.5;
  align-items: flex-start;
}

.apply-form__checkbox--agreement span {
  padding-top: 1px;
}

@media (min-width: 640px) {
  .apply-form__checkbox--agreement {
    font-size: 13px;
  }
}


/* ── Conditional fields (hidden by default) ── */
.apply-form__conditional {
  display: none;
  overflow: hidden;
}

.apply-form__conditional.is-visible {
  display: block;
  animation: fadeSlideIn 0.3s ease;
}


/* ── Actions / Submit ── */
.apply-form__actions {
  padding-top: 8px;
  text-align: center;
}

.apply-form__submit {
  width: 100%;
  max-width: 360px;
  font-size: 15px;
  padding: 14px 24px;
}

.apply-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (min-width: 640px) {
  .apply-form__submit {
    font-size: 17px;
    padding: 16px 32px;
  }
}

@media (min-width: 1024px) {
  .apply-form__submit {
    font-size: 20px;
    padding: 18px 40px;
  }
}

.apply-form__status {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 12px;
  min-height: 1.4em;
}

.apply-form__status.is-success {
  color: #007a00;
}

.apply-form__status.is-error {
  color: var(--red);
}


/* ── Success state ── */
.apply-success {
  display: none;
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding: 48px 24px;
}

.apply-success.is-visible {
  display: block;
  animation: fadeSlideIn 0.4s ease;
}

.apply-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  margin-bottom: 20px;
}

.apply-success__title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.2;
  color: var(--black);
  margin: 0 0 12px;
}

.apply-success__message {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(22, 22, 22, 0.55);
  margin: 0 0 24px;
}

.apply-success__cta {
  display: inline-flex;
}


/* ═══════════════════════════════════════════════
   LEGAL PAGES (Terms, Copyright, Privacy, CCPA)
═══════════════════════════════════════════════ */
.legal-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px var(--pad-x) 64px;
}

.legal-page__title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.1;
  color: var(--black);
  margin: 0 0 24px;
}

.legal-page__body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(22, 22, 22, 0.7);
}

.legal-page__body p {
  margin: 0 0 16px;
}

.legal-page__body a {
  color: var(--blue);
  text-decoration: underline;
}

.legal-page__body a:hover {
  opacity: 0.7;
}

.legal-page__updated {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: rgba(22, 22, 22, 0.55);
}

/* ── Legal tables ── */
.legal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.legal-table th,
.legal-table td {
  border: 1px solid rgba(22, 22, 22, 0.2);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  font-weight: 700;
  color: var(--black);
  background: rgba(22, 22, 22, 0.04);
}

.legal-table td {
  color: rgba(22, 22, 22, 0.7);
}

@media (min-width: 1024px) {
  .legal-table {
    font-size: 15px;
  }
}

@media (min-width: 640px) {
  .legal-page {
    padding: 56px var(--pad-x) 80px;
  }

  .legal-page__title {
    font-size: 36px;
  }
}

@media (min-width: 1024px) {
  .legal-page {
    padding: 64px var(--pad-x-lg) 96px;
  }

  .legal-page__title {
    font-size: 42px;
  }

  .legal-page__body {
    font-size: 18px;
  }
}

.legal-page__body h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: var(--black);
  margin: 32px 0 12px;
  text-decoration: underline;
}

.legal-page__body h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--black);
  margin: 24px 0 8px;
  text-decoration: underline;
}

.legal-page__body ul {
  list-style: disc;
  padding-left: 24px;
  margin: 8px 0 16px;
}

.legal-page__body ul li {
  margin-bottom: 8px;
}

.legal-page__body .legal-caps {
  text-transform: uppercase;
}

.legal-page__body .legal-contact {
  font-style: normal;
  margin: 16px 0;
}

@media (min-width: 1024px) {
  .legal-page__body h2 {
    font-size: 22px;
  }

  .legal-page__body h3 {
    font-size: 20px;
  }
}
