/* ============================================================
   Dra. Thayna Gonçalves — Funil de Consulta
   Sistema visual: dourado metálico · marfim quente · espresso
   ============================================================ */

/* Inputs visíveis para o GHL mas invisíveis para o usuário */
.ghl-field {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

:root {
  --bg:        #F5F0E8;
  --bg-2:      #EDE4D6;
  --surface:   #FFFFFF;
  --surface-2: #FBF7F1;
  --ink:       #29231C;
  --ink-2:     #6B6258;
  --ink-3:     #A39888;
  --line:      rgba(41,35,28,.13);
  --line-2:    rgba(41,35,28,.07);

  --gold-1: #C9A14C;
  --gold-2: #E8CE8A;
  --gold-3: #9A6E22;
  --gold-grad: linear-gradient(135deg, #C9A14C 0%, #ECD498 46%, #AE7C28 100%);
  --gold-text: #5A4413;
  --gold-soft: rgba(178,131,52,.11);
  --gold-line: rgba(178,131,52,.42);

  --wa: #1FA855;
  --wa-2: #169B4C;

  --shadow-card: 0 24px 60px -30px rgba(58,42,16,.40);
  --shadow-soft: 0 8px 26px -16px rgba(58,42,16,.30);
  --shadow-pop:  0 20px 50px -16px rgba(40,30,12,.30);

  --r-sm: 11px;
  --r:    15px;
  --r-lg: 22px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Jost', system-ui, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#root { min-height: 100%; }

/* ---------- Stage ---------- */
.stage {
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(201,161,76,.16), transparent 60%),
    var(--bg);
}

.shell {
  width: 100%;
  max-width: 600px;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 3.4vh, 40px) clamp(20px, 5vw, 46px);
  position: relative;
  overflow: hidden;
}

/* ---------- Top bar / progress ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 30px;
  margin-bottom: clamp(16px, 3vh, 30px);
}
.topbar .back {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: all .2s var(--ease);
}
.topbar .back:hover { border-color: var(--gold-line); color: var(--ink); transform: translateX(-1px); }
.topbar .back svg { width: 16px; height: 16px; }

.brandmark {
  display: flex; align-items: center; gap: 9px;
  margin-right: auto;
}
.brandmark img { height: 26px; width: auto; display: block; }
.brandmark .wm {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.step-count {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-3);
  font-weight: 600;
  white-space: nowrap;
}

.track {
  height: 3px;
  border-radius: 99px;
  background: rgba(41,35,28,.10);
  overflow: hidden;
  margin-bottom: clamp(18px, 3.6vh, 36px);
}
.track > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--gold-grad);
  transition: width .55s var(--ease);
}

/* ---------- Step body ---------- */
.body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  font-size: 11.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-3);
  font-weight: 600;
  margin: 0 0 16px;
}

.q {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vh + 2vw, 40px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}
.q .accent { font-style: italic; color: var(--gold-3); }

.sub {
  font-size: clamp(15px, 2.2vw, 16.5px);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 30px;
  max-width: 46ch;
}
.hint {
  font-size: 13px;
  color: var(--ink-3);
  margin: -4px 0 22px;
  display: flex; align-items: center; gap: 7px;
}
.hint svg { width: 15px; height: 15px; color: var(--gold-3); }

/* ---------- Option cards ---------- */
.options { display: flex; flex-direction: column; gap: 11px; }
.opt {
  appearance: none;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  cursor: pointer;
  display: flex; align-items: center; gap: 15px;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease), box-shadow .25s var(--ease);
}
.opt:hover { border-color: var(--gold-line); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.opt .tick {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.opt.multi .tick { border-radius: 7px; }
.opt .tick svg { width: 13px; height: 13px; color: #fff; opacity: 0; transform: scale(.6); transition: all .2s var(--ease); }
.opt .label { flex: 1 1 auto; line-height: 1.3; }
.opt.selected {
  border-color: var(--gold-1);
  background: var(--gold-soft);
}
.opt.selected .tick {
  border-color: transparent;
  background: var(--gold-grad);
}
.opt.selected .tick svg { opacity: 1; transform: scale(1); }

/* ---------- Text & phone inputs ---------- */
.field { margin-bottom: 8px; }
.text-input {
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 34px);
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--line);
  padding: 10px 2px 14px;
  outline: none;
  transition: border-color .25s var(--ease);
}
.text-input::placeholder { color: var(--ink-3); opacity: .65; }
.text-input:focus { border-color: var(--gold-1); }

/* phone */
.phone-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.cc-btn {
  appearance: none;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 0 14px;
  height: 60px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
  transition: border-color .2s var(--ease);
}
.cc-btn:hover { border-color: var(--gold-line); }
.cc-btn .flag { font-size: 20px; line-height: 1; }
.cc-btn .dial { font-weight: 500; }
.cc-btn svg { width: 14px; height: 14px; color: var(--ink-3); }
.phone-input {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 0 18px;
  height: 60px;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s var(--ease);
}
.phone-input::placeholder { color: var(--ink-3); }
.phone-input:focus { border-color: var(--gold-1); }

/* country dropdown */
.cc-pop {
  position: absolute;
  z-index: 40;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-pop);
  width: min(340px, 86vw);
  overflow: hidden;
  animation: pop .18s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cc-search {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  color: var(--ink);
}
.cc-list { max-height: 280px; overflow-y: auto; }
.cc-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 16px;
  cursor: pointer;
  font-size: 15px;
  border: none; background: none; width: 100%; text-align: left;
  font-family: inherit; color: var(--ink);
}
.cc-item:hover, .cc-item.active { background: var(--gold-soft); }
.cc-item .flag { font-size: 19px; }
.cc-item .nm { flex: 1 1 auto; color: var(--ink-2); }
.cc-item .dl { color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  border: none;
  border-radius: 99px;
  padding: 18px 30px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .15s var(--ease), box-shadow .25s var(--ease), opacity .2s;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn-gold {
  background: var(--gold-grad);
  color: var(--gold-text);
  box-shadow: 0 12px 26px -12px rgba(174,124,40,.7), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-gold:hover { box-shadow: 0 16px 32px -12px rgba(174,124,40,.85), inset 0 1px 0 rgba(255,255,255,.4); transform: translateY(-2px); }
.btn-gold:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; filter: grayscale(.3); }
.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(31,168,85,.8);
}
.btn-wa:hover { background: var(--wa-2); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(31,168,85,.9); }
.btn-block { width: 100%; }

