/* =============================================================================
   QuickCapture — Hybrid Scan · "Intelligent Console" design system
   Verification-grade KYC surface (Persona / Stripe-Identity tier).
   Pure CSS custom properties; no framework. Light ships by default.
   ============================================================================= */

/* Inter, vendored locally (one variable file covers all weights) — no CDN, fully offline. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/inter.woff2') format('woff2');
}

:root {
  /* ---- color: slate carries ~90%; indigo = action/active ONLY; green/amber/red = status ONLY ---- */
  --bg: #FCFCFD;
  --surface: #FFFFFF;
  --surface-alt: #F8FAFC;
  --sunken: #F1F5F9;

  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-soft: #EEF2FF;
  --primary-ring: rgba(79, 70, 229, .18);
  --accent: #6366F1;

  --text: #0F172A;
  --body: #334155;
  --muted: #64748B;
  --faint: #94A3B8;

  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --hairline: #EEF2F6;

  --success: #16A34A;  --success-text: #15803D;  --success-bg: #ECFDF5;
  --warn: #D97706;     --warn-text: #B45309;     --warn-bg: #FFFBEB;
  --danger: #DC2626;   --danger-text: #B91C1C;   --danger-bg: #FEF2F2;

  /* ---- type ---- */
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Roboto Mono', monospace;

  /* ---- radius ---- */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-full: 999px;

  /* ---- elevation: hairline first, then a soft slate-tinted lift ---- */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 2px 4px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .08);
  --shadow-active: 0 8px 24px rgba(79, 70, 229, .12);
  --shadow-result: 0 12px 32px rgba(15, 23, 42, .12);
  --qr-halo: 0 0 0 1px var(--border), 0 8px 24px rgba(15, 23, 42, .08);

  /* ---- motion ---- */
  --ease-std: cubic-bezier(.2, 0, 0, 1);
  --ease-ent: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 120ms; --dur: 200ms; --dur-emph: 320ms;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-feature-settings: 'cv01', 'cv02', 'cv11', 'ss01', 'tnum';
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--text); font-weight: 600; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 28px; line-height: 36px; letter-spacing: -.02em; }
h2 { font-size: 18px; line-height: 26px; }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; line-height: 16px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--muted); }
.label { font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase;
  font-weight: 600; color: var(--muted); }
.caption { font-size: 13px; line-height: 18px; color: var(--muted); }

/* ---- layout ---------------------------------------------------------------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 32px 28px 56px; }

/* ---- trust bar + trust line pill ------------------------------------------ */
.trustbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(252, 252, 253, .82);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.trustbar__inner { max-width: 1160px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 16px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text);
  font-size: 15px; }
.wordmark__glyph { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: -.02em; }
.wordmark__sub { color: var(--muted); font-weight: 450; }
.trustline {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-full);
  background: var(--sunken); border: 1px solid var(--border);
  font-size: 13px; color: var(--body);
}
.trustline svg { color: var(--success); flex: none; }
.trustline b { color: var(--text); font-weight: 600; }
@media (max-width: 720px) { .trustline { display: none; } }

/* ---- hero (landing) -------------------------------------------------------- */
.hero { position: relative; padding: 64px 0 40px; text-align: center; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% 0 auto 0; height: 520px; z-index: -1;
  background: radial-gradient(60% 80% at 50% 0%, var(--primary-soft) 0%, rgba(238,242,255,0) 70%);
}
.hero h1 { font-size: 32px; line-height: 40px; letter-spacing: -.02em; margin: 14px auto 0;
  max-width: 18ch; }
.hero .lede { margin: 16px auto 0; max-width: 56ch; font-size: 16px; color: var(--body); }
.hero__cta { margin-top: 28px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-xs); font-size: 13px; color: var(--body); }
.badge svg { color: var(--primary); }

/* ---- generic card ---------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs); padding: 24px; }
.card + .card { margin-top: 24px; }
.section { margin-top: 24px; }
.card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card__head h2 { flex: 1; }

/* ---- guided stepper -------------------------------------------------------- */
.stepper { display: flex; align-items: center; gap: 0; margin: 4px 0 24px; }
.step { display: flex; align-items: center; gap: 10px; }
.step__disc { width: 22px; height: 22px; border-radius: var(--r-full); flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  border: 2px solid var(--border-strong); color: var(--faint); background: var(--surface);
  transition: all var(--dur) var(--ease-std); }
