/* ============================================================
   RETAIL PARTNERSHIPS — 2026 REFRESH
   /retail-partnerships  (home/retail-partners.html)
   Depends on tokens in static/css/anou-tokens.css (loaded in base.html).
   Class prefix: rp-
   Handoff: design_handoff_retail (Sep 2026)
   ============================================================ */

/* base.css only sets the body font on p/li/td, so bare <span>s and inputs fall
   back to the browser default. Set it once on the page wrapper and inherit. */
.rp {
  font-family: grap, sans-serif;
}

.rp-eyebrow {
  margin: 0 0 12px 0;
  font-family: grap-med, sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: #407bd9;
}

.rp h2 {
  margin: 0 0 14px 0;
  font-family: grotesk, sans-serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.2;
  color: #2e333d;
}

.rp-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  max-width: 520px;
}


/* Hero
----------------------------------------*/
.rp-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background-color: #2e333d;
  background-size: cover;
  background-position: center;
  background-image: url('https://res.cloudinary.com/hork5h8x1/image/upload/f_auto,c_fill,g_auto,w_1800,h_700,q_auto/v1569166453/visits_yqxc7w.jpg');
}

.rp-hero-scrim {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(rgba(20, 30, 50, .3), rgba(20, 30, 50, .6));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 0 24px;
}

.rp-hero-kicker {
  margin: 0;
  font-family: grap-med, sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: #ffffff;
  opacity: .9;
}

.rp-hero h1 {
  margin: 0;
  font-family: grotesk, sans-serif;
  font-weight: 900;
  font-size: 52px;
  line-height: 1.1;
  color: #ffffff;
}

.rp-hero-lede {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #ffffff;
  max-width: 640px;
}

/* The page's one primary button above the form */
.rp-hero .btn-primary {
  margin-top: 6px;
  height: 48px;
  font-size: 12px;
}


/* Intro
----------------------------------------*/
.rp-intro {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 72px 16px 72px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.rp-intro h2 {
  margin: 0;
  font-size: 30px;
}

.rp-intro p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: #4b5563;
}


/* Pillars (alternating image/text rows)
----------------------------------------*/
.rp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  padding: 56px 72px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 12px padding so the offset shadow isn't clipped by the grid cell */
.rp-row-img {
  padding: 12px;
}

.rp-row-img > div {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #e1eaf8;
  background-size: cover;
  background-position: center;
}

/* Odd rows: image on the right, shadow falls up-right. Even rows: image left, shadow up-left. */
.rp-row-odd .rp-row-img {
  order: 1;
}
.rp-row-odd .rp-row-img > div {
  box-shadow: #407bd9 12px -12px;
}
.rp-row-even .rp-row-img > div {
  box-shadow: #407bd9 -12px -12px;
}


/* Partner perks (dark band)
----------------------------------------*/
.rp-perks-band {
  background: #2e333d;
  margin-top: 40px;
}

.rp-perks {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 72px;
  box-sizing: border-box;
}

.rp-perks-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 44px;
}

.rp-perks .rp-eyebrow {
  color: #85A9E4;
}

.rp-perks h2 {
  margin: 0 0 28px 0;
  font-size: 30px;
  color: #ffffff;
}

.rp-perks-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rp-perks-copy p,
.rp-trust-body {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #e5e8ee;
}

/* Fee figures. Hidden until the team decides on showing the number (handoff: ship off).
   To show: remove the display:none, and swap the "reduce the Anou fee further" sentence
   in the template for the "to 13% (instead of 23%)" one. */
.rp-fee {
  display: none;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.rp-fee-big {
  font-family: grotesk, sans-serif;
  font-weight: 900;
  font-size: 88px;
  line-height: 1;
  color: #ffffff;
}

.rp-fee-old {
  font-family: grotesk, sans-serif;
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  color: #9aa1ad;
  text-decoration: line-through;
  text-decoration-thickness: 3px;
}

.rp-fee-label {
  display: none;
  margin: 12px 0 0 0;
  font-family: grap-med, sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #C2D4F1;
}

/* 1px gap on a #4b5563 background draws the hairline dividers between cells */
.rp-perk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #4b5563;
  border: 1px solid #4b5563;
}

.rp-perk {
  background: #2e333d;
  padding: 28px 28px 32px 28px;
}

.rp-perk i {
  font-size: 18px;
  color: #85A9E4;
}

.rp-perk-title {
  margin: 16px 0 8px 0;
  font-family: grotesk, sans-serif;
  font-weight: 900;
  font-size: 19px;
  color: #ffffff;
}

.rp-perk p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #e5e8ee;
}

.rp-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid #4b5563;
}

.rp-trust-statement {
  margin: 0;
  font-family: grotesk, sans-serif;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.35;
  color: #ffffff;
}


/* Vision row
----------------------------------------*/
.rp-vision {
  padding-top: 88px;
  padding-bottom: 72px;
}


