/* Pet File · site
   Paleta do ícone do app (creme, marrom, amarelo, pêssego) com o verde-menta
   e o céu da referência petfile.io. Mobile first: a base é o celular e os
   blocos @media só acrescentam espaço e colunas. */

:root {
  --cream: #FBF1E8;
  --cream-2: #F6E6D8;
  --brown: #784237;
  --brown-2: #9B6B5F;
  --ink: #4A2A23;
  --yellow: #F7C45C;
  --yellow-2: #FBDC97;
  --peach: #F4A587;
  --peach-2: #FCDCCD;
  --mint: #DDF3CF;
  --mint-2: #B9E1A6;
  --sky: #CDEBF5;
  --sky-2: #EAF6FA;
  --white: #FFFFFF;

  --font-title: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 24px;
  --gutter: 16px;
  --shadow: 0 18px 40px -18px rgba(120, 66, 55, .35);
  --shadow-soft: 0 8px 24px -12px rgba(120, 66, 55, .28);

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; color: var(--brown); margin: 0; line-height: 1.1; letter-spacing: -.01em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

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

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--brown); color: var(--white);
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(.97); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; }

.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 360px; margin-inline: auto; }

.store {
  display: inline-flex; align-items: center; gap: 10px;
  justify-content: center; height: 54px; padding: 0 10px;
  border-radius: 12px; background: #000; color: #fff; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset;
  transition: transform .15s ease, box-shadow .15s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .55); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; white-space: nowrap; font: 600 clamp(16px, 4.6vw, 19px)/1.05 -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif; letter-spacing: -.01em; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: .02em; opacity: .9; margin-bottom: 2px; }

/* ---------- Topo ---------- */

.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(234, 246, 250, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(120, 66, 55, .08);
}
.top__inner { display: flex; align-items: center; gap: 16px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-soft); }
.brand span { font: 600 21px/1 var(--font-title); color: var(--brown); }
.brand--small img { width: 28px; height: 28px; border-radius: 8px; }
.brand--small span { font-size: 17px; }

.top__nav { display: none; gap: 28px; }
.top__nav a { text-decoration: none; font-weight: 600; color: var(--brown-2); }
.top__nav a:hover { color: var(--brown); }

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-2) 0%, var(--sky) 55%, #D9F0E3 100%);
  padding: 28px 0 88px;
}

.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cloud {
  position: absolute; height: 34px; border-radius: 999px; background: rgba(255, 255, 255, .85);
  filter: blur(.3px);
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 46%; height: 150%; left: 16%; bottom: 30%; }
.cloud::after { width: 34%; height: 120%; left: 50%; bottom: 35%; }
.cloud--1 { width: 120px; top: 8%; left: -20px; animation: drift 38s linear infinite; }
.cloud--2 { width: 90px; top: 30%; right: 6%; opacity: .8; animation: drift 46s linear infinite reverse; }
.cloud--3 { width: 150px; top: 58%; left: 50%; opacity: .6; animation: drift 54s linear infinite; }

@keyframes drift { 50% { transform: translateX(28px); } }

.hero__inner { display: grid; gap: 36px; }

.hero__copy { text-align: center; }

.promo-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px 7px 12px; margin-bottom: 18px;
  border-radius: 999px; background: var(--white); color: var(--brown);
  font-weight: 700; font-size: 14px; text-decoration: none;
  box-shadow: var(--shadow-soft);
}
.promo-link svg { width: 18px; height: 18px; color: var(--peach); }
.promo-link .promo-link__arrow { width: 14px; height: 14px; color: var(--brown-2); transition: transform .15s ease; }
.promo-link:hover .promo-link__arrow { transform: translateX(3px); }

.hero h1 { font-size: clamp(38px, 10.5vw, 64px); }
.hero h1 em { font-style: normal; color: var(--ink); display: block; }

.lead { margin: 16px auto 26px; max-width: 34ch; font-size: 17px; color: var(--brown-2); }


.hero__art { position: relative; justify-self: center; width: min(250px, 66vw); }

