/* /apply, the Done-For-You application (2026-10-14). House system only
   (style.css tokens): stock ground, paper card with a keyline, ink type, petrol
   for progress and the chosen answer, burnt only for the one action that moves
   you. Mobile first: one column, 54px answer buttons, 16px type in fields so
   iOS does not zoom. Loaded after style.css; nothing here touches another page.
   The global [hidden] reset still wins over every rule below. */
.ap-body { background: var(--stock); margin: 0; }

.ap-skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: var(--r-tint);
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 14px; text-decoration: none; }
.ap-skip:focus { top: 12px; }

.ap-head { max-width: 640px; margin: 0 auto; padding: 18px var(--gutter) 0; }
.ap-brand .brand-mark { width: 10px; height: 28px; }
.ap-brand .wordmark { font-size: 11.5px; }

.ap { max-width: 640px; margin: 0 auto; padding: 28px var(--gutter) 40px; }
.ap-eyebrow { margin: 0 0 14px; font-weight: 800; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--petrol); }
.ap h1 { margin: 0 0 16px; font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 9.4vw, 56px);
  line-height: 1.02; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.ap-intro { margin: 0 0 16px; font-size: 17px; line-height: 1.6; color: var(--ink-body); text-wrap: pretty; }
.ap-starts { margin: 0 0 24px; padding-left: 12px; border-left: 3px solid var(--petrol);
  font-family: var(--font-mono); font-size: 14px; line-height: 1.7; color: var(--ink); }

/* the application */
.ap-card { background: var(--paper); border: 1px solid var(--keyline); border-radius: var(--r-card); padding: 22px 18px; scroll-margin-top: 12px; }
.ap-q { margin: 0 0 10px; font-family: var(--font-display); font-weight: 400; font-size: clamp(25px, 6.6vw, 32px);
  line-height: 1.15; color: var(--ink); text-wrap: balance; }
.ap-q:focus { outline: none; }
.ap-help { margin: 0 0 14px; font-size: 15.5px; line-height: 1.6; color: var(--ink-body); text-wrap: pretty; }
.ap-help b { color: var(--ink); }
.ap-assure { margin: 14px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-body); }

.ap-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.ap-progress { flex: 1; height: 4px; border-radius: 4px; background: var(--petrol-tint); overflow: hidden; }
.ap-progress span { display: block; height: 100%; background: var(--petrol); transition: width .25s ease; }
.ap-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-dim); white-space: nowrap; }

/* answers: big targets, one per row. The pressed one is filled and carries aria-pressed. */
.ap-opts { display: grid; gap: 8px; margin: 16px 0 4px; }
.ap-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; margin: 0; padding: 12px 14px;
  text-align: left; font-family: var(--font-ui); font-size: 16px; line-height: 1.35; font-weight: 500; color: var(--ink);
  background: var(--paper-warm); border: 1px solid var(--keyline); border-radius: var(--r-tint); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease; }
@media (hover: hover) { .ap-opt:hover { border-color: var(--petrol); } }
.ap-opt[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: var(--cream); }
.ap-key { display: none; flex: none; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px;
  border: 1px solid var(--keyline); border-radius: var(--r-inset); font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }
.ap-opt[aria-pressed="true"] .ap-key { border-color: var(--petrol-on-dark); color: var(--petrol-on-dark); }
@media (hover: hover) and (pointer: fine) { .ap-key { display: inline-flex; } }

/* fields */
.ap-form { display: grid; gap: 14px; margin-top: 16px; }
.ap-field { display: grid; gap: 6px; margin: 0 0 4px; }
.ap-form .ap-field { margin: 0; }
.ap-field label { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.ap-field input, .ap-field textarea { display: block; width: 100%; margin: 0; padding: 12px 14px; font: inherit; font-size: 16px; line-height: 1.4;
  color: var(--ink); background: var(--stock); border: 1px solid var(--keyline); border-radius: var(--r-tint); }
.ap-field textarea { min-height: 112px; resize: vertical; }
.ap-field input::placeholder, .ap-field textarea::placeholder { color: var(--ink-dim); opacity: .8; }
.ap-field input:focus, .ap-field textarea:focus { border-color: var(--petrol); }
.ap-field input[aria-invalid="true"], .ap-field textarea[aria-invalid="true"] { border-color: var(--burnt-on-tint); }
.ap-err { margin: 0; font-size: 14px; line-height: 1.45; color: var(--burnt-on-tint); }
.ap-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* buttons */
.ap-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ap-btn { min-height: 52px; padding: 15px 24px; font-size: 16px; white-space: normal; text-align: center; flex: 1 1 100%; }
.ap-btn[disabled] { opacity: .6; cursor: progress; }
.ap-row--back { margin-top: 6px; }
.ap-back { margin: 0; padding: 12px 0; min-height: 44px; background: none; border: 0; font: inherit; font-weight: 600; font-size: 15px;
  color: var(--ink-dim); text-decoration: underline; text-decoration-color: var(--keyline); text-underline-offset: 4px; cursor: pointer; }
@media (hover: hover) { .ap-back:hover { color: var(--ink); text-decoration-color: var(--burnt); } }

.ap-status { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-body); }
.ap-status--error { padding: 10px 12px; border-radius: var(--r-inset); background: var(--burnt-tint); color: var(--burnt-on-tint); }

