:root {
  color-scheme: light;
  --control-ink: #f4f5f1;
  --control-muted: #aeb7af;
  --control-panel: rgba(18, 22, 19, .88);
  --control-line: rgba(255, 255, 255, .16);
  --accent: #d3f36b;
  --accent-ink: #17200f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #f1f0ec; }
body { color: var(--control-ink); overflow-x: hidden; }
button { font: inherit; }

.preview-shell { min-height: 100vh; position: relative; background: #f1f0ec; }
.preview-stage { width: 100%; min-height: 100vh; display: flex; justify-content: center; }
.device-preview { width: 100%; min-width: 0; }
.viewport-frame {
  width: 100%;
  min-height: 100vh;
  overflow: visible;
  outline: none;
  background: #fff;
}
.image-stage { position: relative; width: 100%; background: #fff; }
.image-stage img { display: block; width: 100%; height: auto; min-height: 1px; object-fit: initial; }

.floating-controls {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 7px 8px;
  padding: 8px 8px 7px;
  border: 1px solid var(--control-line);
  border-radius: 17px;
  background: var(--control-panel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
}
.preview-shell:has(.consent-banner:not([hidden])) .floating-controls { bottom: 128px; }
.preview-brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  grid-column: 1 / -1;
  grid-row: 1;
  padding: 1px 4px 8px;
  border-bottom: 1px solid var(--control-line);
  color: var(--control-ink);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .14em;
  text-decoration: none;
}
.preview-brand-logo { display: block; width: 76px; height: auto; }
.preview-brand-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.preview-brand-label { color: var(--control-muted); font-size: 10px; font-weight: 500; letter-spacing: .04em; }
.preview-status { color: rgba(174, 183, 175, .78); font-size: 9px; font-weight: 450; letter-spacing: .01em; line-height: 1.2; }
.brand-mark { display: flex; gap: 2px; align-items: flex-end; height: 13px; }
.brand-mark i { display: block; width: 3px; border-radius: 3px; background: var(--accent); }
.brand-mark i:nth-child(1) { height: 7px; opacity: .55; }
.brand-mark i:nth-child(2) { height: 13px; }
.brand-mark i:nth-child(3) { height: 10px; opacity: .75; }
.mode-switch { grid-column: 1; grid-row: 2; display: flex; gap: 3px; }
.mode-hint { align-self: center; margin-right: 3px; color: var(--control-muted); font-size: 9px; letter-spacing: .02em; white-space: nowrap; }
.mode-button, .fullscreen-button {
  border: 0;
  color: var(--control-muted);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.mode-button {
  padding: 8px 13px;
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  letter-spacing: .04em;
}
.mode-button:hover, .mode-button:focus-visible, .fullscreen-button:hover, .fullscreen-button:focus-visible {
  color: var(--control-ink);
  outline: none;
}
.mode-button.is-active { background: var(--accent); color: var(--accent-ink); font-weight: 750; }
.mode-button:active, .fullscreen-button:active { transform: scale(.96); }
.floating-whatsapp { grid-column: 3; grid-row: 2; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 13px; border-left: 1px solid var(--control-line); color: #25d366; font-size: 11px; font-weight: 750; letter-spacing: .01em; white-space: nowrap; text-decoration: none; transition: background .18s ease, color .18s ease, transform .18s ease; }
.floating-whatsapp:hover, .floating-whatsapp:focus-visible { background: rgba(37, 211, 102, .14); color: #7af0a1; outline: none; }
.floating-whatsapp:active { transform: scale(.96); }
.floating-whatsapp .whatsapp-icon { width: 20px; height: 20px; }
.fullscreen-button { grid-column: 4; grid-row: 2; width: 32px; height: 32px; border-left: 1px solid var(--control-line); background: transparent; font-size: 18px; line-height: 1; }

.device-preview.is-mobile {
  width: min(390px, calc(100vw - 32px));
  align-self: flex-start;
  margin: 16px auto 48px;
  padding: 10px;
  border-radius: 38px;
  background: #161917;
  box-shadow: 0 30px 70px rgba(28, 30, 27, .28), 0 8px 18px rgba(28, 30, 27, .16);
}
.device-preview.is-mobile .viewport-frame {
  position: relative;
  height: min(780px, calc(100vh - 140px));
  min-height: 520px;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 29px;
  scrollbar-width: none;
}
.device-preview.is-mobile .viewport-frame::-webkit-scrollbar { display: none; }
.device-preview.is-mobile .image-stage { width: 100%; }
.hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot {
  position: absolute;
  pointer-events: auto;
  border: 1px solid transparent;
  background: transparent;
  color: transparent;
  cursor: pointer;
}
.hotspot:focus-visible, .hotspot:hover {
  border-color: rgba(211, 243, 107, .9);
  background: rgba(211, 243, 107, .12);
  color: #10150e;
  outline: none;
}
.hotspot span { display: inline-block; padding: 5px 8px; border-radius: 999px; background: var(--accent); font-size: 10px; font-weight: 700; white-space: nowrap; transform: translateY(-100%); }

.preview-next-step {
  padding: 88px clamp(20px, 8vw, 128px) 180px;
  background: #151a16;
  color: #f4f5f1;
}
.preview-next-step-inner {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 30px;
  width: min(1180px, 100%);
  margin: 0 auto;
}
.next-step-copy { max-width: 840px; }
.next-step-kicker { margin: 0 0 17px; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.next-step-copy h1 { margin: 0; font-size: clamp(38px, 6vw, 82px); font-weight: 500; letter-spacing: -.065em; line-height: .95; }
.next-step-copy p:last-child { max-width: 570px; margin: 25px 0 0; color: #aeb7af; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.55; }
.next-step-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 16px 20px;
  border: 1px solid rgba(211, 243, 107, .65);
  border-radius: 999px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.next-step-link:hover, .next-step-link:focus-visible { background: var(--accent); color: var(--accent-ink); outline: none; transform: translateY(-2px); }
.whatsapp-icon { width: 19px; height: 19px; flex: 0 0 auto; }
.next-step-link span { font-size: 18px; font-weight: 400; }
.consent-settings-link { margin: -10px 0 0; padding: 0; border: 0; background: transparent; color: #aeb7af; cursor: pointer; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.consent-settings-link:hover, .consent-settings-link:focus-visible { color: var(--accent); outline: none; }

.consent-banner {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: none;
  margin: 0;
  padding: 14px max(16px, calc((100vw - 1120px) / 2));
  border: 0;
  border-top: 1px solid #d9d9d9;
  border-radius: 0;
  background: #fff;
  color: #202124;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
  backdrop-filter: none;
}
.consent-banner > div:first-child { max-width: 820px; }
.consent-banner strong { font-size: 13px; font-weight: 600; }
.consent-banner p { margin: 4px 0 0; color: #5f6368; font-size: 12px; line-height: 1.45; }
.consent-info-link { color: #3c4043; text-underline-offset: 2px; white-space: nowrap; }
.consent-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.text-button, .solid-button { border: 1px solid #9aa0a6; border-radius: 4px; padding: 8px 13px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.text-button { background: #fff; color: #3c4043; }
.solid-button { border-color: #202124; background: #202124; color: #fff; font-weight: 600; }

.error-state { max-width: 560px; margin: 16vh auto; padding: 24px; color: #17201a; text-align: center; }
.error-state[hidden], .consent-banner[hidden] { display: none; }
.error-kicker { color: #637e32; font-size: 11px; letter-spacing: .18em; }
.error-state h1 { margin: 15px 0 10px; font-size: clamp(28px, 5vw, 54px); letter-spacing: -.05em; }
.error-state p { color: #68726b; line-height: 1.6; }

@media (max-width: 700px) {
  .floating-controls { right: 12px; bottom: 12px; left: 12px; grid-template-columns: 1fr auto auto; grid-template-rows: auto auto; padding: 7px; border-radius: 17px; }
  .preview-shell:has(.consent-banner:not([hidden])) .floating-controls { bottom: 195px; }
  .preview-brand { display: inline-flex; padding: 1px 4px 7px; }
  .preview-brand-logo { width: 68px; }
  .preview-brand-label { font-size: 9px; }
  .preview-status { font-size: 8px; }
  .mode-switch { grid-column: 1; grid-row: 2; gap: 2px; }
  .mode-hint { display: none; }
  .mode-button { padding-right: 9px; padding-left: 9px; }
  .floating-whatsapp { grid-column: 2; grid-row: 2; min-height: 33px; padding: 0 9px; }
  .floating-whatsapp-label { font-size: 10px; }
  .floating-whatsapp .whatsapp-icon { width: 18px; height: 18px; }
  .fullscreen-button { grid-column: 3; grid-row: 2; }
  .device-preview.is-mobile { width: 100%; margin: 0; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .device-preview.is-mobile .viewport-frame { height: auto; min-height: 100vh; overflow: visible; border-radius: 0; }
  .preview-next-step { padding: 64px 22px 160px; }
  .preview-next-step-inner { align-items: flex-start; flex-direction: column; gap: 30px; }
  .next-step-copy h1 { font-size: clamp(42px, 15vw, 66px); }
  .next-step-copy p:last-child { margin-top: 19px; }
  .next-step-link { padding: 14px 17px; }
  .consent-banner { right: 0; bottom: 0; left: 0; gap: 12px; padding: 14px 16px; align-items: flex-start; flex-direction: column; }
  .consent-actions { width: 100%; justify-content: flex-end; }
}
