/* ECHIVO /horeca — apply.css · OWNER: V4. Loaded by src/horeca/template.html in section order.
   New selectors: prefix with the section (#hx-hero / .hx-hero__*, #about, #groups, ...). See v7-notes/STRUCTURE.md. */
/* ============================================================ APPLY */
.hx-apply { isolation: isolate; }
.hx-apply__sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
    radial-gradient(70% 50% at 50% 0%, rgba(245,200,130,.14), transparent 70%),
    radial-gradient(40% 40% at 10% 60%, rgba(157,123,255,.10), transparent 70%),
    radial-gradient(40% 40% at 90% 70%, rgba(79,179,255,.08), transparent 70%); }
.hx-panel { max-width: 980px; margin: 0 auto; padding: clamp(22px, 4vw, 48px); border-radius: 34px; }
.hx-form__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
.hx-f { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.hx-f--2 { grid-column: span 2; } .hx-f--3 { grid-column: 1 / -1; }
.hx-f label, .hx-f legend { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--text-2); padding: 0; }
.hx-f legend { margin-bottom: 10px; }
.hx-f em { font-style: normal; font-weight: 500; color: var(--text-3); }
.hx-f input:not([type=checkbox]):not([type=radio]), .hx-f select, .hx-f textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 16px; font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(5,7,13,.55); border: 1px solid rgba(255,255,255,.14); outline: none; transition: border-color .25s, box-shadow .25s, background .25s; -webkit-appearance: none; appearance: none; }
.hx-f textarea { resize: vertical; min-height: 96px; }
.hx-f select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%23f3f1ec' stroke-opacity='.6' stroke-width='2' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.hx-f select option { background: #0b1020; color: var(--text); }
.hx-f ::placeholder { color: var(--text-3); }
.hx-f input:focus, .hx-f select:focus, .hx-f textarea:focus { border-color: rgba(245,200,130,.7); box-shadow: 0 0 0 4px rgba(245,200,130,.14); background: rgba(5,7,13,.75); }
/* Invalid state: specificity must beat the base `input:not([type=checkbox]):not([type=radio])` rule (0,3,1) */
.hx-f input[aria-invalid="true"]:not([type=checkbox]):not([type=radio]), .hx-f.is-bad input:not([type=checkbox]):not([type=radio]),
.hx-f select[aria-invalid="true"]:not([multiple]), .hx-f.is-bad select:not([multiple]),
.hx-f textarea[aria-invalid="true"]:not([readonly]), .hx-f.is-bad textarea:not([readonly]) { border-color: rgba(255,122,138,.8); }
.hx-f input[aria-invalid="true"]:not([type=checkbox]):not([type=radio]):focus, .hx-f select[aria-invalid="true"]:focus, .hx-f textarea[aria-invalid="true"]:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(255,122,138,.16); }
.hx-check input[aria-invalid="true"]:not(:checked) ~ .hx-check__box, .hx-f.is-bad .hx-check input:not(:checked) ~ .hx-check__box { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(255,122,138,.14); }
.hx-f.is-bad .hx-gchip input:not(:checked) + span { border-color: rgba(255,122,138,.6); }
.hx-f__err { margin: 0; min-height: 0; font-size: .8rem; color: var(--rose); }
.hx-f__err:empty { display: none; }

.hx-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hx-pick__o { position: relative; cursor: pointer; }
.hx-pick__o input, .hx-gchip input, .hx-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hx-pick__o > span { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(5,7,13,.4); transition: border-color .25s, background .25s, transform .4s var(--ease-spring); }
.hx-pick__o b { font-size: 1.05rem; }
.hx-pick__o small { color: var(--text-3); }
.hx-pick__o input:checked + span { border-color: var(--gold); background: rgba(245,200,130,.12); }
.hx-pick__o input:checked + span b { color: var(--gold); }
.hx-pick__o input:focus-visible + span, .hx-gchip input:focus-visible + span, .hx-check input:focus-visible ~ .hx-check__box { outline: 2px solid var(--gold); outline-offset: 2px; }
.hx-chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-gchip { cursor: pointer; }
.hx-gchip span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 15px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(5,7,13,.4); font-size: .9rem; font-weight: 600; color: var(--text-2); transition: all .25s; }
.hx-gchip span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .5; transition: all .25s; }
.hx-gchip input:checked + span { color: var(--gold); border-color: rgba(245,200,130,.7); background: rgba(245,200,130,.12); }
.hx-gchip input:checked + span::before { opacity: 1; background: var(--gold) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%231a1206' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px no-repeat; border-color: var(--gold); }
.hx-check { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .92rem; color: var(--text-2); line-height: 1.45; letter-spacing: 0 !important; font-weight: 500 !important; }
.hx-check__box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid rgba(255,255,255,.3); transition: all .25s; }
.hx-check input:checked ~ .hx-check__box { background: var(--gold) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.2l2.6 2.6 5.4-5.4' fill='none' stroke='%231a1206' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat; border-color: var(--gold); }
.hx-terms { margin: 2px 0 0 34px; font-size: .8rem; }
.hx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hx-form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.hx-submit { min-width: 220px; position: relative; }
.hx-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(26,18,6,.25); border-top-color: #1a1206; animation: hx-rot .8s linear infinite; }
@keyframes hx-rot { to { transform: rotate(360deg); } }
.hx-form.is-busy .hx-spin { display: inline-block; }
.hx-form.is-busy .hx-submit svg { display: none; }
.hx-form.is-busy .hx-submit { pointer-events: none; opacity: .85; }
.hx-form__msg { margin: 0; font-size: .9rem; color: var(--rose); }
@media (max-width: 760px) {
  .hx-form__grid { grid-template-columns: 1fr; }
  .hx-f--2, .hx-f--3 { grid-column: auto; }
  .hx-pick { grid-template-columns: 1fr; }
  .hx-submit { width: 100%; }
  .hx-panel { border-radius: 26px; }
}

.hx-done { text-align: center; padding: clamp(16px, 4vw, 40px) 0; }
.hx-done__check { margin: 0 auto 22px; }
.hx-done__check circle { stroke: rgba(245,200,130,.5); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; }
.hx-done__check path { stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; }
.hx-done.is-in .hx-done__check circle { transition: stroke-dashoffset 1s var(--ease-out); stroke-dashoffset: 0; }
.hx-done.is-in .hx-done__check path { transition: stroke-dashoffset .6s var(--ease-out) .5s; stroke-dashoffset: 0; }
.hx-done__h { margin: 0 0 10px; outline: none; }
.hx-done > p { margin: 0 auto; max-width: 44ch; }
.hx-done__steps { list-style: none; margin: 36px auto 0; padding: 0; max-width: 760px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; }
.hx-done__steps li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--hairline); }
.hx-done__steps li > span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(245,200,130,.16); color: var(--gold); font-weight: 800; font-size: .85rem; }
.hx-done__steps b { display: block; font-size: .95rem; }
.hx-done__steps small { color: var(--text-3); }
.reduced-motion .hx-done__check circle, .reduced-motion .hx-done__check path { stroke-dashoffset: 0 !important; }
@media (max-width: 760px) { .hx-done__steps { grid-template-columns: 1fr; } }

