/* Shared visual language for the local shopping experience. */
:root {
  --bg: #f7f3eb;
  --surface: #fffdfa;
  --surface-2: #f5eee5;
  --surface-3: #e9ded2;
  --text: #27251f;
  --text-2: #655f56;
  --text-3: #817a70;
  --accent: #1d1d1b;
  --accent-2: #373735;
  --accent-glow: rgba(29, 29, 27, .14);
  --danger: #b83131;
  --success: #1d1d1b;
  --radius-sm: 16px;
  --radius: 22px;
  --radius-lg: 34px;
  --shadow: 0 14px 36px rgba(82, 60, 36, .07);
  --shadow-lg: 0 22px 58px rgba(82, 60, 36, .11);
  --max-w: 720px;
}

html { scroll-behavior: smooth; }
body {
  background: radial-gradient(circle at 94% 7%, #f2e5e3 0, transparent 28rem), var(--bg);
  color: var(--text);
}
button, input, select { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #27251f;
  outline-offset: 3px;
}
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

#login {
  min-height: 100svh;
  padding: 0;
  gap: 0;
  background: #ffffff;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

/* Header preto */
.login-header {
  background: #0c0c0e;
  padding: 40px clamp(20px, 5vw, 48px) 88px;
  text-align: center;
}
.login-header img {
  width: min(260px, 60vw);
  height: auto;
  max-width: 100%;
  filter: brightness(0) invert(1);
  margin-bottom: 4px;
}
.login-header__tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.85;
}

/* Card de login */
.login__sheet {
  position: relative;
  z-index: 1;
  max-width: 470px;
  width: 100%;
  margin: -40px auto 0;
  padding: clamp(32px, 6vw, 48px) clamp(20px, 5vw, 32px);
  background: #ffffff;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -12px 30px rgba(12, 12, 14, 0.06);
}
.login__sheet h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 8px;
  color: #0c0c0e;
}
.login__sheet > p {
  color: #6e6e73;
  line-height: 1.65;
  font-size: 15px;
  margin-bottom: 28px;
}

/* Campo de email */
.float-field {
  position: relative;
  margin-bottom: 20px;
}
.float-field input {
  width: 100%;
  padding: 18px 16px;
  min-height: 58px;
  background: #f5f5f7;
  border: 1.5px solid #e5e5ea;
  border-radius: 16px;
  color: #0c0c0e;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}
.float-field input:focus {
  border-color: #0c0c0e;
  box-shadow: 0 0 0 3px rgba(12,12,14,0.08);
}
.float-field.is-invalid input {
  border-color: #ff453a;
  box-shadow: 0 0 0 3px rgba(255,69,58,0.15);
}
.float-field label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8e8e93;
  font-size: 15px;
  pointer-events: none;
  transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  background: #f5f5f7;
  padding: 0 4px;
}
.float-field input:focus + label,
.float-field input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 11px;
  color: #0c0c0e;
  font-weight: 600;
}

/* Botão */
.prosseguir-button, .welcome-panel__cta, .enviarCodigo, .done-panel__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 0 24px;
  background: #0c0c0e;
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  letter-spacing: 0.3px;
}
.prosseguir-button:hover:not(:disabled), .welcome-panel__cta:hover,
.enviarCodigo:hover:not(:disabled), .done-panel__cta:hover {
  background: #1c1c1e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12,12,14,0.15);
}
.prosseguir-button:active, .welcome-panel__cta:active, .enviarCodigo:active,
.done-panel__cta:active { transform: translateY(0); }

.done-panel__choices { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.done-panel__cta--secondary {
  background: transparent;
  color: #0c0c0e;
  border: 1.5px solid #d8d2c6;
}
.done-panel__cta--secondary:hover {
  background: #f3efe7;
  box-shadow: none;
}
.prosseguir-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Passo a passo */
.login-steps {
  max-width: 470px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 32px) clamp(32px, 6vw, 48px);
}
.login-steps__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8e8e93;
  margin-bottom: 20px;
  text-align: center;
}
.login-steps__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: #f5f5f7;
  border-radius: 18px;
  transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}
