/* ==========================================================================
   PetlyTag — public marketing site
   Palette is the app's own (lib/core/theme/app_colors.dart): Pacific Cyan is
   the brand, Sky Blue the light accent, Azure Mist the surface. Coral and
   sun are added here only for warmth and for the "lost" state.
   ========================================================================== */

:root {
    --ink:        #04252B;
    --ink-2:      #0A3B45;
    --ink-3:      #14535E;

    --teal:       #0294A9;
    --teal-deep:  #026F80;
    --teal-lift:  #05B2CA;
    --sky:        #6AD6F0;
    --mist:       #E8F6F8;

    --coral:      #FF6B4A;
    --coral-deep: #E14E2E;
    --sun:        #FFC24B;

    --paper:      #FFFFFF;
    --muted:      #5D7F87;
    --line:       rgba(2, 148, 169, .14);

    --shadow-sm:  0 2px 8px rgba(4, 37, 43, .06);
    --shadow-md:  0 12px 32px -12px rgba(4, 37, 43, .18);
    --shadow-lg:  0 40px 80px -32px rgba(4, 37, 43, .38);
    --glow:       0 0 80px -10px rgba(106, 214, 240, .55);

    --r-sm: 12px;
    --r-md: 20px;
    --r-lg: 28px;
    --r-xl: 40px;

    --shell: 1160px;
    --pad: clamp(20px, 5vw, 40px);

    --font-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Every in-page anchor has to clear the fixed nav bar. */
section[id] { scroll-margin-top: 88px; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.08;
    letter-spacing: -.03em;
    margin: 0;
    font-weight: 700;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--sky); color: var(--ink); }

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

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--pad);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    z-index: 200;
    background: var(--ink);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
}
.skip-link:focus { left: 12px; }

/* ===================== Type utilities ==================== */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--sky), var(--teal));
}
.on-dark .eyebrow { color: var(--sky); }

.h-xl { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 800; }
.h-lg { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 700; }
.h-md { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 700; }

.lede {
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    color: var(--muted);
    max-width: 56ch;
}
.on-dark .lede { color: rgba(232, 246, 248, .76); }

.tint { color: var(--teal); }
.tint-coral { color: var(--coral); }

.grad-text {
    background: linear-gradient(100deg, var(--sky) 0%, #9BE8B5 40%, var(--sun) 78%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section {
    padding-block: clamp(72px, 11vw, 132px);
    position: relative;
}

.section-head { max-width: 62ch; margin-bottom: clamp(40px, 6vw, 68px); }
.section-head.centre { margin-inline: auto; text-align: center; }
.section-head.centre .eyebrow { justify-content: center; }
.section-head.centre .lede { margin-inline: auto; }
.section-head .lede { margin-top: 20px; }

/* ===================== Buttons ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    padding: 15px 28px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .22s cubic-bezier(.2,.9,.3,1.2), box-shadow .22s ease, background .22s ease, color .22s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--teal-lift), var(--teal-deep));
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(2, 148, 169, .8);
}
.btn-primary:hover { box-shadow: 0 20px 40px -14px rgba(2, 148, 169, .95); }

.btn-coral {
    background: linear-gradient(135deg, #FF8A63, var(--coral-deep));
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(225, 78, 46, .7);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--ink);
    background: rgba(255, 255, 255, .6);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.on-dark .btn-ghost {
    border-color: rgba(232, 246, 248, .28);
    color: #fff;
    background: rgba(255, 255, 255, .06);
}
.on-dark .btn-ghost:hover { border-color: var(--sky); color: var(--sky); }

/* ===================== Navigation ==================== */

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding-block: 14px;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease, backdrop-filter .3s ease;
}
.nav.is-stuck {
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
    padding-block: 10px;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.22rem;
    letter-spacing: -.02em;
    color: #fff;
    transition: color .3s ease;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav.is-stuck .brand { color: var(--ink); }

/* Links and the CTA travel together: on mobile the pair becomes one dropdown
   panel, so the button cannot end up stranded outside it. */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a {
    font-size: .95rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 9px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .82);
    transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.nav.is-stuck .nav-links a { color: var(--muted); }
.nav.is-stuck .nav-links a:hover { color: var(--teal); background: var(--mist); }

.nav .btn { padding: 11px 22px; font-size: .93rem; }
.nav-cta { margin-inline-start: 8px; }

.nav-burger {
    display: none;
    margin-inline-start: auto;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.1);
    color: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.nav.is-stuck .nav-burger { border-color: var(--line); background: var(--mist); color: var(--ink); }

@media (max-width: 1000px) {
    .nav-menu { display: none; }
    .nav-burger { display: inline-flex; }

    .nav.is-open .nav-menu {
        display: flex;
        position: absolute;
        top: calc(100% + 8px);
        left: var(--pad);
        right: var(--pad);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        border-radius: var(--r-md);
        background: #fff;
        box-shadow: var(--shadow-md);
        margin: 0;
    }
    .nav.is-open .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav.is-open .nav-links a { color: var(--ink); padding: 13px 16px; }
    .nav.is-open .nav-cta { margin: 10px 0 0; }
}

/* ===================== Hero ==================== */

/* Soft drifting colour fields — the "art" behind the headline. */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: .55;
    pointer-events: none;
    z-index: -2;
    will-change: transform;
}
.blob-1 { width: 520px; height: 520px; top: -140px; left: -100px; background: var(--teal); animation: drift-a 22s ease-in-out infinite; }

