@import url("/css/scrollcraft.css") layer(scrollcraft);
/* Partner Program: a split stage (docs/features/site-scroll/stories/05-partners.md).
   Two columns held in tension down the page, What you get and What we ask, with
   one divider at the exact middle of the screen as the page's chrome. At the close
   the divider sweeps to the right edge, carrying the "What we ask" half away, and the
   partner's side takes the width with the apply form in it. Every value is a token from css/site.css; no shadows (the
   divider label chip is not floating content), no gradients, no tilts. The scroll
   engine is vendored unchanged and only used for the apps wipe. */
:root{
  --sc-canvas:var(--color-surface);--sc-surface:var(--color-surface-sunken);
  --sc-ink:var(--color-ink);--sc-ink-soft:var(--color-ink-muted);
  --sc-accent:var(--color-focus);--sc-accent-ink:var(--color-white);
  --sc-font-display:var(--font-sans);--sc-font-text:var(--font-sans);--sc-font-mono:var(--font-mono);
  --pt-hdr:65px;--pt-col:48px;
}
.pt-main{position:relative;letter-spacing:normal}
.pt-main :focus-visible{outline:2px solid var(--color-focus);outline-offset:2px;border-radius:var(--radius-sm)}
.pt-apply-copy :focus-visible{outline-color:var(--color-ink-inverse)}
.pt-main p{margin:0}
.pt-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pt-h1{font-size:40px;line-height:1.08;font-weight:700;letter-spacing:-.02em;color:var(--color-ink);text-wrap:balance;margin:12px 0 0}
.pt-h2{font-size:30px;line-height:1.15;font-weight:700;letter-spacing:-.015em;color:var(--color-ink);text-wrap:balance;margin:0}
.pt-h3{font-size:18px;line-height:1.3;font-weight:600;color:var(--color-ink);margin:0}
.pt-lede{margin-top:16px!important;font-size:17px;line-height:1.55;color:var(--color-ink);max-width:52ch}
.pt-copy{margin-top:10px!important;font-size:17px;line-height:1.55;color:var(--color-ink);max-width:48ch}
.pt-small{margin-top:16px!important;font-size:14px;color:var(--color-ink-muted)}
.pt-strong{font-weight:600;color:var(--color-ink)}
.pt-side-tag{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--color-ink-muted)}
.pt-actions{margin-top:24px;display:flex;flex-wrap:wrap;gap:12px}
.pt-facts{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 20px;font-size:15px;color:var(--color-ink)}
.pt-facts li{position:relative;padding-left:20px}
.pt-facts li::before{content:"";position:absolute;left:0;top:4px;width:15px;height:15px;background:var(--color-ink-muted);mask:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 12.5l4.5 4.5L19 7.5%27/%3E%3C/svg%3E") center/contain no-repeat}

/* The split: two equal columns that meet at the screen's middle, so every section's
   seam lines up under the one divider. */
.pt-split{max-width:var(--container-site);margin:0 auto;display:grid;grid-template-columns:1fr 1fr}
.pt-side{min-width:0;padding:0 var(--pt-col) 0 16px}
.pt-side-r{padding:0 16px 0 var(--pt-col)}
.pt-head{max-width:var(--container-site);margin:0 auto;padding:0 16px 28px}
.pt-bar{display:none}

/* The divider: fixed at the middle while the argument is on screen. */
.pt-divider{position:fixed;left:50%;top:var(--pt-hdr);bottom:0;width:1px;margin-left:-.5px;background:var(--color-line);z-index:2;opacity:0;pointer-events:none;transition:opacity .2s ease}
.pt-js .pt-divider.is-on{opacity:1}
.pt-divider-fill{position:absolute;left:0;top:0;width:1px;height:100%;background:var(--color-navy);transform-origin:top;transform:scaleY(var(--pt-progress,0))}
.pt-divider-label{position:absolute;top:24px;writing-mode:vertical-rl;white-space:nowrap;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--color-ink-muted)}
.pt-divider-label-l{right:8px}
.pt-divider-label-r{left:8px;color:var(--color-ink)}

/* 1 · Terms (pinned on desktop): both headlines, then four pairs, the current one in ink. */
.pt-terms .pt-sticky{padding:36px 0 28px}
.pt-split-hero{align-items:start;padding-top:28px}
.pt-side-hero-r{padding-top:30px}
.pt-terms .pt-side-r{padding-top:34px}
.pt-terms-list{list-style:none;max-width:var(--container-site);margin:28px auto 0;padding:0;border-top:1px solid var(--color-line-subtle)}
.pt-pair{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--color-line-subtle);transition:color .2s ease}
.pt-pair p{padding:13px var(--pt-col) 13px 16px;font-size:16px;line-height:1.45;color:var(--color-ink)}
.pt-pair .pt-ask{padding:13px 16px 13px var(--pt-col)}
.pt-mini{display:none}
.pt-js .pt-pinned .pt-pair p{color:var(--color-ink-muted)}
.pt-js .pt-pinned .pt-pair.is-on p{color:var(--color-ink)}
.pt-js .pt-pinned .pt-pair.is-now p{font-weight:600}