.footer-actions {
  margin-top: auto;
  padding-top: 28px;
}

/* ---------- Welcome ---------- */
.welcome { text-align: center; flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(8px, 1.9vh, 18px); }
.welcome .logo {
  height: clamp(40px, 5.8vh, 62px); width: auto;
  margin: 0;
  filter: drop-shadow(0 8px 18px rgba(174,124,40,.28));
}
.welcome .wordmark {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.4vh, 21px);
  letter-spacing: .03em;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}
.welcome .crosp {
  font-size: clamp(9px, 1.25vh, 10.5px);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}
.welcome h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 3.7vh, 36px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
  max-width: 26ch;
}
.welcome h1 em { font-style: italic; color: var(--gold-3); }
.welcome .desc {
  font-size: clamp(12.5px, 1.75vh, 15.5px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 auto;
  max-width: 44ch;
}
.welcome .cta-wrap { width: 100%; max-width: 360px; margin: 2px auto 0; }
.welcome .reassure {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.welcome .reassure svg { width: 14px; height: 14px; color: var(--gold-3); }

/* before/after showcase — grid 3 colunas */
.results {
  width: 100%;
  margin: 0;
}
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.6vw, 13px);
  align-items: start;
}
.ba-cell {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-soft);
}
.ba-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.results .rlabel {
  font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-3); font-weight: 600; margin-top: 12px;
  display: flex; align-items: center; gap: 12px; justify-content: center;
  text-align: center;
}
.results .rlabel::before, .results .rlabel::after {
  content: ""; height: 1px; flex: 0 1 34px; background: var(--gold-line);
}

/* ---------- Contact step extras ---------- */
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  margin: 4px 0 26px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  box-shadow: var(--shadow-soft);
}
.price-card .pc-icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px;
  background: var(--gold-soft); display: grid; place-items: center;
}
.price-card .pc-icon svg { width: 20px; height: 20px; color: var(--gold-3); }
.price-card .pc-amt { font-weight: 600; font-size: 16px; color: var(--ink); }
.price-card .pc-amt b { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.price-card .pc-note { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-top: 3px; }

/* ---------- Final screen ---------- */
.final { text-align: center; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.final .check {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--gold-grad);
  display: grid; place-items: center;
  margin: 0 auto 28px;
  box-shadow: 0 18px 40px -16px rgba(174,124,40,.65), inset 0 2px 0 rgba(255,255,255,.4);
  animation: pulse-in .6s var(--ease) both;
}
.final .check svg { width: 44px; height: 44px; color: #fff; }
@keyframes pulse-in { 0% { transform: scale(.6); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.final h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 7vw, 42px); line-height: 1.1; margin: 0 0 16px;
  text-wrap: balance;
}
.final p {
  font-size: clamp(15px, 2.3vw, 16.5px); line-height: 1.62; color: var(--ink-2);
  max-width: 40ch; margin: 0 auto 32px;
}
.final .wa-wrap { width: 100%; max-width: 380px; }
.final .footnote { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* ---------- Step transition ---------- */
.fade-step { animation: fadeStep .5s var(--ease) both; }
@keyframes fadeStep {
  from { transform: translateY(16px); }
  to { transform: none; }
}

/* scrollbar polish */
.cc-list::-webkit-scrollbar { width: 8px; }
.cc-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }

@media (max-width: 480px) {
  .shell { padding: 20px 20px 26px; }
  .topbar { margin-bottom: 22px; }
}