@keyframes drift-a { 50% { transform: translate3d(70px, 50px, 0) scale(1.12); } }

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px 7px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    font-size: .87rem;
    color: rgba(255, 255, 255, .86);
    margin-bottom: 26px;
    backdrop-filter: blur(6px);
}
.hero-pill b {
    background: var(--sun);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .76rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 999px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.hero-note {
    margin-top: 20px;
    font-size: .88rem;
    color: rgba(232, 246, 248, .52);
}
.hero-note svg {
    display: inline;
    vertical-align: -2px;
    margin-inline-end: 7px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 44px);
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-stats div strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sky);
    letter-spacing: -.02em;
}
.hero-stats div span { font-size: .84rem; color: rgba(232, 246, 248, .58); }

/* ===================== Journey ==================== */
/* Hero, how-it-works, the tag and the lost story as one pinned scene with five
   beats. marketing.js keeps two things on .journey — data-beat="0".."4" (the
   panel nearest the reading line) and --p (0..1 through the whole section) —
   and everything here reacts to those alone. The section repaints its own
   background per beat, so the text colours are variables that flip with it. */

.journey {
    position: relative;
    isolation: isolate;
    overflow: clip;                 /* clip, not hidden: hidden would make this a scroll container and kill the sticky stage */
    --fg: #fff;
    --fg-muted: rgba(232, 246, 248, .78);
    --eyebrow: var(--sky);
    --rule: rgba(232, 246, 248, .16);
    --bg: var(--ink);
    --p: 0;
    background-color: var(--bg);
    color: var(--fg);
    transition: background-color .9s ease, color .6s ease;
}
.journey::before {                  /* the hero's radial wash; fades out on the light beats */
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(120% 120% at 12% 0%, var(--ink-3) 0%, var(--ink-2) 42%, var(--ink) 100%);
    transition: opacity .9s ease;
}
.journey[data-beat="1"] { --bg: var(--paper); --fg: var(--ink); --fg-muted: #466A73; --eyebrow: var(--teal); --rule: var(--line); }
.journey[data-beat="2"] { --bg: var(--mist);  --fg: var(--ink); --fg-muted: #466A73; --eyebrow: var(--teal); --rule: var(--line); }
.journey[data-beat="3"] { --bg: var(--ink);   --fg: #fff;       --fg-muted: rgba(232, 246, 248, .78); --eyebrow: var(--coral); --rule: rgba(232, 246, 248, .16); }
.journey[data-beat="4"] { --bg: #F3FBFC;      --fg: var(--ink); --fg-muted: #466A73; --eyebrow: var(--teal); --rule: var(--line); }
.journey[data-beat="1"]::before,
.journey[data-beat="2"]::before,
.journey[data-beat="4"]::before { opacity: 0; }
.journey[data-beat="3"]::before {
    background: radial-gradient(110% 130% at 85% 5%, var(--ink-3) 0%, var(--ink-2) 40%, var(--ink) 100%);
}

.journey-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(24px, 4vw, 64px);
}

/* Copy inherits the beat's colours. */
.journey h1, .journey h2 { color: var(--fg); transition: color .6s ease; }
.journey .lede { color: var(--fg-muted); font-size: clamp(1.05rem, 1.7vw, 1.24rem); transition: color .6s ease; }
.journey .eyebrow { color: var(--eyebrow); transition: color .6s ease; }
.journey .hero-pill { color: var(--fg-muted); border-color: var(--rule); transition: color .6s ease, border-color .6s ease; }
.journey .hero-note { color: var(--fg-muted); opacity: .8; transition: color .6s ease; }
.journey .hero-stats { border-top-color: var(--rule); transition: border-color .6s ease; }
.journey .hero-stats div strong { color: var(--eyebrow); transition: color .6s ease; }
.journey .hero-stats div span { color: var(--fg-muted); transition: color .6s ease; }
.journey .btn-ghost { border-color: var(--rule); color: var(--fg); background: rgba(255, 255, 255, .06); }
.journey .btn-ghost:hover { border-color: var(--sky); color: var(--sky); }
.journey .check-list li { color: var(--fg); transition: color .6s ease; }

/* ---- the panels (left) ---- */

.journey-panels { grid-column: 1; grid-row: 1; }
.journey-panel {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 110px 0 70px;
    transition: opacity .6s ease;
}
.journey-panel h1 { margin-bottom: 24px; }
.journey-panel h2 + .lede { margin-top: 20px; }
.journey-panel .check-list { max-width: 52ch; }
/* The live beat reads at full strength; its neighbours sit back. */
.journey[data-beat] .journey-panel { opacity: .26; }
.journey[data-beat="0"] .journey-panel[data-panel="0"],
.journey[data-beat="1"] .journey-panel[data-panel="1"],
.journey[data-beat="2"] .journey-panel[data-panel="2"],
.journey[data-beat="3"] .journey-panel[data-panel="3"],
.journey[data-beat="4"] .journey-panel[data-panel="4"],
.journey[data-beat] .journey-panel:focus-within { opacity: 1; }

.journey-cue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fg-muted);
    transition: opacity .5s ease;
}
.journey-cue i {
    display: block;
    width: 1px;
    height: 34px;
    background: currentColor;
    transform-origin: top;
    animation: journey-cue 1.8s ease-in-out infinite;
}
.journey.is-scrolled .journey-cue { opacity: 0; }
@keyframes journey-cue {
    0%   { transform: scaleY(0); opacity: 0; }
    35%  { transform: scaleY(1); opacity: .55; }
    100% { transform: translateY(100%) scaleY(0); opacity: 0; }
}

/* ---- the stage (right, pinned) ---- */

.journey-stage {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);   /* not auto: the 560px scene must overflow both sides, not push the tracks wide */
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    padding-top: 64px;                     /* the fixed nav: keeps the scene's top pill visible on short windows */
}
.journey-counter {
    position: absolute;
    inset-inline-start: 0;
    top: 104px;                     /* clear of the fixed nav */
    display: flex;
    gap: 6px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .16em;
    color: var(--fg-muted);
    transition: color .6s ease;
}
.journey-counter-n::before { content: "01"; color: var(--fg); transition: color .6s ease; }
.journey[data-beat="1"] .journey-counter-n::before { content: "02"; }
.journey[data-beat="2"] .journey-counter-n::before { content: "03"; }
.journey[data-beat="3"] .journey-counter-n::before { content: "04"; }
.journey[data-beat="4"] .journey-counter-n::before { content: "05"; }
.journey-rail {
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    width: 2px;
    height: 220px;
    transform: translateY(-50%);
    border-radius: 2px;
    background: var(--rule);
    transition: background .6s ease;
}
.journey-rail::after {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: calc(var(--p) * 100%);
    border-radius: 2px;
    background: var(--teal);
}

