/* ==================================================================
   PayPulse Design System — Light
   ------------------------------------------------------------------
   Crisp porcelain canvas, pure-white surfaces, deep slate type.
   Every colour is a token, so components never hardcode a shade.
   ================================================================== */

:root {
  /* Canvas & surfaces */
  --void: #f8fafc;           /* page canvas   (slate-50)   */
  --panel: #ffffff;          /* cards                      */
  --panel-raised: #ffffff;   /* featured cards             */
  --well: #f1f5f9;           /* inset wells   (slate-100)  */
  --ink: #0f172a;            /* dark console  (slate-900)  */
  --ink-soft: #1e293b;       /* console chrome (slate-800) */

  --hairline: #e2e8f0;       /* borders       (slate-200)  */
  --hairline-soft: #f1f5f9;  /* dividers      (slate-100)  */

  /* Type */
  --stark: #0f172a;          /* headings      (slate-900)  */
  --silver: #475569;         /* body          (slate-600)  */
  --muted: #64748b;          /* secondary     (slate-500)  */
  --faint: #94a3b8;          /* tertiary      (slate-400)  */
  --on-ink: #e2e8f0;         /* text on the dark console   */

  /* MFS brand */
  --bkash: #e2136e;
  --nagad: #ef6c22;
  --upay: #005c9e;
  --rocket: #8c30f5;

  /* Success / live */
  --live: #059669;           /* emerald-600 */
  --live-bright: #10b981;    /* emerald-500, for the pulse */

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .05), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 1px 3px rgba(15, 23, 42, .05), 0 10px 25px -5px rgba(15, 23, 42, .04);
  --shadow-lg: 0 4px 6px rgba(15, 23, 42, .04), 0 24px 48px -12px rgba(15, 23, 42, .12);

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--silver);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }
.tnum { font-variant-numeric: tabular-nums; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap-sm { max-width: 420px; margin: 0 auto; padding: 0 20px; }

/* ---------- Type ---------- */
.h1 {
  font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; letter-spacing: -.033em;
  color: var(--stark); line-height: 1.06; margin: 0;
}
.h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.028em; color: var(--stark); margin: 0; }
.h3 { font-size: 17px; font-weight: 700; letter-spacing: -.012em; color: var(--stark); margin: 0; }
.lead { font-size: 16.5px; line-height: 1.65; color: var(--silver); margin: 0; }
.small { font-size: 13px; color: var(--muted); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--live); }

/* Inline data: TrxIDs, amounts, keys. */
code, .datum {
  font-family: var(--mono); font-weight: 600; color: var(--stark);
  background: var(--well); border: 1px solid var(--hairline);
  padding: 1px 6px; border-radius: 6px; font-size: .92em;
}

