/* Rallix Partners (rallix.io/partners), on top of styles.css: the same
   white ground, chalk panels, ink type and nights. Its own object is the
   partner's pass, hung in the hero on a lime strap: the app's night, the
   court drawn in its lines, the player ringed and the cue drawn, and the
   partner's code, which a visitor can type. The rest is the home page's
   own furniture: the value list, the chalk panel, a night with three
   steps, the includes list, the questions and the closing photograph. */

/* --------------------------------------------------------------- hero --- */

.p-hero { padding-top: 132px; overflow-x: clip; }
.p-hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px;
  align-items: center; min-height: min(700px, calc(100vh - 132px));
}
.p-hero h1 { font-size: clamp(42px, 4.8vw, 66px); }
.p-hero h1 span { display: block; text-wrap: balance; }
.p-hero .lede { margin-top: 24px; max-width: 31em; text-wrap: pretty; }
.p-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.p-hero-note { margin-top: 18px; font-size: 14px; color: var(--ash); text-wrap: balance; }

.motion .p-hero h1.rise { animation-delay: 60ms; }
.motion .p-hero .lede.rise { animation-delay: 200ms; }
.motion .p-hero-actions.rise { animation-delay: 300ms; }
.motion .p-hero-note.rise { animation-delay: 380ms; }

/* ---------------------------------------------------------------- pass --- */

/* The pass hangs from the top of the page on its strap, turned a little,
   as accreditation hangs. It drops in once, then the court draws itself,
   the player is ringed and the cue follows: the page's one moment. */
