/* =========================================================
   landing.css v2 — Código Olfativo
   Mobile-first · CSS moderno · Sem framework
   ========================================================= */

:root {
  /* Paleta */
  --bg:            #FAFAF7;
  --surface:       #FFFFFF;
  --ink:           #1A1A1A;
  --ink-muted:     #6B6B6B;
  --ink-soft:      #9A9A9A;
  --accent:        #C2410C;
  --accent-hover:  #9A3412;
  --border:        #ECECEA;
  --img-bg:        #F5F5F2;

  /* WhatsApp */
  --wa-green:        #25D366;
  --wa-green-hover:  #1FBE5A;
  --wa-green-dark:   #128C7E;

  /* Estados */
  --flash-red:     #DC2626;
  --success-soft:  #ECFDF5;
  --success-ink:   #166534;
  --featured-bg:   linear-gradient(135deg, #FFF1E6 0%, #FFE4D1 100%);

  /* Tokens */
  --shadow-sm:     0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.06);
  --shadow-md:     0 4px 8px rgba(0,0,0,.06), 0 12px 24px rgba(0,0,0,.10);
  --shadow-lg:     0 10px 20px rgba(0,0,0,.08), 0 20px 40px rgba(0,0,0,.10);
  --shadow-cta:    0 4px 14px rgba(37, 211, 102, .35);
  --radius:        14px;
  --radius-sm:     8px;
  --radius-lg:     20px;
  --container:     1200px;
  --gap:           clamp(.75rem, 2vw, 1.125rem);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Espaço para sticky CTA mobile */
  padding-bottom: 80px;
}
@media (min-width: 769px) {
  body { padding-bottom: 0; }
}
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ----- Skip link ----- */
.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  padding: .5rem 1rem;
  background: var(--accent); color: #fff;
  border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600;
  z-index: 999;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* ----- Container ----- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(180deg, #FFF8F1 0%, #FFFAF5 70%, var(--bg) 100%);
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  max-width: 620px;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  margin-bottom: .25rem;
}
.hero-logo {
  width: clamp(40px, 8vw, 56px);
  height: clamp(40px, 8vw, 56px);
  border-radius: 12px;
  object-fit: contain;
}
.hero-brand-name {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}

.hero-title {
  font-size: clamp(1.875rem, 5vw + .5rem, 2.875rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: var(--ink);
  max-width: 18ch;
}
.hero-tagline {
  font-size: clamp(.9375rem, 1.5vw + .25rem, 1.0625rem);
  color: var(--ink-muted);
  max-width: 32ch;
}

.hero-freshness {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--success-ink);
  background: var(--success-soft);
  padding: 5px 12px;
  border-radius: 999px;
}
.freshness-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: blink 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
}
@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, .35); }
  50%      { opacity: .55; box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

/* =========================================================
   CTA WHATSAPP
   ========================================================= */
.cta-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--wa-green);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: var(--shadow-cta);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
  min-height: 48px;
}
.cta-whatsapp:hover, .cta-whatsapp:focus-visible {
  background: var(--wa-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, .45);
}
.cta-whatsapp:focus-visible {
  outline: 3px solid rgba(37, 211, 102, .5);
  outline-offset: 2px;
}
.cta-whatsapp:active { transform: translateY(0); }

.cta-hero { margin-top: .75rem; }
.cta-large {
  font-size: 1.0625rem;
  padding: 16px 32px;
  min-height: 56px;
}

.icon-wa {
  width: 22px; height: 22px;
  flex-shrink: 0;
}

/* =========================================================
   STATS BAR
   ========================================================= */
.stats-bar {
  background: var(--success-soft);
  border-block: 1px solid #D1FAE5;
  padding-block: clamp(1rem, 2.5vw, 1.5rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .5rem;
  text-align: center;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat strong {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--success-ink);
  line-height: 1.1;
}
.stat span {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ink-muted);
}

/* =========================================================
   OFERTA DESTAQUE
   ========================================================= */
