/* =========================================================
   Pudim no Copo Viral — Landing Styles
   Identity: doce + feminino + aconchego (NÃO empreendedor coach)
   Visual ref: D:/Code/Squads/ghostmind/output/pudim-no-copo/briefing/
   ========================================================= */

:root {
  /* >>> design-tokens — AUTO-GENERATED from DESIGN.md · npm run designmd:quiz -- --project=pudim-no-copo-3k · não editar à mão */
  --c-bg: #fbf0dc;
  --c-bg-card: #fffaf1;
  --c-bg-deep: #f2e1c0;
  --c-text: #3a2a1a;
  --c-text-muted: #7a6757;
  --c-text-light: #b5a18a;
  --c-primary: #b7791f;
  --c-primary-deep: #8d5a14;
  --c-accent: #c68642;
  --c-pudim: #f5e4c2;
  --c-cta: #6b4423;
  --c-cta-hover: #503320;
  --c-border: #e8d5b7;
  --c-soft: #f7e8cc;
  /* <<< design-tokens */

  /* Tipografia diferente do geladinho (que usa Fraunces) */
  --font-display:   'Cormorant Garamond', 'Georgia', serif;
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body {
  background-image:
    radial-gradient(circle at 15% 10%, rgba(198, 134, 66, 0.07), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(183, 121, 31, 0.05), transparent 50%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; }

/* =========================================================
   LANDING
   ========================================================= */

.landing {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 0 80px;   /* lateral movido p/ .app-container (C3) — sem duplicar */
}

/* HERO — 2 colunas no desktop, stack no mobile */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 16px 0 36px;
  align-items: center;
}

.hero__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* <picture> wrapper (WebP + fallback) não gera caixa — img herda o layout original */
picture { display: contents; }

/* Foto hero — Imagen 4 generated */
.hero__photo {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow:
    0 1px 2px rgba(120, 90, 50, 0.12),
    0 20px 40px -16px rgba(120, 90, 50, 0.4);
}

.hero__media-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  text-align: center;
}

.hero__content { text-align: left; }

.hero__eyebrow {
  display: block;
  font-size: 13px;
  color: var(--c-primary-deep);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 6.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--c-text);
  margin-bottom: 16px;
}

.hero__headline .hl {
  color: var(--c-primary-deep);
  font-style: italic;
  font-weight: 700;
}

.hero__subhead {
  font-size: 16px;
  color: var(--c-text-muted);
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 460px;
}

/* CTA — chocolate escuro, raio menor */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--c-cta);
  color: #FFFAF1;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 4px;
  transition: background 180ms ease, transform 180ms ease;
  box-shadow: 0 4px 0 var(--c-cta-hover);
}

.btn-cta:hover, .btn-cta:active {
  background: var(--c-cta-hover);
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--c-cta-hover);
}

.btn-cta__arrow { font-size: 18px; font-weight: 400; }

.hero__trust {
  margin-top: 14px;
  font-size: 13px;
  color: var(--c-text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.hero__trust .dot { color: var(--c-text-light); }

/* AUTHORITY — linha única (NÃO pill como geladinho) */
.authority {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  margin: 12px 0 32px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  flex-wrap: wrap;
}

.authority__count {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.authority__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--c-primary-deep);
}

.authority__label {
  font-size: 12px;
  color: var(--c-text-muted);
  letter-spacing: 0.03em;
  margin-top: 4px;
}

.authority__sep {
  color: var(--c-border);
  font-size: 28px;
  font-weight: 100;
}

.authority__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}

.authority__bar {
  display: block;
  flex-shrink: 0;
  width: 36px;
  height: 3px;
  background: var(--c-primary);
  border-radius: 2px;
}

.authority__txt {
  font-size: 13.5px;
  color: var(--c-text);
  line-height: 1.4;
}

.authority__txt strong {
  color: var(--c-primary-deep);
  font-weight: 700;
}

/* QUOTES — 3 cards horizontais (não tem em geladinho) */
.quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}

.quote {
  padding: 22px 24px;
  background: var(--c-bg-card);
  border-left: 3px solid var(--c-primary);
  border-radius: 0 6px 6px 0;
}

.quote__txt {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  line-height: 1.45;
  color: var(--c-text);
  margin-bottom: 8px;
}

.quote__by {
  font-size: 12.5px;
  color: var(--c-text-muted);
  letter-spacing: 0.02em;
}

/* STICKY CTA mobile */
.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: var(--c-cta);
  color: #FFFAF1;
  font-weight: 600;
  font-size: 15px;
  border-radius: 4px;
  text-decoration: none;
  z-index: 50;
  box-shadow: 0 6px 18px rgba(107, 68, 35, 0.35);
}

@media (min-width: 768px) {
  .landing { padding: 56px 0 100px; }   /* lateral via .app-container (C3) */
  .app-container { padding-left: 32px; padding-right: 32px; }
  .hero {
    grid-template-columns: 280px 1fr;
    gap: 56px;
    padding: 32px 0 64px;
  }
  .hero__media { align-self: start; padding-top: 12px; }
  .hero__photo { max-width: none; width: 100%; }
  .authority { padding: 22px 28px; }
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .sticky-cta { display: none; }
}

@media (min-width: 1024px) {
  .hero { grid-template-columns: 360px 1fr; gap: 64px; }
}

/* =========================================================
   QUIZ SCREENS — identidade pudim (caramelo/chocolate + Cormorant)
   ========================================================= */

