/* ==========================================================================
   EXPRESSCREDIT — DESIGN SYSTEM
   03. COMPONENTS
   ========================================================================== */

/* ==========================================================================
   BRAND MARK — ExpressCredit lockup
   Twin forward chevrons + vertical divider + italic wordmark. "Express" in
   Midnight Navy, "Credit" in Express Teal, tagline tracked caps (CI §02).
   The CI's logo lettering is custom artwork; until the master vector lands,
   the wordmark is set in Inter 800 italic as a faithful interim.
   ========================================================================== */
.nala-logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; min-width: 0; min-height: var(--tap-min);
}
.nala-logo .nala-mark { flex: none; }
.nala-logo__divider { flex: none; width: 1.5px; height: 34px; background: var(--navy-700); opacity: .9; border-radius: 1px; }
.nala-logo__word { display: block; min-width: 0; }
.nala-logo__name {
  font-family: var(--font-display);
  font-size: 1.5rem; line-height: 1; font-weight: 800; font-style: italic;
  letter-spacing: -0.035em; color: var(--navy-700); white-space: nowrap;
}
.nala-logo__name em { font-style: italic; color: var(--teal-500); }
.nala-logo__name .tld { display: none; }
.nala-logo__tag {
  display: block; margin-top: 4px; white-space: nowrap;
  font-family: var(--font-body); font-size: 9px; line-height: 1;
  letter-spacing: .32em; font-weight: var(--fw-semibold); text-transform: uppercase;
  color: var(--navy-700);
}
.nala-logo--sm .nala-logo__name { font-size: 1.125rem; }
.nala-logo--sm .nala-logo__divider { height: 26px; }
@media (max-width: 420px) {
  .nala-logo__tag { display: none; }
  .nala-logo__name { font-size: 1.125rem; }
  .nala-logo .nala-mark { width: 30px; height: 22px; }
  .nala-logo__divider { height: 24px; }
}

/* Reversed lockup on navy (CI: single-colour white, teal retained — 4.6:1 on navy). */
.on-dark .nala-logo__name { color: var(--white); }
.on-dark .nala-logo__name em { color: var(--teal-300); }
.on-dark .nala-logo__tag { color: rgba(255,255,255,.78); }
.on-dark .nala-logo__divider { background: rgba(255,255,255,.7); }
.on-dark .nala-mark .ec-chev-b { stroke: var(--white); }
.on-dark .nala-mark .ec-chev-a { stroke: var(--teal-300); }

/* ==========================================================================
   BUTTONS
   Min height 48px, primary mobile CTA 52–56px, full keyboard + touch targets
   ========================================================================== */
.btn {
  --btn-h: var(--control-h);
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  min-height: var(--btn-h);
  padding: 0 var(--sp-6);
  border: 1.5px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: var(--fs-body-lg); line-height: 1;
  font-weight: var(--fw-semibold);
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

.btn--primary {
  background: var(--action-primary); color: var(--ink-on-brand);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover  { background: var(--action-primary-hover); color: var(--white); box-shadow: var(--shadow-md); }
.btn--primary:active { background: var(--action-primary-active); }

.btn--navy { background: var(--navy-700); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--navy:hover { background: var(--navy-600); color: var(--white); }

.btn--secondary {
  background: transparent; color: var(--navy-700);
  border-color: var(--navy-700);
}
.btn--secondary:hover { border-color: var(--navy-700); background: var(--grey-50); color: var(--navy-700); }

.btn--brand-outline {
  background: transparent; color: var(--teal-700); border-color: var(--teal-500);
}
.btn--brand-outline:hover { background: var(--teal-50); color: var(--teal-800); }

.btn--ghost { background: transparent; color: var(--navy-700); border-color: transparent; padding-inline: var(--sp-3); }
.btn--ghost:hover { background: var(--grey-100); color: var(--navy-700); }

.btn--link {
  background: none; border: 0; padding: 0; min-height: var(--tap-min);
  color: var(--ink-brand); text-decoration: underline; text-underline-offset: 3px;
}

.btn--danger { background: var(--error-ink); color: var(--white); }
.btn--danger:hover { background: #8F2116; color: var(--white); }

.btn--on-dark { background: var(--white); color: var(--navy-700); }
.btn--on-dark:hover { background: var(--grey-100); color: var(--navy-700); }
.btn--on-dark-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.42); }
.btn--on-dark-outline:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: var(--white); }

.btn--lg    { --btn-h: var(--control-h-lg); padding-inline: var(--sp-8); font-size: 1.0625rem; }
.btn--sm    { --btn-h: var(--tap-min); padding-inline: var(--sp-4); font-size: var(--fs-body); }
/* Single-line by default so labels don't fragment; block and full-width
   buttons are allowed to wrap so that text-only zoom (SC 1.4.4) and 320px
   reflow (SC 1.4.10) never push the label out of the viewport. */
.btn { white-space: nowrap; }
.btn--block { white-space: normal; text-align: center; }
.btn--block { display: flex; width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--disabled-bg); color: var(--disabled-ink);
  border-color: transparent; box-shadow: none; cursor: not-allowed; transform: none;
}