.step__label { font-size: 14px; font-weight: 500; color: var(--faint); }
.step.is-current .step__disc { border-color: var(--primary); color: var(--primary); }
.step.is-current .step__label { color: var(--text); }
.step.is-done .step__disc { background: var(--primary); border-color: var(--primary); color: #fff; }
.step.is-done .step__label { color: var(--body); }
.step__line { flex: 1; height: 2px; min-width: 28px; margin: 0 14px; background: var(--border);
  border-radius: 2px; overflow: hidden; }
.step__line > i { display: block; height: 100%; width: 0; background: var(--primary);
  transition: width var(--dur-emph) var(--ease-std); }
.step.is-done + .step__line > i, .step__line.is-filled > i { width: 100%; }

/* ---- buttons --------------------------------------------------------------- */
.btn { appearance: none; font: inherit; font-weight: 600; cursor: pointer;
  border-radius: var(--r-md); padding: 0 18px; height: 44px; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  transition: background var(--dur-fast), transform var(--dur-fast), filter var(--dur-fast); }
.btn:active { transform: translateY(1px); filter: brightness(.97); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--primary-ring); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--body); }
.btn--ghost:hover { background: var(--surface-alt); }
.btn--sm { height: 36px; padding: 0 12px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }

/* ---- inputs ---------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12px; letter-spacing: .04em; font-weight: 600; color: var(--muted);
  text-transform: uppercase; }
.input { font: inherit; color: var(--text); background: var(--surface-alt);
  border: 1px solid var(--border-strong); border-radius: var(--r-md); height: 44px;
  padding: 0 12px; transition: border-color var(--dur), box-shadow var(--dur), background var(--dur); }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring);
  background: var(--surface); }
.input.is-autofilled { animation: autofill-flash 900ms var(--ease-std); }
@keyframes autofill-flash { 0% { background: var(--success-bg); } 100% { background: var(--surface-alt); } }
.autofill-tag { font-size: 11px; color: var(--success-text); display: inline-flex; gap: 4px;
  align-items: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.form-well { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 20px; }

/* ---- connection card ------------------------------------------------------- */
.conn { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.conn .field { flex: 1; min-width: 240px; }
.conn__status { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center;
  gap: 8px; padding: 8px 0; }
.conn__status.ok { color: var(--success-text); }
.conn__status.err { color: var(--danger-text); }

/* ---- status pills ---------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: var(--r-full); font-size: 12px; font-weight: 600; }
.pill .dot { width: 7px; height: 7px; border-radius: var(--r-full); flex: none; }
.pill--wait { background: var(--sunken); color: var(--muted); }
.pill--wait .dot { background: var(--muted); }
.pill--active { background: var(--primary-soft); color: var(--primary); }
.pill--active .dot { background: var(--primary); position: relative; }
.pill--active .dot::after { content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: var(--primary); animation: pulse-ring 1.6s var(--ease-std) infinite; }
.pill--done { background: var(--success-bg); color: var(--success-text); }
.pill--done .dot { background: var(--success); }
.pill--warn { background: var(--warn-bg); color: var(--warn-text); }
.pill--warn .dot { background: var(--warn); }
.pill--danger { background: var(--danger-bg); color: var(--danger-text); }
.pill--danger .dot { background: var(--danger); }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.4); opacity: 0; } }

/* ---- capture tiles grid ---------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .tiles { grid-template-columns: 1fr; } }

.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs); padding: 20px; display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow var(--dur), border-color var(--dur); }
.tile.is-active { border-color: transparent; outline: 1.5px solid var(--primary); outline-offset: -1.5px;
  background: linear-gradient(180deg, var(--primary-soft), var(--surface) 64px); box-shadow: var(--shadow-active); }
.tile__head { display: flex; align-items: center; gap: 10px; }
.tile__icon { width: 36px; height: 36px; border-radius: var(--r-md); flex: none; display: grid;
  place-items: center; background: var(--surface-alt); color: var(--primary); border: 1px solid var(--border); }
.tile__titles { flex: 1; min-width: 0; }
.tile__title { font-size: 15px; font-weight: 600; color: var(--text); }
.tile__meta { font-size: 12px; color: var(--muted); }
.tile__body { min-height: 172px; display: flex; align-items: center; justify-content: center; }
.tile__foot { display: flex; gap: 8px; }
.tile__foot .btn { flex: 1; }
.tile__placeholder { text-align: center; color: var(--faint); font-size: 14px; padding: 8px; }
.tile__placeholder svg { color: var(--border-strong); display: block; margin: 0 auto 8px; }

/* ---- living QR panel ------------------------------------------------------- */
.qrpanel { width: 100%; min-width: 0; max-width: 100%; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--qr-halo);
  padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qrstage { position: relative; width: 224px; height: 224px; border-radius: var(--r-md); overflow: hidden;
  background: #fff; padding: 16px; }
.qrstage img, .qrstage canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated;
  transition: opacity var(--dur-emph) var(--ease-std), filter var(--dur-emph) var(--ease-std); }
.qrstage::before, .qrstage::after { content: ''; position: absolute; width: 22px; height: 22px;
  border: 2px solid var(--primary); pointer-events: none; }
.qrstage::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.qrstage::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.qrstage > .corner-tr, .qrstage > .corner-bl { position: absolute; width: 22px; height: 22px;
  border: 2px solid var(--primary); pointer-events: none; }
.qrstage > .corner-tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.qrstage > .corner-bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.qrsweep { position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: qr-sweep 2.2s ease-in-out infinite; }
@keyframes qr-sweep { 0% { transform: translateY(0); } 50% { transform: translateY(222px); } 100% { transform: translateY(0); } }

.qrstage .connected { position: absolute; inset: 0; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; background: rgba(255, 255, 255, .72);
  color: var(--success-text); font-weight: 600; }
.qrpanel.is-connected .qrstage img, .qrpanel.is-connected .qrstage canvas { opacity: .28; filter: blur(1px); }
.qrpanel.is-connected .qrsweep { display: none; }
.qrpanel.is-connected .connected { display: flex; animation: pop-in var(--dur-emph) var(--ease-ent); }
.checkdisc { width: 40px; height: 40px; border-radius: var(--r-full); background: var(--success);
  color: #fff; display: grid; place-items: center; }
@keyframes pop-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }

.qrmeta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.countdown { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.countdown.is-warn { color: var(--warn-text); }
.countdown.is-danger { color: var(--danger-text); }
.shortcode { font-family: var(--font-mono); letter-spacing: .08em; color: var(--body);
  background: var(--sunken); padding: 2px 8px; border-radius: var(--r-sm); }

/* ---- live status timeline -------------------------------------------------- */
.timeline { display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: start;
  position: relative; padding-bottom: 18px; animation: row-in 220ms var(--ease-std); }
.tl-row:last-child { padding-bottom: 0; }
.tl-node { width: 18px; height: 18px; border-radius: var(--r-full); margin-top: 2px; flex: none;
  border: 2px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; }
.tl-row::before { content: ''; position: absolute; left: 8px; top: 20px; bottom: -2px; width: 2px;
  background: var(--border); }
.tl-row:last-child::before { display: none; }
.tl-row.is-done .tl-node { background: var(--success); border-color: var(--success); color: #fff; }
.tl-row.is-done::before { background: var(--primary); }
.tl-row.is-current .tl-node { border-color: var(--primary); background: var(--primary); position: relative; }
.tl-row.is-current .tl-node::after { content: ''; position: absolute; inset: -2px; border-radius: inherit;
  background: var(--primary); animation: pulse-ring 1.6s var(--ease-std) infinite; z-index: -1; }
.tl-row.is-fail .tl-node { background: var(--danger); border-color: var(--danger); color: #fff; }
.tl-label { font-size: 14px; font-weight: 500; color: var(--text); }
.tl-sub { font-size: 13px; color: var(--muted); }
.tl-time { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px;
  color: var(--muted); }
.tl-progress { height: 4px; border-radius: 2px; background: var(--sunken); margin-top: 8px; overflow: hidden; }
.tl-progress > i { display: block; height: 100%; background: var(--primary); width: 0;
  transition: width var(--dur) var(--ease-std); }
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- skeleton shimmer ------------------------------------------------------ */
.skeleton { width: 100%; height: 156px; border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--sunken) 25%, var(--surface-alt) 37%, var(--sunken) 63%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---- masked-ID result card ------------------------------------------------- */
.idcard { position: relative; width: 100%; aspect-ratio: 1.58 / 1; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-result);
  overflow: hidden; animation: reveal-card var(--dur-emph) var(--ease-ent); }
.idcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idcard__chip { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center;
  gap: 5px; padding: 5px 10px; border-radius: var(--r-full); background: var(--success-bg);
  color: var(--success-text); font-size: 12px; font-weight: 600; box-shadow: var(--shadow-xs); }
.idcard__sweep { position: absolute; inset: 0; pointer-events: none; }
.idcard__sweep::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  backdrop-filter: blur(2px); animation: mask-sweep 700ms var(--ease-std) 1 both; }
@keyframes mask-sweep { from { left: -40%; } to { left: 120%; } }
@keyframes reveal-card { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.idcaption { margin-top: 8px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* ---- confidence ledger ----------------------------------------------------- */
.ledger { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden;
  background: var(--surface); }
.ledger__row { display: grid; grid-template-columns: 128px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid var(--hairline); position: relative;
  animation: row-in 200ms var(--ease-ent) both; }
.ledger__row:last-child { border-bottom: 0; }
.ledger__row.is-review { border-left: 2px solid var(--warn); }
.ledger__row.is-low { border-left: 2px solid var(--danger); }
.ledger__k { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
  color: var(--muted); }
.ledger__v { font-size: 15px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.ledger__v .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.copybtn { appearance: none; border: 0; background: transparent; color: var(--faint); cursor: pointer;
  padding: 2px; border-radius: var(--r-sm); display: inline-grid; place-items: center;
  opacity: 0; transition: opacity var(--dur), color var(--dur); }
.ledger__row:hover .copybtn { opacity: 1; }
.copybtn:hover { color: var(--primary); }
.copybtn.copied { color: var(--success); opacity: 1; }
.conf { display: inline-flex; align-items: center; gap: 8px; }
.conf__word { font-size: 12px; font-weight: 600; }
.conf__pct { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); }
.conf__meter { display: inline-flex; gap: 2px; }
.conf__seg { width: 14px; height: 4px; border-radius: 2px; background: var(--border); }
.conf--high .conf__word { color: var(--success-text); }
.conf--high .conf__seg { background: var(--success); }
.conf--review .conf__word { color: var(--warn-text); }
.conf--review .conf__seg:nth-child(-n+2) { background: var(--warn); }
.conf--review .conf__seg:nth-child(3) { background: var(--border); }
.conf--low .conf__word { color: var(--danger-text); }
.conf--low .conf__seg:first-child { background: var(--danger); }
.conf--low .conf__seg:nth-child(n+2) { background: var(--border); }

/* ---- result thumb (non-aadhaar) ------------------------------------------- */
.thumb { width: 100%; border-radius: var(--r-md); border: 1px solid var(--border); overflow: hidden;
  animation: reveal-card var(--dur-emph) var(--ease-ent); }
.thumb img { width: 100%; display: block; }

/* ---- two-column flow shell ------------------------------------------------- */
.flow { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.flow > * { min-width: 0; }   /* let grid columns shrink so long content (the deep-link) can't stretch the page */
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } }

/* ---- payload preview ------------------------------------------------------- */
.payload { background: var(--text); color: #E2E8F0; border-radius: var(--r-md); padding: 16px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; white-space: pre-wrap;
  overflow-x: auto; }

/* ---- footer ---------------------------------------------------------------- */
.foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px; }

.hide { display: none !important; }

/* ---- top tabs (Quick Scan / KYC Onboarding) ------------------------------- */
.tabbar { display: flex; justify-content: center; margin: 4px 0 28px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--sunken);
  border: 1px solid var(--border); border-radius: var(--r-full); }
.tab-link { padding: 9px 20px; border-radius: var(--r-full); font-size: 14px; font-weight: 600;
  color: var(--muted); text-decoration: none; transition: background var(--dur), color var(--dur); white-space: nowrap; }
.tab-link:hover { color: var(--text); text-decoration: none; }
.tab-link.is-active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-xs); }

