/* Frank pro — application, the deal and the decision (Figma Providers 02, P0d–P0l).
   Builds on css/signin.css (header, body, footer, buttons, text input). */

/* Option card (service picker) */
.ap-option {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 20px; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); color: var(--foreground);
  font: inherit; cursor: pointer;
  transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.ap-option img { width: 24px; height: 24px; flex: none; }
.ap-option[aria-pressed="true"] { background: var(--muted); border-color: var(--foreground); box-shadow: inset 0 0 0 1px var(--foreground); }
.ap-option:active { transform: scale(.99); }
@media (hover: hover) { .ap-option:hover { border-color: var(--muted-foreground); } .ap-option[aria-pressed="true"]:hover { border-color: var(--foreground); } }
.ap-option:focus-visible, .ap-row:focus-visible, .ap-tick:focus-visible, .ap-switch:focus-visible, .ap-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ap-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 0; }
.ap-copy__t { font-size: 14px; line-height: 20px; }
.ap-copy__t--strong { font-weight: 500; }
.ap-copy__d { font-size: 12px; line-height: 16px; color: var(--muted-foreground); }

.ap-link { color: var(--foreground); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.ap-days { display: flex; flex-wrap: wrap; gap: 8px; }

/* Where you work: coverage map + radius slider */
.ap-map { position: relative; width: 100%; height: 220px; border-radius: 12px; background: var(--muted); overflow: hidden; }
.ap-map__circle { position: absolute; left: 50%; top: 50%; width: var(--d, 192px); height: var(--d, 192px); transform: translate(-50%, -50%); transition: width var(--dur-state) var(--ease-out), height var(--dur-state) var(--ease-out); }
.ap-map__circle img { width: 100%; height: 100%; display: block; }
.ap-map__pin { position: absolute; left: 50%; top: calc(50% - 20px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.ap-map__pin img { width: 24px; height: 24px; }
.ap-map__zip { font: 500 12px/16px "Hanken Grotesk", system-ui, sans-serif; }
.ap-map__place { position: absolute; font-size: 12px; line-height: 16px; color: var(--muted-foreground); white-space: nowrap; }

.ap-radius { display: flex; flex-direction: column; gap: 10px; }
.ap-radius__top { display: flex; align-items: center; font-weight: 500; font-size: 14px; line-height: 20px; }
.ap-radius__top label { flex: 1 1 0; }
.ap-radius__ticks { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.ap-range { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; margin: 0; cursor: pointer; --p: 50%; }
.ap-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--foreground) var(--p), var(--border) var(--p)); }
.ap-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--border); }
.ap-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--foreground); }
.ap-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: url("../assets/02-slider-thumb.svg") center / 24px 24px no-repeat; border: 0; }
.ap-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: url("../assets/02-slider-thumb.svg") center / 24px 24px no-repeat; border: 0; }
.ap-range:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }

.ap-demand { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.ap-demand img { width: 24px; height: 24px; flex: none; }

/* The deal */
.ap-pay { background: var(--muted); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; }
.ap-pay__row { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 20px; padding-top: 10px; }
.ap-pay__row--head { font-weight: 500; font-size: 12px; line-height: 16px; color: var(--muted-foreground); padding: 12px 0 4px; }
.ap-pay__row > :first-child { flex: 1 1 0; min-width: 0; }
.ap-pay__row > span:not(:first-child) { width: 52px; text-align: right; flex: none; }
.ap-pay__row:not(.ap-pay__row--head) > span:not(:first-child) { font-weight: 500; }
.ap-pay__note { padding-top: 12px; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.ap-sec { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.ap-li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; }
.ap-li img { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* List rows (documents, payouts, approved) */
.ap-rows { display: flex; flex-direction: column; }
.ap-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 0; width: 100%; text-align: left;
  border: 0; border-bottom: 1px solid var(--border-subtle); background: none; color: var(--foreground); font: inherit; cursor: pointer;
  transition: background-color var(--dur-ui) var(--ease-out);
}
.ap-row > img:first-child { width: 24px; height: 24px; flex: none; }
.ap-row__chev { width: 20px; height: 20px; flex: none; }
@media (hover: hover) { .ap-row:hover { background: linear-gradient(to right, transparent, var(--muted) 20%, var(--muted) 80%, transparent); } }

/* Tick box card (agreement, authorization) */
.ap-tick {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px; width: 100%; text-align: left;
  border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--foreground);
  font: 400 14px/20px "Hanken Grotesk", system-ui, sans-serif; cursor: pointer;
  transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.ap-tick__box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--foreground); flex: none; display: flex; align-items: center; justify-content: center; transition: background-color var(--dur-ui) var(--ease-out); }