/* 2 · Apps */
.pt-apps{padding:88px 0}
.pt-brand{font-size:14px;color:var(--color-ink-muted);margin-bottom:12px!important}
.pt-brand strong{font-size:16px;color:var(--color-ink)}
.pt-apps-list{list-style:none;margin:0;padding:0;border:1px solid var(--color-line-subtle);border-radius:var(--radius-lg);background:var(--color-surface-raised)}
.pt-apps-list li+li{border-top:1px solid var(--color-line-subtle)}
.pt-apps-list a{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 16px;color:var(--color-ink);text-decoration:none}
.pt-apps-list img{width:40px;height:40px;border-radius:var(--radius-md)}
.pt-apps-list b{display:block;font-weight:600}
.pt-apps-list a:hover b{color:var(--color-link)}
.pt-apps-list span span{display:block;font-size:15px;line-height:1.45}
.pt-apps-list em{font-style:normal;font-size:13px;font-weight:600;color:var(--color-ink-muted);text-align:right;max-width:9em}

/* 3 · Types: pick on the left, what it gets you on the right. */
.pt-types{padding:88px 0}
.pt-type-pick{border:0;margin:0;display:grid;gap:8px;align-content:start}
.pt-type-pick label{display:grid;grid-template-columns:18px 1fr;gap:12px;align-items:start;padding:14px 16px;border:1px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-surface-raised);cursor:pointer;transition:border-color .15s ease}
.pt-type-pick label:hover{border-color:var(--color-navy)}
.pt-type-pick label:has(input:checked){border-color:var(--color-navy);outline:1px solid var(--color-navy)}
.pt-type-pick input{width:18px;height:18px;margin:2px 0 0;accent-color:var(--color-navy)}
.pt-type-pick b{display:block;font-weight:600;font-size:16px}
.pt-type-pick span{font-size:15px;line-height:1.45;color:var(--color-ink)}
.pt-type-panel+.pt-type-panel{margin-top:40px;padding-top:32px;border-top:1px solid var(--color-line-subtle)}
.pt-js .pt-type-panel{display:none}
.pt-js .pt-type-panel.is-on{display:block;margin-top:0;padding-top:0;border-top:0}
.pt-ticks{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
.pt-ticks li{position:relative;padding-left:22px;font-size:16px;line-height:1.45}
.pt-ticks li::before{content:"";position:absolute;left:0;top:4px;width:16px;height:16px;background:var(--color-success);mask:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 12.5l4.5 4.5L19 7.5%27/%3E%3C/svg%3E") center/contain no-repeat}
.pt-specs{margin:20px 0 0;border-top:1px solid var(--color-line-subtle)}
.pt-specs div{display:grid;grid-template-columns:130px 1fr;gap:12px;padding:9px 0;border-bottom:1px solid var(--color-line-subtle);font-size:15px}
.pt-specs dt{color:var(--color-ink-muted);font-weight:600}
.pt-specs dd{margin:0;color:var(--color-ink)}

/* 4 · How it works and questions */
.pt-how{padding:88px 0;background:var(--color-surface-sunken)}
.pt-steps{list-style:none;margin:0;padding:0;display:grid;gap:18px}
.pt-steps li{display:grid;grid-template-columns:36px 1fr;gap:14px;align-items:start}
.pt-steps li p:last-child{font-size:15px;line-height:1.45;margin-top:2px!important}
.pt-when{font-size:13px;font-weight:600;color:var(--color-ink-muted)}
.pt-chips{margin-top:24px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pt-faq-title{margin-bottom:4px}
.pt-faq{border-top:1px solid var(--color-line-subtle)}
.pt-faq .faq-row{border-bottom:1px solid var(--color-line-subtle)}

/* 5 · Apply: the divider becomes the form. Resolved state is the default; partners.js
   turns on the travel (.pt-closing) on wide screens with motion allowed. */
.pt-apply{position:relative;background:var(--color-surface-inverse)}
.pt-main~.footer{margin-top:0;border-top:1px solid var(--color-navy-deep)}
/* clip, not hidden: a hidden box is still a scroll container, and scrolling Send into view slid
   it 29 px sideways with a white strip at its right edge (Lens round 1, finding 5) */
.pt-apply-stage{position:relative;overflow:clip}
.pt-apply-inner{max-width:var(--container-site);margin:0 auto;padding:80px 16px;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:48px;align-items:start;color:var(--color-ink-inverse)}
.pt-apply .pt-h2{color:var(--color-white)}
.pt-apply .pt-copy{color:var(--color-ink-inverse)}
.pt-apply .pt-small{color:var(--color-ink-inverse-muted)}
.pt-apply .pt-strong{color:var(--color-white)}
.pt-apply-copy .link{color:var(--color-ink-inverse-muted);text-decoration:underline;text-underline-offset:2px}
.pt-apply-copy .link:hover{color:var(--color-white)}
.pt-apply-form .link{color:var(--color-link)}
.pt-apply-form .link:hover{color:var(--color-link-hover)}
.pt-apply .btn-secondary{border-color:var(--color-ink-inverse-muted);color:var(--color-white)}
.pt-apply .btn-secondary:hover{background:var(--color-navy-deep)}
.pt-apply-form{min-width:0;border-radius:var(--radius-lg);background:var(--color-surface);padding:24px;color:var(--color-ink)}
.pt-apply-ask,.pt-apply-line{display:none}

/* Desktop: the split argument and its two moving parts. */
@media (min-width:900px){
  .pt-h1{font-size:44px}
  /* A section heading keeps to the left column's measure, the same edge as the cards under it,
     so it never passes under the divider's labels while scrolling (Lens round 1, finding 4). */
  .pt-head .pt-h2{max-width:calc(50% - var(--pt-col))}
  .pt-apply-ask ul{list-style:none;margin:14px 0 0;padding:0;border-top:1px solid var(--color-line-subtle);max-width:44ch}
  .pt-apply-ask li{padding:12px 0;border-bottom:1px solid var(--color-line-subtle);font-size:16px;line-height:1.45}
  .pt-apply-line span{position:absolute;top:24px;right:8px;writing-mode:vertical-rl;white-space:nowrap;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--color-white);opacity:calc(1 - var(--pt-close,0) * 1.4)}
}

/* The pin and the close run where partners.js runs them: wide, scripting on, motion allowed.
   Their heights are set here, not by the script, so the first paint already has them and
   nothing below moves when the script arrives (NF2). */
@media (min-width:900px) and (scripting:enabled) and (prefers-reduced-motion:no-preference){
  .pt-terms{position:relative;height:260vh}
  .pt-terms .pt-sticky{position:sticky;top:var(--pt-hdr);height:calc(100svh - var(--pt-hdr));overflow:hidden;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center}
  .pt-apply{height:190vh}
  .pt-apply .pt-apply-stage{position:sticky;top:var(--pt-hdr);height:calc(100svh - var(--pt-hdr));display:flex;align-items:center}
  .pt-apply .pt-apply-inner{width:100%;padding-top:32px;padding-bottom:32px}
  .pt-apply .pt-apply-ask{position:absolute;top:0;bottom:0;left:50%;right:0;background:var(--color-surface);color:var(--color-ink);padding:0 max(16px,calc(50vw - var(--container-site)/2 + 16px)) 0 var(--pt-col);display:flex;flex-direction:column;justify-content:center;transform:translateX(calc(var(--pt-close,0) * 100%))}
  .pt-apply .pt-apply-line{display:block;position:absolute;top:0;bottom:0;left:50%;width:1px;background:var(--color-ink-inverse-muted);transform:translateX(calc(var(--pt-close,0) * 50vw))}
  .pt-apply .pt-apply-form{opacity:calc(var(--pt-close,0) * 1.6 - .2)}
}
/* Until the script picks the panel, show the first (Agencies, checked in the markup). */
@media (scripting:enabled){.pt-type-panel:not(:first-child){display:none}}

/* Phones and narrow windows: the split stacks. Each section keeps both sides, in order,
   with a label bar between them standing in for the divider. */
@media (max-width:899px){
  .pt-divider{display:none}
  .pt-split{grid-template-columns:1fr}
  .pt-side,.pt-side-r{padding:0 16px}
  .pt-side-r{margin-top:28px}
  .pt-terms .pt-sticky{padding:24px 0 8px}
  .pt-h1{font-size:30px}
  .pt-h2{font-size:24px}
  .pt-split-hero .pt-side-r{margin-top:24px;padding-top:20px;border-top:1px solid var(--color-line-subtle)}
  .pt-bar{display:flex;justify-content:space-between;max-width:var(--container-site);margin:0 auto 20px;padding:0 16px;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--color-ink-muted)}
  .pt-bar span+span{color:var(--color-ink)}
  .pt-bar-terms{margin:28px auto 8px}
  .pt-terms-list{margin-top:0}
  .pt-pair{grid-template-columns:1fr;padding:12px 16px}
  .pt-pair p,.pt-pair .pt-ask{padding:0}
  .pt-pair .pt-ask{margin-top:6px}
  .pt-mini{display:block;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--color-ink-muted)}
  .pt-apps,.pt-types,.pt-how{padding:56px 0}
  .pt-apply-inner{grid-template-columns:1fr;gap:28px;padding:56px 16px}
  .pt-apply-form{padding:18px}
  .pt-specs div{grid-template-columns:110px 1fr}
}
@media (prefers-reduced-motion:reduce){.pt-main *{transition:none!important}}
