/* =========================================================
   ColchãoCerto — Landing page
   Visual leve: cores chapadas da logo, muito respiro,
   tipografia fina, magenta só como detalhe.
   ========================================================= */
:root {
  /* Marca (logo) */
  --navy: #0A2E78;
  --blue: #0A5CCB;
  --magenta: #C8297A;
  --magenta-light: #F07CB6; /* tom claro do magenta, usado no pico do brilho */

  /* Neutros */
  --ink: #13204A;        /* títulos */
  --text: #4B5470;       /* corpo */
  --muted: #8A91A8;      /* apoio */
  --line: #E6E4DF;
  --bg: #FFFFFF;
  --soft: #F7F6F3;       /* off-white quente */
  --tile: #F1EFEA;       /* fundo dos produtos */

  --wa: #25D366;

  --radius: 14px;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;

  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 40px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .5em; font-weight: 400; letter-spacing: -.02em; }
h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); line-height: 1.04; font-weight: 300; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.8rem); line-height: 1.12; font-weight: 300; letter-spacing: -.03em; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 144px) 0; }
.section--soft { background: var(--soft); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }

.accent { color: var(--magenta); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 20px;
}

.section__head { max-width: 640px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.section__head p:last-child:not(.eyebrow) { margin: 0; }
.section__head--left { text-align: left; margin-left: 0; }

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; letter-spacing: .01em; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--ink); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); padding: 10px 22px; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem; color: var(--navy); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
  transition: border-color .25s, gap .25s;
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { border-color: var(--navy); gap: 12px; }
.link-plain { color: var(--navy); font-weight: 600; text-decoration: none; }
.link-plain:hover { color: var(--magenta); }

/* Ícone do WhatsApp nos botões e links */
.ico-wa { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; margin-right: .45em; }
.btn .ico-wa, .link-arrow .ico-wa { margin-right: 0; }

/* ---------- Header (cápsula flutuante, efeito vidro) ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header__inner, .header.is-scrolled .header__inner { background: rgba(255, 255, 255, .94); }
}
.header {
  position: sticky; top: 16px; z-index: 50;
  margin-top: 16px;
}
.header__inner {
  position: relative;
  width: min(1240px, 100% - 32px);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 9px 0 28px;
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(255, 255, 255, .25),
    0 1px 2px rgba(19, 32, 74, .05),
    0 14px 34px -16px rgba(19, 32, 74, .22);
  transition: background-color .3s, box-shadow .3s;
}
.header.is-scrolled .header__inner {
  background: rgba(255, 255, 255, .58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(255, 255, 255, .25),
    0 1px 2px rgba(19, 32, 74, .06),
    0 18px 44px -18px rgba(19, 32, 74, .3);
}
.header__logo img { height: 46px; width: auto; }

.nav { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-size: .95rem;
  transition: color .3s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--magenta); transform: scaleX(0); transition: transform .35s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--magenta); }
.nav__link.is-active::after { transform: scaleX(1); }

/* pílula de vidro que desliza entre os itens no hover */
.nav__hover {
  position: absolute; top: 50%; left: 0; width: 0; height: 40px;
  transform: translateY(-50%) scale(.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 4px 14px -4px rgba(19, 32, 74, .18);
  opacity: 0; pointer-events: none;
  transition:
    left .45s cubic-bezier(.3, .8, .2, 1),
    width .45s cubic-bezier(.3, .8, .2, 1),
    opacity .3s ease, transform .3s ease;
}
.nav__hover.is-on { opacity: 1; transform: translateY(-50%) scale(1); }
.nav__hover.no-move { transition: opacity .3s ease, transform .3s ease; }

.nav__cta {
  display: inline-flex; align-items: center; gap: 14px;
  margin-left: 10px; padding: 6px 6px 6px 24px; height: 54px;
  border-radius: 999px; background: var(--navy); color: #fff;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  transition: background-color .25s;
}
.nav__cta:hover { background: var(--ink); }
.nav__cta-ico {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  transition: transform .3s;
}
.nav__cta-ico svg { width: 20px; height: 20px; }
.nav__cta:hover .nav__cta-ico { transform: rotate(-12deg); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 12px 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* Foto de fundo inteira; o header de vidro flutua por cima */
.hero {
  position: relative; overflow: hidden;
  margin-top: calc(-1 * (var(--header-h) + 16px));
  min-height: clamp(640px, 100vh, 920px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 64px) 0 80px;
  background: var(--soft);
}
.hero__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 0% center;
}
/* Máscara branca da esquerda para a direita (só desktop) */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, .92) 0%,
    rgba(255, 255, 255, .78) 28%,
    rgba(255, 255, 255, .35) 46%,
    rgba(255, 255, 255, 0) 62%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__copy { max-width: 500px; }
