/* ============================================================================
   PRIMEIROS PASSOS — Foco no passo atual — estilos. TUDO escopado em .pp-root (o container que o app entrega a montar()).
   So e carregado com a flag onboarding_foco ligada. Figma: pagina 552:2, bloco 552:38.
   Tokens: valores = variaveis do Figma "Copiloto" (spec secao 9). Base so com o que falta no app (--pp-*); componentes usam --semantic-*.
   ============================================================================ */
.pp-root {
    --pp-lime-50: #FBFEF2; --pp-lime-100: #F2FBD8; --pp-lime-200: #E6F8B4; --pp-lime-300: #D6F47E; --pp-lime-700: #687F22; --pp-lime-800: #4A5818;
    --pp-n0: #FFFFFF; --pp-n100: #F4F5F2; --pp-n300: #D3D6CF; --pp-n400: #A8ADA3; --pp-n600: #5B6066;
    --pp-error-text: #B91C1C;
    --semantic-brand: var(--co-lime, #C6F24F);
    --semantic-brand-hover: var(--co-lime-hover, #A9D13B);
    --semantic-on-brand: var(--co-ink, #111317);
    --semantic-bg-body: var(--co-off-white, #F8F9F7);
    --semantic-surface-1: var(--pp-n0);
    --semantic-surface-2: var(--pp-n100);
    --semantic-surface-inverse: var(--co-ink, #111317);
    --semantic-text-primary: var(--co-ink, #111317);
    --semantic-text-secondary: var(--pp-n600);
    --semantic-text-muted: var(--pp-n400);
    --semantic-border: var(--co-border, #E7E9E4);
    --semantic-border-strong: var(--pp-n300);
    --pp-font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --pp-font-display: 'Outfit', 'Inter', ui-sans-serif, sans-serif;
    --pp-ring: 0 0 0 3px var(--pp-lime-200);
    --pp-ease: cubic-bezier(.4, 0, .2, 1);
    color: var(--semantic-text-primary); font-family: var(--pp-font-sans); font-size: 14px; line-height: 1.4; -webkit-font-smoothing: antialiased;
}
html.dark .pp-root {
    --semantic-bg-body: #0F1114; --semantic-surface-1: #17191D; --semantic-surface-2: #1F2227; --semantic-text-primary: #F4F5F2;
    --semantic-text-secondary: #A8ADA3; --semantic-text-muted: #797E76; --semantic-border: #2B2F33; --semantic-border-strong: #3A3F44;
    --pp-lime-50: #1B2210; --pp-lime-100: #243012; --pp-lime-800: #D6F47E; --pp-lime-700: #A9D13B; --semantic-surface-inverse: #0A0B0D;
}
.pp-root *, .pp-root *::before, .pp-root *::after { box-sizing: border-box; }
.pp-root button { font-family: inherit; cursor: pointer; }
.pp-root h1, .pp-root h2, .pp-root h3, .pp-root p, .pp-root ol { margin: 0; padding: 0; }
.pp-i { width: 18px; height: 18px; flex: none; } .pp-i.xs { width: 12px; height: 12px; } .pp-i.sm { width: 14px; height: 14px; } .pp-i.md { width: 18px; height: 18px; } .pp-i.lg { width: 22px; height: 22px; }
.pp-grow { flex: 1; } .pp-mute { color: var(--semantic-text-muted); font-size: 13px; }
.pp-over { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--semantic-text-muted); }

.pp-card { background: var(--semantic-surface-1); border: 1px solid var(--semantic-border); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 32px; }
.pp-mini { flex-direction: row; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 12px; flex-wrap: wrap; }
.pp-mini.ok { background: var(--pp-lime-50); border-color: var(--pp-lime-200); }
.pp-mini-t { flex: 1 1 260px; display: flex; flex-direction: column; min-width: 0; } .pp-mini-t span { color: var(--semantic-text-secondary); font-size: 13px; }

/* topo */
.pp-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pp-ico-box { width: 40px; height: 40px; border-radius: 12px; background: var(--pp-lime-100); color: var(--pp-lime-700); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pp-ico-box.big { width: 48px; height: 48px; }
.pp-head-t { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pp-head-n { display: flex; align-items: center; gap: 12px; }
.pp-head h1 { font-family: var(--pp-font-display); font-weight: 600; font-size: 24px; line-height: 1.15; }
.pp-head-t p { color: var(--semantic-text-secondary); font-size: 14px; }
.pp-novo { background: var(--semantic-surface-inverse); color: var(--semantic-brand); font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 4px 8px; border-radius: 9999px; }
.pp-prog { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.pp-prog-n { display: flex; align-items: baseline; gap: 4px; } .pp-prog-n b { font-family: var(--pp-font-display); font-weight: 600; font-size: 20px; } .pp-prog-n span { color: var(--semantic-text-secondary); font-size: 13px; font-weight: 500; }
.pp-bar { width: 220px; max-width: 100%; height: 8px; border-radius: 9999px; background: var(--semantic-surface-2); overflow: hidden; }
.pp-bar > i { display: block; height: 100%; background: var(--semantic-brand); border-radius: 9999px; transition: width .25s var(--pp-ease); }
.pp-x { width: 32px; height: 32px; border: 0; border-radius: 9999px; background: none; color: var(--semantic-text-muted); display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; }
.pp-x:hover { background: var(--semantic-surface-2); color: var(--semantic-text-primary); }

/* stepper */
.pp-stepper { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pp-step { position: relative; display: flex; justify-content: center; }
.pp-step + .pp-step::before { content: ''; position: absolute; top: 24px; left: calc(-50% + 36px); right: calc(50% + 36px); border-top: 3px dashed var(--semantic-border-strong); opacity: .8; }
.pp-step.after-done::before { border-top: 3px solid var(--semantic-brand) !important; opacity: 1 !important; }
.pp-stepbtn { display: flex; flex-direction: column; align-items: center; gap: 12px; background: none; border: 0; padding: 0 4px 4px; color: inherit; border-radius: 12px; min-width: 0; }
button.pp-stepbtn:hover .pp-step-l b { color: var(--semantic-text-primary); }
.pp-stepbtn:focus-visible, .pp-cta:focus-visible, .pp-sec:focus-visible, .pp-link:focus-visible, .pp-next:focus-visible, .pp-x:focus-visible { outline: none; box-shadow: var(--pp-ring); }
.pp-ring { width: 48px; height: 48px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pp-ring.done { background: var(--pp-lime-100); } .pp-ring.now { background: var(--semantic-brand); }
.pp-dot { width: 32px; height: 32px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; background: var(--semantic-surface-1); border: 1.5px solid var(--semantic-border-strong); color: var(--semantic-text-muted); font-weight: 600; font-size: 14px; }
.pp-ring.done .pp-dot { background: var(--semantic-brand); border: 0; color: var(--semantic-on-brand); }
.pp-ring.now .pp-dot { width: 36px; height: 36px; background: var(--semantic-surface-inverse); border: 0; color: var(--semantic-brand); font-family: var(--pp-font-display); font-size: 16px; }
.pp-step-l { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.pp-step-l b { font-weight: 500; font-size: 14px; color: var(--semantic-text-secondary); } .pp-step-l small { font-size: 12px; color: var(--semantic-text-muted); font-weight: 500; }
.pp-step.feito .pp-step-l b { font-weight: 600; color: var(--semantic-text-primary); } .pp-step.feito .pp-step-l small { color: var(--pp-lime-700); }
.pp-step.agora .pp-step-l b { font-weight: 700; color: var(--semantic-text-primary); }
.pp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 9999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pp-chip.lime { background: var(--pp-lime-100); color: var(--pp-lime-800); }
.pp-chip.dark { background: var(--semantic-surface-inverse); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; gap: 8px; }
.pp-pt { width: 6px; height: 6px; border-radius: 9999px; background: var(--semantic-brand); display: inline-block; }

/* foco */
.pp-foco { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; gap: 16px; align-items: stretch; }
.pp-ant { background: var(--semantic-bg-body); border: 1px solid var(--semantic-border); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.pp-ant-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pp-ant .pp-chip { padding: 4px 8px; }
.pp-ant h3 { font-family: var(--pp-font-display); font-weight: 500; font-size: 17px; line-height: 1.3; }
.pp-ant p { color: var(--semantic-text-secondary); font-size: 13px; line-height: 1.5; }
.pp-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: var(--pp-lime-700); font-weight: 600; font-size: 13px; border-radius: 8px; }
.pp-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pp-now { background: var(--semantic-surface-1); border: 2px solid var(--semantic-brand); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 24px; box-shadow: 0 16px 40px -8px rgba(198, 242, 79, .35); min-width: 0; }
.pp-now-t { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pp-tempo { display: inline-flex; align-items: center; gap: 4px; color: var(--semantic-text-secondary); font-size: 13px; font-weight: 500; }
.pp-now-x { display: flex; flex-direction: column; gap: 12px; }
.pp-now h2 { font-family: var(--pp-font-display); font-weight: 600; font-size: 30px; line-height: 1.15; }
.pp-now-x p { color: var(--semantic-text-secondary); font-size: 16px; line-height: 1.55; }
.pp-sep { background: var(--semantic-bg-body); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.pp-sep-i { display: flex; align-items: center; gap: 12px; }
.pp-sep-ico { width: 36px; height: 36px; border-radius: 8px; background: var(--semantic-surface-1); border: 1px solid var(--semantic-border); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pp-sep-i b { display: block; font-weight: 500; font-size: 14px; } .pp-sep-i small { display: block; color: var(--semantic-text-muted); font-size: 12px; }
.pp-acts { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pp-cta { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 9999px; background: var(--semantic-brand); color: var(--semantic-on-brand); padding: 16px 24px; font-weight: 600; font-size: 16px; transition: background .15s var(--pp-ease); }
.pp-cta:hover { background: var(--semantic-brand-hover); } .pp-cta.sm { padding: 10px 18px; font-size: 14px; }
.pp-sec { border: 0; background: none; color: var(--semantic-text-secondary); font-weight: 500; font-size: 14px; padding: 8px 4px; border-radius: 8px; }
.pp-sec:hover { color: var(--semantic-text-primary); text-decoration: underline; text-underline-offset: 3px; }
.pp-ex { background: var(--pp-lime-50); color: var(--pp-lime-800); border-radius: 8px; padding: 12px 16px; font-size: 13px; line-height: 1.5; }
.pp-dep { display: flex; flex-direction: column; gap: 12px; }
.pp-dep > .pp-over { padding: 4px 0; }
.pp-next { display: flex; align-items: flex-start; gap: 16px; text-align: left; background: var(--semantic-surface-1); border: 1px solid var(--semantic-border); border-radius: 12px; padding: 20px; color: inherit; width: 100%; transition: border-color .15s var(--pp-ease); }
.pp-next:hover { border-color: var(--semantic-border-strong); }
.pp-num { width: 32px; height: 32px; border-radius: 9999px; background: var(--semantic-surface-2); color: var(--semantic-text-muted); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex: none; }
.pp-next-x { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .pp-next-x b { font-size: 14px; font-weight: 600; }
.pp-next-x span { font-size: 13px; line-height: 1.45; color: var(--semantic-text-secondary); }
.pp-next-x em { display: inline-flex; align-items: center; gap: 4px; padding-top: 4px; font-style: normal; font-size: 12px; font-weight: 500; color: var(--semantic-text-muted); }
.pp-alt { display: flex; align-items: center; gap: 16px; background: var(--semantic-bg-body); border: 1px solid var(--semantic-border); border-radius: 12px; padding: 16px 20px; flex-wrap: wrap; }
.pp-alt-ico { width: 40px; height: 40px; border-radius: 8px; background: var(--pp-lime-100); color: var(--pp-lime-700); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pp-alt-t { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; min-width: 0; } .pp-alt-t b { font-size: 14px; font-weight: 600; } .pp-alt-t span { color: var(--semantic-text-secondary); font-size: 13px; }
.pp-alt .pp-link { font-size: 14px; }

.pp-skel { border-radius: 12px; background: var(--semantic-surface-2); animation: pp-pulse 1.2s ease-in-out infinite; }
@keyframes pp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .pp-root *, .pp-root *::before, .pp-root *::after { animation: none !important; transition: none !important; } }

/* responsivo */
@media (max-width: 1100px) {
    .pp-card { padding: 28px; gap: 24px; }
    .pp-foco { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .pp-now { grid-column: 1 / -1; grid-row: 1; } .pp-ant { grid-row: 2; } .pp-dep { grid-row: 2; }
    .pp-step + .pp-step::before { left: calc(-50% + 32px); right: calc(50% + 32px); }
}
@media (max-width: 720px) {
    .pp-card { padding: 20px 16px; gap: 20px; border-radius: 16px; }
    .pp-head h1 { font-size: 20px; } .pp-prog { align-items: flex-start; width: 100%; } .pp-bar { width: 100%; }
    .pp-x { position: absolute; top: 12px; right: 12px; } .pp-card { position: relative; }
    .pp-stepper { gap: 0; } .pp-step + .pp-step::before { top: 20px; left: calc(-50% + 22px); right: calc(50% + 22px); }
    .pp-ring { width: 40px; height: 40px; } .pp-dot { width: 28px; height: 28px; font-size: 13px; } .pp-ring.now .pp-dot { width: 32px; height: 32px; }
    .pp-step-l small, .pp-step:not(.agora) .pp-step-l b { display: none; } .pp-step.agora .pp-step-l { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); width: 140px; }
    .pp-stepper { padding-bottom: 56px; }
    .pp-foco { grid-template-columns: minmax(0, 1fr); } .pp-now, .pp-ant, .pp-dep { grid-column: 1; grid-row: auto; } .pp-now { order: -1; }
    .pp-now { padding: 20px; gap: 20px; } .pp-now h2 { font-size: 24px; } .pp-now-x p { font-size: 15px; }
    .pp-acts { gap: 12px; } .pp-cta { width: 100%; justify-content: center; min-height: 48px; } .pp-sec { min-height: 44px; }
    .pp-alt .pp-link { min-height: 44px; }
}
