/* Página "Começar" do teste grátis dos pais (/comecar).
   Tela presa (não rola a página), uma etapa por vez, elementos grandes.
   Tokens vêm do landing.css (--l-*). Fraunces só no wordmark. */

/* fundo: mesma aura da landing, com o verde de baixo bem mais discreto (no celular ainda mais) */
.pc-body {
  background:
    radial-gradient(900px 640px at 94% -6%,  rgba(214,160,98,0.50),  rgba(214,160,98,0) 68%),
    radial-gradient(780px 580px at 4% 106%,  rgba(124,168,104,0.16), rgba(124,168,104,0) 70%),
    radial-gradient(680px 500px at 58% 50%,  rgba(250,243,224,0.90), rgba(250,243,224,0) 70%),
    radial-gradient(560px 460px at 0% 14%,   rgba(232,198,152,0.40), rgba(232,198,152,0) 70%),
    radial-gradient(620px 480px at 100% 92%, rgba(168,117,28,0.12),  rgba(168,117,28,0) 70%),
    var(--l-bg);
}
@media (max-width: 640px) {
  .pc-body {
    background:
      radial-gradient(620px 440px at 94% -4%,  rgba(214,160,98,0.46),  rgba(214,160,98,0) 70%),
      radial-gradient(520px 360px at 4% 104%,  rgba(124,168,104,0.08), rgba(124,168,104,0) 70%),
      radial-gradient(520px 420px at 58% 50%,  rgba(250,243,224,0.85), rgba(250,243,224,0) 70%),
      radial-gradient(420px 360px at 0% 14%,   rgba(232,198,152,0.36), rgba(232,198,152,0) 70%),
      var(--l-bg);
  }
}
.pc-body { margin: 0; height: 100vh; height: 100dvh; overflow: hidden; }

.pc-shell {
  height: 100%; display: flex; flex-direction: column;
  max-width: 560px; margin: 0 auto; padding: 0 20px;
  padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
}

/* topo: voltar (esquerda) · wordmark · espaçador */
.pc-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 0 10px; }
.pc-back {
  justify-self: start; display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 600;
  color: var(--l-ink-3); padding: 10px 12px 10px 6px; margin-left: -6px; border-radius: 12px;
  transition: color 0.15s var(--l-ease), background 0.15s var(--l-ease);
}
.pc-back:hover { color: var(--l-ink); background: var(--l-surface-2); }
.pc-back svg { width: 20px; height: 20px; }
.pc-wm { font-size: 28px; color: var(--l-logo); line-height: 1; }

/* barra de progresso afundada (poço) */
.pc-progress { height: 8px; border-radius: 99px; background: rgba(120,92,56,0.12); box-shadow: inset 0 1px 2px rgba(60,40,20,0.13); overflow: hidden; }
.pc-progress i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--l-green); transition: width 0.4s var(--l-ease); }

/* conteúdo: centralizado na vertical, sem rolar a página */
.pc-main { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 20px 0 28px; }
.pc-step { display: flex; flex-direction: column; animation: pc-in 0.35s var(--l-ease-spring) both; }
.pc-step[hidden] { display: none; }
@keyframes pc-in { from { opacity: 0; transform: translateY(12px); } }

.pc-eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--l-green); margin-bottom: 12px; }
.pc-h { font-family: var(--l-display); font-weight: 600; font-size: clamp(27px, 6.4vw, 34px); line-height: 1.14; letter-spacing: -0.8px; color: var(--l-ink); margin: 0 0 26px; }
.pc-h--retrato { font-size: clamp(25px, 6.4vw, 32px); line-height: 1.15; letter-spacing: -0.7px; margin-bottom: 12px; }
.pc-relief { font-size: 15.5px; line-height: 1.45; color: var(--l-ink-3); margin: 0 0 14px; }
.pc-relief[hidden], .pc-fecho[hidden] { display: none; }
.pc-solve { background: var(--l-surface-solid); border: 1.5px solid var(--l-line); border-radius: 20px; box-shadow: var(--l-shadow-md); padding: 18px 18px 8px; margin-bottom: 14px; }
.pc-solve-h { font-family: var(--l-display); font-size: 16px; font-weight: 600; letter-spacing: -0.2px; color: var(--l-green); margin: 0 0 12px; }
.pc-solve-list { list-style: none; margin: 0; padding: 0; }
.pc-solve-list li { display: flex; align-items: flex-start; gap: 12px; padding: 0 0 14px; color: var(--l-ink); }
.pc-solve-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-solve-tx strong { font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--l-ink); }
.pc-solve-tx span { font-size: 14.5px; line-height: 1.45; font-weight: 400; color: var(--l-ink-2); }
.pc-ic { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--l-green); color: #fff; display: grid; place-items: center; }
.pc-ic svg { width: 17px; height: 17px; }
.pc-fecho { font-size: 14.5px; line-height: 1.45; color: var(--l-ink-3); margin: 0 0 14px; }
.pc-p { font-size: 17px; line-height: 1.55; color: var(--l-ink-2); margin: 0 0 14px; }
.pc-p b { color: var(--l-ink); font-weight: 600; }
.pc-p--solution { color: var(--l-ink); font-weight: 600; margin-bottom: 26px; }