.btn__spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: nala-spin .7s linear infinite;
}
@keyframes nala-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.card--sm   { border-radius: var(--r-card-sm); padding: var(--sp-5); }
.card--lg   { border-radius: var(--r-card-lg); padding: var(--sp-8); }
.card--hero { border-radius: var(--r-hero); padding: var(--sp-6); box-shadow: var(--shadow-xl); border-color: transparent; }
@media (min-width: 768px) { .card--hero { padding: var(--sp-8); } }
.card--flat  { box-shadow: none; }
.card--quiet { background: var(--grey-50); border-color: var(--border-subtle); box-shadow: none; }
.card--navy  { background: var(--navy-700); color: var(--ink-inverse); border-color: transparent; }
.card--navy h2, .card--navy h3, .card--navy h4 { color: var(--ink-inverse); }

.card--interactive { transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease); }
.card--interactive:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--teal-200); }

.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.card__title { margin: 0; font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: var(--fw-semibold); }

/* Feature card with icon */
.feature-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.feature-card__icon {
  width: 48px; height: 48px; border-radius: var(--r-card-sm);
  display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-700);
  border: 1px solid var(--teal-100);
}
.feature-card__icon--green { background: var(--green-50); color: var(--green-600); border-color: var(--green-100); }
.feature-card__icon--navy  { background: var(--navy-50);  color: var(--navy-700);  border-color: var(--navy-100); }
.feature-card h3 { margin: 0; font-size: var(--fs-h4); line-height: var(--lh-h4); }
.feature-card p  { margin: 0; color: var(--ink-secondary); font-size: var(--fs-body); line-height: var(--lh-body); }

/* ==========================================================================
   FORMS
   ========================================================================== */
.field { margin-bottom: var(--sp-5); }
.field__label {
  display: block; margin-bottom: var(--sp-2);
  font-size: var(--fs-body); line-height: var(--lh-body);
  font-weight: var(--fw-semibold); color: var(--ink-primary);
}
.field__label .opt { font-weight: var(--fw-regular); color: var(--ink-muted); }
.field__hint {
  display: block; margin-top: var(--sp-2);
  font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-muted);
}
.field__error {
  display: flex; gap: var(--sp-2); align-items: flex-start; margin-top: var(--sp-2);
  font-size: var(--fs-small); line-height: var(--lh-small);
  font-weight: var(--fw-medium); color: var(--error-ink);
}
.field__error svg { flex: none; margin-top: 1px; }