.journey-scene { position: relative; width: 560px; height: 560px; }
.scene-glow {
    position: absolute;
    width: 520px; height: 520px;
    left: 20px; top: 20px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle at 40% 35%, rgba(106, 214, 240, .55), rgba(106, 214, 240, 0) 62%);
    filter: blur(12px);
    will-change: transform;
    transform: translate(calc(var(--p) * -70px), calc(var(--p) * 110px));
    transition: background .9s ease;
}
.journey[data-beat="3"] .scene-glow {
    background: radial-gradient(circle at 60% 40%, rgba(255, 107, 74, .32), rgba(255, 107, 74, 0) 62%);
}

.scene-layer {
    position: absolute;
    transition: transform 1s cubic-bezier(.2, .8, .2, 1), opacity .7s ease;
    will-change: transform, opacity;
}

.scene-tag { left: 140px; top: 114px; width: 280px; transform-origin: 50% 16%; }
.scene-tag-inner { transform-origin: 50% 16%; animation: journey-float 6s ease-in-out infinite; }
.scene-tag svg { filter: drop-shadow(0 34px 40px rgba(4, 37, 43, .38)); }
@keyframes journey-float { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-14px) rotate(-2deg); } }
@keyframes journey-swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.journey[data-beat="1"] .scene-tag-inner { animation: journey-swing 4.5s ease-in-out infinite; }
.journey[data-beat="2"] .scene-tag-inner,
.journey[data-beat="3"] .scene-tag-inner,
.journey[data-beat="4"] .scene-tag-inner { animation: none; }