/* C3/contrato preview: .app-container carrega o padding lateral seguro (24px).
   O preview do builder envolve as telas nesta classe — sem o padding aqui, cola
   nas bordas. As telas internas (.screen) tiveram o lateral removido p/ nao duplicar. */
.app-container { width: 100%; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }

.screen { display: none; }
.screen.active { display: block; animation: screenIn 280ms ease both; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* container das telas internas (mais estreito que a landing) */
.screen:not(.screen--landing) {
  max-width: 620px;
  margin: 0 auto;
  padding: 28px 0 96px;   /* lateral movido p/ .app-container (C3) — visual identico */
  min-height: 100vh;
  display: none;
}
.screen:not(.screen--landing).active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- PROGRESS BAR ---------- */
.progress-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 20px;
  background: rgba(251, 240, 220, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--c-border);
}
.progress-bar {
  height: 6px;
  background: var(--c-soft);
  border-radius: 999px;
  overflow: hidden;
  max-width: 620px;
  margin: 0 auto;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  border-radius: 999px;
  transition: width 360ms ease;
}
.progress-label {
  max-width: 620px;
  margin: 6px auto 0;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--c-text-muted);
  text-align: center;
}

/* ---------- QUESTION CARD ---------- */
.question-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 28px 22px;
  box-shadow: 0 18px 40px -22px rgba(120, 90, 50, 0.45);
}

.q-counter {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-primary-deep);
  font-weight: 600;
  margin-bottom: 12px;
}

.q-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(23px, 5.5vw, 30px);
  line-height: 1.18;
  color: var(--c-text);
  margin-bottom: 8px;
}

.q-microcopy {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
}

/* ---------- OPTIONS ---------- */
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--c-text);
  transition: border-color 160ms ease, background 160ms ease, transform 120ms ease;
}
.option:hover {
  border-color: var(--c-primary);
  background: var(--c-bg-card);
}
.option:active { transform: scale(0.99); }

.option--selected {
  border-color: var(--c-primary-deep);
  background: var(--c-soft);
  box-shadow: inset 0 0 0 1px var(--c-primary-deep);
}

/* image grid (Q1 auto-seleção) */
.options--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.option--image {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  text-align: center;
  padding: 14px;
}
.option-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--c-pudim), var(--c-bg-deep));
  border-radius: 8px;
}
.option-img-emoji { font-size: 40px; line-height: 1; }
.option-text { font-size: 14px; line-height: 1.35; }

/* ---------- CTA GENÉRICO (interstitial/lead) ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: var(--c-cta);
  color: #FFFAF1;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  transition: background 180ms ease, transform 160ms ease;
  box-shadow: 0 4px 0 var(--c-cta-hover);
}
.cta:hover { background: var(--c-cta-hover); }
.cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--c-cta-hover); }
.cta:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- INTERSTITIAL ---------- */
.interstitial-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 18px 40px -22px rgba(120, 90, 50, 0.45);
}
.interstitial-icon { font-size: 44px; display: block; margin-bottom: 12px; }
.interstitial-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 5.5vw, 32px);
  line-height: 1.15;
  color: var(--c-text);
  margin-bottom: 16px;
}
.interstitial-body {
  text-align: left;
  font-size: 15.5px;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: 26px;
}
.interstitial-body p { margin-bottom: 12px; }
.interstitial-body strong { color: var(--c-primary-deep); font-weight: 700; }
.interstitial-body ul { margin: 12px 0 12px 4px; padding-left: 18px; }
.interstitial-body li { margin-bottom: 10px; }

/* ---------- LEAD CAPTURE ---------- */
.lead-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 30px 24px;
  box-shadow: 0 18px 40px -22px rgba(120, 90, 50, 0.45);
}
.badge-mini {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--c-soft);
  color: var(--c-primary-deep);
  margin-bottom: 14px;
}
.badge-mini--success { background: #E4F0DC; color: #4A6B2E; }
.headline-md {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.18;
  color: var(--c-text);
  margin-bottom: 10px;
}
.lead-sub { font-size: 14px; color: var(--c-text-muted); margin-bottom: 12px; }
.checklist { list-style: none; margin: 0 0 22px; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  font-size: 14.5px;
  color: var(--c-text);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-primary);
  font-weight: 700;
}
.field { display: block; margin-bottom: 16px; }
.field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}
.field-opt { font-weight: 400; font-style: italic; color: var(--c-text-light); }
.field input {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--c-text);
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  transition: border-color 160ms ease;
}
.field input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(183, 121, 31, 0.15);
}
.field-error { display: block; font-size: 12.5px; color: #B23A3A; margin-top: 5px; min-height: 1px; }
.lead-micro { font-size: 12.5px; color: var(--c-text-light); text-align: center; margin-top: 12px; }

/* ---------- LOADING ---------- */
.loading-card { text-align: center; padding: 40px 24px; }
.spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto 24px;
  border: 4px solid var(--c-soft);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg {
  font-family: var(--font-display);
  font-size: clamp(18px, 4.5vw, 22px);
  color: var(--c-text);
  line-height: 1.35;
  transition: opacity 300ms ease;
  max-width: 420px;
  margin: 0 auto;
}
.loading-msg.fade { opacity: 0; }

@media (min-width: 768px) {
  .options--grid { gap: 16px; }
  .question-card, .interstitial-card, .lead-card { padding: 38px 34px; }
}