.input, .select, .textarea {
  width: 100%;
  min-height: var(--control-h);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-control);
  border-radius: var(--r-input);
  font-family: var(--font-body);
  font-size: var(--fs-body-lg); line-height: var(--lh-body-lg);
  color: var(--ink-primary);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
  appearance: none;
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--grey-400); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(0,140,168,.16);
}
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--error); background: var(--error-surface); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(231,76,60,.16); }
.input[disabled], .select[disabled] { background: var(--disabled-bg); color: var(--disabled-ink); cursor: not-allowed; }
.input--valid { border-color: var(--green-400); }

.select {
  padding-right: var(--sp-10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234A525C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--sp-4) center;
}

/* Input with leading currency / adornment */
.input-group { position: relative; display: flex; align-items: stretch; }
.input-group__prefix {
  display: inline-flex; align-items: center; padding-inline: var(--sp-4);
  background: var(--grey-100); border: 1.5px solid var(--border-control); border-right: 0;
  border-radius: var(--r-input) 0 0 var(--r-input);
  font-weight: var(--fw-semibold); color: var(--ink-secondary);
}
.input-group .input { border-radius: 0 var(--r-input) var(--r-input) 0; }
.input-group--currency .input { font-family: var(--font-display); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }

/* Checkbox & radio */
.check {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  min-height: var(--tap-min); padding: var(--sp-2) 0; cursor: pointer;
}
.check input[type="checkbox"], .check input[type="radio"] {
  flex: none; width: 22px; height: 22px; margin: 1px 0 0;
  accent-color: var(--teal-600); cursor: pointer;
}
.check__text { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-secondary); }
.check__text strong { color: var(--ink-primary); font-weight: var(--fw-semibold); }

/* Selectable tile (term selector, payment option, radio card) */
.tile {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  align-items: center; justify-content: center;
  min-height: var(--tap-min); padding: var(--sp-3) var(--sp-2);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-control);
  border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: var(--fw-semibold);
  color: var(--ink-secondary); cursor: pointer; text-align: center;
  transition: all var(--dur-fast) var(--ease);
}
.tile:hover { border-color: var(--teal-400); background: var(--teal-50); color: var(--teal-800); }
.tile__num { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.2; color: var(--ink-primary); }
.tile__unit { font-size: var(--fs-small); line-height: var(--lh-small); font-weight: var(--fw-medium); color: var(--ink-muted); }
.tile[aria-pressed="true"], .tile.is-selected {
  border-color: var(--teal-600); background: var(--teal-600); color: var(--white);
  box-shadow: 0 4px 12px rgba(0,115,138,.28);
}
.tile[aria-pressed="true"] .tile__num,
.tile[aria-pressed="true"] .tile__unit,
.tile.is-selected .tile__num, .tile.is-selected .tile__unit { color: var(--white); }

.tile--wide { flex-direction: row; justify-content: space-between; text-align: left; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-card-sm); }

.tile-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
@media (min-width: 480px) { .tile-group { grid-template-columns: repeat(6, 1fr); } }
.tile-group--stack { grid-template-columns: 1fr; gap: var(--sp-3); }

/* OTP input */
/* OTP boxes flex down on narrow viewports so a 5- or 6-digit PIN never
   forces horizontal scrolling at 320px. */
.otp { display: flex; gap: var(--sp-2); justify-content: center; }
.otp input {
  flex: 1 1 44px; min-width: 0; max-width: 56px;
  width: 48px; height: 56px; text-align: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: var(--fw-bold);
  border: 1.5px solid var(--border-control); border-radius: var(--r-input);
  background: var(--bg-surface); color: var(--ink-primary);
}
.otp input:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(0,140,168,.16); }

/* ==========================================================================
   RANGE SLIDER — amount selector
   ========================================================================== */