.float {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--white);
  box-shadow: var(--shadow); white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float b { display: block; font-size: 13px; color: var(--ink); line-height: 1.2; }
.float small { display: block; font-size: 12px; color: var(--brown-2); }
.float--a { top: 16%; left: -18%; }
.float--b { bottom: 14%; right: -20%; animation-delay: -3s; }
.float__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--brown); }
.float__icon svg { width: 18px; height: 18px; }
.float__icon--mint { background: var(--mint); }
.float__icon--peach { background: var(--peach-2); }

@keyframes bob { 50% { transform: translateY(-8px); } }

.hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: -1; }

/* ---------- Celular ---------- */

.phone {
  position: relative; padding: 3.2%;
  border-radius: 15% / 7%; background: #2B1C18;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.phone::after {
  content: ""; position: absolute; top: 3.9%; left: 50%; width: 30%; height: 2.6%;
  transform: translateX(-50%); border-radius: 999px; background: #120B09;
}
.phone img { width: 100%; height: auto; aspect-ratio: 540 / 1170; object-fit: cover; border-radius: 12.5% / 5.8%; background: var(--white); }

/* ---------- Premium (chafariz) ---------- */

.premium { padding: 8px 0 56px; }

.premium__card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 32px; padding: 52px 20px 32px;
  background:
    radial-gradient(120% 70% at 50% 108%, var(--peach-2) 0%, transparent 60%),
    linear-gradient(160deg, var(--yellow-2) 0%, var(--yellow) 100%);
  box-shadow: var(--shadow);
  text-align: center;
}

.premium__body { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }

.badge-oferta {
  display: inline-grid; place-items: center; width: 92px; height: 92px; margin-bottom: 18px;
  border-radius: 50%; background: var(--brown); color: var(--yellow-2);
  font: 600 13px/1 var(--font-title); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .45), var(--shadow);
  animation: pulse 2.8s ease-in-out infinite;
}
.badge-oferta b { display: block; font-size: 40px; line-height: .9; color: var(--white); letter-spacing: 0; }

@keyframes pulse {
  50% { box-shadow: 0 0 0 16px rgba(255, 255, 255, .2), var(--shadow); }
}

.premium h2 { font-size: clamp(30px, 8vw, 46px); color: var(--ink); }
.premium h2 span { display: block; color: var(--brown); }
.premium__lead { margin: 14px auto 24px; max-width: 36ch; color: var(--brown); font-weight: 600; }

