/* ============================================================
   Post-checkout passport flow — components
   Plain CSS. No build step. Load after tokens.css.
   ============================================================ */

/* --- reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--brand-primary); }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Headings get tabindex="-1" so a screen change can move focus to them.
   They are not keyboard-reachable, so the ring would only ever read as a
   stray box drawn around the title. */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- layout ------------------------------------------------ */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%;
  max-width: var(--card-w);
  margin: 0 auto;
  padding: 0 16px;
}

.stack   { display: grid; gap: 16px; }
.stack-s { display: grid; gap: 10px; }
.stack-l { display: grid; gap: 24px; }

/* --- site header ------------------------------------------- */
.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand__mark { display: flex; align-items: center; flex: none; }
.brand__logo {
  height: 38px;
  width: auto;
  max-width: none;
  display: block;
}
.brand__sub {
  font-size: 13.5px;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* --- generic card ------------------------------------------ */
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
}
.card--flow { padding: 32px var(--card-pad) 36px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 22px 24px;
  box-shadow: var(--sh-panel);
}
.panel__title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- type -------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--brand-primary-soft);
  color: var(--brand-primary-ink);
  font-size: 12.5px;
  font-weight: 600;
}
.title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.14;
}
.title--md { font-size: 26px; }
.title--sm { font-size: 25px; }
.subtitle {
  font-size: 15px;
  color: var(--ink-muted);
}
.hint  { font-size: 13px; color: var(--ink-muted); }
.micro { font-size: 12px; color: var(--ink-faint); }

/* --- notice ------------------------------------------------ */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
}
.notice__icon { color: var(--warn-ink); flex: none; margin-top: 1px; }
.notice__title { font-size: 14.5px; font-weight: 600; color: var(--warn-ink); }
.notice__body  { font-size: 13px; color: #9a7420; }

/* --- big option button ------------------------------------- */
.option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--r-ctl);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.option:hover { border-color: var(--line-strong); }
.option:active { transform: translateY(1px); }

.option__icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}
.option__body { min-width: 0; flex: 1; }
.option__title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.option__sub   { font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.option__chev  { flex: none; color: var(--ink-faint); }

.option--primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  box-shadow: var(--sh-primary);
}
.option--primary:hover { background: var(--brand-primary-hover); border-color: var(--brand-primary-hover); }
.option--primary .option__icon { background: rgba(255,255,255,.18); color: #fff; }
.option--primary .option__sub  { color: rgba(255,255,255,.82); }
.option--primary .option__chev { color: rgba(255,255,255,.9); }

/* --- buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 22px;
  border-radius: var(--r-ctl);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;          /* anchors styled as buttons */
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.btn--block { width: 100%; }
/* Actions are navy. Red is reserved for alerts and the wordmark star. */
.btn--primary { background: var(--brand-cta); color: #fff; box-shadow: var(--sh-cta); }
.btn--primary:hover { background: var(--brand-cta-hover); }
.btn--success { background: var(--brand-success); color: #fff; box-shadow: var(--sh-success); }
.btn--success:hover { background: var(--brand-success-hover); }
.btn--ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-sunk); }
.btn--soft { background: var(--brand-primary-soft); color: var(--brand-primary-ink); }
.btn--soft:hover { background: var(--surface-soft); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* --- example photos ---------------------------------------- */
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.example { min-width: 0; }
.example__frame {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid var(--ok-line);
  aspect-ratio: 3 / 4;
  background: var(--surface-sunk);
}
.example--bad .example__frame { border-color: var(--danger-line); }
.example__frame img { width: 100%; height: 100%; object-fit: cover; }
.example__tag {
  position: absolute;
  top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 700; color: #fff;
  background: var(--ok);
}
.example--bad .example__tag { background: var(--danger); }
.example__caption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
  text-align: center;
}
.example__caption span { display: block; }

/* --- requirement chips ------------------------------------- */
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--r-xs);
  background: var(--surface-soft);
  font-size: 13.5px;
  color: var(--ink-soft);
}
.chip svg { flex: none; color: var(--brand-primary); }
.chip--outline {
  background: var(--surface);
  border: 1px solid var(--line);
}
.chip--outline svg { color: var(--ink-faint); }

/* --- accordion (video / faq) ------------------------------- */
.accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.accordion__play {
  flex: none;
  width: 38px; height: 38px;
  border-radius: var(--r-xs);
  background: var(--brand-primary);
  color: #fff;
  display: grid; place-items: center;
}
.accordion__label { flex: 1; min-width: 0; }
.accordion__caret { transition: transform var(--dur) var(--ease); color: var(--ink-faint); }
.accordion.is-open .accordion__caret { transform: rotate(180deg); }
.accordion__body { display: none; padding-top: 16px; }
.accordion.is-open .accordion__body { display: block; }
.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-sm);
  background: #0b0b0c;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}

