/* ═════════════════════════════════════════════════════════════════
   apply.css — /partners and /creators. One application form each.
   Built 2026-11-10. Shell is legal.css (the bar + Möbius mark, as on
   /about), footer is sub.css .ftr. This file owns the hero line and
   the form only. Every selector appears once.

   Type: Aeonik throughout, field prompts included. No Aoi Mono on
   these pages (AD, 2026-11-10: "prompts should always be Aeonik,
   don't overuse Aoi Mono").
   Inputs are 16px on touch widths: iOS zooms the page on focus for
   anything smaller.
   ═════════════════════════════════════════════════════════════════ */

html { scroll-padding-top: 0; }

.ap { max-width: calc(560px * var(--layout-scale) / .8); margin-inline: auto; padding: clamp(28px, 6svh, 64px) var(--gutter) clamp(24px, 5svh, 48px); }

.ap__form { display: grid; gap: var(--s3); }
.ap__form > fieldset { margin-top: var(--s4); }
.ap__handles { margin-top: var(--s1); }
.ap__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); }
.ap__f { display: grid; gap: var(--s1); min-width: 0; border: 0; padding: 0; margin: 0; }
.ap__cap { padding: 0; font-family: var(--font); font-size: var(--t-body); line-height: 1.3; letter-spacing: var(--tr-body); color: var(--text-2); }
.ap__cap i { font-style: normal; color: var(--text-3); font-size: .8em; margin-left: .25em; vertical-align: .15em; }  /* the small * on a required prompt */

/* Bars. The prompt sits inside the bar as its placeholder; Email, Mobile,
   Website and the socials carry an icon instead of a word. AD, 2026-11-10. */
.ap__bar { position: relative; display: flex; align-items: center; gap: var(--s3); min-height: calc(44px * var(--layout-scale) / .8); padding-inline: var(--s4); border-radius: var(--r-inner); background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--line); cursor: text; transition: box-shadow var(--fast) var(--ease); }
.ap__bar:focus-within { box-shadow: inset 0 0 0 1px var(--line-bright); }
.ap__bar.is-bad { box-shadow: inset 0 0 0 1px var(--text); }
.ap__bar[data-req]::after { content: '*'; flex: none; color: var(--text-3); font-size: var(--t-body); line-height: 1; transform: translateY(.15em); }
.ap__bar > svg { flex: none; width: calc(16px * var(--layout-scale) / .8); height: auto; fill: var(--text-2); }
.ap__bar > svg[data-stroke] { fill: none; stroke: var(--text-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ap__bar--area { align-items: flex-start; padding-block: var(--s3); }
.ap__bar--area::after { margin-top: .1em; }
.ap__in { flex: 1; min-width: 0; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); font-family: var(--font); font-size: var(--t-body); line-height: 1.35; letter-spacing: var(--tr-body); -webkit-appearance: none; appearance: none; }
.ap__in::placeholder { color: var(--text-2); opacity: 1; }
.ap__in:focus { outline: none; }
.ap__in:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px #0a0a0a inset; caret-color: var(--text); }
textarea.ap__in { min-height: calc(72px * var(--layout-scale) / .8); resize: none; }

/* Mobile: the country code is its own bar. The select is real and sits
   invisibly over the bar, so the phone opens its native picker. */
.ap__tel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s2); }
.ap__cc { cursor: pointer; gap: var(--s2); }
.ap__cc-v { color: var(--text); font-size: var(--t-body); letter-spacing: var(--tr-body); font-variant-numeric: tabular-nums; }
.ap__cc > .ap__chev { width: calc(11px * var(--layout-scale) / .8); stroke: var(--text-3); }
.ap__cc select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 1rem; border: 0; -webkit-appearance: none; appearance: none; }

/* Choices. Text chips on /partners, icon chips on /creators. Selected is
   the system's loudest state: white on black inverted. */
