/* WebMade Partners (Owner 22:06 UTC 2026-10-26: "up to Apple.com standard and our signature look", "use the screen
   size more efficiently and less scrolling"). The checkout's world: the planet behind, obsidian glass, one cyan
   accent, one bubble button per screen (tokens in app.css). Desktop: the pitch on the left, the join panel on the
   right, everything that matters inside 1440x900. Phones: the pitch in brief, the form straight after it. Partners
   see their dashboard as a full-width grid of glass tiles. */
body.pp {
  --c: #37d7ff; --t1: #fff; --t2: #c3cad8; --t3: #8f9aae; --edge: rgba(255,255,255,.12); --edge2: rgba(255,255,255,.07);
  --g-clear: rgb(6 10 20 / 42%); --g-frosted: rgb(9 14 26 / 76%); --g-solid: #0a101c; --g-hi: rgb(229 248 255 / 9%);
  display: block; place-items: normal; padding: 0; background: #05080f; color: var(--t1); font: 400 16px/1.55 var(--body);
}
.pp h1, .pp h2, .pp h3 { font-family: var(--body); color: var(--t1); }
.pp p { color: var(--t2); }
.pp .keyart::after { background: radial-gradient(120% 90% at 30% 30%, rgba(5,8,15,.45) 0%, rgba(5,8,15,.8) 70%), linear-gradient(180deg, rgba(5,8,15,.6), rgba(5,8,15,.4) 30%, rgba(5,8,15,.9)); }
.pp .skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: #fff; color: #05080f; }
.pp .skip:focus { top: 12px; }

/* Header: the brand on the left, "Partners" centred, Sign out on the right. */
.pp-bar { position: relative; display: flex; align-items: center; min-height: 68px; padding: 0 clamp(16px, 4.5vw, 64px); border-bottom: 1px solid var(--edge2); background: linear-gradient(180deg, rgba(5,8,15,.75), rgba(5,8,15,.35)); }
.pp-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--t1); text-decoration: none; }
.pp-brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(55,215,255,.45)); }
.pp-brand b { font: 700 22px/1 var(--body); letter-spacing: -.02em; }
.pp-title { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; font: 500 17px/1 var(--body); color: var(--t1) !important; }
.pp-bar #out { margin: 0 0 0 auto; }
.pp-bar #signout { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; color: var(--t1); text-decoration: none; font-size: 15px; background: rgba(255,255,255,.04); box-shadow: var(--wm-glow-rim); }
.pp-bar #signout:hover { box-shadow: var(--wm-glow-rim-hover); }

/* The grid */
.pp-grid {
  max-width: 1360px; margin: 0 auto; padding: 34px clamp(16px, 4.5vw, 64px) 56px;
  display: grid; grid-template-columns: 300px minmax(0, 1fr) 452px; column-gap: 28px; row-gap: 22px; align-items: start;
  grid-template-areas: "hero hero panel" "film info panel" "steps steps panel" "rule rule panel" ". . panel"; grid-template-rows: auto auto auto auto 1fr;
}
.pp-hero { grid-area: hero; padding-right: 28px; }
.pp-film { grid-area: film; }
.pp-info { grid-area: info; align-self: center; }
.pp-steps { grid-area: steps; }
.pp-grid > .pp-rule { grid-area: rule; }
.pp-panel { grid-area: panel; position: sticky; top: 24px; margin-left: 28px; }

.pp .eyebrow { color: var(--c); letter-spacing: .24em; font-size: 12px; }
.pp-hero h1 { margin: 14px 0 0; max-width: 15ch; font: 700 clamp(40px, 4.4vw, 62px)/1.02 var(--body); letter-spacing: -.035em; }
.pp-lede { margin: 16px 0 0; max-width: 34em; font-size: 19px; line-height: 1.5; color: var(--t2) !important; }

/* The film poster, larger, with its play bubble. */
.pp .pitch-film { margin: 0; display: block; }
.pp .pitch-film .wm-tut-thumb { display: grid; justify-items: start; gap: 8px; }
.pp .pitch-film .wm-tut-pic { width: 300px; border-radius: 16px; border: 0; }
.pp .pitch-film .wm-tut-pic i { left: 12px; bottom: 12px; width: 40px; height: 40px; font-size: 14px; }
.pp .pitch-film .wm-tut-cap { font: 500 14px/1.2 var(--body); color: var(--c); }