.slider { position: relative; padding-block: var(--sp-2); }
.slider input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: var(--tap-min); background: transparent; cursor: pointer; margin: 0;
}
.slider input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--teal-500) 0%, var(--teal-500) var(--fill,50%), var(--grey-200) var(--fill,50%), var(--grey-200) 100%);
}
.slider input[type="range"]::-moz-range-track { height: 8px; border-radius: var(--r-pill); background: var(--grey-200); }
.slider input[type="range"]::-moz-range-progress { height: 8px; border-radius: var(--r-pill); background: var(--teal-500); }
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; margin-top: -11px;
  border-radius: 50%; background: var(--white);
  border: 3px solid var(--teal-600);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.slider input[type="range"]::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--teal-600); box-shadow: var(--shadow-md);
}
.slider input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.06); }
.slider input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: var(--shadow-focus); }
.slider__scale {
  display: flex; justify-content: space-between;
  font-size: var(--fs-small); line-height: var(--lh-small);
  font-weight: var(--fw-medium); color: var(--ink-muted);
}

/* ==========================================================================
   SUMMARY / KEY-VALUE ROWS  (repayment breakdown, offer detail)
   ========================================================================== */
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); padding-block: var(--sp-3); }
.kv + .kv { border-top: 1px solid var(--border-subtle); }
.kv__k { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-secondary); }
.kv__v { font-family: var(--font-display); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; color: var(--ink-primary); text-align: right; }
.kv--total { border-top: 2px solid var(--navy-700); margin-top: var(--sp-1); padding-top: var(--sp-4); }
.kv--total .kv__k { font-weight: var(--fw-semibold); color: var(--ink-primary); font-size: var(--fs-body-lg); }
.kv--total .kv__v { font-size: var(--fs-money-md); line-height: var(--lh-money-md); font-weight: var(--fw-bold); }
.kv--emphasis { background: var(--teal-50); margin-inline: calc(var(--sp-4) * -1); padding-inline: var(--sp-4); border-radius: var(--r-sm); }

/* ==========================================================================
   BADGES & STATUS  — never colour alone: icon + text always present
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 5px var(--sp-3); border-radius: var(--r-pill);
  font-size: var(--fs-small); line-height: var(--lh-small);
  font-weight: var(--fw-semibold); white-space: nowrap;
  border: 1px solid transparent;
}
.badge svg { flex: none; }
.badge--success { background: var(--success-surface); color: var(--success-ink); border-color: var(--success-border); }
.badge--warning { background: var(--warning-surface); color: var(--warning-ink); border-color: var(--warning-border); }
.badge--error   { background: var(--error-surface);   color: var(--error-ink);   border-color: var(--error-border); }
.badge--info    { background: var(--info-surface);    color: var(--info-ink);    border-color: var(--info-border); }
.badge--neutral { background: var(--grey-100);        color: var(--grey-700);    border-color: var(--grey-200); }
.badge--brand   { background: var(--teal-50);         color: var(--teal-700);    border-color: var(--teal-100); }

/* ==========================================================================
   ALERTS / INFORMATION PANELS
   ========================================================================== */
.alert {
  display: flex; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-card-sm);
  border: 1px solid var(--info-border); background: var(--info-surface);
  font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-secondary);
}
.alert__icon { flex: none; color: var(--info-ink); margin-top: 1px; }
.alert__title { display: block; font-weight: var(--fw-semibold); color: var(--ink-primary); margin-bottom: 2px; font-size: var(--fs-body); }
.alert p { margin: 0; }
.alert--success { background: var(--success-surface); border-color: var(--success-border); }
.alert--success .alert__icon { color: var(--success-ink); }
.alert--warning { background: var(--warning-surface); border-color: var(--warning-border); }
.alert--warning .alert__icon { color: var(--warning-ink); }
.alert--error   { background: var(--error-surface); border-color: var(--error-border); }
.alert--error .alert__icon { color: var(--error-ink); }
.alert--quiet   { background: var(--grey-50); border-color: var(--border-subtle); }
.alert--quiet .alert__icon { color: var(--grey-600); }

/* Legal / disclosure microcopy */
.disclosure {
  font-size: var(--fs-small); line-height: 1.5;
  color: var(--ink-muted);
}
.disclosure a { color: var(--ink-brand); }

