/* PetsRegistry homepage */
:root {
  --teal-900: #063f3d;
  --teal-800: #0a4f4b;
  --teal-700: #0b6b63;
  --teal-600: #0f8a7e;
  --teal-50: #e3f6f5;
  --hero: #ddf5f5;
  --strip: #e6f7f6;
  --ink: #0e2b2a;
  --text: #2f4544;
  --muted: #5b6e6d;
  --line: #dbe7e6;
  --coral: #f26b5b;
  --coral-dark: #e2564a;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(6, 63, 61, .07);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: #fff; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: Outfit, Inter, sans-serif; color: var(--ink); margin: 0; letter-spacing: -.01em; }
.wrap { width: 100%; max-width: max(1160px, 90vw); margin: 0 auto; padding: 0 24px; }
.ic { width: 20px; height: 20px; flex: none; }
.ic.sm { width: 16px; height: 16px; }
.ic.coral { color: var(--coral); width: 16px; height: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 Inter, sans-serif; border-radius: 10px; padding: 12px 20px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-teal { background: var(--teal-700); color: #fff; }
.btn-teal:hover { background: var(--teal-800); }
.btn-coral { background: var(--coral); color: #fff; font-size: 16px; padding: 13px 24px; box-shadow: 0 4px 14px rgba(242, 107, 91, .3); }
.btn-coral:hover { background: var(--coral-dark); }
.btn-outline { background: #fff; color: var(--teal-900); border-color: var(--teal-800); padding: 14px 26px; font-size: 16px; }
.btn-outline:hover { background: var(--teal-50); }
.btn-ghost { width: 100%; border: 1.5px solid var(--teal-700); color: var(--teal-700); background: #fff; padding: 9px 12px; font-size: 14px; border-radius: 8px; }
.btn-ghost:hover { background: var(--teal-50); }
.btn-lg { padding: 15px 34px; font-size: 17px; }

/* Hero */
.hero { background: var(--hero); overflow: hidden; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; min-height: 320px; }
.hero-copy { padding: 34px 0 28px; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; color: var(--teal-900); line-height: 1.02; letter-spacing: -.025em; }
.lead { font-size: clamp(16px, 1.8vw, 20px); color: #2c4241; margin: 14px 0 22px; max-width: 560px; }
.search { display: flex; align-items: center; background: #fff; border: 1.5px solid #c9dad9; border-radius: 12px; padding: 5px 5px 5px 16px; max-width: 610px; box-shadow: 0 6px 20px rgba(6, 63, 61, .08); }
.search-ic { color: var(--ink); width: 22px; height: 22px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: 400 17px Inter, sans-serif; padding: 12px; color: var(--ink); background: transparent; }
.search input::placeholder { color: #6b7c7b; }
.search .btn { padding: 14px 28px; font-size: 17px; }
.hero-actions { display: flex; gap: 24px; margin-top: 14px; flex-wrap: wrap; }
.hero-actions .ic { width: 24px; height: 24px; }
.hero-art { position: relative; margin-right: -24px; min-width: 0; }
.hero-art img.hero-photo { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 90%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 90%, transparent 100%); }

/* Sections */
.block { padding: 26px 0 22px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: var(--teal-900); }
.sec-head p { margin: 4px 0 0; color: var(--text); font-size: 16px; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-700); font-weight: 600; font-size: 15px; padding-bottom: 6px; }
.more:hover { color: var(--teal-900); }
.empty { padding: 26px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty a { color: var(--teal-700); font-weight: 600; text-decoration: underline; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 42px; background: linear-gradient(135deg, #e3f6f5, #f3eefe); }

/* Lost pets */
.lost-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lost-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.lost-card:hover { box-shadow: 0 10px 26px rgba(6, 63, 61, .13); transform: translateY(-2px); }
.lost-photo { position: relative; display: block; aspect-ratio: 4 / 5; background: #eef4f4; }
.lost-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge-lost { position: absolute; top: 10px; left: 10px; background: var(--coral); color: #fff; font: 700 15px/1 Inter, sans-serif; padding: 7px 10px; border-radius: 6px; letter-spacing: .03em; }
.lost-body { padding: 12px 16px 16px; }
.lost-body h3 { font-size: 21px; font-weight: 700; }
.lost-body .meta { margin: 2px 0 8px; font-size: 14px; color: var(--text); }
.lost-body .row { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 13.5px; color: var(--text); }
.lost-body .btn-ghost { margin-top: 12px; }

/* Services strip */
.services { background: var(--strip); margin: 16px 0 6px; }
.services-row { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.services h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: var(--teal-900); line-height: 1.1; flex: 0 0 230px; }
.svc-list { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.svc { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 12px; border-left: 1px solid #c4dedc; border-radius: 10px; transition: background .15s; }
.svc:first-child { border-left: 0; }
.svc:hover { background: rgba(255, 255, 255, .65); }
.svc-ic svg { width: 34px; height: 34px; margin-bottom: 6px; }
.svc strong { font: 600 16px Outfit, sans-serif; color: var(--ink); }
.svc span:last-child { font-size: 13px; color: var(--text); line-height: 1.35; }

/* Recently registered */
.recent-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.recent-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.recent-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(6, 63, 61, .12); }
.recent-photo { display: block; aspect-ratio: 3 / 4; background: #eef4f4; }
.recent-photo img { width: 100%; height: 100%; object-fit: cover; }
.recent-body { display: block; padding: 10px 14px 12px; }
.recent-body strong { display: block; font: 700 18px Outfit, sans-serif; color: var(--ink); }
.recent-body small { font-size: 12.5px; color: var(--text); }

/* Protect banner */
.protect { margin: 16px 0 34px; display: flex; align-items: center; gap: 30px; padding: 18px 56px 18px 56px; border-radius: 22px; background: linear-gradient(100deg, #fde9e6 0%, #fff1ee 55%, #fde3dc 100%); position: relative; overflow: hidden; }
.protect::after { content: ""; position: absolute; right: -60px; top: -40px; width: 300px; height: 200px; background: #fbd5cc; border-radius: 50%; opacity: .55; }
.protect > * { position: relative; z-index: 1; }
.protect-ic { width: 64px; height: 64px; flex: none; }
.protect-copy { flex: 1; border-left: 2px solid #3a3a3a22; padding-left: 30px; }
.protect h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; color: var(--ink); }
.protect p { margin: 2px 0 0; font-size: 17px; color: var(--text); }

/* Virtual pets banner (playful) */
.vp { position: relative; display: grid; grid-template-columns: 320px 1fr auto; align-items: center; gap: 28px; margin: 18px 0 0; padding: 18px 40px 18px 28px; border-radius: 24px; overflow: hidden; color: #3b2370;
  background: radial-gradient(circle at 12% 120%, #ffd6ec 0, transparent 42%), radial-gradient(circle at 95% -20%, #d9e8ff 0, transparent 45%), linear-gradient(100deg, #f4ecff 0%, #fbefff 50%, #efe7ff 100%);
  border: 2px solid #e5d6ff; box-shadow: 0 8px 26px rgba(124, 77, 255, .14); transition: transform .2s, box-shadow .2s; }
.vp:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(124, 77, 255, .22); }
.vp-sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.vp > .vp-stage, .vp > .vp-copy, .vp > .vp-cta { position: relative; z-index: 1; }
.vp-sparkles i { position: absolute; font-style: normal; pointer-events: none; animation: twinkle 3.2s ease-in-out infinite; }
.vp-sparkles i:nth-child(1) { left: 34%; top: 12px; color: #b18cff; font-size: 16px; }
.vp-sparkles i:nth-child(2) { left: 26%; bottom: 14px; color: #ff7eb6; font-size: 14px; animation-delay: .6s; }
.vp-sparkles i:nth-child(3) { right: 26%; top: 10px; color: #ffbe3d; font-size: 18px; animation-delay: 1.2s; }
.vp-sparkles i:nth-child(4) { right: 4%; bottom: 12px; color: #ff7eb6; font-size: 18px; animation-delay: 1.8s; }
.vp-sparkles i:nth-child(5) { left: 3%; top: 10px; color: #8ec5ff; font-size: 16px; animation-delay: .9s; }
.vp-sparkles i:nth-child(6) { left: 56%; bottom: 8px; color: #c59bff; font-size: 12px; animation-delay: 2.2s; }
.vp-stage { height: 136px; display: flex; align-items: flex-end; justify-content: center; }
.vp-stage::before { content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 26px; border-radius: 50%; background: radial-gradient(ellipse at center, #d9c7ff 0, #ecdfff 55%, transparent 72%); }
.vp-pet { position: relative; width: 84px; height: 84px; object-fit: contain; margin: 0 -10px; animation: bob 2.4s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(80, 40, 160, .15)); }
.vp-pet.p1 { width: 104px; height: 104px; z-index: 3; animation-delay: 0s; }
.vp-pet.p2 { width: 96px; height: 96px; z-index: 2; animation-delay: .35s; }
.vp-pet.p3 { width: 78px; height: 78px; z-index: 1; animation-delay: .7s; }
.vp-pet.p4 { width: 70px; height: 70px; z-index: 1; animation-delay: 1.05s; }
.vp:hover .vp-pet { animation-name: hop; animation-duration: .7s; }
.vp-bubble { position: absolute; top: -2px; left: 4px; background: #fff; color: #7b3fe4; font: 700 12px Outfit, sans-serif; padding: 5px 10px; border-radius: 12px; box-shadow: 0 4px 10px rgba(124, 77, 255, .18); animation: bob 3s ease-in-out infinite; }
.vp-bubble::after { content: ""; position: absolute; left: 22px; bottom: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.vp-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vp-pill { align-self: flex-start; background: #fff; color: #7b3fe4; font: 700 12px Inter, sans-serif; padding: 4px 10px; border-radius: 999px; border: 1px solid #e3d3ff; }
.vp-title { font: 800 34px/1.05 Outfit, sans-serif; letter-spacing: -.02em; background: linear-gradient(90deg, #5b2bd1, #b13fd8 60%, #ff5fa2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vp-text { font-size: 16px; color: #4a3a6e; }
.vp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.vp-chips span { background: rgba(255, 255, 255, .8); border: 1px solid #eadcff; border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; color: #5a3f96; }
.vp-cta { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vp-btn { background: linear-gradient(90deg, #7b3fe4, #c04fd8); color: #fff; font-size: 17px; padding: 15px 26px; border-radius: 999px; box-shadow: 0 8px 18px rgba(123, 63, 228, .35); }
.vp:hover .vp-btn { box-shadow: 0 10px 24px rgba(123, 63, 228, .5); }
.vp-sub { font-size: 12.5px; color: #7a68a0; }
/* Pet Games banner (arcade) */
.pg { position: relative; display: grid; grid-template-columns: 320px 1fr auto; align-items: center; gap: 28px; margin: 18px 0 0; padding: 20px 40px 20px 28px; border-radius: 24px; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 8% 110%, rgba(255, 196, 61, .35) 0, transparent 40%), radial-gradient(circle at 92% -10%, rgba(92, 200, 255, .45) 0, transparent 45%), linear-gradient(105deg, #1b2a8f 0%, #2453d6 45%, #0f8f86 100%);
  box-shadow: 0 10px 28px rgba(36, 83, 214, .28); transition: transform .2s, box-shadow .2s; }
.pg:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(36, 83, 214, .38); }
.pg > .pg-tiles, .pg > .pg-copy, .pg > .pg-cta { position: relative; z-index: 1; }
.pg-stars { position: absolute; inset: 0; pointer-events: none; }
.pg-stars i { position: absolute; font-style: normal; color: #ffe27a; animation: twinkle 3s ease-in-out infinite; }
.pg-stars i:nth-child(1) { left: 35%; top: 10px; font-size: 14px; }
.pg-stars i:nth-child(2) { left: 52%; bottom: 10px; font-size: 12px; color: #9fe6ff; animation-delay: .7s; }
.pg-stars i:nth-child(3) { right: 22%; top: 12px; font-size: 16px; animation-delay: 1.4s; }
.pg-stars i:nth-child(4) { right: 3%; bottom: 14px; font-size: 14px; color: #ffb3d1; animation-delay: 2.1s; }
.pg-stars i:nth-child(5) { left: 2%; top: 8px; font-size: 12px; animation-delay: 1s; }
.pg-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pg-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; aspect-ratio: 5 / 4; border-radius: 18px; background: rgba(255, 255, 255, .95); color: #24306b; box-shadow: 0 6px 0 rgba(0, 0, 0, .14), 0 10px 18px rgba(0, 0, 0, .14); animation: bob 2.6s ease-in-out infinite; }
.pg-tile b { font-size: 30px; line-height: 1; }
.pg-tile small { font: 700 11.5px Inter, sans-serif; }
.pg-tile.t1 { background: linear-gradient(160deg, #e7fff0, #c7f0d6); }
.pg-tile.t2 { animation-delay: .3s; background: linear-gradient(160deg, #e6efff, #c9d9ff); }
.pg-tile.t3 { animation-delay: .6s; background: linear-gradient(160deg, #fff1e1, #f5d6b4); }
.pg-tile.t4 { animation-delay: .9s; background: linear-gradient(160deg, #f6eaff, #e2c9ff); }
.pg-tile.t5 { animation-delay: 1.2s; background: linear-gradient(160deg, #eaffdf, #cbefb6); }
.pg-tile.t6 { animation-delay: 1.5s; background: linear-gradient(160deg, #fff0f5, #ffd0df); }
.pg:hover .pg-tile { animation-name: hop; animation-duration: .7s; }
.pg-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pg-pill { align-self: flex-start; background: #ffd34d; color: #3b2a00; font: 800 12px Inter, sans-serif; padding: 5px 11px; border-radius: 999px; }
.pg-title { font: 900 38px/1.05 Outfit, sans-serif; letter-spacing: -.02em; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.pg-text { font-size: 16px; color: #e3ecff; max-width: 560px; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pg-chips span { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; color: #fff; }
.pg-cta { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.pg-btn { background: linear-gradient(180deg, #ffd34d, #ffae1f); color: #3b2a00; font-size: 19px; font-weight: 800; padding: 16px 32px; border-radius: 999px; box-shadow: 0 6px 0 #c77f00, 0 12px 22px rgba(0, 0, 0, .25); }
.pg:hover .pg-btn { transform: translateY(-1px); }
.pg-sub { font-size: 12.5px; color: #cfe0ff; text-align: center; max-width: 220px; }
@media (prefers-reduced-motion: reduce) { .pg-tile, .pg-stars i { animation: none !important; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-16px) scale(1.05); } 70% { transform: translateY(0) scale(.97, 1.03); } }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .vp-pet, .vp-bubble, .vp-sparkles i { animation: none !important; } }

[hidden] { display: none !important; }

/* Scanner + toast */
.scan-modal { position: fixed; inset: 0; z-index: 100; background: rgba(5, 30, 29, .7); display: grid; place-items: center; padding: 16px; }
.scan-box { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 18px; padding: 22px; }
.scan-box h3 { font-size: 22px; }
.scan-msg { margin: 4px 0 14px; font-size: 14px; color: var(--muted); }
.scan-box video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #0b1f1e; }
.scan-close { position: absolute; top: 14px; right: 14px; border: 0; background: var(--teal-50); color: var(--teal-900); border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; background: var(--teal-900); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); }

/* Responsive */
@media (max-width: 1080px) {
  .lost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services-row { flex-direction: column; align-items: flex-start; }
  .services h2 { flex: none; }
  .svc-list { width: 100%; }
  .vp { grid-template-columns: 240px 1fr; }
  .vp-cta { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 14px; }
  .pg { grid-template-columns: 240px 1fr; }
  .pg-cta { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 14px; }
  .pg-sub { max-width: none; }
}
@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-art { margin: 0 -24px; height: 240px; }
  .hero-art img.hero-photo { left: 50%; right: auto; transform: translateX(-50%); -webkit-mask-image: none; mask-image: none; }
  .protect { flex-wrap: wrap; padding: 22px 24px; gap: 16px; }
  .protect-copy { border-left: 0; padding-left: 0; flex-basis: calc(100% - 90px); }
  .protect .btn { width: 100%; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero-art { margin: 0 -16px; height: 200px; }
  .search { padding-left: 12px; }
  .search input { font-size: 15px; padding: 10px 8px; }
  .search .btn { padding: 12px 16px; font-size: 15px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1; padding: 12px 10px; font-size: 14px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .lost-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .lost-body { padding: 10px 12px 12px; }
  .lost-body h3 { font-size: 18px; }
  .lost-body .row { font-size: 12px; align-items: flex-start; }
  .lost-body .btn-ghost { font-size: 13px; }
  .badge-lost { font-size: 12px; padding: 5px 8px; }
  .recent-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .svc { border-left: 0; background: rgba(255, 255, 255, .6); }
  .vp { grid-template-columns: 1fr; padding: 20px 18px; text-align: center; gap: 14px; }
  .vp-copy { align-items: center; }
  .vp-pill { align-self: center; }
  .vp-chips { justify-content: center; }
  .vp-cta { flex-direction: column; }
  .vp-title { font-size: 30px; }
  .pg { grid-template-columns: 1fr; padding: 20px 18px; text-align: center; gap: 14px; }
  .pg-tiles { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .pg-tile { aspect-ratio: 1; border-radius: 12px; box-shadow: 0 4px 0 rgba(0, 0, 0, .14); }
  .pg-tile b { font-size: 22px; }
  .pg-tile small { display: none; }
  .pg-text { font-size: 15px; }
  .pg-copy { align-items: center; }
  .pg-pill { align-self: center; }
  .pg-chips { justify-content: center; }
  .pg-cta { flex-direction: column; }
  .pg-title { font-size: 32px; }
}
@media (max-width: 340px) {
  .lost-grid { grid-template-columns: 1fr; }
}

/* wide screens: 90% page width, keep cards a sensible size */
@media (min-width: 1500px) {
  .lost-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .recent-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hero h1 { font-size: 72px; }
  .hero-row { min-height: 380px; }
}

/* scanner viewfinder */
.scan-view { position: relative; }
.scan-frame { position: absolute; inset: 10%; border: 3px solid rgba(255,255,255,.9); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.25); pointer-events: none; }
.scan-frame::after { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: #ff5a4e; box-shadow: 0 0 8px #ff5a4e; animation: scanLine 1.8s ease-in-out infinite; }
@keyframes scanLine { 0%, 100% { top: 12%; } 50% { top: 88%; } }
.scan-view { overflow: hidden; border-radius: 12px; }

/* hero: more kinds of pets fill the space beside the dog and cat */
.hero { --hh: 340px; }
.hero-row { min-height: var(--hh); }
@media (min-width: 1181px) { .hero-row { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); column-gap: 20px; } }
@media (min-width: 901px) and (max-width: 1180px) { .hero { --hh: 300px; } }
.hero-art { container-type: inline-size; height: var(--hh); align-self: end; }
.hero-pets { --b: 112px; list-style: none; margin: 0; padding: 0; position: absolute; top: 50%; right: calc(var(--hh) * 1.682 - 80px); transform: translateY(-58%); display: none; grid-template-columns: repeat(3, var(--b)); gap: 12px 16px; z-index: 1; }
.hero-pets li { display: flex; flex-direction: column; align-items: center; gap: 6px; animation: hpIn .6s ease-out both; }
.hero-pets li:nth-child(3n+2) { transform: translateY(40%); }
.hero-pets li:nth-child(2) { animation-delay: .08s; } .hero-pets li:nth-child(3) { animation-delay: .16s; } .hero-pets li:nth-child(4) { animation-delay: .24s; } .hero-pets li:nth-child(5) { animation-delay: .32s; } .hero-pets li:nth-child(6) { animation-delay: .4s; }
.hp-img { width: var(--b); height: var(--b); border-radius: 50%; background: #fff; box-shadow: 0 10px 26px rgba(6, 63, 61, .14); border: 4px solid #fff; display: grid; place-items: center; overflow: hidden; }
.hp-img img { width: 80%; height: 80%; object-fit: contain; }
.hp-name { font: 700 14px/1.1 Inter, sans-serif; color: var(--teal-900); background: rgba(255, 255, 255, .9); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.hp-more .hp-img { background: var(--teal-700); color: #fff; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.hp-more b { font: 800 18px/1.1 Outfit, Inter, sans-serif; }
.hp-more small { font: 600 13px/1.2 Inter, sans-serif; opacity: .9; }
@keyframes hpIn { from { opacity: 0; scale: .8; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-pets li { animation: none; } }
@media (min-width: 1500px) { .hero { --hh: 420px; } }
/* only when there is free room beside the photo (wide screens) */
@container (min-width: 820px) { .hero-pets { display: grid; --b: 96px; grid-template-columns: repeat(2, var(--b)); } .hero-pets li:nth-child(3n+2) { transform: none; } .hero-pets li:nth-child(even) { transform: translateY(40%); } .hero-pets li:nth-child(n+5) { display: none; } .hp-name { font-size: 13px; } }
@container (min-width: 960px) { .hero-pets { --b: 112px; grid-template-columns: repeat(3, var(--b)); } .hero-pets li:nth-child(even) { transform: none; } .hero-pets li:nth-child(3n+2) { transform: translateY(40%); } .hero-pets li:nth-child(n+5) { display: flex; } }
@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { container-type: normal; height: auto; display: flex; flex-direction: column; }
  .hero-art img.hero-photo { position: relative; left: auto; right: auto; transform: none; height: 240px; margin: 0 auto; order: 2; }
  .hero-pets { display: grid; position: static; transform: none; --b: 60px; grid-template-columns: repeat(6, var(--b)); justify-content: center; gap: 8px; margin: 2px 0 10px; order: 1; }
  .hero-pets li:nth-child(n) { transform: none; display: flex; }
  .hp-name { display: none; }
  .hp-img { border-width: 3px; }
  .hp-more b { font-size: 11px; } .hp-more small { font-size: 9.5px; }
}
@media (max-width: 600px) {
  .hero-art img.hero-photo { height: 200px; }
  .hero-pets { --b: 48px; gap: 6px; }
  .hp-more b { font-size: 9.5px; } .hp-more small { display: none; }
}

/* ===== Update 23: bigger, easier-to-read text on phones ===== */
@media (max-width: 600px) {
  .search input { font-size: 16px; }
  .hero-actions .btn { font-size: 15.5px; }
  .svc span:last-child { font-size: 14.5px; }
  .recent-body small { font-size: 14px; }
  .lost-body .row { font-size: 14.5px; }
  .lost-body .btn-ghost { font-size: 15px; }
  .badge-lost { font-size: 13.5px; }
  .vp-pill, .vp-bubble { font-size: 13.5px; }
  .vp-chips span { font-size: 14.5px; }
  .vp-sub { font-size: 14px; }
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .hero-pets { --b: 52px; }
  .hp-more b { font-size: 11px; }
}
@media (max-width: 480px) {
  .lost-grid { grid-template-columns: 1fr; }
}


/* Homepage QR-tag explainer and hero callout. */
.home-qr-info {
  margin-top: 16px;
  padding: 13px 16px 15px;
  border: 1px solid #bddedb;
  border-radius: 13px;
  color: var(--teal-900);
  background: #f7fdfd;
}
.home-qr-info h2 {
  margin: 0 0 4px;
  font: 700 22px/1.15 Outfit, Inter, sans-serif;
}
.home-qr-info p {
  margin: 0;
  font-size: 15px;
  line-height: 1.48;
}
.home-qr-info ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}
.home-qr-info li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}
.home-qr-info li svg,
.home-qr-callout svg {
  flex: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-art:has(.home-qr-art) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 12px;
  height: auto;
  align-self: stretch;
  container-type: inline-size;
  padding-block: 16px 18px;
}
.hero-art:has(.home-qr-art) .hero-pets {
  --b: clamp(36px, 13cqw, 68px);
  position: static;
  display: grid;
  grid-template-columns: repeat(6, var(--b));
  justify-content: center;
  align-self: center;
  gap: 8px;
  margin: 0;
  transform: none;
}
.hero-art:has(.home-qr-art) .hero-pets li:nth-child(n) {
  display: flex;
  transform: none;
}
.hero-art:has(.home-qr-art) .hp-img {
  border-width: 3px;
}
.hero-art:has(.home-qr-art) .hp-img img {
  width: 100%;
  height: 100%;
}
.hero-art:has(.home-qr-art) .hp-name {
  position: absolute;
  display: block;
  clip-path: inset(50%);
}
.hero-art:has(.home-qr-art) .hp-more b {
  font-size: clamp(9px, 2cqw, 14px);
}
.hero-art:has(.home-qr-art) .hp-more small {
  display: block;
  font-size: clamp(7px, 1.6cqw, 11px);
}
.home-qr-art {
  position: relative;
  justify-self: center;
  width: min(calc(100% - 24px), 650px);
  padding-bottom: 48px;
}
.hero-art .home-qr-art img.hero-photo {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transform: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 90%, transparent),
    linear-gradient(#000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 90%, transparent),
    linear-gradient(#000 94%, transparent);
  mask-composite: intersect;
}
.home-qr-arrow {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  fill: none;
  stroke: white;
  stroke-width: 19;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-qr-arrow path + path {
  stroke: var(--teal-700);
  stroke-width: 9;
}
.home-qr-callout {
  position: absolute;
  bottom: 0;
  right: clamp(18px, 9%, 64px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px 9px 10px;
  border-radius: 999px;
  background: var(--teal-700);
  color: white;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.home-qr-callout:hover,
.home-qr-callout:focus-visible {
  background: var(--teal-800);
  color: white;
}
.home-qr-callout svg {
  width: 25px;
  height: 25px;
  padding: 4px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-900);
}
@media (min-width: 1700px) {
  .hero-art:has(.home-qr-art) {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.5fr);
    align-items: center;
    gap: 0;
  }
  .hero-art:has(.home-qr-art) .hero-pets {
    --b: clamp(88px, 6.3vw, 146px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 12px;
    transform: translateX(clamp(14px, 2.35vw, 45px));
  }
  .hero-art:has(.home-qr-art) .hero-pets li:nth-child(3n+2) {
    transform: translateY(23%);
  }
  .hero-art:has(.home-qr-art) .hp-name {
    position: static;
    clip-path: none;
  }
  .hero-art:has(.home-qr-art) .hp-more b { font-size: 20px; }
  .hero-art:has(.home-qr-art) .hp-more small { font-size: 14px; }
  .home-qr-art {
    justify-self: end;
    width: min(113%, 910px);
  }
  .home-qr-callout {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .home-qr-info { padding-inline: 12px; }
  .home-qr-info h2 { font-size: 20px; }
  .home-qr-info ul { column-gap: 10px; }
  .home-qr-callout { right: max(5px, calc(31% - 105px)); }
}