/* ============================================================ V4 · v7 apply: stages, progress rail, ticks, success scene
   All fields stay visible (no hidden steps): autofill, no-JS and "focus first error" keep working. */
#apply .ap-rail { --p: 0; position: sticky; top: 76px; z-index: 5; margin: calc(clamp(22px, 4vw, 48px) * -1) calc(clamp(22px, 4vw, 48px) * -1) 26px; padding: 16px clamp(22px, 4vw, 48px) 14px;
  border-radius: 34px 34px 0 0; background: #10172b; box-shadow: 0 18px 30px -24px rgba(0,0,0,.9); border-bottom: 1px solid var(--hairline); }
#apply .ap-rail__bar { position: relative; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
#apply .ap-rail__bar i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--gold), #fff0d2); transform-origin: 0 50%; transform: scaleX(var(--p)); transition: transform .7s var(--ease-out); }
#apply .ap-rail__steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 0; padding: 0; }
#apply .ap-rail__steps button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 4px 6px; border: 0; border-radius: 12px; background: none; color: var(--text-3); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; text-align: left; transition: color .3s; -webkit-tap-highlight-color: transparent; }
#apply .ap-rail__steps button:hover, #apply .ap-rail__steps button.is-active { color: var(--text); }
#apply .ap-rail__n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .78rem; transition: background .3s, border-color .3s, color .3s, transform .5s var(--ease-spring); }
#apply .ap-rail__steps button.is-done { color: var(--gold); }
#apply .ap-rail__steps button.is-done .ap-rail__n { background: var(--gold) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.2l2.6 2.6 5.4-5.4' fill='none' stroke='%231a1206' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat; border-color: var(--gold); color: transparent; transform: scale(1.08); }
#apply .ap-rail__steps button:active .ap-rail__n { transform: scale(.92); }
#apply .ap-rail.is-sent .ap-rail__bar i { transform: scaleX(1); }

#apply .ap-stage { position: relative; margin: 0 0 30px; padding: 0 0 0 46px; border: 0; min-width: 0; }
#apply .ap-stage::before { content: ""; position: absolute; left: 14px; top: 38px; bottom: -22px; width: 1.5px; background: linear-gradient(var(--hairline), transparent); }
#apply .ap-stage:last-of-type::before { display: none; }
#apply .ap-stage__h { display: flex; align-items: center; gap: 12px; margin: 0 0 16px -46px; padding: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: .02em; color: var(--text); }
#apply .ap-stage__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.22); font-size: .82rem; color: var(--text-2); transition: all .4s var(--ease-spring); }
#apply .ap-stage.is-active .ap-stage__n { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 5px rgba(245,200,130,.1); }
#apply .ap-stage.is-done .ap-stage__n { background: var(--gold); border-color: var(--gold); color: #1a1206; }
#apply .ap-stage.is-done::before { background: linear-gradient(var(--gold), rgba(245,200,130,.1)); }
#apply .hx-form .hx-form__foot { margin-top: 22px; }

/* fields: soft valid tick + label lift on focus */
#apply .hx-f { position: relative; }
#apply .hx-f > label { transition: color .25s; }
#apply .hx-f:focus-within > label, #apply .hx-f:focus-within > legend { color: var(--gold); }
#apply .hx-f.is-ok > label::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2305070d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/11px no-repeat; animation: ap-pop .45s var(--ease-spring) both; }
#apply .hx-f.is-ok input:not([type=checkbox]):not([type=radio]):not(:focus), #apply .hx-f.is-ok select:not(:focus) { border-color: rgba(94,230,181,.38); }
#apply .hx-f.is-bad { animation: none; }
@keyframes ap-pop { from { transform: scale(0); } to { transform: scale(1); } }
/* picks & chips: tactile */
#apply .hx-pick__o input:checked + span { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(245,200,130,.6); }
#apply .hx-pick__o:active > span, #apply .hx-gchip:active span { transform: scale(.97); }
#apply .hx-gchip span { min-height: 44px; }
#apply .hx-gchip input:checked + span::before { animation: ap-pop .4s var(--ease-spring) both; }
#apply .hx-check { min-height: 44px; align-items: center; }
#apply .hx-check input:checked ~ .hx-check__box { animation: ap-pop .4s var(--ease-spring) both; }
/* submit: ready state */
#apply .hx-form.is-ready .hx-submit { box-shadow: 0 18px 50px -14px rgba(245,200,130,.75); }
#apply .hx-submit:active { scale: .97; } /* V10 · F6: `scale`, so it composes with the magnet's inline transform */

