/* AvtoQR web — small design system shared by the landing, legal, scan and account pages.
   Mobile first. All asset URLs are absolute because /t/{slug} is served as profile.html. */

@font-face {
  font-family: "Onest";
  src: url("/assets/onest.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #d0102f;
  --red-dark: #a50d26;
  --red-grad: linear-gradient(135deg, #e5203f 0%, #b00a26 100%);
  --red-soft: #ffe9ec;
  --sun: #ffb800;
  --ink: #1a1214;
  --ink-2: #3b3134;
  --muted: #6e6265;
  --bg: #fbf7f6;
  --bg-2: #f5eeec;
  --surface: #ffffff;
  --green: #1b7a4b;
  --green-dark: #135c38;
  --green-soft: #e3f3ea;
  --amber-soft: #fff4d6;
  --amber-ink: #6b4a00;
  --telegram: #2aabee;
  --whatsapp: #25d366;
  --line: rgba(26, 18, 20, 0.09);
  --line-strong: rgba(26, 18, 20, 0.16);

  --r-card: 20px;
  --r-btn: 16px;
  --r-sm: 12px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(26, 18, 20, 0.05), 0 2px 8px rgba(26, 18, 20, 0.04);
  --shadow: 0 1px 2px rgba(26, 18, 20, 0.04), 0 10px 30px rgba(26, 18, 20, 0.07);
  --shadow-lg: 0 2px 6px rgba(26, 18, 20, 0.06), 0 30px 70px rgba(26, 18, 20, 0.16);
  --shadow-red: 0 8px 20px rgba(208, 16, 47, 0.26);

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --tap: 52px;
  --container: 1160px;
  --focus: var(--ink);
  --header-h: 64px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 0;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 750;
  text-wrap: balance;
}
p { margin: 0; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--red-dark); }

button,
input,
textarea,
select { font: inherit; color: inherit; }
button { cursor: pointer; }

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

::selection { background: var(--red); color: #fff; }

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; color: #fff; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}
.container-narrow { width: min(100% - 32px, 760px); margin-inline: auto; }

/* Icons: 24px viewBox stroke icons. */
.i {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i-fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-btn);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.16s var(--ease), background-color 0.16s, box-shadow 0.16s, color 0.16s;
}
.btn:active { transform: scale(0.97); }
.btn .i { width: 20px; height: 20px; }
.btn[disabled],
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }

.btn-secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-secondary:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }

.btn-white { background: #fff; color: var(--red); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); }
.btn-white:hover { color: var(--red-dark); background: #fff7f8; }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(26, 18, 20, 0.05); color: var(--ink); }

.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 14px; }
.btn-lg { min-height: 60px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 246, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(251, 247, 246, 0.94); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 8px; }
.brand img { width: auto; height: 30px; }

.site-nav { display: none; }
.site-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.site-nav a:hover { background: rgba(26, 18, 20, 0.05); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-actions .btn { position: relative; min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 14px; }
/* 44px visual height, 52px touch area. */
.header-actions .btn::after,
.lang-btn::after { content: ""; position: absolute; inset: -4px 0; }
.header-actions .btn-primary { box-shadow: none; }

@media (min-width: 980px) {
  .site-nav { display: flex; gap: 2px; margin-left: 24px; }
  .header-actions { margin-left: auto; }
}

/* Language menu (built by site.js) */
.lang { position: relative; }
.lang-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.lang-btn:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.lang-btn .i { width: 18px; height: 18px; }
.lang-btn .i-chev { width: 16px; height: 16px; color: var(--muted); transition: transform 0.2s var(--ease); }
.lang-btn[aria-expanded="true"] .i-chev { transform: rotate(180deg); }
.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 176px;
  padding: 6px;
  list-style: none;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  transform-origin: top right;
  animation: pop-in 0.16s var(--ease);
}
.lang-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 15px;
  font-weight: 550;
  text-align: left;
}
.lang-list button:hover { background: var(--bg); }
.lang-list button[aria-current="true"] { color: var(--red); font-weight: 700; }
.lang-list .code { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: 0.06em; }

@keyframes pop-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- Sections & type ---------- */

