/* Credit application (CR.1–CR.2, D450–D459). Phone first, centered on a computer; the new look (docs/19): limestone page, paper card,
   Cormorant headline, pill buttons, one thin yellow progress line. Bronze is the home page's accent; this page stays graphite. */
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 var(--nx-text); }
button, input, select, textarea { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 6px 10px; z-index: 50; }
.ca-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(16px, calc((100% - 1120px) / 2 + 16px)); padding-top: max(12px, env(safe-area-inset-top)); }
.ca-home { display: inline-flex; } .ca-top .nx-logo { height: 34px; width: auto; display: block; }
.ca-lang { min-height: 40px; padding: 0 14px; border: 1px solid var(--nx-line); border-radius: var(--nx-pill); background: #fff; font-weight: 700; font-size: 14px; letter-spacing: .04em; cursor: pointer; }
.ca-lang:hover { border-color: var(--nx-graphite); }
.ca-top-btns { display: flex; gap: 8px; align-items: center; }
.ca-homebtn { display: inline-flex; align-items: center; text-decoration: none; color: inherit; letter-spacing: 0; }
.ca-main { max-width: 760px; margin: 0 auto; padding: 24px 16px 56px; padding-bottom: max(56px, env(safe-area-inset-bottom)); }
.ca-main:focus { outline: none; }
.ca-loading { color: var(--nx-slate); }
.ca-head { margin-bottom: 18px; }
.ca-head .nx-display { font-size: clamp(36px, 6vw, 54px); color: var(--nx-graphite); }
.ca-head p { margin: 10px 0 0; color: var(--nx-slate); font-size: 17px; max-width: 60ch; }
.ca-head p a { color: inherit; }
.ca-head .ca-welcome b { color: var(--nx-graphite); font-weight: 700; }
/* The box people never see (D614): off the screen, out of the tab order and hidden from screen readers; only a bot fills it in. */
.ca-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ca-progress { margin: 18px 0 8px; }
.ca-steps { margin: 12px 0 0; font-size: 12px; }
.ca-steps li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 540px) { .ca-steps li:not([aria-current="step"]) span { display: none; } .ca-steps li { gap: 6px; } }
.ca-card { background: var(--nx-paper); border: 1px solid var(--nx-line); border-radius: var(--nx-r-l); padding: 22px 18px; margin-top: 10px; }
.ca-card h2 { margin: 0 0 4px; font-family: var(--nx-display); font-weight: 600; font-size: 32px; line-height: 1.05; }
.ca-card .ca-why { margin: 0 0 18px; color: var(--nx-slate); font-size: 15px; }
.ca-step { display: grid; gap: 16px; }
.ca-step.ca-in { animation: caStep .45s var(--nx-ease) both; }
@keyframes caStep { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ca-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .ca-row { grid-template-columns: 1fr 1fr; } .ca-row.ca-3 { grid-template-columns: 2fr 1fr 1fr; } }
.nx-field .req, .nx-choices legend .req { color: var(--nx-alert); font-weight: 600; }
.nx-field .nx-hint { margin: 0; font-size: 13px; color: var(--nx-slate); }
.nx-field input[aria-invalid="true"], .nx-field select[aria-invalid="true"] { border-color: var(--nx-alert); }
.ca-check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; cursor: pointer; }
.ca-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--nx-graphite); }
.ca-check b { display: block; }
.ca-file { display: grid; gap: 6px; } .ca-file[hidden] { display: none; }
.ca-file input { font-size: 14px; }
.ca-file .ca-file-name { font-size: 14px; color: var(--nx-slate); }
.ca-sub { margin: 6px 0 0; padding-top: 16px; border-top: 1px solid var(--nx-line); }
.ca-sub h3 { margin: 0 0 12px; font-size: 16px; }
.ca-ref { padding: 14px; border: 1px solid var(--nx-line); border-radius: var(--nx-r); background: #fff; display: grid; gap: 12px; }
.ca-ref h3 { margin: 0; font-size: 15px; display: flex; justify-content: space-between; gap: 8px; }
.ca-ref h3 span { font-weight: 500; color: var(--nx-slate); font-size: 14px; }
.ca-terms { max-height: 320px; overflow: auto; padding: 14px 16px; border: 1px solid var(--nx-line); border-radius: var(--nx-r); background: #fff; font-size: 15px; line-height: 1.5; }
.ca-terms h3 { margin: 0 0 10px; font-size: 18px; }
.ca-terms ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.ca-terms p { margin: 0 0 8px; }
.ca-terms .ca-es-note { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--nx-line); color: var(--nx-slate); font-size: 14px; }
.ca-pad { display: grid; gap: 6px; }
.ca-pad canvas { width: 100%; height: 150px; border: 1px dashed color-mix(in srgb, var(--nx-graphite) 45%, transparent); border-radius: var(--nx-r); background: #fff; touch-action: none; cursor: crosshair; }
.ca-pad-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--nx-slate); }
.ca-pad-row button { min-height: 36px; padding: 0 12px; border: 1px solid var(--nx-line); border-radius: var(--nx-pill); background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.ca-sensitive { padding: 12px 14px; border-radius: var(--nx-r); background: #fff; border: 1px solid var(--nx-line); font-size: 14px; color: var(--nx-slate); }
.ca-err { margin: 0; color: var(--nx-alert); font-weight: 600; min-height: 0; }
.ca-err:empty { display: none; }
.ca-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; }
.ca-nav .nx-btn { min-height: 52px; font-size: 16px; }
.ca-nav .ca-next { flex: 1; max-width: 320px; }
.ca-back { min-height: 44px; padding: 0 4px; border: 0; background: none; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); cursor: pointer; }
.ca-back[hidden] { display: none; }
.ca-done { text-align: center; padding: 30px 18px; }
.ca-done .ca-tick { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--nx-live); color: #fff; font-size: 30px; line-height: 56px; font-weight: 700; }
.ca-done h2 { margin: 0 0 8px; font-family: var(--nx-display); font-size: 36px; font-weight: 600; line-height: 1.05; }
.ca-done p { margin: 0 0 10px; color: var(--nx-slate); max-width: 52ch; margin-inline: auto; }
.ca-done .ca-refno { font-family: var(--nx-text); font-size: 22px; font-weight: 700; color: var(--nx-graphite); letter-spacing: .04em; }
.ca-done .nx-btn { margin-top: 10px; }
.ca-demo { margin: 18px 0 0; font-size: 13px; color: var(--nx-slate); }
/* CR.2: signed in first (D458), the locked numbers (D459) and an application on record. */
.ca-who { margin: 8px 0 0 !important; font-size: 14px !important; color: var(--nx-slate); }
.ca-locked input { padding-right: 40px; letter-spacing: .06em; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath d='M7 10V8a5 5 0 0 1 10 0v2' fill='none' stroke='%23172126' stroke-width='2' stroke-linecap='round'/%3E%3Crect x='5' y='10' width='14' height='10' rx='2.5' fill='%23172126'/%3E%3C/svg%3E") no-repeat right 12px center; }
.ca-lock { vertical-align: -2px; }
.ca-gate h2, .ca-status h2 { margin-bottom: 10px; }
.ca-gate p, .ca-status p { margin: 0 0 12px; color: var(--nx-slate); max-width: 60ch; }
.ca-gate-btns, .ca-status .nx-btn { margin-top: 6px; }
.ca-gate-help { font-size: 14px; } .ca-gate-help a { color: inherit; }
.ca-refline .ca-refno { font-weight: 700; color: var(--nx-graphite); letter-spacing: .04em; }
.ca-numbers { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--nx-line); border-radius: var(--nx-r); background: #fff; }
.ca-numbers li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; font-size: 15px; }
.ca-numbers li + li { border-top: 1px solid var(--nx-line); }
.ca-numbers b { font-weight: 600; color: var(--nx-slate); white-space: nowrap; font-size: 14px; }
.ca-numbers b.ca-got { color: var(--nx-graphite); }
.ca-later { display: grid; gap: 14px; }
.ca-later .ca-why { margin: 0; }
@media (max-width: 420px) { .ca-numbers li { flex-direction: column; align-items: flex-start; gap: 2px; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--nx-graphite); color: #fff; padding: 12px 18px; border-radius: var(--nx-pill); font-weight: 600; max-width: calc(100% - 32px); z-index: 20; }
.toast[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .ca-step.ca-in { animation: none; } }