/* success scene */
#apply .hx-done { position: relative; }
#apply .ap-map { position: relative; width: min(340px, 100%); height: 150px; margin: 26px auto 6px; border-radius: 22px; overflow: hidden; transform: perspective(700px) rotateX(22deg);
  background: radial-gradient(80% 90% at 50% 60%, rgba(245,200,130,.2), transparent 70%), linear-gradient(180deg, #121a30, #0a0f1d); border: 1px solid rgba(245,200,130,.25); }
#apply .ap-map__streets { position: absolute; inset: 0; width: 100%; height: 100%; }
#apply .ap-map__streets path { fill: none; stroke: rgba(245,200,130,.28); stroke-width: 5; stroke-linecap: round; }
#apply .ap-map__streets .ap-map__river { stroke: rgba(79,179,255,.35); stroke-width: 9; }
#apply .ap-map__streets rect { fill: rgba(255,255,255,.07); }
#apply .ap-map__pin { position: absolute; left: 50%; top: 32%; width: 34px; height: 46px; margin-left: -17px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
#apply .ap-map__pin svg { width: 100%; height: 100%; }
#apply .ap-map__pin path { fill: var(--gold); }
#apply .ap-map__pin circle { fill: #1a1206; }
#apply .ap-map__ring { position: absolute; left: 50%; top: calc(32% + 40px); width: 60px; height: 22px; margin: -11px 0 0 -30px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; }
#apply .ap-map__label { margin: 8px auto 0; min-height: 1.4em; color: var(--gold); font-weight: 700; }
#apply .ap-burst { position: absolute; left: 50%; top: 36px; width: 0; height: 0; pointer-events: none; }
#apply .ap-burst i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); opacity: 0; }
#apply .ap-burst i:nth-child(3n) { background: var(--mint); border-radius: 50%; }
#apply .ap-burst i:nth-child(4n) { background: #fff0d2; }
#apply .hx-done.is-party .ap-burst i { animation: ap-burst 1.1s var(--ease-out) .35s both; }
#apply .ap-burst i:nth-child(1) { --x: -120px; --y: -40px; } #apply .ap-burst i:nth-child(2) { --x: 110px; --y: -56px; }
#apply .ap-burst i:nth-child(3) { --x: -70px; --y: -90px; } #apply .ap-burst i:nth-child(4) { --x: 80px; --y: -96px; }
#apply .ap-burst i:nth-child(5) { --x: -150px; --y: 20px; } #apply .ap-burst i:nth-child(6) { --x: 150px; --y: 14px; }
#apply .ap-burst i:nth-child(7) { --x: -30px; --y: -120px; } #apply .ap-burst i:nth-child(8) { --x: 34px; --y: -118px; }
#apply .ap-burst i:nth-child(9) { --x: -100px; --y: 60px; } #apply .ap-burst i:nth-child(10) { --x: 104px; --y: 62px; }
#apply .ap-burst i:nth-child(11) { --x: -170px; --y: -70px; } #apply .ap-burst i:nth-child(12) { --x: 172px; --y: -78px; }
@keyframes ap-burst { 0% { opacity: 1; transform: translate(0, 0) scale(.4) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1) rotate(200deg); } }

@media (max-width: 760px) {
  #apply .ap-rail { top: 8px; padding: 12px 18px 8px; margin: -22px -22px 22px; border-radius: 26px 26px 0 0; }
  #apply .ap-rail__t { display: none; }
  #apply .ap-rail__steps { margin-top: 8px; }
  #apply .ap-rail__steps button { justify-content: center; }
  #apply .ap-rail__steps button.is-active .ap-rail__n { box-shadow: 0 0 0 4px rgba(245,200,130,.14); }
  #apply .ap-stage { padding-left: 0; }
  #apply .ap-stage::before { display: none; }
  #apply .ap-stage__h { margin-left: 0; }
}
.reduced-motion #apply .ap-burst, .reduced-motion #apply .ap-map__ring { display: none; }
.reduced-motion #apply .ap-map { transform: none; }
@media (prefers-reduced-motion: reduce) {
  #apply .ap-burst, #apply .ap-map__ring { display: none; }
  #apply .ap-rail__bar i, #apply .ap-stage__n, #apply .ap-rail__n { transition: none; }
  #apply .hx-f.is-ok > label::after, #apply .hx-gchip input:checked + span::before, #apply .hx-check input:checked ~ .hx-check__box { animation: none; }
}

/* ============================================================ V8 · D3 · DESKTOP (≥1024): form + live preview
   Form on the left (7 cols), a sticky preview on the right (5 cols): the venue's pin drops onto a small golden map and
   its offer card builds up as the owner types (apply.js, textContent only). Below 1024 the preview is not rendered. */
