/* Melhor Desconto — folha de estilo do site público.
   Acento magenta único; o resto é neutro com viés violeta. Tema claro/escuro
   por tokens, seguindo a preferência do sistema. */

:root {
  --paper:      #FAF9FB;
  --surface:    #FFFFFF;
  --ink:        #1A1622;
  --muted:      #706A7B;
  --line:       #E6E2EC;
  --accent:     #D6006E;
  --accent-ink: #FFFFFF;
  --accent-soft:#FCE7F1;
  --shadow:     0 1px 2px rgba(26,22,34,.06), 0 8px 24px -12px rgba(26,22,34,.18);

  --f-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(.75rem, .72rem + .12vw, .8125rem);
  --step-0:  clamp(.9375rem, .9rem + .18vw, 1rem);
  --step-1:  clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --step-2:  clamp(1.5rem, 1.3rem + .9vw, 2.125rem);
  --step-3:  clamp(2.125rem, 1.7rem + 2vw, 3.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #131118;
    --surface:    #1C1926;
    --ink:        #F2EFF6;
    --muted:      #9A93A8;
    --line:       #2C2738;
    --accent:     #FF3D96;
    --accent-ink: #1A0510;
    --accent-soft:#33101F;
    --shadow:     0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.eyebrow {
  font-size: var(--step--1); font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
  margin: 0;
}

.btn {
  display: inline-block; text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: var(--step-0);
  padding: .7rem 1.25rem; border-radius: 3px;
}
.btn:hover, .btn:focus-visible { filter: brightness(1.08); }

/* ---------- cabeçalho ---------- */
.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky; top: 0; z-index: 20;
}
.masthead__in {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: .9rem; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  margin-right: auto; text-decoration: none; color: inherit;
}
.brand__mark {
  width: 34px; height: 34px; flex: none; border-radius: 3px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  font-weight: 900; font-size: 1.05rem; letter-spacing: -.06em;
}
.brand__name {
  font-weight: 800; letter-spacing: -.03em; font-size: var(--step-1); line-height: 1;
}
.brand__name span { color: var(--accent); }

.nav { display: flex; gap: 1.35rem; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: var(--step--1);
  font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  padding-block: .25rem; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a:focus-visible { color: var(--ink); border-bottom-color: var(--accent); }

.pulse {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums;
}
.pulse::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #16A34A; box-shadow: 0 0 0 3px rgba(22,163,74,.18);
}

/* ---------- abertura ---------- */
.lede { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.75rem, 4vw, 2.75rem); }
.lede h1 {
  font-size: var(--step-3); font-weight: 900; letter-spacing: -.045em;
  line-height: .95; margin: .5rem 0 0; text-wrap: balance; max-width: 16ch;
}
.lede h1 em { font-style: normal; color: var(--accent); }
.lede p {
  margin: 1.15rem 0 0; color: var(--muted);
  max-width: 56ch; font-size: var(--step-1); line-height: 1.5;
}
.lede__cta { margin-top: 1.75rem; }

/* ---------- grade de ofertas ---------- */
.section-head {
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  padding-bottom: .9rem; border-bottom: 2px solid var(--ink); margin-top: 1rem;
}
.section-head h2 {
  font-size: var(--step-2); font-weight: 900; letter-spacing: -.04em;
  margin: 0; line-height: 1;
}
.section-head .eyebrow { margin-left: auto; }

.grid {
  display: grid; gap: 1.15rem; padding-block: 1.5rem 3rem;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
}

.tag {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}
.tag:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -14px rgba(26,22,34,.32); }

.tag__shot {
  aspect-ratio: 4 / 3; position: relative;
  background: var(--surface); display: grid; place-items: center; overflow: hidden;
}
.tag__shot img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; }
.tag__shot > span {
  font-size: var(--step--1); color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
}

/* selo die-cut na quina */
.tag__off {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 900; font-size: 1rem; letter-spacing: -.03em;
  padding: .35rem .6rem; font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 88% 100%, 0 100%);
}
.tag__off small { display: block; font-size: .5625rem; letter-spacing: .1em; font-weight: 700; }

.tag__bug {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--ink); color: var(--paper);
  font-size: .5625rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; padding: .3rem .45rem; border-radius: 2px;
}

/* picote de cupom */
.tag__perf {
  height: 1px; margin: 0 .75rem;
  background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 10px);
}

.tag__body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.tag__cat {
  font-size: .625rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin: 0;
}
.tag__title {
  font-size: var(--step-0); font-weight: 650; line-height: 1.3; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tag__prices { margin-top: auto; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.tag__was {
  font-size: var(--step--1); color: var(--muted);
  text-decoration: line-through; font-variant-numeric: tabular-nums;
}
.tag__now {
  font-size: var(--step-2); font-weight: 900; letter-spacing: -.05em;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.tag__store { font-size: var(--step--1); color: var(--muted); margin: 0; }
.tag__cta {
  display: block; text-align: center; text-decoration: none;
  background: var(--ink); color: var(--paper);
  font-weight: 800; font-size: var(--step--1); letter-spacing: .04em;
  padding: .6rem; border-radius: 3px; text-transform: uppercase;
}
.tag__cta:hover, .tag__cta:focus-visible { background: var(--accent); color: var(--accent-ink); }

.empty { color: var(--muted); padding-block: 2.5rem 3.5rem; max-width: 48ch; }

/* ---------- confiança ---------- */
.trust { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.trust__grid {
  display: grid; gap: 2rem; margin-top: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.trust__grid h3 { font-size: var(--step-1); font-weight: 800; letter-spacing: -.02em; margin: .5rem 0 .4rem; }
.trust__grid p { margin: 0; color: var(--muted); }
.rule { width: 40px; height: 3px; background: var(--accent); }

/* ---------- páginas de texto ---------- */
.doc { max-width: 68ch; padding-block: clamp(2.5rem, 6vw, 4rem) 3rem; }
.doc h1 {
  font-size: var(--step-3); font-weight: 900; letter-spacing: -.045em;
  line-height: 1; margin: .5rem 0 1.25rem; text-wrap: balance;
}
.doc h2 {
  font-size: var(--step-1); font-weight: 800; letter-spacing: -.02em;
  margin: 2.25rem 0 .6rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.doc__lead { font-size: var(--step-1); color: var(--muted); line-height: 1.5; }
.doc p { margin: 0 0 1rem; }
.doc ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.doc li { margin-bottom: .5rem; }
.doc a { color: var(--accent); }
.doc__updated {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--muted);
}

/* ---------- rodapé ---------- */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding-block: 2rem 2.5rem; }
.disclosure {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--accent-soft); color: var(--ink);
  padding: .9rem 1.1rem; border-radius: 3px;
  font-size: var(--step--1); line-height: 1.5; max-width: 78ch; margin: 0;
}
.foot__links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.5rem; }
.foot__links a { color: var(--muted); font-size: var(--step--1); text-decoration: none; font-weight: 600; }
.foot__links a:hover, .foot__links a:focus-visible { color: var(--accent); text-decoration: underline; }
.foot__legal { margin-top: 1.25rem; font-size: var(--step--1); color: var(--muted); }

a:focus-visible, .tag:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .tag:hover { transform: none; }
}
