.hero {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-6) 0 var(--s-7);
  align-items: start;
}

.hero-shop {
  padding: var(--s-4) 0 var(--s-3);
}

.hero-shop .hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.hero-shop .hero-copy .lead {
  margin: 0.85rem 0 1.2rem;
  max-width: 38rem;
}

.shop-first {
  padding-top: var(--s-5);
}

.shop-first h1 {
  font-size: var(--fs-1);
  max-width: 16ch;
}

.home-strap {
  padding: 1.1rem 0 0;
  color: var(--ember);
  font-size: var(--fs-small);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.appetite {
  padding-top: var(--s-6);
  padding-bottom: var(--s-6);
  background:
    radial-gradient(ellipse 80% 90% at 18% 10%, color-mix(in srgb, var(--ember) 18%, transparent), transparent 58%),
    radial-gradient(ellipse 70% 80% at 92% 88%, color-mix(in srgb, var(--ember) 11%, transparent), transparent 54%),
    linear-gradient(180deg, color-mix(in srgb, var(--ember-soft) 42%, var(--paper)), color-mix(in srgb, var(--ember-soft) 28%, var(--paper)));
}

.appetite .section-head h2 {
  max-width: none;
}

.hero-editorial {
  padding: var(--s-7) 0 var(--s-6);
  min-height: auto;
}

.hero-editorial .hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

.hero-editorial .lead {
  max-width: 36rem;
}

.hero-copy h1 {
  font-size: var(--fs-hero);
  max-width: 11ch;
}

.hero-copy .lead {
  margin: 1.25rem 0 1.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-copy .kicker {
  animation: rise-in 0.8s var(--ease) both;
}

.hero-copy h1 {
  animation: rise-in 0.9s var(--ease) 0.08s both;
}

.hero-copy .lead {
  animation: rise-in 0.9s var(--ease) 0.16s both;
}

.hero-copy .hero-actions {
  animation: rise-in 0.9s var(--ease) 0.24s both;
}

.hero-show-slides {
  position: relative;
}

.hero-show .hero-feature {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), visibility 0.7s;
}

.hero-show .hero-feature.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.hero-feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: block;
}

.hero-feature img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
}

.hero-show .hero-feature.is-active img {
  animation: ken 7s ease-out both;
}

.hero-show-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.hero-show-dots button {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  transition: width 0.3s var(--ease), background 0.3s ease;
}

.hero-show-dots button.is-active {
  width: 22px;
  background: var(--ember);
}

.hero-feature-body {
  padding: 1.2rem 1.3rem 1.4rem;
}

.hero-feature-body h2 {
  font-size: 1.55rem;
  margin: 0.35rem 0 0.7rem;
}

.niche-mosaic {
  display: grid;
  gap: 0.8rem;
}

.niche-tile {
  position: relative;
  min-height: 248px;
  padding: 1.3rem;
  border-radius: 22px;
  overflow: hidden;
  color: var(--tile-ink, var(--ink));
  background: var(--tile-bg, var(--paper-2));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.niche-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin-bottom: auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, #fff 48%, transparent);
  color: var(--tile-ink, var(--ink));
  animation: icon-float 3.8s ease-in-out infinite;
}

.niche-icon svg {
  width: 28px;
  height: 28px;
}

.niche-tile:nth-child(2) .niche-icon { animation-delay: 0.25s; }
.niche-tile:nth-child(3) .niche-icon { animation-delay: 0.5s; }
.niche-tile:nth-child(4) .niche-icon { animation-delay: 0.75s; }
.niche-tile:nth-child(5) .niche-icon { animation-delay: 1s; }
.niche-tile:nth-child(6) .niche-icon { animation-delay: 1.25s; }

.niche-tile:hover .niche-icon {
  animation-play-state: paused;
  transform: scale(1.08) rotate(-8deg);
}

.niche-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.niche-tile::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--tile-spot, rgba(255, 255, 255, 0.28));
  animation: spot-drift 8s ease-in-out infinite alternate;
  transition: opacity 0.45s var(--ease);
}

.niche-tile small {
  position: relative;
  z-index: 1;
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
}