.scene-collar { left: -40px; top: 20px; width: 640px; opacity: 0; transform: translateX(-70px); }

.scene-beam {
    left: 205px; top: 150px;
    width: 150px; height: 220px;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(106, 214, 240, 0) 0%, rgba(106, 214, 240, .42) 100%);
    clip-path: polygon(0 38%, 100% 4%, 100% 96%, 0 62%);
    animation: journey-beam 1.6s ease-in-out infinite;
}
@keyframes journey-beam { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }

/* The finder's browser, drawn rather than screenshotted so it can move. */
.scene-phone {
    left: 330px; top: 40px;
    width: 230px; height: 470px;
    padding: 10px;
    border-radius: 38px;
    background: #0B1416;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translate(90px, 50px) rotate(8deg);
}
.scene-screen {
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    font-size: 11px;
    line-height: 1.35;
    color: var(--ink);
}
.scene-screen-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 14px 12px;
    background: linear-gradient(135deg, var(--teal-lift), var(--teal-deep));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
}
.scene-screen-bar strong { font-size: 13px; font-weight: 700; }
.scene-screen-spacer { width: 44px; }
.scene-screen-photo {
    height: 118px;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, var(--mist), #CDEFF6);
}
.scene-screen-body { display: flex; flex-direction: column; gap: 9px; padding: 12px 14px 14px; }
.scene-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--coral);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .08em;
}
.scene-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal-lift), var(--teal-deep));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12px;
}
.scene-btn.is-ghost { padding: 10px; background: #fff; border: 1.5px solid rgba(2, 148, 169, .3); color: var(--teal); }
.scene-tabs {
    display: flex;
    gap: 14px;
    margin-top: 6px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 10.5px;
    color: var(--muted);
}
.scene-tabs span { padding-bottom: 6px; }
.scene-tabs .is-on { color: var(--teal); border-bottom: 2px solid var(--teal); }
.scene-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.scene-fields small { display: block; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.scene-fields span { font-weight: 600; }

/* The owner's phone: two notification cards. */
.scene-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 330px;
    padding: 13px 17px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    color: var(--ink);
    box-shadow: var(--shadow-md);
    font-size: .84rem;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(40px) scale(.94);
}
.scene-card strong { display: block; font-family: var(--font-display); font-size: .98rem; font-weight: 700; letter-spacing: -.01em; }
.scene-card > span:last-child span { display: block; color: var(--muted); }
.scene-card-icon {
    width: 38px; height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(2, 148, 169, .12);
    color: var(--teal);
}
.scene-card.is-alert { left: 115px; top: 150px; }
.scene-card.is-map { left: 155px; top: 258px; }
.scene-card.is-map .scene-card-icon { background: rgba(255, 107, 74, .14); color: var(--coral-deep); }

.scene-pill {
    left: 50%; top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transform: translate(-50%, -12px);
}
.scene-pill.is-lost { background: var(--coral); box-shadow: 0 12px 26px -10px rgba(225, 78, 46, .85); }
.scene-pill.is-home { background: var(--teal);  box-shadow: 0 12px 26px -10px rgba(2, 148, 169, .85); }

.scene-chips {
    left: 0; right: 0; top: 476px;
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(16px);
}
.scene-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: .86rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}
.scene-chip svg { color: var(--teal); }