.pass-stage { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 24px; }
.pass {
  position: relative; width: min(360px, 100%);
  rotate: -3deg; transform-origin: 50% -240px;
}
.pass-strap {
  position: absolute; left: 50%; bottom: calc(100% - 14px); z-index: 0;
  width: 38px; height: 640px; translate: -50% 0;
  background:
    linear-gradient(90deg, rgba(15, 20, 6, 0.16), rgba(15, 20, 6, 0) 22%, rgba(15, 20, 6, 0) 78%, rgba(15, 20, 6, 0.16)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 72'%3E%3Cpath transform='translate(10.5 27) scale(0.145)' fill='%230F1406' fill-opacity='0.5' d='M44.24 0L76.73 0A9.09 9.09 0 0 1 83.74 3.31L114.59 40.73A8.25 8.25 0 0 1 114.06 51.81L109.15 56.72A15.27 15.27 0 0 1 86.57 55.63L63.38 27.5A3.1 3.1 0 0 0 60.99 26.37L16.39 26.37A0.78 0.78 0 0 1 15.84 25.03L38.48 2.39A8.14 8.14 0 0 1 44.24 0ZM32.02 39.85L61.93 39.85A1.61 1.61 0 0 1 63.07 42.61L22.63 83.05A11.24 11.24 0 0 1 6 82.25L2.15 77.57A9.42 9.42 0 0 1 2.76 64.92L24.87 42.81A10.11 10.11 0 0 1 32.02 39.85ZM52.42 62.96L85.6 62.96A3.07 3.07 0 0 1 87.97 64.08L117.13 99.45A0.34 0.34 0 0 1 116.87 100L79.85 100L51.29 65.36A1.46 1.46 0 0 1 52.42 62.96Z'/%3E%3C/svg%3E") center bottom / 38px 72px repeat-y,
    var(--lime);
}
/* The clasp joining strap and pass: a little titanium, as the phones' band. */
.pass-clip {
  position: absolute; left: 50%; top: -18px; z-index: 3;
  width: 30px; height: 34px; translate: -50% 0;
  border-radius: 7px 7px 11px 11px;
  background: linear-gradient(155deg, #9a9ca2 0%, #55565b 30%, #3a3b40 62%, #7a7c82 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 3px 6px rgba(10, 12, 15, 0.35);
}
.pass-clip::after {
  content: ""; position: absolute; left: 50%; bottom: 7px; translate: -50% 0;
  width: 12px; height: 4px; border-radius: 4px; background: rgba(10, 12, 15, 0.55);
}

.pass-card {
  position: relative; z-index: 2;
  padding: 26px 24px 22px;
  border-radius: 28px;
  background: linear-gradient(165deg, #1B2028 0%, #0E1115 46%, #0A0C0F 100%);
  color: #FFFFFF;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 2px 4px rgba(10, 12, 15, 0.1),
    0 40px 80px -28px rgba(10, 18, 30, 0.5),
    0 90px 140px -60px rgba(10, 18, 30, 0.4);
  container-type: inline-size;
}
/* Where the clasp goes through. */
.pass-slot {
  position: absolute; left: 50%; top: 12px; translate: -50% 0;
  width: 46px; height: 9px; border-radius: 9px;
  background: var(--paper); box-shadow: inset 0 1px 3px rgba(10, 12, 15, 0.5);
}
.pass-top {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.012em;
}
.pass-top .brand-tile { width: 30px; height: 30px; border-radius: 9px; }
.pass-top .brand-tile svg { width: 16px; height: 13.6px; }

.pass-court { display: block; width: 100%; height: auto; margin-top: 18px; overflow: visible; }
.court-floor { fill: #131922; }
.court-line, .court-net { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.court-line { stroke: rgba(255, 255, 255, 0.34); stroke-width: 1.4; }
.court-net { stroke: rgba(255, 255, 255, 0.7); stroke-width: 2; }
.court-ring { fill: rgba(199, 255, 53, 0.14); stroke: var(--lime); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.court-dot { fill: #FFFFFF; }
.court-cue, .court-cue-head {
  fill: none; stroke: var(--lime); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
}

.pass-body { margin-top: 22px; }
.pass-label { display: block; font-size: 13px; font-weight: 500; color: var(--mist); }
/* The code is a field set as the code: tap it and type your own. */
.pass-code {
  display: block; width: 100%; margin: 4px 0 0; padding: 0 0 4px;
  border: 0; border-bottom: 1.5px dashed rgba(255, 255, 255, 0.22); border-radius: 0;
  background: none; outline: none; color: #FFFFFF; caret-color: var(--lime);
  font: 700 clamp(28px, 11.4cqi, 42px)/1.1 var(--font);
  letter-spacing: 0.01em; text-transform: uppercase;
  transition: border-color 200ms ease;
}
.pass-code::placeholder { color: #FFFFFF; opacity: 1; transition: color 200ms ease; }
.pass-code:hover { border-bottom-color: rgba(255, 255, 255, 0.4); }
.pass-code:focus { border-bottom: 1.5px solid var(--lime); }
.pass-code:focus::placeholder { color: rgba(255, 255, 255, 0.32); }
.pass-link { margin-top: 10px; font-size: 15px; color: var(--mist); overflow-wrap: anywhere; }
.pass-link span { color: var(--fog); }

.pass-terms {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--edge-night);
}
.pass-terms dt { font-size: 13px; font-weight: 500; color: var(--mist); }
.pass-terms dd { margin: 3px 0 0; font-size: clamp(14px, 5cqi, 16px); font-weight: 600; letter-spacing: -0.018em; line-height: 1.3; white-space: nowrap; }

.pass-hint { margin-top: 30px; font-size: 14px; color: var(--ash); text-align: center; text-wrap: balance; }

/* The drop, then the drawing. Without motion the pass simply hangs there,
   drawn. */
.motion .pass { animation: pass-drop 1300ms var(--settle) 250ms both; }
@keyframes pass-drop { from { opacity: 0; translate: 0 -120px; rotate: -11deg; } 40% { opacity: 1; } }
.motion .court-line, .motion .court-net { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 900ms var(--ease) forwards; }
.motion .court-line:nth-of-type(1) { animation-delay: 900ms; animation-duration: 1200ms; }
.motion .court-line:nth-of-type(2) { animation-delay: 1250ms; }
.motion .court-line:nth-of-type(3) { animation-delay: 1450ms; }
.motion .court-net { animation-delay: 1150ms; }
.motion .court-ring, .motion .court-dot { transform-box: fill-box; transform-origin: center; animation: pop 520ms var(--settle) 1900ms both; }
.motion .court-cue { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 520ms var(--ease) 2250ms forwards; }
.motion .court-cue-head { animation: fade-in 200ms ease 2700ms both; }
@keyframes fade-in { from { opacity: 0; } }

@media (max-width: 980px) {
  .p-hero { padding-top: 120px; }
  .p-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 72px; min-height: 0; }
  .p-hero-copy { text-align: center; }
  .p-hero .lede { margin-inline: auto; }
  .p-hero-actions { justify-content: center; }
  /* Stacked, the strap comes out of the space above the pass, faded in,
     clear of the copy. */
  .p-hero-grid { gap: 8px; }
  .pass-stage { padding-top: 104px; }
  .pass-strap { height: 104px; -webkit-mask-image: linear-gradient(transparent, #000 60%); mask-image: linear-gradient(transparent, #000 60%); }
  .pass { transform-origin: 50% -100px; }
}
@media (max-width: 680px) {
  .p-hero { padding-top: 112px; }
  .p-hero h1 span { display: inline; }
  .p-hero h1 { text-wrap: balance; }
  .p-hero-actions .btn { flex: 1 1 100%; }
  .pass { width: min(330px, 100%); }
  .pass-card { padding: 24px 20px 20px; border-radius: 26px; }
}

/* --------------------------------------------------------------- deal --- */

/* The home page's value list, four across. */
.deal { padding-top: 160px; }
.deal h2 { max-width: 16ch; }
.deal .value-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; margin-top: 64px; }
.deal .value-list p { font-size: 17px; }
.deal .value-list .eyebrow { font-size: 15px; }
.deal .value-list strong { font-size: 21px; }

@media (max-width: 1000px) {
  .deal .value-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 36px; }
}
@media (max-width: 560px) {
  .deal { padding-top: 112px; }
  .deal .value-list { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 40px; }
}

/* ----------------------------------------------------------- earnings --- */

/* The chalk panel: the sliders on the left, and on the right the night
   card they move, its figure, the split between the two plans and the sum
   behind each. */
.earn { padding-top: 140px; }
.earn-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center;
  padding: 64px; border-radius: var(--r-panel); background: var(--chalk);
}
.earn h2 { font-size: clamp(36px, 4.2vw, 54px); max-width: 12ch; }
.earn-sub { margin-top: 16px; font-size: 19px; line-height: 1.5; color: var(--slate); max-width: 32ch; }

.sliders { display: grid; gap: 30px; margin-top: 40px; }
.slider-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.slider label { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.slider output { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.slider-note { margin-top: 4px; font-size: 14px; color: var(--ash); }

/* The platform's slider, drawn in the page's ink: the track filled up to
   the thumb (--fill, set as it moves), a white thumb a finger can hold. */
.range {
  --fill: 50%;
  display: block; width: 100%; height: 28px; margin: 10px 0 0;
  -webkit-appearance: none; appearance: none; background: none; cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background: linear-gradient(to right, var(--ink) var(--fill), #D7DCE1 var(--fill));
}
.range::-moz-range-track { height: 6px; border-radius: 6px; background: #D7DCE1; }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--ink); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; margin-top: -11px; border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(10, 12, 15, 0.12), 0 4px 12px -2px rgba(10, 12, 15, 0.32);
  transition: scale 150ms var(--ease);
}
.range::-moz-range-thumb {
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(10, 12, 15, 0.12), 0 4px 12px -2px rgba(10, 12, 15, 0.32);
}
.range:active::-webkit-slider-thumb { scale: 1.12; }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }

.earn-card {
  padding: 32px 32px 26px; border-radius: 28px;
  background: var(--night); color: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 80px -32px rgba(10, 18, 30, 0.55);
}
.earn-label { font-size: 15px; font-weight: 500; color: var(--mist); }
.earn-total {
  margin-top: 8px;
  font-size: clamp(60px, 7vw, 96px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.earn-bar { display: flex; gap: 3px; height: 8px; margin-top: 28px; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.earn-bar span { flex-grow: 0; flex-shrink: 0; border-radius: 8px; transition: flex-basis 250ms var(--ease); }
.earn-bar-annual { background: var(--lime); }
.earn-bar-monthly { background: rgba(255, 255, 255, 0.78); }
.earn-rows { margin: 22px 0 0; }
.earn-rows div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--edge-night);
}
.earn-rows dt { display: flex; align-items: baseline; gap: 10px; font-size: 15px; line-height: 1.4; color: var(--fog); }
.earn-rows dt::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; translate: 0 -1px; }
.earn-row-annual dt::before { background: var(--lime); }
.earn-row-monthly dt::before { background: rgba(255, 255, 255, 0.78); }
.earn-rows dd { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.earn-foot { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--edge-night); font-size: 14px; color: var(--mist); }
@media (prefers-reduced-motion: reduce) { .earn-bar span { transition: none; } }

@media (max-width: 980px) {
  .earn-panel { grid-template-columns: minmax(0, 1fr); gap: 44px; padding: 48px 40px; }
}
@media (max-width: 680px) {
  .earn { padding-top: 110px; }
  .earn-panel { padding: 32px 20px 20px; }
  .earn-sub { font-size: 17px; }
  .earn-card { padding: 26px 22px 20px; border-radius: 24px; }
  .earn-rows dt { font-size: 14px; }
  .earn-rows dd { font-size: 17px; }
}

/* ------------------------------------------------------- how it works --- */

/* The home page's night, opening on the seaside court; after the steps,
   the two things a partner hands out, side by side. */
.partners .night-photo { object-position: 60% 50%; }
.credit {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px;
  margin-top: 96px; padding-top: 40px; border-top: 1px solid var(--edge-night);
}
.credit h3 { font-size: clamp(24px, 2.4vw, 30px); }
.credit p { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--mist); max-width: 42ch; }
@media (max-width: 860px) {
  .credit { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 72px; }
}

/* ------------------------------------------------------- what you get --- */

.gets { padding-top: 150px; }
.gets-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 48px; align-items: start; }
.gets h2 { font-size: clamp(38px, 4.4vw, 56px); max-width: 9ch; }
.gets-sub { margin-top: 18px; font-size: 19px; line-height: 1.5; color: var(--slate); max-width: 26ch; text-wrap: pretty; }
@media (max-width: 880px) {
  .gets { padding-top: 110px; }
  .gets-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .gets h2 { max-width: none; }
}

/* -------------------------------------------------------- who it's for --- */

.who .chapter-head h2 { max-width: 18ch; }
.who-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 56px; }
.who-list li { position: relative; padding-top: 24px; border-top: 1px solid var(--rule); }
.who-list li::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 2px; background: var(--ink); }
.who-list h3 { font-size: clamp(22px, 2.1vw, 28px); letter-spacing: -0.028em; }
.who-list p { margin-top: 10px; font-size: 17px; line-height: 1.55; color: var(--slate); max-width: 40ch; }
.who .tagline { margin-top: 64px; max-width: 34ch; }
@media (max-width: 760px) {
  .who-list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .who .tagline { margin-top: 44px; }
}

/* -------------------------------------------------------------- apply --- */

/* The closing night, the doubles from behind the glass, now holding the
   application. The photograph covers the top and fades into the night;
   the headline stays in view on the left while the form scrolls on the
   glass beside it, as the waitlist's confirmation sits on the home page's
   closing. The fields are the night's glass, lime when they have focus,
   and the code is set large, as the pass sets it. */
.apply.closing { display: block; min-height: 0; padding: clamp(150px, 16vw, 220px) 0 clamp(96px, 10vw, 140px); }
.apply .closing-photo {
  height: min(900px, 100%); object-position: 50% 40%;
  -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent);
}
.apply.closing::before {
  background:
    linear-gradient(180deg, rgba(10, 12, 15, 0.2) 0, rgba(10, 12, 15, 0.72) 520px, var(--night) 900px),
    linear-gradient(90deg, rgba(10, 12, 15, 0.78) 0%, rgba(10, 12, 15, 0.3) 50%, rgba(10, 12, 15, 0) 80%);
}
.apply-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.apply-copy { position: sticky; top: 120px; }
.apply h2 { max-width: 12ch; margin-bottom: 24px; }
.apply .lede { margin: 0 0 28px; }
.apply-alt { margin-top: 12px; max-width: 46ch; font-size: 15px; line-height: 1.5; color: var(--mist); }
.apply-alt a, .apply-done a, .check a, .apply-again button {
  color: var(--fog); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.apply-alt a:hover, .apply-done a:hover, .check a:hover, .apply-again button:hover { color: #FFFFFF; }
.apply a:focus-visible, .apply button:focus-visible { outline-color: var(--lime); }
#apply, #earnings, #deal, #how, #questions { scroll-margin-top: 90px; }

.apply-panel {
  padding: clamp(26px, 3.2vw, 44px); border-radius: 28px;
  background: rgba(16, 18, 22, 0.74); box-shadow: inset 0 0 0 1px var(--edge-night);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  color-scheme: dark;
}
.apply [hidden] { display: none !important; }
.apply-wait { font-size: 16px; color: var(--mist); }
.apply-wait a { color: var(--fog); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------- fields --- */

.apply-form { display: grid; gap: 30px; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; }
.field > label:not(.check), .field legend {
  display: block; padding: 0; margin-bottom: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: #FFFFFF;
}
.optional { margin-left: 6px; font-weight: 500; color: var(--mist); }
.field-hint { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--mist); overflow-wrap: anywhere; }
legend + .field-hint { margin: -4px 0 10px; }

.input {
  display: block; width: 100%; height: 52px; margin: 0; padding: 0 18px;
  border: 0; border-radius: 14px; outline: none;
  background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #FFFFFF; font: inherit; font-size: 17px; letter-spacing: -0.012em;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.input::placeholder { color: var(--mist); opacity: 1; }
.input:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26); }
.input:focus { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 2px var(--lime); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--error-night); caret-color: var(--error-night); }
textarea.input { height: auto; min-height: 108px; padding: 14px 18px; line-height: 1.45; resize: vertical; }
select.input {
  padding-right: 46px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 8l4.5 4.5L14.5 8' fill='none' stroke='%23C9CDD2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 20px;
}
select.input:has(option[value=""]:checked) { color: var(--mist); }
select.input option { color: #FFFFFF; background: #16191E; }

/* The code, set as the pass sets it: large, in Geist's bold. */
.field-code .input { height: 64px; font-size: 26px; font-weight: 700; letter-spacing: 0.01em; }
.field-code .input::placeholder { color: rgba(255, 255, 255, 0.28); }
.field-code .field-hint span { color: #FFFFFF; font-weight: 600; }

.apply .chips { gap: 8px; }
.field:has(input[aria-invalid="true"]) .chip span { box-shadow: inset 0 0 0 1px var(--error-night); }

.links { display: grid; gap: 8px; }
.link-row { display: flex; gap: 8px; }
.add-link, .link-remove {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
  height: 44px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #FFFFFF; font: 500 15px/1 var(--font); letter-spacing: -0.01em;
  transition: box-shadow 160ms ease, background-color 160ms ease;
}
.add-link { margin-top: 10px; padding: 0 16px 0 12px; }
.link-remove { width: 52px; height: 52px; border-radius: 14px; }
.add-link:hover, .link-remove:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32); }
.add-link svg, .link-remove svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.add-link[hidden] { display: none; }

/* The terms: the platform's checkbox, drawn in the night's glass and
   filled lime when ticked; the whole line is its target. */
.check { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; line-height: 1.45; color: var(--fog); cursor: pointer; }
.check input { position: absolute; left: 0; top: 50%; width: 24px; height: 24px; margin: -12px 0 0; opacity: 0; cursor: pointer; }
.check-box {
  flex: none; width: 24px; height: 24px; border-radius: 7px;
  background: rgba(255, 255, 255, 0.07) center / 18px no-repeat; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.34);
  transition: background-color 140ms ease, box-shadow 140ms ease;
}
.check:hover .check-box { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
.check input:checked + .check-box {
  background-color: var(--lime); box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.4l3.6 3.6 7.4-7.6' fill='none' stroke='%230F1406' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check input:focus-visible + .check-box { outline: 2px solid var(--lime); outline-offset: 2px; }
.check input[aria-invalid="true"] + .check-box { box-shadow: inset 0 0 0 2px var(--error-night); }

.turnstile { min-height: 65px; }
.turnstile iframe { max-width: 100%; }

/* An error, under its field, in the night's coral with the house's mark. */
.field-error {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 10px;
  font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--error-night); outline: none;
}
.field-error::before {
  content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px;
  border-radius: 50%; background: var(--error-night); color: var(--ink); font-size: 12px; font-weight: 700;
}

.apply-end { display: grid; gap: 14px; padding-top: 4px; }
.apply-end .form-error { margin: 0; }
.apply-submit { width: 100%; height: 56px; border: 0; font-family: inherit; cursor: pointer; }
.apply-submit:hover { transform: none; }
.apply-submit[aria-disabled="true"] { cursor: progress; opacity: 0.8; }
.apply-fine { font-size: 14px; color: var(--mist); text-align: center; }

/* Sent, or closed: the panel says what happens next, in its own place. */
.apply-done { display: grid; gap: 12px; justify-items: start; }
.apply-done .joined-mark { margin-bottom: 8px; }
.apply-done h3 { font-size: clamp(28px, 3vw, 38px); outline: none; }
.apply-done p { max-width: 40ch; font-size: 17px; line-height: 1.5; color: var(--fog); overflow-wrap: anywhere; }
.apply-done strong { color: #FFFFFF; }
.apply-done p.apply-again { margin-top: 8px; font-size: 15px; color: var(--mist); }
.apply-again button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.motion .apply-done .joined-mark { animation: pop 520ms var(--settle) 80ms both; }
.motion .apply-done .joined-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 420ms var(--ease) 280ms forwards; }

@media (max-width: 900px) {
  .apply-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .apply-copy { position: static; }
  .apply .closing-photo { height: min(720px, 100%); }
  .apply.closing::before {
    background: linear-gradient(180deg, rgba(10, 12, 15, 0.15) 0, rgba(10, 12, 15, 0.8) 360px, var(--night) 640px);
  }
}
/* On a phone the form lies on the night itself, full width, so the
   check's widget has the room it needs. */
@media (max-width: 560px) {
  .apply.closing { padding-top: 120px; }
  .apply-panel { padding: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .apply-form { gap: 28px; }
}
