/* =========================================================
   Vida Animal — Cartão Virtual (v2)
   Direção visual: vidro, brilho holográfico suave, camadas
   profundas e microinterações. Essência preservada.
   ========================================================= */

@property --holo-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* Verde-água suave (menos saturado que o ciano anterior) */
  --primary: #4faab0;
  --primary-bright: #8bcdd0;
  --primary-dark: #32747b;
  --primary-deep: #225159;
  --primary-soft: #e6f4f4;
  --primary-lighter: #f3fafa;
  --white: #ffffff;
  --text: #1e4247;
  --muted: #5c7579;
  --rose: #e0568a;
  --gold: #f6c86b;
  --bg-base: #dcecea;
  --shadow-card: 0 24px 60px rgba(34, 81, 89, 0.18), 0 6px 18px rgba(34, 81, 89, 0.1);
  --shadow-lift: 0 22px 44px rgba(34, 81, 89, 0.28);
  --shadow-soft: 0 10px 26px rgba(34, 81, 89, 0.14);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg-base);
  overflow-x: clip;
}

html {
  overflow-x: clip;
}

/* Fundo em camada fixa própria: substitui o background-attachment: fixed,
   que forçava repintar a página inteira a cada quadro de rolagem no celular. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1000px 650px at 10% -10%, rgba(139, 205, 208, 0.45), transparent 60%),
    radial-gradient(900px 600px at 95% 110%, rgba(79, 170, 176, 0.22), transparent 62%),
    linear-gradient(160deg, #eef7f6 0%, #e0eeec 50%, #d3e7e5 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(34, 81, 89, 0.07) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 75%);
}

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

button {
  font: inherit;
}

svg {
  display: block;
}

::selection {
  color: var(--primary-deep);
  background: rgba(139, 205, 208, 0.55);
}

/* ---------- Palco ---------- */

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 34px 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
  overflow-x: clip;
}

.catalog-page {
  padding: 26px 14px 34px;
  align-items: flex-start;
}

/* Auroras animadas no fundo */
.aurora {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  opacity: 0.7;
  pointer-events: none;
}

.aurora-one {
  width: 420px;
  height: 420px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle closest-side, rgba(139, 205, 208, 0.55), transparent);
}

.aurora-two {
  width: 380px;
  height: 380px;
  right: -120px;
  bottom: 6%;
  background: radial-gradient(circle closest-side, rgba(79, 170, 176, 0.28), transparent);
  animation-delay: -6s;
}

.aurora-three {
  width: 260px;
  height: 260px;
  top: 42%;
  right: 8%;
  background: radial-gradient(circle closest-side, rgba(246, 200, 107, 0.22), transparent);
  animation-delay: -11s;
}

