/* ================================================================
   DIAGNÓSTICO CAPILAR — Studio Renata Rosa
   Paleta: rose gold #B76E79 · nude #E8C9B0 · off-white #FAF7F4 · dark #1A1A1A
   ================================================================ */

/* ── Override modal base para tema nude ── */
.funnel-modal {
  background: #FAF7F4;
  color: #1A1A1A;
  max-width: 640px;
  width: 94vw;
  max-height: 92vh;
  overflow-y: auto;
  padding: 0;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(61,43,31,.22);
}

/* ── Progress ── */
.fnl__progress {
  height: 2px;
  background: #EDD9CC;
  position: sticky;
  top: 0;
  z-index: 10;
  border-radius: 2px 2px 0 0;
}
.fnl__progress-line {
  height: 100%;
  background: linear-gradient(90deg, #B76E79, #C9A97A);
  transition: width .5s cubic-bezier(.4,0,.2,1);
  border-radius: 2px;
}

/* ── Back button ── */
.fnl__back {
  background: none;
  border: none;
  color: #A08070;
  font-family: var(--ff-body, 'Jost', sans-serif);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: .9rem 1.5rem .4rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: color .2s;
}
.fnl__back:hover { color: #B76E79; }
.fnl__back[hidden] { display: none !important; }

/* ── Step container ── */
.fnl__step {
  padding: 1.4rem 2.2rem 2.4rem;
  animation: fnlEnter .38s cubic-bezier(.4,0,.2,1) both;
}
.fnl__step[hidden] { display: none !important; }

@keyframes fnlEnter {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ── Step eyebrow ── */
.fnl__eyebrow {
  font-family: var(--ff-body, 'Jost', sans-serif);
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #B76E79;
  margin-bottom: .6rem;
}

/* ── Headlines ── */
.fnl__headline {
  font-family: var(--ff-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 300;
  line-height: 1.18;
  color: #1A1A1A;
  margin-bottom: .6rem;
}
.fnl__headline em { font-style: italic; color: #B76E79; }

.fnl__sub {
  font-size: .9rem;
  color: #7A5C4A;
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* ── Welcome ornament ── */
.fnl__ornament {
  font-size: 1.1rem;
  color: #C9A97A;
  letter-spacing: .5em;
  margin-bottom: 1.2rem;
}

/* ── Question block ── */
.fnl__q {
  margin-bottom: 1.6rem;
}
.fnl__q-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #A08070;
  margin-bottom: .65rem;
}

/* ── Card grids ── */
.fnl__cards {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.fnl__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .7rem 1rem;
  background: #fff;
  border: 1.5px solid #E8D4C8;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--ff-body, 'Jost', sans-serif);
  font-size: .78rem;
  color: #3D2B1F;
  transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
  box-shadow: 0 1px 6px rgba(61,43,31,.06);
  text-align: center;
  line-height: 1.25;
  user-select: none;
  -webkit-user-select: none;
}
.fnl__card:hover {
  border-color: #B76E79;
  box-shadow: 0 3px 14px rgba(183,110,121,.14);
  transform: translateY(-1px);
}
.fnl__card--sel {
  border-color: #B76E79;
  background: #FDF0F2;
  color: #B76E79;
  font-weight: 500;
  box-shadow: 0 3px 14px rgba(183,110,121,.16);
}

.fnl__card-icon {
  font-size: 1.2rem;
  line-height: 1;
}

/* ── Face shape cards ── */
.fnl__cards--face {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .55rem;
}
.fnl__card--face {
  padding: .65rem .4rem .55rem;
  gap: .45rem;
}
.fnl__card--face svg {
  width: 32px;
  height: 44px;
  display: block;
  stroke: #A08070;
  transition: stroke .18s;
}
.fnl__card--face.fnl__card--sel svg { stroke: #B76E79; }

/* ── Skin tone ── */
.fnl__skins {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
.fnl__skin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
}
.fnl__skin-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
  transition: transform .18s, border-color .18s, outline .18s;
}
.fnl__skin:hover .fnl__skin-dot { transform: scale(1.1); }
.fnl__skin--sel .fnl__skin-dot {
  border-color: #B76E79;
  outline: 3px solid rgba(183,110,121,.25);
  outline-offset: 2px;
}
.fnl__skin-name {
  font-size: .62rem;
  color: #A08070;
  text-align: center;
  line-height: 1.2;
  max-width: 48px;
  transition: color .18s;
}
.fnl__skin--sel .fnl__skin-name { color: #B76E79; font-weight: 600; }

/* ── Personality chips ── */
.fnl__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.fnl__chip {
  padding: .55rem 1.1rem;
  border: 1.5px solid #E8D4C8;
  border-radius: 99px;
  background: #fff;
  cursor: pointer;
  font-family: var(--ff-body, 'Jost', sans-serif);
  font-size: .82rem;
  color: #3D2B1F;
  transition: all .18s;
  user-select: none;
  -webkit-user-select: none;
}
.fnl__chip:hover { border-color: #B76E79; color: #B76E79; }
.fnl__chip--sel { border-color: #B76E79; background: #B76E79; color: #fff; }
.fnl__chip-hint {
  font-size: .68rem;
  color: #B0948A;
  margin-top: .5rem;
  font-style: italic;
}

/* ── Textarea / inputs ── */
.fnl__textarea {
  width: 100%;
  min-height: 88px;
  padding: .75rem 1rem;
  border: 1.5px solid #E8D4C8;
  border-radius: 10px;
  background: #fff;
  font-family: var(--ff-body, 'Jost', sans-serif);
  font-size: .88rem;
  color: #1A1A1A;
  resize: vertical;
  outline: none;
  transition: border-color .2s;
  line-height: 1.55;
}
.fnl__textarea:focus { border-color: #B76E79; }
.fnl__textarea::placeholder { color: #C4ADA4; }

.fnl__field { margin-bottom: 1rem; }
.fnl__label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #A08070;
  margin-bottom: .4rem;
}
.fnl__label .fnl__opt {
  font-weight: 400;
  color: #C4ADA4;
  font-size: .64rem;
  text-transform: none;
  letter-spacing: 0;
  margin-left: .3rem;
}
.fnl__input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #E8D4C8;
  border-radius: 10px;
  background: #fff;
  font-family: var(--ff-body, 'Jost', sans-serif);
  font-size: .9rem;
  color: #1A1A1A;
  outline: none;
  transition: border-color .2s;
}
.fnl__input:focus { border-color: #B76E79; }
.fnl__input::placeholder { color: #C4ADA4; }
.fnl__input--sm { margin-top: .65rem; font-size: .82rem; }

.fnl__val-error {
  font-size: .72rem;
  color: #C0392B;
  margin-top: .3rem;
  display: none;
}
.fnl__val-error--show { display: block; }

/* ── CTA buttons ── */
.fnl__cta {
  display: block;
  width: 100%;
  background: #1A1A1A;
  color: #FAF7F4;
  border: none;
  border-radius: 10px;
  padding: .95rem 1.5rem;
  font-family: var(--ff-body, 'Jost', sans-serif);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .15s;
  margin-top: .75rem;
  text-align: center;
}
.fnl__cta:hover { background: #B76E79; transform: translateY(-2px); }
.fnl__cta--rose { background: #B76E79; }
.fnl__cta--rose:hover { background: #9D5A65; }

.fnl__hint {
  font-size: .68rem;
  color: #C4ADA4;
  text-align: center;
  margin-top: .7rem;
  line-height: 1.5;
}

/* ── Lead gate badge ── */
.fnl__ready {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: #F0FBF1;
  border: 1px solid #A8D5AB;
  color: #2D7A34;
  border-radius: 8px;
  padding: .6rem .9rem;
  font-size: .78rem;
  margin-bottom: 1.5rem;
  font-family: var(--ff-body, 'Jost', sans-serif);
}
.fnl__ready-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

/* ── Loading ── */
.fnl__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 2rem;
  min-height: 340px;
  gap: 1.8rem;
  text-align: center;
}
.fnl__loading-ring {
  width: 52px;
  height: 52px;
  border: 1.5px solid #E8C9B0;
  border-top-color: #B76E79;
  border-radius: 50%;
  animation: fnlSpin 1.1s linear infinite;
}
@keyframes fnlSpin { to { transform: rotate(360deg); } }
.fnl__loading-title {
  font-family: var(--ff-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.35rem;
  font-weight: 300;
  font-style: italic;
  color: #1A1A1A;
  line-height: 1.35;
}
.fnl__loading-sub {
  font-size: .8rem;
  color: #A08070;
}
.fnl__loading-dots span {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #C9A97A;
  margin: 0 3px;
  animation: fnlDot 1.4s ease-in-out infinite both;
}
.fnl__loading-dots span:nth-child(2) { animation-delay: .2s; }
.fnl__loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes fnlDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: .4; }
  40%            { transform: scale(1);   opacity: 1; }
}

/* ── Result ── */
.fnl__result {
  padding: 2rem 2.2rem 3rem;
  animation: fnlEnter .5s cubic-bezier(.4,0,.2,1) both;
}
.fnl__result-eyebrow {
  font-size: .62rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #B76E79;
  font-family: var(--ff-body, 'Jost', sans-serif);
  margin-bottom: .5rem;
}
.fnl__result-name {
  font-family: var(--ff-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: #1A1A1A;
  line-height: 1.08;
  margin-bottom: 1rem;
}
.fnl__result-desc {
  font-size: .9rem;
  color: #6B5044;
  line-height: 1.75;
  margin-bottom: 1.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #EDD9CC;
}
.fnl__recs-title {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #A08070;
  margin-bottom: 1rem;
  font-family: var(--ff-body, 'Jost', sans-serif);
}
.fnl__recs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin-bottom: 2rem;
}
.fnl__rec {
  background: #fff;
  border: 1px solid #EDD9CC;
  border-radius: 12px;
  padding: 1.1rem 1rem;
  box-shadow: 0 2px 10px rgba(61,43,31,.05);
}
.fnl__rec-cat {
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #B76E79;
  margin-bottom: .35rem;
  font-weight: 600;
  font-family: var(--ff-body, 'Jost', sans-serif);
}
.fnl__rec-sug {
  font-family: var(--ff-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.05rem;
  font-style: italic;
  color: #1A1A1A;
  margin-bottom: .4rem;
  line-height: 1.2;
}
.fnl__rec-just {
  font-size: .76rem;
  color: #8A7060;
  line-height: 1.55;
}

/* ── Letter from Renata ── */
.fnl__letter {
  background: linear-gradient(135deg, #FEF6F7 0%, #FAF7F4 100%);
  border: 1px solid #EDD9CC;
  border-left: 3px solid #B76E79;
  border-radius: 12px;
  padding: 1.5rem 1.4rem;
  margin-bottom: 2rem;
}
.fnl__letter-from {
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #B76E79;
  margin-bottom: .75rem;
  font-family: var(--ff-body, 'Jost', sans-serif);
}
.fnl__letter-text {
  font-family: var(--ff-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.02rem;
  font-style: italic;
  color: #3D2B1F;
  line-height: 1.8;
}
.fnl__letter-sig {
  margin-top: 1rem;
  font-family: var(--ff-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.15rem;
  font-style: italic;
  color: #B76E79;
}

/* ── WhatsApp CTA ── */
.fnl__cta-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  width: 100%;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 1.05rem 1.5rem;
  font-family: var(--ff-body, 'Jost', sans-serif);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none;
  text-align: center;
}
.fnl__cta-wa:hover { background: #1ebe5d; transform: translateY(-2px); }
.fnl__cta-wa svg { flex-shrink: 0; }
.fnl__result-hint {
  font-size: .68rem;
  color: #C4ADA4;
  text-align: center;
  margin-top: .65rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .fnl__step        { padding: 1.1rem 1.3rem 2rem; }
  .fnl__result      { padding: 1.5rem 1.3rem 2.5rem; }
  .fnl__cards--face { grid-template-columns: repeat(5, 1fr); gap: .35rem; }
  .fnl__card--face svg { width: 26px; height: 36px; }
  .fnl__card--face  { padding: .55rem .3rem .45rem; font-size: .68rem; }
  .fnl__recs        { grid-template-columns: 1fr; }
  .fnl__skins       { gap: .6rem; }
  .fnl__skin-dot    { width: 36px; height: 36px; }
}
