/* ============ TOTEM CIÊNCIA HOJE — design system v3 ============
   FIEL ao cienciahoje.org.br: header laranja-coral #E45E3E,
   logo em cell branca, body cinza-50, conteúdo em cards brancos
   sem rotações nem display fonts.
================================================================= */

:root {
  --ch-orange: #E45E3E;
  --ch-orange-deep: #C8492C;
  --ch-coral: #CE625A;
  --ch-bege: #EEE8D2;
  --ch-bege-soft: #F7F2E1;
  --ch-azul: #1F369A;
  --ch-verde: #548750;
  --ch-amber: #E0A82E;
  --ch-red: #C0392B;
  --ch-gray-50: #F8F9FA;
  --ch-gray-100: #E9ECEF;
  --ch-gray-200: #DEE2E6;
  --ch-gray-300: #CED4DA;
  --ch-gray-500: #ADB5BD;
  --ch-gray-700: #495057;
  --ch-ink: #212529;
  --shadow-sm: 0 1px 3px rgba(33,37,41,0.06);
  --shadow-md: 0 4px 12px rgba(33,37,41,0.08);
  --shadow-lg: 0 12px 32px rgba(33,37,41,0.10);
}

* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
button, [role="button"] { user-select: none; touch-action: manipulation; }

html, body {
  background: var(--ch-gray-50);
  color: var(--ch-ink);
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

/* ===== Color utilities ===== */
.text-ch-orange { color: var(--ch-orange); }
.text-ch-coral { color: var(--ch-coral); }
.text-ch-azul { color: var(--ch-azul); }
.text-ch-verde { color: var(--ch-verde); }
.text-ch-ink { color: var(--ch-ink); }
.text-ch-gray-500 { color: var(--ch-gray-500); }
.text-ch-gray-700 { color: var(--ch-gray-700); }
.bg-ch-orange { background: var(--ch-orange); }
.bg-ch-coral { background: var(--ch-coral); }
.bg-ch-bege { background: var(--ch-bege); }
.bg-ch-bege-soft { background: var(--ch-bege-soft); }
.bg-ch-azul { background: var(--ch-azul); }
.bg-ch-gray-50 { background: var(--ch-gray-50); }
.bg-ch-gray-100 { background: var(--ch-gray-100); }
.border-ch-gray-200 { border-color: var(--ch-gray-200); }

/* ===== HEADER (laranja sticky, igual ao site) ===== */
.topbar {
  background: var(--ch-orange);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-left: 40px;
  padding-right: 40px;
}

/* ===== BRAND / LOGO (PNG real direto no laranja) ===== */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 56px;
  width: auto;
  display: block;
}
.logo-img.lg { height: 80px; }
.logo-img.xl { height: 120px; }
.logo-img.sm { height: 40px; }

/* Header search/menu items style */
.header-link {
  color: white;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background 0.12s ease;
}
.header-link:hover { background: rgba(255,255,255,0.15); }
.header-link.outline {
  border: 1.5px solid rgba(255,255,255,0.7);
}

/* Cart button in header */
.btn-cart-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--ch-orange);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, transform 0.06s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ch-orange); color: white; min-height: 52px; }
.btn-primary:active { background: var(--ch-orange-deep); }
.btn-secondary {
  background: white;
  color: var(--ch-ink);
  border: 1.5px solid var(--ch-gray-300);
  min-height: 52px;
}
.btn-secondary:active { background: var(--ch-gray-50); }
.btn-ghost { background: transparent; color: var(--ch-gray-700); min-height: 52px; }
.btn-azul { background: var(--ch-azul); color: white; min-height: 52px; }

/* Touch sizes (totem) */
.btn-touch { min-height: 72px; font-size: 20px; padding: 18px 36px; }
.btn-touch-lg { min-height: 88px; font-size: 24px; padding: 22px 44px; }
.btn-touch-xl { min-height: 104px; font-size: 28px; padding: 26px 52px; border-radius: 8px; }

