/* Base das demos: padrão de app pago (iOS). Cada demo tem esqueleto próprio e define as próprias cores;
   aqui ficam só a moldura do celular, a barra de status, a barra de abas de vidro e os controles comuns. */
:root {
  --bg: #f2f2f7; --surface: #ffffff; --sunk: #e9e9ef; --fg: #0b0c0f; --muted: #6b6f7a; --line: rgba(60,60,67,.14);
  --ok: #1a8f5a; --warn: #b36b00; --bad: #c93a2b;
  --ac: #1f5eff; --ac-soft: rgba(31,94,255,.1); --on-ac: #ffffff;
  --font: "Geist", Inter, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Source Serif 4", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 18px;
  --ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: #e4e5ea; color: var(--fg); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
img { display: block; max-width: 100%; }

/* moldura: no computador vira um iPhone, no celular ocupa a tela inteira */
.stage { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 28px 16px;
  background: radial-gradient(1200px 600px at 50% -10%, #ffffff 0%, #e4e5ea 60%); }
.phone { width: 393px; max-width: 100%; height: min(852px, calc(100vh - 56px)); background: var(--bg); border-radius: 54px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 0 0 11px #121316, 0 0 0 12px #2a2c31, 0 40px 90px -20px rgba(10,12,20,.45); }
.phone::before { content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 122px; height: 35px; border-radius: 20px; background: #000; z-index: 50; }
.status { height: 54px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 40px; font-weight: 600; font-size: 15.5px; position: relative; z-index: 40; }
.status .ic { display: flex; gap: 6px; align-items: center; }
.status svg { fill: currentColor; display: block; }
@media (max-width: 520px) {
  .stage { padding: 0; align-items: stretch; background: var(--bg); }
  .phone { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
  .phone::before, .status { display: none; }
  .phone { padding-top: env(safe-area-inset-top, 0px); }
}
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.pad { padding: 0 20px; }

/* navegação de volta para a lista */
.nav { display: flex; align-items: center; height: 44px; padding: 0 12px; flex: none; position: relative; z-index: 30; }
.back { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; color: var(--ac); font-size: 17px; min-height: 44px; padding: 0 6px; }
.back svg { width: 12px; height: 20px; }
.nav .sp { flex: 1; }
.eyebrow { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.large { font-size: 34px; line-height: 1.08; font-weight: 700; letter-spacing: -.025em; margin: 2px 0 6px; }
.lede { color: var(--muted); margin: 0; font-size: 15px; }
.section-t { font-size: 20px; font-weight: 700; letter-spacing: -.015em; margin: 26px 0 10px; display: flex; align-items: baseline; justify-content: space-between; }
.section-t small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* barra de abas de vidro */
.tabbar { flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 8px 10px max(22px, env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: .5px solid var(--line); position: relative; z-index: 20; }
.tabbar button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--muted); min-height: 44px; cursor: pointer; }
.tabbar svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button[aria-current="page"] { color: var(--ac); }

/* controles */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 14px; border: 0;
  background: var(--ac); color: var(--on-ac); font-weight: 600; font-size: 16px; cursor: pointer; transition: transform .2s var(--ease), opacity .2s var(--ease), background .2s var(--ease); }
.btn:active { transform: scale(.975); }
.btn.soft { background: var(--ac-soft); color: var(--ac); }
.btn.quiet { background: var(--sunk); color: var(--fg); }
.btn[disabled] { opacity: .4; cursor: default; }
.seg { display: flex; background: rgba(118,118,128,.12); border-radius: 10px; padding: 2px; gap: 2px; }
.seg button { flex: 1; min-height: 32px; border: 0; background: transparent; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--fg); cursor: pointer; transition: background .2s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--surface); font-weight: 600; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
.group { background: var(--surface); border-radius: 14px; overflow: hidden; }
.cell { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 48px; position: relative; }
.cell + .cell::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--line); }
.cell .t { flex: 1; min-width: 0; }
.cell .t b { display: block; font-weight: 500; font-size: 15.5px; }
.cell .t small { display: block; color: var(--muted); font-size: 13px; }
.chev { width: 8px; height: 13px; color: #c4c4c9; flex: none; }

/* aviso rápido */
.toast { position: absolute; left: 50%; top: 62px; transform: translate(-50%, -16px); background: rgba(20,21,24,.92); color: #fff; padding: 11px 16px; border-radius: 16px;
  font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); white-space: nowrap; z-index: 60;
  backdrop-filter: blur(12px); display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34c759; }

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