.featured-section {
  padding-block: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.featured-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: .875rem;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--featured-bg);
  border: 1px solid #FED7AA;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (min-width: 720px) {
  .featured-card { grid-template-columns: 320px 1fr; }
}
@media (hover: hover) {
  .featured-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
}
.featured-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.featured-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}
.featured-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1.25rem;
}

.badge-discount-big {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
  letter-spacing: -.01em;
  box-shadow: 0 4px 10px rgba(194, 65, 12, .25);
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  gap: .75rem;
}
.featured-title {
  font-size: clamp(1.0625rem, 2.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  /* limita a 3 linhas */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.featured-price {
  font-size: clamp(1.5rem, 4vw, 2rem) !important;
  font-weight: 800;
  letter-spacing: -.02em;
}
.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--accent);
  font-size: .9375rem;
  margin-top: .25rem;
}
@media (hover: hover) {
  .featured-card:hover .featured-cta { color: var(--accent-hover); }
}

/* =========================================================
   FILTROS DE CATEGORIA (CHIPS)
   ========================================================= */
.cat-filters {
  padding-block: clamp(1.25rem, 3vw, 1.75rem) .5rem;
}
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  min-height: 36px;
}
@media (hover: hover) {
  .chip:hover {
    background: #FFF8F1;
    border-color: #FDD7B5;
    color: var(--accent);
  }
}
.chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.chip-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.chip-active:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  color: #fff !important;
}

/* =========================================================
   GRID DE OFERTAS
   ========================================================= */
.offers-section {
  padding-block: clamp(.75rem, 2vw, 1.25rem) clamp(2rem, 5vw, 3.5rem);
}
.section-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: clamp(.875rem, 2.5vw, 1.375rem);
  letter-spacing: -.01em;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: var(--gap);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
}
.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  outline: none;
}
.card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--img-bg);
  overflow: hidden;
}
.card-image-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform .22s ease;
}
@media (hover: hover) {
  .card:hover .card-image-wrap img { transform: scale(1.04); }
}

.badge-discount {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
}

.badge-flash {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--flash-red);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: flash-pulse 1.8s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(220, 38, 38, .25);
}
.badge-flash::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
}
@keyframes flash-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(220, 38, 38, .25); }
  50%      { box-shadow: 0 2px 14px rgba(220, 38, 38, .55); }
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .875rem 1rem 1rem;
  flex: 1;
}
.card-title {
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.card-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: .5rem;
}
.price-original {
  font-size: .8125rem;
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.price-current {
  font-size: clamp(1.125rem, 2.5vw, 1.3125rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.01em;
}
.card-time {
  font-size: .75rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-transform: lowercase;
  margin-top: 3px;
}

/* ----- Empty state ----- */
.empty-state {
  text-align: center;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.7;
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
}
.empty-link {
  display: inline-block;
  margin-top: .75rem;
  color: var(--accent);
  font-weight: 600;
}
.empty-link:hover { text-decoration: underline; }

/* =========================================================
   COMO FUNCIONA
   ========================================================= */
.how-it-works {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.how-title {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -.015em;
  text-align: center;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 760px;
  margin-inline: auto;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}
@media (min-width: 720px) {
  .step { flex-direction: column; text-align: center; align-items: center; gap: .75rem; }
}
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #FFF1E6;
  color: var(--accent);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.step strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.step p {
  font-size: .9375rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta-final {
  background: linear-gradient(135deg, #FFFAF5 0%, #FFF1E6 100%);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.cta-final-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  max-width: 540px;
}
.cta-final h2 {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.25;
  color: var(--ink);
}
.cta-final p {
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: .25rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding-block: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
}
.footer-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: contain;
  opacity: .85;
}
.copyright {
  font-size: .8125rem;
  color: var(--ink-muted);
}

/* =========================================================
   STICKY CTA MOBILE
   ========================================================= */
.sticky-cta {
  display: none;
}
@media (max-width: 768px) {
  .sticky-cta {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 360px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--wa-green);
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 20px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .4), 0 2px 6px rgba(0,0,0,.08);
    z-index: 50;
    min-height: 52px;
  }
  .sticky-cta:active {
    background: var(--wa-green-hover);
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
