/* =========================================================================
   Pitstop Pet Tag — design system
   Mobile-first, claro/escuro automático, sem estilos inline (CSP estrita).
   Troque a marca mudando apenas os tokens em :root.
   ========================================================================= */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --font: "Plus Jakarta Sans", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bg: #f6f3ee;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #141a2b;
  --ink-2: #3a4257;
  --muted: #667085;
  --line: #e8e2d8;
  --line-strong: #d6cfc2;

  --brand: #ff5a1f;
  --brand-2: #ff8a3d;
  --brand-ink: #ffffff;
  --brand-soft: #fff0e8;
  --brand-line: #ffd2bd;

  --ok: #0f9d58;
  --ok-soft: #e6f6ed;
  --warn: #b7791f;
  --warn-soft: #fff4dc;
  --danger: #dc3a3f;
  --danger-soft: #fdecec;
  --info-soft: #eaf0ff;
  --info: #3358d4;
  --wa: #1fb655;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-1: 0 1px 2px rgb(20 26 43 / .06), 0 2px 8px rgb(20 26 43 / .05);
  --shadow-2: 0 10px 30px -8px rgb(20 26 43 / .18), 0 2px 6px rgb(20 26 43 / .06);
  --shadow-brand: 0 10px 24px -8px rgb(255 90 31 / .55);
  --ring: 0 0 0 3px rgb(255 90 31 / .28);

  --nav-h: 68px;
  --top-h: 60px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0e1a;
    --surface: #131a2c;
    --surface-2: #0f1526;
    --ink: #f1f3f9;
    --ink-2: #c6cbdb;
    --muted: #8f99b0;
    --line: #232c45;
    --line-strong: #2f3a59;
    --brand: #ff6a33;
    --brand-soft: #2b1a13;
    --brand-line: #5a2f1d;
    --ok-soft: #0f2a1d;
    --warn-soft: #2d2410;
    --danger-soft: #341618;
    --info-soft: #141f44;
    --info: #8fa8ff;
    --warn: #f0b75a;
    --shadow-1: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-2: 0 14px 34px -10px rgb(0 0 0 / .6);
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 320px at 100% -40px, rgb(255 138 61 / .22), transparent 70%),
    radial-gradient(420px 300px at -60px 20%, rgb(255 90 31 / .10), transparent 70%);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mb { margin-bottom: 16px; } .mb-0 { margin-bottom: 0; } .mt { margin-top: 16px; } .mt-lg { margin-top: 28px; }