/* Patinhas flutuantes */
.bg-paws {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.bg-paws span {
  position: absolute;
  color: rgba(50, 116, 123, 0.4);
  opacity: 0.35;
  font-size: 30px;
  animation: drift 14s ease-in-out infinite;
}

.bg-paws span:nth-child(1) { top: 10%; left: 7%; }
.bg-paws span:nth-child(2) { top: 24%; right: 10%; animation-delay: -4s; }
.bg-paws span:nth-child(3) { top: 50%; left: 4%; font-size: 40px; animation-delay: -7s; }
.bg-paws span:nth-child(4) { bottom: 14%; right: 7%; animation-delay: -9s; }
.bg-paws span:nth-child(5) { bottom: 26%; left: 13%; font-size: 24px; animation-delay: -5s; }
.bg-paws span:nth-child(6) { top: 6%; right: 32%; font-size: 20px; animation-delay: -2s; }

/* ---------- Cartão ---------- */

.card {
  position: relative;
  z-index: 2;
  width: min(100%, 480px);
  padding: 40px 22px 26px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(168deg, #ffffff, #f3f9f9 55%, #ecf6f5) padding-box,
    conic-gradient(
      from var(--holo-angle),
      rgba(139, 205, 208, 0.9),
      rgba(255, 255, 255, 0.6) 18%,
      rgba(79, 170, 176, 0.7) 38%,
      rgba(246, 200, 107, 0.5) 55%,
      rgba(139, 205, 208, 0.45) 72%,
      rgba(139, 205, 208, 0.9)
    ) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-card);
  animation: cardIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Halo suave ao redor do cartão */
.card::before {
  content: "";
  position: absolute;
  inset: -26px;
  z-index: -1;
  border-radius: calc(var(--radius-xl) + 26px);
  background: conic-gradient(
    from var(--holo-angle),
    rgba(139, 205, 208, 0.5),
    rgba(255, 255, 255, 0.1) 18%,
    rgba(79, 170, 176, 0.35) 38%,
    rgba(246, 200, 107, 0.22) 55%,
    rgba(139, 205, 208, 0.14) 72%,
    rgba(139, 205, 208, 0.5)
  );
  filter: blur(28px);
  opacity: 0.6;
  pointer-events: none;
}

/* O brilho girando só no computador: animar o gradiente repinta o cartão
   inteiro a cada quadro, o que trava a rolagem em celulares. */
@media (hover: hover) and (pointer: fine) and (min-width: 760px) and (prefers-reduced-motion: no-preference) {
  .card {
    animation: cardIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both, holoSpin 14s linear infinite;
  }

  .card::before {
    animation: holoSpin 14s linear infinite;
  }

  .aurora {
    animation: auroraDrift 16s ease-in-out infinite;
  }
}

/* Sheen interno suave */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(420px 200px at 50% -40px, rgba(139, 205, 208, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 22%);
}

.card--catalog {
  width: min(100%, 560px);
}

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

.hero {
  text-align: center;
  position: relative;
  z-index: 2;
}

.profile-frame {
  width: 152px;
  height: 152px;
  margin: 0 auto 20px;
  padding: 6px;
  border-radius: 50%;
  position: relative;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    conic-gradient(from 210deg, var(--primary-bright), var(--primary-dark), var(--gold), var(--primary-bright)) border-box;
  border: 3px solid transparent;
  box-shadow: 0 18px 40px rgba(34, 81, 89, 0.35), 0 0 0 10px rgba(139, 205, 208, 0.08);
  animation: softPulse 4.6s ease-in-out infinite;
}

.profile-frame::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 205, 208, 0.3), transparent 70%);
  z-index: -1;
  animation: softPulse 4.6s ease-in-out infinite reverse;
}

.profile-frame::after {
  content: "♡";
  position: absolute;
  right: -2px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), #c73667);
  font-size: 18px;
  box-shadow: 0 10px 20px rgba(224, 86, 138, 0.45);
  animation: heartBeat 2.6s ease-in-out infinite;
}

.profile-img,
.profile-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.profile-img {
  object-fit: cover;
  display: block;
}

.profile-fallback {
  display: none;
  place-items: center;
  text-align: center;
  padding: 16px;
  color: var(--primary-dark);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.85), transparent 32%),
    linear-gradient(145deg, var(--primary-soft), #ffffff);
  border: 1px solid rgba(79, 170, 176, 0.22);
}

.profile-frame.is-fallback .profile-fallback {
  display: grid;
}

.fallback-paw {
  font-size: 32px;
  line-height: 1;
}

.profile-fallback strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.badge {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 14px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--primary-deep);
  background: linear-gradient(135deg, rgba(139, 205, 208, 0.24), rgba(255, 255, 255, 0.85));
  border: 1px solid rgba(79, 170, 176, 0.45);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(34, 81, 89, 0.14);
}

.badge svg {
  width: 15px;
  height: 15px;
  stroke: var(--primary-dark);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 10.5vw, 58px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 10px;
  background: linear-gradient(120deg, var(--primary-deep) 10%, var(--primary) 55%, var(--primary-deep) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.65));
}

.subtitle {
  font-size: 15px;
  color: #24484c;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.intro {
  margin: 12px auto 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 320px;
}

/* ---------- Botões de link ---------- */