#apply .ap-prev { display: none; }
@media (min-width: 1024px) {
  #apply .hx-head { max-width: 1100px; }
  #apply .ap-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--hx-gap, clamp(20px, 1.8vw, 36px)); align-items: start; }
  #apply .ap-split > .hx-panel { grid-column: 1 / span 7; max-width: none; margin: 0; }
  #apply .ap-prev { grid-column: 8 / -1; display: block; position: sticky; top: clamp(90px, 12vh, 130px); }
  #apply .ap-prev__eye { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
  #apply .ap-prev__eye i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(94,230,181,.16); }
  #apply .ap-prev__stage { position: relative; perspective: 1400px; }
  #apply .ap-prev__map { position: relative; aspect-ratio: 400 / 250; border-radius: 28px; overflow: hidden; transform-origin: 50% 100%;
    background: radial-gradient(70% 80% at 60% 45%, rgba(245,200,130,.2), transparent 70%), linear-gradient(180deg, #131c33, #0a0f1d);
    border: 1px solid rgba(245,200,130,.22); box-shadow: 0 40px 90px -40px rgba(0,0,0,.9); }
  #apply .ap-prev__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  #apply .ap-prev__river { fill: none; stroke: rgba(79,179,255,.3); stroke-width: 16; stroke-linecap: round; }
  #apply .ap-prev__streets path { fill: none; stroke: rgba(245,200,130,.22); stroke-width: 4; stroke-linecap: round; }
  #apply .ap-prev__blocks rect { fill: rgba(255,255,255,.06); stroke: none; }
  #apply .ap-prev__route { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease-out); }
  #apply .ap-prev.is-pro .ap-prev__route { stroke-dashoffset: 0; }
  #apply .ap-prev__mon { position: absolute; left: 37.5%; top: 56.8%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  #apply .ap-prev__moon { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(90deg, #ffe2aa 0%, var(--gold) 50%, #0b0d12 50%); border: 2px solid var(--gold); box-shadow: 0 0 0 5px rgba(245,200,130,.12); }
  #apply .ap-prev__mon b { padding: 3px 9px; border-radius: 999px; background: rgba(5,7,13,.82); font-size: .7rem; font-weight: 750; white-space: nowrap; }
  #apply .ap-prev__pin { position: absolute; left: 65.5%; top: 41.6%; width: 34px; height: 46px; translate: -50% -100%; opacity: 0; transform: translateY(-70px) scale(.7);
    transition: transform .9s var(--ease-spring), opacity .3s; filter: drop-shadow(0 10px 10px rgba(0,0,0,.5)); }
  #apply .ap-prev__pin svg { width: 100%; height: 100%; }
  #apply .ap-prev__pin path { fill: var(--gold); }
  #apply .ap-prev__pin circle { fill: #1a1206; }
  #apply .ap-prev.has-name .ap-prev__pin { opacity: 1; transform: none; }
  #apply .ap-prev__ring { position: absolute; left: 65.5%; top: 41.6%; width: 64px; height: 24px; translate: -50% -50%; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; }
  #apply .ap-prev.is-pulse .ap-prev__ring { animation: ap-prev-ring 1.2s var(--ease-out) 1 both; }
  @keyframes ap-prev-ring { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(2.2); } }
  #apply .ap-prev__tag { position: absolute; left: 65.5%; top: 41.6%; translate: -50% calc(-100% - 56px); padding: 6px 12px; border-radius: 999px; max-width: 56%;
    background: linear-gradient(90deg, #ffe2aa, var(--gold)); color: #1a1206; font-size: .8rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 0; transform: translateY(8px) scale(.9); transition: transform .6s var(--ease-spring) .25s, opacity .3s .25s; }
  #apply .ap-prev.has-name .ap-prev__tag { opacity: 1; transform: none; }
  #apply .ap-prev__card { position: relative; margin: -46px 22px 0; padding: 20px 22px 22px; border-radius: 24px; background: linear-gradient(180deg, rgba(22,31,54,.97), rgba(11,16,32,.98));
    border: 1px solid var(--hairline); box-shadow: 0 30px 70px -30px rgba(0,0,0,.95); transition: border-color .5s, box-shadow .5s; }
  #apply .ap-prev.is-pro .ap-prev__card { border-color: rgba(245,200,130,.55); box-shadow: 0 30px 80px -30px rgba(245,200,130,.4); }
  #apply .ap-prev__top { display: flex; align-items: center; gap: 12px; }
  #apply .ap-prev__ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(245,200,130,.14); color: var(--gold); font-weight: 850; font-size: 1.2rem; text-transform: uppercase; transition: background .4s, color .4s; }
  #apply .ap-prev.has-kind .ap-prev__ic { background: var(--gold); color: #1a1206; }
  #apply .ap-prev__id { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
  #apply .ap-prev__id b { font-size: 1.2rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #apply .ap-prev__id small { color: var(--text-3); font-size: .82rem; font-weight: 600; }
  #apply .ap-prev [data-p].is-ph { color: var(--text-3); }
  #apply .ap-prev__id b.is-ph { color: var(--text-2); }
  #apply .ap-prev__plan { flex: none; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(245,200,130,.5); color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
  #apply .ap-prev__plan:empty { display: none; }
  #apply .ap-prev__addr { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--text-2); font-size: .9rem; }
  #apply .ap-prev__addr svg { flex: none; width: 16px; height: 16px; color: var(--gold); }
  #apply .ap-prev__for { margin: 16px 0 8px; font-size: var(--t-eyebrow); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
  #apply .ap-prev__chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
  #apply .ap-prev__chips span { padding: 6px 11px; border-radius: 999px; background: rgba(245,200,130,.12); border: 1px solid rgba(245,200,130,.45); color: var(--gold); font-size: .8rem; font-weight: 700; }
  #apply .ap-prev__chips span.is-new { animation: ap-pop .45s var(--ease-spring) both; }
  #apply .ap-prev__chips em { font-style: normal; color: var(--text-3); font-size: .85rem; padding: 6px 0; }
  #apply .ap-prev__aud { display: flex; align-items: center; gap: 8px; margin: 0; max-height: 0; overflow: hidden; opacity: 0; color: var(--text-2); font-size: .84rem; font-weight: 600; transition: max-height .5s var(--ease-out), opacity .4s, margin .5s; }
  #apply .ap-prev.is-pro .ap-prev__aud { max-height: 60px; opacity: 1; margin-top: 14px; }
  #apply .ap-prev__badge { flex: none; padding: 2px 7px; border-radius: 6px; border: 1px solid rgba(245,200,130,.7); color: var(--gold); font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
  #apply .ap-prev__cta { display: flex; justify-content: center; align-items: center; min-height: 44px; margin-top: 18px; border-radius: 14px; background: rgba(255,255,255,.06); color: var(--text-3); font-weight: 750; font-size: .9rem; transition: background .5s, color .5s; }
  #apply .ap-prev.is-full .ap-prev__cta { background: var(--gold); color: #1a1206; }
  #apply .ap-prev.is-sent .ap-prev__cta { background: var(--mint); color: #05070d; }
  #apply .ap-prev__note { margin: 18px 4px 0; font-size: .78rem; color: var(--text-3); max-width: 52ch; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  #apply .ap-prev__pin, #apply .ap-prev__tag, #apply .ap-prev__route, #apply .ap-prev__aud, #apply .ap-prev__card { transition: none; }
  #apply .ap-prev.is-pulse .ap-prev__ring, #apply .ap-prev__chips span.is-new { animation: none; }
}

