:root {
  --ink: #171820;
  --muted: #686872;
  --accent: #c9543f;
  --accent-dark: #a93d2b;
  --accent-soft: #fff0ec;
  --green: #188464;
  --line: #eae7e5;
}

* { box-sizing: border-box; }
.hidden { display: none !important; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: linear-gradient(180deg, #fffbfa 0, #fff 62%);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; }

.page { min-height: 100vh; padding: 16px 16px 45px; }
.hero { width: min(100%, 540px); margin: 0 auto; text-align: center; }

.preheadline {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  margin: 0 auto 19px;
  color: #817975;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.preheadline::before,
.preheadline::after {
  content: "";
  width: 24px;
  height: 1px;
  background: #ddaa9e;
}

h1 {
  max-width: 530px;
  margin: 0 auto;
  font-size: clamp(27px, 6.5vw, 36px);
  line-height: 1.17;
  letter-spacing: -.045em;
  font-weight: 800;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 mark {
  position: relative;
  display: inline-block;
  padding: 0 7px 3px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  box-shadow: inset 0 -1px 0 rgb(201 84 63 / 18%);
  white-space: nowrap;
}

.headline-underline {
  background: linear-gradient(transparent 76%, #f4c5b9 0);
}

h1 .method {
  display: block;
  margin-top: 9px;
  color: #706662;
  font-size: .66em;
  font-weight: 600;
  letter-spacing: -.025em;
}

h1 .method b { color: var(--accent); font-weight: 800; }

.subheadline {
  max-width: 500px;
  margin: 14px auto 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: balance;
}

.subheadline strong {
  color: var(--ink);
  font-weight: 700;
}

.subheadline span {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: #e3a596;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.hero-photo {
  position: relative;
  margin: 0 0 17px;
  padding-bottom: 37px;
}

.hero-photo > img {
  display: block;
  width: 100%;
  border-radius: 17px;
  box-shadow: 0 15px 38px rgb(64 40 30 / 13%);
}

.hero-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(37 26 22 / 10%);
}

.hero-photo figcaption img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; }
.hero-photo figcaption p { display: flex; flex: 1; flex-direction: column; margin: 0; line-height: 1.15; }
.hero-photo figcaption p span { color: #8b8380; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.hero-photo figcaption strong { margin: 2px 0; font-size: 14px; }
.hero-photo figcaption small { color: var(--muted); font-size: 9px; }
.hero-photo figcaption b { display: grid; width: 22px; height: 22px; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 11px; }

.bulletpoints { display: grid; gap: 9px; text-align: left; }
.bulletpoints p { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 12px; line-height: 1.4; }
.bulletpoints p > span:first-child { display: grid; flex: 0 0 19px; width: 19px; height: 19px; margin-top: 1px; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 10px; font-weight: 800; }
.bulletpoints strong { font-weight: 700; }
.bullet-copy { display: flex; flex-direction: column; gap: 2px; }
.bullet-copy small { color: var(--muted); font-size: 11px; }

.scarcity {
  margin: 14px 0 12px;
  padding: 10px 12px;
  color: #765044;
  border: 1px solid #f1d2c8;
  border-radius: 10px;
  background: #fff5f2;
  font-size: 11px;
  font-weight: 500;
}

.scarcity i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px rgb(201 84 63 / 10%); }
.scarcity strong { color: #008456; }
.scarcity > b:last-child { color: var(--accent-dark); }
.scarcity-count {
  display: inline-block;
  margin: 0 1px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.scarcity-count.changing { animation: count-change .38s ease; }

@keyframes count-change {
  0% { opacity: 1; transform: scale(1); }
  45% { opacity: 0; transform: translateY(-4px) scale(.8); }
  55% { opacity: 0; transform: translateY(4px) scale(.8); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.start-button {
  display: flex;
  width: 100%;
  min-height: 59px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 18px;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #20906d, #12684f);
  box-shadow: 0 12px 25px rgb(24 132 100 / 25%);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform .16s ease, box-shadow .16s ease;
}

.start-button:hover { transform: translateY(-2px); box-shadow: 0 15px 29px rgb(24 132 100 / 31%); }
.start-button:focus-visible { outline: 4px solid rgb(24 132 100 / 20%); outline-offset: 3px; }

.safe { margin: 10px 0 0; color: #8a8582; font-size: 10px; }
.safe span { color: var(--green); margin-right: 4px; font-weight: 800; }

/* Segunda tela: pergunta do quiz */
.quiz-screen { width: min(100%, 540px); margin: 0 auto; padding-top: 2px; }

.quiz-header {
  position: relative;
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
}

.quiz-brand {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 30px;
  letter-spacing: -.04em;
}

.quiz-brand span { font-style: italic; }

.back-button {
  position: absolute;
  left: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #766c68;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
}

.step-count { position: absolute; right: 0; color: #918783; font-size: 10px; font-weight: 700; }

.progress { height: 9px; overflow: hidden; border-radius: 99px; background: #eee9e6; box-shadow: inset 0 1px 2px rgb(44 30 25 / 7%); }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #20906d, #35ab84); }

.question-copy { margin: 28px 0 24px; text-align: center; }
.question-kicker { margin: 0 0 8px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.question-copy h2 { margin: 0; font-size: clamp(25px, 6vw, 31px); line-height: 1.2; letter-spacing: -.035em; }
.question-copy h2 em { color: var(--accent); font-style: normal; }
.question-copy > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.question-copy > p:last-child span { color: var(--accent); }

.options { display: grid; gap: 11px; }
.option {
  display: grid;
  width: 100%;
  min-height: 62px;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  text-align: left;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgb(57 39 32 / 4%);
  cursor: pointer;
  transition: border-color .16s, background .16s, transform .16s, box-shadow .16s;
}

.option > span { font-size: 25px; line-height: 1; }
.option b { font-size: 14px; line-height: 1.35; font-weight: 600; }
.option b small { color: var(--muted); font-size: .9em; font-weight: 500; }
.option:hover { transform: translateY(-1px); border-color: #d9b2a7; box-shadow: 0 7px 18px rgb(57 39 32 / 7%); }
.option.selected { border-color: var(--accent); background: #fff5f2; box-shadow: 0 0 0 3px rgb(201 84 63 / 10%); }
.option:focus-visible, .back-button:focus-visible { outline: 3px solid rgb(32 144 109 / 20%); outline-offset: 2px; }

.answer-hint { margin: 17px 0 0; color: #9a918d; text-align: center; font-size: 10px; }

.final-question-copy { margin-bottom: 22px; }
.final-question-copy h2 > span { font-size: .75em; }
.final-question-intro { display: grid; gap: 5px; margin-top: 15px; }
.final-question-intro p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.final-question-intro p:last-child { color: var(--ink); font-weight: 700; }

/* Mantém as subheadlines centralizadas e com linhas visualmente equilibradas. */
.question-copy > p:last-child,
.analysis-copy > p:last-child,
.method-heading > p:last-child,
.final-question-intro p,
.answer-hint {
  max-width: 38ch;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  text-wrap: balance;
}

.multi-options { gap: 9px; }
.multi-option { grid-template-columns: 28px 1fr; min-height: 57px; }
.multi-option > .checkbox {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #cfd9df;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  transition: border-color .16s, background .16s;
}
.multi-option.selected > .checkbox { color: #fff; border-color: var(--green); background: var(--green); }
.multi-option.selected > .checkbox::after { content: "✓"; font-weight: 800; }
.multi-option.selected { border-color: #80b9a8; background: #f3fbf8; box-shadow: 0 0 0 3px rgb(24 132 100 / 8%); }
.final-continue { width: 100%; margin-top: 20px; }

/* Tela de análise */
.analysis-screen { width: min(100%, 540px); margin: 0 auto; padding-top: 4px; text-align: center; }
.analysis-brand { margin: 4px 0 18px; color: var(--accent); font-family: Georgia, serif; font-size: 32px; letter-spacing: -.04em; text-align: center; }
.analysis-brand span { font-style: italic; }
.analysis-progress { height: 17px; overflow: hidden; border-radius: 99px; background: #e9eeef; box-shadow: inset 0 1px 3px rgb(38 49 52 / 8%); }
.analysis-progress > span { display: flex; width: 0; min-width: 0; height: 100%; align-items: center; justify-content: flex-end; padding-right: 7px; border-radius: inherit; background: linear-gradient(90deg, #20906d, #19b887); transition: width .25s ease; }
.analysis-progress b { color: #fff; font-size: 9px; line-height: 1; }
.analysis-copy { margin: 25px 0 20px; }
.analysis-copy h2 { margin: 0; font-size: clamp(22px, 5.5vw, 28px); letter-spacing: -.035em; }
.analysis-copy > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.loading-dots::after { content: "..."; display: inline-block; width: 20px; text-align: left; animation: loading-dots 1.2s steps(4, end) infinite; overflow: hidden; vertical-align: bottom; }
@keyframes loading-dots { 0% { width: 0; } 100% { width: 20px; } }

.testimonial {
  position: relative;
  margin: 0;
  padding: 27px 25px 20px;
  text-align: left;
  overflow: hidden;
  border: 1px solid #eee3dc;
  border-radius: 19px;
  background: linear-gradient(145deg, #fffaf5, #fff);
  box-shadow: 0 14px 35px rgb(65 42 31 / 10%);
}
.testimonial::before { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -90px; background: radial-gradient(circle, #f6dacf, transparent 68%); }
.quote-mark { position: absolute; top: 5px; left: 18px; color: #efc3b7; font-family: Georgia, serif; font-size: 50px; line-height: 1; }
.testimonial blockquote { position: relative; margin: 0; color: #393332; font-size: 16px; line-height: 1.55; }
.testimonial footer { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.mother-avatar { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; background: linear-gradient(135deg, #d98772, #a94532); border-radius: 50%; font-weight: 800; }
.testimonial footer p { display: flex; flex-direction: column; margin: 0; }
.testimonial footer strong { font-size: 11px; }
.testimonial footer small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.analysis-dots { display: flex; justify-content: center; gap: 7px; margin: 17px 0 0; }
.analysis-dots i { width: 7px; height: 7px; background: #d4dcdf; border-radius: 50%; }
.analysis-dots i.active { width: 18px; background: var(--green); border-radius: 99px; }
.analysis-status { margin: 14px 0 0; color: #958a85; font-size: 10px; }

.response-scan { overflow: hidden; text-align: left; border: 1px solid #dce8e4; border-radius: 19px; background: #fff; box-shadow: 0 14px 34px rgb(36 83 69 / 9%); }
.response-scan > header { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid #e6efec; background: linear-gradient(135deg, #f1faf7, #fbfdfc); }
.response-scan > header div { display: flex; align-items: center; gap: 8px; }
.response-scan > header small { color: #507b6d; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.response-scan > header b { padding: 5px 9px; color: var(--green); border-radius: 99px; background: #e2f3ed; font-size: 9px; }
.scan-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #20a77e; box-shadow: 0 0 0 4px rgb(32 167 126 / 12%); animation: scan-blink 1.2s ease-in-out infinite; }
@keyframes scan-blink { 50% { opacity: .35; } }

.scan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 14px; }
.scan-item { display: grid; grid-template-columns: 25px 1fr 17px; gap: 8px; align-items: center; min-height: 65px; padding: 10px; color: #999e9c; border: 1px solid #edf0ef; border-radius: 12px; background: #fbfcfc; transition: color .2s, border-color .2s, background .2s; }
.scan-item > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; background: #ecefed; font-size: 8px; font-weight: 800; }
.scan-item > div { display: flex; min-width: 0; flex-direction: column; }
.scan-item strong { font-size: 10px; line-height: 1.2; }
.scan-item small { margin-top: 3px; font-size: 8px; line-height: 1.25; }
.scan-item > i { display: grid; width: 16px; height: 16px; place-items: center; border: 2px solid #e0e6e4; border-radius: 50%; }
.scan-item.is-scanning { color: #314b43; border-color: #acd6c9; background: #f3faf8; box-shadow: 0 0 0 3px rgb(24 132 100 / 6%); }
.scan-item.is-scanning > span { color: #fff; background: #69aa96; }
.scan-item.is-scanning > i { border-color: #2d9b79; border-top-color: transparent; animation: analysis-spin .8s linear infinite; }
.scan-item.is-read { color: #3f514b; border-color: #d4e9e2; background: #f8fcfa; }
.scan-item.is-read > span { color: var(--green); background: #e1f2ec; }
.scan-item.is-read > i { color: #fff; border-color: var(--green); background: var(--green); }
.scan-item.is-read > i::after { content: "✓"; font-size: 9px; font-style: normal; font-weight: 900; }

.scan-summary { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: center; min-height: 54px; padding: 10px 15px; border-top: 1px solid #e9efed; background: #fafcfb; }
.scan-summary > span { display: grid; width: 25px; height: 25px; place-items: center; color: var(--green); border-radius: 50%; background: #e4f4ef; font-size: 14px; }
.scan-summary p { display: flex; flex-direction: column; margin: 0; }
.scan-summary small { color: #929b98; font-size: 8px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.scan-summary strong { margin-top: 2px; color: #53635e; font-size: 9px; font-weight: 600; }
.analysis-security { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 13px 0 0; color: #8b928f; font-size: 8px; }
.analysis-security span { color: var(--green); font-weight: 900; }

@media (max-width: 430px) {
  .scan-grid { grid-template-columns: 1fr; }
  .scan-item { min-height: 57px; }
}

/* Explicação da janela de sono */
.explanation-screen { width: min(100%, 540px); margin: 0 auto; padding-top: 4px; }
.explanation-progress { height: 9px; }
.explanation-copy { margin: 24px 0 20px; text-align: center; }
.explanation-copy h2 { margin: 0; font-size: clamp(23px, 5.5vw, 29px); letter-spacing: -.035em; }
.explanation-copy h2 em { color: var(--accent); font-style: normal; }

.sleep-window-diagram { margin: 0; overflow: hidden; border: 1px solid #d7dfd1; border-radius: 18px; background: #fbfbef; box-shadow: 0 14px 35px rgb(56 70 48 / 12%); }
.sleep-window-diagram img { display: block; width: 100%; height: auto; }

.sleep-window-card { overflow: hidden; padding: 10px; border: 1px solid #d7dfd1; border-radius: 18px; background: #fbfbef; box-shadow: 0 14px 35px rgb(56 70 48 / 12%); }
.sleep-window-card > header { padding: 9px 12px; color: #fff; border-radius: 10px; background: #527956; text-align: center; font-size: 14px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.window-intro { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 15px 10px 12px; text-align: center; }
.window-intro p { display: flex; flex-direction: column; margin: 0; font-weight: 700; }
.window-intro strong { color: #3e7049; font-size: 25px; line-height: 1.05; text-transform: uppercase; }
.window-intro span { margin-top: 4px; color: #6a625b; font-size: 10px; font-weight: 500; }
.alarm { font-size: 55px; filter: drop-shadow(0 6px 7px rgb(72 60 43 / 13%)); }

.window-flow { display: flex; align-items: center; justify-content: center; gap: 5px; margin-bottom: 9px; }
.window-flow span { padding: 7px 9px; border: 1px solid #e1c9a8; border-radius: 9px; background: #fff5df; font-size: 10px; font-weight: 800; }
.window-flow span.right { color: #2f6f48; border-color: #a9c3a3; background: #eef6e8; }
.window-flow span.late { color: #a33c2a; border-color: #efaa96; background: #fff0e9; }
.window-flow b { color: #75685d; }

.window-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.window-compare section { padding: 0 9px 12px; text-align: center; border: 1px solid; border-radius: 12px; background: #fff; }
.window-compare h3 { width: fit-content; margin: -1px auto 5px; padding: 5px 12px; color: #fff; border-radius: 0 0 8px 8px; font-size: 11px; text-transform: uppercase; }
.window-compare section > div { margin: 3px 0; font-size: 45px; }
.window-compare strong { display: block; font-size: 12px; }
.window-compare p { margin: 3px 0 0; font-size: 9px; }
.right-time { color: #446648; border-color: #94b28f !important; }.right-time h3 { background: #608662; }
.wrong-time { color: #9a493a; border-color: #e8a18f !important; }.wrong-time h3 { background: #dc6d55; }
.sleep-window-card > footer { margin-top: 9px; padding: 8px 10px; color: #fff; border-radius: 9px; background: #527956; text-align: center; font-size: 10px; font-weight: 800; text-transform: uppercase; }

.good-news { display: grid; grid-template-columns: 25px 1fr; gap: 9px; margin-top: 17px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.good-news > span { display: grid; width: 22px; height: 22px; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 11px; font-weight: 800; }
.good-news p { margin: 0; font-size: 12px; line-height: 1.45; }
.good-news small { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.explanation-button { width: 100%; margin-top: 18px; }

/* Tentativas anteriores */
.attempts-screen { width: min(100%, 540px); margin: 0 auto; padding-top: 4px; }
.attempts-progress { height: 9px; }
.attempts-copy { margin: 25px 0 22px; }
.attempts-options { gap: 9px; }
.attempt-option { grid-template-columns: 28px 1fr; min-height: 57px; }
.attempt-option > .checkbox { display: grid; width: 22px; height: 22px; place-items: center; border: 2px solid #cfd9df; border-radius: 50%; background: #fff; font-size: 12px; transition: border-color .16s, background .16s; }
.attempt-option.selected > .checkbox { color: #fff; border-color: var(--green); background: var(--green); }
.attempt-option.selected > .checkbox::after { content: "✓"; font-weight: 800; }
.attempt-option.selected { border-color: #80b9a8; background: #f3fbf8; box-shadow: 0 0 0 3px rgb(24 132 100 / 8%); }
.attempts-continue { width: 100%; margin-top: 20px; }

/* Transição para o método */
.method-screen { width: min(100%, 540px); margin: 0 auto; padding-top: 4px; }
.method-progress { height: 9px; }
.method-heading { margin: 24px 0 20px; text-align: center; }
.method-heading h2 { margin: 0; font-size: clamp(24px, 6vw, 30px); letter-spacing: -.035em; }
.method-heading h2 em { color: var(--accent); font-style: normal; }
.method-heading h2 span { color: var(--accent); font-size: .72em; }
.method-heading > p:last-child { width: 100%; max-width: 320px; margin: 9px auto 0; color: var(--muted); font-size: 13px; line-height: 1.4; text-align: center; }

.problem-list { display: grid; gap: 10px; }
.problem-list article { padding: 13px 15px; border: 1px solid #f3c5c8; border-radius: 14px; background: #fff4f4; }
.problem-list article > span { display: inline-block; padding: 4px 8px; color: #c43e54; border-radius: 99px; background: #ffe5e8; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.problem-list h3 { margin: 8px 0 4px; color: #9d2338; font-size: 14px; text-transform: uppercase; }
.problem-list p { margin: 0; color: #746268; font-size: 11px; line-height: 1.45; }

.different-method { margin-top: 14px; padding: 16px; border: 1.5px solid #39aa7e; border-radius: 15px; background: #eefaf5; box-shadow: 0 8px 24px rgb(24 132 100 / 8%); }
.different-method h3 { margin: 0 0 12px; color: #11694f; font-size: 14px; text-transform: uppercase; }
.different-method h3 span { color: #e2a43f; }
.different-method ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.different-method li { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 8px; color: #264c40; font-size: 11px; line-height: 1.4; }
.different-method li > span:first-child { display: grid; width: 18px; height: 18px; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 10px; font-weight: 800; }
.method-benefit { min-width: 0; }
.different-method b { color: #075941; }
.method-button { width: 100%; margin-top: 20px; font-size: 14px; }

/* Compromisso de tempo */
.commitment-screen { width: min(100%, 540px); margin: 0 auto; padding-top: 4px; }
.commitment-progress { height: 9px; }
.commitment-copy { margin: 25px 0 23px; }
.commitment-copy h2 { max-width: 510px; margin-inline: auto; text-wrap: balance; }
.commitment-options .option { min-height: 62px; }
.commitment-options .option > span { font-size: 27px; }

/* Apresentação da especialista */
.profile-analysis-screen { width: min(100%, 540px); margin: 0 auto; padding-top: 4px; }
.profile-progress { height: 17px; }
.profile-analysis-heading { margin: 24px 0 20px; text-align: center; }
.profile-analysis-heading h2 { margin: 0; font-size: clamp(22px, 5.5vw, 28px); line-height: 1.25; letter-spacing: -.035em; text-wrap: balance; }
.profile-analysis-heading h2 > span { color: var(--accent); }

.expert-profile-card { display: grid; grid-template-columns: 155px 1fr; gap: 18px; align-items: center; padding: 20px; overflow: hidden; border: 1px solid #eadfd7; border-radius: 18px; background: linear-gradient(135deg, #fff8f2, #f4f7f8); box-shadow: 0 14px 34px rgb(53 38 31 / 10%); }
.expert-portrait { overflow: hidden; aspect-ratio: 1; border: 5px solid #fff; border-radius: 50%; box-shadow: 0 8px 21px rgb(72 43 31 / 15%); }
.expert-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.expert-details small { display: inline-block; color: #6090a1; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.expert-details h3 { margin: 4px 0 10px; color: #334f61; font-size: 25px; letter-spacing: -.035em; }
.expert-details ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.expert-details li { display: grid; grid-template-columns: 16px 1fr; gap: 6px; color: #5e6f78; font-size: 9px; line-height: 1.3; }
.expert-details li span { display: grid; width: 14px; height: 14px; place-items: center; color: #fff; background: #6ba6ba; border-radius: 50%; font-size: 8px; font-weight: 800; }

.expert-letter { padding: 20px 4px 0; }
.expert-letter h3 { margin: 0 0 13px; font-size: 15px; line-height: 1.4; }
.expert-letter p { margin: 0 0 11px; color: #4f5562; font-size: 13px; line-height: 1.55; }
.expert-letter strong { color: var(--ink); }
.expert-letter p:last-child span { color: #4b8dcc; }

.analysis-processing { margin-top: 18px; overflow: hidden; border: 1px solid #dce8e4; border-radius: 18px; background: #fff; box-shadow: 0 13px 32px rgb(36 83 69 / 8%); }
.analysis-processing > header { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 15px 17px; border-bottom: 1px solid #e7efec; background: linear-gradient(135deg, #f2faf7, #fbfdfc); }
.analysis-processing header div { display: flex; flex-direction: column; }
.analysis-processing header small { color: #568576; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.analysis-processing header h3 { margin: 2px 0 0; font-size: 14px; }
.analysis-processing header b { padding: 5px 9px; color: var(--green); border-radius: 99px; background: #e5f5ef; font-size: 9px; }
.analysis-pulse { position: relative; width: 29px; height: 29px; border: 2px solid #92c7b6; border-radius: 50%; }
.analysis-pulse::before,.analysis-pulse::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--green); }
.analysis-pulse::after { inset: -2px; background: transparent; border: 2px solid rgb(24 132 100 / 28%); animation: analysis-pulse 1.5s ease-out infinite; }
@keyframes analysis-pulse { 0% { opacity: .8; transform: scale(.65); } 100% { opacity: 0; transform: scale(1.55); } }

.analysis-steps { display: grid; gap: 0; padding: 8px 16px; }
.analysis-step { position: relative; display: grid; grid-template-columns: 27px 1fr; gap: 10px; align-items: center; min-height: 58px; color: #9a9d9c; }
.analysis-step:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 41px; bottom: -10px; width: 2px; background: #e4ebe9; }
.analysis-step > div { display: flex; flex-direction: column; }
.analysis-step strong { font-size: 12px; }
.analysis-step small { margin-top: 3px; font-size: 9px; }
.step-state { position: relative; z-index: 1; display: grid; width: 24px; height: 24px; place-items: center; border: 2px solid #dfe6e4; border-radius: 50%; background: #fff; }
.analysis-step.is-active { color: #263d36; }
.analysis-step.is-active .step-state { border-color: #36a381; border-top-color: transparent; animation: analysis-spin .85s linear infinite; }
.analysis-step.is-done { color: #374b45; }
.analysis-step.is-done .step-state { color: #fff; border-color: var(--green); background: var(--green); }
.analysis-step.is-done .step-state::after { content: "✓"; font-size: 12px; font-weight: 800; }
.analysis-step.is-done:not(:last-child)::after { background: #77bca7; }
@keyframes analysis-spin { to { transform: rotate(360deg); } }

.analysis-processing .analysis-status { min-height: 37px; margin: 0; padding: 10px 16px; color: #60716c; border-top: 1px solid #edf1ef; background: #fafcfb; font-size: 9px; text-align: center; }
.analysis-trust { max-width: 450px; margin: 14px auto 0; color: #8a8989; font-size: 9px; line-height: 1.45; text-align: center; }
.analysis-trust strong { color: #5a625f; }

/* Resultado personalizado */
.result-screen { width: min(100%, 540px); margin: 0 auto; padding-top: 4px; }
.result-heading { margin: 8px 0 20px; text-align: center; }
.result-heading h2 { margin: 0; font-size: clamp(21px, 5vw, 27px); line-height: 1.3; letter-spacing: -.035em; text-wrap: balance; }
.result-heading h2 span { color: var(--accent); }
.exhaustion-card { display: flex; flex-direction: column; gap: 5px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.exhaustion-card small { color: var(--muted); font-size: 9px; }.exhaustion-card strong { font-size: 12px; }.exhaustion-card strong span { color: #e3475d; }
.sleep-score { margin-top: 12px; padding: 13px 15px 11px; color: #fff; border-radius: 14px; background: linear-gradient(90deg,#ec3156 0%,#f08523 48%,#75cf24 100%); box-shadow: 0 8px 22px rgb(77 56 39 / 13%); }
.sleep-score header,.sleep-score footer { display: flex; align-items: center; justify-content: space-between; }.sleep-score header span { font-size: 9px; font-weight: 800; text-transform: uppercase; }.sleep-score header b { font-size: 9px; }
.score-track { position: relative; height: 5px; margin: 23px 0 11px; border-radius: 99px; background: #fff; }.score-track i { position: absolute; top: 50%; left: 30%; width: 15px; height: 15px; background: #fff; border: 4px solid #e94f45; border-radius: 50%; transform: translate(-50%,-50%); transition: left .5s ease; }.score-track i span { position: absolute; left: 50%; bottom: 15px; width: max-content; padding: 4px 7px; color: #5c4a43; border-radius: 5px; background: #fff; font: normal 8px "DM Sans",sans-serif; transform: translateX(-50%); }
.sleep-score footer span { font-size: 9px; font-weight: 700; }
.result-section { margin-top: 19px; text-align: center; }.result-section h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; }.result-section p { margin: 0; color: #4f5562; font-size: 11px; line-height: 1.5; }
.meaning ul { display: grid; gap: 9px; margin: 0; padding: 0; text-align: left; list-style: none; }.meaning li { display: grid; grid-template-columns: 18px 1fr; gap: 7px; color: #424653; font-size: 10px; line-height: 1.45; }.meaning li span { color: #e3485c; font-weight: 900; }
.result-good-news { display: grid; grid-template-columns: 22px 1fr; gap: 9px; margin-top: 19px; padding: 14px 15px; border: 1px solid #cae1d9; border-radius: 13px; background: #f6fcfa; }.result-good-news > span { display: grid; width: 19px; height: 19px; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 10px; }.result-good-news h3 { margin: 0 0 5px; font-size: 12px; text-transform: uppercase; }.result-good-news p { margin: 0; color: #4f5c58; font-size: 10px; line-height: 1.45; }
.method-can { margin-top: 18px; text-align: center; }.method-can > p { margin: 0 0 8px; color: var(--muted); font-size: 10px; text-transform: uppercase; }.method-can ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }.method-can li { font-size: 10px; }.method-can li::before { content: "→ "; font-weight: 800; }
.result-warning { display: flex; flex-direction: column; gap: 3px; margin-top: 16px; padding: 11px 13px; color: #77562c; border-radius: 10px; background: #fff8e7; font-size: 10px; }.result-quote { margin: 14px 0; text-align: center; font-size: 10px; font-style: italic; font-weight: 700; }.result-button { width: 100%; }.result-button > span { margin-right: 8px; font-size: 18px; }.result-disclaimer { margin: 9px 0 0; color: #99908b; text-align: center; font-size: 8px; }

@media (max-width: 480px) {
  .expert-profile-card { grid-template-columns: 105px 1fr; gap: 12px; padding: 15px; }
  .expert-details h3 { font-size: 21px; }
  .expert-details li { font-size: 8px; }
}

@media (max-width: 390px) {
  .window-intro { gap: 8px; }
  .window-intro strong { font-size: 20px; }
  .alarm { font-size: 45px; }
  .window-flow span { padding-inline: 6px; font-size: 9px; }
}

.name-question { margin-bottom: 27px; }
.name-form { display: grid; gap: 26px; }
.name-field {
  display: grid;
  min-height: 62px;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1.5px solid #cfc9c6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgb(57 39 32 / 5%);
  transition: border-color .16s, box-shadow .16s;
}

.name-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgb(24 132 100 / 12%); }
.name-field > span { display: grid; place-items: center; color: #677181; }
.name-field svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.name-field input { width: 100%; padding: 17px 0; color: var(--ink); border: 0; outline: 0; background: transparent; font: 500 16px/1.2 "DM Sans", sans-serif; }
.name-field input::placeholder { color: #a2a3af; }

.continue-button {
  min-height: 59px;
  color: #fff;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #20906d, #12684f);
  box-shadow: 0 11px 24px rgb(24 132 100 / 22%);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  transition: opacity .16s, transform .16s, box-shadow .16s;
}

.continue-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 27px rgb(24 132 100 / 29%); }
.continue-button:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.continue-button:focus-visible { outline: 3px solid rgb(24 132 100 / 20%); outline-offset: 3px; }

@media (max-width: 390px) {
  .page { padding-inline: 13px; }
  h1 { font-size: 26px; }
  .subheadline { font-size: 14px; }
  .start-button { font-size: 14px; }
  .quiz-brand { font-size: 27px; }
  .question-copy { margin-top: 23px; }
  .option { min-height: 59px; padding-inline: 13px; }
  .option b { font-size: 13px; }
}

/* Visual refinado da tela de resultado */
.result-screen { width: min(100%, 580px); padding: 4px 2px 18px; }
.result-screen .analysis-brand { margin-bottom: 22px; text-align: left; }
.result-heading { margin: 0 0 24px; }
.result-heading .question-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px; color: var(--accent); font-size: 10px; letter-spacing: .14em; }
.result-heading .question-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgb(201 84 63 / 10%); }
.result-heading h2 { max-width: 520px; margin: 0 auto; font-size: clamp(25px, 5.5vw, 33px); line-height: 1.17; letter-spacing: -.045em; }

.exhaustion-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 16px; padding: 17px 18px; border-color: #ebe4e0; border-radius: 16px; background: rgb(255 255 255 / 92%); box-shadow: 0 8px 24px rgb(63 43 34 / 6%); }
.exhaustion-card small { font-size: 10px; }
.exhaustion-card strong { grid-column: 2; grid-row: 1; padding: 6px 10px; border-radius: 99px; background: #fff0f2; font-size: 12px; }

.sleep-score { position: relative; margin-top: 14px; padding: 17px 18px 15px; overflow: hidden; border-radius: 18px; background: linear-gradient(105deg,#ed365a 0%,#f28a25 49%,#72cc28 100%); box-shadow: 0 14px 30px rgb(123 77 37 / 17%); }
.sleep-score::after { content: ""; position: absolute; right: -35px; top: -55px; width: 150px; height: 150px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 50%; }
.sleep-score header,.sleep-score footer { position: relative; z-index: 1; }
.sleep-score header span { font-size: 10px; letter-spacing: .03em; }
.sleep-score header b { padding: 5px 8px; border-radius: 99px; background: rgb(255 255 255 / 17%); font-size: 9px; }
.score-track { z-index: 1; height: 6px; margin: 28px 0 13px; background: rgb(255 255 255 / 90%); box-shadow: 0 1px 3px rgb(72 43 29 / 12%); }
.score-track i { width: 17px; height: 17px; box-shadow: 0 2px 7px rgb(74 38 26 / 25%); }
.score-track i span { bottom: 18px; padding: 5px 8px; border-radius: 6px; box-shadow: 0 3px 9px rgb(77 45 32 / 15%); font-size: 9px; font-weight: 600; }

.result-section { margin-top: 24px; }
.result-section h3 { margin-bottom: 10px; font-size: 14px; letter-spacing: -.01em; }
.result-section p { max-width: 520px; margin-inline: auto; font-size: 12px; line-height: 1.65; }
.diagnosis { padding: 4px 12px 0; }
.meaning { padding: 19px; border: 1px solid #eee8e5; border-radius: 17px; background: #fff; box-shadow: 0 9px 26px rgb(63 43 34 / 5%); }
.meaning ul { gap: 8px; }
.meaning li { grid-template-columns: 24px 1fr; gap: 9px; align-items: start; padding: 9px 10px; border-radius: 10px; background: #fff8f7; font-size: 11px; line-height: 1.5; }
.meaning li span { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: #ffe5e8; font-size: 12px; }

.result-good-news { grid-template-columns: 34px 1fr; gap: 12px; margin-top: 16px; padding: 18px 19px; border-color: #badbd0; border-radius: 17px; background: linear-gradient(135deg, #f2fbf8, #fbfffd); box-shadow: 0 9px 25px rgb(24 132 100 / 7%); }
.result-good-news > span { width: 30px; height: 30px; background: linear-gradient(135deg, #209a75, #147257); box-shadow: 0 4px 10px rgb(24 132 100 / 20%); font-size: 14px; }
.result-good-news h3 { margin: 1px 0 6px; font-size: 13px; }
.result-good-news p { font-size: 11px; line-height: 1.55; }

.method-can { margin-top: 16px; padding: 18px 19px; border-radius: 17px; background: #f7f4f2; text-align: left; }
.method-can > p { margin-bottom: 12px; color: #716965; font-weight: 800; letter-spacing: .05em; text-align: center; }
.method-can ul { grid-template-columns: 1fr 1fr; gap: 8px; }
.method-can li { position: relative; padding: 9px 9px 9px 28px; border-radius: 10px; background: #fff; font-size: 10px; line-height: 1.4; }
.method-can li::before { content: "✓"; position: absolute; top: 8px; left: 9px; color: var(--green); font-weight: 900; }

.result-warning { gap: 4px; margin-top: 16px; padding: 14px 16px; border: 1px solid #f4dfb5; border-radius: 13px; font-size: 11px; }
.result-quote { max-width: 470px; margin: 18px auto; color: #45403e; font-family: Georgia, serif; font-size: 13px; line-height: 1.45; }
.result-button { min-height: 62px; border-radius: 15px; box-shadow: 0 14px 28px rgb(24 132 100 / 24%); }
.result-button > span { margin-right: 9px; font-size: 19px; }
.result-disclaimer { margin-top: 11px; }

@media (max-width: 480px) {
  .result-screen .analysis-brand { font-size: 29px; }
  .method-can ul { grid-template-columns: 1fr; }
}

@keyframes primary-cta-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 14px 28px rgb(24 132 100 / 24%); }
  50% { transform: scale(1.025); box-shadow: 0 18px 36px rgb(24 132 100 / 38%); }
}
.start-button, .continue-button:not(:disabled) { animation: primary-cta-pulse 2.2s ease-in-out infinite; }
.start-button:hover, .continue-button:hover:not(:disabled) { animation: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .start-button, .continue-button:not(:disabled) { animation: none; } }
.result-button { display:flex;align-items:center;justify-content:center;text-decoration:none; }
