:root {
  --navy: #1c2b57;
  --navy-deep: #14203f;
  --red: #cb2c3c;
  --spark: #f0d93a;
  --cream: #faf8f3;
  --cream-2: #f2efe6;
  --ink: #1c2333;
  --ink-soft: #5b6178;
  --line: rgba(28, 35, 51, 0.1);
  --shadow: 0 10px 30px -12px rgba(20, 32, 63, 0.25);
  --radius: 18px;
  --maxw: 480px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, .btn { font-family: "Jost", "Inter", sans-serif; }

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

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

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 22px 60px;
  position: relative;
  z-index: 1;
}

/* ambient glow — nod to "firefly" without being literal */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.glow--1 {
  width: 260px; height: 260px;
  background: var(--spark);
  top: -80px; right: -60px;
}
.glow--2 {
  width: 220px; height: 220px;
  background: var(--navy);
  bottom: 10%; left: -80px;
  opacity: 0.12;
}

/* TOPO */
.top { position: relative; text-align: center; margin-bottom: 30px; }

.top__logo-full {
  width: auto;
  height: 74px;
  margin: 0 auto 6px;
  object-fit: contain;
}

.tagline {
  font-family: "Jost", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--red);
  margin: 0 0 12px;
}

.top__cart {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.top__cart:hover { border-color: var(--navy); }
.top__cart svg { width: 19px; height: 19px; }

.top__cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.top__cart-badge[hidden] { display: none; }

.top__switch {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 4px;
}
.top__switch:hover { color: var(--navy-deep); }

/* POPUP DE TRIAGEM */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 63, 0.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal-overlay.is-active {
  display: flex;
  opacity: 1;
}

.modal {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  background: var(--cream);
  border-radius: 24px 24px 0 0;
  padding: 30px 22px 34px;
  box-shadow: 0 -20px 50px -20px rgba(20, 32, 63, 0.4);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.modal-overlay.is-active .modal {
  transform: translateY(0);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream-2);
  border: none;
  color: var(--ink-soft);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__close:hover { color: var(--navy-deep); background: #eceadf; }

.modal__logo {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  margin: 0 auto 18px;
  box-shadow: var(--shadow);
  background: #fff;
  object-fit: contain;
  padding: 6px;
}

@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: 24px; }
  .modal { border-radius: 24px; }
}

/* TRIAGEM / REFINO — telas com crossfade (dentro do modal) */
.screen {
  display: none;
}
.screen.is-active {
  display: block;
  opacity: 0;
  transform: translateY(10px);
  animation: screen-in 0.4s ease forwards;
}

@keyframes screen-in {
  to { opacity: 1; transform: translateY(0); }
}

.screen__title {
  font-size: 1.4rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--navy-deep);
  text-align: center;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.screen__sub {
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 auto 26px;
  max-width: 360px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 14px;
}
.back-link:hover { color: var(--navy-deep); }

/* Cards de público (empresa / pessoa) */
.audience-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audience-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.audience-card__icon {
  display: block;
  font-size: 2.1rem;
  margin-bottom: 10px;
  line-height: 1;
}

.audience-card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin: 0 0 8px;
}

.audience-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.audience-card__btn {
  width: 100%;
}

/* Chips de interesse */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}

.chip {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy-deep);
  font-family: "Inter", sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.chip:hover {
  border-color: var(--navy);
  background: var(--cream-2);
  transform: translateY(-1px);
}
.chip:active {
  transform: translateY(0);
}

.screen__cta { width: 100%; }

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 20px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 28px -10px rgba(20, 32, 63, 0.45);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(20, 32, 63, 0.5); background: var(--navy-deep); }
.btn--primary:active { transform: translateY(0); }
.btn--primary:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; }

.btn__spark {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--spark);
  box-shadow: 0 0 10px 2px rgba(240, 217, 58, 0.9);
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* SECONDARY LINKS */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 44px;
}

.btn--ghost {
  background: #fff;
  color: var(--navy-deep);
  border: 1px solid var(--line);
  font-size: 0.96rem;
  padding: 15px 18px;
  justify-content: flex-start;
}
.btn--ghost:hover { border-color: var(--navy); background: var(--cream-2); transform: translateY(-1px); }
.btn--ghost:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.btn--outline {
  width: auto;
  display: inline-flex;
  background: #fff;
  color: var(--navy-deep);
  border: 1.5px solid var(--line);
  padding: 13px 22px;
  font-size: 0.92rem;
}
.btn--outline:hover { border-color: var(--navy); background: var(--cream-2); transform: translateY(-1px); }