/* campos */
.pc-field { margin-bottom: 18px; }
.pc-field label { display: block; font-size: 15px; font-weight: 600; color: var(--l-ink-2); margin-bottom: 8px; }
.pc-hint { font-weight: 400; color: var(--l-ink-4); }
.pc-field input {
  width: 100%; box-sizing: border-box; padding: 16px 16px; border-radius: 14px;
  border: 1.5px solid var(--l-line); background: var(--l-surface-solid); color: var(--l-ink);
  font-size: 18px; font-family: inherit; outline: none; transition: border-color 0.15s var(--l-ease);
}
.pc-field input::placeholder { color: var(--l-ink-4); }
.pc-field input:focus { border-color: var(--l-green-2); }
.pc-field input.err { border-color: #b84030; }
.pc-err { font-size: 14px; color: #b84030; margin: 0 0 10px; min-height: 0; }
.pc-err:empty { display: none; }

/* chips de "como conheceu" (menores, opcional) */
.pc-como { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-como button {
  appearance: none; border: 1.5px solid var(--l-line); background: var(--l-surface-solid); color: var(--l-ink-2);
  font: inherit; font-size: 15px; font-weight: 600; padding: 10px 15px; border-radius: 99px; cursor: pointer;
  transition: border-color 0.15s var(--l-ease), background 0.15s var(--l-ease), color 0.15s var(--l-ease);
}
.pc-como button:hover { border-color: var(--l-green-2); }
.pc-como button[aria-checked="true"] { background: var(--l-green); border-color: var(--l-green); color: #fff; }

/* opções grandes das perguntas */
.pc-opts { display: flex; flex-direction: column; gap: 12px; }
.pc-opt {
  appearance: none; text-align: left; width: 100%; box-sizing: border-box; cursor: pointer; font: inherit;
  font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--l-ink);
  padding: 20px 20px; min-height: 64px; border-radius: 16px;
  background: var(--l-surface-solid); border: 1.5px solid var(--l-line);
  box-shadow: var(--l-shadow-sm);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: border-color 0.15s var(--l-ease), background 0.15s var(--l-ease), transform 0.15s var(--l-ease);
}
.pc-opt:hover { border-color: var(--l-green-2); transform: translateY(-1px); }
.pc-opt:active { transform: translateY(0); }
.pc-opt .pc-tick { width: 24px; height: 24px; flex: none; border-radius: 8px; border: 2px solid var(--l-line-2); display: none; place-items: center; }
.pc-opts--multi .pc-opt .pc-tick { display: grid; }
.pc-tick svg { width: 16px; height: 16px; opacity: 0; }
.pc-opt[aria-checked="true"] { background: var(--l-green); border-color: var(--l-green); color: #fff; }
.pc-opt[aria-checked="true"] .pc-tick { background: #fff; border-color: #fff; }
.pc-opt[aria-checked="true"] .pc-tick svg { opacity: 1; color: var(--l-green); }

/* botões */
.pc-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box; width: 100%;
  min-height: 60px; margin-top: 8px; padding: 16px 24px; border: none; border-radius: 16px; cursor: pointer;
  background: var(--l-green); color: #fff; font-family: inherit; font-size: 18px; font-weight: 600; text-decoration: none;
  box-shadow: var(--l-shadow-md); transition: transform 0.15s var(--l-ease), opacity 0.15s var(--l-ease);
}
.pc-cta:hover { transform: translateY(-1px); }
.pc-cta[hidden] { display: none; }
.pc-cta[disabled], .pc-cta[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.pc-cta svg { width: 24px; height: 24px; }
.pc-ghost {
  width: 100%; min-height: 54px; margin-top: 12px; border-radius: 16px; cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 600;
  background: none; border: 1.5px solid var(--l-line-2); color: var(--l-ink-2); transition: background 0.15s var(--l-ease);
}
.pc-ghost:hover:not(:disabled) { background: var(--l-surface-2); }
.pc-ghost:disabled { opacity: 0.5; cursor: default; }
.pc-linknote { margin: 12px 0 0; font-size: 13px; color: var(--l-ink-3); word-break: break-all; line-height: 1.4; text-align: center; }
.pc-legal { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--l-ink-3); text-align: center; }
.pc-legal a { color: var(--l-ink-2); text-decoration: underline; text-underline-offset: 2px; }

.pc-seal { width: 72px; height: 72px; margin: 0 0 18px; border-radius: 50%; background: var(--l-green); display: grid; place-items: center; box-shadow: var(--l-shadow-md); }
.pc-seal svg { width: 36px; height: 36px; }

/* autorização: conversa estilo WhatsApp (ilustração própria, sem a marca deles) */
.pc-h--auth { font-size: clamp(25px, 6.4vw, 32px); line-height: 1.15; letter-spacing: -0.7px; margin-bottom: 16px; }
.pc-chat { border-radius: 22px; overflow: hidden; border: 1.5px solid var(--l-line); box-shadow: var(--l-shadow-md); background: #ece3d3; }
.pc-chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--l-green); color: #fff; }
.pc-chat-av { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--l-green); display: grid; place-items: center; font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 700; font-size: 22px; line-height: 1; padding-bottom: 4px; box-sizing: border-box; flex: none; }
.pc-chat-who { display: flex; flex-direction: column; line-height: 1.2; }
.pc-chat-name { font-size: 17px; font-weight: 600; }
.pc-chat-sub { font-size: 12.5px; opacity: 0.85; }
.pc-chat-body {
  padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 8px;
  background-color: #ece3d3;
  background-image: radial-gradient(rgba(106,82,56,0.10) 1.2px, transparent 1.4px), radial-gradient(rgba(106,82,56,0.07) 1px, transparent 1.2px);
  background-size: 26px 26px, 26px 26px; background-position: 0 0, 13px 13px;
}
.pc-msg { position: relative; align-self: flex-start; max-width: 88%; }
.pc-bubble {
  position: relative; background: #fff; color: var(--l-ink); border-radius: 0 12px 12px 12px; padding: 7px 10px 6px 12px;
  box-shadow: 0 1px 1px rgba(60,40,20,0.14); opacity: 0; transform: scale(0.6); transform-origin: 0 0;
}
.pc-bubble::before { content: ''; position: absolute; top: 0; left: -7px; width: 8px; height: 13px; background: #fff; clip-path: polygon(100% 0, 0 0, 100% 100%); }
.pc-bubble p { margin: 0; font-size: 16px; line-height: 1.32; }
.pc-bubble time { float: right; margin: 8px 0 -3px 10px; font-size: 11.5px; line-height: 1; color: var(--l-ink-4); }
.pc-bubble p::after { content: ''; display: table; clear: both; }
.pc-typing { position: absolute; top: 0; left: 0; display: none; align-items: center; gap: 4px; height: 34px; padding: 0 14px; background: #fff; border-radius: 0 14px 14px 14px; box-shadow: 0 1px 1px rgba(60,40,20,0.14); }
.pc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a8f80; animation: pc-dot 0.9s ease-in-out infinite; }
.pc-typing i:nth-child(2) { animation-delay: 0.15s; }
.pc-typing i:nth-child(3) { animation-delay: 0.3s; }
.pc-msg.is-typing .pc-typing { display: inline-flex; }
.pc-msg.is-in .pc-bubble { animation: pc-bubble-pop 0.28s var(--l-ease-spring) forwards; }
@keyframes pc-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes pc-bubble-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
.pc-auth-note { font-size: 15px; line-height: 1.45; color: var(--l-ink-3); margin: 14px 0 6px; }

/* transição: o check se desenha (animação intencional, sem gate de prefers-reduced-motion) */
.pc-seal--draw { animation: pc-pop 0.5s var(--l-ease-spring) 0.1s both; }
.pc-seal--draw svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: pc-draw 0.6s var(--l-ease) 0.4s forwards; }
@keyframes pc-pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes pc-draw { to { stroke-dashoffset: 0; } }

/* celular baixo (iPhone SE etc.): aperta o respiro pra nada rolar */
@media (max-height: 700px) {
  .pc-h--auth { font-size: 24px; margin-bottom: 10px; }
  .pc-chat-head { padding: 7px 14px; }
  .pc-chat-body { padding: 10px 12px 8px; gap: 7px; }
  .pc-bubble p { font-size: 15.5px; line-height: 1.3; }
  .pc-auth-note { font-size: 14px; margin: 10px 0 4px; }
  .pc-solve { padding: 14px 16px 4px; margin-bottom: 10px; }
  .pc-solve-list li { padding-bottom: 11px; }
  .pc-solve-tx strong { font-size: 15px; }
  .pc-solve-tx span { font-size: 13.5px; }
  .pc-ic { width: 26px; height: 26px; }
  .pc-relief { margin-bottom: 10px; font-size: 14.5px; }
  .pc-fecho { font-size: 13.5px; margin-bottom: 10px; }
  .pc-main { padding: 12px 0 16px; }
  .pc-top { padding: 8px 0 6px; }
  .pc-h--retrato { font-size: 24px; margin-bottom: 8px; }
  .pc-eyebrow { margin-bottom: 8px; }
  .pc-solve-h { margin-bottom: 9px; }
  .pc-h { margin-bottom: 18px; font-size: clamp(24px, 6vw, 30px); }
  .pc-opt { padding: 15px 18px; min-height: 56px; font-size: 17px; }
  .pc-opts { gap: 9px; }
  .pc-field { margin-bottom: 12px; }
  .pc-field input { padding: 13px 14px; }
  .pc-cta { min-height: 54px; }
}
@media (max-width: 540px) {
  .pc-shell { padding-left: 16px; padding-right: 16px; }
}