.login-step:hover {
  background: #eeeeef;
}
.login-step__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #0c0c0e;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.login-step__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.login-step__content strong {
  font-size: 15px;
  font-weight: 700;
  color: #0c0c0e;
}
.login-step__content span {
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.4;
}

#inicio { min-height: 100svh; padding-bottom: 0; background: #fff; }
.menu {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 40px clamp(20px, 5vw, 48px) 88px;
  padding-left: max(20px, calc((100% - 840px) / 2 + 120px));
  position: relative;
  z-index: 0;
  background: #0c0c0e;
  border: 0;
  text-align: left;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.brand-mark { transform: translateY(6px); }
.brand-mark img, .site-logo--header { width: min(220px, 55vw); height: auto; max-width: 100%; filter: brightness(0) invert(1); margin-bottom: 4px; }
.menu__tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.85;
}
.welcome-panel, .done-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  min-height: calc(100svh - 150px);
  margin: -40px 0 0;
  padding: clamp(32px, 6vw, 48px) max(20px, calc((100% - 560px) / 2)) 48px;
  background: #fff;
  border: 0;
  border-radius: 32px 32px 0 0;
  box-shadow: none;
  text-align: left;
  overflow: hidden;
  animation: rise-in .45s both;
}
.welcome-panel::before, .done-panel::before { display: none; }
.welcome-panel__illustration, .done-panel__icon {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 0 30px;
  border-radius: 25px;
  background: #eae4ed;
  box-shadow: none;
  transform: rotate(-7deg);
}
.welcome-panel__illustration span { color: var(--accent); }
.done-panel__icon { background: #dfe9d7; }
.done-panel__icon span { color: var(--success); }
.welcome-panel__kicker, .done-panel__kicker {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .16em;
}
.done-panel__kicker { color: var(--success); }
.welcome-panel__title, .done-panel__title {
  max-width: 580px;
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -.055em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.welcome-panel__text, .done-panel__text {
  max-width: 630px;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.welcome-panel__bullets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 34px;
}
.welcome-panel__bullets li {
  min-height: 114px;
  margin: 0;
  padding: 18px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  background: #f7f3eb;
  border: 1px solid #efe6da;
  border-radius: 22px;
  line-height: 1.35;
}
.welcome-panel__bullets li:nth-child(2) { background: #eae4ed; border-color: #e5dce9; }
.welcome-panel__bullets li:nth-child(3) { background: #dfe9d7; border-color: #d5e2cb; }
.welcome-panel__bullets li span { color: var(--accent); }
.welcome-panel__cta, .done-panel__cta { max-width: 300px; }

.global-progress { max-width: 840px; padding: 28px 0 20px; }
.global-progress__label, .survey__progress-label { color: var(--text-2); }
.global-progress__count, .survey__progress-count { color: var(--accent); }
.global-progress__track, .survey__progress-track { background: #e9ded2; border-radius: 100px; }
.global-progress__track { height: 8px; }
.global-progress__fill, .survey__progress-fill { background: var(--accent); border-radius: 100px; }
.outer-box { max-width: 840px; padding: 0 0 28px; animation: rise-in .36s both; }
.survey {
  display: grid;
  grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr);
  border: 1px solid #fff;
  border-radius: 38px;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.survey__hero {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 560px;
  padding: 26px;
  background: #fff;
}
.survey__hero::after { display: none; }
.survey__hero img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  padding: 24px;
  border-radius: 24px;
  background: #fffdfa;
}
.survey__body { padding: clamp(28px, 5vw, 44px); }
.survey__progress { margin-bottom: 30px; }
.survey__title { font-size: clamp(25px, 4vw, 34px); letter-spacing: -.04em; line-height: 1.15; }
.survey__title span, .pergunta-whats strong { color: var(--text); }
.pergunta-whats { margin: 23px 0 12px; font-size: 14px; }
.rating-container { gap: 10px; margin-bottom: 18px; }
.rating-button {
  min-height: 50px;
  padding: 12px;
  background: #f7f3eb;
  border: 1.5px solid #e9ded2;
  border-radius: 16px;
  color: var(--text);
}
.rating-button:not(.rating-button--star) {
  background: #fffdfa;
  border-color: var(--accent);
  color: var(--accent);
}
.rating-button:not(.rating-button--star):hover,
.rating-button:not(.rating-button--star).active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.survey__stars-hint { color: var(--text-2); }
.enviarCodigo { margin-top: 24px; }
.notice-overlay { background: rgba(39, 37, 31, .48); }
.notice-popup { background: var(--surface); border-color: #fff; border-radius: 30px; }
.notice-popup__icon { background: #eae4ed; }
.notice-popup__cta { background: var(--accent); border-color: var(--accent); color: #fff; }
.notice-popup__cta:hover { background: var(--accent-2); border-color: var(--accent-2); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 880px) {
  .global-progress { margin: 0 20px; }
  .outer-box { margin: 0 20px; }
}
@media (max-width: 650px) {
  .menu { padding: 36px 20px 76px; }
  .welcome-panel, .done-panel { padding: 32px 20px 40px; border-radius: 28px 28px 0 0; }
  .welcome-panel__bullets { grid-template-columns: 1fr; gap: 8px; }
  .welcome-panel__bullets li { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; }
  .survey { display: block; border-radius: 30px; }
  .survey__hero { height: 190px; min-height: 0; padding: 18px; }
  .survey__hero img { max-height: 154px; padding: 14px; }
  .survey__body { padding: 26px 22px 30px; }
  .rating-button--star { min-height: 48px; height: 48px; font-size: 34px; }
  .welcome-panel__cta, .done-panel__cta { max-width: none; }
}
.success-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 12, 14, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.success-popup.is-visible { opacity: 1; visibility: visible; }
.success-popup__card {
  width: min(320px, 100%);
  padding: 32px 24px 28px;
  background: #fff;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(12, 12, 14, 0.25);
  transform: scale(.9);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.3);
}
.success-popup.is-visible .success-popup__card { transform: scale(1); }
.success-popup__text { font-size: 16px; font-weight: 700; color: #6e6e73; margin-bottom: 2px; }
.success-popup__prize {
  font-size: 34px;
  font-weight: 800;
  color: #0c0c0e;
  letter-spacing: -0.02em;
}

.euro-coin {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  perspective: 700px;
  filter: drop-shadow(0 8px 10px rgba(122, 82, 6, 0.35));
}
.euro-coin__spin {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: euro-spin 2.4s cubic-bezier(.45, .05, .55, .95) infinite;
}
.euro-coin__face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 40px Nunito, Inter, sans-serif;
  color: #8a611a;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 68% 78%, rgba(120, 78, 8, 0.45), rgba(120, 78, 8, 0) 42%),
    conic-gradient(from 220deg, #fff3c4, #f6cf5e, #e0a72e, #f9dd82, #d69420, #fff3c4);
  box-shadow:
    inset 0 0 0 3px #b8862a,
    inset 0 0 0 6px #f7dd8a,
    inset 0 0 0 8px #a8791f,
    inset 0 3px 5px rgba(255, 255, 255, 0.65),
    inset 0 -4px 7px rgba(101, 66, 6, 0.45);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65), 0 -1px 1px rgba(101, 66, 6, 0.45);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.euro-coin__face--back { transform: rotateY(180deg); }
@keyframes euro-spin { to { transform: rotateY(360deg); } }

#menu-saldo.is-ticking { animation: saldoTick 0.75s ease; }
@keyframes saldoTick {
  0% { transform: translateY(-50%) scale(1); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); }
  35% { transform: translateY(-50%) scale(1.1); box-shadow: 0 4px 20px rgba(255, 194, 68, 0.55); }
  100% { transform: translateY(-50%) scale(1); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); }
}

#inicio.is-survey .menu {
  padding: 18px 20px 16px;
  padding-left: max(20px, calc((100% - 840px) / 2 + 120px));
}
#inicio.is-survey .site-logo--header { width: min(170px, 45vw); }
#inicio.is-survey .menu__tagline { font-size: 10px; letter-spacing: 1.6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .welcome-panel, .done-panel, .outer-box { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
