/* ============================================================
   KikiPaw — modern 3D landing (mobile-first)
   Loaded after style.css; reuses its CSS variables & header/footer.
   ============================================================ */

:root {
    --grad-hero: linear-gradient(135deg, #17C2B8 0%, #8E7BFF 55%, #F472B6 100%);
    --grad-sos: linear-gradient(135deg, #FF5A5A, #FF9A5A);
    --grad-lost: linear-gradient(135deg, #F59E0B, #FF7A45);
    --grad-remind: linear-gradient(135deg, #3B82F6, #17C2B8);
    --grad-family: linear-gradient(135deg, #8E7BFF, #C084FC);
    --grad-ai: linear-gradient(135deg, #F472B6, #8E7BFF);
    --glass: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.55);
    --stage-shadow: 0 30px 60px -20px rgba(31, 41, 55, 0.25);
}

[data-theme="dark"] {
    --glass: rgba(30, 36, 51, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --stage-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

html { scroll-behavior: smooth; }

body { overflow-x: clip; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--grad-hero);
    z-index: 300;
    border-radius: 0 3px 3px 0;
}

/* ---------- Ambient background orbs ---------- */
.orb-field {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-1 { width: 45vmax; height: 45vmax; top: -18vmax; left: -12vmax; background: #17C2B8; }
.orb-2 { width: 38vmax; height: 38vmax; top: 30%; right: -16vmax; background: #8E7BFF; animation-delay: -6s; }
.orb-3 { width: 32vmax; height: 32vmax; bottom: -14vmax; left: 15%; background: #F472B6; animation-delay: -12s; }

[data-theme="dark"] .orb { opacity: 0.18; }

@keyframes orbFloat {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(4vmax, -3vmax, 0) scale(1.15); }
}

/* ---------- Shared: reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(36px) scale(0.98);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ---------- Gradient text ---------- */
.grad-text {
    background: var(--grad-hero);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============================================================
   HERO
   ============================================================ */
.hero3d {
    padding: 40px 0 72px;
    perspective: 1200px;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.hero-copy {
    text-align: center;
    max-width: 560px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(23, 194, 184, 0.25); }
    50% { box-shadow: 0 0 0 10px rgba(23, 194, 184, 0); }
}

.hero-title {
    font-size: clamp(32px, 8vw, 56px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.hero-sub {
    font-size: clamp(15px, 4vw, 18px);
    font-weight: 600;
    color: var(--muted-text);
    margin-bottom: 28px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 22px;
    border-radius: 18px;
    background: var(--on-surface);
    color: var(--surface);
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    box-shadow: var(--stage-shadow);
    transition: transform 0.25s ease;
}

.store-badge:hover { transform: translateY(-3px) scale(1.02); }
.store-badge .sb-icon { font-size: 22px; }
.store-badge small { display: block; font-size: 10px; font-weight: 600; opacity: 0.7; }

/* ---------- Hero 3D stage (phone + floating chips) ---------- */
.hero-stage {
    position: relative;
    width: min(310px, 78vw);
    aspect-ratio: 9 / 18.6;
    transform-style: preserve-3d;
    will-change: transform;
}

.phone {
    position: absolute;
    inset: 0;
    border-radius: 44px;
    background: linear-gradient(160deg, #39445C, #1A2130 45%, #0C111B);
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        var(--stage-shadow),
        inset 0 1px 1px rgba(255, 255, 255, 0.28),
        inset 0 -1px 1px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    transform: rotateY(-12deg) rotateX(4deg);
    animation: phoneIdle 7s ease-in-out infinite alternate;
}

/* Side buttons */
.phone::before {
    content: '';
    position: absolute;
    right: -4px; top: 24%;
    width: 4px; height: 52px;
    border-radius: 3px;
    background: linear-gradient(90deg, #39445C, #141A26);
}

.phone::after {
    content: '';
    position: absolute;
    left: -4px; top: 20%;
    width: 4px; height: 34px;
    border-radius: 3px;
    background: linear-gradient(90deg, #141A26, #39445C);
    box-shadow: 0 46px 0 0 #1A2130;
}

@keyframes phoneIdle {
    from { transform: rotateY(-12deg) rotateX(4deg) translateZ(0); }
    to   { transform: rotateY(-4deg) rotateX(-2deg) translateZ(14px); }
}

.phone-screen {
    height: 100%;
    border-radius: 33px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 7px;
    padding: 26px 11px 12px;
    position: relative;
}

/* Screen glare */
.phone-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 30%, transparent 46%);
    pointer-events: none;
    z-index: 6;
}

[data-theme="dark"] .phone-screen::after {
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 30%, transparent 46%);
}

/* Status bar */
.ps-status {
    display: flex;
    justify-content: space-between;
    font-size: 8.5px;
    font-weight: 800;
    color: var(--muted-text);
    padding: 0 6px;
    letter-spacing: 0.3px;
}

.phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 22px;
    border-radius: 12px;
    background: #10151F;
    z-index: 2;
}

/* App bar */
.ps-appbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 900;
}

.ps-brand { display: inline-flex; align-items: center; gap: 4px; }

.ps-bell { position: relative; font-size: 13px; }
.ps-bell i {
    position: absolute;
    top: -5px; right: -7px;
    min-width: 13px; height: 13px;
    padding: 0 3px;
    border-radius: 9999px;
    background: var(--error);
    border: 1.5px solid var(--surface);
    color: #fff;
    font-size: 7.5px;
    font-weight: 900;
    font-style: normal;
    display: grid;
    place-items: center;
    line-height: 1;
}

/* Pet picker */
.ps-pets {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 8px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.ps-pet {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 46px;
    font-size: 19px;
}

.ps-pet .ps-pet-ava {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--input-fill);
    border: 2px solid var(--card);
    box-shadow: 0 0 0 1.5px var(--border), inset 0 -6px 8px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
}

/* Photo-like avatar backgrounds */
.ps-pet-ava.pet-a { background: radial-gradient(circle at 32% 28%, #E8C39A, #B97E45 70%, #8A5527); }
.ps-pet-ava.pet-b { background: radial-gradient(circle at 32% 28%, #C9CBD8, #8E93A8 70%, #5E6377); }
.ps-pet-ava.pet-c { background: radial-gradient(circle at 32% 28%, #F3E3D0, #D9B893 70%, #A98253); }

.ps-pet-ava span {
    font-size: 22px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
    transform: translateY(2px);
}

.ps-pet.active .ps-pet-ava {
    box-shadow: 0 0 0 2px var(--primary), 0 0 0 5px rgba(23, 194, 184, 0.22), inset 0 -6px 8px rgba(0, 0, 0, 0.12);
}

.ps-pet small {
    font-size: 8px;
    font-weight: 800;
    color: var(--muted-text);
}

.ps-pet.active small { color: var(--primary); }

.ps-pet.ps-pet-add .ps-pet-ava {
    background: transparent;
    border: 2px dashed var(--border);
    box-shadow: none;
    color: var(--muted-text);
}

.ps-pet.ps-pet-add .ps-pet-ava span {
    font-size: 15px;
    font-weight: 900;
    filter: none;
    transform: none;
}

/* Card groups — bordered sections like real app cards */
.ps-group {
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 9px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ps-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--muted-text);
}

.ps-count {
    font-size: 9px;
    font-weight: 900;
    color: var(--primary);
    background: var(--mint-tint);
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: none;
    letter-spacing: 0;
}

/* Progress bar */
.ps-progress {
    height: 5px;
    border-radius: 9999px;
    background: var(--input-fill);
    overflow: hidden;
}

.ps-progress i {
    display: block;
    width: 66%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #5EDDD4);
}

/* Entry rows */
.ps-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px;
    border-radius: 12px;
    background: var(--input-fill);
    border: 1px solid var(--border);
    font-size: 10px;
}

.ps-row.done { opacity: 0.72; }
.ps-row.done .ps-texts b { text-decoration: line-through; }

.ps-tile {
    width: 26px; height: 26px;
    flex-shrink: 0;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 13px;
    background: var(--card);
    border: 1px solid var(--border);
}

.tint-peach  { background: var(--peach-tint); }
.tint-violet { background: var(--violet-tint); }
.tint-sky    { background: var(--sky-tint); }
.tint-pink   { background: var(--pink-tint); }

.ps-texts {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.ps-texts b { font-size: 10px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-texts small { font-size: 8px; font-weight: 600; color: var(--muted-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ps-time { margin-left: auto; font-size: 9px; font-weight: 900; color: var(--primary); flex-shrink: 0; }
.ps-chevron { margin-left: auto; font-size: 13px; font-weight: 900; color: var(--muted-text); flex-shrink: 0; }

.ps-check {
    width: 17px; height: 17px;
    margin-left: auto;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 9px;
    color: #fff;
    background: var(--primary);
    flex-shrink: 0;
}

.ps-date {
    width: 30px; height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--sky-tint);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: var(--info);
    line-height: 1;
}

.ps-date small { font-size: 6.5px; font-weight: 900; letter-spacing: 0.5px; color: var(--info); }

/* Weight chart */
.ps-chart {
    border-radius: 12px;
    background: var(--input-fill);
    border: 1px solid var(--border);
    padding: 6px 8px 3px;
}

.ps-chart svg { display: block; width: 100%; height: 34px; }

/* Bottom nav */
.ps-nav {
    margin-top: 2px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 4px;
    font-size: 14px;
}

.ps-nav span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    opacity: 0.5;
    filter: grayscale(0.4);
    padding: 2px 7px;
    border-radius: 10px;
}

.ps-nav span small {
    font-size: 6.5px;
    font-weight: 800;
    color: var(--muted-text);
    letter-spacing: 0.2px;
}

.ps-nav span.active {
    opacity: 1;
    filter: none;
    background: var(--mint-tint);
}

.ps-nav span.active small { color: var(--primary); }

/* Emergency FAB */
.ps-fab {
    position: absolute;
    right: 11px;
    bottom: 66px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--grad-sos);
    border: 2px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 8px 20px -4px rgba(255, 90, 90, 0.65);
    animation: fabFloat 2.6s ease-in-out infinite;
    z-index: 3;
}

@keyframes fabFloat {
    0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 8px 20px -4px rgba(255, 90, 90, 0.65); }
    50% { transform: translateY(-6px) scale(1.06); box-shadow: 0 14px 26px -4px rgba(255, 90, 90, 0.8); }
}

/* Floating feature chips */
.float-chip {
    --chip-c: #FF5A5A;
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 9999px;
    background: var(--glass);
    border: 2px solid color-mix(in srgb, var(--chip-c) 55%, transparent);
    backdrop-filter: blur(14px);
    box-shadow:
        var(--stage-shadow),
        0 0 22px -6px color-mix(in srgb, var(--chip-c) 55%, transparent);
    color: var(--chip-c);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    will-change: transform;
    animation: chipFloat 3.6s ease-in-out infinite;
}

.chip-sos {
    font-size: 14.5px;
    padding: 12px 20px;
}

.chip-sos::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 2px solid color-mix(in srgb, var(--chip-c) 50%, transparent);
    animation: chipRing 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes chipRing {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.35); opacity: 0; }
}

.chip-sos    { --chip-c: #FF5A5A; top: -4%; right: -8%; }
.chip-lost   { --chip-c: #F59E0B; top: 19.5%; left: -11%; animation-delay: -1.2s; animation-duration: 4.1s; }
.chip-remind { --chip-c: #3B82F6; top: 44%; right: -12%; animation-delay: -2.4s; animation-duration: 3.3s; }
.chip-diary  { --chip-c: #17C2B8; bottom: 30.5%; left: -12%; animation-delay: -3.1s; animation-duration: 4.5s; }
.chip-family { --chip-c: #8E7BFF; bottom: -2%; right: -9%; animation-delay: -1.8s; animation-duration: 3.8s; }

@keyframes chipFloat {
    0%   { transform: translateY(-14px) translateX(-5px) rotate(-4deg) translateZ(60px); }
    50%  { transform: translateY(12px) translateX(6px) rotate(3deg) translateZ(90px); }
    100% { transform: translateY(-14px) translateX(-5px) rotate(-4deg) translateZ(60px); }
}

/* ============================================================
   FEATURE SHOWCASES
   ============================================================ */
.features3d {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-bottom: 30px;
}

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 12px;
    padding: 0 20px;
}

.section-head h2 {
    font-size: clamp(26px, 6vw, 40px);
    font-weight: 900;
    letter-spacing: -0.8px;
    margin-bottom: 10px;
}

.section-head p {
    color: var(--muted-text);
    font-weight: 600;
    font-size: 15px;
}

.feature-show {
    perspective: 1400px;
}

.feature-card3d {
    position: relative;
    border-radius: 32px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    box-shadow: var(--stage-shadow);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out, box-shadow 0.3s ease;
}

.feature-card3d::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: var(--fc-grad, var(--grad-hero));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}

.feature-card3d.accent-sos    { --fc-grad: var(--grad-sos); }
.feature-card3d.accent-lost   { --fc-grad: var(--grad-lost); }
.feature-card3d.accent-remind { --fc-grad: var(--grad-remind); }
.feature-card3d.accent-family { --fc-grad: var(--grad-family); }
.feature-card3d.accent-ai     { --fc-grad: var(--grad-ai); }

.feature-copy { transform: translateZ(30px); }

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #fff;
    background: var(--fc-grad, var(--grad-hero));
    margin-bottom: 14px;
}

.feature-copy h3 {
    font-size: clamp(24px, 5.6vw, 32px);
    font-weight: 900;
    letter-spacing: -0.6px;
    line-height: 1.15;
    margin-bottom: 10px;
}

.feature-copy > p {
    color: var(--muted-text);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 16px;
}

.feature-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-points li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    font-weight: 700;
}

.feature-points .fp-ico {
    width: 26px; height: 26px;
    flex-shrink: 0;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 13px;
    background: var(--input-fill);
}

/* ---------- Feature visual (mini mock) ---------- */
.feature-visual {
    transform: translateZ(50px);
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
}

.mock {
    width: 100%;
    max-width: 340px;
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--stage-shadow);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-title {
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* SOS mock */
.mock-sos-btn {
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    background: var(--grad-sos);
    box-shadow: 0 10px 24px -8px rgba(255, 90, 90, 0.6);
    animation: sosPulse 2s ease-in-out infinite;
}

@keyframes sosPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.mock-sos-secondary {
    border-radius: 16px;
    padding: 13px;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
    background: var(--input-fill);
}

.mock-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mock-chip {
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 9999px;
    background: var(--input-fill);
    color: var(--muted-text);
}

/* Lost mock — radar */
.mock-radar {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 55%, rgba(245, 158, 11, 0.18), transparent 60%),
        repeating-linear-gradient(0deg, transparent 0 34px, var(--border) 34px 35px),
        repeating-linear-gradient(90deg, transparent 0 34px, var(--border) 34px 35px),
        var(--input-fill);
}

.radar-ring {
    position: absolute;
    top: 55%; left: 50%;
    width: 30px; height: 30px;
    border: 2px solid #F59E0B;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radarPing 2.4s ease-out infinite;
    opacity: 0;
}

.radar-ring:nth-child(2) { animation-delay: 0.8s; }
.radar-ring:nth-child(3) { animation-delay: 1.6s; }

@keyframes radarPing {
    0% { width: 26px; height: 26px; opacity: 0.9; }
    100% { width: 190px; height: 190px; opacity: 0; }
}

.radar-pin {
    position: absolute;
    top: 55%; left: 50%;
    transform: translate(-50%, -85%);
    font-size: 30px;
    filter: drop-shadow(0 6px 8px rgba(0,0,0,0.3));
    animation: pinBob 2s ease-in-out infinite;
}

@keyframes pinBob {
    0%, 100% { transform: translate(-50%, -85%); }
    50% { transform: translate(-50%, -100%); }
}

.mock-alert-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--gold-tint, #FFF5E6);
}

[data-theme="dark"] .mock-alert-note { background: #33270F; }

/* Reminders mock — stacked notifications */
.mock-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform-style: preserve-3d;
}

.mock-notif {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--input-fill);
    font-size: 12.5px;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.mock-notif .mn-ico {
    width: 34px; height: 34px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 16px;
    background: var(--card);
}

.mock-notif small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted-text); }
.mock-notif .mn-time { margin-left: auto; font-size: 11px; font-weight: 900; color: var(--primary); }

.mock-stack .mock-notif:nth-child(1) { transform: translateZ(36px); }
.mock-stack .mock-notif:nth-child(2) { transform: translateZ(22px) scale(0.985); opacity: 0.95; }
.mock-stack .mock-notif:nth-child(3) { transform: translateZ(8px) scale(0.97); opacity: 0.9; }

/* Family mock */
.mock-avatars {
    display: flex;
    align-items: center;
}

.mock-avatars .mav {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    border: 3px solid var(--card);
    background: var(--violet-tint);
    margin-left: -10px;
}

.mock-avatars .mav:first-child { margin-left: 0; }
.mock-avatars .mav-plus {
    background: var(--input-fill);
    font-size: 16px;
    font-weight: 900;
    color: var(--muted-text);
}

.mock-task-done { text-decoration: line-through; opacity: 0.65; }

/* AI mock — chat */
.mock-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mc-row { display: flex; gap: 8px; align-items: flex-end; }
.mc-row.user { justify-content: flex-end; }

.mc-avatar {
    width: 30px; height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 15px;
    background: var(--pink-tint);
}

.mc-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 12.5px;
    font-weight: 700;
    background: var(--input-fill);
    border-bottom-left-radius: 6px;
}

.mc-row.user .mc-bubble {
    background: var(--grad-ai);
    color: #fff;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 6px;
}

.mc-dots { display: inline-flex; gap: 4px; }
.mc-dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--muted-text);
    animation: dotBlink 1.2s infinite;
}
.mc-dots span:nth-child(2) { animation-delay: 0.2s; }
.mc-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBlink {
    0%, 80%, 100% { opacity: 0.25; }
    40% { opacity: 1; }
}

/* ============================================================
   OTHER TOOLS GRID
   ============================================================ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.tool-card {
    border-radius: 22px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    padding: 20px 16px;
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out, box-shadow 0.3s ease;
}

.tool-card .tc-ico {
    width: 52px; height: 52px;
    margin: 0 auto 12px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 26px;
    background: var(--input-fill);
    transform: translateZ(24px);
}

.tool-card h4 {
    font-size: 14.5px;
    font-weight: 900;
    margin-bottom: 6px;
    transform: translateZ(16px);
}

.tool-card p {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted-text);
    transform: translateZ(10px);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
    padding: 60px 0 80px;
    perspective: 1200px;
}

.final-cta-card {
    position: relative;
    border-radius: 36px;
    padding: 48px 24px;
    text-align: center;
    color: #fff;
    background: var(--grad-hero);
    background-size: 200% 200%;
    animation: gradShift 9s ease infinite;
    box-shadow: var(--stage-shadow);
    overflow: hidden;
    transform-style: preserve-3d;
}

@keyframes gradShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.final-cta-card h2 {
    font-size: clamp(26px, 6vw, 40px);
    font-weight: 900;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
    transform: translateZ(30px);
}

.final-cta-card p {
    font-weight: 700;
    opacity: 0.9;
    margin-bottom: 26px;
    transform: translateZ(20px);
}

.final-cta-card .hero-eyebrow {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    animation: none;
    margin-bottom: 0;
    transform: translateZ(40px);
}

.cta-paws {
    position: absolute;
    font-size: 90px;
    opacity: 0.12;
    pointer-events: none;
}

.cta-paws.p1 { top: -14px; left: -6px; transform: rotate(-24deg); }
.cta-paws.p2 { bottom: -20px; right: -4px; transform: rotate(18deg); }

/* ============================================================
   DESKTOP LAYOUT
   ============================================================ */
@media (min-width: 860px) {
    .hero3d { padding: 64px 0 100px; }

    .hero-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .hero-copy { text-align: left; }
    .hero-ctas { justify-content: flex-start; }

    .hero-stage { width: 330px; margin-right: 96px; }

    .float-chip { font-size: 13.5px; padding: 11px 18px; }
    .chip-sos { font-size: 16px; padding: 14px 24px; }

    .chip-sos    { top: -4%; right: auto; left: calc(100% - 52px); bottom: auto; }
    .chip-lost   { top: 16%; left: auto; right: calc(100% + 16px); }
    .chip-remind { top: 44%; left: calc(100% + 14px); right: auto; }
    .chip-diary  { bottom: 24%; left: auto; right: calc(100% + 24px); top: auto; }
    .chip-family { bottom: -3%; left: 58%; right: auto; }

    .feature-card3d {
        flex-direction: row;
        align-items: center;
        gap: 48px;
        padding: 48px;
    }

    .feature-show:nth-child(even) .feature-card3d { flex-direction: row-reverse; }

    .feature-copy { flex: 1 1 50%; }
    .feature-visual { flex: 1 1 45%; }

    .features3d { gap: 40px; }

    .tools-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

    .final-cta-card { padding: 72px 48px; }
}

/* ============================================================
   SMALL SCREENS
   ============================================================ */
@media (max-width: 420px) {
    .header-container { padding: 0 12px; }
    .logo img { height: 32px; }
    .logo { gap: 8px; }
    .logo-text { font-size: 18px; }
    .header-nav { gap: 2px; }
    .nav-link { padding: 6px 5px; font-size: 13px; }
    .theme-toggle { padding: 6px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .orb, .phone, .float-chip, .mock-sos-btn, .radar-ring, .radar-pin,
    .hero-eyebrow, .final-cta-card, .mc-dots span {
        animation: none !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html { scroll-behavior: auto; }
}