.hero .lead { font-size: 1.12rem; max-width: 400px; margin: 28px 0 40px; color: var(--text); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }

/* Faixa de 3 diferenciais na hero */
.hero__features {
  list-style: none; margin: 56px 0 0; padding: 28px 0 0;
  border-top: 1px solid rgba(19, 32, 74, .14);
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 600px;
}
.hero__features li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 14px;
}
.hero__features li + li { border-left: 1px solid rgba(19, 32, 74, .14); }
.hero__features svg { width: 34px; height: 34px; color: var(--navy); margin-bottom: 12px; }
.hero__features strong {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy);
  margin-bottom: 4px;
}
.hero__features span { font-size: .84rem; line-height: 1.4; color: var(--text); }

/* ---------- Marcas ---------- */
.brands { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 48px; padding: 30px 0; }
.brands__inner p { margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.brands__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 20px 56px; }
.brands__list img { height: 18px; width: auto; filter: grayscale(1); opacity: .45; transition: opacity .3s; }
.brands__list img:hover { opacity: .8; }

/* ---------- Produtos ---------- */
.tabs__hint {
  text-align: center; margin: 0 0 16px;
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
/* Categorias em cartões clicáveis */
.tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 940px; margin: 0 auto 64px;
}
.tabs button {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px 10px 10px; text-align: left; cursor: pointer;
  background: var(--soft); border: 1px solid transparent; border-radius: 18px;
  font-family: var(--font-body);
  transition: background-color .25s, border-color .25s, box-shadow .3s, transform .3s;
}
.tabs button img {
  width: 58px; height: 58px; flex: none; object-fit: contain;
  background: #fff; border-radius: 12px; padding: 5px;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.tabs__text { display: flex; flex-direction: column; line-height: 1.25; }
.tabs__name { font-size: .95rem; font-weight: 600; color: var(--ink); }
.tabs__count { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.tabs button:hover { background: #fff; border-color: var(--line); transform: translateY(-2px); }
.tabs button:hover img { transform: scale(1.06); }
.tabs button[aria-selected="true"] {
  background: #fff; border-color: var(--ink);
  box-shadow: 0 14px 30px -18px rgba(19, 32, 74, .45);
}
.tabs button[aria-selected="true"] .tabs__count { color: var(--magenta); }

.products__note { text-align: center; color: var(--muted); font-size: .82rem; margin: 64px 0 0; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Cards de colchão ---------- */
.panel { overflow: hidden; }
.mgrid.mgrid--4 { grid-template-columns: repeat(4, 1fr); }
.mgrid--4 .mcard { padding: 40px 28px 44px; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -1px -1px 0; }
.panel:not([hidden]) .mgrid { animation: fade .5s ease both; }
.mcard { display: block; text-decoration: none; color: inherit; padding: 44px 40px 48px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mcard__media { aspect-ratio: 4 / 3; margin-bottom: 22px; }
.mcard__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.mcard:hover .mcard__media img { transform: translateY(-8px); }
.mcard__brand {
  margin: 0 0 10px;
  font-size: .7rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--ink);
}
.mcard__cta {
  display: inline-flex; align-items: center; gap: 6px; padding-bottom: 3px;
  font-size: .82rem; letter-spacing: .04em; color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color .4s;
}
.mcard__cta::after { content: "→"; }
.mcard:hover .mcard__cta { border-color: var(--ink); }

/* ---------- Sobre ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.about__media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius); }
.about__copy h2 { margin-bottom: 32px; }
.about__copy p { max-width: 500px; }

/* ---------- Missão (lista numerada) ---------- */
.numbered { list-style: none; counter-reset: n; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.numbered li { counter-increment: n; border-top: 1px solid var(--line); padding-top: 28px; }
.numbered li::before {
  content: counter(n, decimal-leading-zero);
  display: block; margin-bottom: 20px;
  font-family: var(--font-display); font-size: .9rem; color: var(--magenta); letter-spacing: .05em;
}
.numbered p { margin: 0; }

/* ---------- Tecnologias ---------- */
.tech__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.tech__list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.tech__list > div { border-top: 1px solid var(--line); padding: 26px 0 30px; }
.tech__list dt { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.tech__list dd { margin: 0; font-size: .95rem; }

/* ---------- Quiz ---------- */
.quiz__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.quiz__intro p:last-child { max-width: 380px; }
.quiz__form { background: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.section--soft .quiz__form { background: #fff; }
.section:not(.section--soft) .quiz__form { background: var(--soft); }
.quiz__form fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.quiz__form legend { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; padding: 0; }
.quiz__form legend small { font-family: var(--font-body); font-size: .78rem; color: var(--muted); margin-left: 6px; }
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: block; text-align: center; padding: 11px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: .9rem; color: var(--text);
  transition: border-color .2s, background-color .2s, color .2s;
}
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--magenta); outline-offset: 2px; }
.quiz__note { margin: 16px 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.quiz__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.quiz__hint { min-height: 1.4em; margin: 0 0 16px; font-size: .88rem; color: var(--magenta); }

/* ---------- Sustentabilidade ---------- */
.diff__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: center; }
.diff__list svg { width: 36px; height: 36px; color: var(--navy); margin: 0 auto 22px; display: block; }
.diff__list h3 { margin-bottom: 6px; }
.diff__list p { margin: 0; font-size: .95rem; }

/* ---------- Visite ---------- */
.visit__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.visit__copy h2 { margin-bottom: 36px; }
/* passos numerados de "Como comprar" */
.steps { list-style: none; counter-reset: passo; margin: 0 0 36px; padding: 0; }
.steps li {
  counter-increment: passo; position: relative;
  padding: 22px 0 22px 56px; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(passo, decimal-leading-zero);
  position: absolute; left: 0; top: 23px;
  font-family: var(--font-display); font-size: .95rem; color: var(--magenta); letter-spacing: .05em;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; font-size: .95rem; }
.visit__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.visit__media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: var(--radius); }

/* ---------- CTA final ---------- */
.cta { text-align: center; }
.cta__inner { max-width: 720px; }
.cta__inner img { width: min(420px, 80%); margin: 0 auto 48px; }
.cta p { max-width: 480px; margin: 0 auto 40px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 32px; }

/* ---------- Páginas legais (privacidade e termos) ---------- */
.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(80px, 10vw, 128px); }
.legal__inner { max-width: 780px; }
.legal__back { display: inline-block; margin-bottom: 40px; font-size: .9rem; color: var(--muted); text-decoration: none; }
.legal__back:hover { color: var(--ink); }
.legal h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); margin-bottom: 12px; }
.legal__updated { font-size: .86rem; color: var(--muted); margin-bottom: 48px; }
.legal h2 { font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .5em; }
.legal li::marker { color: var(--magenta); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal main a, .legal p a, .legal li a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.legal p a:hover, .legal li a:hover { text-decoration-color: var(--navy); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 0; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__brand img { width: 190px; }
.footer h4 { font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer p { margin: 0; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--magenta); }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  border-top: 1px solid var(--line); margin-top: 64px; padding: 24px 0 32px;
  font-size: .8rem; color: var(--muted);
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer .footer__legal a { color: var(--muted); }
.footer .footer__legal a:hover { color: var(--ink); }

/* Crédito da agência com brilho contínuo (shimmer) — exceção à regra de "sem degradê".
   Seletor .footer a.credito-grapix para vencer .footer a / .footer a:hover. */
.footer a.credito-grapix { color: var(--muted); }
@supports ((-webkit-background-clip:text) or (background-clip:text)) {
  .footer a.credito-grapix {
    color: transparent;
    background: linear-gradient(100deg,
      var(--muted) 0%, var(--muted) 40%,
      var(--magenta) 48%, var(--magenta-light) 50%, var(--magenta) 52%,
      var(--muted) 60%, var(--muted) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: credito-grapix-brilho 3.6s linear infinite;
  }
}
@keyframes credito-grapix-brilho {
  from { background-position: 130% 0; }
  to   { background-position: -30% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .footer a.credito-grapix { animation: none; }
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  --size: 58px;
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: flex; align-items: center;
  height: var(--size); border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .6), 0 4px 12px rgba(19, 32, 74, .08);
  opacity: 0; transform: translateY(28px) scale(.6);
  transition: transform .7s cubic-bezier(.2, 1.4, .4, 1), opacity .4s ease, box-shadow .35s ease;
}
.wa-float.is-visible { opacity: 1; transform: none; }
.wa-float.is-visible:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(37, 211, 102, .7), 0 6px 14px rgba(19, 32, 74, .1); }

/* anel que se expande e some */
.wa-float::before {
  content: ""; position: absolute; right: 0; top: 0;
  width: var(--size); height: var(--size); border-radius: 50%;
  border: 2px solid var(--wa);
  pointer-events: none;
  animation: wa-ring 3.4s ease-out 1.5s infinite;
}
.wa-float:hover::before, .wa-float.is-peek::before { animation: none; opacity: 0; }

.wa-float__icon { display: grid; place-items: center; width: var(--size); height: var(--size); flex: none; }
.wa-float__icon svg { width: 28px; height: 28px; transform-origin: 50% 60%; animation: wa-wiggle 5s ease-in-out 2s infinite; }
.wa-float:hover .wa-float__icon svg { animation: none; }

/* texto que abre para a esquerda */
.wa-float__label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  padding-left: 0; opacity: 0;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: max-width .55s cubic-bezier(.2, .8, .2, 1), padding .55s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label,
.wa-float.is-peek .wa-float__label { max-width: 180px; padding-left: 24px; opacity: 1; transition-delay: 0s, 0s, .12s; }

@keyframes wa-ring {
  0% { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(1.75); opacity: 0; }
}
@keyframes wa-wiggle {
  0%, 84%, 100% { transform: rotate(0); }
  87% { transform: rotate(-14deg); }
  90% { transform: rotate(12deg); }
  93% { transform: rotate(-8deg); }
  96% { transform: rotate(4deg); }
}

/* ---------- Pop-up ---------- */
.popup {
  width: min(840px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px);
  padding: 0; border: 0; background: transparent; overflow: visible;
}
.popup::backdrop { background: rgba(19, 32, 74, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.popup[open]::backdrop { animation: popup-fade .4s ease both; }
.popup[open] .popup__card { animation: popup-in .6s cubic-bezier(.2, 1, .3, 1) both; }
.popup__card {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.1fr;
  background: #fff; border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(19, 32, 74, .5);
}
.popup__card:focus { outline: none; }
.popup__media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: 64% center; }
.popup__body { padding: 56px 48px 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.popup__body h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 16px; }
.popup__body p:not(.eyebrow) { margin: 0 0 30px; }
.popup__dismiss {
  margin-top: 18px; padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .86rem; color: var(--muted);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line);
}
.popup__dismiss:hover { color: var(--ink); }
.popup__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); color: var(--ink);
  box-shadow: 0 2px 10px rgba(19, 32, 74, .12);
  transition: transform .3s;
}
.popup__close:hover { transform: rotate(90deg); }
.popup__close svg { width: 18px; height: 18px; }
@keyframes popup-in { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes popup-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 680px) {
  .popup__card { grid-template-columns: 1fr; }
  .popup__media img { min-height: 0; aspect-ratio: 16 / 8; }
  .popup__body { padding: 30px 24px 26px; }
}

/* ---------- Aviso de cookies ---------- */
.cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 70;
  width: min(420px, calc(100% - 48px));
  padding: 20px 22px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 20px 44px -18px rgba(19, 32, 74, .35);
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease;
}
.cookie.is-in { opacity: 1; transform: none; }
.cookie p { margin: 0 0 16px; font-size: .86rem; line-height: 1.55; color: var(--text); }
.cookie p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.cookie__actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.cookie__deny {
  border: 0; background: none; padding: 6px 0; cursor: pointer;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted);
}
.cookie__deny:hover { color: var(--ink); }
.cookie .btn { padding: 11px 24px; font-size: .88rem; }
@media (max-width: 560px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .9s ease, transform .9s ease; transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1024px) {
  .nav__link { padding: 9px 12px; }
  .nav__link::after { left: 12px; right: 12px; }
  .mgrid, .mgrid.mgrid--4 { grid-template-columns: repeat(2, 1fr); }
  .tabs { grid-template-columns: repeat(2, 1fr); max-width: 620px; }
}

