/* ================================================================
   partner-program.css — Incode Partner Program Page
   Design system: light #F9F9F9, Rethink Sans display, DM Sans body, blue #0054FF
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-background:    #F9F9F9;
  --color-true-white:    #FFFFFF;
  --color-off-white:     #EBECEF;
  --color-foreground:    #3A3E4B;
  --color-black:         #000000;
  --color-rich-black:    #000000;
  --color-blue:          #0054FF;
  --color-blue-600:      #0048E6;
  --color-blue-100:      #E5F0FF;
  --color-grey-on-white: #6E758C;
  --color-grey-on-black: #C6C8D2;
  --color-border-light:  #EBECEF;
  --font-display: 'Rethink Sans', ui-sans-serif, system-ui, sans-serif;
  --font-sans:    'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --max-w: 1280px;
  --px: 1.25rem;
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px;
}
@media (min-width: 1024px) { :root { --px: 2rem; } }

body {
  font-family: var(--font-sans);
  background: var(--color-background);
  color: var(--color-foreground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

.section {
  position: relative;
  width: 100%;
  padding-block: 3rem;
}
@media (min-width: 640px)  { .section { padding-block: 4rem; } }
@media (min-width: 768px)  { .section { padding-block: 5rem; } }

.section--light    { background: var(--color-background); }
.section--dark     { background: var(--color-rich-black); color: #fff; }
.section--offwhite { background: rgba(235,236,239,0.4); border-top: 1px solid var(--color-border-light); border-bottom: 1px solid var(--color-border-light); }
.section--border-b { border-bottom: 1px solid var(--color-border-light); }

/* ── Typography ── */
.page-heading {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 55px;
  line-height: 61px;
  color: var(--color-black);
  margin-top: 1.25rem;
  text-wrap: balance;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.1;
  color: var(--color-black);
  margin-top: 20px;
  text-wrap: balance;
}
.section--dark .section-heading { color: #fff; }

.section-sub {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-grey-on-white);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 42rem;
}

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid;
  padding: 0.25rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  line-height: 1.4;
}
.eyebrow--light {
  border-color: rgba(0,84,255,0.18);
  background: rgba(0,84,255,0.07);
  color: var(--color-blue);
}
/* Dark section eyebrow — exact token values from source */
.eyebrow--partner {
  color: #CCE1FF;
  border-color: lab(41.8723% 34.8271 -91.5787 / 0.25);
  background-color: lab(41.8723% 34.8271 -91.5787 / 0.1);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.625rem 1.25rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  line-height: 1.2;
}
.btn--primary { background-color: #0054FF; color: #F9F9F9; border: none; }
.btn--primary:hover { background-color: #0048E6; }
.btn--secondary { background: var(--color-background); color: var(--color-foreground); border-color: var(--color-border-light); }
.btn--secondary:hover { border-color: var(--color-foreground); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.30); }
.btn--outline-white:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.55); }
.btn--sm { font-size: 0.8125rem; padding: 0.5rem 0.875rem; }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1) var(--delay,0s),
              transform 0.6s cubic-bezier(0.16,1,0.3,1) var(--delay,0s);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── ds-icon ── */
.ds-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  background-color: var(--color-blue);
  -webkit-mask-image: var(--icon-url);
  mask-image: var(--icon-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-true-white);
}
.hero .container {
  padding-top: 8rem;
  padding-bottom: 4rem;
  width: 100%;
}
@media (min-width: 640px) { .hero .container { padding-top: 9rem; padding-bottom: 5rem; } }
@media (min-width: 768px) { .hero .container { padding-top: 10rem; padding-bottom: 6rem; } }

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}

.hero-content { display: flex; flex-direction: column; }
.hero-sub {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.01em;
  color: #70758B;
  max-width: 30rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ── Partner Ecosystem Animation ── */
.hero-animation { display: flex; justify-content: center; }

.pea-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(8px);
  animation: pea-mount 600ms ease-out 300ms forwards;
}
@keyframes pea-mount { to { opacity: 1; transform: translateY(0); } }

.pea-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--color-background);
  padding: 1.5rem;
  box-shadow: 0 24px 48px -28px rgba(10,15,30,0.18);
}
.pea-incode-logo { max-height: 44px; max-width: 55%; object-fit: contain; margin: auto; }
.pea-connector { display: flex; height: 2.5rem; align-items: center; justify-content: center; width: 100%; }
.pea-connector span { display: block; width: 1px; height: 100%; background: rgba(0,0,0,0.15); }
.pea-partner-viewport {
  position: relative; width: 100%; height: 3.5rem;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.pea-partner-logo {
  position: absolute; inset: 0; margin: auto;
  max-width: 80%; height: auto; object-fit: contain;
}
.pea-partner-logo.entering { animation: pea-slide-in 350ms cubic-bezier(0.32,0.72,0,1) forwards; }
.pea-partner-logo.exiting  { animation: pea-slide-out 350ms cubic-bezier(0.32,0.72,0,1) forwards; }
@keyframes pea-slide-in  { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes pea-slide-out { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(-20px); } }

/* ── STATS STRIP ── */
.stats-strip {
  min-height: 280px;
  display: flex;
  align-items: center;
  background: var(--color-true-white);
  border-bottom: 1px solid var(--color-border-light);
}
.stats-strip .container { padding-block: 3rem; }
@media (min-width: 640px) { .stats-strip .container { padding-block: 0; } }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 0;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
}