.section { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head.center .kicker::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.h2 { font-size: clamp(30px, 6.4vw, 46px); letter-spacing: -0.03em; font-weight: 780; }
.lead { margin-top: 14px; color: var(--muted); font-size: clamp(17px, 2vw, 19px); line-height: 1.55; }

@media (min-width: 768px) {
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 48px; }
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 28px 0 64px; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -30% auto auto;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(229, 32, 63, 0.10), rgba(229, 32, 63, 0));
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 48px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.eyebrow .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: inset 0 0 0 5px var(--red), inset 0 0 0 10px var(--sun);
}
.hero-title {
  margin: 20px 0 18px;
  font-size: clamp(38px, 10vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.hero-title .accent { color: var(--red); }
.hero-lead { max-width: 34em; color: var(--muted); font-size: clamp(17px, 2.3vw, 20px); line-height: 1.55; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: 14px; font-weight: 500; }
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 28px;
  list-style: none;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .i { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--green-soft); color: var(--green); stroke-width: 3; }

@media (min-width: 520px) {
  .hero-cta { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 980px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 56px; }
}

/* Phone mockup (decorative) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 12px 0 28px;
  isolation: isolate;
}
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 6%;
  left: 50%;
  width: min(420px, 92%);
  aspect-ratio: 1;
  transform: translateX(-50%) rotate(-8deg);
  border-radius: 96px;
  background: var(--red-grad);
  opacity: 0.12;
}
.phone {
  position: relative;
  width: min(300px, 80vw);
  padding: 10px;
  border-radius: 46px;
  background: #18181b;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #3a3a40;
}
.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 37px;
  background: var(--bg);
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink);
}
.ps-status { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 22px; font-size: 12px; font-weight: 700; }
.ps-island { width: 82px; height: 22px; border-radius: 12px; background: #18181b; }
.ps-status-icons { display: flex; gap: 4px; align-items: center; }
.ps-status-icons span { display: block; width: 14px; height: 8px; border-radius: 2px; background: var(--ink); }
.ps-status-icons span:first-child { width: 10px; opacity: 0.6; }
.ps-url {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 12px 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #ece5e3;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 550;
}
.ps-url .i { width: 11px; height: 11px; stroke-width: 2.5; }
.ps-body { padding: 0 12px 14px; }
.ps-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ps-head img { height: 18px; width: auto; }
.ps-chip { padding: 3px 7px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 9.5px; font-weight: 700; }
.ps-card { padding: 10px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.ps-card .plate { --plate-scale: 0.62; }
.ps-title { margin-top: 8px; font-size: 14px; font-weight: 750; letter-spacing: -0.01em; }
.ps-sub { color: var(--muted); font-size: 11px; }
.ps-label { margin: 12px 2px 6px; font-size: 11.5px; font-weight: 750; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ps-tpl {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 52px;
  padding: 7px 8px;
  border-radius: 11px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
}
.ps-tpl .i { width: 15px; height: 15px; color: var(--red); }
.ps-tpl.is-tapped { box-shadow: inset 0 0 0 2px var(--red); background: var(--red-soft); animation: tap-pulse 3.6s var(--ease) infinite; }
.ps-sos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 10px; }
.ps-sos span { padding: 6px 0; border-radius: 9px; background: var(--green); color: #fff; font-size: 11px; font-weight: 750; text-align: center; }

@keyframes tap-pulse {
  0%, 100% { transform: none; }
  8% { transform: scale(0.94); }
  16% { transform: none; }
}

.notif {
  position: absolute;
  right: max(0px, calc(50% - 230px));
  bottom: 18%;
  display: flex;
  gap: 10px;
  width: min(270px, 74vw);
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  line-height: 1.3;
  animation: notif-in 3.6s var(--ease) infinite;
}
.notif img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.notif-top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.notif-title { margin-top: 2px; font-weight: 750; }
.notif-sub { color: var(--muted); font-size: 12px; }
.notif-tg { display: inline-flex; align-items: center; gap: 4px; color: var(--telegram); }
.notif-tg .i { width: 12px; height: 12px; stroke-width: 2.5; }

@keyframes notif-in {
  0%, 18% { opacity: 0; transform: translateY(14px) scale(0.96); }
  26%, 88% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-6px); }
}

.sticker-tag {
  position: absolute;
  z-index: 2;
  left: max(0px, calc(50% - 262px));
  top: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 12px 10px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: rotate(-9deg);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: var(--red);
}
.sticker-tag .qr { width: 64px; height: 64px; color: var(--ink); }

@media (max-width: 519px) {
  .sticker-tag { display: none; }
  .notif { right: 0; bottom: 4%; }
}

/* ---------- Licence plate (Kyrgyz style) ---------- */

.plate {
  --plate-scale: 1;
  display: inline-flex;
  align-items: stretch;
  height: calc(52px * var(--plate-scale));
  border: calc(3px * var(--plate-scale)) solid #111;
  border-radius: calc(9px * var(--plate-scale));
  background: #fff;
  color: #111;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), inset 0 0 0 calc(1px * var(--plate-scale)) #fff;
  overflow: hidden;
}
.plate-region {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: calc(50px * var(--plate-scale));
  padding: 0 calc(8px * var(--plate-scale));
  border-right: calc(3px * var(--plate-scale)) solid #111;
  font-size: calc(28px * var(--plate-scale));
  letter-spacing: 0.01em;
}
.plate-kg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(3px * var(--plate-scale));
  padding: 0 calc(5px * var(--plate-scale)) 0 calc(8px * var(--plate-scale));
  font-size: calc(11px * var(--plate-scale));
  font-weight: 800;
  letter-spacing: 0.04em;
}
.plate-flag {
  position: relative;
  width: calc(20px * var(--plate-scale));
  height: calc(13px * var(--plate-scale));
  border-radius: calc(2px * var(--plate-scale));
  background: #e8112d;
}
.plate-flag::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: calc(7px * var(--plate-scale));
  height: calc(7px * var(--plate-scale));
  border-radius: 50%;
  background: #ffef00;
  box-shadow: 0 0 0 calc(1.2px * var(--plate-scale)) #e8112d, 0 0 0 calc(2.2px * var(--plate-scale)) #ffef00;
}
.plate-main {
  display: flex;
  align-items: center;
  padding: 0 calc(12px * var(--plate-scale)) 0 calc(4px * var(--plate-scale));
  font-size: calc(30px * var(--plate-scale));
  letter-spacing: 0.04em;
}

