/* =========================================================
   ScoobyPaw AI landing page (templates/portal/landing.html)
   Same design system as the Scoobycares landing (static/css/landing.css):
   Inter, navy ink, deep blue accents, pale blue sections, navy footer.
========================================================= */

:root {
    --blue: #67b7e8;
    --blue-dark: #0f6fa8;
    --blue-deep: #0c5f94;
    --blue-soft: #eaf7ff;
    --blue-pale: #f5fbff;
    --white: #ffffff;
    --ink: #102033;
    --ink-soft: #24364a;
    --muted: #52627a;
    --muted-light: #66768c;
    --green: #2fa66a;
    --green-soft: #eaf8f0;
    --orange: #e9a23b;
    --orange-soft: #fff5e5;
    --border: #dfeaf2;
    --border-light: #edf3f7;
    --shadow-xs: 0 2px 8px rgba(22, 71, 103, .04);
    --shadow-sm: 0 8px 25px rgba(22, 71, 103, .07);
    --shadow-md: 0 18px 45px rgba(22, 71, 103, .10);
    --shadow-lg: 0 28px 70px rgba(22, 71, 103, .14);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--white); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
:focus-visible { outline: 3px solid rgba(15, 111, 168, .35); outline-offset: 2px; border-radius: 6px; }
.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }

/* ---------- buttons (same as Scoobycares) ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
    border: 0; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: var(--blue-dark); box-shadow: 0 8px 18px rgba(15, 111, 168, .22); }
.btn-primary:hover { background: var(--blue-deep); box-shadow: 0 12px 25px rgba(15, 111, 168, .28); }
.btn-secondary { color: var(--ink); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { border-color: #b9d8e9; background: var(--blue-pale); }
.btn-small { min-height: 39px; padding: 0 16px; font-size: 13px; }
.btn-large { min-height: 52px; padding: 0 23px; border-radius: 13px; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(223, 234, 242, .85); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.nav { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; border-radius: 10px; }
.brand strong { display: block; white-space: nowrap; font-size: 17px; font-weight: 600; letter-spacing: -.3px; line-height: 1.1; }
.brand small { display: block; font-size: 12px; color: var(--muted-light); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover { color: var(--blue-dark); }
.nav-actions { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 500; }
.nav-actions .signin { color: var(--ink-soft); }
.nav-actions .signin:hover { color: var(--blue-dark); }
@media (max-width: 960px) { .nav-links { display: none; } .nav-actions { margin-left: auto; } }
@media (max-width: 420px) { .nav-actions .signin { display: none; } .brand small { display: none; } }

/* ---------- section basics ---------- */
.section { padding: 96px 0; }
.section-pale { background: var(--blue-pale); }
.section-heading { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-label { color: var(--blue-dark); font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }
.section-heading h2, .split h2, .cta h2 {
    margin: 14px 0 16px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.16; letter-spacing: -1px; font-weight: 600;
}
.section-heading h2 span, .split h2 span, .cta h2 span, .hero h1 span { color: var(--blue-dark); }
.section-heading p, .split-text > p, .cta p.lead { color: var(--muted); font-size: 15px; line-height: 1.75; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 84px; background: linear-gradient(135deg, #fafdff 0%, #f3faff 48%, #ffffff 100%); }
.shape { position: absolute; border-radius: 50%; pointer-events: none; }
.shape-one { width: 420px; height: 420px; top: -190px; right: -120px; background: rgba(103, 183, 232, .11); }
.shape-two { width: 280px; height: 280px; bottom: -150px; left: -100px; background: rgba(255, 245, 229, .95); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #d9edf8; border-radius: 99px;
    background: rgba(255, 255, 255, .75); color: var(--blue-deep); font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-dark); box-shadow: 0 0 0 4px rgba(103, 183, 232, .13); }
.hero h1 { margin: 18px 0 20px; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -1.6px; font-weight: 600; max-width: 640px; }
.hero-description { max-width: 580px; color: var(--muted); font-size: 16px; line-height: 1.75; }

.ask { margin-top: 28px; max-width: 580px; }
.ask-box {
    display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 16px; background: var(--white);
    border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm);
}
.ask-box:focus-within { border-color: #9fd0ee; box-shadow: 0 0 0 4px rgba(103, 183, 232, .16), var(--shadow-sm); }
.ask-box svg { flex: none; color: var(--blue-dark); }
.ask-box input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 15px; color: var(--ink); background: transparent; padding: 10px 0; }
.ask-box input::placeholder { color: var(--muted-light); }
.prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.prompts a {
    padding: 7px 12px; border-radius: 99px; background: var(--white); border: 1px solid var(--border);
    font-size: 13px; color: var(--ink-soft); transition: border-color .2s, background .2s;
}
.prompts a:hover { border-color: #b9d8e9; background: var(--blue-pale); color: var(--blue-dark); }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 20px; color: var(--muted); font-size: 13px; }
.tick { width: 19px; height: 19px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 700; }

/* hero visual: example phone + ScoobyPaw mascot */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 10px 0 0 70px; }
.phone {
    position: relative; width: 320px; max-width: 100%; border-radius: 38px; background: #fff; padding: 12px;
    border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.phone-screen { border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, #fbfdfe, #f5fbff); border: 1px solid var(--border-light); }
.phone-top { display: flex; align-items: center; gap: 9px; padding: 14px 14px 12px; background: #fff; border-bottom: 1px solid var(--border-light); }
.phone-top img { height: 28px; width: auto; border-radius: 7px; }
.phone-top strong { font-size: 13px; font-weight: 600; display: block; line-height: 1.2; }
.phone-top small { font-size: 11px; color: var(--muted-light); }
.example-tag { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--muted); background: var(--blue-pale); border: 1px solid var(--border); padding: 3px 8px; border-radius: 99px; }
.phone-chat { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 16px; font-size: 12.5px; line-height: 1.5; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 15px; }
.msg-me { align-self: flex-end; background: #dff1fc; color: var(--ink); border-bottom-right-radius: 5px; }
.msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 5px; box-shadow: var(--shadow-xs); }
.msg-bot b { font-weight: 600; }
.msg-source { display: block; margin-top: 5px; font-size: 10.5px; color: var(--muted-light); }
.msg-btn { display: inline-block; margin-top: 8px; padding: 6px 10px; border-radius: 9px; background: var(--blue-dark); color: #fff; font-size: 11.5px; font-weight: 600; }
.phone-input { margin: 0 12px 14px; padding: 10px 12px; border-radius: 13px; background: #fff; border: 1px solid var(--border); font-size: 12px; color: var(--muted-light); }
.mascot { position: absolute; left: -6px; bottom: -18px; width: 190px; filter: drop-shadow(0 18px 26px rgba(15, 111, 168, .2)); }
.mascot-say {
    position: absolute; left: 0; bottom: 178px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
    padding: 9px 13px; border-radius: 14px 14px 14px 4px; box-shadow: var(--shadow-md); white-space: nowrap;
}
.lang-float {
    position: absolute; right: -28px; bottom: 96px; background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 10px 13px; box-shadow: var(--shadow-md); font-size: 12.5px; color: var(--ink-soft);
}
.lang-float small { display: block; font-size: 11.5px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
    .mascot { animation: peek 5s ease-in-out infinite; }
    @keyframes peek { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}

/* who it's for */
.routes { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 56px; }
.route {
    display: flex; align-items: center; gap: 16px; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: linear-gradient(145deg, #fafdff, #fff); box-shadow: var(--shadow-xs); transition: box-shadow .2s, border-color .2s;
}
.route:hover { border-color: #c4dfed; box-shadow: var(--shadow-sm); }
.route.warm { background: linear-gradient(145deg, #fffaf2, #fff); }
.route-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 13px; background: #fff; border: 1px solid var(--border); font-size: 22px; }
.route small { display: block; font-size: 12px; color: var(--muted); }
.route strong { display: block; font-size: 17px; font-weight: 600; }
.route .d { display: block; font-size: 13.5px; color: var(--muted); }
.route .arrow { margin-left: auto; color: var(--blue-dark); font-size: 20px; }

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .hero-visual { padding-left: 0; }
    .mascot { width: 150px; left: -10px; }
    .mascot-say { bottom: 140px; }
    .routes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .hero { padding-top: 44px; }
    .hero h1 { letter-spacing: -1.6px; }
    .lang-float { right: 0; bottom: 84px; }
    .mascot { width: 118px; left: -14px; }
    .mascot-say { display: none; }
}

/* ---------- split sections (find a vet, careful by design) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.find-card { background: #fff; border: 1px solid #cfe5f1; border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md); }
.find-card label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.find-row { display: flex; gap: 8px; }
.find-row input { flex: 1; min-width: 0; padding: 0 14px; min-height: 48px; border: 1px solid var(--border); border-radius: 12px; font: inherit; font-size: 15px; color: var(--ink); }
.find-row input:focus { outline: 0; border-color: #9fd0ee; box-shadow: 0 0 0 4px rgba(103, 183, 232, .16); }
.find-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.find-modes a, .find-modes button {
    display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--border);
    background: var(--blue-pale); text-align: left; font: inherit; cursor: pointer; color: var(--ink);
}
.find-modes a:hover, .find-modes button:hover { border-color: #b9d8e9; background: var(--blue-soft); }
.find-modes span { font-size: 20px; }
.find-modes strong { font-size: 13.5px; font-weight: 600; }
.find-modes small { font-size: 12px; color: var(--muted); }
.find-status { margin-top: 12px; font-size: 13px; color: var(--muted); min-height: 1.4em; }
.trust-count { margin-top: 22px; display: inline-flex; align-items: baseline; gap: 10px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.trust-count strong { font-size: 26px; font-weight: 600; color: var(--blue-dark); }
.trust-count span { font-size: 13.5px; color: var(--muted); }
.check-list { list-style: none; margin: 0; padding: 26px; display: grid; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }
.check-list li strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .find-row { flex-direction: column; } }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
    padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: #c4dfed; box-shadow: var(--shadow-md); }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--blue-soft); font-size: 19px; }
.feature h3 { margin: 18px 0 8px; font-size: 16.5px; font-weight: 600; letter-spacing: -.2px; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.7; }
@media (max-width: 1060px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- languages ---------- */
.lang-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lang { padding: 18px 18px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.lang strong { display: block; font-size: 18px; font-weight: 600; }
.lang small { display: block; font-size: 12px; color: var(--muted-light); margin-bottom: 10px; }
.lang p { font-size: 14px; color: var(--ink-soft); background: var(--blue-pale); border-radius: 10px; padding: 8px 10px; }
.lang-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
@media (max-width: 1060px) { .lang-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .lang-grid { grid-template-columns: 1fr; } }

/* ---------- journey (a real sequence) ---------- */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.journey::before { content: ""; position: absolute; top: 26px; left: 10%; right: 10%; height: 1px; background: #cfe5f1; }
.step { position: relative; text-align: center; padding: 0 10px; }
.step-icon {
    position: relative; width: 54px; height: 54px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 15px;
    background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-xs); font-size: 22px;
}
.step h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
@media (max-width: 860px) {
    .journey { grid-template-columns: 1fr; gap: 22px; }
    .journey::before { left: 26px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto; }
    .step { display: grid; grid-template-columns: 54px 1fr; gap: 0 16px; text-align: left; padding: 0; }
    .step-icon { margin: 0; grid-row: span 2; }
}

/* ---------- articles ---------- */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article {
    display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: #fff; transition: box-shadow .2s, border-color .2s;
}
.article:hover { border-color: #c4dfed; box-shadow: var(--shadow-sm); }
.article small { font-size: 12px; color: var(--muted-light); }
.article h3 { font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.article p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.article .more { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--blue-dark); }
.center-link { text-align: center; margin-top: 30px; }
@media (max-width: 960px) { .articles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .articles { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-size: 15.5px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue-dark); font-size: 20px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.75; }

/* ---------- final CTA (same layout as Scoobycares) ---------- */
.cta { padding: 100px 0; background: linear-gradient(135deg, #eff9ff, #ffffff 65%); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.cta li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }
.cta-card { padding: 30px; border: 1px solid #cfe5f1; border-radius: var(--radius-lg); background: linear-gradient(145deg, #f7fcff, #fff); box-shadow: var(--shadow-md); }
.cta-card .card-label { color: var(--blue-dark); font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }
.cta-card h3 { font-size: 23px; font-weight: 600; letter-spacing: -.5px; margin: 10px 0 6px; }
.cta-card p { color: var(--muted); font-size: 13.5px; }
.cta-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.cta-card .small-note { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--muted); }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } .cta-buttons { grid-template-columns: 1fr; } }

/* ---------- footer (navy, same as Scoobycares) ---------- */
.site-footer { background: var(--ink); color: #c9d6e2; padding: 64px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.footer-brand img { height: 42px; width: auto; border-radius: 10px; background: #fff; }
.footer-brand strong { font-size: 18px; font-weight: 600; color: #fff; }
.footer-about { margin-top: 18px; line-height: 1.75; max-width: 340px; }
.footer-about + .footer-about { margin-top: 12px; }
.site-footer h4 { margin: 0 0 16px; color: #fff; font-size: 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }


/* =========================================================
   MOTION - one hero entrance, a self-playing example chat,
   gentle scroll reveals. Off for people who prefer less motion.
========================================================= */

/* drifting colour blobs + paw trail */
.blob { position: absolute; border-radius: 50%; filter: blur(40px); pointer-events: none; opacity: .55; }
.blob-a { width: 380px; height: 380px; background: #d7eefc; top: 40px; right: 18%; }
.blob-b { width: 300px; height: 300px; background: #fff0da; bottom: -60px; left: 30%; opacity: .5; }
.paw-trail { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.paw-trail svg { position: absolute; width: 22px; height: 22px; color: var(--blue); opacity: 0; }

/* example chat */
.phone-chat .msg { opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .45s ease, transform .45s ease; }
.phone-chat .msg.in { opacity: 1; transform: none; }
.typing { align-self: flex-start; display: none; gap: 4px; padding: 10px 12px; background: #fff; border: 1px solid var(--border); border-radius: 15px; border-bottom-left-radius: 5px; }
.typing.on { display: inline-flex; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: dot 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.no-js .phone-chat .msg { opacity: 1; transform: none; }

/* scroll reveal (only when JS is on) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].shown { opacity: 1; transform: none; }
.js [data-reveal-group] > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal-group].shown > * { opacity: 1; transform: none; }
.js [data-reveal-group].shown > *:nth-child(2) { transition-delay: .07s; }
.js [data-reveal-group].shown > *:nth-child(3) { transition-delay: .14s; }
.js [data-reveal-group].shown > *:nth-child(4) { transition-delay: .21s; }
.js [data-reveal-group].shown > *:nth-child(5) { transition-delay: .28s; }
.js [data-reveal-group].shown > *:nth-child(6) { transition-delay: .35s; }
.js [data-reveal-group].shown > *:nth-child(7) { transition-delay: .42s; }
.js [data-reveal-group].shown > *:nth-child(8) { transition-delay: .49s; }
.js [data-reveal-group].shown > *:nth-child(n+9) { transition-delay: .55s; }

.feature:hover .feature-icon { transform: translateY(-3px) rotate(-6deg); }
.feature-icon { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.lang { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.lang:hover { transform: translateY(-3px); border-color: #c4dfed; box-shadow: var(--shadow-sm); }
.step-icon { transition: transform .3s ease, box-shadow .3s ease; }
.step:hover .step-icon { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

@media (prefers-reduced-motion: no-preference) {
    .hero .enter { opacity: 0; animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
    .hero .enter-1 { animation-delay: .05s; } .hero .enter-2 { animation-delay: .15s; }
    .hero .enter-3 { animation-delay: .25s; } .hero .enter-4 { animation-delay: .35s; }
    .hero .enter-5 { animation-delay: .45s; }
    .hero .phone { opacity: 0; animation: phoneIn 1s .3s cubic-bezier(.2, .7, .2, 1) forwards; }
    .hero .mascot { opacity: 0; animation: pugIn .9s .9s cubic-bezier(.3, 1.4, .5, 1) forwards, peek 5s 2s ease-in-out infinite; }
    .hero .mascot-say, .hero .lang-float { opacity: 0; animation: rise .6s 1.5s ease forwards; }
    .hero .lang-float { animation-delay: 1.2s; }
    .blob-a { animation: drift 18s ease-in-out infinite alternate; }
    .blob-b { animation: drift 22s ease-in-out infinite alternate-reverse; }
    .paw-trail svg { animation: paw 9s ease-in-out infinite; }
    @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
    @keyframes phoneIn { from { opacity: 0; transform: translateY(40px) rotate(2deg); } to { opacity: 1; transform: none; } }
    @keyframes pugIn { from { opacity: 0; transform: translateY(40px) scale(.9); } to { opacity: 1; transform: none; } }
    @keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.12); } }
    @keyframes paw { 0%, 100% { opacity: 0; } 15%, 45% { opacity: .16; } 60% { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
    .phone-chat .msg { opacity: 1; transform: none; }
    .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; }
}

.short { display: none; }
.nav-actions .btn { white-space: nowrap; }
@media (max-width: 520px) {
    .long { display: none; }
    .short { display: inline; }
    .ask-box { padding-left: 12px; }
    .ask-box .btn { padding: 0 16px; }
    .hero h1 { font-size: 34px; }
}

/* ---------- phones: tighter, shorter, still roomy ---------- */
@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .section-heading { margin-bottom: 30px; }
    .cta { padding: 64px 0; }
    .phone { width: 280px; border-radius: 32px; padding: 10px; }
    .phone-screen { border-radius: 24px; }
    .routes { margin-top: 40px; gap: 12px; }
    .route { padding: 16px; gap: 12px; }
    .route-icon { width: 42px; height: 42px; font-size: 19px; }
    .route strong { font-size: 15.5px; }

    .find-card { padding: 18px; }
    .find-modes { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .find-modes a, .find-modes button { align-items: center; text-align: center; padding: 12px 6px; }
    .find-modes small { display: none; }
    .find-modes strong { font-size: 12.5px; }

    .feature-grid { grid-template-columns: 1fr; gap: 10px; }
    .feature { display: grid; grid-template-columns: 42px 1fr; gap: 2px 14px; padding: 16px; align-items: start; }
    .feature-icon { grid-row: span 2; }
    .feature h3 { margin: 0; font-size: 15.5px; }
    .feature p { font-size: 13.5px; line-height: 1.6; }

    .lang-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .lang { padding: 13px; }
    .lang strong { font-size: 15.5px; }
    .lang p { font-size: 12.5px; padding: 7px 8px; }

    .articles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 4px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
    .articles::-webkit-scrollbar { display: none; }
    .article { flex: 0 0 82%; scroll-snap-align: start; }

    .check-list { padding: 18px; gap: 14px; }
    .faq summary { font-size: 14.5px; }
    .footer-grid { gap: 28px; }
}

/* ---------- founder's story ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.story-photo { margin: 0; position: relative; }
.story-photo img { width: 100%; height: auto; border-radius: 26px; box-shadow: var(--shadow-lg); filter: grayscale(1) contrast(1.02); }
.story-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 26px; background: var(--blue-soft); z-index: -1; }
.story-photo figcaption { position: absolute; left: 18px; bottom: 18px; background: rgba(255, 255, 255, .92); border-radius: 99px; padding: 6px 12px; font-size: 13px; color: var(--ink-soft); box-shadow: var(--shadow-xs); }
.story-text h2 { margin: 14px 0 18px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.16; letter-spacing: -1px; font-weight: 600; }
.story-text h2 span { color: var(--blue-dark); }
.story-text p { color: var(--muted); font-size: 15.5px; line-height: 1.8; margin-bottom: 14px; }
.story-text .story-hi { color: var(--ink); font-size: 17px; font-weight: 500; }
.signature { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.signature img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.signature strong { display: block; font-weight: 600; font-size: 15px; }
.signature small { display: block; font-size: 13px; color: var(--muted); }
.story-link { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--blue-dark); }
.story-link:hover { text-decoration: underline; }
@media (max-width: 860px) {
    .story-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .story-photo { max-width: 460px; }
    .story-link { margin-left: 0; width: 100%; }
}

/* ---------- for vets ---------- */
.vets-card {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center;
    padding: 44px; border-radius: 28px; border: 1px solid #cfe5f1;
    background: linear-gradient(135deg, #eff9ff 0%, #ffffff 60%, #fff8ee 100%); box-shadow: var(--shadow-md);
}
.vets-card h2 { margin: 14px 0 14px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.16; letter-spacing: -1px; font-weight: 600; }
.vets-card h2 span { color: var(--blue-dark); }
.vets-card p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.vets-card ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.vets-card li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--ink-soft); }
.vets-actions { display: grid; gap: 10px; }
.vets-actions p { font-size: 13px; margin-top: 6px; }
@media (max-width: 860px) { .vets-card { grid-template-columns: minmax(0, 1fr); padding: 26px 20px; gap: 24px; } }

/* Pre-launch: "Launching soon" chip */
.launch-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px 6px 6px;
  border-radius: 999px; background: #fff; border: 1px solid rgba(15, 111, 168, .18); color: #102033; font-size: .88rem;
  font-weight: 500; text-decoration: none; box-shadow: 0 6px 18px rgba(16, 32, 51, .06); }
.launch-chip b { padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, #0f6fa8, #67b7e8); color: #fff;
  font-weight: 600; font-size: .78rem; }
.launch-chip span { transition: transform .2s ease; }
.launch-chip:hover span { transform: translateX(3px); }

/* ---------- mobile menu (hamburger) ---------- */
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: #fff;
    padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: none; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .22s ease, opacity .18s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -18px rgba(16, 32, 51, .25); padding: 10px 16px 18px; max-height: calc(100vh - 74px); overflow-y: auto;
    opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
.mobile-menu.open { opacity: 1; transform: none; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { display: flex; align-items: center; gap: 12px; padding: 13px 6px; font-size: 15.5px; font-weight: 500; color: var(--ink);
    border-bottom: 1px solid #eef4f9; }
.mobile-menu nav a:last-child { border-bottom: 0; }
.mobile-menu nav a span { width: 30px; height: 30px; border-radius: 9px; background: #f2f9fe; display: grid; place-items: center; font-size: 15px; }
.mobile-menu nav a:active { background: #f7fbff; }
.mobile-menu-actions { display: grid; gap: 10px; margin-top: 14px; }
.mobile-menu-actions .btn { width: 100%; justify-content: center; }
@media (max-width: 960px) { .menu-btn { display: inline-flex; } .nav-actions { gap: 10px; } }
@media (min-width: 961px) { .mobile-menu { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mobile-menu, .menu-btn span { transition: none; } }
.launch-chip b { white-space: nowrap; }
@media (max-width: 480px) { .launch-chip { font-size: .8rem; gap: 6px; padding-right: 10px; } .launch-chip b { padding: 3px 8px; font-size: .72rem; } }

.footer-grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }

/* ScoobyPaw AI always uses its light brand theme (iPhone/Android dark mode too) */
:root[data-theme="light"] { color-scheme: light; }


/* Paw cursor (same as the app) */
html, body { cursor: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2228%22%20height=%2228%22%20viewBox=%220%200%2032%2032%22%3E%3Cg%20fill=%22%23ffffff%22%20stroke=%22%230f6fa8%22%20stroke-width=%221.6%22%3E%3Cellipse%20cx=%227%22%20cy=%2213%22%20rx=%223.2%22%20ry=%224.1%22%20transform=%22rotate%28-20%207%2013%29%22/%3E%3Cellipse%20cx=%2212.8%22%20cy=%227.2%22%20rx=%223.3%22%20ry=%224.3%22%20transform=%22rotate%28-6%2012.8%207.2%29%22/%3E%3Cellipse%20cx=%2219.6%22%20cy=%227.2%22%20rx=%223.3%22%20ry=%224.3%22%20transform=%22rotate%286%2019.6%207.2%29%22/%3E%3Cellipse%20cx=%2225.4%22%20cy=%2213%22%20rx=%223.2%22%20ry=%224.1%22%20transform=%22rotate%2820%2025.4%2013%29%22/%3E%3Cpath%20d=%22M16.2%2014.5c-4.6%200-9%205.6-9%209.6%200%203.2%202.6%204.4%205%204.4%201.7%200%202.6-.8%204-.8s2.3.8%204%20.8c2.4%200%205-1.2%205-4.4%200-4-4.4-9.6-9-9.6z%22/%3E%3C/g%3E%3C/svg%3E") 6 4, auto; }
a, button, summary, label, select, [role="button"], .btn { cursor: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2228%22%20height=%2228%22%20viewBox=%220%200%2032%2032%22%3E%3Cg%20fill=%22%230f6fa8%22%20stroke=%22%23ffffff%22%20stroke-width=%221.6%22%3E%3Cellipse%20cx=%227%22%20cy=%2213%22%20rx=%223.2%22%20ry=%224.1%22%20transform=%22rotate%28-20%207%2013%29%22/%3E%3Cellipse%20cx=%2212.8%22%20cy=%227.2%22%20rx=%223.3%22%20ry=%224.3%22%20transform=%22rotate%28-6%2012.8%207.2%29%22/%3E%3Cellipse%20cx=%2219.6%22%20cy=%227.2%22%20rx=%223.3%22%20ry=%224.3%22%20transform=%22rotate%286%2019.6%207.2%29%22/%3E%3Cellipse%20cx=%2225.4%22%20cy=%2213%22%20rx=%223.2%22%20ry=%224.1%22%20transform=%22rotate%2820%2025.4%2013%29%22/%3E%3Cpath%20d=%22M16.2%2014.5c-4.6%200-9%205.6-9%209.6%200%203.2%202.6%204.4%205%204.4%201.7%200%202.6-.8%204-.8s2.3.8%204%20.8c2.4%200%205-1.2%205-4.4%200-4-4.4-9.6-9-9.6z%22/%3E%3C/g%3E%3C/svg%3E") 6 4, pointer; }
input:not([type="checkbox"]):not([type="radio"]), textarea { cursor: text; }
@media (hover: none) { html, body, a, button { cursor: auto; } }