.stat { display: flex; flex-direction: column; align-items: flex-start; padding-inline: 0; }
@media (min-width: 768px) {
  .stat { padding-inline: 2.5rem; }
  .stat:not(:first-child) { border-left: 1px solid var(--color-border-light); }
  .stat:first-child { padding-left: 0; }
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  background: linear-gradient(90deg, #111111 0%, #006AFF 55%, #006AFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-grey-on-white);
}

/* ── WHY PARTNER ── */
.why-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: start; }
}

.why-heading {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.15;
  color: #ffffff;
  margin-top: 0.875rem;
  text-wrap: balance;
}
.why-body {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-grey-on-black);
  margin-top: 1rem;
}
@media (min-width: 1024px) { .why-body { margin-top: 54px; } }

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px)  { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit-card {
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.benefit-icon-wrap {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: rgba(0,84,255,0.18);
  flex-shrink: 0;
}
.benefit-icon-wrap .ds-icon { background-color: #0054FF; }

.benefit-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.3;
}
.benefit-body {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--color-grey-on-black);
}

/* ── PARTNER TRACKS ── */
.tracks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px)  { .tracks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tracks-grid { grid-template-columns: repeat(3, 1fr); } }

.track-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  border: 1px solid var(--color-border-light);
  background: var(--color-background);
  padding: 1.75rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.track-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,84,255,0.30);
  box-shadow: 0 24px 48px -32px rgba(38,40,49,0.35);
}

.track-icon-wrap {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  background: var(--color-blue-100);
  flex-shrink: 0;
}
.track-icon {
  width: 1.25rem;
  height: 1.25rem;
  background-color: #006AFF;
}

.track-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-black);
  margin-top: 1.25rem;
  line-height: 1.2;
}
@media (min-width: 768px) { .track-name { font-size: 1.25rem; } }

.track-icp {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-black);
  line-height: 1.4;
  margin-top: 0.625rem;
}

.track-body {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--color-grey-on-white);
  flex: 1;
  margin-top: 0.875rem;
}

.track-btn { margin-top: 1.5rem; width: fit-content; }

/* ── QUOTES ── */
.quotes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .quotes-grid { grid-template-columns: repeat(2, 1fr); } }

.quote-card {
  border-radius: var(--r-xl);
  border: 1px solid var(--color-border-light);
  background: var(--color-background);
  padding: 1.75rem;
}
@media (min-width: 640px) { .quote-card { padding: 2rem; } }

.quote-logo-wrap { height: 2rem; display: flex; align-items: center; }
.quote-logo { max-height: 1.75rem; max-width: 130px; object-fit: contain; object-position: left; }

.quote-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-grey-on-white);
  letter-spacing: -0.01em;
  margin-top: 2rem;
}
@media (min-width: 640px) { .quote-text { font-size: 1rem; } }

.quote-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-black);
  margin-top: 2.5rem;
}
.quote-role {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-grey-on-white);
  margin-top: 0.25rem;
}

/* ── PARTNERS GRID ── */
.partners-header { text-align: center; max-width: 36rem; margin-inline: auto; }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 3rem;
}
@media (min-width: 480px)  { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .partners-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .partners-grid { grid-template-columns: repeat(5, 1fr); } }

.partner-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border-light);
  background: var(--color-background);
  padding: 1.25rem 1rem;
  min-height: 80px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.partner-tile:hover {
  border-color: rgba(0,84,255,0.25);
  box-shadow: 0 4px 16px -8px rgba(0,84,255,0.15);
}
.partner-tile img { max-height: 2.25rem; max-width: 100px; object-fit: contain; }
.partner-tile-name {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-grey-on-white);
  text-align: center;
  line-height: 1.3;
}

/* ── JOIN CTA ── */
.join-header {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}
.join-heading {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  color: #ffffff;
  text-wrap: balance;
}
.join-sub {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-grey-on-black);
  line-height: 1.7;
  margin-top: 1rem;
}

.join-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px)  { .join-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .join-cards { grid-template-columns: repeat(3, 1fr); } }

.join-card {
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.join-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 639px) {
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .join-btns { flex-direction: column; align-items: center; }
}