.pp-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pp-facts li { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--t1); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--edge); }
.pp-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.pp-where { margin: 14px 0 0; font-size: 15px; line-height: 1.55; }

.pp-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.pp-steps li { position: relative; isolation: isolate; padding: 16px 18px 18px; border-radius: 18px; counter-increment: s; display: grid; gap: 6px; align-content: start; }
.pp-steps li::after { content: counter(s); position: absolute; right: 16px; top: 14px; font: 600 13px/1 var(--body); color: var(--c); }
.pp-steps b { font: 600 17px/1.25 var(--body); color: var(--t1); padding-right: 18px; }
.pp-steps span { font-size: 14px; line-height: 1.45; color: var(--t2); }

/* The payment rule: calm, compact, word for word. */
.pp .pp-rule { position: relative; margin: 0; padding: 12px 16px 12px 44px; border: 0; border-radius: 14px; font-size: 13px; line-height: 1.5; color: #b9c2d3; background: rgba(55,215,255,.05); box-shadow: inset 0 0 0 1px rgba(55,215,255,.22); text-align: left; }
.pp .pp-rule::before { content: ""; position: absolute; left: 16px; top: 14px; width: 16px; height: 18px; background: var(--c); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M8 0 1 3v5c0 4.4 3 8.3 7 9.6 4-1.3 7-5.2 7-9.6V3L8 0Zm-1.2 12.4L3.6 9.2l1.4-1.4 1.8 1.8 4.2-4.2 1.4 1.4-5.6 5.6Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M8 0 1 3v5c0 4.4 3 8.3 7 9.6 4-1.3 7-5.2 7-9.6V3L8 0Zm-1.2 12.4L3.6 9.2l1.4-1.4 1.8 1.8 4.2-4.2 1.4 1.4-5.6 5.6Z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Materials: frosted for the panel, clear for the steps and tiles; solid where glass would sit on glass. */
.pp-panel, .pp-steps li, .pp-tile { isolation: isolate; }
.pp-panel { position: sticky; border-radius: 24px; padding: 28px 28px 26px; }
.pp-panel::before, .pp-steps li::before, .pp-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: var(--g-solid); box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--edge); }
.pp-panel::before { box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px rgba(255,255,255,.14), 0 30px 80px -20px rgba(0,0,0,.7); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pp-panel::before { background: linear-gradient(180deg, rgb(14 19 30 / 72%), rgb(7 10 18 / 82%)); -webkit-backdrop-filter: blur(18px) saturate(110%); backdrop-filter: blur(18px) saturate(110%); }
  .pp-steps li::before, .pp-tile::before { background: var(--g-clear); -webkit-backdrop-filter: blur(18px) saturate(115%); backdrop-filter: blur(18px) saturate(115%); }
}
@media (prefers-reduced-transparency: reduce) { .pp-panel::before, .pp-steps li::before, .pp-tile::before { background: var(--g-solid); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (forced-colors: active) { .pp-panel::before, .pp-steps li::before, .pp-tile::before { background: Canvas; border: 1px solid CanvasText; } }

/* Inside the panel */
.pp-panel > section > h2, .pp-panel h2#form-title { margin: 0; font: 600 26px/1.15 var(--body); letter-spacing: -.02em; }
.pp-panel section > .note:first-of-type { margin-top: 6px; }
.pp .note { font-size: 14px; color: var(--t3); }
.pp form { gap: 10px; margin-top: 18px; }
.pp label { font: 500 14px/1.3 var(--body); color: var(--t2); }
.pp input, .pp select, .pp textarea { min-height: 50px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); font-size: 16px; }
.pp input:hover, .pp select:hover { border-color: rgba(255,255,255,.24); }
.pp input:focus-visible, .pp select:focus-visible { outline: 2px solid var(--c); outline-offset: 1px; border-color: transparent; }
.pp input[type=checkbox] { min-height: 0; }
.pp .check { align-items: flex-start; font: 400 14px/1.45 var(--body); color: var(--t2); min-height: 0; padding: 6px 0; }
.pp .check input { margin-top: 1px; flex: none; }
.pp form > button[type=submit], .pp #rest > button[type=submit] { width: 100%; margin-top: 6px; }
.pp #signin-form button { width: 100%; }
.pp #who-fields, .pp #w9, .pp #w8, .pp #rest { display: grid; gap: 10px; }
fieldset { border: 1px solid var(--edge, rgba(255,255,255,.12)); border-radius: 16px; padding: 14px 16px 16px; display: grid; gap: 8px; margin: 4px 0 0; min-width: 0; }
legend { padding: 0 6px; color: var(--t1, #fff); font: 600 15px/1.2 var(--body); }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.agreement { white-space: pre-wrap; font-size: 13px; line-height: 1.55; color: var(--t3, #8f9aae); max-height: 200px; overflow: auto; border-radius: 12px; padding: 12px 14px; margin-top: 8px; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.pp details summary { cursor: pointer; color: var(--t1); font: 600 15px/1.3 var(--body); min-height: 32px; display: flex; align-items: center; }

/* The partner dashboard: the pitch steps aside and the tiles take the full width. */
body.pp[data-view=dash] :is(.pp-hero, .pp-film, .pp-info, .pp-steps, .pp-grid > .pp-rule) { display: none; }
body.pp[data-view=dash] .pp-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "panel"; grid-template-rows: auto; padding-top: 26px; }
body.pp[data-view=dash] .pp-panel { grid-row: auto; position: static; margin: 0; padding: 0; }
body.pp[data-view=dash] .pp-panel::before { display: none; }
.pp-dash-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 18px; }
.pp-alert { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; background: rgba(255,200,90,.08); box-shadow: inset 0 0 0 1px rgba(255,200,90,.35); color: #ffe3a8 !important; }
.pp-tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pp-tile { position: relative; border-radius: 22px; padding: 22px 24px 24px; min-width: 0; }
.pp-tile > h2 { margin: 0 0 14px; font: 600 19px/1.2 var(--body); letter-spacing: -.01em; }
.pp-t-link { grid-column: span 7; }
.pp-t-pay { grid-column: span 5; align-self: stretch; display: flex; flex-direction: column; }
.pp-t-pay .row:last-child { margin-top: auto; padding-top: 12px; }
.pp-t-earn { grid-column: span 7; }
.pp-t-ledger { grid-column: span 5; }
.pp-t-sales { grid-column: span 7; }
.pp-t-details { grid-column: span 5; }
.pp .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pp .row button { min-height: 46px; padding: 0 22px; font-size: 15px; }
.pp #status { margin: 0; font-size: 15px; color: var(--t2); }

.share { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; }
.qr { width: 150px; height: 150px; background: #fff; border-radius: 14px; padding: 9px; box-shadow: 0 0 0 1px rgba(214,228,242,.4), 0 0 24px rgba(55,215,255,.18); }
.qr svg { width: 100%; height: 100%; display: block; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.note .mono { word-break: normal; white-space: nowrap; }
.pp-link { margin: 0; font-size: 17px; }
.pp-link a { color: var(--t1); text-decoration: none; }
.pp-link a:hover { color: var(--c); }
.pp-code { margin: 6px 0 14px; font-size: 14px; color: var(--t3) !important; }
.pp-code strong { margin-left: 6px; padding: 3px 10px; border-radius: 8px; font-size: 14px; color: var(--c); background: rgba(55,215,255,.08); box-shadow: inset 0 0 0 1px rgba(55,215,255,.25); }

.totals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.totals div { padding: 12px 14px; border-radius: 14px; font-size: 13px; color: var(--t3); background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--edge2); }
.totals strong { display: block; margin-bottom: 2px; font: 600 22px/1.15 var(--body); color: var(--t1); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pp #counts { margin: 14px 0 0; }
.pp-list { margin: 0; gap: 0; }
.pp-list li { padding: 12px 0; border-top: 1px solid var(--edge2); }
.pp-list li:first-child { border-top: 0; padding-top: 0; }
.pp-list li p.note { margin: 4px 0 0; }
.pp-list strong { font-variant-numeric: tabular-nums; }
.pp-fields { margin: 0; gap: 0; }
.pp-fields .field { padding: 10px 0; border-top: 1px solid var(--edge2); }
.pp-fields .field:first-child { border-top: 0; padding-top: 0; }
.pp-fields .label { font-size: 13px; color: var(--t3); }
.pp-fields .value { font-size: 15px; color: var(--t1); }
.state { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; vertical-align: 2px; box-shadow: inset 0 0 0 1px currentColor; }
.state.Paid { color: var(--c); }
.state.Pending, .state.Available, .state.Scheduled { color: #c3cad8; }
.state.Reversed { color: #ffb4a8; }
.credit-card { border: 1px solid var(--accent); }

/* Tablets and small laptops: the film above the facts, the steps stacked. */
@media (max-width: 1180px) {
  .pp-grid { grid-template-columns: minmax(0, 1fr) 420px; grid-template-areas: "hero panel" "film panel" "info panel" "steps panel" "rule panel" ". panel"; grid-template-rows: auto auto auto auto auto 1fr; }
  .pp-panel { grid-row: 1 / span 6; margin-left: 12px; }
  .pp-steps { grid-template-columns: 1fr; }
  .pp-t-link, .pp-t-pay, .pp-t-earn, .pp-t-ledger, .pp-t-sales, .pp-t-details { grid-column: span 6; }
  .totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Phones: the pitch in brief, then the form; the rest follows. */
@media (max-width: 860px) {
  .pp-bar { min-height: 58px; }
  .pp-brand img { width: 32px; height: 32px; }
  .pp-brand b { font-size: 19px; }
  .pp-title { font-size: 15px; }
  .pp-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "panel" "steps" "film" "info" "rule"; grid-template-rows: none; row-gap: 18px; padding: 22px 16px 40px; }
  .pp-hero { padding: 0; }
  .pp-hero h1 { font-size: 38px; max-width: 13ch; }
  .pp-lede { font-size: 16px; margin-top: 10px; }
  .pp-panel { grid-row: auto; position: relative; top: auto; margin: 0; padding: 22px 18px 20px; border-radius: 22px; }
  .pp-panel > section > h2, .pp-panel h2#form-title { font-size: 22px; }
  .pp .pitch-film .wm-tut-pic { width: 100%; }
  .pp .pitch-film .wm-tut-thumb { display: grid; width: 100%; }
  .pp-steps { grid-template-columns: 1fr; gap: 8px; }
  .pp-steps li { padding: 14px 16px; }
  .pp-dash-head { grid-template-columns: 1fr; gap: 12px; }
  .pp-tiles { grid-template-columns: 1fr; gap: 12px; }
  .pp-tiles > .pp-tile { grid-column: 1 / -1; padding: 18px 16px 20px; }
  .share { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .share .row { justify-content: center; }
  .qr { width: 132px; height: 132px; }
  .pp-link { font-size: 15px; }
  .totals { grid-template-columns: 1fr 1fr; }
  .totals div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid3 { grid-template-columns: 1fr; }
  fieldset { padding: 12px 12px 14px; }
}
@media (prefers-reduced-motion: reduce) { .pp * { transition: none !important; } }

/* The payout button answers right under itself, and shows it is working while Stripe opens. */
body.pp .pp-paymsg { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(55,215,255,.07); box-shadow: inset 0 0 0 1px rgba(55,215,255,.22); color: var(--t1); font-size: 14px; line-height: 1.45; }
body.pp button[aria-busy=true] { cursor: progress; opacity: .85; }
body.pp button[aria-busy=true]::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 10px; vertical-align: -1px; border-radius: 50%; border: 1.6px solid currentColor; border-right-color: transparent; animation: pp-spin .8s linear infinite; }
@keyframes pp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { body.pp button[aria-busy=true]::after { animation: none; border-right-color: currentColor; opacity: .6; } }