.w-full { width: 100%; } .nowrap { white-space: nowrap; } .break { word-break: break-all; }
.fw-800 { font-weight: 800; } .text-danger { color: var(--danger); } .text-ok { color: var(--ok); }
.inline-form { display: inline; }
.center-group { justify-content: center; }
.qr { margin-inline: auto; background: #fff; padding: 10px; border-radius: var(--r); border: 1px solid var(--line); }
.max-sm { max-width: 520px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
::selection { background: var(--brand); color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 1.6em; height: 1.6em; }
.icon--xl { width: 2.4em; height: 2.4em; }

.container { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--nowrap { flex-wrap: nowrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* ------------------------------------------------------------------ botões */
.btn {
  --_bg: var(--surface); --_fg: var(--ink); --_bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid var(--_bd); border-radius: 999px;
  background: var(--_bg); color: var(--_fg);
  font: inherit; font-weight: 700; font-size: .98rem; letter-spacing: -.005em;
  cursor: pointer; text-decoration: none !important;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: scale(.98); }
.btn--primary {
  --_fg: var(--brand-ink); --_bd: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { box-shadow: 0 14px 28px -8px rgb(255 90 31 / .6); border-color: transparent; }
.btn--soft { --_bg: var(--brand-soft); --_fg: var(--brand); --_bd: var(--brand-line); }
.btn--ghost { --_bg: transparent; --_bd: transparent; }
.btn--ghost:hover { --_bg: var(--surface-2); border-color: transparent; }
.btn--danger { --_bg: var(--danger-soft); --_fg: var(--danger); --_bd: transparent; }
.btn--wa { --_bg: var(--wa); --_fg: #fff; --_bd: transparent; box-shadow: 0 10px 24px -10px rgb(31 182 85 / .7); }
.btn--call { --_bg: var(--ink); --_fg: var(--bg); --_bd: transparent; }
.btn--lg { min-height: 58px; font-size: 1.05rem; padding: 0 28px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .86rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-group { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1);
}
.card--flat { box-shadow: none; }
.card--tint { background: var(--brand-soft); border-color: var(--brand-line); }
.card--glass { background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card--link { display: block; color: inherit; text-decoration: none !important; transition: transform .15s, box-shadow .2s; }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card__title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; }
.card__title .icon { color: var(--brand); }

/* ------------------------------------------------------------------ formulários */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.hint { font-size: .82rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.input--code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; font-size: 1.15rem; text-align: center; }
.input--otp { font-size: 1.6rem; letter-spacing: .4em; text-align: center; }
.field-validation-error, .field-error { color: var(--danger); font-size: .85rem; font-weight: 600; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }

/* Interruptor (checkbox estilizado) */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch__text strong { display: block; font-weight: 700; }
.switch__text span { display: block; font-size: .83rem; color: var(--muted); }
.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 52px; height: 30px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(22px); }
.switch input:focus-visible { box-shadow: var(--ring); }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--muted); transition: all .15s; }
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.segmented input:focus-visible + span { box-shadow: var(--ring); }

/* ------------------------------------------------------------------ feedback */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); font-size: .93rem; border: 1px solid transparent; }
.alert .icon { margin-top: 2px; }
.alert--info { background: var(--info-soft); color: var(--info); }
.alert--ok { background: var(--ok-soft); color: var(--ok); }
.alert--warn { background: var(--warn-soft); color: var(--warn); }
.alert--danger { background: var(--danger-soft); color: var(--danger); }
.alert strong { font-weight: 800; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .01em; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip--ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip--danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.chip--brand { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.chip--info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dot--pulse { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }

/* Caixa de código exibido uma única vez */
.secret-box { border: 2px dashed var(--brand); background: var(--brand-soft); border-radius: var(--r-lg); padding: 22px; text-align: center; }
.secret-box__code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: clamp(1.5rem, 6vw, 2.2rem); font-weight: 800; letter-spacing: .12em; word-break: break-all; margin: 8px 0 14px; color: var(--ink); }

/* ------------------------------------------------------------------ avatar do pet */
.avatar { --fur: #e4b171; --ear: #b07a3c; --snout: #fff1dc; --bgc: #ffe7d6; width: 72px; height: 72px; border-radius: 28%; background: var(--bgc); flex: none; overflow: hidden; display: grid; place-items: center; }
.avatar svg { width: 82%; height: 82%; }
.avatar--xl { width: 132px; height: 132px; border-radius: 34%; box-shadow: var(--shadow-2); border: 4px solid var(--surface); }
.avatar--sm { width: 44px; height: 44px; border-radius: 30%; }
.avatar--dog { --fur: #e4b171; --ear: #a9713a; --snout: #fff1dc; --bgc: #ffe9d6; }
.avatar--cat { --fur: #9aa3b8; --ear: #6f7891; --snout: #eef0f6; --bgc: #e6ebff; }
.avatar--other { --fur: #ff8a3d; --ear: #e5531a; --snout: #fff; --bgc: #fff0e8; }
.a-fur { fill: var(--fur); } .a-ear { fill: var(--ear); } .a-snout { fill: var(--snout); }
.a-eye { fill: #1c2236; } .a-nose { fill: #1c2236; } .a-line { stroke: #1c2236; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.a-inner { fill: #ffb3bd; }

/* ------------------------------------------------------------------ topbar / navegação */
.site-header { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.site-header__inner { height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--ink); letter-spacing: -.02em; text-decoration: none !important; }
.brand__mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: var(--shadow-brand); }
.brand__mark .icon { width: 20px; height: 20px; stroke-width: 2; }
.brand small { display: block; font-size: .68rem; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: -2px; }

.tabbar { position: fixed; inset: auto 0 0 0; z-index: 40; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); display: flex; justify-content: center; pointer-events: none; }
.tabbar__inner { pointer-events: auto; width: min(100%, 460px); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 6px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-2); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 20px; color: var(--muted); font-size: .7rem; font-weight: 700; text-decoration: none !important; transition: all .15s; }
.tab .icon { width: 22px; height: 22px; }
.tab[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }

.page { padding: 20px 0 calc(var(--nav-h) + 40px + env(safe-area-inset-bottom)); }
.page--bare { padding-bottom: 48px; }
.page-head { margin-bottom: 22px; }
.page-head p { color: var(--muted); margin: 0; }
.eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }

/* Layout administrativo: barra lateral no desktop */
.admin-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; border-bottom: 1px solid var(--line); background: var(--surface); }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 700; font-size: .9rem; white-space: nowrap; text-decoration: none !important; }
.admin-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.admin-badge { background: var(--ink); color: var(--bg); font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .06em; }

@media (min-width: 900px) {
  /* No desktop a navegação sobe para a faixa do topo, centralizada. */
  .tabbar { inset: 0 0 auto 0; height: var(--top-h); padding: 0; align-items: center; z-index: 31; }
  .tabbar__inner { width: auto; background: none; border: 0; box-shadow: none; backdrop-filter: none; padding: 0; grid-auto-flow: column; grid-auto-columns: auto; gap: 6px; }
  .tab { flex-direction: row; gap: 8px; padding: 9px 16px; font-size: .9rem; border-radius: 999px; }
  .page { padding-bottom: 60px; }
}

/* ------------------------------------------------------------------ tabelas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; background: var(--surface-2); white-space: nowrap; }
.table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Estatísticas */
.stat { padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.stat__label { font-size: .78rem; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stat__value { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }

.empty { text-align: center; padding: 40px 20px; border: 2px dashed var(--line-strong); border-radius: var(--r-xl); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.empty .icon { width: 44px; height: 44px; color: var(--brand); margin: 0 auto 12px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 40ch; margin-inline: auto; }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: .92rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }

/* Passos */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; }

/* ------------------------------------------------------------------ páginas de autenticação */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth__box { width: min(100%, 440px); }
.auth__logo { display: flex; justify-content: center; margin-bottom: 22px; }
.auth__card { padding: 28px 24px; border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.auth__foot { text-align: center; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.auth h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth .lead { color: var(--muted); margin-bottom: 22px; }

/* ------------------------------------------------------------------ landing */
.hero { padding: 40px 0 28px; text-align: left; }
.hero h1 { font-size: clamp(2.2rem, 8vw, 3.8rem); line-height: 1.02; letter-spacing: -.04em; max-width: 14ch; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 46ch; margin: 14px 0 26px; }
.feature { display: grid; gap: 10px; }
.feature .icon-badge { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.feature h3 { margin: 0; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.site-footer { padding: 28px 0 40px; color: var(--muted); font-size: .85rem; }
.site-footer a { color: var(--muted); }

/* ------------------------------------------------------------------ página pública da tag */
.tagpage { min-height: 100dvh; padding: 16px 0 48px; }
.tagpage__wrap { width: min(100% - 28px, 520px); margin-inline: auto; display: grid; gap: 16px; }
.tagpage__top { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 0; }
.pet-hero { position: relative; text-align: center; padding: 70px 22px 26px; margin-top: 66px; }
.pet-hero .avatar { position: absolute; top: -66px; left: 50%; transform: translateX(-50%); }
.pet-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); margin-bottom: 4px; }
.pet-hero .sub { color: var(--muted); font-weight: 600; }
.lost-banner { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(135deg, #e5484d, #ff7a45); color: #fff; box-shadow: 0 14px 30px -12px rgb(229 72 77 / .7); }
.lost-banner strong { display: block; font-size: 1.15rem; line-height: 1.2; }
.lost-banner span { font-size: .92rem; opacity: .95; }
.lost-banner .icon { width: 34px; height: 34px; flex: none; }
.quote { position: relative; font-size: 1.12rem; line-height: 1.5; font-weight: 500; padding: 4px 6px; text-align: center; color: var(--ink); white-space: pre-line; }
.info { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.info .icon-badge { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.info h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 2px 0 2px; }
.info p { margin: 0; font-weight: 600; white-space: pre-line; word-break: break-word; }
.tagpage__foot { text-align: center; font-size: .8rem; color: var(--muted); padding-top: 8px; }
.state { text-align: center; padding: 44px 24px; }
.state .icon-badge { width: 72px; height: 72px; border-radius: 26px; display: grid; place-items: center; margin: 0 auto 18px; background: var(--brand-soft); color: var(--brand); }
.state .icon-badge .icon { width: 34px; height: 34px; }

/* ------------------------------------------------------------------ PWA */
.install-banner { display: none; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 16px; background: var(--ink); color: var(--bg); border-radius: var(--r); }
.install-banner.is-visible { display: flex; }
.install-banner .grow { font-size: .9rem; font-weight: 600; }
.install-banner .btn { --_bg: var(--brand); --_fg: #fff; --_bd: transparent; }
.install-banner button.close { background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; padding: 6px; }
.offline-flag { position: fixed; top: 0; inset-inline: 0; z-index: 60; text-align: center; padding: 6px; font-size: .8rem; font-weight: 700; background: var(--warn-soft); color: var(--warn); transform: translateY(-100%); transition: transform .25s; }
.offline-flag.is-visible { transform: none; }

/* ------------------------------------------------------------------ animações discretas */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { animation: fadeUp .5s cubic-bezier(.2, .7, .2, 1) both; }
  .fade-up:nth-child(2) { animation-delay: .06s; } .fade-up:nth-child(3) { animation-delay: .12s; } .fade-up:nth-child(4) { animation-delay: .18s; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media print {
  .tabbar, .site-header, .admin-nav, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