/* ============================================================ V9 · A2: venue autocomplete (combobox on business_name)
   The list overlays the form (absolute, no layout jump); height is capped to the visible viewport by apply.js (--ac-max). */
#apply .ap-ac { z-index: 3; }
#apply .ap-ac.is-open { z-index: 8; }
#apply .ap-ac__box { position: relative; }
#apply .ap-ac__box input { padding-right: 52px; }
#apply .ap-ac__x { position: absolute; right: 4px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--text-3); cursor: pointer; -webkit-tap-highlight-color: transparent; }
#apply .ap-ac__x[hidden] { display: none; }
#apply .ap-ac__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#apply .ap-ac__x:hover, #apply .ap-ac__x:focus-visible { color: var(--text); background: rgba(255,255,255,.06); outline: none; }
#apply .ap-ac__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: var(--ac-max, 340px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  border-radius: 18px; background: #0f1628; border: 1px solid rgba(245,200,130,.32); box-shadow: 0 28px 60px -20px rgba(0,0,0,.95); }
#apply .ap-ac__list[hidden] { display: none; }
#apply .ap-ac__o { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px; border-radius: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#apply .ap-ac__o[aria-selected="true"] { background: rgba(245,200,130,.14); }
#apply .ap-ac__o:active { background: rgba(245,200,130,.2); }
#apply .ap-ac__ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(245,200,130,.12); color: var(--gold); }
#apply .ap-ac__ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#apply .ap-ac__t { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#apply .ap-ac__t b { font-size: .98rem; font-weight: 750; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#apply .ap-ac__t small { font-size: .82rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#apply .ap-ac__claimed { font-style: normal; font-size: .76rem; font-weight: 650; color: var(--amber, #f0a85a); }
#apply .ap-ac__o--manual { border-top: 1px solid var(--hairline); border-radius: 0 0 12px 12px; margin-top: 4px; }
#apply .ap-ac__o--manual .ap-ac__ic { background: rgba(255,255,255,.06); color: var(--text-2); }
#apply .ap-ac__o--manual b { color: var(--text-2); font-weight: 700; white-space: normal; }
#apply .ap-ac__none { padding: 12px 10px 8px; font-size: .88rem; color: var(--text-3); }
#apply .ap-ac__hint { margin: 0; font-size: .8rem; color: var(--text-3); line-height: 1.4; }
#apply .ap-ac.is-manual .ap-ac__hint { opacity: .6; }
#apply .ap-ac__note { margin: 0; font-size: .82rem; font-weight: 650; line-height: 1.4; }
#apply .ap-ac__note.is-picked { color: var(--mint); }
#apply .ap-ac__note.is-claimed { color: var(--amber, #f0a85a); }
#apply .ap-ac__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  #apply .ap-ac__o { min-height: 60px; }
  #apply .ap-ac__t b { font-size: 1rem; }
}
@media (hover: hover) and (pointer: fine) { #apply .ap-ac__o:hover { background: rgba(245,200,130,.1); } }

/* ============================================================ V10 · F6 · apply + footer polish (v7-notes/V10-F6.md)
   Landing curve only (expo-out; the v7 springs on picks/rail/stage numbers/pops are flattened), press .97, lift <= 2 px,
   nothing loops. Phones get the CSS interaction states (one-shot, tap-driven); the scroll entrance and the live-preview
   flourishes are desktop-only (the preview is not rendered below 1024). */

/* -- fields: hover, focus glow (colours in the gold-economy block below), chevron restored on focus (the v4 focus rule's
      `background` shorthand dropped it) */
#apply .hx-f input:not([type=checkbox]):not([type=radio]), #apply .hx-f select, #apply .hx-f textarea {
  transition: border-color .3s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s; }
