* {
  box-sizing: border-box;
}

:root {
  --accent: #1a73e8;
  --accent2: #34a853;
  --blue: #1a73e8;
  --red: #ea4335;
  --yellow: #fbbc04;
  --green: #34a853;
  --bg: #f8fafd;
  --paper: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --soft: #f1f3f4;
  --line: #e5e7eb;
  --shadow: 0 12px 34px rgba(60, 64, 67, 0.12);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(26, 115, 232, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(52, 168, 83, 0.07), transparent 26%),
    var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

button,
a {
  font-family: inherit;
}

a {
  color: inherit;
}

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.google-dots,
.brand-dots {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  gap: 4px;
}

.google-dots span,
.brand-dots i {
  width: 10px;
  height: 10px;
  display: block;
  border-radius: 50%;
}

.blue { background: var(--blue); }
.red { background: var(--red); }
.yellow { background: var(--yellow); }
.green { background: var(--green); }

.topbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 253, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-dots {
  width: 42px;
  height: 42px;
  place-content: center;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 5px 16px rgba(60, 64, 67, 0.08);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.client-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.client-switch a {
  padding: 9px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.client-switch a.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px;
  border: 3px solid transparent;
  border-radius: 34px;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, #1a73e8 0%, #ea4335 33%, #fbbc04 66%, #34a853 100%) border-box;
  box-shadow: 0 14px 38px rgba(60, 64, 67, 0.06);
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: 46px;
  align-items: center;
  padding: 54px 0;
}

.kicker,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  background: #e8f0fe;
  border: 1px solid #d2e3fc;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker::before,
.section-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent2);
}

.hero-copy h1 {
  margin: 24px 0 0;
  max-width: 760px;
  color: #202124;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.93;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.subtitle {
  margin: 18px 0 0;
  color: #3c4043;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.hero-text {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.search-card {
  width: min(680px, 100%);
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #3c4043;
  box-shadow: 0 8px 22px rgba(60, 64, 67, 0.1);
}

.search-icon {
  font-size: 18px;
}

.main-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.final-cta a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  transition: 0.18s ease;
}

.primary-btn,
.final-cta a {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(26, 115, 232, 0.22);
}

.primary-btn:hover,
.final-cta a:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(26, 115, 232, 0.28);
}

.ghost-btn {
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--line);
}

.preview-card {
  padding: 14px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cover-box {
  position: relative;
  height: 430px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(26,115,232,0.10), rgba(52,168,83,0.10)),
    #f1f3f4;
  border: 1px solid var(--line);
}

.cover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.cover-box.sem-capa img {
  display: none;
}

.cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
}

.cover-fallback strong {
  color: #202124;
  font-size: 36px;
  letter-spacing: -0.06em;
}

.cover-fallback small {
  margin-top: 8px;
  color: var(--muted);
}

.preview-info {
  margin-top: 14px;
  padding: 14px;
  border-radius: 20px;
  background: #f8fafd;
  border: 1px solid var(--line);
}

.preview-info span,
.preview-info strong,
.preview-info small {
  display: block;
}

.preview-info span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.preview-info strong {
  margin-top: 6px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.preview-info small {
  margin-top: 4px;
  color: var(--muted);
}

.actions-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: -18px;
}

.action-card {
  text-align: left;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.08);
  cursor: pointer;
  transition: 0.18s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px rgba(60, 64, 67, 0.12);
}

.action-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f1f3f4;
  font-size: 17px;
}

.action-card strong,
.action-card small {
  display: block;
}

.action-card strong {
  margin-top: 14px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.action-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.section-block,
.final-cta {
  margin-top: 54px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.07);
}

.story-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.section-block h2,
.final-cta h2 {
  margin: 12px 0 0;
  color: #202124;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.story-block p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.section-head {
  margin-bottom: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.product-card {
  min-height: 170px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 22px;
  background: #f8fafd;
  border: 1px solid var(--line);
}

.product-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 20px;
}

.product-card h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.035em;
}

.product-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 14px;
}

.gallery-item {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #f1f3f4;
  cursor: pointer;
  padding: 0;
}

.gallery-item:first-child {
  min-height: 320px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  transition: 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item.sem-imagem img {
  display: none;
}

.gallery-item span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #3c4043;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(60, 64, 67, 0.12);
}