.claim { display: grid; gap: 10px; }
.claim input {
  width: 100%; height: 56px; padding: 0 20px;
  border: 2px solid transparent; border-radius: 999px; background: var(--white);
  font-size: 17px; color: var(--ink);
  box-shadow: 0 6px 18px -10px rgba(120, 66, 55, .45);
  transition: border-color .15s ease;
}
.claim input::placeholder { color: #B79A90; }
.claim input:focus { outline: none; border-color: var(--brown); }
.claim input[aria-invalid="true"] { border-color: #C2412F; }

.btn--claim { min-height: 56px; font-size: 17px; background: var(--ink); box-shadow: 0 10px 22px -10px rgba(74, 42, 35, .7); }
.btn--claim:hover { background: #2E1915; }
.btn--claim[aria-busy="true"] { opacity: .75; pointer-events: none; }

.claim__error { color: #A3321F; font-weight: 700; font-size: 14px; }
.claim__legal { font-size: 13px; color: var(--brown); opacity: .85; }
.claim__legal a { font-weight: 700; }

.claimed { display: grid; justify-items: center; gap: 8px; outline: none; }
.claim[hidden], .claimed[hidden] { display: none; }
.claimed__check {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); color: #3E8E2F; box-shadow: var(--shadow-soft);
  animation: pop .45s cubic-bezier(.3, 1.6, .5, 1);
}
.claimed__check svg { width: 28px; height: 28px; }
.claimed h3 { font-size: 26px; color: var(--ink); }
.claimed p { color: var(--brown); max-width: 36ch; }
.claimed b { word-break: break-all; }

@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* Gotas do chafariz: o JS cria e remove; aqui só a trajetória. */
.fountain { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.drop {
  position: absolute; left: 50%; bottom: -24px; width: var(--s, 16px); height: var(--s, 16px);
  color: var(--c, var(--white)); opacity: 0;
  animation: spout var(--t, 3.4s) cubic-bezier(.2, .7, .4, 1) forwards;
}
.drop svg { width: 100%; height: 100%; transform: rotate(var(--r, 0deg)); }
@keyframes spout {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.6); }
  12% { opacity: .95; }
  55% { transform: translate(calc(-50% + var(--x) * .6), calc(var(--h) * -1)) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(var(--h) * -.35)) scale(.9); }
}

/* ---------- Funcionalidades ---------- */

.features { padding: 24px 0 48px; }

.section-head { text-align: center; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(28px, 7.5vw, 44px); }
.section-head p { margin-top: 8px; color: var(--brown-2); }

.tabs {
  display: flex; gap: 2px; width: fit-content; margin: 0 auto 8px; padding: 5px;
  border-radius: 999px; background: var(--cream-2);
}
/* Cada jornada tem cor própria; a aba ativa e os pontos do carrossel usam a mesma. */
.tab--health, .panel--health { --tone: #D9694A; --tone-bg: #FCDCCD; }
.tab--routine, .panel--routine { --tone: #4E9A3A; --tone-bg: #DDF3CF; }
.tab--street, .panel--street { --tone: #2D7F9A; --tone-bg: #CDEBF5; }

.tabs .tab {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 16px 0 6px; border: 0; border-radius: 999px; background: transparent;
  font-weight: 700; color: var(--brown-2); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.tab__icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--tone-bg); color: var(--tone);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.tab__icon svg { width: 18px; height: 18px; }
.tabs .tab:hover .tab__icon { transform: scale(1.06); }
.tabs .tab[aria-selected="true"] { background: var(--tone-bg); color: var(--ink); box-shadow: var(--shadow-soft); }
.tabs .tab[aria-selected="true"] .tab__icon { background: var(--tone); color: var(--white); }

.panel .dots span.is-on { background: var(--tone); }
.panel .arrow { color: var(--tone); }

.panel[hidden] { display: none; }
.panel { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

.carousel { position: relative; }

.track {
  --slide: min(64vw, 280px);
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--slide);
  gap: 18px; padding: 22px calc((100% - var(--slide)) / 2) 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }

.slide { scroll-snap-align: center; text-align: center; }
.slide .phone { margin-bottom: 18px; transition: transform .3s ease; }
.slide h3 { font-size: 21px; }
.slide p { margin: 6px auto 0; max-width: 24ch; font-size: 15px; color: var(--brown-2); }

.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.arrow {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--white); color: var(--brown); box-shadow: var(--shadow-soft); cursor: pointer;
  transition: opacity .2s ease, transform .15s ease;
}
.arrow svg { width: 20px; height: 20px; }
.arrow--prev svg { transform: rotate(180deg); }
.arrow:active { transform: scale(.94); }
.arrow:disabled { opacity: .35; cursor: default; }

.dots { display: flex; gap: 6px; }
.dots span { width: 7px; height: 7px; border-radius: 999px; background: rgba(120, 66, 55, .22); transition: width .25s ease, background-color .25s ease; }
.dots span.is-on { width: 22px; background: var(--brown); }

/* ---------- Família ---------- */

.family { padding: 8px 0 48px; }
.perks { display: grid; gap: 12px; }
.perk {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center;
  padding: 18px; border-radius: var(--radius);
}
.perk__icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: rgba(255, 255, 255, .7); color: var(--brown); }
.perk__icon svg { width: 22px; height: 22px; }
.perk h3 { font-size: 18px; }
.perk p { font-size: 15px; color: var(--brown-2); }
.perk--mint { background: var(--mint); }
.perk--sun { background: var(--yellow-2); }
.perk--peach { background: var(--peach-2); }

/* ---------- CTA final ---------- */

.cta { padding: 0 0 56px; }
.cta__card {
  padding: 40px 20px; border-radius: 32px; text-align: center;
  background: var(--white); box-shadow: var(--shadow-soft);
}
.cta__logo { width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 24px; box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(28px, 7vw, 40px); }
.cta p { margin: 8px 0 22px; color: var(--brown-2); }

/* ---------- Rodapé ---------- */

.foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(120, 66, 55, .1); }
.foot__inner { display: grid; justify-items: center; gap: 14px; text-align: center; }
.foot .brand { margin: 0; }
.foot__links { display: flex; gap: 22px; }
.foot__links a { text-decoration: none; font-weight: 600; color: var(--brown-2); }
.foot__links a:hover { color: var(--brown); }
.foot small { color: var(--brown-2); }

/* ---------- Tablet ---------- */

@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .track { --slide: 236px; }
  .perks { grid-template-columns: repeat(3, 1fr); }
  .perk { grid-template-columns: 1fr; text-align: left; align-items: start; padding: 24px; }
  .perk__icon { grid-row: auto; margin-bottom: 10px; }
  .claim { grid-template-columns: 1fr auto; }
  .claim input { padding: 0 24px; }
  .claim__error, .claim__legal { grid-column: 1 / -1; }
  .premium__card { padding: 64px 40px 40px; }
}