.links {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.links .link-button {
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.links .link-button:nth-child(1) { animation-delay: 0.05s; }
.links .link-button:nth-child(2) { animation-delay: 0.12s; }
.links .link-button:nth-child(3) { animation-delay: 0.19s; }
.links .link-button:nth-child(4) { animation-delay: 0.26s; }
.links .link-button:nth-child(5) { animation-delay: 0.33s; }
.links .link-button:nth-child(6) { animation-delay: 0.4s; }
.links .link-button:nth-child(7) { animation-delay: 0.47s; }

.link-button {
  position: relative;
  width: 100%;
  min-height: 76px;
  padding: 12px 18px 12px 13px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 250, 0.94));
  border: 1px solid rgba(79, 170, 176, 0.26);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* Varredura de brilho no hover */
.link-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(139, 205, 208, 0.32) 50%,
    transparent 80%
  );
  transform: translateX(-110%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Vinheta de cor que preenche a esquerda */
.link-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(79, 170, 176, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link-button:hover,
.link-button:focus-visible {
  transform: translateY(-4px) scale(1.012);
  border-color: rgba(79, 170, 176, 0.6);
  box-shadow: var(--shadow-lift);
}

.link-button:hover::before,
.link-button:focus-visible::before {
  transform: translateX(110%);
}

.link-button:hover::after,
.link-button:focus-visible::after {
  opacity: 1;
}

.link-button:active {
  transform: translateY(-1px) scale(0.985);
  transition-duration: 0.08s;
}

.link-button:hover .icon,
.link-button:focus-visible .icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 12px 26px rgba(50, 116, 123, 0.45);
}

.link-button:hover .arrow,
.link-button:focus-visible .arrow {
  transform: translate(6px, -1px);
  color: var(--primary-dark);
}

.icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(140deg, var(--primary-bright), var(--primary) 45%, var(--primary-dark));
  box-shadow: 0 10px 22px rgba(50, 116, 123, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  flex: 0 0 auto;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-button strong {
  display: block;
  font-family: var(--font-display);
  color: var(--primary-deep);
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.link-button small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.arrow {
  color: var(--primary);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

/* ---------- Seções ---------- */

.services,
.catalog-section,
.taxi-section {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(230, 244, 244, 0.55));
  border: 1px solid rgba(79, 170, 176, 0.24);
  box-shadow: 0 12px 30px rgba(34, 81, 89, 0.1);
}

.services h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: var(--primary-deep);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.service-grid span {
  padding: 11px 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(230, 244, 244, 0.7));
  border: 1px solid rgba(79, 170, 176, 0.2);
  color: #2a5a60;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 6px 14px rgba(34, 81, 89, 0.08);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.service-grid span:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 22px rgba(34, 81, 89, 0.16);
}

.section-heading {
  text-align: center;
  margin-bottom: 16px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--primary-deep);
  background: linear-gradient(135deg, rgba(139, 205, 208, 0.28), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(79, 170, 176, 0.35);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-heading h2,
.section-heading h1.catalog-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--primary-deep);
  letter-spacing: -0.035em;
  margin-bottom: 9px;
}

.section-heading p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 380px;
  margin: 0 auto;
}

/* ---------- Catálogo ---------- */

.catalog-tabs {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  margin: 0 -4px 6px;
  border-radius: 999px;
  background: rgba(243, 250, 250, 0.96);
  border: 1px solid rgba(79, 170, 176, 0.2);
  box-shadow: 0 10px 24px rgba(34, 81, 89, 0.12);
  scrollbar-width: none;
}

.catalog-tabs::-webkit-scrollbar {
  display: none;
}

.catalog-tab {
  flex: 0 0 auto;
  border: 1px solid rgba(79, 170, 176, 0.25);
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.catalog-tab:hover,
.catalog-tab:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(79, 170, 176, 0.55);
  box-shadow: 0 8px 16px rgba(34, 81, 89, 0.14);
}

.catalog-tab:active {
  transform: scale(0.96);
}

.catalog-tab.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(50, 116, 123, 0.4);
}