@media (max-width: 640px) {
  .mgrid, .mgrid.mgrid--4 { grid-template-columns: repeat(2, 1fr); }
  .mcard { padding: 22px 12px 24px; }
  .mcard__media { margin-bottom: 14px; }
  .mcard__brand { font-size: .62rem; letter-spacing: .2em; }
  .mcard__cta { font-size: .78rem; }
  .hero__features { margin-top: 44px; }
  .hero__features li { padding: 0 8px; }
  .hero__features svg { width: 30px; height: 30px; }
  .hero__features strong { font-size: .64rem; letter-spacing: .12em; }
  .hero__features span { font-size: .78rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header { top: 12px; margin-top: 12px; }
  .header__inner { width: calc(100% - 24px); padding: 0 8px 0 20px; }
  .header__logo img { height: 38px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 22px 22px; border-radius: 24px;
    box-shadow: 0 24px 48px -20px rgba(19, 32, 74, .3);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, visibility .2s, transform .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav__link::after { display: none; }
  .nav__link { border-radius: 0; }
  .nav__hover { display: none; }
  .nav__cta { margin: 18px 0 0; justify-content: space-between; }

  .about__grid, .tech__grid, .quiz__grid, .visit__grid { grid-template-columns: 1fr; }
  /* celular: foto vertical inteira na largura; o piso se dissolve no branco
     logo abaixo da cama e o texto começa já sobre o branco (112vw ≈ 61% da foto) */
  .hero {
    display: block; min-height: 0;
    margin-top: calc(-1 * (var(--header-h) + 12px));
    padding: 0 0 56px; background: #fff;
  }
  .hero__bg img {
    inset: 0 0 auto 0; height: auto; object-fit: initial;
    -webkit-mask-image: linear-gradient(to bottom, #000 44%, transparent 63%);
            mask-image: linear-gradient(to bottom, #000 44%, transparent 63%);
  }
  .hero__bg::after { display: none; }
  .hero__inner { padding-top: 112vw; }
  /* conteúdo da hero centralizado no celular e tablet */
  .hero__copy { max-width: 560px; margin-inline: auto; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero__ctas { flex-direction: column; justify-content: center; gap: 18px; }
  .hero__features { margin-inline: auto; }
  .about__media img { aspect-ratio: 4 / 3; }

  .numbered, .diff__list { grid-template-columns: 1fr; gap: 36px; }
  .visit__media img { aspect-ratio: 4 / 3; }
  .visit__media { order: -1; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 40px); }
  .brands__inner { justify-content: center; text-align: center; }
  .brands__list { justify-content: center; gap: 16px 32px; }
  .tabs { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 40px; }
  .tabs button { gap: 10px; padding: 8px 10px 8px 8px; border-radius: 16px; }
  .tabs button img { width: 46px; height: 46px; border-radius: 10px; }
  .tabs__name { font-size: .86rem; }
  .tabs__count { font-size: .72rem; }
  .tech__list { grid-template-columns: 1fr; }
  .quiz__form .btn { width: 100%; }
  .visit__ctas { flex-direction: column; align-items: stretch; }
  /* rodapé no celular: logo no topo, endereço e contato lado a lado,
     links em linha e base empilhada, tudo centralizado */
  .footer { padding-top: 56px; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand img { width: 170px; margin: 0 auto; }
  .footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
  .footer__bottom { flex-direction: column; align-items: center; gap: 12px; margin-top: 44px; padding-bottom: 96px; }
  .footer__legal { justify-content: center; }
  .wa-float { --size: 54px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .wa-float { opacity: 1; transform: none; }
  .cookie { opacity: 1; transform: none; }
}
