@font-face { font-family: Inter; src: url('/assets/brand/fonts/Inter-Regular.ttf') format('truetype'); font-display: swap; font-weight: 400; }
@font-face { font-family: Inter; src: url('/assets/brand/fonts/Inter-SemiBold.ttf') format('truetype'); font-display: swap; font-weight: 600 800; }
@font-face { font-family: Sora; src: url('/assets/brand/fonts/Sora-SemiBold.ttf') format('truetype'); font-display: swap; font-weight: 600 800; }
:root {
    --bg: #F7F8FA;
    --ink: #0D0F13;
    --muted: #4A4B4F;
    --field: #fff;
    --line: #C0C6CE;
    --rule: #D7DBE1;
    --link: #1E222B;
    --soft: #FFE3CC;
    --accent: #FF6B00;
    --err-ink: #902425;
    --err-bg: #fff0ed;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #0D0F13;
    --ink: #F7F8FA;
    --muted: #90A6C2;
    --field: #191A1E;
    --line: #47484C;
    --rule: #313236;
    --link: #FF6B00;
    --soft: #212226;
    --err-ink: #ffb8af;
    --err-bg: #382422;
    color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 Inter, system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
input, select, button { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-underline-offset: .18em; }
button:disabled { cursor: default; opacity: .62; }
:where(a, button, input, select):focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.wp-icon { display: block; width: 20px; height: 20px; flex: none; }
.ap-reg-layout { display: grid; grid-template-columns: minmax(280px, 40%) minmax(0, 1fr); align-items: start; }
.ap-reg-visual { position: sticky; top: 0; height: 100vh; height: 100svh; background: #1E1F23; isolation: isolate; }
.ap-reg-visual picture, .ap-reg-visual picture img { display: block; width: 100%; height: 100%; }
.ap-reg-visual picture { position: absolute; inset: 0; z-index: -2; }
.ap-reg-visual picture img { object-fit: cover; object-position: 59% 53%; }
.ap-reg-visual::before { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(165deg, rgb(10 12 10 / 50%), transparent 40%); }
.ap-reg-brandbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: clamp(26px,3.5vw,62px); }
.ap-reg-brand { display: inline-flex; border: 0; background: transparent; }
.ap-reg-brand img { width: clamp(150px,13vw,202px); height: auto; }
.ap-reg-brand:focus-visible, .ap-reg-mode:focus-visible { outline-color: var(--accent); }
.ap-reg-mode { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: rgb(16 18 16 / 67%); color: #F7F8FA; border: 1px solid rgb(246 248 242 / 45%); border-radius: 50%; }
.ap-reg-mode:hover { background: #212226; }
.ap-reg-main { min-width: 0; padding: clamp(26px,3.4vw,58px) clamp(26px,5vw,96px) 36px; }
.ap-reg-column { max-width: 640px; margin: 0 auto; }
.ap-reg-return { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; margin: 0 0 clamp(20px,3.4vw,55px); font-weight: 600; font-size: 14px; text-decoration: none; }
.ap-reg-return:hover, .ap-reg-footer a:hover { text-decoration: underline; }
.ap-reg-return .wp-icon { width: 17px; height: 17px; }
.avr-card { min-width: 0; scroll-margin-top: 16px; }
.avr-progress { display: flex; align-items: center; margin: 0 0 clamp(20px,2.2vw,32px); padding: 0; list-style: none; }
.avr-progress li { min-width: 0; display: flex; align-items: center; gap: 7px; color: var(--muted); font: 600 13px/1.2 Inter,system-ui,sans-serif; }
.avr-progress li:not(:last-child) { flex: 1; }
.avr-progress li:not(:last-child)::after { content: ""; height: 1px; margin: 0 clamp(7px,1.25vw,20px) 0 2px; flex: 1; background: var(--line); }
.avr-progress i { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; font: inherit; font-variant-numeric: tabular-nums; }
.avr-progress .is-active { color: var(--ink); }
.avr-progress .is-active i { border-color: var(--accent); background: var(--accent); color: var(--ab-graphite); }
.avr-progress .is-complete i { border-color: var(--link); color: var(--link); background: var(--soft); }
.avr-card h1, .avr-section-title, .avr-dialog h2 { color: var(--ink); font-family: Sora,Inter,system-ui,sans-serif; letter-spacing: -.045em; line-height: 1.15; }
.avr-card h1 { margin: 0; font-size: clamp(34px,3.15vw,54px); }
.avr-card h1:focus { outline: none; }
.avr-subtitle { color: var(--muted); font-size: 15px; margin: 8px 0 26px; }
.avr-card fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.avr-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.avr-person-types { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0 0 23px; }
.avr-person-types label { min-width: 0; position: relative; cursor: pointer; }
.avr-person-types input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.avr-person-types .ap-reg-choice { position: relative; display: grid; grid-template-columns: 1fr auto; align-content: center; min-height: 84px; padding: 12px 15px; border: 1px solid var(--line); background: var(--field); border-radius: 12px; }
.ap-reg-choice .wp-icon { grid-area: 1 / 2 / 3 / 3; align-self: center; color: var(--muted); }
.ap-reg-choice strong { font-size: 15px; font-weight: 600; }
.ap-reg-choice small { color: var(--muted); font-size: 12px; }
.avr-person-types input:checked + span { background: var(--soft); border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.avr-person-types input:checked + span .wp-icon { color: var(--link); }
.avr-person-types input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 3px; }
.avr-field { min-width: 0; margin: 0 0 17px; }
.avr-field > label, .avr-dialog label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.avr-field .wp-input, .avr-dialog .wp-input, .avr-code-inputs input {
    display: block; width: 100%; min-width: 0; max-width: 100%; height: 48px; margin: 0; padding: 10px 13px;
    border: 1px solid var(--line); border-radius: 9px; background: var(--field); color: var(--ink);
    outline-offset: 2px; font-size: 16px; line-height: 1.35; font-variant-numeric: tabular-nums;
}
.wp-input::placeholder { color: var(--muted); opacity: 1; }
.wp-input:focus { border-color: var(--link); }
.wp-input[type="date"] { display: block; -webkit-appearance: none; appearance: none; color-scheme: inherit; }
.wp-input[type="date"]::-webkit-date-and-time-value { text-align: start; }
.wp-input[type="date"]::-webkit-datetime-edit { min-width: 0; padding: 0; }
.avr-field select { color-scheme: inherit; }
.avr-two-fields, .ap-reg-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 14px; }
.avr-city-state { grid-template-columns: minmax(0,1fr) minmax(72px,.32fr); }
.avr-document-line { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.avr-document-line .wp-input { flex: 1 1 0; }
.avr-lookup, .avr-camera-button, .avm-inline-back { border: 1px solid var(--line); background: var(--field); color: var(--link); border-radius: 9px; font-size: 13px; font-weight: 600; padding: 8px 12px; }
.avr-lookup:hover, .avr-camera-button:hover, .avm-inline-back:hover { background: var(--soft); }
.avr-password-wrap { position: relative; }
.avr-password-wrap .wp-input { padding-inline-end: 47px; }
.avr-password-wrap button { position: absolute; inset: 0 4px 0 auto; display: grid; width: 40px; place-items: center; border: 0; color: var(--muted); background: transparent; }
.avr-section-title { padding-top: 23px; border-top: 1px solid var(--rule); margin: 12px 0 16px; font-size: 21px; }
.avr-field-help, .avr-note, .avr-code-note { display: block; color: var(--muted); font-size: 13px; line-height: 1.55; }
.avr-field-help { margin-top: 5px; }
.avr-note { margin: 0 0 15px; }
.avr-field-help:empty, .avr-message:empty { display: none; }
.avr-terms { display: flex; gap: 10px; align-items: center; min-height: 42px; margin: 3px 0 13px; color: var(--muted); font-size: 14px; }
.avr-terms input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--link); }
.avr-terms a, .ap-reg-footer a { font-weight: 600; }
.avr-primary { display: block; width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid transparent; border-radius: 11px; background: var(--accent); color: var(--ab-graphite); font-weight: 700; font-size: 16px; }
.avr-primary:hover { background: #D8C296; }
.avr-primary:active { transform: translateY(1px); }
.avm-inline-back { display: block; width: 100%; min-height: 45px; margin-top: 10px; }
.ap-reg-footer { text-align: center; margin: 24px 0 0; color: var(--muted); font-size: 14px; }
.avr-company-facts { border-radius: 12px; padding: 14px; margin-bottom: 18px; background: var(--soft); color: var(--ink); font-size: 13px; }
.avr-company-facts dl { margin: 5px 0 0; }
.avr-company-facts dl > div { display: grid; grid-template-columns: 40% 1fr; gap: 10px; padding: 4px 0; overflow-wrap: anywhere; }
.avr-company-facts dt { color: var(--muted); }
.avr-company-facts dd { margin: 0; }
.avr-field input[type="file"] { display: block; width: 100%; min-width: 0; max-width: 100%; padding: 8px; border: 1px dashed var(--line); border-radius: 9px; background: var(--field); color: var(--muted); font-size: 13px; }
.avr-field input[type="file"]::file-selector-button { margin-right: 8px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); color: var(--link); font: inherit; cursor: pointer; }
.avr-camera-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; margin-bottom: 8px; }
.avr-selfie-preview { width: 82px; height: 82px; object-fit: cover; border-radius: 50%; margin: 9px 0; }
.avr-upload-progress { position: relative; height: 28px; background: var(--field); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; margin: 14px 0; }
.avr-upload-progress > span { display: block; width: 0; height: 100%; background: var(--soft); }
.avr-upload-progress small { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font-size: 12px; }
.avr-message:not(:empty) { padding: 11px 13px; margin: 12px 0; border-inline-start: 3px solid currentColor; border-radius: 5px; color: var(--err-ink); background: var(--err-bg); font-size: 14px; }
.avr-message.success:not(:empty) { background: var(--soft); color: var(--link); }
.avr-dialog { width: min(440px,calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 26px; overflow-y: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); color: var(--ink); }
.avr-dialog::backdrop { background: rgb(10 12 10 / 70%); }
.avr-dialog h2 { max-width: 95%; margin: 16px 0 8px; font-size: 25px; }
.avr-dialog p { color: var(--muted); overflow-wrap: anywhere; font-size: 14px; }
.avr-dialog strong { color: var(--ink); }
.ap-reg-optional { color: var(--muted); font-size: 12px; font-weight: 400; }
.ap-reg-confirm-mark { width: 30px; height: 30px; color: var(--link); }
.avr-dialog-close { position: absolute; display: grid; place-items: center; top: 12px; right: 12px; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--field); color: var(--ink); font-size: 24px; line-height: 1; }
.avr-code-inputs, .avr-code-group { display: flex; justify-content: center; align-items: center; gap: 5px; min-width: 0; }
.avr-code-inputs { margin: 12px 0 20px; }
.avr-code-inputs input { width: clamp(27px,8vw,42px); height: 44px; padding: 0 2px; text-align: center; font-size: 21px; }
.avr-code-note { text-align: center; }
.avr-resend, .avr-resume-code { display: block; margin: 12px auto 0; min-height: 40px; padding: 5px 12px; border: 0; background: transparent; color: var(--link); font-size: 14px; text-decoration: underline; }
.avr-camera-dialog video { display: block; width: 100%; max-height: 55dvh; border-radius: 12px; background: #0D0F13; object-fit: cover; transform: scaleX(-1); margin: 12px 0; }
@media (max-width: 799px) {
    .ap-reg-layout { display: block; }
    .ap-reg-visual { position: relative; height: clamp(144px,22svh,210px); }
    .ap-reg-visual picture img { object-position: 62% 53%; }
    .ap-reg-brandbar { padding: max(19px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left)); }
    .ap-reg-brand img { width: 153px; }
    .ap-reg-mode { width: 42px; height: 42px; }
    .ap-reg-main { max-width: 680px; margin: 0 auto; padding: 19px max(20px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left)); }
    .ap-reg-return { display: none; }
    .avr-progress { margin-bottom: 19px; }
    .avr-progress li { font-size: 12px; }
    .avr-card h1 { font-size: clamp(31px,7vw,40px); }
    .avr-subtitle { margin: 5px 0 18px; font-size: 14px; }
    .avr-person-types { margin-bottom: 20px; }
    .avr-person-types .ap-reg-choice { min-height: 66px; padding: 10px 12px; }
}
@media (max-width: 540px) {
    .avr-two-fields:not(.avr-city-state), .ap-reg-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 359px) {
    .ap-reg-main { padding-inline: 15px; }
    .avr-progress li { gap: 4px; font-size: 11px; }
    .avr-progress i { width: 23px; height: 23px; }
    .ap-reg-choice strong { font-size: 13px; }
    .avr-dialog { padding: 22px 15px; }
}
@media (prefers-reduced-motion: no-preference) {
    .ap-reg-choice, .avr-primary { transition: background-color .15s, border-color .15s, transform .15s; }
}