/* ==========================================================================
   PROGRESS
   ========================================================================== */
.progress {
  height: 10px; border-radius: var(--r-pill);
  background: var(--grey-200); overflow: hidden;
}
.progress__bar {
  height: 100%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--teal-500), var(--green-300));
  transition: width var(--dur-slow) var(--ease);
}
.progress--thin { height: 6px; }

/* Wizard stepper — desktop */
.stepper { display: none; }
@media (min-width: 900px) {
  .stepper { display: flex; align-items: center; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
  .stepper__item { display: flex; align-items: center; gap: var(--sp-2); }
  .stepper__dot {
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; flex: none;
    font-size: var(--fs-small); font-weight: var(--fw-bold);
    background: var(--grey-200); color: var(--grey-700);
    border: 2px solid transparent;
  }
  .stepper__label { font-size: var(--fs-body); font-weight: var(--fw-medium); color: var(--ink-muted); white-space: nowrap; }
  .stepper__rule { width: 24px; height: 2px; background: var(--grey-200); border-radius: 2px; }
  .stepper__item.is-done .stepper__dot { background: var(--green-300); color: var(--navy-800); }
  .stepper__item.is-done .stepper__label { color: var(--ink-secondary); }
  .stepper__item.is-current .stepper__dot { background: var(--teal-600); color: var(--white); border-color: var(--teal-100); }
  .stepper__item.is-current .stepper__label { color: var(--ink-primary); font-weight: var(--fw-semibold); }
}
/* Wizard stepper — mobile */
.stepper-mobile { display: block; }
@media (min-width: 900px) { .stepper-mobile { display: none; } }
.stepper-mobile__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--ink-primary);
}
.stepper-mobile__meta span:last-child { color: var(--ink-muted); font-weight: var(--fw-regular); }

/* Verification checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: var(--sp-3); align-items: flex-start; padding-block: var(--sp-3); }
.checklist li + li { border-top: 1px solid var(--border-subtle); }
.checklist__mark {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grey-100); color: var(--grey-500); border: 2px solid var(--grey-200);
}
.checklist__body { font-size: var(--fs-body); line-height: var(--lh-body); }
.checklist__body strong { display: block; color: var(--ink-primary); font-weight: var(--fw-semibold); }
.checklist__body span { color: var(--ink-muted); }
.checklist li.is-done .checklist__mark { background: var(--success-surface); color: var(--success-ink); border-color: var(--success-border); }
.checklist li.is-active .checklist__mark { background: var(--teal-600); color: var(--white); border-color: var(--teal-100); }

/* ==========================================================================
   REPAYMENT TIMELINE
   ========================================================================== */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; display: flex; gap: var(--sp-4); padding-bottom: var(--sp-6); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 13px; top: 28px; bottom: 0;
  width: 2px; background: var(--grey-200);
}
.timeline li:last-child::before { display: none; }
.timeline li.is-paid::before { background: var(--green-300); }
.timeline__mark {
  flex: none; width: 28px; height: 28px; border-radius: 50%; z-index: 1;
  display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--grey-500); color: var(--grey-600);
}
.timeline li.is-paid .timeline__mark { background: var(--success-surface); border-color: var(--success); color: var(--success-ink); }
.timeline li.is-due  .timeline__mark { background: var(--teal-600); border-color: var(--teal-600); color: var(--white); }
.timeline li.is-overdue .timeline__mark { background: var(--error-surface); border-color: var(--error); color: var(--error-ink); }
.timeline li.is-overdue .timeline__date { color: var(--error-ink); }
.timeline__body { flex: 1; display: flex; justify-content: space-between; gap: var(--sp-3); align-items: flex-start; }
.timeline__date { font-weight: var(--fw-semibold); font-size: var(--fs-body); color: var(--ink-primary); }
.timeline__sub  { font-size: var(--fs-small); color: var(--ink-muted); }