/* ---- numbered instruction steps ------------------------------------------- */
.steps { display: flex; flex-direction: column; gap: 16px; }
.step-item { display: flex; gap: 12px; align-items: flex-start; }
.step-item .num { width: 26px; height: 26px; border-radius: var(--r-full); flex: none; display: grid;
  place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 13px; }
.step-item .body { font-size: 14px; color: var(--body); line-height: 1.55; }
.step-item .body b { color: var(--text); font-weight: 600; }
.playbtn { display: inline-flex; align-items: center; gap: 9px; margin-top: 10px; padding: 11px 16px;
  background: var(--text); color: #fff; border-radius: var(--r-md); font-weight: 600; font-size: 14px; text-decoration: none; }
.playbtn:hover { text-decoration: none; filter: brightness(1.15); }
.playbtn svg { color: #fff; }

/* ---- profile chooser chips ------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--body); font-size: 14px;
  font-weight: 500; cursor: pointer; transition: all var(--dur-fast); }
.chip svg { color: var(--muted); }
.chip:hover { border-color: var(--primary); }
.chip.is-active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.chip.is-active svg { color: var(--primary); }

/* ---- deep-link display (copyable) ----------------------------------------- */
.linkrow { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 100%; overflow: hidden; margin-top: 4px;
  background: var(--sunken); border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px 10px; }
.linkrow code { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