/* the calendar: Calendly fills this box. On a phone it runs edge to edge inside the card. */
.ap-cal { position: relative; min-height: 700px; margin: 12px -18px 0; width: calc(100% + 36px); border-top: 1px solid var(--hairline); }
.ap-cal .calendly-inline-widget, .ap-cal iframe { min-height: 700px; }
.ap-cal iframe { border: 0; }

/* ---- the call page top (2026-10-16): the "you're in" line, the two-line
   headline, the video slot, the Apply button and the install link, then the
   proof under the card. Same tokens, same column. ---- */
.ap-arrival { margin: 0 0 22px; padding: 12px 14px 12px 40px; position: relative; border-radius: var(--r-tint);
  background: var(--petrol-tint); color: var(--petrol-dark); font-weight: 600; font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.ap-arrival::before { content: ""; position: absolute; left: 15px; top: 16px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--petrol); border-bottom: 2.5px solid var(--petrol); transform: rotate(-45deg); }
.ap-nowrap { white-space: nowrap; }
.ap h1 .ap-h1-2 { display: block; margin-top: 4px; font-style: italic; color: var(--burnt-dark); }

.ap-video { margin: 26px 0 14px; }
.ap-video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-card);
  background: var(--ink); box-shadow: 0 1px 0 rgba(25, 21, 18, 0.06), 0 14px 32px -18px rgba(25, 21, 18, 0.55); }
.ap-video-soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: radial-gradient(120% 90% at 50% 40%, #2a231e 0%, var(--ink) 70%); }
.ap-video-play { position: relative; width: 68px; height: 68px; border-radius: 50%; background: var(--burnt); opacity: .9; }
.ap-video-play::after { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent var(--paper); }
.ap-video-label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-dim); }
.ap-video-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: var(--ink); }
.ap-under { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--ink-body); text-wrap: pretty; }

.ap-cta { margin: 0 0 22px; }
.ap .ap-apply { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; font-size: 17px; }
.ap-cta-small { margin: 12px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-body); text-align: center; text-wrap: pretty; }
.ap-skipline { margin: 14px 0 0; text-align: center; }
.ap-skipline a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; font-weight: 600; font-size: 15px;
  color: var(--ink-dim); text-decoration: underline; text-decoration-color: var(--keyline); text-underline-offset: 4px; }
@media (hover: hover) { .ap-skipline a:hover { color: var(--ink); text-decoration-color: var(--burnt); } }

.ap-full { padding: 20px 18px; background: var(--paper); border: 1px solid var(--keyline); border-radius: var(--r-card); }
.ap-full-h { margin: 0 0 10px; font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 6vw, 30px); line-height: 1.15; color: var(--ink); }
.ap-full-p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.6; color: var(--ink-body); text-wrap: pretty; }
.ap-full-p:last-child { margin-bottom: 0; }
.ap-full-p a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--burnt); text-underline-offset: 3px; }

.ap-card-note { margin: 0 0 16px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-dim); }
.ap-card { margin-bottom: 30px; }

.ap-proof { display: grid; gap: 14px; margin: 8px 0 0; padding-top: 26px; border-top: 1px solid var(--keyline); }
.ap-proof p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-body); text-wrap: pretty; }
.ap-proof b, .ap-cap b { color: var(--ink); font-weight: 700; }
.ap-cap { margin: 22px 0 0; padding: 14px 16px; border-left: 3px solid var(--burnt); background: var(--burnt-tint);
  border-radius: 0 var(--r-tint) var(--r-tint) 0; font-size: 16px; line-height: 1.6; color: var(--ink-body); text-wrap: pretty; }
.ap-last { margin: 24px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-dim); text-wrap: pretty; }

.ap-foot { max-width: 640px; margin: 0 auto; padding: 8px var(--gutter) 40px; font-size: 13px; color: var(--ink-dim); }
.ap-foot a { color: var(--ink-dim); }

@media (min-width: 640px) {
  .ap { padding-top: 40px; }
  .ap-card { padding: 30px 32px; }
  .ap-btn { flex: 0 0 auto; }
  .ap-full { padding: 26px 30px; }
  .ap h1 { font-size: clamp(44px, 7vw, 60px); }
  .ap-cal { margin: 12px -32px 0; width: calc(100% + 64px); }
}
@media (prefers-reduced-motion: reduce) {
  .ap-progress span, .ap-opt { transition: none; }
}