.ap-tick__box img { width: 14px; height: 14px; opacity: 0; transition: opacity var(--dur-ui) var(--ease-out); }
.ap-tick[aria-checked="true"] { border-color: var(--foreground); box-shadow: inset 0 0 0 1px var(--foreground); }
.ap-tick[aria-checked="true"] .ap-tick__box { background: var(--foreground); }
.ap-tick[aria-checked="true"] .ap-tick__box img { opacity: 1; }
.ap-tick.is-error { border-color: var(--attention); box-shadow: inset 0 0 0 1px var(--attention); }

/* About you */
.ap-photo { display: flex; align-items: center; gap: 16px; }
.ap-photo__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--muted); }
.ap-photo__copy { display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
.ap-photo__change { font: 500 12px/16px "Hanken Grotesk", system-ui, sans-serif; text-decoration: underline; text-underline-offset: 2px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--foreground); align-self: flex-start; }
.ap-toggle { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
.ap-switch { width: 44px; height: 26px; border: 0; padding: 0; background: none; flex: none; cursor: pointer; border-radius: 13px; }
.ap-switch img { width: 44px; height: 26px; display: block; }
.ap-equip { display: flex; flex-direction: column; gap: 0; margin-top: -20px; }

/* Application status timeline */
.ap-steps { display: flex; flex-direction: column; gap: 20px; }
.ap-stepi { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.ap-stepi__dot { width: 24px; height: 24px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; }
.ap-stepi__dot img { width: 14px; height: 14px; }
.ap-stepi__dot--done { background: var(--success-subtle); }
.ap-stepi__dot--wait { background: var(--attention-subtle); }
.ap-stepi__dot--todo { border: 1.5px solid var(--foreground); }
.ap-stepi .ap-copy__t { font-weight: 500; }
.ap-stepi__act { margin-top: 6px; align-self: flex-start; font: 500 14px/20px "Hanken Grotesk", system-ui, sans-serif; background: none; border: 0; padding: 0; color: var(--foreground); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Banner (Info) */
.ap-banner { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius-lg); background: var(--muted); }
.ap-banner > img { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.ap-banner__t { font-weight: 500; font-size: 14px; line-height: 20px; }
.ap-banner__b { font-size: 12px; line-height: 16px; margin-top: 4px; }

.ap-body-text { font-size: 14px; line-height: 20px; }
.ap-doc p { font-size: 14px; line-height: 20px; }

/* Welcome (PRO-2 step 6, X-108): a video card with a poster and a play state, then the questions. Tokens only, no new look */
.ap-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--muted); }
.ap-video__poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-video::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, color-mix(in srgb, var(--ink) 72%, transparent), color-mix(in srgb, var(--ink) 16%, transparent) 60%); }
.ap-video__play {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 56px; height: 56px; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; padding: 0;
  background: var(--card); color: var(--foreground); cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), opacity var(--dur-ui) var(--ease-out);
}
.ap-video__play:active { transform: translate(-50%, -50%) scale(.94); }
.ap-video__play:focus-visible { outline: 2px solid var(--card); outline-offset: 3px; }
.ap-video--playing .ap-video__play { opacity: .9; }
.ap-video__bar { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; align-items: center; gap: 12px; color: var(--paper); font: 500 12px/16px "Hanken Grotesk", system-ui, sans-serif; }
.ap-video__bar[hidden] { display: none; }
.ap-video__track { flex: 1 1 0; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--paper) 35%, transparent); overflow: hidden; }
.ap-video__track i { display: block; height: 100%; background: var(--paper); transition: width 200ms linear; }
@media (prefers-reduced-motion: reduce) { .ap-video__track i, .ap-video__play { transition: none; } }

.ap-q { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ap-q__legend { display: flex; flex-direction: column; gap: 2px; padding: 0; margin-bottom: 4px; }
.ap-q__opts { display: flex; flex-direction: column; gap: 8px; }
.ap-option--q { padding: 14px 16px; }
.ap-option[aria-checked="true"] { background: var(--muted); border-color: var(--foreground); box-shadow: inset 0 0 0 1px var(--foreground); }
@media (hover: hover) { .ap-option[aria-checked="true"]:hover { border-color: var(--foreground); } }
.ap-q.is-error .ap-option[aria-checked="true"] { border-color: var(--attention); box-shadow: inset 0 0 0 1px var(--attention); }

/* PRO-27 (Providers 10b·2, 10b·3): Watch / Read */
.ap-tabs { display: flex; gap: 8px; }
.ap-tabs .ob-btn { width: auto; min-height: 36px; padding: 0 16px; }
.ap-banner__t { font-weight: 500; }
/* 09i company sign-up: first and last name side by side */
.ap-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