/* ---- the five beats ---- */

/* 02 · clip it on: the collar slides in and the tag hangs from its ring. */
.journey[data-beat="1"] .scene-tag { transform: translate(0, 44px); }
.journey[data-beat="1"] .scene-collar { opacity: 1; transform: translateX(0); }
/* 03 · someone scans it: the phone arrives, the tag tilts towards it. */
.journey[data-beat="2"] .scene-tag { transform: translate(-112px, 34px) scale(.74) rotate(-14deg); }
.journey[data-beat="2"] .scene-collar { opacity: .32; transform: translate(-110px, 14px); }
.journey[data-beat="2"] .scene-phone { opacity: 1; transform: translate(0, 0) rotate(-4deg); }
.journey[data-beat="2"] .scene-beam { opacity: 1; transition-delay: .35s; }
/* 04 · the owner has been notified: the phone leaves, the alerts land. */
.journey[data-beat="3"] .scene-tag { transform: translate(-190px, -100px) scale(.5) rotate(-18deg); opacity: .5; }
.journey[data-beat="3"] .scene-collar { opacity: 0; transform: translate(-160px, 20px); }
.journey[data-beat="3"] .scene-phone { opacity: 0; transform: translate(70px, 140px) rotate(6deg); }
.journey[data-beat="3"] .scene-card.is-alert { opacity: 1; transform: none; transition-delay: .15s; }
.journey[data-beat="3"] .scene-card.is-map { opacity: 1; transform: none; transition-delay: .38s; }
.journey[data-beat="3"] .scene-pill.is-lost { opacity: 1; transform: translate(-50%, 0); }
/* 05 · home again: the tag comes back, the page closes up. */
.journey[data-beat="4"] .scene-tag { transform: translate(0, 0) scale(.92); }
.journey[data-beat="4"] .scene-pill.is-home { opacity: 1; transform: translate(-50%, 0); transition-delay: .2s; }
.journey[data-beat="4"] .scene-chips { opacity: 1; transform: none; transition-delay: .35s; }

@media (max-width: 1180px) { .journey-scene { transform: scale(.82); } }
@media (max-width: 1000px) { .journey-scene { transform: scale(.66); } }
@media (max-width: 860px) {
    /* Narrow: the scene pins across the top and the beats scroll beneath it, so
       it needs the section's own background to cover them. */
    .journey-shell { display: block; }
    .journey-stage {
        z-index: 2;
        height: 50vh;
        height: 50svh;
        min-height: 380px;
        padding-top: 56px;              /* the fixed nav */
        background-color: var(--bg);    /* inherit would take the shell's transparent, not the section's */
        transition: background-color .9s ease;
    }
    .journey-scene { transform: scale(.6); }
    .journey-counter, .journey-rail { display: none; }
    .journey::before { display: none; }         /* the stage paints flat --bg; a wash behind it would show a seam */
    /* Anchor targets (#how, #lost) and focused controls must land below the pinned stage, not under it. */
    .journey-panel, .journey-panel a {
        scroll-margin-top: max(50vh, 380px);
        scroll-margin-top: max(50svh, 380px);
    }
    .journey-panel { min-height: 62vh; min-height: 62svh; padding: 28px 0 56px; }
    .journey-panel[data-panel="0"] { min-height: 50vh; min-height: 50svh; padding-top: 18px; }
    .journey .hero-stats { margin-top: 28px; padding-top: 22px; }
}
@media (max-width: 420px) { .journey-scene { transform: scale(.54); } }
@media (max-width: 860px) and (max-height: 560px) {
    /* Landscape phones: pinned, the stage would cover the whole viewport. Let it scroll away. */
    .journey-stage { position: static; height: 410px; min-height: 0; padding-top: 72px; }
    .journey-panel, .journey-panel a { scroll-margin-top: 88px; }
}