@media (hover: hover) and (pointer: fine) {
  #apply .hx-f:not(.is-bad):not(.is-ok) input:not([type=checkbox]):not([type=radio]):not([aria-invalid="true"]):hover:not(:focus),
  #apply .hx-f:not(.is-bad):not(.is-ok) select:not([aria-invalid="true"]):hover:not(:focus),
  #apply .hx-f:not(.is-bad) textarea:not([aria-invalid="true"]):hover:not(:focus) { border-color: rgba(255,255,255,.26); }
}
#apply .hx-f input:not([type=checkbox]):not([type=radio]):focus, #apply .hx-f select:focus, #apply .hx-f textarea:focus { background-color: rgba(8,11,20,.86); }
#apply .hx-f select, #apply .hx-f select:focus { background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
#apply .hx-f > label, #apply .hx-f > legend { transition: color .3s var(--ease-out); }
#apply .hx-f.is-bad input:not([type=checkbox]):not([type=radio]), #apply .hx-f.is-bad select, #apply .hx-f.is-bad textarea { background-color: rgba(255,122,138,.05); }
#apply .hx-f__err:not(:empty) { animation: ap-err .4s var(--ease-out) both; }
@keyframes ap-err { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* -- pops (valid tick, chip dot, consent box, preview chips): no overshoot */
@keyframes ap-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#apply .hx-f.is-ok > label::after, #apply .hx-gchip input:checked + span::before, #apply .hx-check input:checked ~ .hx-check__box,
#apply .ap-prev__chips span.is-new { animation-timing-function: var(--ease-out); }

/* -- plan picks + group chips: hover lift 2 px, press .97, expo-out */
#apply .hx-pick__o > span { transition: border-color .3s, background-color .3s, box-shadow .45s var(--ease-out), transform .45s var(--ease-out); }
#apply .hx-gchip span { transition: color .25s, border-color .3s, background-color .3s, transform .4s var(--ease-out); }
#apply .hx-gchip span::before { transition: opacity .25s, background-color .25s, border-color .25s; }
#apply .hx-check__box { transition: border-color .25s, background-color .25s, box-shadow .3s; }
@media (hover: hover) and (pointer: fine) {
  #apply .hx-pick__o:hover > span { transform: translateY(-2px); border-color: rgba(255,255,255,.28); }
  #apply .hx-pick__o:hover input:checked + span { border-color: var(--gold); }
  #apply .hx-gchip:hover input:not(:checked) + span { border-color: rgba(255,255,255,.3); color: var(--text); }
  #apply .hx-check:hover input:not(:checked) ~ .hx-check__box { border-color: rgba(245,200,130,.6); }
}
#apply .hx-pick__o:active > span, #apply .hx-gchip:active span { transform: scale(.97); transition-duration: .3s, .3s, .45s, .1s; }

/* -- rail + stages: expo-out, active stage line warms, a one-shot sheen runs along the bar when all 4 are done */
#apply .ap-rail__n { transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s, transform .45s var(--ease-out); }
#apply .ap-rail__steps button.is-done .ap-rail__n { transform: scale(1.03); }
#apply .ap-stage__n { transition: background-color .4s, border-color .4s, color .4s, box-shadow .45s var(--ease-out); }
#apply .ap-stage::before { transition: background .5s; }
/* desktop entrance (apply.js adds .ap-live, then .ap-drawn on arrival): each stage's guide line draws down, 120 ms apart */
#apply .hx-form.ap-live .ap-stage::before { transform: scaleY(0); transform-origin: 50% 0; transition: background .5s, transform 1.1s var(--ease-out) .25s; }
#apply .hx-form.ap-live fieldset:nth-of-type(2)::before { transition-delay: 0s, .37s; }
#apply .hx-form.ap-live fieldset:nth-of-type(3)::before { transition-delay: 0s, .49s; }
#apply .hx-form.ap-live.ap-drawn .ap-stage::before, #apply.hx-static .ap-stage::before, html.hx-failsafe #apply .ap-stage::before { transform: none; }
#apply .ap-stage.is-active:not(.is-done)::before { background: linear-gradient(rgba(245,200,130,.45), transparent); }
#apply .ap-rail__bar::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,250,238,.85) 50%, rgba(255,255,255,0)); opacity: 0; }
#apply .ap-rail.is-ready .ap-rail__bar::after { animation: ap-sheen 1.1s var(--ease-out) .35s 1 both; }
@keyframes ap-sheen { 0% { transform: translateX(-100%); opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
/* after sending, the rail stops being sticky (it used to sit over the "Request received" headline while scrolling) */
#apply .ap-rail.is-sent { position: relative; top: auto; }

/* -- submit: hover glow + arrow nudge, press .97, a sheen when the form becomes ready, softer busy state */
#apply .hx-submit { overflow: hidden; isolation: isolate;
  /* no `transform` transition: the magnet (quickTo) and the ready pulse tween it from JS */
  transition: scale .28s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s, opacity .3s; will-change: auto; }
#apply .hx-submit:active { transition-duration: .1s, .45s, .3s, .3s; }
#apply .hx-submit svg { transition: transform .45s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  #apply .hx-submit:hover { box-shadow: 0 14px 46px rgba(245,200,130,.45), 0 0 0 1px rgba(255,236,200,.35) inset; }
  #apply .hx-submit:hover svg { transform: translateX(3px); }
}
#apply .hx-submit::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0)); }
#apply .hx-form.is-ready .hx-submit::after { animation: ap-sweep 1s var(--ease-out) .2s 1 both; }
@keyframes ap-sweep { 0% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(360%); opacity: 0; } }
#apply .hx-form.is-busy .hx-submit { opacity: .9; }
#apply .hx-form.is-busy .hx-submit__label { opacity: .75; }