/* Quote banner
----------------------------------------*/
.rp-banner {
  position: relative;
  background-color: #2e333d;
  background-size: cover;
  background-position: center;
  background-image: url('https://res.cloudinary.com/hork5h8x1/image/upload/f_auto,c_fill,g_auto,w_1800,h_600,q_auto/v1636158954/BANNER_ul16ub.jpg');
}

.rp-banner-scrim {
  background: linear-gradient(rgba(20, 30, 50, .45), rgba(20, 30, 50, .65));
  padding: 96px 24px;
  display: flex;
  justify-content: center;
}

.rp-banner-quote {
  margin: 0;
  max-width: 860px;
  text-align: center;
  font-family: grotesk, sans-serif;
  font-weight: 900;
  font-size: 34px;
  line-height: 1.3;
  color: #ffffff;
}


/* Application form
----------------------------------------*/
.rp-apply {
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 40px 56px 40px;
  box-sizing: border-box;
}

.rp-apply h2 {
  margin-bottom: 10px;
}

.rp-apply-intro {
  margin: 0 0 32px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
}

.rp-apply-intro a,
.rp-faq-help a {
  color: #407bd9;
  text-decoration: none;
}

.rp-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.rp-form label {
  display: block;
  margin: 0 0 6px 0;
  font-family: grap-med, sans-serif;
  font-size: 13px;
  color: #2e333d;
}

.rp-form input[type="text"],
.rp-form input[type="email"],
.rp-form textarea {
  width: 100%;
  border: 1px solid #ccd8eb;
  border-radius: 0;
  padding: 12px;
  font-size: 14px;
  color: #2e333d;
  font-family: grap, sans-serif;
  outline: 0;
  box-sizing: border-box;
  background: #ffffff;
}

.rp-form textarea {
  resize: vertical;
}

.rp-form input:focus,
.rp-form textarea:focus {
  border-color: #407bd9;
}

/* input.rp-form-narrow so it outranks the 100% width rule above */
.rp-form input.rp-form-narrow {
  width: 160px;
  max-width: 100%;
}

/* Upload drop area: opens the existing S3 upload widget */
.rp-upload {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px dashed #ccd8eb;
  background: #f2f6fc;
  padding: 16px 18px;
  cursor: pointer;
}

.rp-upload:hover {
  border-color: #407bd9;
}

.rp-upload > i {
  font-size: 18px;
  color: #407bd9;
}

.rp-upload-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  display: none;
}

.rp-upload-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rp-upload-label {
  font-family: grap-med, sans-serif;
  font-size: 14px;
  color: #2e333d;
}

.rp-upload-hint {
  font-size: 12px;
  color: #6b7280;
}

.rp-submit-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.rp-form .btn-primary {
  padding: 0 40px;
}

.rp-form-error {
  margin: 0;
  font-size: 14px;
  color: #ef4444;
  display: none;
}

.rp-success {
  border: 1px solid #e5e8ee;
  padding: 36px;
  display: none;
  gap: 18px;
  align-items: flex-start;
}

/* The one circle on the page */
.rp-success-check {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.rp-success-title {
  margin: 0 0 6px 0;
  font-family: grotesk, sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #2e333d;
}

.rp-success p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
}


/* FAQ
----------------------------------------*/
.rp-faq {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 40px 72px 40px;
  box-sizing: border-box;
}

.rp-faq h2 {
  margin-bottom: 10px;
}

.rp-faq-help {
  margin: 0 0 28px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
}

.rp-faq-list {
  border-bottom: 1px solid #e5e8ee;
}

.rp-faq-item {
  border-top: 1px solid #e5e8ee;
}

.rp-faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  text-align: left;
  font-family: grap-med, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #2e333d;
}

.rp-faq-mark {
  color: #407bd9;
  font-size: 18px;
  flex-shrink: 0;
}

.rp-faq-a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 40px 20px 0;
}

.rp-faq-a[hidden] {
  display: none;
}

.rp-faq-a p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
}


/* Responsive
----------------------------------------*/
@media (max-width: 900px) {
  .rp-hero h1 {
    font-size: 34px;
  }

  .rp-hero-lede {
    font-size: 15px;
  }

  .rp-intro {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 40px 20px 8px 20px;
  }

  .rp-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 20px;
  }

  /* image always on top when stacked */
  .rp-row-odd .rp-row-img {
    order: 0;
  }

  .rp-perks {
    padding: 48px 20px;
  }

  .rp-perks-head,
  .rp-trust {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rp-fee-big {
    font-size: 64px;
  }

  .rp-perk-grid {
    grid-template-columns: 1fr;
  }

  .rp-vision {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .rp-banner-quote {
    font-size: 22px;
  }

  .rp-apply {
    padding: 48px 20px 40px 20px;
  }

  .rp-faq {
    padding: 16px 20px 48px 20px;
  }
}

@media (max-width: 640px) {
  .rp-form-grid {
    grid-template-columns: 1fr;
  }
}