.niche-tile strong {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.niche-tagline {
  position: relative;
  z-index: 1;
  max-width: 16rem;
  margin-top: 0.35rem;
  opacity: 0.78;
}

.tile-bebe { --tile-bg: #f3c9bc; --tile-ink: #3a2a2c; --tile-spot: #e8b4a6; }
.tile-casa { --tile-bg: #ebc98a; --tile-ink: #2c2620; --tile-spot: #d9b36a; }
.tile-pet { --tile-bg: #f0b888; --tile-ink: #32261e; --tile-spot: #e09a62; }
.tile-eletronicos { --tile-bg: #bfd6e2; --tile-ink: #1a242b; --tile-spot: #9dc0d2; }
.tile-games { --tile-bg: #d0bde6; --tile-ink: #1e1826; --tile-spot: #b89ad4; }
.tile-ferramentas { --tile-bg: #e4c27a; --tile-ink: #26231d; --tile-spot: #d1a85a; }

.feature-split {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}

.feature-visual {
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.feature-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.editorial {
  background: var(--ink);
  color: #ece4d7;
}

.editorial .kicker {
  color: #d38b6a;
}

.editorial-grid {
  display: grid;
  gap: var(--s-5);
}

.editorial h2 {
  max-width: 12ch;
}

.editorial p {
  color: #cfc4b4;
}

.editorial ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.2rem;
}

.editorial li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fffaf3;
  margin-bottom: 0.25rem;
}

.editorial-copy {
  display: grid;
  gap: 1rem;
  max-width: 38rem;
}

.editorial-copy p {
  margin: 0;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  padding: 1.3rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}

.steps-num {
  grid-row: 1 / 3;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 650;
}

.steps strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.steps span:last-child {
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.section-note {
  margin: -0.6rem 0 1.4rem;
  max-width: 36rem;
}

.lead-tight {
  max-width: 40rem;
  margin: 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  color: var(--mute);
  font-size: var(--fs-small);
}

.crumbs a {
  color: var(--ink-soft);
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs-sep {
  opacity: 0.5;
}

.partner-note {
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  background: var(--paper-2);
  border-radius: var(--r-s);
}

.partner-note p {
  margin: 0;
  color: var(--ink-soft);
}

.niche-guide {
  max-width: 40rem;
}

[data-tool] {
  min-width: 0;
  max-width: 100%;
}

.tool-card {
  padding: 1.4rem 1.15rem 1.45rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.tool-card h2 {
  margin: 0.2rem 0 0.55rem;
}

.tool-card > .muted {
  overflow-wrap: anywhere;
}

.tool-grid {
  display: grid;
  gap: 0.9rem;
  margin: 1.3rem 0 1rem;
  min-width: 0;
}

.tool-field {
  display: grid;
  gap: 0.4rem;
  font-size: var(--fs-small);
  font-weight: 560;
  min-width: 0;
}

.tool-field input,
.tool-field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.tool-field select {
  text-overflow: ellipsis;
}

.tool-result {
  margin: 0;
  padding: 1rem 1.05rem;
  background: var(--niche-wash, var(--paper-2));
  border-radius: 12px;
  color: var(--ink-soft);
}

.compare-grid {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.compare-item {
  padding: 1rem;
  background: var(--paper);
  border-radius: 16px;
  min-width: 0;
  overflow: hidden;
}

.compare-item img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.85rem;
}

.compare-item h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compare-item .muted,
.compare-item .kicker,
.compare-item .price-now,
.compare-item .price-was {
  overflow-wrap: anywhere;
}

.compare-item .btn-offer {
  max-width: 100%;
}

.band {
  background: var(--niche-wash);
}

.product-layout {
  display: grid;
  gap: var(--s-5);
  padding-bottom: var(--s-7);
}

.product-visual {
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}

.product-visual img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-info .price-now {
  font-size: 1.8rem;
}

.product-info .card-price {
  margin: 1rem 0 1.3rem;
}

.product-desc {
  margin: 1.3rem 0 1.6rem;
  color: var(--ink-soft);
}

.niche-hero {
  padding: var(--s-7) 0;
  background:
    radial-gradient(circle at 90% 10%, var(--niche-wash), transparent 36%),
    var(--paper);
}

.niche-hero h1 {
  font-size: var(--fs-hero);
  max-width: 12ch;
}

.contact-grid,
.about-grid {
  display: grid;
  gap: var(--s-6);
}

.stat-row {
  display: grid;
  gap: 1rem;
}

.stat {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 560;
}

.error-page {
  min-height: 70vh;
  display: grid;
  align-content: center;
  padding: var(--s-7) 0;
}

.error-page h1 {
  font-size: var(--fs-hero);
}

.prose-block + .prose-block {
  margin-top: var(--s-5);
}

.grid-products .card {
  animation: rise-in 0.7s var(--ease) both;
}

.grid-products .card:nth-child(2) { animation-delay: 0.06s; }
.grid-products .card:nth-child(3) { animation-delay: 0.12s; }
.grid-products .card:nth-child(4) { animation-delay: 0.18s; }
.grid-products .card:nth-child(5) { animation-delay: 0.24s; }
.grid-products .card:nth-child(6) { animation-delay: 0.3s; }

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ken {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}

@keyframes spot-drift {
  to { transform: translate(-22px, 16px) scale(1.12); }
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy .kicker,
  .hero-copy h1,
  .hero-copy .lead,
  .hero-copy .hero-actions,
  .grid-products .card,
  .niche-icon,
  .hero-show .hero-feature,
  .hero-show .hero-feature.is-active img,
  .niche-tile::after,
  .ticker-track {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 860px) {
  .hero:not(.hero-shop):not(.hero-editorial) {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    min-height: 68vh;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .tool-grid,
  .compare-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-shop {
    min-height: 0;
    padding-bottom: var(--s-3);
  }

  .hero-feature img {
    aspect-ratio: 1;
    max-height: 520px;
  }

  .niche-mosaic {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 300px 280px;
  }

  .tile-bebe {
    grid-row: 1 / 3;
    min-height: 100%;
  }

  .feature-split,
  .editorial-grid,
  .product-layout,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .niche-mosaic {
    grid-template-columns: 1.3fr repeat(4, 1fr);
    grid-template-rows: 320px 280px;
  }

  .tile-bebe {
    grid-row: 1 / 3;
    grid-column: 1;
  }

  .tile-casa {
    grid-column: 2 / 4;
  }

  .tile-pet {
    grid-column: 4 / 6;
  }
}