.catalog-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.catalog-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(79, 170, 176, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(230, 244, 244, 0.85));
  padding: 16px;
  box-shadow: var(--shadow-soft);
  animation: fadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 170, 176, 0.5);
  box-shadow: var(--shadow-lift);
}

.catalog-card::after {
  content: "🐾";
  position: absolute;
  right: -6px;
  top: -10px;
  color: rgba(79, 170, 176, 0.13);
  font-size: 58px;
  transform: rotate(-18deg);
  pointer-events: none;
}

.catalog-card-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  z-index: 1;
}

.catalog-card h3 {
  font-family: var(--font-display);
  color: var(--primary-deep);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  padding-right: 4px;
}

.price-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-bright), var(--primary) 40%, var(--primary-dark));
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(50, 116, 123, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.catalog-card:hover .price-badge {
  transform: scale(1.05) rotate(-1.5deg);
}

.catalog-card p {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  color: #3a5d61;
  font-size: 13.5px;
  line-height: 1.45;
}

.card-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.card-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(79, 170, 176, 0.22);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
}

.card-action {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 13px;
  border: 1px solid rgba(79, 170, 176, 0.3);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 205, 208, 0.2), rgba(255, 255, 255, 0.7));
  color: var(--primary-deep);
  padding: 12px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s ease, box-shadow 0.22s ease;
}

.card-action:hover,
.card-action:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(50, 116, 123, 0.35);
}

.card-action:active {
  transform: scale(0.97);
}

.catalog-actions {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.ghost-button,
.solid-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 13px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.ghost-button {
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(79, 170, 176, 0.4);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(34, 81, 89, 0.18);
  border-color: rgba(79, 170, 176, 0.7);
}

.solid-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-bright), var(--primary) 45%, var(--primary-dark));
  box-shadow: 0 16px 34px rgba(50, 116, 123, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 2px rgba(34, 81, 89, 0.3);
}

.solid-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.solid-button:hover,
.solid-button:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 42px rgba(50, 116, 123, 0.5);
}

.solid-button:hover::after,
.solid-button:focus-visible::after {
  transform: translateX(120%);
}

.solid-button:active,
.ghost-button:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

.full-button {
  width: 100%;
  margin-top: 16px;
}

.small-note {
  margin-top: 14px;
  color: var(--muted);
  text-align: center;
  font-size: 11.5px;
  line-height: 1.45;
}

/* ---------- Táxi Pet ---------- */

.taxi-feature-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 13px;
  align-items: center;
  padding: 15px;
  border-radius: 22px;
  border: 1px solid rgba(79, 170, 176, 0.26);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(230, 244, 244, 0.8));
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.taxi-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.taxi-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(140deg, var(--primary-bright), var(--primary) 45%, var(--primary-dark));
  box-shadow: 0 10px 22px rgba(50, 116, 123, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-size: 26px;
  animation: taxiBob 3.4s ease-in-out infinite;
}