/* ---------- Surfaces ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--hairline);
  border-radius: 14px; box-shadow: var(--shadow-sm);
}
.pad { padding: 24px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Feature cards lift slightly on hover. */
.grid-4 > .panel, .grid-2 > .panel { transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease; }
.grid-4 > .panel:hover, .grid-2 > .panel:hover {
  box-shadow: var(--shadow-md); border-color: #cbd5e1; transform: translateY(-1px);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.nav a.link { font-size: 13.5px; font-weight: 500; color: var(--muted); padding: 7px 11px; border-radius: 8px; transition: color .15s, background .15s; }
.nav a.link:hover { color: var(--stark); background: var(--well); }
.nav a.link.active { color: var(--stark); background: var(--well); font-weight: 600; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.02em; color: var(--stark); font-size: 16px; }
.spacer { margin-left: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 10px 17px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, box-shadow .15s, border-color .15s;
}
/* High-contrast primary: near-black on light, the Stripe/Linear convention. */
.btn-primary { background: var(--stark); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #1e293b; }
.btn-ghost { background: #fff; border-color: var(--hairline); color: var(--stark); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--well); border-color: #cbd5e1; }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 7px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Forms ---------- */
label.field { display: block; margin-bottom: 14px; }
label.field > span { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--stark); }
input[type=text], input[type=email], input[type=password], input[type=tel], select, textarea {
  width: 100%; margin-top: 6px; padding: 10px 12px;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 9px;
  color: var(--stark); font-size: 14px; font-family: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--live);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .12);
}
input.mono, select.mono { font-family: var(--mono); letter-spacing: .02em; }
input[readonly] { background: var(--well); color: var(--stark); }
.hint { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.err { display: block; margin-top: 5px; font-size: 12px; color: var(--bkash); }

/* ---------- Alerts ---------- */
.alert { border-radius: 11px; padding: 12px 14px; font-size: 13px; border: 1px solid; margin-bottom: 14px; line-height: 1.6; }
.alert-ok { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.alert-bad { border-color: #fbcfe8; background: #fdf2f8; color: #9d174d; }
.alert-warn { border-color: #fed7aa; background: #fff7ed; color: #9a3412; }
.alert strong { color: inherit; }
.alert a { text-decoration: underline; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; min-width: 640px; }
table.t th {
  text-align: left; padding: 11px 14px; font-size: 11px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  background: #fcfdfe; border-bottom: 1px solid var(--hairline);
}
table.t td { padding: 12px 14px; font-size: 13px; color: var(--silver); border-bottom: 1px solid var(--hairline-soft); }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background .12s; }
table.t tbody tr:hover { background: #f8fafc; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em; border: 1px solid;
}
.badge-ok { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.badge-flat { color: var(--muted); background: var(--well); border-color: var(--hairline); }
.badge-bad { color: #be123c; background: #fff1f2; border-color: #fecdd3; }
.badge-warn { color: #c2410c; background: #fff7ed; border-color: #fed7aa; }

/* ---------- Metrics ---------- */
.metric-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.metric-value { font-family: var(--mono); font-size: 27px; font-weight: 700; color: var(--stark); margin-top: 8px; letter-spacing: -.025em; }
.metric-sub { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

/* ---------- Live pulse ---------- */
@keyframes pp-pulse { 0% { transform: scale(.85); opacity: .75 } 70%, 100% { transform: scale(2.3); opacity: 0 } }
.dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live-bright); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--live-bright); animation: pp-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }

@keyframes pp-sweep { 0% { transform: translateX(-100%) } 100% { transform: translateX(300%) } }
.sweep { position: relative; height: 4px; border-radius: 999px; background: var(--well); overflow: hidden; }
.sweep::after { content: ""; position: absolute; inset: 0; width: 33%; background: linear-gradient(90deg, transparent, var(--live-bright), transparent); animation: pp-sweep 1.6s linear infinite; }

/* ---------- Provider pills ---------- */
.mfs {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--hairline); background: #fff; box-shadow: var(--shadow-sm);
  font-size: 12.5px; font-weight: 600; color: var(--silver);
}
.mfs-dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }

/* ---------- Code consoles (deliberately dark, for syntax contrast) ---------- */
pre.code {
  background: var(--ink); border: 1px solid var(--ink-soft); border-radius: 12px;
  padding: 18px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px;
  line-height: 1.75; color: var(--on-ink); margin: 0; box-shadow: var(--shadow-sm);
}
pre.code code { background: none; border: 0; padding: 0; color: inherit; font-weight: 400; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--hairline); background: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(15,23,42,.045) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(15,23,42,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 35%, transparent 100%);
}
.hero > * { position: relative; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); background: #fff; margin-top: 64px; padding: 44px 0; }

hr.sep { border: 0; border-top: 1px solid var(--hairline); margin: 20px 0; }

/* ==================================================================
   Official MFS brand marks
   ------------------------------------------------------------------
   The supplied artwork is drawn for light backgrounds, so on this
   canvas it needs no chip to stay legible — only a hairline frame to
   separate it from the surface. Nagad keeps a tighter frame because it
   is a full-bleed app tile rather than a wordmark.
   ================================================================== */

.mfs-logo { display: block; width: auto; object-fit: contain; image-rendering: -webkit-optimize-contrast; }

.mfs-chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 10px; padding: 6px 10px;
  border: 1px solid var(--hairline); box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.mfs-chip.is-tile { padding: 4px 5px; }
.mfs-chip.is-sm { padding: 4px 7px; border-radius: 8px; }
.mfs-chip.is-lg { padding: 10px 15px; border-radius: 12px; }

a:hover > .mfs-chip, button:hover > .mfs-chip, .mfs-pick:hover .mfs-chip {
  transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: #cbd5e1;
}

.mfs-cell { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.mfs-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }

.mfs-pick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 16px; border-radius: 12px; cursor: pointer; text-align: left;
  border: 1px solid var(--hairline); background: #fff; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease; width: 100%;
}
.mfs-pick:hover { border-color: #cbd5e1; box-shadow: var(--shadow-md); }
.mfs-pick.selected { border-color: var(--stark); box-shadow: 0 0 0 1px var(--stark), var(--shadow-sm); }
.mfs-pick input { position: absolute; opacity: 0; pointer-events: none; }

/* ---------- Status badge ---------- */
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid #a7f3d0; background: #ecfdf5;
  font-size: 12.5px; font-weight: 600; color: #065f46;
}

