/* Identidade do Hospetse (theme.ts do app): laranja de destaque, céu azul no banner, azul-marinho para contraste, Poppins */
:root {
    --bg: #FCF7F2;
    --surface: #FFFFFF;
    --soft: #F7F1EA;
    --primary: #FF790F;
    --primary-dark: #B3560B;
    --dark: #1D1712;
    --text: #252525;
    --muted: #6B6B6B;
    --border: #EDE4DA;
    --tint: #FFF4EB;
    --navy: #13213A;
    --sky: #3E8EDC;
    --line: #ECEEF2;
    --radius-lg: 24px;
    --radius: 20px;
    --shadow: 0 1px 2px rgba(19, 33, 58, 0.04), 0 8px 24px rgba(19, 33, 58, 0.06);
    /* Fotos dos blocos (créditos em img/CREDITOS.md); sem a foto, fica o degradê por baixo */
    --photo-tutor: url("../img/tutora-abracando-cachorro.webp");
    --photo-host: url("../img/hospedagem-cachorro-cama.webp");
    --photo-sitter: url("../img/visita-pet-sitter-gato.webp");
    --photo-walker: url("../img/passeio-pet-walker-caes.webp");
    /* Céu do banner, da abertura e do bloco do app: azul liso com poucas nuvens leves */
    --clouds: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='420' viewBox='0 0 1200 420'%3E%3Cfilter id='b' x='-20%' y='-40%' width='140%' height='180%'%3E%3CfeGaussianBlur stdDeviation='9'/%3E%3C/filter%3E%3Cg fill='%23fff' filter='url(%23b)'%3E%3Cg opacity='.5'%3E%3Cellipse cx='170' cy='92' rx='120' ry='26'/%3E%3Cellipse cx='140' cy='72' rx='52' ry='30'/%3E%3Cellipse cx='205' cy='66' rx='62' ry='38'/%3E%3C/g%3E%3Cg opacity='.38'%3E%3Cellipse cx='960' cy='60' rx='150' ry='24'/%3E%3Cellipse cx='930' cy='44' rx='60' ry='26'/%3E%3Cellipse cx='1005' cy='40' rx='70' ry='32'/%3E%3C/g%3E%3Cg opacity='.3'%3E%3Cellipse cx='560' cy='330' rx='130' ry='20'/%3E%3Cellipse cx='585' cy='312' rx='60' ry='26'/%3E%3C/g%3E%3Cg opacity='.42'%3E%3Cellipse cx='1080' cy='250' rx='100' ry='20'/%3E%3Cellipse cx='1060' cy='234' rx='48' ry='24'/%3E%3Cellipse cx='1110' cy='230' rx='40' ry='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --sky-bg: var(--clouds) 0 16px / 1200px auto repeat-x, linear-gradient(180deg, #2C7DD6 0%, #4D9BE6 100%);
    font-family: Poppins, system-ui, sans-serif;
    color: var(--text);
    background: var(--surface);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; line-height: 1.6; min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
h1, h2 { margin: 0; line-height: 1.15; font-weight: 400; letter-spacing: -0.02em; color: var(--navy); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
/* Sobre laranja ou escuro o contorno laranja some: lá ele fica branco */
/* Sobre céu, foto ou azul-marinho o contorno fica branco */
.hero :focus-visible, .app :focus-visible, .hl-dark :focus-visible, .pets :focus-visible, .service :focus-visible { outline-color: #fff; }
main:focus { outline: none; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--dark); color: #fff; padding: 10px 20px; border-radius: 999px; text-decoration: none; z-index: 60; }
.skip-link:focus { left: 8px; }

/* Conteúdo centralizado com respiro nas laterais; o fundo branco é a página inteira */
.page { width: min(100% - 64px, 1200px); margin: 0 auto; padding-bottom: 32px; }

/* Botões e rótulos */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; font-size: 0.95rem; font-weight: 500; text-decoration: none; border: 0; cursor: pointer; transition: background 0.15s, transform 0.15s, box-shadow 0.15s; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--primary-dark); }
/* Botões de ação em laranja Hospetse; o tom é um pouco mais fechado para o texto branco ficar legível */
.btn-primary { background: #E8650A; color: #fff; box-shadow: 0 6px 16px rgba(232, 101, 10, 0.28); }
.btn-primary:hover { background: var(--primary-dark); }
/* "Em breve" não parece clicável: borda tracejada, sem fundo forte e cursor de bloqueado */
.btn-soon { background: rgba(19, 33, 58, 0.28); color: #fff; border: 1px dashed rgba(255, 255, 255, 0.8); cursor: not-allowed; font: inherit; font-size: 0.95rem; font-weight: 500; }
.btn:disabled { transform: none; }
.btn:active { transform: scale(0.98); }
.label { line-height: 1.6; font-weight: 400; margin: 0; justify-self: start; align-self: start; width: fit-content; display: inline-block; padding: 5px 14px; border: 1px solid #D9DDE4; border-radius: 999px; font-size: 0.85rem; color: var(--navy); }
.label-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.glass { align-self: flex-start; width: fit-content; display: inline-block; padding: 6px 16px; border-radius: 999px; background: rgba(19, 33, 58, 0.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 0.9rem; border: 1px solid rgba(255, 255, 255, 0.4); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }

/* Cabeçalho */
.header { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand img { width: 120px; }
.nav { display: flex; align-items: center; gap: 12px; }
.nav { margin-inline: auto; }
.pill-link { padding: 8px 16px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-size: 0.95rem; color: var(--navy); }
/* Seção atual fica num contorno de pílula, como no menu de referência */
.pill-link:hover, .pill-link[aria-current="true"] { border-color: #CDD3DC; }
.nav-cta { margin-left: 0; }
.header .nav-cta { position: absolute; right: 0; }
.header { position: relative; }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--dark); transition: transform 0.2s, opacity 0.2s; }

/* Banner */
.hero { position: relative; min-height: 580px; border-radius: var(--radius-lg); overflow: hidden; display: grid; place-items: center; text-align: center; color: #fff; padding: 56px 24px 150px; background: var(--sky-bg); }
.hero-content { max-width: 760px; display: grid; justify-items: center; gap: 18px; align-self: start; margin-top: 24px; }
.hero h1 { text-wrap: balance; color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 400; letter-spacing: -0.025em; text-shadow: 0 1px 2px rgba(16, 52, 104, 0.2); }
.hero p { font-weight: 400; text-shadow: 0 1px 2px rgba(16, 52, 104, 0.25); font-size: 1.05rem; max-width: 640px; }
.hero-footer { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 0.8rem; }
.hero-badge { display: flex; align-items: center; gap: 12px; text-align: left; line-height: 1.3; }
.avatars { display: flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); backdrop-filter: blur(8px); }
.avatars img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -8px; background: #fff; }
.avatars img:first-child { margin-left: 0; }

/* Abertura com os bichos: começa em tela cheia (html.intro) e termina dentro do banner.
   --p vai de 0 (tela cheia) a 1 (banner) e mistura tamanho e posição de cada bicho; o js/intro.js anima o valor */
html { scrollbar-gutter: stable; }
html.intro { overflow: hidden; }
.hero-content { position: relative; z-index: 1; }
.hero-footer { z-index: 1; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25); }
/* O texto do banner aparece suave quando a abertura termina */
.hero-content, .hero-footer { transition: opacity 0.5s 0.1s, translate 0.5s 0.1s; }
html.intro .hero-content, html.intro .hero-footer { opacity: 0; translate: 0 12px; }
.pets { --p: 1; position: absolute; inset: 0; container: pets / size; pointer-events: none; }
.pets::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity 0.4s;
    background: var(--sky-bg); animation: clouds-drift 140s linear infinite; }
/* 100vw/100dvh: cobre a faixa da barra de rolagem e só a área visível no Safari */
html.intro .pets { --p: 0; position: fixed; inset: auto; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 50; pointer-events: auto; overflow: hidden; transition: opacity 0.45s; }
html.intro .pets::before { opacity: 1; transition: none; }
html.intro .pets.is-fading { opacity: 0; }

/* Morro verde que serve de chão */
.pets-hill { position: absolute; left: 0; bottom: 0; width: 100%; height: calc(34cqh * (1 - var(--p)) + 26cqh * var(--p)); display: block; }
.hill-back { fill: #4FC27A; }
.hill-front { fill: #2E9A57; }

/* Nome no meio da tela cheia; some quando os bichos vão para o banner */
.pets-title { position: absolute; left: 0; right: 0; top: 16cqh; display: grid; justify-items: center; gap: 4px; color: #fff; opacity: clamp(0, 1 - var(--p) * 3, 1); }
html:not(.intro) .pets-title { display: none; }
.pets-title strong { font-size: clamp(2.6rem, 9cqw, 6rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.pets-title span { font-size: clamp(1rem, 2.2cqw, 1.4rem); font-weight: 300; }
.pets-skip { position: absolute; top: 20px; right: 20px; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.28); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; font: inherit; font-size: 0.85rem; cursor: pointer; display: none; }
html.intro .pets-skip { display: block; }
html.intro .pets.is-landing .pets-skip { display: none; }

/* Cada bicho: --x é o centro (em %), --b a altura dos pés e --h a altura; 0 = tela cheia, 1 = banner */
.pet { position: absolute; left: calc(var(--x0) * (1 - var(--p)) + var(--x1) * var(--p)); bottom: calc(var(--b0) * (1 - var(--p)) + var(--b1) * var(--p)); height: calc(var(--h0) * (1 - var(--p)) + var(--h1) * var(--p)); aspect-ratio: 120 / 150; transform: translateX(-50%); }
.pet svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 100%; }
.pet-dog { aspect-ratio: 280 / 210; z-index: 0; --x0: 30%; --b0: 13cqh; --h0: min(50cqh, 32cqw); --x1: 12%; --b1: 13cqh; --h1: min(36cqh, 19cqw); }
.pet-calico { z-index: 1; --x0: 58%; --b0: 12cqh; --h0: min(30cqh, 19cqw); --x1: 28%; --b1: 11.5cqh; --h1: min(24cqh, 13cqw); }
.pet-orange { z-index: 1; --x0: 73%; --b0: 14cqh; --h0: min(32cqh, 20cqw); --x1: 76%; --b1: 12.5cqh; --h1: min(26cqh, 14cqw); }
.pet-white { z-index: 1; --x0: 87%; --b0: 12cqh; --h0: min(28cqh, 18cqw); --x1: 88%; --b1: 11.5cqh; --h1: min(23cqh, 12.5cqw); }

/* Traço grosso e cores chapadas */
.pet .o, .pet .line, .pet .tail-o { stroke: var(--dark); stroke-width: 3; stroke-linejoin: round; }
.pet .line { fill: none; }
.pet .fur { fill: var(--fur); }
.pet .fur-b { fill: #2A2320; }
.pet .fur-c { fill: #A35A26; }
.pet .fur-far { fill: var(--fur-far, #E9DFD2); }
.pet .chest, .pet .muzzle { fill: var(--chest, #FFF8EE); }
.pet .paw { fill: var(--paw, var(--fur)); }
.pet .ear-in { fill: #F7A8B8; }
.pet .shadow { fill: rgba(29, 23, 18, 0.22); }
.pet .eyes { fill: var(--dark); }
.pet .eyes .shine { fill: #fff; }
.pet .eyes .iris { fill: #7FC8E8; }
.pet .cheek { fill: #FF8FA3; opacity: 0.7; }
.pet .nose { fill: #F2809A; }
.pet-dog .nose { fill: var(--dark); }
.pet .mouth { fill: none; stroke: var(--dark); stroke-width: 2; stroke-linecap: round; }
.pet .stripe { fill: none; stroke: #C85E12; stroke-width: 3.5; stroke-linecap: round; }
.pet .tail-o, .pet .tail-f { fill: none; stroke-linecap: round; }
.pet .tail-o { stroke-width: 14; }
.pet .tail-f { stroke-width: 8; stroke: var(--fur); }
.pet .tail-f.fur-c { stroke: #A35A26; }
.pet .collar { fill: none; stroke: #B3560B; stroke-width: 8; stroke-linecap: round; }
.pet .ring { fill: #D9D4CC; stroke-width: 2; }
.pet .fur-warm { fill: #F6E7CF; }
.pet .fur-ear { fill: #EFD3A8; }
.pet .eyes .iris-dog { fill: #4A2A17; stroke: var(--dark); stroke-width: 2.5; }
.pet .fold { fill: none; stroke: #D9B57E; stroke-width: 2.5; stroke-linecap: round; }
.pet .brow { fill: none; stroke: #E3C597; stroke-width: 3; stroke-linecap: round; }
.pet .toes { fill: none; stroke: var(--dark); stroke-width: 2; stroke-linecap: round; }
.pet .tongue { fill: #F2809A; stroke-width: 2; }
.pet-calico { --fur: #FFFDF8; --chest: #FFFDF8; }
.pet-orange { --fur: #FBA751; --chest: #FFF1DF; --paw: #FFF1DF; }
.pet-white { --fur: #FFFFFF; --chest: #FFFFFF; --fur-far: #EDE8E2; }
.pet-dog { --fur: #FFFAF1; --chest: #FFFAF1; --fur-far: #EFE3CF; }

/* Movimento parado: respirar, piscar, abanar o rabo e inclinar a cabeça */
.pet .torso, .pet .head, .pet .tail, .pet .eyes, .pet .tongue, .pet .ear { transform-box: fill-box; }
.pet .torso { transform-origin: 50% 100%; animation: pet-breathe 3s ease-in-out infinite; }
.pet .head { transform-origin: 50% 90%; animation: pet-tilt 5s ease-in-out infinite; }
.pet .tail { transform-origin: 0% 100%; animation: pet-swish 2.6s ease-in-out infinite; }
.pet .eyes { transform-origin: 50% 50%; animation: pet-blink 4.6s infinite; }
.pet-dog .tail { transform-origin: 100% 50%; animation: pet-wag 0.45s ease-in-out infinite alternate; }
.pet-dog .head { transform-origin: 30% 100%; animation-duration: 6s; }
.pet-dog .tongue { transform-origin: 50% 0%; animation: pet-pant 0.5s ease-in-out infinite alternate; }
.pet-dog .ear { transform-origin: 50% 5%; animation: pet-ear 6s ease-in-out infinite; }
.pet-orange .head { animation-delay: -1.5s; animation-duration: 4.2s; }
.pet-white .head { animation-delay: -3s; }
.pet-orange .eyes { animation-delay: 1.3s; animation-duration: 5.4s; }
.pet-white .eyes { animation-delay: 2.4s; animation-duration: 3.9s; }
.pet-dog .eyes { animation-delay: 0.7s; }
.pet-orange .tail { animation-delay: -0.8s; }
.pet-white .tail { animation-delay: -1.7s; animation-duration: 3.2s; }
.pet-calico .torso { animation-delay: -1s; }
.pet-white .torso { animation-delay: -2s; }

/* Entrada em sequência, com quique, só durante a abertura */
html.intro .pets-hill { animation: hill-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
html.intro .pets-title > * { animation: title-in 0.6s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
html.intro .pet svg { animation: pet-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
html.intro .pet-calico svg { animation-delay: 0.35s; }
html.intro .pet-orange svg { animation-delay: 0.6s; }
html.intro .pet-white svg { animation-delay: 0.85s; }
html.intro .pet-dog svg { animation-delay: 1.1s; animation-duration: 0.8s; }

@keyframes hill-in { from { transform: translateY(100%); } }
@keyframes title-in { from { opacity: 0; transform: translateY(24px) scale(0.9); } }
@keyframes pet-in {
    0% { opacity: 0; transform: translateY(60%) scale(0.3, 0.5); }
    55% { opacity: 1; transform: translateY(-10%) scale(1.05, 0.97); }
    75% { transform: translateY(0) scale(1.06, 0.92); }
    100% { opacity: 1; transform: none; }
}
@keyframes pet-breathe { 50% { transform: scale(1.015, 1.035); } }
@keyframes pet-tilt { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-5deg); } 60% { transform: rotate(3deg); } }
@keyframes pet-swish { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(10deg); } }
@keyframes pet-wag { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
@keyframes pet-blink { 0%, 93%, 100% { transform: none; } 96% { transform: scaleY(0.1); } }
@keyframes pet-pant { from { transform: scaleY(0.85); } to { transform: scaleY(1.1); } }
@keyframes pet-ear { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(6deg); } 50% { transform: rotate(-3deg); } }

/* Quem somos */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; padding: 72px 0 48px; }
.statement { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.4; color: var(--navy); font-weight: 400; letter-spacing: -0.01em; }
.soft-text { color: #8A93A3; }

/* Três cards */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hl { border-radius: var(--radius-lg); padding: 28px; min-height: 320px; display: flex; flex-direction: column; }
.hl-dark { background: var(--navy); color: #fff; }
.hl-text { font-size: 1.35rem; line-height: 1.35; flex: 1; font-weight: 400; }
.dim { color: rgba(255, 255, 255, 0.55); }
.toggle-row { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.6); margin-top: 20px; }
.toggle { width: 46px; height: 26px; border-radius: 999px; background: var(--primary); position: relative; }
.toggle span { position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.hl-photo { justify-content: flex-end; align-items: flex-start; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.3)), var(--photo-tutor) center 30% / cover, linear-gradient(160deg, #FFB37A, #FF790F); }
.hl-light { background: #F4F6F9; }
.hl-big { font-size: 3rem; line-height: 1; color: var(--navy); font-weight: 300; letter-spacing: -0.03em; }
.hl-title { font-weight: 500; margin: 8px 0 4px; color: var(--navy); }
.hl-muted { color: var(--muted); font-size: 0.85rem; }
.routine { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 10px; font-size: 0.85rem; }
.routine li { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 12px; }
.dots { display: flex; gap: 4px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); }

/* Números */
.facts { padding: 72px 0 64px; text-align: center; border-bottom: 1px solid var(--line); }
.facts-title { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 400; margin-bottom: 44px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; }
.facts-grid dt { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 300; letter-spacing: -0.03em; color: var(--navy); line-height: 1.2; }
.facts-grid dd { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

/* Serviços em carrossel */
.services { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 40px; padding: 72px 0 56px; }
.services-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.services-text { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.4; color: var(--navy); max-width: 360px; }
.carousel { min-width: 0; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: max(250px, calc((100% - 20px) / 2.25)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.carousel-track::-webkit-scrollbar { display: none; }
.service { scroll-snap-align: start; min-height: 360px; border-radius: var(--radius-lg); padding: 20px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; background-size: cover; background-position: center; }
.service-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.service p { font-weight: 500; max-width: 240px; line-height: 1.4; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.service-host { background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.55) 100%), var(--photo-host), linear-gradient(160deg, #FFB37A, #FF790F); }
.service-sitter { background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.55) 100%), var(--photo-sitter), linear-gradient(160deg, #F4A87A, #E8676B); }
.service-walker { background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.55) 100%), var(--photo-walker), linear-gradient(160deg, #C9A27E, #B3560B); }
.carousel-nav { display: flex; gap: 12px; margin-top: 16px; }
.round { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #D9DDE4; background: var(--surface); color: var(--navy); cursor: pointer; font-size: 1rem; text-decoration: none; }
.round:hover { border-color: var(--primary); color: var(--primary-dark); }
.round-light { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.92); }

/* Como funciona */
.how { padding: 56px 0; display: grid; gap: 16px; }
.how h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 300; }
.steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.steps strong { color: var(--navy); font-weight: 500; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 600; margin-bottom: 8px; }
.steps span { color: var(--muted); font-size: 0.9rem; }

/* Sobre o app */
/* Mesmo céu do banner, para fechar a página no mesmo clima */
.app { border-radius: var(--radius-lg); padding: 64px 24px; text-align: center; color: #fff; display: grid; justify-items: center; gap: 16px; background: var(--sky-bg); }
.app h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); text-shadow: 0 1px 2px rgba(16, 52, 104, 0.2); }
.app p { font-weight: 400; text-shadow: 0 1px 2px rgba(16, 52, 104, 0.25); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.app .btn-primary { background: var(--dark); }

/* Border collies do bloco "Sobre o app": entram quando o bloco aparece (.is-visible) e ficam se mexendo */
.app { position: relative; overflow: hidden; min-height: 380px; align-content: start; }
.app > :not(.collies) { position: relative; z-index: 1; }
/* Nuvens andando devagar */
.hero, .app { animation: clouds-drift 140s linear infinite; }
@keyframes clouds-drift { to { background-position: -1200px 16px, 0 0; } }
.collies { position: absolute; inset: 0; pointer-events: none; }
.collies-hill { position: absolute; left: 0; bottom: 0; width: 100%; height: 72px; display: block; }
.collie { position: absolute; }
.collie svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 100%; }
.collie-black { left: 8%; bottom: 18px; height: 200px; aspect-ratio: 150 / 170; }
.collie-white { right: 5%; bottom: 16px; width: 290px; aspect-ratio: 250 / 130; }
.collie .o, .collie .line { stroke: var(--dark); stroke-width: 3; stroke-linejoin: round; }
.collie .line { fill: none; }
.collie .coat { fill: #221C19; }
.collie .white, .collie .sclera { fill: #FFFFFF; }
.collie .far { fill: #E6E0D8; }
.collie .tip { fill: #221C19; }
.collie .shadow { fill: rgba(29, 23, 18, 0.22); }
.collie .eyes { fill: var(--dark); }
.collie .eyes .sclera { fill: #fff; }
.collie .eyes .shine { fill: #fff; }
.collie .nose { fill: var(--dark); }
.collie .mouth { fill: none; stroke: var(--dark); stroke-width: 2; stroke-linecap: round; }
.collie .tongue { fill: #F2809A; stroke-width: 2; }
.collie .cheek { fill: #FF8FA3; opacity: 0.7; }
.collie .toes { fill: none; stroke: var(--dark); stroke-width: 2; stroke-linecap: round; }
.collie .ruff { fill: none; stroke: #E3DCD3; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Movimento parado: respirar, piscar, rabo, orelha e o deitado levantando a cabeça */
.collie .torso, .collie .head, .collie .tail, .collie .eyes, .collie .ear, .collie .tongue { transform-box: fill-box; }
.collie .torso { transform-origin: 50% 100%; animation: pet-breathe 3.2s ease-in-out infinite; }
.collie .eyes { transform-origin: 50% 50%; animation: pet-blink 4.8s 1s infinite; }
.collie-black .head { transform-origin: 50% 90%; animation: pet-tilt 5.5s ease-in-out infinite; }
.collie-black .tail { transform-origin: 0% 100%; animation: collie-sweep 1.4s ease-in-out infinite; }
.collie-black .tongue { transform-origin: 50% 0%; animation: pet-pant 0.5s ease-in-out infinite alternate; }
.collie-black .ear-right { transform-origin: 30% 100%; animation: collie-twitch 3.8s ease-in-out infinite; }
.collie-white .tail { transform-origin: 0% 60%; animation: pet-wag 0.6s ease-in-out infinite alternate; }
.collie-white .head { transform-origin: 90% 90%; animation: collie-lift 7s ease-in-out infinite; }
.collie-white .ear-near { transform-origin: 30% 100%; animation: collie-twitch 4.6s 1.2s ease-in-out infinite; }
.collie-white .eyes { animation-delay: 2.2s; animation-duration: 5.6s; }
.collie-white .torso { animation-duration: 3.8s; }

/* Entrada: o JS marca .is-waiting ao carregar e troca por .is-visible quando o bloco aparece */
.app.is-waiting .collie svg, .app.is-waiting .collies-hill { opacity: 0; }
.app.is-visible .collies-hill { animation: hill-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.app.is-visible .collie-black svg { animation: pet-in 0.75s 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.app.is-visible .collie-white svg { animation: collie-slide 0.9s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes collie-slide {
    0% { opacity: 0; transform: translateX(70%); }
    70% { opacity: 1; transform: translateX(-4%) scale(1.03, 0.96); }
    100% { opacity: 1; transform: none; }
}
@keyframes collie-sweep { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(8deg); } }
@keyframes collie-twitch { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-12deg); } 94% { transform: rotate(4deg); } }
@keyframes collie-lift { 0%, 35%, 100% { transform: none; } 45%, 70% { transform: rotate(-9deg) translateY(-4px); } 78% { transform: rotate(2deg); } }

/* Rodapé */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 32px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { display: inline-block; padding: 10px 0; text-decoration: none; color: var(--muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--primary-dark); }
.footer { border-top: 1px solid var(--line); margin-top: 32px; }

/* Página de erro */
.not-found { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 24px; }

/* Tablet: o menu vira botão aqui, antes de os links quebrarem em duas linhas */
@media (max-width: 960px) {
    .header { position: relative; height: 72px; }
    .menu-toggle { display: block; }
    .nav { position: absolute; top: 72px; left: 0; right: 0; z-index: 10; flex-direction: column; align-items: stretch; gap: 4px; background: var(--surface); padding: 12px 16px 20px; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); display: none; }
    .nav.is-open { display: flex; }
    .nav .pill-link { padding: 11px 14px; }
    .header .nav-cta { position: static; }
    .nav-cta { margin: 8px 0 0; justify-content: center; min-height: 44px; }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .about, .services { grid-template-columns: 1fr; }
    .highlights { grid-template-columns: 1fr 1fr; }
    .hl-light { grid-column: span 2; }
    .facts-grid, .steps { grid-template-columns: 1fr 1fr; }
}

/* Celular */
@media (max-width: 720px) {
    .page { width: 100%; padding: 0 16px 24px; }
    /* Banner do tamanho do conteúdo; embaixo fica só o espaço dos bichos */
    .hero { min-height: 0; padding: 36px 18px calc(96px + min(32vw, 170px)); border-radius: var(--radius); }
    .hero h1 { font-size: clamp(1.6rem, 7.4vw, 2.1rem); }
    .hero p { font-size: 0.95rem; max-width: 32ch; }
    .hero-content { margin-top: 0; gap: 14px; }
    .hero-footer { left: 16px; right: 16px; bottom: 12px; }
    .hero-tags { display: none; }
    /* Abertura: morro mais alto, cachorro atrás, gatos na frente, tudo acima da barra do Safari */
    .pets-title { top: 21cqh; }
    .pets-hill { height: calc(50cqh * (1 - var(--p)) + 110px * var(--p)); }
    .pet-dog { --x0: 50%; --b0: 33cqh; --h0: min(46cqw, 28cqh); --x1: 24%; --b1: 62px; --h1: min(32cqw, 170px); }
    .pet-calico { --x0: 17%; --b0: calc(11cqh + env(safe-area-inset-bottom, 0px)); --h0: min(30cqw, 20cqh); --x1: 55%; --b1: 60px; --h1: min(19cqw, 100px); }
    .pet-orange { --x0: 50%; --b0: calc(10cqh + env(safe-area-inset-bottom, 0px)); --h0: min(31cqw, 21cqh); --x1: 72%; --b1: 64px; --h1: min(19.5cqw, 104px); }
    .pet-white { --x0: 83%; --b0: calc(11cqh + env(safe-area-inset-bottom, 0px)); --h0: min(29cqw, 19cqh); --x1: 89%; --b1: 60px; --h1: min(18cqw, 96px); }
    .highlights { grid-template-columns: 1fr; }
    .hl-light { grid-column: auto; }
    .carousel-track { grid-auto-columns: 85%; }
    .steps { grid-template-columns: 1fr; }
    /* App: botões empilhados e collies maiores logo abaixo */
    .app { min-height: 0; padding: 44px 18px calc(36px + min(40vw, 180px)); gap: 12px; }
    .stores { flex-direction: column; align-items: stretch; width: min(100%, 300px); }
    .stores .btn-soon { padding-inline: 16px; font-size: 0.88rem; }
    .collies-hill { height: 60px; }
    .collie-black { left: 3%; bottom: 14px; height: min(40vw, 180px); }
    .collie-white { right: 4%; bottom: 12px; width: min(47vw, 220px); }
    .footer { flex-direction: column; align-items: flex-start; }
}

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