.btn__icon { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; }

/* PRODUCTS */
.section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-deep);
  text-align: center;
  margin: 0 0 20px;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 44px;
}

/* Só mostra o conjunto de título+texto+grade+link que corresponde ao público escolhido no popup */
.products-wrap .section-title[data-for],
.products-wrap .products__intro[data-for],
.products-wrap .products__grid[data-for],
.products-wrap .products__more[data-for] {
  display: none;
}
body:not([data-audience-view]) .products-wrap .section-title[data-for="default"] { display: block; }
body:not([data-audience-view]) .products-wrap .products__grid[data-for="default"] { display: grid; }
body[data-audience-view="empresa"] .products-wrap .section-title[data-for="empresa"] { display: block; }
body[data-audience-view="empresa"] .products-wrap .products__intro[data-for="empresa"] { display: block; }
body[data-audience-view="empresa"] .products-wrap .products__grid[data-for="empresa"] { display: grid; }
body[data-audience-view="empresa"] .products-wrap .products__more[data-for="empresa"] { display: block; }
body[data-audience-view="pessoa"] .products-wrap .section-title[data-for="pessoa"] { display: block; }
body[data-audience-view="pessoa"] .products-wrap .products__grid[data-for="pessoa"] { display: grid; }
body[data-audience-view="pessoa"] .products-wrap .products__more[data-for="pessoa"] { display: block; }

.products__intro {
  margin: 0 0 24px;
}
.products__intro p {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.products__intro p:last-child {
  margin-bottom: 0;
}

.products__more {
  text-align: center;
  margin: -28px 0 44px;
}

.product {
  position: relative;
  margin: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, outline-color 0.2s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.product__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  background: var(--red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 999px;
  box-shadow: 0 4px 10px -4px rgba(203, 44, 60, 0.6);
}

.product__add {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -3px rgba(20, 32, 63, 0.5);
  transition: background 0.15s ease, transform 0.15s ease;
}
.product__add:hover { transform: scale(1.08); }
.product__add.is-added {
  background: var(--red);
}

.product.is-highlighted {
  outline: 3px solid var(--spark);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(240, 217, 58, 0.2);
}

.product__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.3);
  transition: transform 0.3s ease;
}
.product:hover img {
  transform: scale(1.38);
}

.product figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  padding: 10px 8px 12px;
}

.product__category {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--red);
}

.product__name {
  font-family: "Jost", sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--navy-deep);
  line-height: 1.3;
}

/* CLOSING */
.closing { text-align: center; }

.closing__stat {
  font-size: 1.05rem;
  color: var(--navy-deep);
  margin: 0 0 18px;
}
.closing__stat strong { color: var(--red); }

.closing__address {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 18px 0 0;
}

.closing__tagline {
  font-family: "Jost", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  font-style: italic;
  color: var(--red);
  margin: 8px 0 0;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn__spark { animation: none; }
  html { scroll-behavior: auto; }
}

/* DESKTOP */
@media (min-width: 640px) {
  .page { padding-top: 64px; }
  .screen__title { font-size: 1.75rem; }
  .links { flex-direction: column; }
  .audience-cards { flex-direction: row; }
}

/* CARRINHO DE ORÇAMENTO */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 63, 0.45);
  z-index: 210;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cart-overlay.is-active { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 400px);
  background: var(--cream);
  z-index: 220;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: -20px 0 40px -20px rgba(20, 32, 63, 0.35);
}
.cart-drawer.is-active { transform: translateX(0); }

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer__head h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin: 0;
}
.cart-drawer__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 8px;
}
.cart-drawer__close:hover { color: var(--navy-deep); }

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}

.cart-empty {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.cart-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.cart-item__name {
  flex: 1;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--navy-deep);
  line-height: 1.35;
}
.cart-item__remove {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
}
.cart-item__remove:hover { color: var(--red); }

.cart-drawer__footer {
  padding: 18px 22px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-drawer__clear {
  background: none;
  border: none;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}
.cart-drawer__clear:hover { color: var(--red); }

body.cart-open { overflow: hidden; }