/* ---------- Security console ---------- */
.sec-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.sec-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hairline-soft); font-size: 13px; }
.sec-row:last-child { border-bottom: 0; }
.sec-row dt { color: var(--muted); }
.sec-row dd { margin: 0; font-family: var(--mono); font-weight: 600; color: var(--stark); font-variant-numeric: tabular-nums; }
.meter { height: 6px; border-radius: 999px; background: var(--well); overflow: hidden; margin-top: 8px; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--live); }
.log-line {
  font-family: var(--mono); font-size: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--hairline-soft);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; color: var(--silver);
}
.log-line:last-child { border-bottom: 0; }

.gtab { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  .dot::after, .sweep::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==================================================================
   Hero simulator · three stages
   ================================================================== */

.sim { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); align-items: start; }
@media (max-width: 980px) { .sim { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.sim-cap {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.sim-n {
  width: 18px; height: 18px; border-radius: 5px; flex: none;
  background: var(--stark); color: #fff; font-size: 10px; letter-spacing: 0;
  display: flex; align-items: center; justify-content: center;
}
.sim-body { padding: 16px; min-height: 372px; display: flex; flex-direction: column; }

.sim-item { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline-soft); }
.sim-thumb {
  width: 46px; height: 46px; border-radius: 10px; flex: none;
  background: linear-gradient(140deg, #dbe3f0, #eef2f7 55%, #e2e8f0);
  border: 1px solid var(--hairline);
}
.sim-label { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); margin: 14px 0 7px; }

.sim-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sim-tab {
  border: 1px solid var(--hairline); background: #fff; border-radius: 9px; padding: 8px 3px 7px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: inherit;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.sim-tab:hover { background: var(--well); }
.sim-tab i { font-style: normal; font-size: 9.5px; font-weight: 700; color: var(--muted); }
.sim-tab.on { border-color: var(--pick, var(--stark)); box-shadow: inset 0 0 0 1px var(--pick, var(--stark)); }
.sim-tab.on i { color: var(--pick, var(--stark)); }

.sim-wallet {
  margin-top: 12px; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  padding: 9px 11px; border-radius: 9px; background: var(--well); border: 1px solid var(--hairline);
}
.sim-wallet span { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.sim-wallet code { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--stark); font-variant-numeric: tabular-nums; }

.sim-input {
  border: 1px solid var(--hairline); border-radius: 9px; padding: 10px 12px;
  font-size: 14px; letter-spacing: .08em; color: var(--faint); background: #fff; min-height: 40px;
}
.sim-input.filled { color: var(--stark); font-weight: 700; border-color: var(--stark); box-shadow: 0 0 0 3px rgba(15,23,42,.06); }
.sim-go, .sim-again { width: 100%; }
.sim-go { margin-top: auto; }
.sim-again { margin-top: auto; }

/* ---- iOS lockscreen ---- */
.lock {
  position: relative; border-radius: 20px; padding: 20px 14px 16px; min-height: 372px; overflow: hidden;
  background: linear-gradient(165deg, #1e293b, #0f172a 45%, #1e1b4b);
  border: 1px solid #0f172a; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 10px;
}
.lock::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 92px; height: 20px; border-radius: 0 0 12px 12px; background: #000; opacity: .85;
}
.lock.lit { background: linear-gradient(165deg, #243049, #111c33 45%, #241f56); }
.lock-time { text-align: center; color: #fff; padding: 14px 0 10px; }
.lock-hh { font-size: 42px; font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.lock-dd { font-size: 12px; opacity: .72; margin-top: 5px; }

.lock-note {
  border-radius: 14px; padding: 11px 12px;
  background: rgba(255,255,255,.28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.22);
  opacity: 0; transform: translateY(-10px) scale(.97); transition: opacity .32s ease, transform .32s cubic-bezier(.2,.9,.3,1);
}
.lock-note.in { opacity: 1; transform: none; }
.lock-note-h { display: flex; align-items: center; gap: 7px; }
.lock-app { width: 17px; height: 17px; border-radius: 4px; flex: none; background: #34c759; display: flex; align-items: center; justify-content: center; }
.lock-app svg { width: 11px; height: 11px; display: block; }
.lock-app-n { font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.lock-ago { margin-left: auto; font-size: 10.5px; color: rgba(255,255,255,.62); }
.lock-note-b { margin-top: 6px; font-size: 12px; line-height: 1.55; color: #fff; font-weight: 500; word-break: break-word; }

.lock-shortcut {
  display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 11px;
  background: rgba(52,199,89,.26); border: 1px solid rgba(52,199,89,.5);
  font-size: 11.5px; color: #ecfdf5;
  opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease;
}
.lock-shortcut.in { opacity: 1; transform: none; }
.lock-shortcut b { color: #fff; font-weight: 700; }
.lock-sc-ic { font-size: 12px; }
.lock-sc-ok { margin-left: auto; color: #34c759; font-weight: 700; }
.lock-idle { margin-top: auto; text-align: center; font-size: 11.5px; color: rgba(255,255,255,.45); padding-bottom: 6px; }

/* ---- terminal ---- */
.term {
  border-radius: 14px; overflow: hidden; min-height: 372px; display: flex; flex-direction: column;
  background: var(--ink); border: 1px solid #1e293b; box-shadow: var(--shadow-lg);
}
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 13px; border-bottom: 1px solid rgba(255,255,255,.08); }
.term-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.term-file { margin-left: 8px; font-family: var(--mono); font-size: 10.5px; color: #64748b; }
.term-out {
  flex: 1; margin: 0; padding: 14px 13px; font-family: var(--mono); font-size: 11.5px; line-height: 1.75;
  color: #e2e8f0; white-space: pre-wrap; word-break: break-word; overflow-x: auto;
}
.term-out .t-k { color: #7dd3fc; }
.term-out .t-s { color: #86efac; }
.term-out .t-n { color: #fcd34d; }
.term-out .t-b { color: #c4b5fd; }
.term-out .t-p { color: #64748b; }
.term-out .t-dim { color: #64748b; }
.term-out .t-w { color: #fbbf24; }
.term-foot { padding: 11px 13px; border-top: 1px solid rgba(255,255,255,.08); font-family: var(--mono); font-size: 11.5px; }
.term-idle { color: #64748b; }
.term-wait { color: #fbbf24; }
.term-ok { color: #34d399; font-weight: 700; }
.term-ok b { color: #a7f3d0; font-weight: 700; }

/* ==================================================================
   Bento feature grid
   ================================================================== */

.bento { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.bento-wide { grid-column: span 3; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento-wide { grid-column: span 2; } }
@media (max-width: 660px)  { .bento { grid-template-columns: 1fr; } .bento-wide { grid-column: span 1; } }

.bento-card {
  background: var(--panel); border: 1px solid var(--hairline); border-radius: 16px; padding: 22px;
  box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
  display: flex; flex-direction: column;
}
.bento-card:hover { box-shadow: var(--shadow-md); border-color: #cbd5e1; transform: translateY(-2px); }
.bento-tag {
  align-self: flex-start; padding: 4px 10px; border-radius: 99px;
  background: var(--tint, #f1f5f9); color: var(--tagink, #0f172a);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.bento-h { font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: var(--stark); margin-top: 13px; line-height: 1.35; }
.bento-p { font-size: 13px; line-height: 1.7; color: var(--silver); margin-top: 9px; }

.bento-list { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.bento-list li { font-size: 12.5px; line-height: 1.65; color: var(--silver); padding-left: 15px; position: relative; }
.bento-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--live); }
.bento-list b { color: var(--stark); font-weight: 700; }

.bento-chain { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.bento-node {
  padding: 6px 11px; border-radius: 8px; background: var(--well); border: 1px solid var(--hairline);
  font-size: 11.5px; font-weight: 600; color: var(--silver); white-space: nowrap;
}
.bento-node.is-live { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.bento-arrow { color: var(--faint); font-size: 12px; }

.bento-devices { display: flex; flex-direction: column; gap: 7px; margin-top: 15px; }
.bento-dev {
  display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 8px;
  font-size: 11.5px; color: var(--silver); border: 1px solid var(--hairline); background: #fff;
}
.bento-dev b { color: var(--stark); font-weight: 700; }
.bento-dev::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.bento-dev.is-up::before { background: var(--live-bright); }
.bento-dev.is-down::before { background: #f59e0b; }
.bento-dev.is-down { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.bento-dev.is-down b { color: #92400e; }

.bento-code { margin-top: 14px; font-size: 11.5px; line-height: 1.75; }
.bento-logos { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.bento-plat {
  padding: 5px 11px; border-radius: 99px; background: var(--well); border: 1px solid var(--hairline);
  font-size: 11.5px; font-weight: 600; color: var(--silver);
}

/* ==================================================================
   Pricing
   ================================================================== */

.price-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; margin-left: auto; margin-right: auto; }
@media (max-width: 720px) { .price-grid { grid-template-columns: 1fr; max-width: 420px; } }

.price-card {
  position: relative; background: var(--panel); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.price-card.is-featured { border-color: var(--stark); box-shadow: var(--shadow-lg); }
.price-flag {
  position: absolute; top: -10px; left: 24px; padding: 4px 11px; border-radius: 99px;
  background: var(--stark); color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.price-name { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--stark); }
.price-blurb { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.price-amt { display: flex; align-items: baseline; gap: 7px; margin-top: 18px; }
.price-tk { font-size: 38px; font-weight: 800; letter-spacing: -.03em; color: var(--stark); font-variant-numeric: tabular-nums; }
.price-per { font-size: 13px; color: var(--muted); font-weight: 600; }
.price-credits {
  margin-top: 8px; align-self: flex-start; padding: 5px 11px; border-radius: 8px;
  background: var(--well); border: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--silver);
}
.price-cta { width: 100%; margin-top: 20px; justify-content: center; }
.price-list { list-style: none; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hairline-soft); display: flex; flex-direction: column; gap: 10px; }
.price-list li { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.55; color: var(--silver); }
.price-list li.no { color: var(--faint); }
.price-mk { flex: none; width: 15px; font-weight: 800; color: var(--live); }
.price-list li.no .price-mk { color: var(--faint); font-weight: 400; }

/* ==================================================================
   Sandbox playground (/checkout-demo)
   ================================================================== */

.sbx { display: grid; gap: 18px; grid-template-columns: 1.05fr .95fr; align-items: start; }
@media (max-width: 940px) { .sbx { grid-template-columns: 1fr; } }

.sbx-step { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--stark); }
.sbx-step em {
  font-style: normal; width: 21px; height: 21px; border-radius: 6px; flex: none;
  background: var(--stark); color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.sbx-feed { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; max-height: 320px; overflow-y: auto; }
.sbx-ev {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px;
  background: var(--well); border: 1px solid var(--hairline); font-size: 12px; line-height: 1.6; color: var(--silver);
  animation: sbx-in .28s cubic-bezier(.2,.9,.3,1);
}
@keyframes sbx-in { from { opacity: 0; transform: translateY(-6px); } }
.sbx-ev b { color: var(--stark); font-weight: 700; }
.sbx-ev code { font-family: var(--mono); font-size: 11.5px; word-break: break-all; }
.sbx-ev.ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.sbx-ev.ok b { color: #047857; }
.sbx-ev.bad { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.sbx-ev.bad b { color: #b91c1c; }
.sbx-ic { flex: none; font-size: 13px; line-height: 1.5; }
.sbx-empty { font-size: 12.5px; color: var(--faint); text-align: center; padding: 26px 0; }

@media (prefers-reduced-motion: reduce) {
  .lock-note, .lock-shortcut, .bento-card { transition: none; }
  .sbx-ev { animation: none; }
}

/* ==================================================================
   Beginner iPhone wizard (dashboard setup guide)
   ================================================================== */

.iph { margin-top: 26px; }
.iph-head { padding-bottom: 4px; }
.iph-badge {
  display: inline-block; padding: 5px 12px; border-radius: 99px;
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
}

.iph-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 22px; margin-top: 16px; box-shadow: var(--shadow-sm);
}
@media (max-width: 620px) { .iph-card { flex-direction: column; gap: 12px; padding: 18px; } }

.iph-n {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  background: var(--stark); color: #fff;
  font-size: 17px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.iph-body { min-width: 0; flex: 1; }
.iph-h { font-size: 18px; font-weight: 700; color: var(--stark); letter-spacing: -.01em; line-height: 1.45; }
.iph-p { font-size: 13.5px; line-height: 1.85; color: var(--silver); margin-top: 8px; }
.iph-p b, .iph-p strong { color: var(--stark); font-weight: 700; }

.iph-sub { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline-soft); }
.iph-sub:first-of-type { border-top: 0; padding-top: 0; }
.iph-sub-h {
  display: flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 700; color: var(--stark); line-height: 1.5;
}
.iph-dot {
  flex: none; padding: 3px 9px; border-radius: 7px;
  background: var(--well); border: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--live);
}

.iph-ol { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.iph-ol li { font-size: 13.5px; line-height: 1.85; color: var(--silver); }
.iph-ol li::marker { color: var(--faint); font-weight: 700; }
.iph-ol b { color: var(--stark); font-weight: 700; }
.iph-ol code, .iph-chips code, .iph-tbl code {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  padding: 2px 7px; border-radius: 6px;
  background: var(--well); border: 1px solid var(--hairline); color: var(--stark);
  white-space: nowrap;
}
.iph-chips { display: inline-flex; flex-wrap: wrap; gap: 5px; vertical-align: middle; }

.iph-warn {
  display: block; margin-top: 5px; padding: 7px 11px; border-radius: 8px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  font-size: 12.5px; line-height: 1.65;
}

.iph-tbl-wrap { margin-top: 14px; border: 1px solid var(--hairline); border-radius: 11px; overflow: hidden; }
.iph-tbl-cap {
  padding: 9px 13px; background: var(--well); border-bottom: 1px solid var(--hairline);
  font-size: 12px; font-weight: 600; color: var(--silver);
}
.iph-tbl-cap b { color: var(--stark); font-weight: 700; }
.iph-tbl { width: 100%; border-collapse: collapse; }
.iph-tbl th {
  text-align: left; padding: 9px 13px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--faint);
  border-bottom: 1px solid var(--hairline-soft); background: #fcfdfe;
}
.iph-tbl td {
  padding: 10px 13px; font-size: 12.5px; line-height: 1.7; color: var(--silver);
  border-bottom: 1px solid var(--hairline-soft); vertical-align: top;
}
.iph-tbl tr:last-child td { border-bottom: 0; }
.iph-tbl td b { color: var(--stark); font-weight: 700; }
.iph-tbl td em { color: var(--muted); font-style: italic; }

.iph-note {
  margin-top: 13px; padding: 10px 13px; border-radius: 9px;
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af;
  font-size: 12.5px; line-height: 1.75;
}
.iph-note b { font-weight: 700; }

.iph-test { width: 100%; margin-top: 16px; }

.iph-state {
  display: flex; align-items: center; gap: 14px;
  margin-top: 14px; padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--hairline); background: var(--well);
  font-size: 14px; line-height: 1.6; color: var(--silver);
}
.iph-state b { display: block; color: var(--stark); font-weight: 700; font-size: 15px; }
.iph-sm { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.7; }
.iph-sm b { display: inline; font-size: inherit; }

.iph-state.is-wait { background: #fffbeb; border-color: #fde68a; }
.iph-state.is-wait b { color: #92400e; }
.iph-state.is-ok { background: #ecfdf5; border-color: #6ee7b7; }
.iph-state.is-ok b { color: #047857; font-size: 17px; }
.iph-state.is-bad { background: #fef2f2; border-color: #fecaca; }
.iph-state.is-bad b { color: #b91c1c; }

.iph-ring {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid #fde68a; border-top-color: #d97706;
  animation: iph-spin .8s linear infinite;
}
@keyframes iph-spin { to { transform: rotate(360deg); } }
.iph-tick { flex: none; font-size: 28px; line-height: 1; animation: iph-pop .34s cubic-bezier(.2,1.4,.4,1); }
@keyframes iph-pop { from { transform: scale(.5); opacity: 0; } }

/* Credit meter (dashboard) */
.cred { margin-top: 6px; }
.cred-bar { height: 7px; border-radius: 999px; background: var(--well); overflow: hidden; margin-top: 7px; }
.cred-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--live); transition: width .3s ease; }
.cred-bar.is-warn > span { background: #f59e0b; }
.cred-bar.is-over > span { background: #dc2626; }

@media (prefers-reduced-motion: reduce) {
  .iph-ring { animation: none; }
  .iph-tick { animation: none; }
}

/* ==================================================================
   Paywall — /subscribe
   ================================================================== */

.pay-nums { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 16px; }
.pay-num {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border-radius: 11px;
  border: 1px solid var(--hairline); background: #fff;
  border-left: 3px solid var(--brand, var(--hairline));
}
.pay-num img { flex: none; }
.pay-num code {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: 15px; font-weight: 700;
  color: var(--stark); font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis;
}

/* ---- State B · awaiting approval ---- */
.pending-card {
  max-width: 620px; margin: 8px auto 0; text-align: center;
  background: var(--panel); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 40px 32px 32px; box-shadow: var(--shadow-lg);
}
.pending-spin {
  font-size: 40px; line-height: 1; display: inline-block;
  animation: pend-tick 2.4s steps(8) infinite;
}
@keyframes pend-tick { to { transform: rotate(360deg); } }
.pending-h {
  font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.45;
  color: var(--stark); margin-top: 18px;
}
.pending-p { font-size: 14px; line-height: 1.85; color: var(--silver); margin-top: 12px; }
.pending-p strong { color: var(--stark); font-weight: 700; }

.pending-meta {
  display: grid; gap: 0; margin: 22px 0 0; text-align: left;
  border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden;
}
.pending-meta > div {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--hairline-soft);
}
.pending-meta > div:last-child { border-bottom: 0; }
.pending-meta dt { color: var(--muted); }
.pending-meta dd { margin: 0; font-weight: 700; color: var(--stark); text-align: right; }

.pending-foot {
  display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hairline-soft);
  font-size: 12.5px; color: var(--muted);
}
.pending-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; flex: none;
  animation: pend-pulse 1.6s ease-in-out infinite;
}
@keyframes pend-pulse { 50% { opacity: .25; } }
.pending-out { margin-left: 6px; color: var(--muted); text-decoration: underline; }
.pending-out:hover { color: var(--stark); }

@media (prefers-reduced-motion: reduce) {
  .pending-spin, .pending-dot { animation: none; }
}