/* Plates of other countries (scan page): region box on the right, stacked region + flag, flags. */
.plate-region--right { border-right: 0; border-left: calc(3px * var(--plate-scale)) solid #111; }
.plate-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(2px * var(--plate-scale));
  padding: 0 calc(8px * var(--plate-scale));
}
.plate-side--left { border-right: calc(3px * var(--plate-scale)) solid #111; }
.plate-side--right { border-left: calc(3px * var(--plate-scale)) solid #111; }
.plate-region-text { font-size: calc(22px * var(--plate-scale)); line-height: 1; }
.plate-side .plate-kg { flex-direction: row; gap: calc(3px * var(--plate-scale)); padding: 0; font-size: calc(9px * var(--plate-scale)); }
.plate-side .plate-flag { width: calc(14px * var(--plate-scale)); height: calc(9px * var(--plate-scale)); }
.plate-side .plate-flag::after { width: calc(5px * var(--plate-scale)); height: calc(5px * var(--plate-scale)); }
.plate--kg .plate-main,
.plate--uz .plate-main,
.plate--ru .plate-main,
.plate--other .plate-main { padding: 0 calc(12px * var(--plate-scale)); }
.plate--kz .plate-kg,
.plate--tj .plate-kg { padding: 0 calc(4px * var(--plate-scale)) 0 calc(8px * var(--plate-scale)); }
.plate-flag--kz { background: #00afca; }
.plate-flag--kz::after { background: #fec50c; box-shadow: none; }
.plate-flag--uz { background: linear-gradient(#0099b5 0 32%, #ce1126 32% 36%, #fff 36% 64%, #ce1126 64% 68%, #1eb53a 68%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.plate-flag--tj { background: linear-gradient(#cc0000 0 29%, #fff 29% 71%, #006600 71%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.plate-flag--tj::after { width: calc(4px * var(--plate-scale)); height: calc(4px * var(--plate-scale)); background: #f8c300; box-shadow: none; }
.plate-flag--ru { background: linear-gradient(#fff 0 34%, #0039a6 34% 67%, #d52b1e 67%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.plate-flag--uz::after,
.plate-flag--ru::after { display: none; }
.plate--cn {
  border-color: #0b3d91;
  background: linear-gradient(#1046b0, #0b3d91);
  color: #fff;
  box-shadow: inset 0 0 0 calc(2px * var(--plate-scale)) #0b3d91, inset 0 0 0 calc(3.5px * var(--plate-scale)) #fff;
}
.plate--cn.plate--nev {
  border-color: #3a8f3a;
  background: linear-gradient(#f4fbf4, #6cc56c);
  color: #111;
  box-shadow: inset 0 0 0 calc(3px * var(--plate-scale)) #f4fbf4, inset 0 0 0 calc(4.5px * var(--plate-scale)) #111;
}
.plate--cn .plate-main { padding: 0 calc(14px * var(--plate-scale)); }

/* ---------- Steps ---------- */

.steps { display: grid; gap: 16px; list-style: none; counter-reset: step; }
.step {
  position: relative;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.step-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--red-soft);
  color: var(--red);
}
.step-icon .i { width: 28px; height: 28px; }
.step-num { color: rgba(26, 18, 20, 0.12); font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step { padding: 28px; }
}

/* ---------- Feature grid ---------- */

.features { display: grid; gap: 14px; list-style: none; }
.feature {
  padding: 22px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
}
.feature-icon.green { background: var(--green-soft); color: var(--green); }
.feature-icon.sun { background: var(--amber-soft); color: #b07a00; }
.feature-icon.blue { background: #e4f4fd; color: #1a8ac4; }
.feature h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 15px; }

@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* ---------- Use cases ---------- */

.section-alt { background: var(--bg-2); }
.uses { display: grid; gap: 14px; list-style: none; }
.use {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  align-content: start;
  padding: 20px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.use-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--red-grad);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.use-icon .i { width: 30px; height: 30px; stroke-width: 1.8; }
.use h3 { font-size: 19px; margin: 4px 0 6px; }
.use p { color: var(--muted); font-size: 15px; }

@media (min-width: 700px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .uses { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .use { grid-template-columns: 1fr; padding: 24px; }
  .use-icon { margin-bottom: 8px; }
}

/* ---------- Privacy (dark) ---------- */

.dark {
  --focus: #fff;
  background: var(--ink);
  color: #fff;
}
.dark .kicker { color: var(--sun); }
.dark .lead { color: rgba(255, 255, 255, 0.72); }
.dark a { color: #fff; }
.privacy-grid { display: grid; gap: 40px; }
.privacy-points { display: grid; gap: 12px; list-style: none; }
.privacy-point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 20px;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.privacy-point .pi {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(208, 16, 47, 0.22);
  color: #ff8a9c;
}
.privacy-point h3 { font-size: 18px; margin-bottom: 4px; }
.privacy-point p { color: rgba(255, 255, 255, 0.7); font-size: 15px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 600;
}
.pill .i { width: 16px; height: 16px; color: var(--sun); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-weight: 650;
}
.text-link .i { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.text-link:hover .i { transform: translateX(3px); }

@media (min-width: 900px) {
  .privacy-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
  .privacy-points { grid-template-columns: 1fr 1fr; gap: 14px; }
  .privacy-point { grid-template-columns: 1fr; align-content: start; padding: 24px; }
}

/* ---------- Packages ---------- */

.packages { display: grid; gap: 16px; list-style: none; }
.package {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.package.featured { border: 2px solid var(--red); box-shadow: var(--shadow); }
.package.muted-card { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.sun { background: var(--amber-soft); color: var(--amber-ink); }
.package h3 { margin: 16px 0 6px; font-size: 22px; }
.package > p { color: var(--muted); }
.checklist { display: grid; gap: 10px; margin: 20px 0 26px; list-style: none; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 15px; }
.checklist .i { width: 20px; height: 20px; margin-top: 1px; color: var(--green); stroke-width: 2.6; }
.package .btn { margin-top: auto; }
.pkg-note { margin-top: 24px; color: var(--muted); font-size: 15px; text-align: center; }

@media (min-width: 900px) {
  .packages { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
  .package { padding: 30px; }
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 650;
  border-radius: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.faq summary .plus::before,
.faq summary .plus::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] .plus { transform: rotate(45deg); background: var(--red-soft); }
.faq .answer { padding: 0 20px 20px; color: var(--muted); }

/* ---------- Download ---------- */

.download {
  --focus: #fff;
  position: relative;
  overflow: hidden;
  padding: 36px 24px;
  border-radius: 28px;
  background: var(--red-grad);
  color: #fff;
}
.download::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 184, 0, 0.22), rgba(255, 184, 0, 0));
  pointer-events: none;
}
.download-grid { position: relative; z-index: 1; display: grid; gap: 32px; }
.download .mark { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); }
.download h2 { margin-top: 20px; }
.download .lead { color: rgba(255, 255, 255, 0.85); }
.download-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; }
.meta-row li {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  font-size: 13.5px;
  font-weight: 600;
}
.install {
  padding: 22px;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.install h3 { font-size: 18px; margin-bottom: 14px; }
.install ol { display: grid; gap: 12px; list-style: none; counter-reset: inst; }
.install li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; counter-increment: inst; font-size: 15px; }
.install li::before {
  content: counter(inst);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

@media (min-width: 520px) { .download-cta { flex-direction: row; } }
@media (min-width: 900px) {
  .download { padding: 56px; }
  .download-grid { grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
}

/* ---------- Footer ---------- */

.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; gap: 32px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-weight: 550; }
.footer-col h4 { margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.footer-col ul { display: grid; gap: 8px; list-style: none; }
.footer-col a { color: var(--ink); text-decoration: none; font-weight: 550; }
.footer-col a:hover { color: var(--red); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ---------- Legal pages ---------- */

.legal-main { padding: 32px 0 72px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover { color: var(--ink); }
.back-link .i { width: 18px; height: 18px; }
.doc {
  padding: 28px 22px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.doc h1 { font-size: clamp(30px, 6vw, 42px); letter-spacing: -0.03em; }
.doc .updated { margin-top: 10px; color: var(--muted); font-size: 14px; }
.doc .intro { margin-top: 20px; font-size: 17px; color: var(--ink-2); }
.doc h2 { margin: 36px 0 10px; font-size: 21px; letter-spacing: -0.01em; }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 10px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--red); }
.doc .callout {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg);
  border-left: 4px solid var(--red);
  font-size: 15px;
}
@media (min-width: 768px) {
  .legal-main { padding: 48px 0 96px; }
  .doc { padding: 48px 56px; }
}

/* ======================================================================
   Scan page (/t/{slug})
   ====================================================================== */

.scan-body { background: var(--bg); }
.scan-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 247, 246, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.scan-header .header-inner { height: 60px; }
.scan-header .container { width: min(100% - 28px, 560px); }
.scan-header .brand img { height: 28px; }
.scan-main { width: min(100% - 28px, 560px); margin: 0 auto; padding: 18px 0 40px; }
.scan-main > * + * { margin-top: 16px; }

.card {
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

/* Lost banner */
.lost-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-card);
  background: var(--sun);
  color: var(--ink);
}
.lost-banner .i { width: 28px; height: 28px; margin-top: 2px; }
.lost-banner strong { display: block; font-size: 18px; font-weight: 780; line-height: 1.25; }
.lost-banner p { margin-top: 4px; font-size: 15px; font-weight: 500; }

/* Vehicle card */
.vcard { overflow: hidden; }
.vphoto { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-2); }
.vcard-body { padding: 20px; }
.vcard-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.type-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  border-radius: var(--r-pill);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
}
.type-chip .i { width: 18px; height: 18px; color: var(--red); }
.vtitle { margin-top: 16px; font-size: 26px; font-weight: 780; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.vsub { margin-top: 4px; color: var(--muted); font-size: 16px; overflow-wrap: anywhere; }
.vcard .plate-wrap { margin-top: 2px; }
.owner-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-size: 17px;
  font-weight: 780;
  text-transform: uppercase;
}
.owner-row .label { display: block; color: var(--muted); font-size: 13px; font-weight: 550; }
.owner-row .name { display: block; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.owner-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg);
  border-left: 3px solid var(--sun);
  font-size: 15.5px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.blood-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 9px;
  border-radius: var(--r-pill);
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 700;
}
.blood-chip .i { width: 18px; height: 18px; }

.mini-title {
  margin: 0 4px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plate { max-width: 100%; }
.plate-main { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: calc(46px * var(--plate-scale)); }

/* Contact tiles */
.contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.contact-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 92px;
  padding: 14px 8px;
  border-radius: var(--r-btn);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.16s var(--ease), box-shadow 0.16s;
}
.contact-tile:hover { color: var(--ink); box-shadow: var(--shadow); }
.contact-tile:active { transform: scale(0.97); }
.contact-tile .ci {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}
.contact-tile .ci .i { width: 22px; height: 22px; }
.contact-tile.telegram .ci { background: var(--telegram); }
.contact-tile.whatsapp .ci { background: var(--whatsapp); }

/* Message section */
.msg { padding: 20px; }
.msg-title { font-size: 21px; font-weight: 760; letter-spacing: -0.02em; }
.msg-hint { margin-top: 4px; color: var(--muted); font-size: 15px; }
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.tpl {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 96px;
  padding: 14px;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s var(--ease), box-shadow 0.14s, background-color 0.14s;
}
.tpl:hover { box-shadow: inset 0 0 0 1.5px var(--red); background: #fff; }
.tpl:active { transform: scale(0.97); }
.tpl .tpl-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--red);
  box-shadow: var(--shadow-sm);
}
.tpl .tpl-icon .i { width: 22px; height: 22px; }
.tpl.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 72px;
}
.tpl.found {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 72px;
  background: var(--green);
  color: #fff;
  box-shadow: none;
  font-size: 17px;
}
.tpl.found .tpl-icon { background: rgba(255, 255, 255, 0.18); color: #fff; box-shadow: none; }
.tpl.found:hover { background: var(--green-dark); }
.tpl.sale {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 72px;
  background: var(--amber-soft);
  color: var(--amber-ink);
  box-shadow: inset 0 0 0 1.5px rgba(107, 74, 0, 0.25);
  font-size: 17px;
}
.tpl.sale .tpl-icon { background: #fff; color: var(--amber-ink); }
.tpl.sale:hover { background: #ffecb8; }

/* Location toggle under the templates */
.loc-toggle {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg);
  cursor: pointer;
}
.loc-toggle input { width: 22px; height: 22px; accent-color: var(--red); }
.loc-toggle .i { width: 20px; height: 20px; color: var(--red); }
.loc-text strong { display: block; font-size: 15px; }
.loc-text span { display: block; color: var(--muted); font-size: 13px; }

/* For sale and emergency cards */
.sale-card { padding: 18px 20px; }
.sale-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--amber-soft);
  color: var(--amber-ink);
  font-size: 13px;
  font-weight: 700;
}
.sale-badge .i { width: 16px; height: 16px; }
.sale-card .mini-title { margin-top: 10px; }
.sale-price { margin-top: 4px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.sale-note { margin-top: 6px; color: var(--ink-2); }
.med-card { padding: 18px 20px; box-shadow: inset 0 0 0 1.5px rgba(208, 16, 47, 0.25), var(--shadow-sm); }
.med-title { display: flex; align-items: center; gap: 8px; color: var(--red-dark); }
.med-title .i { width: 20px; height: 20px; }
.med-row { display: grid; gap: 2px; margin-top: 12px; }
.med-row .label { color: var(--muted); font-size: 13px; }
.med-row .value { font-size: 16px; font-weight: 600; }
.med-call { margin-top: 8px; justify-self: start; padding: 0 18px; }
.tpl.is-sending { box-shadow: inset 0 0 0 2px var(--red); background: var(--red-soft); }
.tpl.is-sending .tpl-icon .i { animation: spin 0.9s linear infinite; }
.tpl[disabled] { cursor: progress; }
.tpl-grid.is-busy .tpl:not(.is-sending) { opacity: 0.5; }

@keyframes spin { to { transform: rotate(360deg); } }

.compose { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.compose label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.field {
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font-size: 16px;
  line-height: 1.45;
  transition: box-shadow 0.15s, background-color 0.15s;
}
.field::placeholder { color: #9a8e91; }
.field:hover { box-shadow: inset 0 0 0 1.5px rgba(26, 18, 20, 0.3); }
.field:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
textarea.field { min-height: 108px; resize: vertical; }
.compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.counter { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.compose .btn { flex: 0 1 auto; padding: 0 20px; }
.templates-only { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.templates-only .i { width: 18px; height: 18px; }

/* Alerts */
.alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 15px;
}
.alert .i { width: 22px; height: 22px; margin-top: 1px; }
.alert strong { display: block; font-size: 16px; }
.alert-warn { background: var(--amber-soft); color: var(--amber-ink); }
.alert-err { background: var(--red-soft); color: var(--red-dark); }
.msg .alert { margin-top: 16px; }

/* Sent state */
.sent {
  padding: 36px 24px 28px;
  text-align: center;
  animation: rise 0.4s var(--ease);
}
.sent:focus { outline: none; }
.check {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 0 10px var(--green-soft), 0 14px 30px rgba(27, 122, 75, 0.35);
  animation: pop 0.5s var(--ease);
}
.check .i { width: 52px; height: 52px; stroke-width: 3; }
.check .i path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.45s 0.18s var(--ease) forwards; }
.sent h2 { font-size: 24px; letter-spacing: -0.02em; }
.sent p { max-width: 26em; margin: 8px auto 0; color: var(--muted); }
.sent .btn { margin-top: 24px; }
.sent .waiting { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; }
.sent .waiting .i { width: 16px; height: 16px; animation: spin 0.9s linear infinite; }
.sent.resolved .check { background: var(--ink); box-shadow: 0 0 0 10px var(--bg-2), 0 14px 30px rgba(26, 18, 20, 0.25); }
@media (prefers-reduced-motion: reduce) { .sent .waiting .i { animation: none; } }

@keyframes pop { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Not found / load failed */
.state { padding: 36px 24px; text-align: center; }
.state-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 26px;
  background: var(--bg-2);
  color: var(--muted);
}
.state-icon .i { width: 42px; height: 42px; stroke-width: 1.8; }
.state h1 { font-size: 24px; letter-spacing: -0.02em; }
.state p { max-width: 26em; margin: 8px auto 0; color: var(--muted); }
.state .btn { margin-top: 22px; }

/* Emergency */
.sos { padding: 20px; }
.sos-head { display: flex; align-items: center; gap: 10px; }
.sos-head .i { width: 22px; height: 22px; color: var(--green); }
.sos-title { font-size: 18px; font-weight: 760; }
.sos-hint { margin-top: 4px; color: var(--muted); font-size: 14px; }
.sos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.sos-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px;
  border-radius: var(--r-btn);
  background: var(--green);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.15s, transform 0.14s var(--ease);
}
.sos-btn:hover { background: var(--green-dark); color: #fff; }
.sos-btn:active { transform: scale(0.97); }
.sos-btn .txt { display: grid; gap: 2px; }
.sos-btn .num { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sos-btn .lbl { font-size: 13px; font-weight: 600; line-height: 1.2; opacity: 0.92; }
.sos-btn .i { width: 18px; height: 18px; margin-left: auto; opacity: 0.8; }

/* Footer CTA */
.get-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: var(--r-card);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: transform 0.16s var(--ease);
}
.get-card:hover { color: #fff; transform: translateY(-1px); }
.get-card img { width: 52px; height: 52px; flex: none; border-radius: 15px; }
.get-card strong { display: block; font-size: 17px; line-height: 1.25; }
.get-card span { display: block; margin-top: 2px; color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.get-card .i { width: 22px; height: 22px; margin-left: auto; flex: none; }
.scan-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 8px 0 0; color: var(--muted); font-size: 13px; }
.scan-foot a { color: var(--muted); }

.skeleton { padding: 20px; }
.skeleton div { height: 16px; border-radius: 8px; background: linear-gradient(90deg, var(--bg-2), #fff, var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton div + div { margin-top: 12px; }
.skeleton .sk-plate { width: 200px; height: 52px; }
.skeleton .sk-title { width: 60%; height: 26px; }
.skeleton .sk-line { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 359px) {
  .tpl-grid, .sos-grid { grid-template-columns: 1fr; }
  .plate { --plate-scale: 0.86; }
}

/* ======================================================================
   Account pages (confirmed.html, reset.html)
   ====================================================================== */

.auth-body { display: flex; flex-direction: column; min-height: 100vh; }
.auth-main { flex: 1; display: grid; place-items: center; padding: 24px 16px 48px; }
.auth-card { width: min(100%, 440px); padding: 32px 24px; text-align: center; }
.auth-card .brand { justify-content: center; margin-bottom: 28px; }
.auth-card .brand img { height: 34px; }
.auth-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: var(--red-soft);
  color: var(--red);
}
.auth-icon .i { width: 34px; height: 34px; }
.auth-icon.ok { background: var(--green-soft); color: var(--green); }
.auth-icon.err { background: var(--red-soft); color: var(--red); }
.auth-card h1 { font-size: 26px; letter-spacing: -0.02em; }
.auth-card form { display: grid; gap: 12px; margin-top: 22px; text-align: left; }
.auth-card .msg-line { margin-top: 12px; color: var(--muted); }
.auth-card .msg-line.ok { color: var(--green); font-weight: 650; }
.auth-card .msg-line.err { color: var(--red-dark); font-weight: 650; }
.auth-card .home-link { margin-top: 24px; }
@media (min-width: 520px) { .auth-card { padding: 40px 36px; } }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .notif { animation: none; opacity: 1; transform: none; }
  .check .i path { stroke-dashoffset: 0; }
}