.ap__set { display: flex; flex-wrap: wrap; gap: var(--s2); padding-top: var(--s3); }
.ap__chip { display: inline-flex; align-items: center; justify-content: center; min-height: calc(36px * var(--layout-scale) / .8); padding: 0 var(--s4); border: 0; border-radius: var(--r-pill); background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-family: var(--font); font-size: var(--t-body); letter-spacing: var(--tr-body); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease); }
/* Category: always one line. Five short chips share the row evenly. */
.ap__set--line { flex-wrap: nowrap; }
.ap__set--line .ap__chip { flex: 1 1 auto; min-width: 0; padding-inline: var(--s2); white-space: nowrap; }
.ap__chip:active { transform: scale(.96); }
.ap__chip:focus-visible { outline: 1px solid var(--text); outline-offset: 2px; }
.ap__chip[aria-pressed="true"] { background: var(--inverse); color: var(--text-inverse); box-shadow: none; }
.ap__chip--ic { width: calc(40px * var(--layout-scale) / .8); height: calc(40px * var(--layout-scale) / .8); padding: 0; }
.ap__chip--ic svg { width: 42%; height: 42%; display: block; fill: currentColor; pointer-events: none; }
.ap__chip--ic svg[data-stroke] { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ap__f.is-bad .ap__chip { box-shadow: inset 0 0 0 1px var(--line-bright); }

/* One handle row per selected platform, its icon in front of the field. */
.ap__handles { display: grid; gap: var(--s3); }
.ap__handles:empty { display: none; }
.ap__handles .ap__bar { animation: ap-in .32s var(--ease) both; }
@keyframes ap-in { from { opacity: 0; transform: translateY(-4px); } }

.ap__go { width: 100%; min-height: calc(44px * var(--layout-scale) / .8); margin-top: var(--s5); }
.ap__note { margin: 0; min-height: 1.4em; text-align: center; color: var(--text-2); font-size: var(--t-body); }

.ap__done { text-align: center; padding-block: var(--s9); }
.ap__done-h { margin: 0 0 var(--s3); font-weight: 500; font-size: var(--t-say); letter-spacing: var(--tr-say); }
.ap__done-p { margin: 0; color: var(--text-2); font-size: var(--t-body); overflow-wrap: anywhere; }

.ftr__close { padding-block: var(--s8) var(--s9); }
.ftr__text { cursor: default; }

@media (max-width: 720px) {
  .ap__cap { font-size: .9375rem; }
  .ap__in { font-size: 1rem; }
  .ap__chip { font-size: .9375rem; padding-inline: 1rem; min-height: var(--tap); }
  .ap__chip--ic { width: var(--tap); height: var(--tap); padding: 0; }
  .ap__set--line { flex-wrap: wrap; }  /* seven chips cannot share 358px; two even rows on a phone */
  .ap__set--line .ap__chip { padding-inline: .625rem; font-size: .875rem; }
  .ap__bar { min-height: 3rem; }
  .ap__bar > svg { width: 1.125rem; }
  .ap__cc-v, .ap__bar[data-req]::after { font-size: .9375rem; }
  .ap__note, .ap__done-p, .ap__go { font-size: .9375rem; }
  .ap__done-h { font-size: 1.5rem; }
}
@media (max-width: 400px) { .ap__pair { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ap__handles .ap__bar { animation: none; } }
@media print { .ftr { display: none; } }

/* The bar: the Möbius mark, then where you are. AD, 2026-11-10. */
.doc__top { max-width: var(--shell); justify-content: flex-start; gap: var(--s4); }
.ap__where { margin: 0; min-width: 0; color: var(--text); font-weight: 500; font-size: var(--t-body); line-height: 1.3; letter-spacing: var(--tr-body); text-wrap: balance; }
@media (max-width: 720px) { .ap__where { font-size: .9375rem; } }

/* No scrollbars, page or field. AD's standing rule; scrolling itself is untouched. */
html, .ap__in { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .ap__in::-webkit-scrollbar { display: none; }
@media (min-width: 921px) { .doc__top { max-width: calc(var(--shell) * .8); } }  /* the footer is zoomed .8 at this width; the bar lines up with it */

/* Phones (AD, 2026-11-15): the form and the bar above it sit in from the edges as far as "Outlive Ordinary" in the footer
   (its lettering starts 7.2% in), so the fields stop running edge to edge. */
@media (max-width: 640px) {
  .ap, .doc__top { padding-inline: max(var(--gutter), 7.2vw); }
}