/* -- success moment: the panel's edge warms, a halo rises behind the check, the mini map reads cleanly */
#apply .hx-panel { position: relative; }
#apply .hx-panel::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 1px rgba(245,200,130,.5), 0 30px 90px -40px rgba(245,200,130,.55); transition: opacity 1.2s var(--ease-out) .2s; }
#apply .hx-panel.ap-sent::after { opacity: 1; }
#apply .hx-done::before { content: ""; position: absolute; left: 50%; top: -10px; width: 320px; height: 220px; translate: -50% 0; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(245,200,130,.2), rgba(245,200,130,0)); opacity: 0; transform: scale(.6); transition: opacity 1s var(--ease-out) .1s, transform 1.4s var(--ease-out) .1s; }
#apply .hx-done { isolation: isolate; }
#apply .hx-done.is-in::before { opacity: 1; transform: none; }
#apply .ap-map__streets rect { stroke: none; }
/* `translate`, not `transform`: form.js tweens the steps' transform on arrival and a CSS transition on it would drag that tween */
#apply .hx-done__steps li { transition: border-color .3s, translate .45s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { #apply .hx-done__steps li:hover { translate: 0 -2px; border-color: rgba(245,200,130,.35); } }

/* -- live preview (desktop ≥1024): expo-out pin/tag, a "live" blip + card glint on every change, the badge letter turns,
      a sheen across the CTA when the form is complete, a mint stamp when sent. Classes from apply.js; opacity/transform only. */
@media (min-width: 1024px) {
  #apply .ap-prev__pin { transition: transform .8s var(--ease-out), opacity .3s; }
  #apply .ap-prev__tag { transition: transform .6s var(--ease-out) .2s, opacity .3s .2s; }
  #apply .ap-prev__eye i { position: relative; }
  #apply .ap-prev__eye i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--mint); opacity: 0; pointer-events: none; }
  #apply .ap-prev.is-tick-a .ap-prev__eye i::after { animation: ap-blip-a .9s var(--ease-out) 1 both; }
  #apply .ap-prev.is-tick-b .ap-prev__eye i::after { animation: ap-blip-b .9s var(--ease-out) 1 both; }
  @keyframes ap-blip-a { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(2.4); } }
  @keyframes ap-blip-b { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(2.4); } }
  #apply .ap-prev__card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
    box-shadow: 0 0 0 1px rgba(245,200,130,.55), 0 0 40px -6px rgba(245,200,130,.28); }
  #apply .ap-prev.is-tick-a .ap-prev__card::before { animation: ap-glint-a .9s var(--ease-out) 1 both; }
  #apply .ap-prev.is-tick-b .ap-prev__card::before { animation: ap-glint-b .9s var(--ease-out) 1 both; }
  @keyframes ap-glint-a { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes ap-glint-b { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
  #apply .ap-prev__ic { transition: background-color .4s, color .4s; }
  #apply .ap-prev__ic.is-flip-a { animation: ap-flip-a .55s var(--ease-out) 1 both; }
  #apply .ap-prev__ic.is-flip-b { animation: ap-flip-b .55s var(--ease-out) 1 both; }
  @keyframes ap-flip-a { from { transform: perspective(300px) rotateY(80deg) scale(.9); opacity: .4; } to { transform: none; opacity: 1; } }
  @keyframes ap-flip-b { from { transform: perspective(300px) rotateY(80deg) scale(.9); opacity: .4; } to { transform: none; opacity: 1; } }
  #apply .ap-prev__cta { position: relative; overflow: hidden; isolation: isolate; }
  #apply .ap-prev__cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; z-index: -1; opacity: 0; pointer-events: none;
    background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.6), rgba(255,255,255,0)); }
  #apply .ap-prev.is-full .ap-prev__cta::after { animation: ap-sweep 1.1s var(--ease-out) .45s 1 both; }
  #apply .ap-prev__card::after { content: ""; position: absolute; right: -10px; top: -10px; width: 34px; height: 34px; border-radius: 50%; pointer-events: none;
    background: var(--mint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.2l2.6 2.6 5.4-5.4' fill='none' stroke='%2305070d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/18px no-repeat;
    box-shadow: 0 0 0 5px rgba(94,230,181,.16), 0 10px 24px -8px rgba(0,0,0,.8); opacity: 0; transform: scale(.4) rotate(-30deg); transition: opacity .3s, transform .7s var(--ease-out); }
  #apply .ap-prev.is-sent .ap-prev__card::after { opacity: 1; transform: none; transition-delay: .9s; }
  #apply .ap-prev.is-sent .ap-prev__card { border-color: rgba(94,230,181,.45); }
  #apply .ap-prev.is-sent .ap-prev__eye i { background: var(--gold); box-shadow: 0 0 0 4px rgba(245,200,130,.18); }
}

/* -- footer: gold horizon instead of a flat rule, logo + link micro-interactions, a quiet rise-in on desktop */
.hx-foot { position: relative; border-top-color: transparent; isolation: isolate; }
.hx-foot::before { content: ""; position: absolute; left: 50%; top: -1px; width: min(1100px, 88%); height: 1px; translate: -50% 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(245,200,130,0), rgba(245,200,130,.7) 50%, rgba(245,200,130,0)); }
.hx-foot::after { content: ""; position: absolute; left: 50%; top: 0; width: min(760px, 90%); height: 120px; translate: -50% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 0%, rgba(245,200,130,.07), rgba(245,200,130,0)); }
.hx-foot__brand { border-radius: 10px; }
.hx-foot__brand img { transition: transform .5s var(--ease-out); }
.hx-foot__brand span { transition: color .3s; }
.hx-foot__links a { position: relative; border-radius: 6px; transition: color .25s, scale .25s var(--ease-out); }
.hx-foot__links a::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% + .8em); height: 1px; background: currentColor; pointer-events: none;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .hx-foot__brand:hover img { transform: translateY(-2px) rotate(-8deg); }
  .hx-foot__brand:hover span { color: var(--gold); }
  .hx-foot__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
}
.hx-foot__links a:active, .hx-foot__brand:active { scale: .97; transition-duration: .25s, .1s; }
.hx-foot__links a:focus-visible, .hx-foot__brand:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@supports (animation-timeline: view()) {
  @media (min-width: 1024px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    /* ranges end by entry 90 %: the footer is the last box, so "fully entered" is exactly the bottom of the page */
    .hx-foot__in > * { animation: hx-foot-in linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .hx-foot__in > :nth-child(2) { animation-range: entry 10% entry 75%; }
    .hx-foot__in > :nth-child(n+3) { animation-range: entry 20% entry 90%; }
  }
}
@keyframes hx-foot-in { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }

/* -- gold economy (FABLE art direction, V10-FABLE.md "Directions for F6" 1–2): inside the panel the gold Submit is the
      only gold object, plus the selected plan's border. Progress = cream while active, mint when done. The warm light
      at the top of the section belongs to the sunrise close above it, so the sky's top radial drops .14 → .08. */
#apply .hx-apply__sky { background:
    radial-gradient(70% 50% at 50% 0%, rgba(245,200,130,.08), transparent 70%),
    radial-gradient(40% 40% at 10% 60%, rgba(157,123,255,.10), transparent 70%),
    radial-gradient(40% 40% at 90% 70%, rgba(79,179,255,.08), transparent 70%); }