/* ==========================================================================
   DOCUMENT UPLOADER
   ========================================================================== */
.uploader {
  display: flex; gap: var(--sp-4); align-items: center;
  padding: var(--sp-4) var(--sp-5);
  border: 1.5px dashed var(--border-control); border-radius: var(--r-card-sm);
  background: var(--bg-surface);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.uploader:hover { border-color: var(--teal-400); background: var(--teal-50); }
.uploader.is-complete { border-style: solid; border-color: var(--success-border); background: var(--success-surface); }
.uploader__icon { flex: none; width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--grey-100); color: var(--grey-700); }
.uploader.is-complete .uploader__icon { background: var(--white); color: var(--success-ink); }
.uploader__body { flex: 1; min-width: 0; }
.uploader__name { font-weight: var(--fw-semibold); font-size: var(--fs-body-lg); color: var(--ink-primary); }
.uploader__meta { font-size: var(--fs-small); color: var(--ink-muted); }

/* ==========================================================================
   TABLE (payment history)
   ========================================================================== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.table th, .table td { padding: var(--sp-3) var(--sp-4); text-align: left; }
.table th {
  font-size: var(--fs-small); text-transform: uppercase; letter-spacing: var(--tracking-wide);
  color: var(--ink-muted); font-weight: var(--fw-semibold); border-bottom: 1px solid var(--border-default);
}
.table td { border-bottom: 1px solid var(--border-subtle); color: var(--ink-secondary); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-display); font-weight: var(--fw-semibold); color: var(--ink-primary); }

/* ==========================================================================
   ACCORDION (FAQ)
   ========================================================================== */
.accordion { border-top: 1px solid var(--border-subtle); }
.accordion__item { border-bottom: 1px solid var(--border-subtle); }
.accordion__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: var(--tap-min); padding: var(--sp-5) 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: var(--fs-h4); line-height: var(--lh-h4);
  font-weight: var(--fw-semibold); color: var(--ink-primary);
}
.accordion__trigger:hover { color: var(--teal-700); }
.accordion__icon { flex: none; transition: transform var(--dur-base) var(--ease); color: var(--teal-600); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }
.accordion__panel { padding-bottom: var(--sp-5); color: var(--ink-secondary); font-size: var(--fs-body-lg); line-height: 1.65; max-width: 70ch; }
.accordion__panel[hidden] { display: none; }

/* ==========================================================================
   SKELETON & EMPTY STATES
   ========================================================================== */
.skeleton {
  background: linear-gradient(90deg, var(--grey-100) 25%, var(--grey-200) 37%, var(--grey-100) 63%);
  background-size: 400% 100%;
  animation: nala-shimmer 1.4s ease infinite;
  border-radius: var(--r-xs);
}
@keyframes nala-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton--line { height: 12px; margin-bottom: var(--sp-2); }
.skeleton--title { height: 22px; width: 55%; margin-bottom: var(--sp-4); }

