/* The "Open an account" page (section type open_account). Kit tokens only: no colour, radius or shadow is written here (R7). Matches the design at 390 and 1440. */

.nv-sec--open-account { padding-block: clamp(24px, 3vw, 44px); }

.nv-oa {
  --nv-input-h: 50px;
  --nv-input-r: var(--nv-r-input);
  max-width: 1080px;
  margin-inline: auto;
}
.nv-oa.is-live .nv-oa__fallback { display: none; }
.nv-oa__fallback { color: var(--nv-text-2); font-size: 15px; }
.nv-oa__fallback a { color: var(--nv-primary); font-weight: 600; }

/* the five steps */
.nv-oa__steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.nv-oa__step { min-width: 0; }
.nv-oa__stepbtn {
  display: flex; align-items: center; gap: 8px; min-width: 0; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 12px;
  background: transparent; color: var(--nv-text-3); font: inherit; text-align: left;
}
button.nv-oa__stepbtn { cursor: pointer; }
.nv-oa__step.is-current .nv-oa__stepbtn { background: var(--nv-primary-light); color: var(--nv-primary); }
.nv-oa__step.is-done .nv-oa__stepbtn { color: var(--nv-success); }
.nv-oa__stepnum {
  flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 700;
  background: var(--nv-step-idle, var(--nv-surface-alt)); color: var(--nv-text-2);
}
.nv-oa__step.is-current .nv-oa__stepnum { background: var(--nv-primary); color: var(--nv-on-primary); }
.nv-oa__step.is-done .nv-oa__stepnum { background: var(--nv-success); color: var(--nv-surface); }
.nv-oa__steplabel { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .nv-oa__steps { display: flex; gap: 4px; }
  .nv-oa__step { flex: none; }
  .nv-oa__step.is-current { flex: 1 1 auto; }
  .nv-oa__step:not(.is-current) .nv-oa__steplabel { display: none; }
  .nv-oa__step:not(.is-current) .nv-oa__stepbtn { padding-inline: 10px; }   /* 24px badge + 20px = a 44px tap target (R13) */
}

/* the card and the rail */
.nv-oa__layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.nv-oa__card { background: var(--nv-surface); border-radius: var(--nv-r-card); padding: clamp(20px, 3vw, 30px); }
.nv-oa__card--main { flex: 2 1 480px; min-width: 0; }
.nv-oa__rail { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.nv-oa__card--rail { padding: 22px; }
.nv-oa__railtitle { margin: 0 0 12px; font-size: 16px; letter-spacing: -0.02em; color: var(--nv-text); }
.nv-oa__sum { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.nv-oa__sumrow { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.nv-oa__sumrow dt { color: var(--nv-text-3); }
.nv-oa__sumrow dd { margin: 0; font-weight: 600; color: var(--nv-text); text-align: right; overflow-wrap: anywhere; }
.nv-oa__protect { background: var(--nv-success-bg); border-radius: var(--nv-r-card); padding: 22px; }
.nv-oa__protect .nv-oa__railtitle { margin-bottom: 6px; color: var(--nv-success); }
.nv-oa__protect p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--nv-success); }

/* a step */
.nv-oa__head { margin-bottom: 18px; }
.nv-oa__title { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.02em; color: var(--nv-text); }
.nv-oa__title:focus { outline: none; }
.nv-oa__title:focus-visible { outline: 2px solid var(--nv-ring); outline-offset: 4px; border-radius: 6px; }
.nv-oa__sub { margin: 0 0 14px; font-size: 14px; color: var(--nv-text-3); }
.nv-oa__head .nv-oa__sub { margin: 0; }
.nv-oa__ask { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--nv-r-row); background: var(--nv-warning-bg); color: var(--nv-text); font-size: 14px; line-height: 1.5; }