/* ===================== Phone mock-up ==================== */

.phone {
    position: relative;
    width: min(300px, 74vw);
    aspect-ratio: 1080 / 2400;
    border-radius: 40px;
    padding: 9px;
    background: linear-gradient(160deg, #34535B 0%, #0C2A31 46%, #2A4750 100%);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .09) inset;
    flex-shrink: 0;
}
.phone::after {                     /* speaker pill */
    content: '';
    position: absolute;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    width: 74px; height: 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .6);
    z-index: 3;
}
.phone-screen {
    width: 100%; height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: var(--mist);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

@media (max-width: 960px) {
    .section-head .lede { margin-inline: auto; }
}

/* ===================== Marquee strip ==================== */

.strip {
    background: var(--ink);
    color: rgba(232, 246, 248, .62);
    padding-block: 20px;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, .07);
}
.strip-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: slide 34s linear infinite;
}
.strip-set {
    display: flex;
    gap: 56px;
    padding-inline-end: 56px;   /* trailing gap, so -50% is exactly one set */
}
.strip-track span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .02em;
    white-space: nowrap;
}
.strip-track span::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--sky);
}
@keyframes slide { to { transform: translateX(-50%); } }
.strip:hover .strip-track { animation-play-state: paused; }

/* ===================== Feature grid ==================== */

.bg-mist { background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 22%, var(--mist) 78%, var(--paper) 100%); }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(18px, 2.4vw, 26px);
}