.empty { text-align: center; padding: var(--sp-10) var(--sp-5); }
.empty__art { width: 72px; height: 72px; margin: 0 auto var(--sp-4); border-radius: var(--r-card-sm); display: grid; place-items: center; background: var(--teal-50); color: var(--teal-600); }
.empty h3 { margin-bottom: var(--sp-2); }
.empty p { color: var(--ink-muted); max-width: 42ch; margin-inline: auto; }

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.trust {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-4) var(--sp-3);
}
@media (min-width: 430px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust__item { display: flex; gap: var(--sp-3); align-items: center; }
.trust__icon { flex: none; width: 36px; height: 36px; border-radius: var(--r-xs); display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); }
.trust__label { font-size: var(--fs-body); line-height: 1.35; font-weight: var(--fw-semibold); color: var(--ink-primary); }
.on-dark .trust__icon { background: rgba(255,255,255,.1); color: var(--green-300); }
.on-dark .trust__label { color: var(--white); }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header__inner { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--header-h); min-width: 0; }
.site-nav { display: none; }
@media (min-width: 1000px) {
  .site-nav { display: flex; align-items: center; gap: var(--sp-1); margin-left: var(--sp-8); }
  .site-nav a {
    display: inline-flex; align-items: center; min-height: var(--tap-min);
    padding: 0 var(--sp-4); border-radius: var(--r-sm);
    font-size: var(--fs-body-lg); font-weight: var(--fw-medium);
    color: var(--ink-secondary); text-decoration: none;
  }
  .site-nav a:hover { background: var(--grey-100); color: var(--navy-700); }
  .site-nav a[aria-current="page"] { color: var(--navy-700); font-weight: var(--fw-semibold); }
}
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); flex: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap-min); height: var(--tap-min);
  border: 1.5px solid var(--border-control); border-radius: var(--r-sm);
  background: var(--white); color: var(--navy-700); cursor: pointer;
}
@media (min-width: 1000px) { .nav-toggle { display: none; } .site-header__actions .btn--apply { display: inline-flex; } }
.hide-mobile { display: none; }
@media (min-width: 1000px) { .hide-mobile { display: inline-flex; } }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(8,35,77,.5); }
.drawer__panel {
  position: absolute; inset: 0 0 0 auto; width: min(360px, 88%);
  background: var(--white); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-2);
  box-shadow: var(--shadow-xl);
  animation: nala-slide-in var(--dur-slow) var(--ease-out);
}
@keyframes nala-slide-in { from { transform: translateX(100%); } to { transform: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 0 var(--sp-3); border-radius: var(--r-sm);
  font-size: 1.0625rem; font-weight: var(--fw-medium); color: var(--ink-primary); text-decoration: none;
}
.drawer__link:hover { background: var(--grey-100); color: var(--ink-primary); }
.drawer__footer { margin-top: auto; display: grid; gap: var(--sp-3); padding-top: var(--sp-5); border-top: 1px solid var(--border-subtle); }

/* Sticky mobile CTA bar */
.cta-bar {
  position: sticky; bottom: 0; z-index: var(--z-sticky);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-3) var(--gutter) calc(var(--sp-3) + env(safe-area-inset-bottom));
}
@media (min-width: 1000px) { .cta-bar { display: none; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-700); color: var(--ink-inverse-soft); padding-block: var(--sp-12) var(--sp-8); }
.site-footer h2, .site-footer h3 { color: var(--white); font-size: var(--fs-body); text-transform: uppercase; letter-spacing: var(--tracking-wide); margin-bottom: var(--sp-4); font-family: var(--font-body); font-weight: var(--fw-semibold); }
.site-footer a { color: var(--ink-inverse-soft); text-decoration: none; font-size: var(--fs-body-lg); }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--sp-8); }
@media (min-width: 700px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; }
.footer-list a {
  display: inline-flex; align-items: center;
  min-height: var(--tap-min); padding-block: var(--sp-1);
}
.footer-legal {
  margin-top: var(--sp-10); padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: var(--fs-small); line-height: 1.6; color: rgba(255,255,255,.62);
}
.footer-legal .placeholder {
  background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.3);
  border-radius: var(--r-xs); padding: 1px 6px; color: rgba(255,255,255,.85);
  font-family: var(--font-mono); font-size: 11px;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.u-mt-0 { margin-top: 0 !important; }
.u-mb-0 { margin-bottom: 0 !important; }
.u-mt-2 { margin-top: var(--sp-2); }
.u-mt-3 { margin-top: var(--sp-3); }
.u-mt-4 { margin-top: var(--sp-4); }
.u-mt-5 { margin-top: var(--sp-5); }
.u-mt-6 { margin-top: var(--sp-6); }
.u-mt-8 { margin-top: var(--sp-8); }
.u-mb-4 { margin-bottom: var(--sp-4); }
.u-mb-6 { margin-bottom: var(--sp-6); }
.u-full { width: 100%; }