.taxi-feature-card strong {
  display: block;
  font-family: var(--font-display);
  color: var(--primary-deep);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.taxi-feature-card p {
  color: #3a5d61;
  font-size: 13px;
  line-height: 1.45;
}

.taxi-rules {
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(79, 170, 176, 0.2);
}

.taxi-rules h3,
.route-list h3 {
  font-family: var(--font-display);
  color: var(--primary-deep);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 11px;
}

.taxi-rules ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.taxi-rules li {
  position: relative;
  padding-left: 26px;
  color: #3a5d61;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.taxi-rules li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-size: 10px;
  font-weight: 900;
}

.route-list {
  margin-top: 14px;
}

.route-card {
  display: grid;
  gap: 7px;
  padding: 14px 15px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(79, 170, 176, 0.2);
  box-shadow: 0 8px 20px rgba(34, 81, 89, 0.08);
  animation: fadeUp 0.35s ease both;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.route-card + .route-card {
  margin-top: 10px;
}

.route-card:hover {
  transform: translateX(4px);
  border-color: rgba(79, 170, 176, 0.45);
  box-shadow: 0 12px 24px rgba(34, 81, 89, 0.14);
}

.route-card strong {
  color: var(--primary-deep);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.route-card p {
  color: #3a5d61;
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 700;
}

/* ---------- Botão de voltar (catálogo) ---------- */

.back-button {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 10px 20px 10px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(79, 170, 176, 0.35);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.back-button:hover,
.back-button:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(79, 170, 176, 0.6);
  box-shadow: var(--shadow-lift);
}

.back-button:hover .back-icon,
.back-button:focus-visible .back-icon {
  transform: translateX(-4px);
}

.back-button:active {
  transform: scale(0.97);
}

.back-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(140deg, var(--primary-bright), var(--primary-dark));
  box-shadow: 0 8px 18px rgba(50, 116, 123, 0.35);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.back-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-button strong {
  display: block;
  font-family: var(--font-display);
  color: var(--primary-deep);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
}

.back-button small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  text-align: left;
}

.card--catalog > .catalog-section {
  margin-top: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

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

.footer {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  text-align: center;
}

.footer p {
  color: var(--primary-deep);
  font-size: 14px;
  font-weight: 800;
}

.footer .developer-credit {
  margin-top: 10px;
  color: rgba(34, 81, 89, 0.75);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.footer .developer-credit a {
  color: inherit;
}

.footer .developer-credit a:hover,
.footer .developer-credit a:focus-visible {
  text-decoration: underline;
}

/* ---------- Ripple (toque) ---------- */

.ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 205, 208, 0.5) 0%, rgba(139, 205, 208, 0.12) 55%, transparent 72%);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 3;
  animation: ripple 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ---------- Explosão de patinhas (surpresa) ---------- */

.paw-burst {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  font-size: 16px;
  animation: pawBurst 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  text-shadow: 0 0 12px rgba(139, 205, 208, 0.6);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ---------- Lock anti-clique duplo ---------- */

.is-click-locked {
  pointer-events: none;
}

/* ---------- Animações ---------- */

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes holoSpin {
  to {
    --holo-angle: 360deg;
  }
}

@keyframes auroraDrift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(30px, -24px, 0) scale(1.08);
  }
  66% {
    transform: translate3d(-22px, 18px, 0) scale(0.96);
  }
}

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

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.18); }
  24% { transform: scale(1); }
  36% { transform: scale(1.14); }
  48% { transform: scale(1); }
}

@keyframes taxiBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes drift {
  0% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-26px) rotate(8deg);
  }
  100% {
    transform: translateY(0) rotate(-6deg);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

@keyframes pawBurst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.25) rotate(var(--rot));
  }
}

/* ---------- Responsivo ---------- */

@media (min-width: 760px) {
  .page {
    padding: 48px 24px;
  }

  .card {
    padding: 46px 28px 30px;
  }
}

@media (max-width: 420px) {
  .page {
    padding: 0;
    align-items: stretch;
  }

  .card {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    padding: 32px 18px 24px;
  }

  /* Cartão ocupa a tela toda: o halo desfocado fica invisível e só custa desempenho */
  .card::before {
    display: none;
  }

  .catalog-page .card {
    min-height: 100vh;
    padding: 22px 14px 24px;
  }

  .profile-frame {
    width: 134px;
    height: 134px;
  }

  .link-button {
    min-height: 72px;
    grid-template-columns: 50px 1fr auto;
  }

  .icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .link-button strong {
    font-size: 17px;
  }

  .catalog-tabs {
    top: 8px;
    padding: 8px 10px;
  }
}

@media (max-width: 340px) {
  .subtitle,
  .intro {
    font-size: 14px;
  }

  .link-button {
    gap: 10px;
    padding-right: 13px;
  }

  .link-button strong {
    font-size: 16px;
  }

  .link-button small {
    font-size: 11.5px;
  }

  .catalog-card-header {
    display: grid;
  }

  .price-badge {
    width: fit-content;
  }
}

/* ---------- Movimento reduzido ---------- */

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

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