/* ============================================================
   Cronograma Capilar — Design System v2
   Mobile-first funnel · Sora display + Inter body
   ============================================================ */
:root {
  --font-display: 'Sora', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --bg: #FFFBF6;
  --bg-soft: #FAF0F4;
  --bg-deep: #F3DEE5;
  --card: #FFFFFF;
  --ink: #2B1A20;
  --ink-soft: #8A6A73;
  --ink-faint: #B5969E;
  --line: #F1DEE3;

  --brand: #7A2F52;
  --brand-deep: #54203A;
  --brand-soft: #F9EAF1;
  --gold: #D9A441;
  --gold-soft: #FBF3DF;
  --plum: #4A2545;
  --green: #3E7C4F;
  --green-soft: #EAF4EC;

  --radius: 20px;
  --radius-sm: 14px;
  --shadow-card: 0 10px 30px rgba(120, 72, 40, .08);
  --shadow-cta: 0 12px 28px rgba(198, 93, 59, .38);
  --funnel: 560px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: var(--font-display); line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
/* Acessibilidade: foco visível, sem zoom bloqueado, toque sem delay */
.btn:focus-visible, .opt:focus-visible, .q-input:focus-visible,
.faq summary:focus-visible, .back-link:focus-visible, a:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px;
}
.btn, .opt { touch-action: manipulation; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand-deep); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--funnel); margin: 0 auto; padding: 0 20px; }
.screen { display: none; padding: 26px 0 90px; animation: fadeUp .4s cubic-bezier(.2,.7,.3,1); }
.screen.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; border: none; cursor: pointer; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: #fff; padding: 18px 22px; border-radius: 16px;
  background: linear-gradient(135deg, #8E3A63 0%, var(--brand) 55%, var(--brand-deep) 100%);
  box-shadow: var(--shadow-cta);
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { filter: brightness(1.06); box-shadow: 0 16px 34px rgba(198,93,59,.45); }
.btn:active { transform: scale(.97); }
.btn .arrow { font-size: 20px; }
.btn.green {
  background: linear-gradient(135deg, #4E9A5F 0%, var(--green) 60%, #2F6239 100%);
  box-shadow: 0 12px 28px rgba(62,124,79,.35);
}
.btn.ghost {
  background: transparent; color: var(--ink-soft); box-shadow: none;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; padding: 14px;
}
.btn.ghost:hover { color: var(--brand-deep); box-shadow: none; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.micro { text-align: center; font-size: 13px; color: var(--ink-faint); margin-top: 12px; }
.micro strong { color: var(--ink-soft); }

/* ---------- HERO ---------- */
.hero { text-align: center; padding-top: 6px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600;
  color: var(--brand-deep); background: var(--brand-soft);
  border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hero h1 { font-size: clamp(28px, 7.5vw, 38px); font-weight: 800; margin-bottom: 16px; }
.hero .sub { color: var(--ink-soft); font-size: 16.5px; max-width: 44ch; margin: 0 auto 26px; }

/* Abstract hero art — layered gradient blobs + floating glass cards */
.hero-art { position: relative; height: 300px; margin: 0 -20px 28px; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob.b1 { width: 340px; height: 340px; left: -70px; top: -40px;
  background: radial-gradient(circle at 35% 35%, #F8D3DC 0%, #EFA9BC 45%, #C9718F 100%); }
.blob.b2 { width: 260px; height: 260px; right: -60px; top: 60px;
  background: radial-gradient(circle at 60% 40%, #F9EACB 0%, #F2D6A0 50%, #D9A441 100%); }
.blob.b3 { width: 180px; height: 180px; left: 38%; bottom: -50px;
  background: radial-gradient(circle at 50% 50%, #8E3A63 0%, #A04A6E 100%); opacity: .55; }
.glass-card {
  position: absolute; background: rgba(255,255,255,.82); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.9); border-radius: 16px;
  box-shadow: var(--shadow-card); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  animation: floaty 5s ease-in-out infinite;
}
.glass-card .ic {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 38px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.glass-card .ic svg { width: 22px; height: 22px; }
.lock-overlay .lock-ic svg { width: 28px; height: 28px; }
.seal svg { width: 30px; height: 30px; }
.result-head .confetti {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #B07E24); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.result-head .confetti svg { width: 30px; height: 30px; }
.glass-card small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11.5px; color: var(--ink-soft); }
.gc1 { left: 6%; top: 18%; } .gc1 .ic { background: linear-gradient(135deg, #6BA8DC, #3E7CB5); }
.gc2 { right: 5%; top: 44%; animation-delay: 1.4s; } .gc2 .ic { background: linear-gradient(135deg, #E5B95C, #C08A2D); }
.gc3 { left: 12%; bottom: 8%; animation-delay: 2.6s; } .gc3 .ic { background: linear-gradient(135deg, #8E3A63, #54203A); }

.trust-row { display: flex; justify-content: center; gap: 18px; margin: 22px 0 6px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.trust-item .tick {
  width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex: 0 0 22px;
}
.social-proof-strip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  background: var(--gold-soft); border: 1px solid #F0DDAE;
  padding: 10px 18px; border-radius: 999px; font-size: 13.5px; color: var(--ink-soft);
}
.social-proof-strip .stars { color: var(--gold); letter-spacing: 2px; }
.social-proof-strip strong { color: var(--ink); }
.preview-end {
  text-align: center; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  margin: 4px 0 14px;
}

/* Sticky CTA (landing) */
.sticky-cta {
  position: sticky; bottom: 0; z-index: 20; margin: 26px -20px -90px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255,251,246,.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
}
.sticky-cta .price-tag { flex: 0 0 auto; }
.sticky-cta .price-tag s { display: block; font-size: 12px; color: var(--ink-faint); }
.sticky-cta .price-tag strong { font-family: var(--font-display); font-size: 20px; color: var(--brand-deep); }
.sticky-cta .btn { padding: 15px 18px; font-size: 16px; }

/* ---------- Sections ---------- */
.section { margin: 44px 0; }
.section h2 { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.section .lede { text-align: center; color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; }
.step {
  display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin-bottom: 12px; box-shadow: var(--shadow-card);
  animation: popIn .5s cubic-bezier(.2,.7,.3,1) backwards;
}
.step:nth-child(2) { animation-delay: .08s; } .step:nth-child(3) { animation-delay: .16s; }
.step .n {
  flex: 0 0 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.step strong { font-family: var(--font-display); display: block; margin-bottom: 2px; font-size: 16px; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* Testimonials */
.testimonial {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 12px; box-shadow: var(--shadow-card);
}
.testimonial .stars { color: var(--gold); letter-spacing: 3px; font-size: 15px; margin-bottom: 8px; }
.testimonial p { font-size: 14.5px; color: var(--ink); font-style: italic; margin-bottom: 12px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 17px;
}
.testimonial .who strong { display: block; font-size: 14px; }
.testimonial .who small { color: var(--ink-faint); font-size: 12.5px; }

/* FAQ */
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; margin-bottom: 10px; transition: border-color .2s;
}
.faq details[open] { border-color: var(--brand); }
.faq summary { font-weight: 700; cursor: pointer; font-size: 15px; font-family: var(--font-display); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--brand); font-weight: 400; flex: 0 0 auto; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
.disclaimer { font-size: 12px; color: var(--ink-faint); text-align: center; margin-top: 36px; padding: 0 12px; line-height: 1.7; }

/* ---------- QUIZ ---------- */
.quiz-top { margin-bottom: 6px; }
.progress { height: 10px; background: var(--bg-deep); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--brand)); border-radius: 999px; transition: width .35s cubic-bezier(.2,.7,.3,1); }
.qmeta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.qcount { font-size: 13px; font-weight: 600; color: var(--ink-faint); }
.qpct { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--brand-deep); }
.q-title { font-size: clamp(22px, 6vw, 27px); font-weight: 800; margin-bottom: 8px; }
.q-sub { color: var(--ink-soft); margin-bottom: 22px; font-size: 15px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--card); border: 2px solid var(--line); border-radius: 16px;
  padding: 16px; margin-bottom: 12px; cursor: pointer; font-size: 16px; color: var(--ink);
  box-shadow: 0 2px 8px rgba(120,72,40,.04);
  transition: border-color .15s, transform .12s, box-shadow .2s, background .2s;
  animation: popIn .35s cubic-bezier(.2,.7,.3,1) backwards;
  font-family: var(--font-body);
}
#quiz-body .opt:nth-child(1) { animation-delay: .03s; }
#quiz-body .opt:nth-child(2) { animation-delay: .09s; }
#quiz-body .opt:nth-child(3) { animation-delay: .15s; }
#quiz-body .opt:nth-child(4) { animation-delay: .21s; }
.opt:hover { border-color: #D9A8BC; transform: translateY(-1px); box-shadow: var(--shadow-card); }
.opt:active { transform: scale(.98); }
.opt.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--shadow-card); }
.opt .oic {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-deep));
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-deep);
}
.opt .oic svg { width: 26px; height: 26px; }
.opt.selected .oic { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; }
.opt .otx strong { display: block; font-size: 16px; font-weight: 600; }
.opt .otx small { color: var(--ink-soft); font-size: 13px; }
.opt .check {
  margin-left: auto; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: transparent; font-size: 14px; font-weight: 800; transition: all .15s;
}
.opt.selected .check { background: var(--brand); border-color: var(--brand); color: #fff; }
.q-input {
  width: 100%; font-size: 18px; padding: 17px 18px; border-radius: 16px;
  border: 2px solid var(--line); margin-bottom: 18px; color: var(--ink); background: var(--card);
  font-family: var(--font-body); transition: border-color .2s, box-shadow .2s;
}
.q-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(198,93,59,.12); }
.scale-opt .scale-dot {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--brand-deep);
}
.opt.selected .scale-dot { background: var(--brand); color: #fff; }
.quiz-nav { display: flex; gap: 10px; margin-top: 6px; align-items: center; }
.quiz-nav .btn { margin: 0; }
.back-link { background: none; border: none; color: var(--ink-faint); font-size: 15px; font-weight: 600; cursor: pointer; padding: 14px 8px; font-family: var(--font-body); }
.back-link:hover { color: var(--ink-soft); }

/* Loading */
.loading-box { text-align: center; padding: 70px 0; }
.spinner {
  width: 60px; height: 60px; margin: 0 auto 26px; border-radius: 50%;
  border: 5px solid var(--bg-deep); border-top-color: var(--brand);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg { font-size: 16px; color: var(--ink-soft); min-height: 56px; font-weight: 500; }

/* ---------- RESULT ---------- */
.result-head { text-align: center; margin-bottom: 26px; }
.result-head .confetti { font-size: 44px; margin-bottom: 10px; display: block; }
.result-head h2 { font-size: clamp(24px, 6.4vw, 30px); font-weight: 800; margin-bottom: 8px; }
.result-head p { color: var(--ink-soft); font-size: 15px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow-card);
}
.card h3 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.profile-tag {
  display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 15px;
  color: #fff; padding: 9px 18px; border-radius: 999px; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--brand), var(--plum));
  box-shadow: 0 6px 16px rgba(198,93,59,.3);
}
.ratio-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.ratio-row .lbl { flex: 0 0 104px; font-weight: 600; }
.ratio-track { flex: 1; height: 12px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.ratio-fill { height: 100%; border-radius: 999px; transition: width 1s cubic-bezier(.2,.7,.3,1); }
.ratio-pct { flex: 0 0 46px; text-align: right; font-family: var(--font-display); font-weight: 800; color: var(--brand-deep); }
.week-list { list-style: none; }
.week-list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15px; align-items: center; }
.week-list li:last-child { border-bottom: none; }
.week-list .d { flex: 0 0 78px; font-weight: 700; font-size: 13px; color: var(--ink-soft); }
.pill { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; color: #fff; font-family: var(--font-display); }
.pill.H { background: linear-gradient(135deg, #6BA8DC, #3E7CB5); }
.pill.N { background: linear-gradient(135deg, #E5B95C, #C08A2D); }
.pill.R { background: linear-gradient(135deg, #8E3A63, #54203A); }
.pill.off { background: #E4D9CC; color: var(--ink-soft); }
.locked { position: relative; overflow: hidden; }
.blur { filter: blur(8px); user-select: none; pointer-events: none; }
.lock-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(transparent 15%, rgba(255,251,246,.94) 55%); text-align: center; padding: 20px;
}
.lock-overlay .lock-ic {
  width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #B07E24);
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff;
  box-shadow: 0 10px 24px rgba(217,164,65,.4); margin-bottom: 10px;
}

/* ---------- PAYWALL ---------- */
.paywall {
  border: 2px solid var(--gold); border-radius: 24px;
  background: linear-gradient(180deg, #FFFDF8 0%, #FFF8EE 100%);
  box-shadow: 0 18px 44px rgba(217,164,65,.16);
  position: relative; overflow: hidden;
}
.paywall::before {
  content: 'Oferta por tempo limitado'; position: absolute; top: 16px; right: -38px;
  transform: rotate(38deg); background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 6px 44px;
  font-family: var(--font-display);
}
.paywall h3 { text-align: center; font-size: 21px; }
.price-row { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 14px 0 4px; }
.price-old { text-decoration: line-through; color: var(--ink-faint); font-size: 17px; }
.price { font-family: var(--font-display); font-size: 48px; font-weight: 800; color: var(--brand-deep); letter-spacing: -.02em; }
.price-note { text-align: center; font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.price-note strong { color: var(--green); }
.benefits { list-style: none; margin-bottom: 20px; }
.benefits li { display: flex; gap: 12px; padding: 9px 0; font-size: 15px; align-items: flex-start; }
.benefits .tick {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.pay-btns { display: grid; gap: 10px; }
.pix-box { background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 16px; text-align: center; font-size: 14px; }
.pix-key { font-weight: 700; background: var(--bg-soft); padding: 9px 14px; border-radius: 10px; display: inline-block; margin: 8px 0; word-break: break-all; font-size: 15px; }
.guarantee {
  display: flex; gap: 14px; align-items: center;
  background: var(--green-soft); border: 1px solid #CFE6D3;
  border-radius: var(--radius-sm); padding: 16px; margin: 18px 0 4px;
}
.seal {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%;
  background: conic-gradient(from 20deg, var(--gold), #F4D47C, var(--gold));
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  box-shadow: 0 8px 20px rgba(217,164,65,.4), inset 0 0 0 3px rgba(255,255,255,.5);
}
.guarantee strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.guarantee p { font-size: 13px; color: var(--ink-soft); }
.hidden { display: none !important; }

/* Success */
.success-box { text-align: center; }
.success-box .ok-ring {
  width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(135deg, #4E9A5F, #2F6239);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: #fff; box-shadow: 0 14px 32px rgba(62,124,79,.35);
  animation: popIn .5s cubic-bezier(.2,.7,.3,1);
}

@media (min-width: 640px) {
  .hero-art { height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