#apply .ap-rail__bar i { background: linear-gradient(90deg, rgba(94,230,181,.55), var(--mint)); }
#apply .ap-rail__steps button.is-done { color: var(--text); }
#apply .ap-rail__steps button.is-done .ap-rail__n { background: var(--mint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.2l2.6 2.6 5.4-5.4' fill='none' stroke='%2305070d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat; border-color: var(--mint); color: transparent; }
#apply .ap-rail__steps button.is-active .ap-rail__n { box-shadow: 0 0 0 4px rgba(243,241,236,.1); }
#apply .ap-stage.is-active .ap-stage__n { border-color: rgba(243,241,236,.8); color: var(--text); box-shadow: 0 0 0 5px rgba(243,241,236,.07); }
#apply .ap-stage.is-done .ap-stage__n { background: var(--mint); border-color: var(--mint); color: #05070d; box-shadow: none; }
#apply .ap-stage.is-done::before { background: linear-gradient(rgba(94,230,181,.7), rgba(94,230,181,.08)); }
#apply .ap-stage.is-active:not(.is-done)::before { background: linear-gradient(rgba(243,241,236,.35), transparent); }
#apply .hx-f:focus-within > label, #apply .hx-f:focus-within > legend { color: var(--text); }
#apply .hx-f input:not([type=checkbox]):not([type=radio]):focus, #apply .hx-f select:focus, #apply .hx-f textarea:focus {
  border-color: rgba(255,240,214,.62); box-shadow: 0 0 0 1px rgba(255,240,214,.18), 0 0 0 5px rgba(255,240,214,.06), 0 16px 36px -18px rgba(245,200,130,.32); }
#apply .hx-f select:focus { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%23fff0d6' stroke-width='2' stroke-linecap='round'/></svg>"); }
#apply .hx-pick__o input:checked + span b { color: var(--text); }
#apply .hx-gchip input:checked + span { color: var(--text); border-color: rgba(94,230,181,.55); background: rgba(94,230,181,.08); }
#apply .hx-gchip input:checked + span::before { background: var(--mint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2305070d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px no-repeat; border-color: var(--mint); }
#apply .hx-check input:checked ~ .hx-check__box { background: var(--mint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.2l2.6 2.6 5.4-5.4' fill='none' stroke='%2305070d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat; border-color: var(--mint); }
#apply .hx-f.is-bad .hx-gchip input:not(:checked) + span { border-color: rgba(255,122,138,.6); }

/* invalid wins over hover/focus colours above (those are #apply-scoped, so restate the rose states at the same weight) */
#apply .hx-f input[aria-invalid="true"]:not([type=checkbox]):not([type=radio]), #apply .hx-f.is-bad input:not([type=checkbox]):not([type=radio]),
#apply .hx-f select[aria-invalid="true"], #apply .hx-f.is-bad select, #apply .hx-f textarea[aria-invalid="true"], #apply .hx-f.is-bad textarea { border-color: rgba(255,122,138,.8); }
#apply .hx-f input[aria-invalid="true"]:not([type=checkbox]):not([type=radio]):focus, #apply .hx-f select[aria-invalid="true"]:focus, #apply .hx-f textarea[aria-invalid="true"]:focus {
  border-color: var(--rose); box-shadow: 0 0 0 1px rgba(255,122,138,.25), 0 0 0 5px rgba(255,122,138,.1); }
@media (prefers-reduced-motion: reduce) {
  #apply .hx-f__err:not(:empty), #apply .ap-rail.is-ready .ap-rail__bar::after, #apply .hx-form.is-ready .hx-submit::after { animation: none; }
  #apply .hx-pick__o > span, #apply .hx-gchip span, #apply .hx-submit, #apply .hx-submit svg, #apply .hx-done::before, #apply .hx-panel::after { transition: none; }
  #apply .hx-pick__o:hover > span, #apply .hx-submit:hover svg { transform: none; }
  #apply .ap-prev.is-tick-a *, #apply .ap-prev.is-tick-b *, #apply .ap-prev *::before, #apply .ap-prev *::after, #apply .ap-prev__ic { animation: none !important; }
  .hx-foot__brand img, .hx-foot__links a::after { transition: none; }
  .hx-foot__brand:hover img { transform: none; }
}
.reduced-motion #apply .hx-done::before { transform: none; transition: none; }
/* /V10 · F6 */

/* G3 v10 · a11y: the clear (×) button in the venue search set outline:none on :focus-visible (line ~255) → no focus ring. */
#apply .ap-ac__x:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
