/* partners.css: the Partner programs page's own placing and sizing. Components and tokens come from design\.
   Each moment is a glass card on the photo's calm part, clear of faces. The screens carry their own pictures (the
   florist's new website on her tablet, a proposal under the partner's brand on the close's laptop), laid by core.js
   on corners a media agent recorded. */

/* ---------- 1. the header ---------- */
.parthead { display: grid; }
.parthead__media { position: relative; height: 480px; background: var(--c-night-3); }
.parthead__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 35%; }
.parthead__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 13, 15, 0) 70%, var(--c-night) 100%); pointer-events: none; }
.parthead__fig { position: absolute; inset: 0; margin: 0; }
.parthead__fig > img { width: calc(100% + 2px); height: calc(100% + 2px); }
/* her tablet: her new website, without words (her own roses, a call button) */
.fl-screen { background: #fff; }
.fl-site { position: absolute; inset: 0; display: grid; grid-template-rows: 40px minmax(0, 1fr) 64px; gap: 10px; padding-bottom: 10px; background: #FBF7F4; }
.fl-site__nav { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 0 16px; background: #fff; }
.fl-site__brand { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, #fff 0 24%, #D9578E 26% 100%); }
.fl-site__menu { width: 24px; height: 16px; background: linear-gradient(#2B2B30 0 0) 0 0 / 100% 3px no-repeat, linear-gradient(#2B2B30 0 0) 0 50% / 100% 3px no-repeat, linear-gradient(#2B2B30 0 0) 0 100% / 100% 3px no-repeat; }
.fl-site__hero { position: relative; margin: 0 10px; border-radius: 10px; background: url('https://xappdesign-media.pages.dev/assets/img/partner-tablet-640.webp') 97% 72% / 330% auto no-repeat; }
.fl-site__call { position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 70px; height: 38px; border-radius: 99px; background: var(--grad-brand); color: var(--c-on-brand); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5); }
.fl-site__call svg { width: 20px; height: 20px; }
.fl-site__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 10px; }
.fl-site__row i { border-radius: 8px; background: url('https://xappdesign-media.pages.dev/assets/img/partner-tablet-640.webp') no-repeat; background-size: 520% auto; }
.fl-site__row i:nth-child(1) { background-position: 3% 78%; }
.fl-site__row i:nth-child(2) { background-position: 99% 88%; }
.fl-site__row i:nth-child(3) { background-position: 90% 58%; }
.parthead__stage { position: absolute; inset: 0; z-index: 2; }
.parthead__stage > .stop { top: auto; bottom: 18px; right: 14px; }
.pl { position: absolute; right: max(14px, calc((100% - var(--max-w)) / 2)); top: 16px; width: min(300px, calc(100% - 28px)); }
.parthead__in { position: relative; z-index: 3; width: 100%; box-sizing: border-box; padding-block: 8px 48px; }
.parthead__copy { display: grid; gap: 16px; max-width: 560px; }
.parthead .phead__line { margin-top: 0; }
@media (max-width: 759px) { .parthead__photo { object-position: 45% 35%; } .pl { top: auto; bottom: 64px; left: 14px; right: 14px; width: auto; } }
@media (min-width: 1100px) {
  .parthead { min-height: calc(100svh - var(--header-h)); grid-template-columns: calc(max(var(--gutter), (100vw - var(--max-w)) / 2) + 540px) minmax(0, 1fr); }
  .parthead__media { grid-column: 2; grid-row: 1; height: auto; }
  .parthead__media::after { background: linear-gradient(90deg, var(--c-night) 0%, rgba(13, 13, 15, 0) 16%); }
  .parthead__photo { object-position: 50% 35%; }
  /* the proposal lands at the photo's upper left edge, past the words' column and above her face */
  .pl { right: auto; left: -36px; top: 3%; width: 290px; }
  .parthead__in { grid-column: 1; grid-row: 1; display: grid; align-content: center; padding: clamp(16px, 3vh, 40px) 48px clamp(16px, 3vh, 40px) max(var(--gutter), calc((100vw - var(--max-w)) / 2)); }
  .parthead .phead__title { font-size: min(clamp(2.5rem, 1.4rem + 2.6vw, 4rem), 6.4vh); }
}
.pl-card { display: grid; gap: 12px; padding: 16px; border-radius: 20px; background: var(--scene-glass); backdrop-filter: var(--scene-blur); -webkit-backdrop-filter: var(--scene-blur); color: var(--c-ink); box-shadow: var(--shadow-night); opacity: var(--pl, 1); transform: translateY(calc(20px - 20px * var(--pl, 1))); }
.pl-top { display: flex; align-items: center; gap: 12px; margin: 0; }
.pl-logo { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: #2B3A55; color: #fff; font: 800 15px/1 var(--font-ui); letter-spacing: 0.02em; }
.pl-top > span:last-child { display: grid; gap: 2px; }
.pl-top b { font: 800 1rem/1.2 var(--font-ui); }
.pl-top small { font: 600 13px/1.2 var(--font-ui); color: var(--c-ink-soft); }
.pl-lines { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pl-line { display: flex; align-items: center; gap: 10px; font: 600 14px/1.3 var(--font-ui); opacity: calc(0.3 + 0.7 * var(--pl-i, 1)); }
.pl-line .x { width: 16px; height: 16px; border-radius: 4px; transform: scale(calc(0.4 + 0.6 * var(--pl-i, 1))); }
.pl-sent { margin: 0; }
.pl-sent span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 99px; background: var(--c-night); color: #fff; font: 700 13px/1 var(--font-ui); opacity: var(--pl-sent, 1); transform: scale(calc(0.85 + 0.15 * var(--pl-sent, 1))); transform-origin: 0 50%; }

/* ---------- 2. the two programs ---------- */
.progs__grid { display: grid; gap: 40px 32px; }
@media (min-width: 900px) { .progs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prog { display: grid; gap: 12px; align-content: start; }
.prog__frame { position: relative; overflow: hidden; aspect-ratio: 5 / 4; margin-bottom: 10px; border-radius: var(--radius-xl); background: var(--c-night-3); box-shadow: var(--shadow-l); }
.prog__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.prog__photo--rep { object-position: 50% 30%; }
.prog__photo--laptop { object-position: 50% 50%; }
.prog__fig { position: absolute; inset: 0; margin: 0; }
/* the reseller's laptop: a monthly report under her own brand, without words */
.rl-screen { background: #fff; }
.rl-doc { position: absolute; inset: 0; display: grid; grid-template-rows: 54px minmax(0, 1fr) 64px; gap: 14px; padding-bottom: 16px; background: #fff; }
.rl-doc__top { display: flex; align-items: center; margin: 0; padding: 0 18px; background: #2B3A55; }
.rl-doc__top i { width: 30px; height: 30px; border-radius: 8px; background: #fff; }
.rl-doc__chart { width: calc(100% - 36px); height: 100%; margin: 0 18px; }
.rl-doc__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0 18px; }
.rl-doc__tiles i { border-radius: 10px; background: #EEF1F6; box-shadow: inset 0 -8px 0 #2B3A55; }
.rl-doc__tiles i:first-child { box-shadow: inset 0 -8px 0 #F1802E; }
.prog__frame .stop { top: 14px; right: 14px; bottom: auto; }
/* the moment over the counter (the rep) and the tablecloth (the laptop), both at the lower left */
.prog__stage { position: absolute; left: 14px; bottom: 14px; width: min(290px, calc(100% - 28px)); }
.sl { display: grid; gap: 8px; margin: 0; padding: 12px; border-radius: 18px; background: var(--scene-glass); backdrop-filter: var(--scene-blur); -webkit-backdrop-filter: var(--scene-blur); box-shadow: var(--shadow-night); list-style: none; }
.sl-step { display: flex; align-items: center; gap: 12px; padding: 6px 4px; opacity: calc(0.3 + 0.7 * var(--sl, 1)); transform: translateY(calc(8px - 8px * var(--sl, 1))); }
.sl-step .x { width: 24px; height: 24px; flex: none; border-radius: 7px; transform: scale(calc(0.4 + 0.6 * var(--sl, 1))) rotate(calc(-20deg + 20deg * var(--sl, 1))); }
.sl-step p { display: grid; gap: 2px; margin: 0; }
.sl-step b { font: 800 1rem/1.2 var(--font-ui); color: var(--c-ink); }
.sl-step span { font: 600 13px/1.25 var(--font-ui); color: var(--c-ink-soft); }
.prog__title { font: 800 clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem)/1.15 var(--font-display); }
.prog__line { margin: 0; font-size: var(--fs-lede); line-height: 1.45; color: var(--c-ink-soft); max-width: 34rem; }

/* ---------- 3. what you can sell ---------- */
.sell { --ground-x: 50%; --ground-y: 100%; }
.sell__stage { position: relative; padding-top: 48px; }
.sell__stage > .stop { top: 0; right: 0; bottom: auto; }
.sr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 8px 0 0; list-style: none; }
@media (min-width: 640px) { .sr { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sr { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.sr-card { display: grid; justify-items: center; gap: 12px; height: 100%; box-sizing: border-box; padding: 20px 12px 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); color: #fff; text-align: center; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, calc(0.12 + 0.5 * var(--sr, 0))), 0 calc(18px * var(--sr, 0)) 34px -18px rgba(241, 128, 46, 0.6); transform: translateY(calc(-6px * var(--sr, 0))); }
.sr-card:hover { box-shadow: inset 0 0 0 1.5px var(--c-brand); }
.sr-card:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.sr-art { position: relative; display: block; width: 96px; }
.sr-art svg { display: block; width: 96px; height: 72px; overflow: visible; }
.sr-line { fill: none; stroke: rgba(255, 255, 255, 0.42); stroke-width: 2; }
.sr-fill-soft { fill: rgba(255, 255, 255, 0.2); }
.sr-hot { fill: color-mix(in srgb, var(--c-brand) calc(var(--sr, 0) * 100%), rgba(255, 255, 255, 0.36)); }
.sr-ring { opacity: calc(0.2 + 0.8 * var(--sr, 0)); }
.sr-tag { font: 800 9px/1 var(--font-ui); fill: #fff; }
.sr-mono { font: 800 20px/1 var(--font-display); fill: #fff; }
.sr-x { width: 12px; height: 12px; margin-right: 7px; border-radius: 3px; vertical-align: 0; transform: scale(calc(0.4 + 0.6 * var(--sr-x, 1))); }
.sr-name { font: 700 0.9375rem/1.25 var(--font-ui); }
.sell__foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 28px 0 0; font: 700 1.0625rem/1.3 var(--font-ui); color: #fff; }
.sell__foot .x { width: 20px; height: 20px; border-radius: 6px; }

/* ---------- 4. the close ---------- */
/* a bright desk: on the phone a band over the words; from 1000 px the photo fills the band's right two thirds, washed
   into the paper at its left edge, and the form's card lies over the laptop */
.partclose { position: relative; overflow: hidden; padding-top: 0; }
.partclose__media { position: relative; height: 300px; margin-bottom: 32px; background: #EFEDEA; }
.partclose__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 46% 45%; }
.partclose__fig { position: absolute; inset: 0; margin: 0; }
.partclose__fig > img { width: calc(100% + 2px); height: calc(100% + 2px); }
/* the laptop: a proposal under the partner's own brand, its words large enough to read once laid on the screen */
.pd-screen { background: #fff; }
.pd-doc { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; padding: 20px 24px 0; background: #fff; color: var(--c-ink); }
.pd-doc__top { display: flex; align-items: center; gap: 12px; margin: 0; }
.pd-doc__brand { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 13px; background: #2B3A55; color: #fff; font: 800 24px/1 var(--font-ui); letter-spacing: 0.02em; }
.pd-doc__top b { font: 800 26px/1.1 var(--font-ui); }
/* one line, so every word stays above the form's card, which stands over the screen's lower half */
.pd-doc__title { margin: 0; font: 800 30px/1.1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.pd-doc__hero { border-radius: 12px 12px 0 0; background: url('https://xappdesign-media.pages.dev/assets/img/partner-tablet-640.webp') 97% 72% / 260% auto no-repeat; }
.partclose__in { position: relative; z-index: 1; display: grid; gap: 28px; align-items: center; }
.partclose__words { display: grid; gap: 16px; max-width: 460px; }
.partclose .close__line { color: var(--c-ink-soft); }
.partclose .close__talk a { color: var(--c-ink); }
.partclose__box .book { box-shadow: var(--shadow-l); }
/* the phone: the words first, then the desk, the form's card standing in front of the laptop's lower half */
@media (max-width: 999px) {
  .partclose { display: flex; flex-direction: column; padding-top: var(--section-y); }
  .partclose__in { display: contents; }
  .partclose__words { order: 1; box-sizing: border-box; width: 100%; max-width: none; padding-inline: var(--gutter); margin-bottom: 28px; }
  .partclose__media { order: 2; margin-bottom: 0; }
  .partclose__box { order: 3; position: relative; z-index: 1; box-sizing: border-box; width: 100%; max-width: 520px; align-self: center; margin-top: -150px; padding-inline: var(--gutter); }
}
@media (min-width: 1000px) {
  .partclose { padding-top: var(--section-y); }
  .partclose__media { position: absolute; top: 0; bottom: 0; left: 36%; right: 0; height: auto; margin: 0; }
  .partclose__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-paper) 0%, rgba(246, 241, 232, 0.6) 12%, rgba(246, 241, 232, 0) 30%); pointer-events: none; }
  .partclose__photo { object-position: 50% 50%; }
  .partclose__in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; min-height: 560px; }
  /* low in the band, so the card stands in front of the laptop (over its lower edge and keys), never inside its screen */
  .partclose__box { justify-self: center; align-self: end; width: min(480px, 100%); }
}