/* ===== Tag chip / pill (estilo site CH: pílula preta arredondada) ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.chip-ink { background: var(--ch-ink); color: white; }
.chip-bege { background: var(--ch-bege); color: var(--ch-ink); }
.chip-orange { background: var(--ch-orange); color: white; }
.chip-coral { background: var(--ch-coral); color: white; }
.chip-verde { background: var(--ch-verde); color: white; }
.chip-amber { background: var(--ch-amber); color: var(--ch-ink); }
.chip-red { background: var(--ch-red); color: white; }
.chip-azul { background: var(--ch-azul); color: white; }
.chip-gray { background: var(--ch-gray-100); color: var(--ch-gray-700); }
.chip-outline { background: white; color: var(--ch-ink); border: 1px solid var(--ch-gray-300); }

/* ===== Card ===== */
.card {
  background: white;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-elev { box-shadow: var(--shadow-md); }

/* ===== Product card (CH-style do site real) ===== */
.product-card {
  background: white;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding-top: 28px;
  transition: box-shadow 0.16s ease, transform 0.12s ease;
}
.product-card:active { transform: translateY(2px); }
.product-card .product-pill {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ch-ink);
  color: white;
  padding: 6px 22px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
}
.product-card .product-image {
  background: white;
  padding: 36px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.product-card .product-divider {
  height: 3px;
  background: var(--ch-orange);
  margin: 0 24px;
}
.product-card .product-bottom {
  background: white;
  padding: 18px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card .product-name {
  color: var(--ch-gray-700);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}
.product-card .product-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.product-card .product-cart {
  width: 40px; height: 40px;
  background: var(--ch-orange);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.product-card .product-price {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-style: italic;
  color: var(--ch-ink);
  font-size: 22px;
  line-height: 1;
}
.product-card .product-installments {
  font-size: 11px;
  color: var(--ch-gray-500);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== Inputs ===== */
.field { display: block; width: 100%; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ch-gray-700);
  margin-bottom: 6px;
}
.field-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--ch-gray-300);
  border-radius: 4px;
  background: white;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: var(--ch-ink);
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.field-input:focus {
  border-color: var(--ch-orange);
  box-shadow: 0 0 0 3px rgba(228,94,62,0.15);
}
.field-input.touch { height: 64px; font-size: 22px; padding: 0 20px; }
.field-input::placeholder { color: var(--ch-gray-500); }

/* ===== Filter tabs (estilo site CH: borda inferior na ativa) ===== */
.filter-tabs {
  display: inline-flex;
  gap: 4px;
  border-bottom: 1px solid var(--ch-gray-200);
}
.filter-tabs button {
  padding: 14px 28px;
  border: 0;
  background: transparent;
  color: var(--ch-gray-500);
  font-family: inherit;
  font-weight: 700;
  font-size: 18px;
  border-bottom: 4px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.filter-tabs button:hover { color: var(--ch-gray-700); }
.filter-tabs button.active {
  color: var(--ch-orange);
  border-bottom-color: var(--ch-orange);
}
.filter-tabs.touch button { padding: 18px 36px; font-size: 22px; }

/* ===== Section divider ===== */
.divider {
  height: 1px;
  background: var(--ch-gray-200);
  border: 0;
}

/* ===== Site footer (small, subtle) ===== */
.site-footer {
  background: var(--ch-ink);
  color: rgba(255,255,255,0.85);
  padding: 28px 24px;
  font-size: 13px;
  text-align: center;
}
.site-footer a { color: white; text-decoration: underline; }

/* ===== Proto nav ===== */
.proto-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(33,37,41,0.96);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  overflow-x: auto;
}
.proto-nav .label {
  color: var(--ch-orange);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 8px;
  white-space: nowrap;
}
.proto-nav a {
  color: rgba(255,255,255,0.55);
  padding: 5px 9px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.1s;
}
.proto-nav a:hover { color: white; background: rgba(255,255,255,0.1); }
.proto-nav a.active { background: var(--ch-orange); color: white; }
.proto-nav .spacer { flex: 1; min-width: 12px; }
.proto-nav .meta { color: rgba(255,255,255,0.4); font-size: 10px; white-space: nowrap; }

.kiosk { min-height: 100vh; padding-bottom: 48px; }

/* ===== Animations ===== */
@keyframes pulse-soft { 0%,100% { opacity: 0.85; } 50% { opacity: 1; } }
.pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }

@keyframes ring-out {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}
.ring-anim { animation: ring-out 2.4s ease-out infinite; }
.ring-anim.d1 { animation-delay: 0.8s; }
.ring-anim.d2 { animation-delay: 1.6s; }

@keyframes draw-check { to { stroke-dashoffset: 0; } }
.draw-check { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw-check 0.7s ease-out 0.2s forwards; }

@keyframes pop-in {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.pop-in { transform-origin: center; animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

@keyframes dot-pulse { 0%,80%,100% { opacity: 0.3; } 40% { opacity: 1; } }
.dot-pulse { animation: dot-pulse 1.4s ease-in-out infinite; }
.dot-pulse.d2 { animation-delay: 0.18s; }
.dot-pulse.d3 { animation-delay: 0.36s; }

/* ===== Email frame ===== */
.email-frame {
  background: var(--ch-gray-100);
  min-height: 100vh;
  padding: 32px 16px 80px;
}
.email-card {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.email-meta {
  background: white;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ch-gray-200);
  font-size: 13px;
  color: var(--ch-gray-700);
}