.nv-oa__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.nv-oa__tile {
  --tone: var(--nv-kind-checking);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; border: 2px solid transparent; border-radius: 20px;
  background: var(--nv-canvas); color: var(--nv-text); font: inherit; text-align: left; cursor: pointer;
}
.nv-oa__tile--savings { --tone: var(--nv-kind-savings); }
.nv-oa__tile--credit { --tone: var(--nv-kind-credit); }
.nv-oa__tile--orange { --tone: var(--nv-cat-restaurants); }
.nv-oa__tile[aria-pressed="true"] { border-color: var(--nv-primary); background: var(--nv-primary-light); }
.nv-oa__tileicon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 4px; background: color-mix(in srgb, var(--tone) 14%, transparent); color: var(--tone); }
.nv-oa__tilename { font-size: 15px; font-weight: 600; }
.nv-oa__tilesub { font-size: 13px; line-height: 1.45; color: var(--nv-text-2); }
.nv-oa__tileline { font-size: 13px; font-weight: 600; color: var(--nv-primary); }

.nv-oa__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.nv-oa__cell { min-width: 0; }
.nv-oa__cell--full { grid-column: 1 / -1; }
.nv-oa__agree { display: grid; gap: 12px; margin-top: 18px; }

.nv-oa__meter { margin-top: 10px; }
.nv-oa__bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.nv-oa__bar { height: 4px; border-radius: 4px; background: var(--nv-surface-alt); }
.nv-oa__bar.is-on { background: var(--nv-danger); }
.nv-oa__bar.is-level-2 { background: var(--nv-warning); }
.nv-oa__bar.is-level-3, .nv-oa__bar.is-level-4 { background: var(--nv-success); }
.nv-oa__meterlabel { display: block; margin-top: 6px; font-size: 13px; color: var(--nv-text-2); }
.nv-oa__checks { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; color: var(--nv-text-3); display: grid; gap: 2px; }
.nv-oa__checks li.is-ok { color: var(--nv-success); }

.nv-oa__docs { display: grid; gap: 14px; margin-top: 18px; }
.nv-oa__doc { padding: 14px; border-radius: var(--nv-r-row); background: var(--nv-canvas); }
.nv-oa__doctitle { margin: 0 0 2px; font-size: 14px; }
.nv-oa__docstatus { margin: 0 0 10px; font-size: 13px; color: var(--nv-text-3); }
.nv-oa__docstatus.is-added { color: var(--nv-success); }

.nv-oa__verify { display: grid; gap: 14px; }
.nv-oa__code { padding: 16px; border-radius: var(--nv-r-row); background: var(--nv-canvas); display: grid; gap: 10px; justify-items: start; }
.nv-oa__codetitle { margin: 0; font-size: 15px; }
.nv-oa__ok { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--nv-success); }

.nv-oa__amount { margin-top: 14px; }
.nv-oa__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.nv-oa__error { margin: 16px 0 0; display: flex; align-items: flex-start; gap: 7px; font-size: 14px; color: var(--nv-danger); }
.nv-oa__error[hidden] { display: none; }
.nv-oa__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--nv-border-soft); }
.nv-oa__nav[hidden], .nv-oa__nav > [hidden] { display: none; }
.nv-oa__nav > :only-child { margin-inline-start: auto; }

/* the field only a robot fills */
.nv-oa__trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* the last screen */
.nv-oa__done { text-align: center; padding: 12px 0 6px; animation: nv-rise var(--nv-dur-enter, .3s) var(--nv-ease, ease) both; }
.nv-oa__badge { width: 72px; height: 72px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; }
.nv-oa__badge--ok { background: var(--nv-success-bg); color: var(--nv-success); }
.nv-oa__badge--wait { background: var(--nv-primary-light); color: var(--nv-primary); }
.nv-oa__bigtitle { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.02em; color: var(--nv-text); }
.nv-oa__bigtitle:focus { outline: none; }
.nv-oa__lead { margin: 0 auto 22px; max-width: 46ch; font-size: 15px; line-height: 1.6; color: var(--nv-text-2); }
.nv-oa__lead strong { color: var(--nv-text); }
.nv-oa__accounts { list-style: none; margin: 0 auto 22px; padding: 0; max-width: 46ch; display: grid; gap: 8px; text-align: left; }
.nv-oa__accounts li { padding: 12px 14px; border-radius: var(--nv-r-row); background: var(--nv-canvas); font-size: 14px; }
.nv-oa__muted { color: var(--nv-text-3); }
.nv-oa__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

@media (max-width: 560px) {
  .nv-oa__nav .nv-btn { flex: 1 1 auto; }
  .nv-oa__actions .nv-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .nv-oa__done { animation: none; }
}
