/* /partners/apply/ (lab/pages/p_partners_apply.py, 2026-10-23). Two parts of its own on the world shell: the
   three-paths device inside a product window (each path lights in turn, a point travels its lane; the lane is the
   empty gap between the two text columns, so no label ever sits on a line) and the application form.
   The form is the contact form's .book panel, widened and given inline validation. Loads after shell.css. */

/* the three paths and the four steps are mg flows (mg.css) since 2026-10-25 */
.erp .pa-tabs .mg-flow { max-width: none; }
.erp .pa-more { margin-top: clamp(28px, 3vw, 40px); }

/* ---------------------------------------------------------------- the application */
.erp .pa-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 680px); align-items: start; }
.erp .pa-existing { margin: 22px 0 0; font-size: 15px; line-height: 1.55; color: rgb(233 228 247 / .74); max-width: 42ch; }
.erp .pa-existing__link { margin: 10px 0 0; }
.erp .pa-form { gap: 16px; scroll-margin-top: 90px; }
.erp .pa-form .book__h { margin: 0; }
.erp .pa-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.erp .pa-field { display: grid; align-content: start; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.erp .pa-field > label, .erp .pa-types legend { display: block; font-size: 13.5px; font-weight: 500; color: rgb(233 228 247 / .86); padding: 0; }
.erp .pa-field > label em { font-style: normal; font-size: 12px; color: rgb(233 228 247 / .5); margin-left: 4px; }
.erp .pa-form input:not([type="radio"]):not([type="checkbox"]), .erp .pa-form select, .erp .pa-form textarea { min-height: 44px; font-family: inherit; }
.erp .pa-form select { appearance: none; padding-right: 38px; cursor: pointer;
  background: #0a0b10 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23b8a8ff' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.erp .pa-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--neon); outline-offset: 1px; border-color: var(--neon); }
.erp .pa-form [aria-invalid="true"] { border-color: #ff8f84; }
.erp .pa-err { display: none; font-size: 12.5px; line-height: 1.4; color: #ffb4ab; }
.erp .pa-err.show { display: block; }
.erp .pa-types { display: grid; gap: 8px; }
.erp .pa-types__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.erp .pa-form .pa-type { position: relative; display: block; cursor: pointer; }
.erp .pa-form .pa-type input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.erp .pa-type span { display: block; height: 100%; min-height: 44px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #0a0b10;
  font-size: 12.5px; line-height: 1.45; color: rgb(233 228 247 / .66); transition: border-color .16s, background .16s; }
.erp .pa-type span b { display: block; margin-bottom: 4px; font: 600 14.5px/1.3 var(--sc-font-display); color: #f4f3ef; }
.erp .pa-type:hover span { border-color: #5b4a8f; }
.erp .pa-type input:checked + span { border-color: var(--neon); background: color-mix(in oklab, var(--glow) 14%, #0a0b10); }
.erp .pa-type input:focus-visible + span { outline: 2px solid var(--neon); outline-offset: 2px; }
.erp .pa-form .pa-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; font-weight: 400; font-size: 13.5px; line-height: 1.5; min-height: 44px; }
.erp .pa-form .pa-check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: #8d6bff; }
.erp .pa-check a, .erp .book__fine a { color: var(--neon-soft); text-decoration: underline; text-underline-offset: 3px; }
.erp .pa-form .book__go { min-height: 48px; }
.erp .pa-form .book__msg:empty { display: none; }
.erp .pa-done { display: grid; gap: 12px; padding: 8px 0; }
.erp .pa-done h3 { margin: 0; font: 600 24px/1.2 var(--sc-font-display); letter-spacing: -.02em; color: #f4f3ef; }
.erp .pa-done p { margin: 0; font-size: 15.5px; line-height: 1.55; color: rgb(233 228 247 / .8); }
.erp .pa-done a { color: var(--neon-soft); }

@media (max-width: 980px) {
  .erp .pa-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .erp .pa-row, .erp .pa-types__grid { grid-template-columns: minmax(0, 1fr); }
}
.erp .pa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.erp .pa-mq { margin-top: clamp(32px, 5vh, 56px); }

/* ---------------------------------------------------------------- variety pass 2026-10-25 (lab/pages/p_partners_apply.py)
   ways: iOS-style segmented control, thumb slides, content swaps (Linear contact routing, https://linear.app/contact).
   after: vertical dated timeline on a line that fills as you read (Raycast, https://www.raycast.com/jobs). */
.erp .pa-sec { padding-block: clamp(96px, 14vh, 160px); }
.erp .pa-h { margin: 0; max-width: 20ch; text-wrap: balance; }
.erp .pa-lede { margin: 20px 0 0; max-width: 50ch; }
.erp .pa-seg { margin-top: clamp(48px, 7vh, 80px); }
.erp .pa-seg__tabs { position: relative; display: inline-grid; grid-template-columns: repeat(3, 1fr); padding: 5px; border-radius: 14px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.erp .pa-seg__tabs button { position: relative; z-index: 1; min-width: clamp(96px, 11vw, 150px); min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: none; color: #bdb6d0; font: 600 16px/1 var(--sc-font-text); cursor: pointer; transition: color .3s; }
.erp .pa-seg__tabs button[aria-selected="true"] { color: #fff; }
.erp .pa-seg__tabs button:focus-visible { outline: 2px solid var(--neon); outline-offset: 1px; }
.erp .pa-seg__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 10px; background: #5b3fb0; box-shadow: 0 6px 18px -6px rgb(0 0 0 / .8), inset 0 1px 0 rgb(255 255 255 / .22);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.erp .pa-pan { margin-top: clamp(44px, 6vh, 72px); }
.erp .pa-seg.js .pa-pan[hidden] { display: none; }
.erp .pa-seg:not(.js) .pa-pan + .pa-pan { margin-top: 64px; }
.erp .pa-pan__k { margin: 0; color: #c9b6ff; font: 500 15px/1 var(--sc-font-text); }
.erp .pa-pan__c { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 6vw, 96px); margin-top: 22px; }
.erp .pa-pan__c small { display: block; color: #8f88a6; font: 400 14px/1 var(--sc-font-text); }
.erp .pa-pan__c p { margin: 14px 0 0; max-width: 18ch; color: #f4f3ef; font: 500 clamp(26px, 3vw, 44px)/1.12 var(--sc-font-display); letter-spacing: -.03em; text-wrap: balance; }
.erp .pa-pan__e { margin: clamp(32px, 5vh, 52px) 0 0; color: #4ade80; font: 600 17px/1.2 var(--sc-font-text); }
.erp .pa-seg.js .pa-pan.is-in .pa-pan__c div { animation: pa-up .6s cubic-bezier(.16, 1, .3, 1) both; }
.erp .pa-seg.js .pa-pan.is-in .pa-pan__c div + div { animation-delay: .08s; }
@keyframes pa-up { from { opacity: 0; transform: translateY(14px); } }

.erp .pa-tl { position: relative; display: grid; gap: clamp(40px, 6vh, 64px); margin: clamp(56px, 8vh, 88px) 0 0; padding: 0; list-style: none; --pa-p: 0; }
.erp .pa-tl::before, .erp .pa-tl::after { content: ""; position: absolute; left: clamp(190px, 22vw, 300px); top: 12px; bottom: 12px; width: 2px; margin-left: 10px; background: rgb(255 255 255 / .14); }
.erp .pa-tl::after { background: #9a6bff; transform-origin: top; transform: scaleY(var(--pa-p)); transition: transform .8s cubic-bezier(.16, 1, .3, 1); box-shadow: 0 0 12px rgb(154 107 255 / .6); }
.erp .pa-tl__r { position: relative; display: grid; grid-template-columns: clamp(190px, 22vw, 300px) 22px minmax(0, 1fr); align-items: start; gap: clamp(20px, 3vw, 44px); opacity: .32; transition: opacity .5s cubic-bezier(.16, 1, .3, 1); }
.erp .pa-tl__r.on { opacity: 1; }
.erp .pa-tl__r time { color: #c9b6ff; font: 500 clamp(15px, 1.3vw, 18px)/1.4 var(--sc-font-mono); padding-top: 3px; }
.erp .pa-tl__r i { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: #0e0b1a; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .25); transition: background .4s, box-shadow .4s; margin-top: 2px; }
.erp .pa-tl__r.on i { background: #7b58c5; box-shadow: 0 0 14px rgb(154 107 255 / .7); }
.erp .pa-tl__r b { display: block; color: #f4f3ef; font: 500 clamp(26px, 3vw, 44px)/1.1 var(--sc-font-display); letter-spacing: -.03em; }
.erp .pa-tl__r p { margin: 12px 0 0; max-width: 42ch; color: #bdb6d0; font: 400 17px/1.55 var(--sc-font-text); }
@media (max-width: 760px) {
  .erp .pa-seg__tabs { display: grid; } .erp .pa-seg__tabs button { min-width: 0; padding: 0 6px; font-size: 15px; }
  .erp .pa-pan__c { grid-template-columns: 1fr; gap: 28px; } .erp .pa-pan__c p { max-width: none; }
  .erp .pa-tl::before, .erp .pa-tl::after { left: 0; margin-left: 10px; }
  .erp .pa-tl__r { grid-template-columns: 22px minmax(0, 1fr); row-gap: 8px; }
  .erp .pa-tl__r time { grid-column: 2; grid-row: 1; } .erp .pa-tl__r i { grid-column: 1; grid-row: 1; } .erp .pa-tl__r div { grid-column: 2; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .erp .pa-seg__thumb, .erp .pa-tl::after, .erp .pa-tl__r { transition: none; } .erp .pa-seg.js .pa-pan.is-in .pa-pan__c div { animation: none; }
}