/* ---------- Desktop ---------- */

@media (min-width: 960px) {
  .top__nav { display: flex; }
  .brand { margin-right: 0; }
  .top__nav { margin: 0 auto; }

  .hero { padding: 56px 0 130px; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
  .hero__copy { text-align: left; }
  .hero .stores { margin-inline: 0; }
  .stores { grid-template-columns: repeat(2, auto); justify-content: start; }
  .cta .stores { justify-content: center; }
  .store { padding: 0 20px 0 16px; }
  .lead { margin-left: 0; font-size: 19px; }
  .hero__art { width: 290px; }
  .float--a { left: -34%; }
  .float--b { right: -30%; }
  .hills { height: 140px; }

  .premium { padding: 16px 0 80px; }
  .premium__card { padding: 72px 48px 48px; }

  .features { padding: 32px 0 72px; }

  /* Quatro telas cabem lado a lado; com mais, o carrossel rola. */
  .track {
    grid-auto-columns: calc((100% - 3 * 28px) / 4);
    gap: 28px; padding: 28px 0 10px; scroll-snap-type: x mandatory;
  }
  .carousel { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
  .slide { scroll-snap-align: start; }
  .slide .phone { max-width: 230px; margin-inline: auto; }
  .slide:hover .phone { transform: translateY(-6px); }
  .carousel.is-static .carousel__nav { visibility: hidden; }

  .family { padding-bottom: 72px; }
  .cta { padding-bottom: 80px; }
  .cta__card { padding: 56px 40px; }

  .foot__inner { grid-template-columns: 1fr auto 1fr; justify-items: stretch; text-align: left; }
  .foot small { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .fountain { display: none; }
}

/* ---------- Idioma ---------- */
.top__end { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(120, 66, 55, .08); }
.lang a {
  min-width: 40px; min-height: 34px; display: grid; place-items: center; padding: 0 10px;
  border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 13px; color: var(--brown-2);
}
.lang a[aria-current="true"] { background: var(--white); color: var(--brown); box-shadow: var(--shadow); }

/* ---------- Cookies ---------- */
.cookies {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto;
  padding: 16px 18px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow);
  display: grid; gap: 12px; color: var(--brown-2); font-size: 15px;
}
.cookies[hidden] { display: none; }
.cookies p { margin: 0; }
.cookies__actions { display: flex; gap: 8px; justify-content: flex-end; }
.btn--ghost { background: transparent; color: var(--brown); box-shadow: inset 0 0 0 2px rgba(120, 66, 55, .18); }