.final-cta {
  text-align: center;
  margin-bottom: 28px;
  background:
    linear-gradient(135deg, rgba(26,115,232,0.06), rgba(52,168,83,0.06)),
    #fff;
}

.final-cta span {
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

.final-cta p {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 17px;
}

.final-cta a {
  margin-top: 24px;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

.footer button {
  border: 1px solid var(--line);
  background: #fff;
  color: #3c4043;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 999px;
  background: #202124;
  color: #fff;
  transition: 0.2s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(32, 33, 36, 0.78);
  padding: 24px;
}

.image-modal.hidden {
  display: none;
}

.image-modal button {
  position: fixed;
  right: 22px;
  top: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: #202124;
  font-size: 28px;
  cursor: pointer;
}

.image-modal img {
  max-width: min(1050px, 94vw);
  max-height: 84vh;
  border-radius: 22px;
  object-fit: contain;
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
    position: static;
  }

  .client-switch {
    justify-content: flex-start;
  }

  .hero,
  .story-block {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 28px;
    padding: 34px 0;
  }

  .actions-strip,
  .product-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item:first-child {
    min-height: 260px;
  }
}

@media (max-width: 620px) {
  .topbar,
  .page-shell,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  .page-shell {
    padding: 10px;
    border-width: 2px;
    border-radius: 26px;
  }

  .client-switch {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .client-switch a {
    white-space: nowrap;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .subtitle {
    font-size: 23px;
  }

  .hero-text {
    font-size: 16px;
  }

  .search-card {
    align-items: flex-start;
    border-radius: 22px;
    padding: 14px;
  }

  .main-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .cover-box {
    height: 340px;
  }

  .actions-strip {
    margin-top: 0;
  }

  .section-block,
  .final-cta {
    margin-top: 34px;
  }

  .section-block h2,
  .final-cta h2 {
    font-size: 34px;
  }

  .story-block p,
  .final-cta p {
    font-size: 16px;
  }

  .product-card {
    min-height: auto;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0 30px;
  }
}


/* Ajuste cirúrgico Vitrine Viva */
.cta-red,
.primary-btn.cta-red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 12px 26px rgba(234, 67, 53, 0.24);
}

.cta-red:hover,
.primary-btn.cta-red:hover {
  box-shadow: 0 16px 34px rgba(234, 67, 53, 0.30);
}

.demo-btn {
  color: var(--blue);
  border-color: rgba(26, 115, 232, 0.24);
  background: #fff;
}

.demo-btn::before {
  content: "▶";
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  border-radius: 50%;
  background: #e8f0fe;
  color: var(--blue);
  font-size: 10px;
}

.preview-card-produto {
  padding: 10px;
  background: rgba(255,255,255,0.96);
}

.preview-card-produto .cover-box {
  height: min(660px, 74vh);
  background: #fff;
}

.preview-card-produto .cover-box img {
  object-fit: contain;
  padding: 0;
  background: #fff;
}

.preview-card-produto .cover-fallback,
.preview-card-produto .preview-info {
  display: none;
}

.placeholder-gallery {
  display: grid;
  place-items: center;
  text-align: left;
  background:
    radial-gradient(circle at top left, rgba(26, 115, 232, 0.10), transparent 34%),
    radial-gradient(circle at bottom right, rgba(234, 67, 53, 0.08), transparent 36%),
    #fff;
}

.gallery-placeholder {
  width: min(78%, 310px);
  display: grid;
  gap: 8px;
}

.gallery-placeholder::before {
  content: "";
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 16px;
  background:
    linear-gradient(135deg, var(--blue), var(--red));
  box-shadow: 0 10px 24px rgba(26, 115, 232, 0.18);
}

.gallery-placeholder strong {
  color: #202124;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.gallery-placeholder small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.gallery-item.sem-imagem span {
  background: rgba(255,255,255,0.96);
}

@media (max-width: 920px) {
  .preview-card-produto .cover-box {
    height: auto;
    min-height: 0;
  }

  .preview-card-produto .cover-box img {
    height: auto;
  }
}

@media (max-width: 620px) {
  .main-actions {
    grid-template-columns: 1fr;
  }

  .demo-btn::before {
    margin-right: 7px;
  }

  .gallery-placeholder {
    width: 82%;
  }
}
