/* Rèiz website: the "Partner with us" page (partners.html, served at /partners).
   Builds on site.css (tokens, type, buttons, cards, nav, footer); only page sections live here.
   Motion (js/motion.js + js/partners.js) is progressive enhancement: every default style here is the
   finished state, and start states exist only under html.js-motion (site.css). */

.p-section { padding-block: clamp(72px, 10vw, 144px); scroll-margin-top: var(--nav-h); }
.p-section:focus { outline: none; }
.p-section--wash { background: var(--wash-teal); }
.p-section--paper { background: var(--paper); }

/* Section heading block */
.p-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.p-head__body { max-width: 60ch; text-wrap: pretty; }
.nowrap { white-space: nowrap; }

/* ---------- Hero ---------- */
.p-hero { padding-top: calc(var(--nav-h) + clamp(40px, 8svh, 104px)); padding-bottom: clamp(56px, 8vw, 112px); }
.p-hero__grid { display: grid; gap: 40px; align-items: center; }
.p-hero__copy .label { margin-bottom: 20px; }
.p-hero__title em { color: var(--teal); }
.p-hero__lede { margin-top: 28px; max-width: 40ch; }
.p-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 36px; }
.p-hero__signin { font-weight: 600; color: var(--ink); }
.p-hero__note { margin-top: 28px; max-width: 46ch; }
.p-hero__frame { aspect-ratio: 888 / 980; max-height: 640px; width: 100%; }
@media (min-width: 1000px) {
  .p-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: calc(var(--gutter) * 2); }
}
@media (max-width: 999.98px) {
  .p-hero__frame { aspect-ratio: 16 / 10; }
  .p-hero__frame > img { object-position: 50% 35%; }
}

/* ---------- Who can apply ---------- */
.p-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.p-type { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-nested); }
.p-type { transition: border-color .32s var(--ease-ui), box-shadow .32s var(--ease-ui); }
.p-type .i { width: 22px; height: 22px; color: var(--teal); transition: transform .32s var(--ease-ui); }
@media (hover: hover) and (pointer: fine) {
  .p-type:hover { border-color: rgba(0, 103, 100, .28); box-shadow: var(--shadow-1); }
  .p-type:hover .i { transform: translateY(-2px) rotate(-6deg); }
}
.p-type .title { font-size: 16px; }
.p-types__note { margin-top: 24px; }

/* ---------- What you get ---------- */
.p-offer { display: grid; gap: var(--gutter); }
@media (min-width: 1000px) { .p-offer { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.p-offer__col { display: grid; align-content: start; gap: 18px; padding: 28px; }
.p-offer__status { justify-self: start; }
.pill--outline { border: 1px solid rgba(43, 36, 32, .24); color: var(--ink); }
.p-list { display: grid; gap: 14px; }
.p-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; }
.p-list .i { margin-top: 4px; color: var(--teal); }

/* ---------- How it works ---------- */
.p-steps { display: grid; gap: var(--gutter); }
@media (min-width: 800px) { .p-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .p-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.p-step { position: relative; display: grid; align-content: start; gap: 12px; padding-top: 22px; }
/* The step's teal rule; js/partners.js draws it in by tweening --draw from 0 to 1. */
.p-step::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--teal); transform: scaleX(var(--draw, 1)); transform-origin: 0 50%; }
.p-step__n { font: italic 400 40px/1 var(--font-display); color: var(--teal); }
.p-steps__note { margin-top: 40px; font-weight: 600; color: var(--ink); }

/* ---------- FAQ ---------- */
@media (min-width: 1000px) {
  .p-faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: calc(var(--gutter) * 2); align-items: start; }
}
.p-faq__list { display: grid; gap: 12px; }
.p-q { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-nested); }
.p-q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; border-radius: var(--r-nested); }
.p-q summary::-webkit-details-marker { display: none; }
.p-q summary .title { font-size: 17px; }
/* Plus that turns into a minus when open. */
.p-q summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--teal), var(--teal)) center / 14px 2px no-repeat, linear-gradient(var(--teal), var(--teal)) center / 2px 14px no-repeat; transition: background-size .32s var(--ease-ui); }
.p-q[open] summary::after { background-size: 14px 2px, 2px 0; }
.p-q > p { padding: 0 22px 22px; max-width: 62ch; }

/* ---------- Closing call to action ---------- */
.p-final__inner { display: grid; justify-items: center; text-align: center; gap: 4px; }
.p-final .p-hero__ctas { justify-content: center; }
.p-final__contact { margin-top: 32px; }
.p-final .meta { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .p-q summary::after, .p-type, .p-type .i { transition: none; }
  .p-type:hover .i { transform: none; }
}