.fcard {
    padding: 30px 26px;
    border-radius: var(--r-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    transition: transform .3s cubic-bezier(.2,.9,.3,1.1), box-shadow .3s ease;
}
.fcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.fcard h3 { font-size: 1.12rem; margin-bottom: 9px; }
.fcard p { color: var(--muted); font-size: .94rem; }

.fcard-icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: var(--mist);
    color: var(--teal);
    border: 1px solid var(--line);
}
.fcard:nth-child(3n+2) .fcard-icon { background: #FFF3E2; color: var(--coral-deep); border-color: rgba(255, 107, 74, .2); }
.fcard:nth-child(3n+3) .fcard-icon { background: #FFF8E6; color: #B8860B; border-color: rgba(255, 194, 75, .34); }

/* ===================== Lost-pet story ==================== */

.band-dark {
    background: radial-gradient(110% 130% at 85% 5%, var(--ink-3) 0%, var(--ink-2) 40%, var(--ink) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* ===================== Screenshot gallery ==================== */

.gallery {
    display: flex;
    gap: clamp(18px, 2.6vw, 30px);
    overflow-x: auto;
    padding: 10px var(--pad) 34px;
    margin-inline: calc(var(--pad) * -1);
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--sky) transparent;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-track { background: var(--mist); border-radius: 999px; }
.gallery::-webkit-scrollbar-thumb { background: var(--sky); border-radius: 999px; }

.shot {
    flex: 0 0 auto;
    width: min(238px, 62vw);
    scroll-snap-align: center;
    text-align: center;
}
.shot .phone { width: 100%; }
.shot figcaption {
    margin-top: 18px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .97rem;
}
.shot figcaption small {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: .84rem;
    color: var(--muted);
    margin-top: 4px;
}

.gallery-hint {
    text-align: center;
    font-size: .85rem;
    color: var(--muted);
}
.gallery-hint svg {
    display: inline;
    vertical-align: -2px;
    margin-inline-end: 8px;
}

/* ===================== Split feature (RTL / privacy) ==================== */

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(36px, 6vw, 72px);
    align-items: center;
}
.split.flip .split-media { order: -1; }
@media (max-width: 780px) { .split.flip .split-media { order: 0; } }

.split-media { display: flex; justify-content: center; position: relative; }
.split-media .phone { width: min(262px, 70vw); }

.check-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 15px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; font-size: .97rem; }
.check-list .tick {
    width: 25px; height: 25px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--teal);
    color: #fff;
    margin-top: 2px;
}
.on-dark .check-list li { color: rgba(232, 246, 248, .82); }
.on-dark .check-list .tick { background: var(--sky); color: var(--ink); }

/* ===================== Download CTA ==================== */

.cta-card {
    position: relative;
    border-radius: var(--r-xl);
    padding: clamp(40px, 7vw, 76px) clamp(28px, 5vw, 64px);
    background: linear-gradient(135deg, #015E6E 0%, var(--teal) 40%, #09C0DA 72%, #02697B 100%);
    color: #fff;
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}
.cta-card::before {                 /* sheen */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 16% 8%, rgba(255,255,255,.24) 0%, transparent 42%),
                radial-gradient(circle at 94% 92%, rgba(255,194,75,.26) 0%, transparent 44%),
                radial-gradient(circle at 96% 4%, rgba(106,214,240,.5) 0%, transparent 44%);
    z-index: -1;
}
.cta-card h2 { margin-bottom: 18px; }
.cta-card .lede { color: rgba(255,255,255,.86); margin-inline: auto; }

.store-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 38px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 13px 26px;
    border-radius: 16px;
    background: #071F24;
    color: #fff;
    border: 1px solid rgba(255,255,255,.14);
    text-align: left;
    transition: transform .22s cubic-bezier(.2,.9,.3,1.2), box-shadow .22s ease, opacity .22s ease;
}
.store-btn small { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .62; }
.store-btn strong { display: block; font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em; }
.store-btn:not(.is-soon):hover { transform: translateY(-3px); box-shadow: 0 18px 34px -16px rgba(0,0,0,.7); }

.store-btn.is-soon { opacity: .58; cursor: default; }
.store-btn.is-soon strong::after {
    content: 'Coming soon';
    display: inline-block;
    margin-inline-start: 8px;
    font-family: var(--font-body);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    vertical-align: middle;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--sun);
    color: var(--ink);
}

.cta-foot { margin-top: 26px; font-size: .88rem; color: rgba(255,255,255,.7); }
.cta-foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ===================== FAQ ==================== */

.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }

.faq details {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--paper);
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.faq details[open] { border-color: rgba(2,148,169,.34); box-shadow: var(--shadow-sm); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.03rem;
    display: flex;
    align-items: center;
    gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '';
    margin-inline-start: auto;
    width: 11px; height: 11px;
    flex-shrink: 0;
    border-right: 2.5px solid var(--teal);
    border-bottom: 2.5px solid var(--teal);
    transform: rotate(45deg);
    transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--muted); font-size: .96rem; }

/* ===================== Footer ==================== */

.footer {
    background: var(--ink);
    color: rgba(232, 246, 248, .62);
    padding-block: clamp(52px, 7vw, 76px) 32px;
    font-size: .92rem;
}
.footer-grid {
    display: grid;
    /* Narrow first: fixed track minimums here were what pushed the whole
       document past 375px. Only widen into named columns once there is room. */
    grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
    gap: clamp(28px, 4vw, 52px);
}
@media (min-width: 900px) {
    .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
}
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer h4 {
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(232,246,248,.4);
    margin-bottom: 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer a:hover { color: var(--sky); }
.footer-bottom {
    margin-top: clamp(36px, 5vw, 54px);
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.09);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    font-size: .85rem;
    color: rgba(232,246,248,.42);
}

/* ===================== Scroll reveal ==================== */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .journey[data-beat] .journey-panel { opacity: 1; }
}