/* ---- the video, wider than the text column on desktop (2026-10-16) ---- */
@media (min-width: 760px) {
  .ap-video { width: min(1000px, calc(100vw - 64px)); margin-left: calc(50% - min(500px, calc(50vw - 32px))); }
}

/* ---- the player (assets/vsl-player.js) ---- */
.vp { position: absolute; inset: 0; outline: none; background: var(--ink); color: var(--paper); user-select: none; -webkit-user-select: none; }
.vp:focus-visible { box-shadow: inset 0 0 0 3px var(--burnt); }
.vp .vp-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--ink); cursor: pointer; }
.vp-big { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border: 0; border-radius: 50%;
  background: var(--burnt); color: var(--paper); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .55); transition: transform .15s ease, background .15s ease; }
.vp-big:hover { transform: scale(1.06); }
.vp-big svg { width: 38px; height: 38px; margin-left: 4px; fill: currentColor; }
.vp.is-started .vp-big { display: none; }
.vp-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 8px;
  background: linear-gradient(to top, rgba(17, 14, 12, .86), rgba(17, 14, 12, .5) 55%, rgba(17, 14, 12, 0));
  opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.vp.is-started .vp-bar { pointer-events: auto; }
.vp.is-started:not(.is-playing) .vp-bar, .vp.is-awake.is-started .vp-bar, .vp.is-started:focus-within .vp-bar { opacity: 1; transform: none; }
.vp:not(.is-started) .vp-bar { display: none; }
.vp-track { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.vp-rail { position: relative; width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: visible; transition: height .12s ease; }
.vp-track:hover .vp-rail { height: 6px; }
.vp-buf, .vp-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; }
.vp-buf { background: rgba(255, 255, 255, .28); }
.vp-fill { background: var(--burnt); }
.vp-mark { position: absolute; top: -1px; bottom: -1px; width: 3px; margin-left: -1.5px; background: rgba(17, 14, 12, .9); z-index: 2; }
.vp-knob { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--paper);
  box-shadow: 0 0 0 3px rgba(192, 73, 31, .55); opacity: 0; transition: opacity .12s ease; z-index: 3; }
.vp-track:hover .vp-knob, .vp-track:focus-visible .vp-knob { opacity: 1; }
.vp-tip { position: absolute; bottom: 22px; transform: translateX(-50%); white-space: nowrap; padding: 6px 10px; border-radius: 8px;
  background: rgba(17, 14, 12, .94); color: var(--paper); font-size: 13px; line-height: 1.35; text-align: center; pointer-events: none; z-index: 4; }
.vp-tip b { display: block; font-weight: 600; }
.vp-tip span { font-family: var(--font-mono); font-size: 12px; opacity: .8; }
.vp-row { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.vp-btn { width: 40px; height: 40px; flex: none; border: 0; border-radius: 8px; background: transparent; color: var(--paper); display: grid; place-items: center; cursor: pointer; }
.vp-btn:hover, .vp-btn:focus-visible { background: rgba(255, 255, 255, .14); outline: none; }
.vp-btn svg { width: 22px; height: 22px; fill: currentColor; }
.vp-time { font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; margin: 0 6px; white-space: nowrap; opacity: .92; }
.vp-chapter { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .92; }
.vp-menu { position: absolute; right: 12px; bottom: 74px; width: min(340px, calc(100% - 24px)); max-height: calc(100% - 96px); overflow: auto;
  padding: 10px; border-radius: 12px; background: rgba(17, 14, 12, .95); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); z-index: 5; }
.vp-menu-head { margin: 2px 8px 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.vp-menu ol { list-style: none; margin: 0; padding: 0; }
.vp-menu button { display: flex; gap: 12px; width: 100%; padding: 9px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--paper);
  font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.vp-menu button:hover, .vp-menu button:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.vp-menu button span { font-family: var(--font-mono); font-size: 12.5px; opacity: .7; min-width: 40px; padding-top: 2px; }
.vp:fullscreen, .vp:-webkit-full-screen { width: 100%; height: 100%; }
@media (max-width: 560px) {
  .vp-bar { padding: 14px 6px 2px; }
  .vp-row { margin-top: 0; gap: 0; }
  .vp-btn { width: 34px; height: 34px; }
  .vp-btn svg { width: 19px; height: 19px; }
  .vp-track { height: 14px; }
  .vp-chapter { display: none; }
  .vp-time { font-size: 12px; margin: 0 2px; }
  .vp-big { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .vp-big svg { width: 30px; height: 30px; }
  .vp-menu { bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) { .vp-bar, .vp-big, .vp-rail, .vp-knob { transition: none; } }
