/* PetGuard landing — playful take on the brand tokens (tokens.css).
   Mobile first; from 960px it opens up to a wide layout. */

:root {
  --sun: #ffc53d;
  --sun-soft: #fff1c7;
  --coral: #ff7a59;
  --coral-soft: #ffe3da;
  --pink: #ffd6e0;
  --mint: #d4f3ea;
  --sky: #dbeeff;
  --cream: #fffaf1;
  --navy: var(--pg-primary);
  --navy-deep: var(--pg-primary-deep);
  --ink: var(--pg-ink);
  --ink-soft: var(--pg-ink-soft);
  --font-fun: "Baloo 2", "Onest", system-ui, sans-serif;
  --font-body: var(--pg-font-body);
  --wrap: 1200px;
  --gutter: 20px;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-fun); line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
p { line-height: 1.6; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn-fun, .btn-soft {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-fun); font-weight: 700; text-decoration: none;
  border-radius: 999px; border: none; cursor: pointer;
  transition: transform 0.25s var(--bounce), box-shadow 0.25s ease, background 0.2s ease;
}
.btn-fun {
  background: var(--navy); color: #fff;
  box-shadow: 0 5px 0 var(--navy-deep), 0 14px 26px -12px rgba(15, 76, 115, 0.6);
}
.btn-fun:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 7px 0 var(--navy-deep), 0 18px 30px -12px rgba(15, 76, 115, 0.6); }
.btn-fun:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--navy-deep); }
.btn-fun span { transition: transform 0.25s var(--bounce); }
.btn-fun:hover span { transform: translateX(4px); }
.btn-soft { background: var(--sun-soft); color: var(--navy-deep); }
.btn-soft:hover { background: var(--sun); transform: translateY(-2px) rotate(1deg); }
.btn-sm { font-size: 15px; padding: 9px 18px 7px; }
.btn-lg { font-size: 18px; padding: 15px 28px 13px; }
.btn-on-color { background: #fff; color: var(--navy); box-shadow: 0 5px 0 rgba(8, 46, 71, 0.35); }
.btn-on-color:hover { box-shadow: 0 7px 0 rgba(8, 46, 71, 0.35); }

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

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  transition: box-shadow 0.25s ease;
}
.nav.scrolled { box-shadow: 0 8px 24px -18px rgba(22, 35, 43, 0.45); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--font-fun); font-weight: 800; font-size: 22px; color: var(--navy); }
.nav-brand img { width: 34px; height: 34px; transition: transform 0.4s var(--bounce); }
.nav-brand:hover img { transform: rotate(-12deg) scale(1.08); }
.nav-links { display: none; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px; background: var(--sun); transform: scaleX(0); transition: transform 0.25s var(--bounce); }
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login { text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--navy); white-space: nowrap; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 26px 0 56px; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob-a { width: 420px; height: 420px; right: -160px; top: 20px; background: radial-gradient(circle at 30% 30%, var(--sun-soft), transparent 70%); }
.blob-b { width: 340px; height: 340px; left: -150px; bottom: -80px; background: radial-gradient(circle at 60% 40%, var(--mint), transparent 70%); }
.paw-trail {
  position: absolute; left: 41%; bottom: 6%; width: 200px; height: 200px; opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%230F4C73'%3E%3Cellipse cx='32' cy='42' rx='12' ry='10'/%3E%3Cellipse cx='16' cy='28' rx='5' ry='7'/%3E%3Cellipse cx='26' cy='18' rx='5' ry='7'/%3E%3Cellipse cx='38' cy='18' rx='5' ry='7'/%3E%3Cellipse cx='48' cy='28' rx='5' ry='7'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 34px 34px; background-repeat: space; transform: rotate(-18deg);
  -webkit-mask-image: linear-gradient(135deg, #000 20%, transparent 70%); mask-image: linear-gradient(135deg, #000 20%, transparent 70%);
  display: none;
}
.hero-grid { position: relative; display: grid; gap: 34px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--navy); background: #fff; padding: 7px 14px; border-radius: 999px; box-shadow: 0 6px 16px -10px rgba(22, 35, 43, 0.35); }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pg-teal); box-shadow: 0 0 0 0 rgba(12, 147, 160, 0.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(12, 147, 160, 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(12, 147, 160, 0); } }
.hero-title { font-size: clamp(44px, 11vw, 84px); font-weight: 800; color: var(--navy-deep); margin-top: 18px; letter-spacing: -0.02em; }
.scribble { position: relative; z-index: 0; color: var(--coral); white-space: nowrap; display: inline-block; }
.scribble::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.06em; height: 0.3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16 C 60 4, 110 22, 160 12 S 250 6, 296 14' fill='none' stroke='%23FFC53D' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  z-index: -1; transform-origin: left; animation: draw 0.9s 0.5s var(--bounce) both;
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-lede { font-size: clamp(16.5px, 2.4vw, 19.5px); color: var(--ink-soft); margin: 18px 0 0; max-width: 540px; }
.hero-lede strong { color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-ctas a { flex: 1 1 auto; }
.hero-proof { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); color: var(--pg-teal); font-size: 12px; font-weight: 800; margin-right: 4px; }

.hero-art { position: relative; z-index: 0; padding: 18px 8px 40px; }
.hero-photo {
  position: relative; overflow: hidden;
  border-radius: 46% 54% 44% 56% / 55% 45% 55% 45%;
  border: 6px solid #fff;
  box-shadow: 0 30px 60px -28px rgba(15, 76, 115, 0.55);
  animation: morph 12s ease-in-out infinite;
  aspect-ratio: 1168 / 784;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes morph {
  0%, 100% { border-radius: 46% 54% 44% 56% / 55% 45% 55% 45%; }
  50% { border-radius: 56% 44% 52% 48% / 45% 55% 45% 55%; }
}
.hero-art::before { content: ""; position: absolute; inset: 6% -2% 10% 6%; background: var(--sun); border-radius: 50% 45% 55% 50%; transform: rotate(-6deg); z-index: -1; opacity: 0.85; }

.sticker { position: absolute; background: #fff; border-radius: 18px; box-shadow: 0 16px 34px -16px rgba(22, 35, 43, 0.45); font-weight: 600; }
.sticker-notif { left: -4px; bottom: 6px; display: flex; gap: 10px; align-items: center; padding: 11px 14px 11px 11px; max-width: 250px; transform: rotate(-3deg); }
.notif-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: #2aabee; display: grid; place-items: center; }
.notif-app { margin: 0; font-size: 10.5px; color: var(--pg-ink-faint); font-weight: 600; line-height: 1.3; }
.notif-title { margin: 0; white-space: nowrap; font-size: 14px; color: var(--ink); line-height: 1.3; font-weight: 700; }
.notif-sub { margin: 0; font-size: 12px; color: var(--pg-teal); line-height: 1.3; }
.sticker-qr { right: 2px; top: -2px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 12px 8px; font-family: var(--font-fun); font-size: 14px; color: var(--navy); transform: rotate(8deg); }
.mini-qr {
  width: 52px; height: 52px; border-radius: 6px;
  background:
    linear-gradient(var(--navy), var(--navy)) 0 0 / 16px 16px no-repeat,
    linear-gradient(var(--navy), var(--navy)) 100% 0 / 16px 16px no-repeat,
    linear-gradient(var(--navy), var(--navy)) 0 100% / 16px 16px no-repeat,
    repeating-conic-gradient(var(--navy) 0 25%, #fff 0 50%) 50% 50% / 8px 8px;
  box-shadow: inset 0 0 0 3px #fff;
}
.sticker-lock { right: 6%; bottom: -6px; padding: 9px 14px; font-size: 13px; color: var(--navy-deep); background: var(--mint); transform: rotate(4deg); }

.float-1 { animation: float 5s ease-in-out infinite; }
.float-2 { animation: float 6s ease-in-out 0.8s infinite; }
.float-3 { animation: float 5.5s ease-in-out 1.6s infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- marquee ---------- */
.marquee-outer { overflow: hidden; padding: 14px 0 22px; margin-top: -22px; position: relative; z-index: 2; }
.marquee { background: var(--navy); color: #fff; overflow: hidden; transform: rotate(-1.5deg); margin: 0 -12px; padding: 14px 0; box-shadow: 0 14px 30px -20px rgba(8, 46, 71, 0.8); position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marquee 32s linear infinite; font-family: var(--font-fun); font-weight: 700; font-size: 18px; white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 84px 0; position: relative; }
.section-cream { background: var(--cream); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head h2, .notif-copy h2, .lost-copy h2 { font-size: clamp(34px, 6.4vw, 56px); font-weight: 800; color: var(--navy-deep); margin-top: 14px; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 14px 0 0; }
.eyebrow { display: inline-block; font-family: var(--font-fun); font-weight: 700; font-size: 14px; padding: 5px 14px 3px; border-radius: 999px; transform: rotate(-2deg); }
.eyebrow-teal { background: var(--mint); color: #08707a; }
.eyebrow-coral { background: var(--coral-soft); color: #b34322; }
.eyebrow-yellow { background: var(--sun); color: var(--navy-deep); }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.nowrap { white-space: nowrap; }
.hl::before { content: ""; position: absolute; left: -4px; right: -4px; bottom: 0.08em; height: 0.42em; border-radius: 8px; z-index: -1; transform: rotate(-1.2deg); }
.hl-yellow::before { background: var(--sun); }
.hl-mint::before { background: var(--mint); }
.hl-pink::before { background: var(--pink); }
.hl-coral-dark { color: var(--sun); }
.hl-coral-dark::before { display: none; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; }
.step { position: relative; background: #fff; border-radius: 28px; padding: 22px 22px 26px; box-shadow: 0 20px 44px -30px rgba(22, 35, 43, 0.5); border: 2px solid #f1f4f6; transition: transform 0.35s var(--bounce); }
.step:hover { transform: translateY(-6px) rotate(-0.6deg); }
.step:nth-child(2):hover { transform: translateY(-6px) rotate(0.6deg); }
.step-num { position: absolute; top: -16px; left: 22px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-fun); font-weight: 800; font-size: 24px; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.08); z-index: 2; }
.num-yellow { background: var(--sun); color: var(--navy-deep); }
.num-teal { background: var(--pg-teal); color: #fff; }
.num-coral { background: var(--coral); color: #fff; }
.step-art { height: 190px; border-radius: 20px; overflow: hidden; margin-bottom: 18px; }
.step-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.step:hover .step-art img { transform: scale(1.05); }
.art-profile { background: linear-gradient(135deg, var(--sun-soft), var(--pink)); display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 22px; }
.mini-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 10px 20px -14px rgba(22, 35, 43, 0.4); transform: rotate(-2deg); }
.mini-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; font-size: 26px; }
.mini-card b { display: block; font-family: var(--font-fun); font-size: 19px; color: var(--navy-deep); line-height: 1.1; }
.mini-card small { color: var(--ink-soft); font-size: 12.5px; }
.mini-lines { display: grid; gap: 8px; padding: 0 6px; }
.mini-lines i { display: block; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.85); }
.mini-lines i.short { width: 60%; }
.step h3 { font-size: 26px; color: var(--navy-deep); font-weight: 800; }
.step p { margin: 8px 0 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- notifications band ---------- */
.band-navy { background: var(--navy); color: #fff; padding: 110px 0; }
.band-wave { position: absolute; left: 0; right: 0; height: 48px; background-repeat: repeat-x; background-size: 120px 48px; }
.band-wave-top { top: -1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48'%3E%3Cpath d='M0 0h120v18c-30 0-30 22-60 22S30 18 0 18Z' fill='%23ffffff'/%3E%3C/svg%3E"); }
.band-wave-bottom { bottom: -1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48'%3E%3Cpath d='M0 48h120V30c-30 0-30-22-60-22S30 30 0 30Z' fill='%23ffffff'/%3E%3C/svg%3E"); }
.notif-grid { display: grid; gap: 48px; align-items: center; }
.notif-copy h2 { color: #fff; }
.notif-copy > p { color: rgba(255, 255, 255, 0.82); font-size: 17px; margin: 16px 0 0; max-width: 520px; }
.perk-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.perk-list li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, 0.07); border-radius: 18px; padding: 13px 16px; font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); transition: background 0.2s ease, transform 0.3s var(--bounce); }
.perk-list li:hover { background: rgba(255, 255, 255, 0.13); transform: translateX(6px); }
.perk-list b { color: #fff; }
.perk-ico { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 19px; }

.phone { position: relative; margin: 0 auto; width: 100%; max-width: 340px; background: #fff; color: var(--ink); border-radius: 44px; padding: 16px 12px 18px; box-shadow: 0 0 0 10px #0a3352, 0 40px 80px -30px rgba(0, 0, 0, 0.6); transform: rotate(2.5deg); }
.phone-notch { width: 96px; height: 24px; background: #0a3352; border-radius: 0 0 16px 16px; margin: -16px auto 8px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; border-bottom: 1px solid #eef1f3; }
.chat-head b { display: block; font-size: 14.5px; }
.chat-head small { color: var(--pg-ink-faint); font-size: 11.5px; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-size: 19px; }
.chat-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 4px 4px; min-height: 360px; background: linear-gradient(180deg, #f3f8fb, #fff); border-radius: 0 0 30px 30px; }
.bubble { align-self: flex-start; max-width: 88%; background: #fff; border-radius: 4px 18px 18px 18px; padding: 9px 12px; font-size: 13.5px; line-height: 1.45; box-shadow: 0 4px 10px -6px rgba(22, 35, 43, 0.35); }
.bubble-map { display: flex; gap: 10px; align-items: center; background: var(--mint); }
.map-pin { width: 36px; height: 36px; border-radius: 10px; background: #fff; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.bubble-map u { color: #08707a; font-weight: 600; }
.bubble-me { align-self: flex-end; background: var(--navy); color: #fff; border-radius: 18px 4px 18px 18px; font-weight: 600; }
/* Bubbles pop in one by one when the phone scrolls into view (JS adds .play). */
.js .chat-body .bubble { opacity: 0; transform: translateY(10px) scale(0.92); }
.js .chat-body.play .bubble { animation: pop 0.45s var(--bounce) forwards; }
.js .chat-body.play .bubble:nth-child(1) { animation-delay: 0.2s; }
.js .chat-body.play .bubble:nth-child(2) { animation-delay: 1s; }
.js .chat-body.play .bubble:nth-child(3) { animation-delay: 1.8s; }
.js .chat-body.play .bubble:nth-child(4) { animation-delay: 2.6s; }
.js .chat-body.play .bubble:nth-child(5) { animation-delay: 3.8s; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* ---------- lost mode demo ---------- */
.lost-grid { display: grid; gap: 40px; align-items: center; }
.lost-copy > p { color: var(--ink-soft); font-size: 17px; margin: 16px 0 0; max-width: 520px; }
.lost-try { font-family: var(--font-fun); font-weight: 700; font-size: 20px; color: var(--coral) !important; margin-top: 22px !important; }
.lost-toggle { display: inline-flex; background: #f1f4f6; border-radius: 999px; padding: 5px; margin-top: 10px; gap: 4px; }
.lost-toggle button, .billing-switch button {
  border: none; background: none; cursor: pointer; font-family: var(--font-fun); font-weight: 700; font-size: 16px;
  padding: 10px 20px 8px; border-radius: 999px; color: var(--ink-soft); transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--bounce);
}
.lost-toggle button.active { background: #fff; color: var(--navy-deep); box-shadow: 0 6px 14px -8px rgba(22, 35, 43, 0.45); }
.lost-toggle button[data-lost="true"].active { background: var(--coral); color: #fff; }
.lost-toggle button:hover:not(.active) { transform: translateY(-1px); color: var(--navy); }

.demo-wrap { display: grid; place-items: center; padding: 10px 0; }
.demo-card { width: 100%; max-width: 370px; background: #fff; border-radius: 30px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(22, 35, 43, 0.55); border: 3px solid #fff; transform: rotate(-1.5deg); transition: transform 0.4s var(--bounce), box-shadow 0.4s ease, border-color 0.3s ease; }
.demo-banner { background: var(--coral); color: #fff; padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height 0.45s var(--bounce), padding 0.3s ease; }
.demo-banner b { display: block; font-family: var(--font-fun); font-size: 19px; }
.demo-banner small { font-size: 13px; opacity: 0.92; }
.demo-photo { height: 190px; background: linear-gradient(135deg, var(--sky), var(--mint)); display: grid; place-items: center; font-size: 92px; transition: background 0.4s ease; }
.demo-photo span { display: inline-block; transition: transform 0.5s var(--bounce); }
.demo-body { padding: 18px 20px 22px; }
.demo-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.demo-name h3 { font-size: 32px; font-weight: 800; color: var(--navy-deep); }
.demo-status { font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--mint); color: #08707a; white-space: nowrap; }
.demo-meta { margin: 2px 0 0; color: var(--ink-soft); font-size: 14px; }
.demo-note { margin: 12px 0 0; font-size: 14.5px; background: #f6f8fa; border-radius: 14px; padding: 10px 12px; }
.demo-btn { margin-top: 16px; width: 100%; border: none; border-radius: 999px; padding: 13px 16px 11px; font-family: var(--font-fun); font-weight: 700; font-size: 17px; background: var(--pg-teal); color: #fff; cursor: default; transition: background 0.3s ease; }
.demo-card.lost { transform: rotate(1.5deg) scale(1.02); border-color: var(--coral); box-shadow: 0 30px 60px -26px rgba(193, 66, 28, 0.6); }
.demo-card.lost .demo-banner { max-height: 120px; padding: 14px 18px; }
.demo-card.lost .demo-photo { background: linear-gradient(135deg, var(--coral-soft), var(--pink)); }
.demo-card.lost .demo-photo span { transform: rotate(-8deg) scale(0.92); }
.demo-card.lost .demo-status { background: var(--coral-soft); color: #a63a1b; }
.demo-card.lost .demo-btn { background: var(--coral); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* ---------- bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tile { position: relative; border-radius: 28px; padding: 26px 24px; overflow: hidden; transition: transform 0.35s var(--bounce); }
.tile:hover { transform: translateY(-5px) rotate(-0.5deg); }
.tile h3 { font-size: 25px; font-weight: 800; color: var(--navy-deep); margin-top: 12px; }
.tile p { margin: 8px 0 0; font-size: 15.5px; color: var(--ink-soft); }
.tile-emoji { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: #fff; font-size: 28px; box-shadow: 0 8px 18px -12px rgba(22, 35, 43, 0.5); transition: transform 0.4s var(--bounce); }
.tile:hover .tile-emoji { transform: rotate(-12deg) scale(1.1); }
.tile-navy { background: var(--navy); }
.tile-navy h3 { color: #fff; }
.tile-navy p { color: rgba(255, 255, 255, 0.82); }
.tile-yellow { background: var(--sun-soft); }
.tile-pink { background: var(--pink); }
.tile-mint { background: var(--mint); }
.tile-sky { background: var(--sky); }
.tile-coral { background: var(--coral-soft); }
.tile-ghost { background: #fff; border: 2.5px dashed #c9d6de; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tg { position: relative; font-size: 13px; font-weight: 600; padding: 7px 12px 7px 40px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.65); }
.tg::before { content: ""; position: absolute; left: 8px; top: 50%; width: 24px; height: 14px; margin-top: -7px; border-radius: 99px; background: rgba(255, 255, 255, 0.25); }
.tg::after { content: ""; position: absolute; left: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #fff; transition: left 0.3s var(--bounce); }
.tg.on { color: #fff; background: rgba(255, 255, 255, 0.16); }
.tg.on::before { background: var(--sun); }
.tg.on::after { left: 20px; }
.tile-link { display: inline-block; margin-top: 14px; font-family: var(--font-fun); font-weight: 700; font-size: 17px; color: #b34322; text-decoration: none; }
.tile-link:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.tile-wide { display: flex; gap: 18px; align-items: center; }
.tile-wide h3 { margin-top: 0; }
.soon { display: inline-block; vertical-align: middle; font-family: var(--font-body); font-size: 12px; font-weight: 700; background: var(--sun); color: var(--navy-deep); padding: 2px 9px; border-radius: 999px; margin-right: 4px; transform: rotate(-3deg); }

/* ---------- pricing ---------- */
.billing-switch { display: flex; width: fit-content; margin: -14px auto 40px; background: #f1f4f6; border-radius: 999px; padding: 5px; gap: 4px; }
.billing-switch button { display: inline-flex; align-items: center; gap: 8px; }
.billing-switch button.active { background: var(--navy); color: #fff; box-shadow: 0 6px 14px -8px rgba(15, 76, 115, 0.7); }
.save-badge { font-family: var(--font-body); font-size: 11px; font-weight: 700; background: var(--sun); color: var(--navy-deep); padding: 3px 8px; border-radius: 999px; transform: rotate(-4deg); }
.plans { display: grid; gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 30px; padding: 30px 26px 28px; border: 2.5px solid #eef2f4; transition: transform 0.35s var(--bounce), box-shadow 0.3s ease; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(22, 35, 43, 0.5); }
.plan-emoji { font-size: 40px; line-height: 1; }
.plan h3 { font-size: 30px; font-weight: 800; color: var(--navy-deep); margin-top: 10px; }
.plan-tag { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }
.plan-price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-amount { font-family: var(--font-fun); font-weight: 800; font-size: 50px; line-height: 1; color: var(--navy-deep); }
.plan-period { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.plan-sub { min-height: 22px; margin: 6px 0 0; font-size: 13.5px; color: #08707a; font-weight: 600; }
.plan-pets { margin: 18px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--cream); font-weight: 700; font-size: 15.5px; color: var(--navy-deep); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 9px; font-size: 15px; color: var(--ink-soft); }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li::before { content: "✓"; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); color: var(--pg-teal); font-size: 11px; font-weight: 800; display: grid; place-items: center; margin-top: 2px; }
.plan .btn-fun, .plan .btn-soft { margin-top: auto; width: 100%; }
.plan-featured { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 30px 60px -30px rgba(15, 76, 115, 0.8); }
.plan-featured h3, .plan-featured .plan-amount { color: #fff; }
.plan-featured .plan-tag, .plan-featured .plan-period, .plan-featured ul { color: rgba(255, 255, 255, 0.82); }
.plan-featured .plan-sub { color: var(--sun); }
.plan-featured .plan-pets { background: rgba(255, 255, 255, 0.1); color: #fff; }
.plan-featured li::before { background: var(--sun); color: var(--navy-deep); }
.plan-featured .btn-fun { background: var(--sun); color: var(--navy-deep); box-shadow: 0 5px 0 #d79d12; }
.plan-ribbon { position: absolute; top: -15px; right: 22px; background: var(--coral); color: #fff; font-family: var(--font-fun); font-weight: 700; font-size: 14px; padding: 6px 14px 4px; border-radius: 999px; transform: rotate(4deg); box-shadow: 0 6px 14px -6px rgba(193, 66, 28, 0.6); }
.plan-amount.bump { animation: bump 0.45s var(--bounce); }
@keyframes bump { 0% { transform: scale(0.85); opacity: 0.4; } 100% { transform: none; opacity: 1; } }
.plans-note { text-align: center; color: var(--pg-ink-faint); font-size: 13.5px; margin: 28px auto 0; max-width: 620px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 22px; padding: 4px 22px; box-shadow: 0 10px 26px -22px rgba(22, 35, 43, 0.6); border: 2px solid transparent; transition: border-color 0.2s ease; }
.faq details[open] { border-color: var(--sun); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 0; font-family: var(--font-fun); font-weight: 700; font-size: 19px; color: var(--navy-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--sun-soft); display: grid; place-items: center; font-size: 22px; transition: transform 0.3s var(--bounce), background 0.2s ease; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--sun); }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- final CTA ---------- */
.final-cta { padding: 90px 0 70px; }
.cta-box { position: relative; overflow: hidden; text-align: center; border-radius: 40px; padding: 60px 24px; background: linear-gradient(120deg, var(--pg-teal), var(--navy)); color: #fff; box-shadow: 0 40px 70px -40px rgba(15, 76, 115, 0.9); }
.cta-box h2 { font-size: clamp(34px, 6vw, 58px); font-weight: 800; position: relative; }
.cta-box p { font-size: 17.5px; color: rgba(255, 255, 255, 0.86); margin: 14px auto 28px; max-width: 520px; position: relative; }
.cta-box .btn-fun { position: relative; }
.cta-paw { position: absolute; font-size: 64px; opacity: 0.16; }
.cta-paw.p1 { left: 4%; top: 12%; transform: rotate(-24deg); }
.cta-paw.p2 { right: 6%; top: 18%; transform: rotate(18deg); font-size: 84px; }
.cta-paw.p3 { left: 22%; bottom: -10px; transform: rotate(10deg); font-size: 48px; }

/* ---------- footer ---------- */
.footer { background: var(--cream); padding: 36px 0 26px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-fun); font-weight: 800; font-size: 21px; color: var(--navy); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.footer-links a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 14.5px; }
.footer-links a:hover { color: var(--navy); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--navy); box-shadow: 0 6px 14px -10px rgba(22, 35, 43, 0.5); transition: transform 0.3s var(--bounce), background 0.2s ease, color 0.2s ease; }
.footer-social a:hover { transform: translateY(-3px) rotate(-8deg); background: var(--navy); color: #fff; }
.footer-copy { text-align: center; color: var(--pg-ink-faint); font-size: 13px; margin: 22px 0 0; }

/* ---------- scroll reveal (JS adds .js to <html>) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s var(--bounce); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- small phones ---------- */
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .nav-login { display: none; }
  .btn-lg { font-size: 16.5px; padding: 14px 22px 12px; }
  .sticker-notif { max-width: 215px; }
  .lost-toggle button { padding: 9px 14px 7px; font-size: 15px; }
  .billing-switch button { padding: 9px 14px 7px; font-size: 15px; }
}

/* ---------- tablet ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero-ctas a { flex: 0 0 auto; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-big, .tile-wide { grid-column: span 2; }
  .plans { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .plan-amount { font-size: 42px; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

/* ---------- desktop, wide ---------- */
@media (min-width: 960px) {
  :root { --gutter: 40px; }
  .nav-links { display: flex; }
  .hero { padding: 54px 0 96px; }
  .paw-trail { display: block; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero-art { padding: 30px 10px 50px 30px; }
  .sticker-notif { left: -30px; bottom: 18px; max-width: 270px; }
  .sticker-qr { right: -10px; top: 0; }
  .section { padding: 110px 0; }
  .band-navy { padding: 150px 0; }
  .notif-grid { grid-template-columns: 1.1fr 0.9fr; gap: 70px; }
  .phone { max-width: 360px; }
  .lost-grid { grid-template-columns: 1fr 1fr; gap: 70px; }
  .bento { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .tile-big { grid-column: span 2; }
  .tile-wide { grid-column: 1 / -1; padding: 24px 28px; }
  .tile { padding: 30px 28px; }
  .plans { gap: 26px; }
  .plan { padding: 36px 32px 32px; }
  .plan-amount { font-size: 54px; }
  .plan-featured { transform: translateY(-14px); }
  .plan-featured:hover { transform: translateY(-20px); }
  .cta-box { padding: 84px 40px; }
}

@media (min-width: 1400px) {
  :root { --wrap: 1280px; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .chat-body .bubble { opacity: 1; transform: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; gap: 12px 30px; padding: 0 16px; }
  .marquee-track [aria-hidden="true"] { display: none; }
}