/* --- footer note ------------------------------------------- */
.footnote {
  border-top: 1px solid var(--line-soft);
  padding: 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

/* --- order confirmation (index) ---------------------------- */
.confirm { padding: 56px 0 40px; text-align: center; }
.confirm__title { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.confirm__sub { margin-top: 8px; font-size: 15px; color: var(--ink-muted); }

.order-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  text-align: left;
}
.order-row__icon { color: var(--ok); flex: none; }
.order-row__label { font-size: 14.5px; font-weight: 700; }
.order-row__id { font-size: 12.5px; color: var(--ink-muted); }
.order-row__id code { font-family: var(--font-mono); color: var(--ink); }

.next-step {
  position: relative;
  padding: 22px 24px;
  text-align: left;
  border: 1px solid #d6dfe9;
  overflow: hidden;
}
.next-step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #93b8f8, var(--brand-primary), #93b8f8);
}
.next-step__inner { display: flex; gap: 18px; align-items: flex-start; }
.next-step__icon {
  flex: none; width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  display: grid; place-items: center;
}
.next-step__flag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-primary);
}
.next-step__flag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-primary);
}
.next-step__title { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.next-step__sub { font-size: 14px; color: var(--ink-muted); margin-top: 4px; }

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.site-footer {
  margin-top: auto;
  padding: 22px;
  border-radius: var(--r-panel);
  background: var(--surface);
  text-align: center;
}
.site-footer__links {
  display: flex; justify-content: center; gap: 0; flex-wrap: wrap;
  font-size: 13.5px; font-weight: 600;
}
.site-footer__links a { color: var(--ink); text-decoration: none; padding: 0 12px; }
.site-footer__links a + a { border-left: 1px solid var(--line); }
.site-footer__links a:hover { color: var(--brand-primary); }
.site-footer__legal { margin-top: 8px; font-size: 12.5px; color: var(--ink-faint); }

/* --- modal ------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 60;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.modal-backdrop.is-open { opacity: 1; }

.modal {
  width: 100%;
  max-width: 408px;
  background: var(--surface);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-modal);
  overflow: hidden;
  transform: translateY(10px) scale(.98);
  transition: transform var(--dur) var(--ease);
}
.modal-backdrop.is-open .modal { transform: none; }

.modal__head {
  background: var(--brand-primary);
  color: #fff;
  padding: 18px 20px 20px;
}
.modal__title { font-size: 16px; font-weight: 700; }
.modal__sub { font-size: 12.5px; color: rgba(255,255,255,.85); margin-top: 3px; }
.modal__body { padding: 14px; display: grid; gap: 8px; }
.modal__foot {
  padding: 0 14px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.confirm-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  font-size: 14px;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.confirm-item:hover { border-color: var(--line-strong); }
.confirm-item__box {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: grid; place-items: center;
  color: transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.confirm-item.is-checked { background: var(--ok-bg); border-color: var(--ok-line); }
.confirm-item.is-checked .confirm-item__box {
  background: var(--brand-success);
  border-color: var(--brand-success);
  color: #fff;
}
.confirm-item a { font-weight: 600; }

.meter {
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
  margin: 6px 14px 0;
}
.meter__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--brand-success);
  transition: width .3s var(--ease);
}

/* --- toast ------------------------------------------------- */
.toast-host {
  position: fixed;
  right: 20px; bottom: 20px;
  display: grid;
  gap: 10px;
  z-index: 80;
}
.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 260px;
  padding: 15px 18px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-modal);
  font-size: 14px;
  font-weight: 600;
  animation: toast-in .25s var(--ease);
}
.toast--error svg { color: var(--danger); }
.toast--ok svg { color: var(--ok); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* --- responsive -------------------------------------------- */
@media (max-width: 720px) {
  .shell { padding: 0 12px; }
  .title { font-size: 25px; }
  .confirm { padding: 32px 0 24px; }
  .confirm__title { font-size: 26px; }
  .card--flow { padding: 24px var(--card-pad) 28px; }
  .examples { gap: 12px; }
  .chips { grid-template-columns: 1fr; }
  .modal__foot { grid-template-columns: 1fr; }
  .toast-host { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; }
}

/* --- span-based label/description pairs need their own line --- */
.notice__title, .notice__body,
.option__title, .option__sub,
.order-row__label, .order-row__id,
.timeline__title, .timeline__sub,
.sidebar__title, .sidebar__sub,
.brand__mark, .brand__sub,
.next-step__flag { display: block; }
